From andy at petdance.com Wed Sep 3 17:49:27 2008 From: andy at petdance.com (Andy Lester) Date: Wed, 3 Sep 2008 19:49:27 -0500 Subject: [Chicago-talk] Fwd: Polyglot Programming: A Business Pespective References: <633adca5-cbec-4a81-96ee-4d896a662504@k36g2000pri.googlegroups.com> Message-ID: <2E31A32F-09FF-4D96-BDC5-266CD88E2F55@petdance.com> The upcoming Erlang is very interesting to me. I started reading "Real World Haskell" the other night. http://book.realworldhaskell.org/ Begin forwarded message: > From: Dave Hoover > Date: September 3, 2008 5:41:16 PM CDT > To: Polyglot Programmers > Subject: Polyglot Programming: A Business Pespective > Reply-To: polyglot-programmers at googlegroups.com > > > I haven't read this Master's Thesis by Hans-Christian Fjeldberg all > the way through, but so far it looks relevant for anyone thinking > seriously about adopting Polyglot Programming on a team or project. > > http://theuntitledblog.com/wp-content/uploads/2008/08/polyglot_programming-a_business_perspective.pdf > > (via Ola Bini) > > PS: We will likely have a 2 hour Erlang workshop in September or > October by Martin Logan, author of Manning's upcoming Erlang/OTP > book. Stay tuned! > --~--~---------~--~----~------------~-------~--~----~ > You received this message because you are subscribed to the Google > Groups "Polyglot Programmers" group. > To post to this group, send email to polyglot-programmers at googlegroups.com > To unsubscribe from this group, send email to polyglot-programmers+unsubscribe at googlegroups.com > For more options, visit this group at http://groups.google.com/group/polyglot-programmers?hl=en > -~----------~----~----~----~------~----~------~--~--- > -- Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance From jeremy at marzhillstudios.com Wed Sep 3 19:25:13 2008 From: jeremy at marzhillstudios.com (Jeremy Wall) Date: Wed, 3 Sep 2008 21:25:13 -0500 Subject: [Chicago-talk] Fwd: Polyglot Programming: A Business Pespective In-Reply-To: <2E31A32F-09FF-4D96-BDC5-266CD88E2F55@petdance.com> References: <633adca5-cbec-4a81-96ee-4d896a662504@k36g2000pri.googlegroups.com> <2E31A32F-09FF-4D96-BDC5-266CD88E2F55@petdance.com> Message-ID: <69d143cd0809031925y236a24bv7e7b1c252a574e7c@mail.gmail.com> I've been playing with erlang lately and have really enjoyed it. I wish I had more time to go stuff like this erlang workshop but I never seem to have the time. Erlang has a very minimalist syntax and the pattern matching really suits me a lot. It's certains stretched my thinking considerably. On Wed, Sep 3, 2008 at 7:49 PM, Andy Lester wrote: > The upcoming Erlang is very interesting to me. I started reading "Real > World Haskell" the other night. > > http://book.realworldhaskell.org/ > > Begin forwarded message: > > From: Dave Hoover >> Date: September 3, 2008 5:41:16 PM CDT >> To: Polyglot Programmers >> Subject: Polyglot Programming: A Business Pespective >> Reply-To: polyglot-programmers at googlegroups.com >> >> >> I haven't read this Master's Thesis by Hans-Christian Fjeldberg all >> the way through, but so far it looks relevant for anyone thinking >> seriously about adopting Polyglot Programming on a team or project. >> >> >> http://theuntitledblog.com/wp-content/uploads/2008/08/polyglot_programming-a_business_perspective.pdf >> >> (via Ola Bini) >> >> PS: We will likely have a 2 hour Erlang workshop in September or >> October by Martin Logan, author of Manning's upcoming Erlang/OTP >> book. Stay tuned! >> --~--~---------~--~----~------------~-------~--~----~ >> You received this message because you are subscribed to the Google Groups >> "Polyglot Programmers" group. >> To post to this group, send email to >> polyglot-programmers at googlegroups.com >> To unsubscribe from this group, send email to >> polyglot-programmers+unsubscribe at googlegroups.com >> For more options, visit this group at >> http://groups.google.com/group/polyglot-programmers?hl=en >> -~----------~----~----~----~------~----~------~--~--- >> >> > -- > Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance > > > > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > -- Jeremy Wall http://jeremy.marzhillstudios.com Jeremy at marzhillstudios.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From joshua.mcadams at gmail.com Sat Sep 6 14:22:28 2008 From: joshua.mcadams at gmail.com (Joshua McAdams) Date: Sat, 6 Sep 2008 16:22:28 -0500 Subject: [Chicago-talk] Fwd: SUBMIT YOUR TALKS FOR PPW 2008! In-Reply-To: <79433203-fc13-475b-8e40-bacfc3dcc268@f36g2000hsa.googlegroups.com> References: <79433203-fc13-475b-8e40-bacfc3dcc268@f36g2000hsa.googlegroups.com> Message-ID: <49d805d70809061422n44acffd0hd0fe0697d1d4f3df@mail.gmail.com> This passed by my inbox. Thought that some of you might be interested. ---------- Forwarded message ---------- From: Dan Wright Date: Wed, Sep 3, 2008 at 2:15 PM Subject: SUBMIT YOUR TALKS FOR PPW 2008! To: Pittsburgh Perl Workshop Announce The call for papers for the Pittsburgh Perl Workshop is still open, but not for long. It's time to step up and submit your talk. Don't you want to be part of the excitement? Don't you have something to share with the Perl community? Don't you want to make your mark on the historic PPW? Of course you do! So why put if off? Submit your talk now. Just click: http://pghpw.org/ppw2008/newtalk and fill out the form. It's that easy. But don't delay! Claim your speaking spot while there's still time. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Pittsburgh Perl Workshop Announce" group. To post to this group, send email to ppw-announce at googlegroups.com To unsubscribe from this group, send email to ppw-announce+unsubscribe at googlegroups.com For more options, visit this group at http://groups.google.com/group/ppw-announce?hl=en -~----------~----~----~----~------~----~------~--~--- From joshua.mcadams at gmail.com Sat Sep 6 14:24:37 2008 From: joshua.mcadams at gmail.com (Joshua McAdams) Date: Sat, 6 Sep 2008 16:24:37 -0500 Subject: [Chicago-talk] Chicago.pm Meeting: September 23rd Message-ID: <49d805d70809061424j6b4cb757l2e990116f0e3d658@mail.gmail.com> We are planning on having a Chicago.pm meeting on Tuesday September 23rd at 7pm. Unless we run into issues, the meeting will be downtown at the Google offices at 20 W Kinzie. Save the date and if you have something to present on, please send me a note and I'll add it to the announcement. Thanks, Josh From joshua.mcadams at gmail.com Sat Sep 6 15:05:55 2008 From: joshua.mcadams at gmail.com (Joshua McAdams) Date: Sat, 6 Sep 2008 17:05:55 -0500 Subject: [Chicago-talk] Any CS professors out there? Message-ID: <49d805d70809061505g6f079515o77445389d4df7d4a@mail.gmail.com> Just out of curiosity, are there any CS professors on this list? If so, and if you don't mind me asking you a few questions, can you please contact me off-list? From brian.d.foy at gmail.com Sun Sep 7 18:45:22 2008 From: brian.d.foy at gmail.com (brian d foy) Date: Sun, 7 Sep 2008 18:45:22 -0700 Subject: [Chicago-talk] Chicago.pm Meeting: September 23rd In-Reply-To: <49d805d70809061424j6b4cb757l2e990116f0e3d658@mail.gmail.com> References: <49d805d70809061424j6b4cb757l2e990116f0e3d658@mail.gmail.com> Message-ID: <2715accf0809071845s39a2aaa5vc7e24fa8a99bb445@mail.gmail.com> On Sat, Sep 6, 2008 at 2:24 PM, Joshua McAdams wrote: > We are planning on having a Chicago.pm meeting on Tuesday September > 23rd at 7pm. Unless we run into issues, the meeting will be downtown > at the Google offices at 20 W Kinzie. I've made a lot of progress with the BackPAN indexing stuff and have a lot to show: http://use.perl.org/~brian_d_foy/journal/37375 -- brian d foy http://www.pair.com/~comdog/ From jeremy at marzhillstudios.com Mon Sep 8 12:42:58 2008 From: jeremy at marzhillstudios.com (Jeremy Wall) Date: Mon, 8 Sep 2008 14:42:58 -0500 Subject: [Chicago-talk] [WindyCity-pm] Chicago.pm Meeting: September 23rd In-Reply-To: <2715accf0809071845s39a2aaa5vc7e24fa8a99bb445@mail.gmail.com> References: <49d805d70809061424j6b4cb757l2e990116f0e3d658@mail.gmail.com> <2715accf0809071845s39a2aaa5vc7e24fa8a99bb445@mail.gmail.com> Message-ID: <69d143cd0809081242l2c59b112u6e56be1bcb9ff16f@mail.gmail.com> Unfortunately that is my wifes birthday so I can't be there but next time I have a talk I'm thinking about giving. I've been playing with CouchDB and released to CPAN a CouchDB module. On Sun, Sep 7, 2008 at 8:45 PM, brian d foy wrote: > On Sat, Sep 6, 2008 at 2:24 PM, Joshua McAdams > wrote: > > We are planning on having a Chicago.pm meeting on Tuesday September > > 23rd at 7pm. Unless we run into issues, the meeting will be downtown > > at the Google offices at 20 W Kinzie. > > I've made a lot of progress with the BackPAN indexing stuff and have a > lot to show: > > http://use.perl.org/~brian_d_foy/journal/37375 > > -- > brian d foy > http://www.pair.com/~comdog/ > _______________________________________________ > WindyCity-pm mailing list > WindyCity-pm at pm.org > http://mail.pm.org/mailman/listinfo/windycity-pm > -- Jeremy Wall http://jeremy.marzhillstudios.com Jeremy at marzhillstudios.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From amead2 at alanmead.org Thu Sep 11 05:42:16 2008 From: amead2 at alanmead.org (Alan Mead) Date: Thu, 11 Sep 2008 07:42:16 -0500 Subject: [Chicago-talk] cpan problems in Fedora 9 Message-ID: <48C91228.2030503@alanmead.org> I know this isn't a Fedora mailing list but if any of use F9, I think you may have solved this problem and some of you may know what level of support Perl has in Fedora these days. I've previously used FC3 & FC4, and in F9 the cpan script is apparently split off as a separate rpm (which is inconvenient). When I tried to use yum to install the perl-CPAN module, I get an error message "Error: Missing Dependency: perl = 4:5.10.0-20.fc9 is needed by package perl-CPAN-1.9205-20.fc9.i386 (fedora)" which is funny (ha ha) because the installed version of Perl is 5.10.0-31.fc9... I don't know whether I'll have problems later? but I think I have solved it by manually downloading perl-CPAN and forcing it to be installed. I was also wondered whether anyone had a thought about whether it's better to use Fedora's pre-compiled modules or just use cpan? I guess the pre-built DBI/DBD modules have been useful, but a lot of the modules I might use are not there so I've always just relied upon the cpan script in the past. -Alan -- Alan D. Mead, Ph.D. Assistant Professor, Institute of Psychology Scientific Adviser, Center for Research and Service Illinois Institute of Technology 3101 South Dearborn, 2nd floor Chicago IL 60616 Skype: alandmead +312.567.5933 (Campus) +815.588.3846 (Home Office) +312.567.3493 (Fax) http://www.iit.edu/~mead http://www.center.iit.edu http://www.alanmead.org Be not afraid of life. Believe that life is worth living, and your belief will help create the fact. -- Henry James From pcmantz at gmail.com Thu Sep 11 12:35:59 2008 From: pcmantz at gmail.com (Paul Mantz) Date: Thu, 11 Sep 2008 14:35:59 -0500 Subject: [Chicago-talk] cpan problems in Fedora 9 In-Reply-To: <48C91228.2030503@alanmead.org> References: <48C91228.2030503@alanmead.org> Message-ID: <42f28fe0809111235i644a66d4pbf828518a59c4af5@mail.gmail.com> Fedora maintainers hold the position that you're SOL if you're trying to install things from CPAN yourself. You should always look to the fedora repositories first to see if a package is available there; as it's made specifically for your operating system, and you don't have to worry about compiling. On Thu, Sep 11, 2008 at 7:42 AM, Alan Mead wrote: > I know this isn't a Fedora mailing list but if any of use F9, I think you > may have solved this problem and some of you may know what level of support > Perl has in Fedora these days. > > I've previously used FC3 & FC4, and in F9 the cpan script is apparently > split off as a separate rpm (which is inconvenient). When I tried to use > yum to install the perl-CPAN module, I get an error message "Error: Missing > Dependency: perl = 4:5.10.0-20.fc9 is needed by package > perl-CPAN-1.9205-20.fc9.i386 (fedora)" which is funny (ha ha) because the > installed version of Perl is 5.10.0-31.fc9... I don't know whether I'll > have problems later? but I think I have solved it by manually downloading > perl-CPAN and forcing it to be installed. > > I was also wondered whether anyone had a thought about whether it's better > to use Fedora's pre-compiled modules or just use cpan? I guess the > pre-built DBI/DBD modules have been useful, but a lot of the modules I might > use are not there so I've always just relied upon the cpan script in the > past. > > -Alan > > -- > Alan D. Mead, Ph.D. Assistant Professor, Institute of Psychology > Scientific Adviser, Center for Research and Service > Illinois Institute of Technology > 3101 South Dearborn, 2nd floor > Chicago IL 60616 > > Skype: alandmead > +312.567.5933 (Campus) > +815.588.3846 (Home Office) > +312.567.3493 (Fax) > > http://www.iit.edu/~mead > http://www.center.iit.edu > http://www.alanmead.org > > Be not afraid of life. Believe that life is worth living, and your belief > will help create the fact. > -- Henry James > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > -- Paul Mantz http://www.mcpantz.org Zmanda - Open source backup and recovery http://www.zmanda.com/ From michael at potter.name Thu Sep 11 19:30:17 2008 From: michael at potter.name (Michael Potter) Date: Thu, 11 Sep 2008 21:30:17 -0500 Subject: [Chicago-talk] undef values in arrays. Message-ID: <2379dacc0809111930s6e24ac6bt670ff4dd9f6b98db@mail.gmail.com> This statement: print $Count . " " . join(", ", @a) . "\n"; Produces this errors message: Use of uninitialized value in join or string at ./TransferTables.pl line 4154. The array is a result of this statement: my @a = $sth_s->fetchrow_array I presume I have a NULL value in my database and it come back as a undef in the array. I rarely allow NULL values in a database so I don't know that from experience. Anyway, Is there a graceful way to replace the udef values in @a with the string ""? That way I will see them and I will not get the warning message. Thanks, -- Michael Potter From andy at petdance.com Thu Sep 11 19:32:21 2008 From: andy at petdance.com (Andy Lester) Date: Thu, 11 Sep 2008 21:32:21 -0500 Subject: [Chicago-talk] undef values in arrays. In-Reply-To: <2379dacc0809111930s6e24ac6bt670ff4dd9f6b98db@mail.gmail.com> References: <2379dacc0809111930s6e24ac6bt670ff4dd9f6b98db@mail.gmail.com> Message-ID: > The array is a result of this statement: > my @a = $sth_s->fetchrow_array > > I presume I have a NULL value in my database and it come back as a > undef in the array. Don't presume. use Data::Dumper; print Dumper( \@a ); > Anyway, Is there a graceful way to replace the udef values in @a with > the string ""? @pretty = map { defined $_ ? $_ : '' } @a; xoa -- Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance From joshua.mcadams at gmail.com Sat Sep 13 09:00:20 2008 From: joshua.mcadams at gmail.com (Joshua McAdams) Date: Sat, 13 Sep 2008 11:00:20 -0500 Subject: [Chicago-talk] [WindyCity-pm] Chicago.pm Meeting: September 23rd In-Reply-To: <2715accf0809071845s39a2aaa5vc7e24fa8a99bb445@mail.gmail.com> References: <49d805d70809061424j6b4cb757l2e990116f0e3d658@mail.gmail.com> <2715accf0809071845s39a2aaa5vc7e24fa8a99bb445@mail.gmail.com> Message-ID: <49d805d70809130900p377f8d44mf5029b36949bd269@mail.gmail.com> Sounds like we have a talk... I can do my Open Flash Chart and Perl talk too if there is time and interest. I'll get the announcement up on the website soon. I'll probably also create an evite or meetup thing for people to RSVP. Any preference? My only preference is that I don't have to pay for it :) On Sun, Sep 7, 2008 at 8:45 PM, brian d foy wrote: > On Sat, Sep 6, 2008 at 2:24 PM, Joshua McAdams wrote: >> We are planning on having a Chicago.pm meeting on Tuesday September >> 23rd at 7pm. Unless we run into issues, the meeting will be downtown >> at the Google offices at 20 W Kinzie. > > I've made a lot of progress with the BackPAN indexing stuff and have a > lot to show: > > http://use.perl.org/~brian_d_foy/journal/37375 > > -- > brian d foy > http://www.pair.com/~comdog/ > _______________________________________________ > WindyCity-pm mailing list > WindyCity-pm at pm.org > http://mail.pm.org/mailman/listinfo/windycity-pm > From fasteliteprogrammer at yahoo.com Sat Sep 13 11:33:22 2008 From: fasteliteprogrammer at yahoo.com (Craig Petty) Date: Sat, 13 Sep 2008 11:33:22 -0700 (PDT) Subject: [Chicago-talk] unbuntu 8.04 and perl-support gvim Message-ID: <404903.41210.qm@web36506.mail.mud.yahoo.com> i get this error and i not sure what it means and what i should do Can't stat /usr/local/share/perl/5.8.8: No such file or directory at /home/csyntax/.vim/perl-support/scripts/pmdesc3.pl line 243 Can't stat /usr/local/lib/perl/5.8.8: No such file or directory at /home/csyntax/.vim/perl-support/scripts/pmdesc3.pl line 243 Can't stat /usr/local/lib/site_perl: No such file or directory at /home/csyntax/.vim/perl-support/scripts/pmdesc3.pl line 243 Could not eval ' package ExtUtils::MakeMaker::_version; no strict; local $mod_perl::VERSION; From tprinty at mail.edisonave.net Sat Sep 13 11:37:50 2008 From: tprinty at mail.edisonave.net (Tom Printy) Date: Sat, 13 Sep 2008 13:37:50 -0500 Subject: [Chicago-talk] unbuntu 8.04 and perl-support gvim In-Reply-To: <404903.41210.qm@web36506.mail.mud.yahoo.com> References: <404903.41210.qm@web36506.mail.mud.yahoo.com> Message-ID: <1221331070.12440.11.camel@dresser> did you un-install perl? On Sat, 2008-09-13 at 11:33 -0700, Craig Petty wrote: > i get this error and i not sure what it means and what i should do > > Can't stat /usr/local/share/perl/5.8.8: No such file or directory > at /home/csyntax/.vim/perl-support/scripts/pmdesc3.pl line 243 > Can't stat /usr/local/lib/perl/5.8.8: No such file or directory > at /home/csyntax/.vim/perl-support/scripts/pmdesc3.pl line 243 > Can't stat /usr/local/lib/site_perl: No such file or directory > at /home/csyntax/.vim/perl-support/scripts/pmdesc3.pl line 243 > Could not eval ' > package ExtUtils::MakeMaker::_version; > no strict; > > local $mod_perl::VERSION; > > > > > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk From fasteliteprogrammer at yahoo.com Sat Sep 13 16:02:13 2008 From: fasteliteprogrammer at yahoo.com (Craig Petty) Date: Sat, 13 Sep 2008 16:02:13 -0700 (PDT) Subject: [Chicago-talk] unbuntu 8.04 and perl-support gvim In-Reply-To: <1221331070.12440.11.camel@dresser> Message-ID: <493821.60724.qm@web36507.mail.mud.yahoo.com> NO i download emacs and that works alot better.Thanks for the help. --- On Sat, 9/13/08, Tom Printy wrote: > From: Tom Printy > Subject: Re: [Chicago-talk] unbuntu 8.04 and perl-support gvim > To: "Chicago.pm chatter" > Date: Saturday, September 13, 2008, 1:37 PM > did you un-install perl? > > > On Sat, 2008-09-13 at 11:33 -0700, Craig Petty wrote: > > i get this error and i not sure what it means and what > i should do > > > > Can't stat /usr/local/share/perl/5.8.8: No such > file or directory > > at /home/csyntax/.vim/perl-support/scripts/pmdesc3.pl > line 243 > > Can't stat /usr/local/lib/perl/5.8.8: No such file > or directory > > at /home/csyntax/.vim/perl-support/scripts/pmdesc3.pl > line 243 > > Can't stat /usr/local/lib/site_perl: No such file > or directory > > at /home/csyntax/.vim/perl-support/scripts/pmdesc3.pl > line 243 > > Could not eval ' > > package ExtUtils::MakeMaker::_version; > > no strict; > > > > local $mod_perl::VERSION; > > > > > > > > > > > > _______________________________________________ > > Chicago-talk mailing list > > Chicago-talk at pm.org > > http://mail.pm.org/mailman/listinfo/chicago-talk > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk From joshua.mcadams at gmail.com Sun Sep 14 16:14:08 2008 From: joshua.mcadams at gmail.com (Joshua McAdams) Date: Sun, 14 Sep 2008 16:14:08 -0700 Subject: [Chicago-talk] Attendees for Chicago.pm Meeting September 23rd Message-ID: <0016369201ed94bb030456e34630@google.com> If you have trouble viewing or submitting this form, you can fill it out online: https://spreadsheets.google.com/viewform?key=pOCmTCN6VWDaV1bIjiUwBXA Attendees for Chicago.pm Meeting September 23rd The monthly Chicago.pm meeting will be held at the Google offices (20 W Kinzie) on September 23rd 2008 at 7:00 pm Sign up to get on the list of attendees. Meeting topics will include brian foy talking about his work on indexing Backpan, the full history of CPAN, discussion of what we should do with the Chicago.pm site, and possibly a presentation on Open Flash Chart. * Required Please Enter Your Name * Please enter your name for the attendee list. If you are bringing someone, please submit this from for each person. Powered by Google Docs Terms of Service - Additional Terms -------------- next part -------------- An HTML attachment was scrubbed... URL: From lembark at wrkhors.com Mon Sep 15 15:28:32 2008 From: lembark at wrkhors.com (Steven Lembark) Date: Mon, 15 Sep 2008 22:28:32 +0000 Subject: [Chicago-talk] cpan problems in Fedora 9 In-Reply-To: <48C91228.2030503@alanmead.org> References: <48C91228.2030503@alanmead.org> Message-ID: <48CEE190.4080000@wrkhors.com> > I was also wondered whether anyone had a thought about whether it's > better to use Fedora's pre-compiled modules or just use cpan? I guess > the pre-built DBI/DBD modules have been useful, but a lot of the modules > I might use are not there so I've always just relied upon the cpan > script in the past. Given the issues with RH's Perl I'd use one built from scratch for all of my own work. What I've always done is install my own perl in /opt/perl5 and keep it up to date with -MCPAN. That leaves the vendor's perl in place where only their updates touch it: neither of us can break one another. From lembark at wrkhors.com Mon Sep 15 15:38:18 2008 From: lembark at wrkhors.com (Steven Lembark) Date: Mon, 15 Sep 2008 22:38:18 +0000 Subject: [Chicago-talk] undef values in arrays. In-Reply-To: <2379dacc0809111930s6e24ac6bt670ff4dd9f6b98db@mail.gmail.com> References: <2379dacc0809111930s6e24ac6bt670ff4dd9f6b98db@mail.gmail.com> Message-ID: <48CEE3DA.8070503@wrkhors.com> > This statement: > print $Count . " " . join(", ", @a) . "\n"; > > Produces this errors message: > Use of uninitialized value in join or string at ./TransferTables.pl line 4154. Error or warning? Using an undef shouldn't be fatal unless someone makes it explicit (as in defined or die... or an __WARN__ handler that dies). > The array is a result of this statement: > my @a = $sth_s->fetchrow_array > I presume I have a NULL value in my database and it come back as a > undef in the array. Yup. > I rarely allow NULL values in a database so I don't know > that from experience. Yup. If you use Oracle there ain't no other way since they don't provide the only reasonable default for strings: '' is converted to a NULL. If you use Postgres, MySQL, Sybase or something else sane you can avoid this by using the empty string as a default. One way out is modify the query to include "foo is not null" or @rowz = grep { $_->[ blah ] } @rowz; > Anyway, Is there a graceful way to replace the udef values in @a with > the string ""? my $null = ''; my $rowz = $sth->fetchrow_array( ... ); for( @$rowz ) { for( @$_ ) { defined or next; $_ = $null; } } > That way I will see them and I will not get the warning > message. Proably better off hacking the SQL to just remove records with NULL values from being processed and leave the warning (or more detailed one with a key) for the records missing values. From chicago.pm at galumph.com Mon Sep 15 17:26:41 2008 From: chicago.pm at galumph.com (Elliot Shank) Date: Mon, 15 Sep 2008 19:26:41 -0500 Subject: [Chicago-talk] cpan problems in Fedora 9 In-Reply-To: <48CEE190.4080000@wrkhors.com> References: <48C91228.2030503@alanmead.org> <48CEE190.4080000@wrkhors.com> Message-ID: <48CEFD41.6060101@galumph.com> Steven Lembark wrote: >> I was also wondered whether anyone had a thought about whether it's >> better to use Fedora's pre-compiled modules or just use cpan? I guess >> the pre-built DBI/DBD modules have been useful, but a lot of the >> modules I might use are not there so I've always just relied upon the >> cpan script in the past. > > Given the issues with RH's Perl I'd use > one built from scratch for all of my own > work. Yeah, if you haven't read this, you should: http://blog.vipul.net/2008/08/24/redhat-perl-what-a-tragedy/ > What I've always done is install my own > perl in /opt/perl5 and keep it up to date > with -MCPAN. That leaves the vendor's > perl in place where only their updates > touch it: neither of us can break one > another. Especially in the face of upgrading modules that are included by the vendor. With my own perl, I can do whatever I want without worrying that I'll break anything else. From amead2 at alanmead.org Mon Sep 15 18:19:13 2008 From: amead2 at alanmead.org (Alan Mead) Date: Mon, 15 Sep 2008 20:19:13 -0500 Subject: [Chicago-talk] cpan problems in Fedora 9 In-Reply-To: <48CEFD41.6060101@galumph.com> References: <48C91228.2030503@alanmead.org> <48CEE190.4080000@wrkhors.com> <48CEFD41.6060101@galumph.com> Message-ID: <48CF0991.4050404@alanmead.org> Elliot Shank wrote: > Steven Lembark wrote: >>> I was also wondered whether anyone had a thought about whether it's >>> better to use Fedora's pre-compiled modules or just use cpan? I >>> guess the pre-built DBI/DBD modules have been useful, but a lot of >>> the modules I might use are not there so I've always just relied >>> upon the cpan script in the past. >> >> Given the issues with RH's Perl I'd use >> one built from scratch for all of my own >> work. > > Yeah, if you haven't read this, you should: > http://blog.vipul.net/2008/08/24/redhat-perl-what-a-tragedy/ That's really a drag, but I ran vipul's test code and this bug seems not to be included in F9 for i386. -Alan -- Alan D. Mead, Ph.D. Assistant Professor, Institute of Psychology Scientific Adviser, Center for Research and Service Illinois Institute of Technology 3101 South Dearborn, 2nd floor Chicago IL 60616 Skype: alandmead +312.567.5933 (Campus) +815.588.3846 (Home Office) +312.567.3493 (Fax) http://www.iit.edu/~mead http://www.center.iit.edu http://www.alanmead.org Be not afraid of life. Believe that life is worth living, and your belief will help create the fact. -- Henry James From lembark at wrkhors.com Tue Sep 16 12:14:50 2008 From: lembark at wrkhors.com (Steven Lembark) Date: Tue, 16 Sep 2008 19:14:50 +0000 Subject: [Chicago-talk] cpan problems in Fedora 9 In-Reply-To: <48CEFD41.6060101@galumph.com> References: <48C91228.2030503@alanmead.org> <48CEE190.4080000@wrkhors.com> <48CEFD41.6060101@galumph.com> Message-ID: <48D005AA.4020704@wrkhors.com> > Especially in the face of upgrading modules that are included by the > vendor. With my own perl, I can do whatever I want without worrying > that I'll break anything else. More likely they'll break you. Aside from the known issues with RH, most of the perl's in the distro's include threading and are compiled with debug support (i.e., '-g'). Q: How often have you ever run gdb on perl? Given the likely answer, why pay the price for -g? I'd also rather strip the non- essential symbols (for the number of time's I'll be tracing core dumps of perl it won't affect me). Putting the stuff in /opt also allows me to get it off of my root partition, which leaves that much less to deal with in case of a system recovery (or backup). From lembark at wrkhors.com Tue Sep 16 12:16:34 2008 From: lembark at wrkhors.com (Steven Lembark) Date: Tue, 16 Sep 2008 19:16:34 +0000 Subject: [Chicago-talk] cpan problems in Fedora 9 In-Reply-To: <48CF0991.4050404@alanmead.org> References: <48C91228.2030503@alanmead.org> <48CEE190.4080000@wrkhors.com> <48CEFD41.6060101@galumph.com> <48CF0991.4050404@alanmead.org> Message-ID: <48D00612.8090209@wrkhors.com> > That's really a drag, but I ran vipul's test code and this bug seems not > to be included in F9 for i386. Which is GREAT if you really are running an i386 processor... anyone with a 486-or-higher CPU would want to compile their copy of perl to take advantage of the last decade's improvements in chip design. From joshua.mcadams at gmail.com Sat Sep 20 08:34:59 2008 From: joshua.mcadams at gmail.com (Joshua McAdams) Date: Sat, 20 Sep 2008 08:34:59 -0700 Subject: [Chicago-talk] Reminder: Attendees for Chicago.pm Meeting September 23rd Message-ID: <0016e644cf12972fe30457558f85@google.com> If you have trouble viewing or submitting this form, you can fill it out online: https://spreadsheets.google.com/viewform?key=pOCmTCN6VWDaV1bIjiUwBXA Attendees for Chicago.pm Meeting September 23rd The monthly Chicago.pm meeting will be held at the Google offices (20 W Kinzie) on September 23rd 2008 at 7:00 pm Sign up to get on the list of attendees. Meeting topics will include brian foy talking about his work on indexing Backpan, the full history of CPAN, discussion of what we should do with the Chicago.pm site, and possibly a presentation on Open Flash Chart. * Required Please Enter Your Name * Please enter your name for the attendee list. If you are bringing someone, please submit this from for each person. Powered by Google Docs Terms of Service - Additional Terms -------------- next part -------------- An HTML attachment was scrubbed... URL: From joshua.mcadams at gmail.com Mon Sep 22 20:09:06 2008 From: joshua.mcadams at gmail.com (Joshua McAdams) Date: Mon, 22 Sep 2008 22:09:06 -0500 Subject: [Chicago-talk] Reminder: Attendees for Chicago.pm Meeting September 23rd In-Reply-To: <0016e644cf12972fe30457558f85@google.com> References: <0016e644cf12972fe30457558f85@google.com> Message-ID: <49d805d70809222009h17be3f4dtbbd8ad93b03d3168@mail.gmail.com> Wow, we have a big group signed up for the meeting tomorrow.... exciting! The main meeting room is taken because they are setting up for an early morning meeting on Wednesday, so when you get to the office (20 W Kinzie) go to the 7th floor. There is an alternative meeting space that we can use. Also, I'm going to pick up some food, so if you want to show up early (say around 6:30) there will be sandwiches or pizza or something similarly cater-able. See you all tomorrow. On Sat, Sep 20, 2008 at 10:34 AM, Joshua McAdams wrote: > If you have trouble viewing or submitting this form, you can fill it out > online: > https://spreadsheets.google.com/viewform?key=pOCmTCN6VWDaV1bIjiUwBXA > > Attendees for Chicago.pm Meeting September 23rd > > The monthly Chicago.pm meeting will be held at the Google offices (20 W > Kinzie) on September 23rd 2008 at 7:00 p.m. Sign up to get on the list of > attendees. Meeting topics will include brian foy talking about his work on > indexing Backpan, the full history of CPAN, discussion of what we should do > with the Chicago.pm site, and possibly a presentation on Open Flash Chart. > > ________________________________ > * Required > Please Enter Your Name * Please enter your name for the attendee list. If > you are bringing someone, please submit this from for each person. > > Powered by Google Docs > > Terms of Service - Additional Terms > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > From vjcang at gmail.com Thu Sep 25 18:04:10 2008 From: vjcang at gmail.com (Vijay Kumar) Date: Thu, 25 Sep 2008 20:04:10 -0500 Subject: [Chicago-talk] Replacing consecutive newlines with a single newline Message-ID: Hi, I need to do it as part of unix command line invocation. I thought I knew it but after trying for almost one hour I am still unable to get it right. Your ideas much appreciated. perl -pe 's/(\n)+/\1/g' inputfile perl -pe 's/(\n)+/\1/sg' inputfile are not working. I see the following reduces consecutive 'x' s to a single 'x' perl -pe 's/(x)+/\1/g' inputfile Not sure why it is not doing it for newline character. May be it is very stupid mistake. Thanks VIJAY From me at heyjay.com Thu Sep 25 18:09:01 2008 From: me at heyjay.com (Jay Strauss) Date: Thu, 25 Sep 2008 20:09:01 -0500 Subject: [Chicago-talk] Replacing consecutive newlines with a single newline In-Reply-To: References: Message-ID: Is it that the shell is eating your "\" chars? Will: perl -pe 's/(\\n)+/\\1/g' inputfile work? On Thu, Sep 25, 2008 at 8:04 PM, Vijay Kumar wrote: > Hi, > I need to do it as part of unix command line invocation. > I thought I knew it but after trying for almost one hour I am still > unable to get it right. > Your ideas much appreciated. > > perl -pe 's/(\n)+/\1/g' inputfile > perl -pe 's/(\n)+/\1/sg' inputfile > are not working. > > I see the following reduces consecutive 'x' s to a single 'x' > perl -pe 's/(x)+/\1/g' inputfile > > Not sure why it is not doing it for newline character. May be it is > very stupid mistake. > > Thanks > VIJAY > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > From merlyn at stonehenge.com Thu Sep 25 18:31:20 2008 From: merlyn at stonehenge.com (Randal L. Schwartz) Date: Thu, 25 Sep 2008 18:31:20 -0700 Subject: [Chicago-talk] Replacing consecutive newlines with a single newline In-Reply-To: (Vijay Kumar's message of "Thu, 25 Sep 2008 20:04:10 -0500") References: Message-ID: <868wtfg0bb.fsf@blue.stonehenge.com> >>>>> "Vijay" == Vijay Kumar writes: Vijay> Not sure why it is not doing it for newline character. May be it is Vijay> very stupid mistake. Because $_ contains a single newline character, always. Perhaps you want to simply delete any entirely blank lines.. . perl -ne 'print if /\S/' Or even simpler: grep . (That's grep, and a single dot.) -- 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 Andy_Bach at wiwb.uscourts.gov Thu Sep 25 18:46:21 2008 From: Andy_Bach at wiwb.uscourts.gov (Andy_Bach at wiwb.uscourts.gov) Date: Thu, 25 Sep 2008 20:46:21 -0500 Subject: [Chicago-talk] Replacing consecutive newlines with a single newline In-Reply-To: References: Message-ID: > I thought I knew it but after trying for almost one hour I am still > unable to get it right. Your ideas much appreciated. perl -pe 's/(\n)+/\1/g' inputfile perl -pe 's/(\n)+/\1/sg' inputfile > are not working. -p means read a line at at time, lines being text ending w/ "\n". If you want to eat the whole file, there's the 'slurpy' mode using the "dash zero" command line switch perl -0777 -pe 's/(\n)+/\1/g' unputfile see perldoc perlrun: -0[octal/hexadecimal] specifies the input record separator ($/) as an octal or hexadecimal number. ... The special value 00 will cause Perl to slurp files in paragraph mode. The value 0777 will cause Perl to slurp files whole because there is no legal byte with that value. In theory: perl -0777 -pe 's/\n+/\n/g' unputfile would be faster/cheaper as you aren't asking to save the match (as you already know what the replace is) but ... a ------------------- Andy Bach Systems Mangler Internet: andy_bach at wiwb.uscourts.gov Voice: (608) 261-5738 Fax: 264-5932 It is easier to write an incorrect program than understand a correct one. Alan Perlis http://www.cs.yale.edu/quotes.html From vjcang at gmail.com Thu Sep 25 19:31:06 2008 From: vjcang at gmail.com (Vijay Kumar) Date: Thu, 25 Sep 2008 21:31:06 -0500 Subject: [Chicago-talk] Replacing consecutive newlines with a single newline In-Reply-To: References: Message-ID: Wow...that solves my problem. Thanks Andy, Randall and Jay. I am thrilled to get responses from you. However, I would like to use the following one because I think it is more readable. perl -pe 'BEGIN{undef $/} s/\n+/\n/g' inputfile VIJAY On 25/09/2008, Andy_Bach at wiwb.uscourts.gov wrote: >> I thought I knew it but after trying for almost one hour I am still >> unable to get it right. > Your ideas much appreciated. > > perl -pe 's/(\n)+/\1/g' inputfile > perl -pe 's/(\n)+/\1/sg' inputfile >> are not working. > > -p means read a line at at time, lines being text ending w/ "\n". If you > want to eat the whole file, there's the 'slurpy' mode using the "dash zero" > command line switch > perl -0777 -pe 's/(\n)+/\1/g' unputfile > > see perldoc perlrun: > -0[octal/hexadecimal] > specifies the input record separator ($/) as an octal or hexadecimal > number. > ... > The special value 00 will cause Perl to slurp files in paragraph mode. The > value 0777 will cause Perl to > slurp files whole because there is no legal byte with that value. > > In theory: > perl -0777 -pe 's/\n+/\n/g' unputfile > > would be faster/cheaper as you aren't asking to save the match (as you > already know what the replace is) but ... > > a > ------------------- > Andy Bach > Systems Mangler > Internet: andy_bach at wiwb.uscourts.gov > Voice: (608) 261-5738 Fax: 264-5932 > > It is easier to write an incorrect program than understand > a correct one. > Alan Perlis http://www.cs.yale.edu/quotes.html > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > -- VIJAY From lembark at wrkhors.com Fri Sep 26 09:54:06 2008 From: lembark at wrkhors.com (Steven Lembark) Date: Fri, 26 Sep 2008 12:54:06 -0400 Subject: [Chicago-talk] Replacing consecutive newlines with a single newline In-Reply-To: References: Message-ID: <48DD13AE.5040202@wrkhors.com> Vijay Kumar wrote: > Wow...that solves my problem. > Thanks Andy, Randall and Jay. > I am thrilled to get responses from you. > > However, I would like to use the following one because I think it is > more readable. > > perl -pe 'BEGIN{undef $/} s/\n+/\n/g' inputfile All this is doing is rejecting lines with nothing on them: print -n -e 'print unless /^\n/' This can also be written as perl -n -e 'print if /./' Since since the '.' won't match a newline and you'll only print lines with SOMEthing else on them. Note: This isn't golf: depending on the size of your file processing it by line can actually speed things up and saves you from creating huge input buffers for no good reason (see URI's description of Slurp for more). You also have to examine fewer characters (just the first one on each line) rather than searching and replacing the entire input buffer. -- Steven Lembark 85-09 90th St. Workhorse Computing Woodhaven, NY, 11421 lembark at wrkhors.com +1 888 359 3508 From Andy_Bach at wiwb.uscourts.gov Fri Sep 26 09:59:37 2008 From: Andy_Bach at wiwb.uscourts.gov (Andy_Bach at wiwb.uscourts.gov) Date: Fri, 26 Sep 2008 11:59:37 -0500 Subject: [Chicago-talk] Replacing consecutive newlines with a single newline In-Reply-To: <48DD13AE.5040202@wrkhors.com> References: <48DD13AE.5040202@wrkhors.com> Message-ID: Or > This can also be written as perl -n -e 'print if /./' or - fore! [1]: perl -p -e 'next if /^$/' drat, no shorter. a [1] http://perlgolf.sourceforge.net/ ------------------- Andy Bach Systems Mangler Internet: andy_bach at wiwb.uscourts.gov Voice: (608) 261-5738 Fax: 264-5932 It is easier to write an incorrect program than understand a correct one. Alan Perlis http://www.cs.yale.edu/quotes.html From lembark at wrkhors.com Fri Sep 26 14:39:13 2008 From: lembark at wrkhors.com (Steven Lembark) Date: Fri, 26 Sep 2008 17:39:13 -0400 Subject: [Chicago-talk] Replacing consecutive newlines with a single newline In-Reply-To: References: <48DD13AE.5040202@wrkhors.com> Message-ID: <48DD5681.1080202@wrkhors.com> >> This can also be written as > > perl -n -e 'print if /./' > > or - fore! [1]: > perl -p -e 'next if /^$/' > > drat, no shorter. Can't win 'em all :-) -- Steven Lembark 85-09 90th St. Workhorse Computing Woodhaven, NY, 11421 lembark at wrkhors.com +1 888 359 3508 From vjcang at gmail.com Fri Sep 26 22:02:01 2008 From: vjcang at gmail.com (Vijay Kumar) Date: Fri, 26 Sep 2008 23:02:01 -0600 Subject: [Chicago-talk] Replacing consecutive newlines with a single newline In-Reply-To: <48DD5681.1080202@wrkhors.com> References: <48DD13AE.5040202@wrkhors.com> <48DD5681.1080202@wrkhors.com> Message-ID: Sorry for not being clear about the problem. The intention was to replace consecutive 2+ multiple blank lines with 2 blank lines. Today I checked-in some code like below that formats Oracle's spool output. perl -0777 -pi -e 's/^SQL>//mg; s/\n{2,}/\n\n/g' inputfile cat inputfile | mailx .... and obviously giving credit to Andy in the comments and explaining about 0777. Thanks VIJAY On 26/09/2008, Steven Lembark wrote: > >>> This can also be written as >> >> perl -n -e 'print if /./' >> >> or - fore! [1]: >> perl -p -e 'next if /^$/' >> >> drat, no shorter. > > Can't win 'em all :-) > > -- > Steven Lembark 85-09 90th St. > Workhorse Computing Woodhaven, NY, 11421 > lembark at wrkhors.com +1 888 359 3508 > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > -- VIJAY From merlyn at stonehenge.com Sat Sep 27 00:11:29 2008 From: merlyn at stonehenge.com (Randal L. Schwartz) Date: Sat, 27 Sep 2008 00:11:29 -0700 Subject: [Chicago-talk] Replacing consecutive newlines with a single newline In-Reply-To: (Vijay Kumar's message of "Fri, 26 Sep 2008 23:02:01 -0600") References: <48DD13AE.5040202@wrkhors.com> <48DD5681.1080202@wrkhors.com> Message-ID: <86fxnm83mm.fsf@blue.stonehenge.com> >>>>> "Vijay" == Vijay Kumar writes: Vijay> perl -0777 -pi -e 's/^SQL>//mg; s/\n{2,}/\n\n/g' inputfile Vijay> cat inputfile | mailx .... Why do people use a useless cat? Why not just: cat inputfile | cat | cat | cat | cat | mailx ... it's just about as wasteful? -- 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 tigerpeng2001 at yahoo.com Sat Sep 27 05:45:53 2008 From: tigerpeng2001 at yahoo.com (tiger peng) Date: Sat, 27 Sep 2008 05:45:53 -0700 (PDT) Subject: [Chicago-talk] Replacing consecutive newlines with a single newline Message-ID: <166044.46238.qm@web58704.mail.re1.yahoo.com> Vijay> perl -0777 -pi -e 's/^SQL>//mg; s/\n{2,}/\n\n/g' inputfile Vijay> cat inputfile | mailx .... Why do people use a useless cat? I think they are Perlists from Windows' world, who should read some books about UNIX, such as Learning the UNIX Operating System, UNIX Power Tools, etc -------------- next part -------------- An HTML attachment was scrubbed... URL: From lembark at wrkhors.com Sun Sep 28 13:49:43 2008 From: lembark at wrkhors.com (Steven Lembark) Date: Sun, 28 Sep 2008 16:49:43 -0400 Subject: [Chicago-talk] Replacing consecutive newlines with a single newline In-Reply-To: <86fxnm83mm.fsf@blue.stonehenge.com> References: <48DD13AE.5040202@wrkhors.com> <48DD5681.1080202@wrkhors.com> <86fxnm83mm.fsf@blue.stonehenge.com> Message-ID: <48DFEDE7.4020408@wrkhors.com> > Why do people use a useless cat? > > Why not just: > > cat inputfile | cat | cat | cat | cat | mailx ... > > it's just about as wasteful? Because they see things like this: All done. Patch successfully generated. To apply the patch to the system, proceed as follows: # cd /usr/src/linux # cat /scratch/DriverInstall/sk98lin_v10.61.3.3_2.6.25_patch | patch -p1 from a Marvell network driver. The fools who write these don't understand *NIX or shell programming. Having seen it there they end up stuck with it as the picture in their head: oh, cat, I get it now... blech... -- Steven Lembark 85-09 90th St. Workhorse Computing Woodhaven, NY, 11421 lembark at wrkhors.com +1 888 359 3508 From lembark at wrkhors.com Sun Sep 28 14:16:11 2008 From: lembark at wrkhors.com (Steven Lembark) Date: Sun, 28 Sep 2008 17:16:11 -0400 Subject: [Chicago-talk] Replacing consecutive newlines with a single newline In-Reply-To: References: <48DD13AE.5040202@wrkhors.com> <48DD5681.1080202@wrkhors.com> Message-ID: <48DFF41B.3030402@wrkhors.com> Vijay Kumar wrote: > Sorry for not being clear about the problem. The intention was to > replace consecutive 2+ multiple blank lines with 2 blank lines. > > Today I checked-in some code like below that formats Oracle's spool output. > > perl -0777 -pi -e 's/^SQL>//mg; s/\n{2,}/\n\n/g' inputfile > cat inputfile | mailx .... > > and obviously giving credit to Andy in the comments and explaining about 0777. All you are trying to do is remove blank lines. perl -n -e 'print if /./' $file or perl -n -e 'print if /./' < $file will do that with a minimum of command line switches and regexen (not to mention cats). -- Steven Lembark 85-09 90th St. Workhorse Computing Woodhaven, NY, 11421 lembark at wrkhors.com +1 888 359 3508