From leonard at umn.edu Mon Dec 7 09:18:54 2009 From: leonard at umn.edu (Leonard Miller) Date: Mon, 07 Dec 2009 11:18:54 -0600 Subject: [WindyCity-pm] Frozen Perl 2010 announcment and Call for Speakers In-Reply-To: <59AFDA83-6371-4250-B8C4-0E0E1F8D0FAA@umn.edu> References: <59AFDA83-6371-4250-B8C4-0E0E1F8D0FAA@umn.edu> Message-ID: <4B1D38FE.6000906@umn.edu> Hey everyone, The call for speakers has been extended just one week, so the new deadline is midnight on 12/14/2009. Please get your talks submitted (http://www.frozen-perl.org/mpw2010/cfs.html ) before then. Thank you, Leonard Miller Frozen Perl Coordinator leonard wrote: > Hello all, > > The Minneapolis Perl Mongers are organizing a Perl workshop in > Minneapolis on February 5-7, 2010, and I hope some of you can attend. > We're also working on a hackathon the day after and two Perl classes: > "Effective Perl Programming",taught by brian d foy and "Introduction > to Moose" taught by Dave Rolsky on Friday February 5th. > > If you are a student, you'll be eligible for the super-cheap rates for > the Workshop ($25 early bird prices for the workshop). > > If you are concerned about the weather in Minnesota in February, there > is a hotel that is connected to our venue by underground > tunnel:http://www.radisson.com/minneapolismn_metrodome. After you > arrive, you won't have to go outside unless you choose. > > Please pass this information on to your employers/co-workers/fellow > students, as they might also like to attend. > > We've also opened our call for speakers, and we'd love to have your > submissions. You can view the CFS > at http://www.frozen-perl.org/mpw2010/cfs.html > > > > Thanks much for your time > > The Frozen Perl team. -------------- next part -------------- An HTML attachment was scrubbed... URL: From joshua.mcadams at gmail.com Thu Dec 10 21:03:28 2009 From: joshua.mcadams at gmail.com (Joshua) Date: Thu, 10 Dec 2009 23:03:28 -0600 Subject: [WindyCity-pm] Frozen Perl Message-ID: <49d805d70912102103n5b02e95cn628d57bf12639e95@mail.gmail.com> If you've been on the fence about going to Frozen Perl, this might help motivate you. Megabus is giving free rides for tons of trips, including trips between Chicago and Minneapolis. http://www.chicagoreader.com/TheBlog/archives/2009/12/09/free-megabus-trips-from-january-6-to-march-30 I rode Megabus there last year. It wasn't a luxury trip, but it did the job and also dropped me off right in front of the University that Frozen Perl was held at. From sean at blanton.com Fri Dec 18 07:48:40 2009 From: sean at blanton.com (Sean Blanton) Date: Fri, 18 Dec 2009 09:48:40 -0600 Subject: [WindyCity-pm] How to get rid of Moose warnings? Message-ID: I'm getting the following warnings, which I'd like to get rid of... Subroutine throw_error redefined at C:/Perl/site/lib/moose.pm line 39. Subroutine extends redefined at C:/Perl/site/lib/moose.pm line 45. Subroutine with redefined at C:/Perl/site/lib/moose.pm line 56. Subroutine has redefined at C:/Perl/site/lib/moose.pm line 60. Subroutine before redefined at C:/Perl/site/lib/moose.pm line 72. Subroutine after redefined at C:/Perl/site/lib/moose.pm line 76. Subroutine around redefined at C:/Perl/site/lib/moose.pm line 80. Subroutine super redefined at C:/Perl/site/lib/moose.pm line 88. Subroutine override redefined at C:/Perl/site/lib/moose.pm line 95. Subroutine inner redefined at C:/Perl/site/lib/moose.pm line 101. Subroutine augment redefined at C:/Perl/site/lib/moose.pm line 115. Subroutine init_meta redefined at C:/Perl/site/lib/moose.pm line 132. Subroutine _get_caller redefined at C:/Perl/site/lib/moose.pm line 228. I'm using plain vanilla Moose and diligently using 'no moose;' at the end of each of my 8 classes. Any ideas? Regards, Sean -------------- next part -------------- An HTML attachment was scrubbed... URL: From sean at blanton.com Fri Dec 18 08:08:23 2009 From: sean at blanton.com (Sean Blanton) Date: Fri, 18 Dec 2009 10:08:23 -0600 Subject: [WindyCity-pm] [Chicago-talk] How to get rid of Moose warnings? In-Reply-To: <86aaxgz3ew.fsf@blue.stonehenge.com> References: <86aaxgz3ew.fsf@blue.stonehenge.com> Message-ID: I had 'use Moose' but then 'no moose'...Changed it to 'no Moose' and that got rid of the warnings. Thanks! On Fri, Dec 18, 2009 at 9:51 AM, Randal L. Schwartz wrote: > >>>>> "Sean" == Sean Blanton writes: > > Sean> I'm getting the following warnings, which I'd like to get rid of... > Sean> Subroutine throw_error redefined at C:/Perl/site/lib/moose.pm line > 39. > Sean> Subroutine extends redefined at C:/Perl/site/lib/moose.pm line 45. > Sean> Subroutine with redefined at C:/Perl/site/lib/moose.pm line 56. > Sean> Subroutine has redefined at C:/Perl/site/lib/moose.pm line 60. > Sean> Subroutine before redefined at C:/Perl/site/lib/moose.pm line 72. > Sean> Subroutine after redefined at C:/Perl/site/lib/moose.pm line 76. > Sean> Subroutine around redefined at C:/Perl/site/lib/moose.pm line 80. > Sean> Subroutine super redefined at C:/Perl/site/lib/moose.pm line 88. > Sean> Subroutine override redefined at C:/Perl/site/lib/moose.pm line 95. > Sean> Subroutine inner redefined at C:/Perl/site/lib/moose.pm line 101. > Sean> Subroutine augment redefined at C:/Perl/site/lib/moose.pm line 115. > Sean> Subroutine init_meta redefined at C:/Perl/site/lib/moose.pm line > 132. > Sean> Subroutine _get_caller redefined at C:/Perl/site/lib/moose.pm line > 228. > > Sean> I'm using plain vanilla Moose and diligently using 'no moose;' at the > end of > Sean> each of my 8 classes. > > You appear to be on windows. > > You *are* being careful to say: > > "use Moose" > > and not > > "use moose" > > correct? The latter kinda works, but will break things later. > > -- > Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 > > Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. > See http://methodsandmessages.vox.com/ for Smalltalk and Seaside > discussion > -------------- next part -------------- An HTML attachment was scrubbed... URL: From linuxassassin at gmail.com Sun Dec 20 12:01:34 2009 From: linuxassassin at gmail.com (charlieR) Date: Sun, 20 Dec 2009 14:01:34 -0600 Subject: [WindyCity-pm] Good examples / tutorials for lists and arrays Message-ID: Can someone point me to a good place to learn about these guys. Besides just syntax and usage I would like some real world examples on where they would be used. Thanks Charlie From ccf3 at mindspring.com Sun Dec 20 18:40:50 2009 From: ccf3 at mindspring.com (Clyde Forrester) Date: Sun, 20 Dec 2009 20:40:50 -0600 Subject: [WindyCity-pm] Good examples / tutorials for lists and arrays In-Reply-To: References: Message-ID: <4B2EE032.3070703@mindspring.com> This site shows examples of all sorts of things, in all sorts of languages. http://rosettacode.org/wiki/Main_Page Somebody gave me a link after I did my "Hello" talk at polyglot. I hope that helps. Clyde charlieR wrote: > Can someone point me to a good place to learn about these guys. Besides > just syntax and usage I would like some real world examples on where > they would be used. > > Thanks > > Charlie From merlyn at stonehenge.com Fri Dec 18 07:51:19 2009 From: merlyn at stonehenge.com (Randal L. Schwartz) Date: Fri, 18 Dec 2009 07:51:19 -0800 Subject: [WindyCity-pm] [Chicago-talk] How to get rid of Moose warnings? In-Reply-To: (Sean Blanton's message of "Fri, 18 Dec 2009 09:48:40 -0600") References: Message-ID: <86aaxgz3ew.fsf@blue.stonehenge.com> >>>>> "Sean" == Sean Blanton writes: Sean> I'm getting the following warnings, which I'd like to get rid of... Sean> Subroutine throw_error redefined at C:/Perl/site/lib/moose.pm line 39. Sean> Subroutine extends redefined at C:/Perl/site/lib/moose.pm line 45. Sean> Subroutine with redefined at C:/Perl/site/lib/moose.pm line 56. Sean> Subroutine has redefined at C:/Perl/site/lib/moose.pm line 60. Sean> Subroutine before redefined at C:/Perl/site/lib/moose.pm line 72. Sean> Subroutine after redefined at C:/Perl/site/lib/moose.pm line 76. Sean> Subroutine around redefined at C:/Perl/site/lib/moose.pm line 80. Sean> Subroutine super redefined at C:/Perl/site/lib/moose.pm line 88. Sean> Subroutine override redefined at C:/Perl/site/lib/moose.pm line 95. Sean> Subroutine inner redefined at C:/Perl/site/lib/moose.pm line 101. Sean> Subroutine augment redefined at C:/Perl/site/lib/moose.pm line 115. Sean> Subroutine init_meta redefined at C:/Perl/site/lib/moose.pm line 132. Sean> Subroutine _get_caller redefined at C:/Perl/site/lib/moose.pm line 228. Sean> I'm using plain vanilla Moose and diligently using 'no moose;' at the end of Sean> each of my 8 classes. You appear to be on windows. You *are* being careful to say: "use Moose" and not "use moose" correct? The latter kinda works, but will break things later. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion From richard at rushlogistics.com Wed Dec 30 09:58:44 2009 From: richard at rushlogistics.com (Richard Reina) Date: Wed, 30 Dec 2009 12:58:44 -0500 (EST) Subject: [WindyCity-pm] regular expression help Message-ID: <20091230175844.956B03CB8@courageux.xo.com> I am trying to write a program that goes through emails in a thunderbird Inbox finds the email address of any emails that have bounced back ( contained in failure notifications ) and creates a summary report of bad email addresses. The program is merely an adaptation of other perl code I have that searches through files looking for regular expressions. However, I am getting confused on how to skip through this file. What I am intending in the code below is that once the string "could not be delivered" is found that the program then begins to search for the next email address listed, hence the search string "\@" and to let me know what that email is. However, I'm getting confused with the iteration of the while loop and I am not getting anywhere. Can anyone advise on where I've gone wrong? Perhaps there's a better way of doing this? Any help would be greatly appreciated. Thanks, Richard #!/usr/bin/perl # short script to check a for email errors use strict; use warnings; use File::Spec; use Carp; # set the directory that you want to search my $dir ='c:\Users\rushlog\AppData\Roaming\Thunderbird\Profiles\wcorkhfi.default\Mail\Local Folders'; my @files_in_dir; my $files_in_dir; opendir(DIR, $dir) or die "Can't open directory: $!\n"; # line 19 while (my $file = readdir(DIR)) { # use a regular expression to ignore file beginning with a period next if ($file =~ m/^\./); push(@files_in_dir, $file); } close(DIR); my $i = 0; my $string = 'your message could not be delivered'; foreach $files_in_dir (@files_in_dir) { if ($files_in_dir eq 'Inbox.msf') { #this is the one we need to search in my $file_name = File::Spec->join($dir, $files_in_dir); open(LOG, '<', $file_name) or croak "Unable to open $file_name: $!"; my $j; # line counter while() { $j++; # line 51 test for string. Put the string between the b and the \b if (/\b$string\b/i) { $i++; print "Apparent undelivered email " . $string . " FOUND in line " . $j . " of " . $files_in_dir . "\n"; print " " . $_; # look for the email address that comes after my $bad_email = '\@'; if (/\b$bad_email\b/i) { # this line contains the next email address print "This line contains the next email address " . $_; chomp (my $xx = ); next; } else { # next line does not contain an email address print "The next line did NOT contain an email address\n" . $_ . "\n"; chomp (my $yy = ); next; } } } # end of while close(LOG); } # end of if } From joshua.mcadams at gmail.com Wed Dec 30 20:37:39 2009 From: joshua.mcadams at gmail.com (Joshua) Date: Wed, 30 Dec 2009 22:37:39 -0600 Subject: [WindyCity-pm] [Chicago-talk] I'm back In-Reply-To: <1262188134.5889.35.camel@bdoty01> References: <1262188134.5889.35.camel@bdoty01> Message-ID: <49d805d70912302037n3702e3co73e786e4fdb00e4e@mail.gmail.com> I think the lack of response confirms that not much (probably due to the holidays) should be the answer :) How about a January meeting? I'm up for it. Anyone have an interesting topic of discussion for a tech meeting. If not, we might just do a nice bar meetup. On Wed, Dec 30, 2009 at 9:48 AM, Brad Doty wrote: > So what's going on in the world of Perl and Chicago PM lately? > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk >