From lorn at lornlab.org Thu Sep 1 07:05:59 2011 From: lorn at lornlab.org (Lindolfo Rodrigues) Date: Thu, 1 Sep 2011 11:05:59 -0300 Subject: [sf-perl] Is there a "remote sysadmin" out there? In-Reply-To: <4E5EBE7F.3020504@agliodbs.com> References: <4E5EBE7F.3020504@agliodbs.com> Message-ID: This guys support github.com http://www.anchor.com.au/ On Wed, Aug 31, 2011 at 8:06 PM, Josh Berkus wrote: > Perlmongers, > > I know someone who is looking for a contract sysadmin company, sort of a > "remote" or "virtual" sysadmin. They want a company and not an > individual partly because they want 24-hour on-call. > > Does such a thing exist? Anyone know a company? > > -- > Josh Berkus > PostgreSQL Experts Inc. > http://pgexperts.com > _______________________________________________ > SanFrancisco-pm mailing list > SanFrancisco-pm at pm.org > http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cweyl at alumni.drew.edu Thu Sep 1 15:06:57 2011 From: cweyl at alumni.drew.edu (Chris Weyl) Date: Thu, 1 Sep 2011 15:06:57 -0700 Subject: [sf-perl] [poll] App::Perlbrew In-Reply-To: References: Message-ID: On Wed, Aug 31, 2011 at 10:59 AM, Fred Moyer wrote: > This is a quick poll to see who uses App::Perlbrew and how they use it. > I used local::lib at one point to manage installing from the CPAN into $HOME, but it was always a pain... Plus things could get weirdly out of sync at the next "yum update". Now I use perlbrew on my personal and $work machines, and I don't ever really need to think about managing it -- it just works. While I generally don't need to, the ability to switch between different levels of Perl for validation/testing is near-trivial. -Chris -- Chris Weyl Ex astris scientia -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter at thoeny.org Fri Sep 9 16:33:17 2011 From: peter at thoeny.org (Peter Thoeny) Date: Fri, 9 Sep 2011 16:33:17 -0700 Subject: [sf-perl] [blog] New blog: How to Run a Long Background Process in CGI Context Message-ID: I learned a lot about Ajax and daemons in CGI context when creating a new TWiki plugin. I thought it might be useful to share this, so I wrote this blog post: http://twiki.org/cgi-bin/view/Blog/BlogEntry201109x2 Blog: How to Run a Long Background Process in CGI Context Summary: Web applications need to respond quickly to user actions. From a usability point of view, anything that takes longer than a second or two will distract the user from the task at hand. This blog has hands-on Perl and JavaScript code and explains how to span a background daemon process from a Perl CGI script and how to check on progress using Ajax calls. The example is done with code of TWiki's BackupRestorePlugin, however it is generic enough to be used in any CGI programming environment. Looking forward for feedback (via blog comment or e-mail). Cheers, Peter PS: Please feel free to spread the word in your coder circles on FB, Twitter, G+, LinkedIn, etc. Possible tweet: How to Run a Long Background Process in CGI Context: http://bit.ly/mSOPvV - has hands on coding examples. #perl #cgi #ajax #daemon #process -- * Peter Thoeny Peter[at]Thoeny.org * http://twiki.net - Twiki, Inc. - Enterprise Agility * http://twiki.org - is your team already TWiki enabled? * Knowledge cannot be managed, it can be discovered and shared * This e-mail is: (_) private (x) ask first (_) public From peter at thoeny.org Mon Sep 12 13:33:12 2011 From: peter at thoeny.org (Peter Thoeny) Date: Mon, 12 Sep 2011 13:33:12 -0700 Subject: [sf-perl] [news] Fwd: [Perlweekly] The current Perl Weekly News - Issue #7 References: <20110912062420.D7A7876E2E8@s6.hostlocal.com> Message-ID: All: I subscribed last week to the Perl Weekly e-mail newsletter and find it quote informative. Sharing it in case you do not yet know of Gabor Szabo's newsletter. FYI, Peter Begin forwarded message: > From: Gabor Szabo > Date: September 11, 2011 11:24:20 PM PDT > To: perlweekly at perlweekly.com > Subject: [Perlweekly] The current Perl Weekly News - Issue #7 > > Perl Weekly > > Issue #7 - September 12, 2011 > > You can read the newsletter on the web, if you prefer. > Hi there, > > It seems the pas week brought us less articles but nevertheless I > found a few interesting ones. > > The Perl Weekly was mentioned in the DevOps Weekly that brought us a > few more subscribers. > > I also found out that the subscribe button of the Perl Weekly was > partially broken due to the same-origin policy enforced in some > browsers more than in others. I fixed this now. I hope. > > Not to the posts: > > Articles > > DotCloud::Environment > Flavio Poletti introduces his 'yet to be fully released' module to > make it easy to handle the environment in DotCloud > > Testing with sqlite > Anthony Pallatto (actualeyes) suggests to use SQLite in your testing > environment instead of the database used in production. Using SQLite > certainly has some advantages but there is the great danger of > anything in production being different from the testing environment. > SQLite can be good to reduce the complexity to setup development and > testing environments but just as you do full test cycles every now > and then (preferably frequently) so should you use a system as close > to the deployment environment as possible. > > Perl says 'Hello I-Programmer' > This is the first article I wrote to the I-Programmer.info web site. > It probably won't be an earth shattering experience for you but it > is my first one on I-Programmer. It is mostly there so I'll have an > in-house article to refer to on how to start using Perl when I write > more complex examples. > > Lessons from running Perl Weekly for the first 6 weeks > This is another article I wrote, this time on my own blog, > describing my experience with this list. It might be interesting to > you if you'd like to look a bit at the details. I am also comparing > the experience with that of Peter Cooper who runs the Ruby Weekly > which was the inspiration to this newsletter. > > Parrot > > Parrot is a foundering project on top of a wonderful vision. > Christoph Otto took off the gloves and started to describe how he > wants Parrot, and more importantly the Parrot development process to > change. This is a link to the opening message on the parrot-dev > mailing list with many important responses. > > Parrot, the Smoke Clears > Andrew Whitworth (aka Whiteknight on black background) takes the > above e-mail discussion and writes a lengthy article about the > interaction between the Parrot and the Rakudo (Perl 6) projects. > Compared with the JVM and the CLR how they have a primary language > but how they have started to be good targets for other languages as > well. > > Code > > Parameterized Roles with MooseX::Declare > Florian Ragwitz (rafl) shows the new, undocumented feature of > MooseX::Declare and points to the Github repository where you could > help improve the documentation. > > Going Postal (with Dancer) > Yanick Champoux (yanick), in his usual colorful way, describes how > he wrote a plugin for Dancer to handle postal fees in Canada. I am > sure if it can be done in Canada it can be done elsewhere as well. > The nice thing is that he even provides a way to save money. Even if > not on the actual postal fees. > > Simple Mojolicious RSS feed > Mark Meyer (mark) gives a nice and simple example on how distribute > updates about changes in a system with a very simple Mojolicious > application. If only the fonts were bigger on this blog... > > How to Run a Long Background Process in a Web App > Peter Thoeny from Twiki explains a way how to handle long running > processes in response to browser requests. This is an ongoing > question that trips a lot of people who want to build a web > interface to an existing system. Eg. a build machine. Unfortunately > this solution does not work on Windows. > > Memory::Usage - Aktuelle Speichernutzung (Current memory usage) in > German > Thomas Fahle gives a code example and explains (in German) how to > check what is the memory usage of the current process. So a script > or application could report its own memory usage. (This is also > Linux/Unix only.) > > Perl 6 > > 'nom' branch is now default, release status > Patrick Michaud (pmichaud) provides us with an update on the status > of the Rakudo development. The next release is further delayed but > the good news that it will already come from the new 'nom' branch > that is the new rewrite of the whole engine. > > -n and -p > This is the third part of the series Carl M?sak has written showing > us how the -n and -p parameters work in Rakudo Perl 6. The others > are on his blog as well. > > Padre > > Fancy syntax checking with Padre > Ahmad M. Zawawi (azawawi) shows a screenshot of his new addition to > Padre, the Perl IDE. You don't even have to wait for the next > release of Padre to use that. You can run it directly from the > development environment. > > Events > > Portuguese Perl Workshop > September 22-23, 2011, Lisbon, Portugal > > OSDC.fr - French Open Source Developers' Conference > September 23-24, 2011, Paris, France > > The Pittsburgh Perl Workshop > October 8-9, 2011, Pittsburgh, PA, USA > > YAPC::Asia > October 13-15, 2011, Tokyo, Japan. The biggest Perl conference in > the world. > > Black Perl 2011 Workshop > September 30 - October 2, 2011, Black Sea, Ukraine > > German Perl workshop > October 19-21, 2011, Frankfurt Am Main, Germany > > London Perl Workshop (LPW2011) > November 12, 2011, London, UK (what a surprise :) > > You joined the Perl Weekly to get weekly e-mails about the Perl > programming language and related topics. > Want to see more? See the archives of all the issues. > Reading this as a non-subscriber? click here to join us free of > charge. > (c) Gabor Szabo > > You can unsubscribe here if you don't want to receive mails any more. > > _______________________________________________ > Perlweekly mailing list > Perlweekly at perlweekly.com > http://mail.perlweekly.com/mailman/listinfo/perlweekly -- * Peter Thoeny Peter[at]Thoeny.org * http://twiki.net - Twiki, Inc. - Enterprise Agility * http://twiki.org - is your team already TWiki enabled? * Knowledge cannot be managed, it can be discovered and shared * This e-mail is: (_) private (x) ask first (_) public -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben at tisdall.org.uk Sat Sep 17 13:08:08 2011 From: ben at tisdall.org.uk (Ben Tisdall) Date: Sat, 17 Sep 2011 21:08:08 +0100 Subject: [sf-perl] London perlmonger in town until Tuesday Message-ID: Dear all, my wife & I are in SF until Tuesday morning, does anybody fancy meeting up for $something? -ben IRC: bentis Twitter: @btisdall From fred at redhotpenguin.com Mon Sep 19 14:55:52 2011 From: fred at redhotpenguin.com (Fred Moyer) Date: Mon, 19 Sep 2011 14:55:52 -0700 Subject: [sf-perl] Fwd: Next week: Brewing Perl In-Reply-To: <634195386.1316466741057.JavaMail.meetcvs@jobs0.meetup.com> References: <634195386.1316466741057.JavaMail.meetcvs@jobs0.meetup.com> Message-ID: Anyone up for an informal meeting this month next Monday instead of the usual Tuesday meeting time? I was going to put together a Perlbrew presentation but have been slammed the past month. Any ideas where to meet up for an informal get together on Monday? ---------- Forwarded message ---------- From: San Francisco Perl Mongers Date: Mon, Sep 19, 2011 at 2:12 PM Subject: Next week: Brewing Perl To: fred at redhotpenguin.com Meetup Reminder San Francisco Perl Mongers [image: Meetup] Brewing Perl will happen on Monday, September 26, 2011 When: Where: Your RSVP: Monday, September 26, 2011 7:00 PM Needs a location Coming soon! I'm going Change Who's going: 1 Perl Mongers See all We'll have a speaker on App::Perlbrew and how you can develop with multiple Perl versions. Details forthcoming. Learn more Follow San Francisco Perl Mongers on: @sfperlmongers LinkedIn Sponsors & Perks: Red Hot Penguin Consulting ? O'Reilly Media ? Mother Jones ? and 2 more Add *info at meetup.com* to your address book to receive all Meetup emails To manage your email settings, click here Meetup, PO Box 4668 #37895 New York, New York 10163-4668 *Meetup HQ in NYC is hiring!* http://www.meetup.com/jobs/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From fred at redhotpenguin.com Mon Sep 19 20:23:25 2011 From: fred at redhotpenguin.com (Fred Moyer) Date: Mon, 19 Sep 2011 20:23:25 -0700 Subject: [sf-perl] Fw: Meetup details changed: Brewing Perl In-Reply-To: <1799518552.1316486976400.JavaMail.meetcvs@jobs0.meetup.com> References: <1799518552.1316486976400.JavaMail.meetcvs@jobs0.meetup.com> Message-ID: <34B759B56E064D8CB8ED385085F76A33@redhotpenguin.com> Rescheduling next week's meeting to our normal day and time, 4th Tuesday at 7pm. Meet up at Quetzal Internet Cafe at 7pm, have your favorite beverage, and hack on some Perl. http://www.meetup.com/San-Francisco-Perl-Mongers/events/32709282/ Forwarded message: > From: Fred Moyer > Reply To: fred at redhotpenguin.com > To: fred at redhotpenguin.com > Date: Monday, September 19, 2011 7:49:36 PM > Subject: Meetup details changed: Brewing Perl > > Meetup > (As you requested, below is a copy of the email you just sent.) > Your Organizer, Fred Moyer, sent the following message to some members of San Francisco Perl Mongers: > > The SF.pm meeting next week has been changed to Tuesday, which is our regular monthly meeting day. Come learn how to use App::Perlbrew at Quetzal Internet Cafe. > > When: Tuesday, September 27, 2011 7:00 PM > Where: Quetzal Internet Cafe > 1234 Polk Street (between Fern St. and Bush St.) > San Francisco, CA 94109 > (415) 673-4181 > If the changes affect your plans to attend, please take a moment to update your RSVP. (You can RSVP "No" or "Yes".) > You can always get in touch with me through the Contact Us (http://www.meetup.com/San-Francisco-Perl-Mongers/suggestion/) link on Meetup. > > > To visit San Francisco Perl Mongers, go here: > http://www.meetup.com/San-Francisco-Perl-Mongers/ > > Add info at meetup.com (mailto:info at meetup.com) to your address book to receive all Meetup emails > > > To manage your email settings, click here (http://www.meetup.com/account/comm/) > > > Meetup, PO Box 4668 #37895 New York, New York 10163-4668 > > > Meetup HQ in NYC is hiring! http://www.meetup.com/jobs/ > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fred at redhotpenguin.com Tue Sep 20 08:38:56 2011 From: fred at redhotpenguin.com (Fred Moyer) Date: Tue, 20 Sep 2011 08:38:56 -0700 Subject: [sf-perl] London perlmonger in town until Tuesday In-Reply-To: References: Message-ID: <0918257EB26F43AAB878C30BBE9D3B96@redhotpenguin.com> Sorry I missed this Ben, if you were here another week I'd say join us for the meeting next $Tuesday. On Saturday, September 17, 2011 at 1:08 PM, Ben Tisdall wrote: > Dear all, > > my wife & I are in SF until Tuesday morning, does anybody fancy > meeting up for $something? > > -ben > > IRC: bentis > Twitter: @btisdall > _______________________________________________ > SanFrancisco-pm mailing list > SanFrancisco-pm at pm.org (mailto:SanFrancisco-pm at pm.org) > http://mail.pm.org/mailman/listinfo/sanfrancisco-pm -------------- next part -------------- An HTML attachment was scrubbed... URL: From doom at kzsu.stanford.edu Wed Sep 21 10:38:53 2011 From: doom at kzsu.stanford.edu (Joseph Brenner) Date: Wed, 21 Sep 2011 10:38:53 -0700 Subject: [sf-perl] [OT] jquery/javascript on Thursday at Noisebridge Message-ID: Slightly off-topic, but I thought I'd mention I'm inviting folks to get together at Noisebridge and work on our jquery/javascript. If you look over at their site, you'll see this event schedule for 7:30pm on 2nd and 4th Thursdays: ? The Balzac Study Group: understanding the modern world. First topic: jquery and javascript. Turing Classroom (2nd and 4th Thursdays) Noisebridge is an odd "hackerspace" on Mission Street between 17th & 18th street, a few blocks from the 16th Street BART. It's next door to a produce market, look for the red and black circuit diagram over the doorway. ?It's upstairs on the 3rd floor: https://www.noisebridge.net/wiki/Noisebridge From hartzell at alerce.com Wed Sep 21 14:58:13 2011 From: hartzell at alerce.com (George Hartzell) Date: Wed, 21 Sep 2011 14:58:13 -0700 Subject: [sf-perl] Help with Alien::SVN and LD_LIBRARY_PATH Message-ID: <20090.24053.525563.576534@gargle.gargle.HOWL> Hi All, lurkers and regulars, I'm working on SLES11 linux systems, Perl 5.14.1. I'm trying to achieve something useful that ultimately needs SVN::Core to work. SVN::Core is provided by Alien::SVN in my world. As Alien::SVN builds it sets LD_RUN_PATH so that it points to its copies of the various subversion libraries that it's compiling and they get used during the tests. It never seems to do anything that ends up pointing LD_RUN_PATH at the ultimate installation directory, or setting rpath, or other linker black magic before it does the install and the result is that perl -MSVN::Core fails with the inability to find it's libraries I can make it work with (bash worldview) export LD_LIBRARY_PATH=/path/to/Alien/SVN but I expected that I would not have to do that. Does anyone out there in sf.pm land know how this is *supposed* to work? Is the requirement to set LD_LIBRARY_PATH what's supposed to happen? g. From relay at pobox.com Wed Sep 21 15:25:38 2011 From: relay at pobox.com (Tony Hansmann) Date: Wed, 21 Sep 2011 15:25:38 -0700 Subject: [sf-perl] Help with Alien::SVN and LD_LIBRARY_PATH In-Reply-To: <20090.24053.525563.576534@gargle.gargle.HOWL> References: <20090.24053.525563.576534@gargle.gargle.HOWL> Message-ID: Does SVN::Core build a Makefile? If you are installing via cpan, try 'look SVN::Core' and look for a Makefile.PL, you'll have to grope around in there for a LD path setting. You can also hack it into place in 20 seconds. Linux is setup to cover the case where lib paths have to be set at runtime - on my sles box: av:root> cd /etc/ld.so.conf.d/ av1:root> ll total 16 -rw-r--r-- 1 root root 28 Jul 12 2010 ghostscript-omni.conf drwxr-xr-x 2 root root 34 May 20 15:05 . drwxr-xr-x 120 root root 8192 Sep 21 14:31 .. av:root> cat ghostscript-omni.conf /usr/lib64/ghostscript/Omni On all systems you want to run the lib, add a file with just the path '/path/to/Alien/SVN' and run 'ldconfig' A different way to hack it is: Move your lib to a path ld already knows about - this will show you what's configed on your box: ldconfig -v |grep : -Tony On Wed, Sep 21, 2011 at 2:58 PM, George Hartzell wrote: > > Hi All, lurkers and regulars, > > I'm working on SLES11 linux systems, Perl 5.14.1. > > I'm trying to achieve something useful that ultimately needs SVN::Core > to work. ?SVN::Core is provided by Alien::SVN in my world. ?As > Alien::SVN builds it sets LD_RUN_PATH so that it points to its copies > of the various subversion libraries that it's compiling and they get > used during the tests. > > It never seems to do anything that ends up pointing LD_RUN_PATH at the > ultimate installation directory, or setting rpath, or other linker > black magic before it does the install and the result is that > > ?perl -MSVN::Core > > fails with the inability to find it's libraries > > I can make it work with (bash worldview) > > ?export LD_LIBRARY_PATH=/path/to/Alien/SVN > > but I expected that I would not have to do that. > > Does anyone out there in sf.pm land know how this is *supposed* to > work? ?Is the requirement to set LD_LIBRARY_PATH what's supposed to > happen? > > g. > _______________________________________________ > SanFrancisco-pm mailing list > SanFrancisco-pm at pm.org > http://mail.pm.org/mailman/listinfo/sanfrancisco-pm > From fred at redhotpenguin.com Sun Sep 25 21:29:28 2011 From: fred at redhotpenguin.com (Fred Moyer) Date: Sun, 25 Sep 2011 21:29:28 -0700 Subject: [sf-perl] "A Look at the Future of Perl 5.16 and Beyond" Message-ID: <0496822CF286486F904810EFABAF6818@redhotpenguin.com> This is an really good read about Jesse Vincent's vision for Perl 5 with a slide deck embedded. http://www.readwriteweb.com/hack/2011/09/a-look-at-the-future-of-perl-5.php -------------- next part -------------- An HTML attachment was scrubbed... URL: From doom at kzsu.stanford.edu Mon Sep 26 10:51:30 2011 From: doom at kzsu.stanford.edu (Joseph Brenner) Date: Mon, 26 Sep 2011 10:51:30 -0700 Subject: [sf-perl] "A Look at the Future of Perl 5.16 and Beyond" In-Reply-To: <0496822CF286486F904810EFABAF6818@redhotpenguin.com> References: <0496822CF286486F904810EFABAF6818@redhotpenguin.com> Message-ID: Fred Moyer : > This is an really good read about Jesse Vincent's vision for Perl 5 with a > slide deck embedded. > http://www.readwriteweb.com/hack/2011/09/a-look-at-the-future-of-perl-5.php "So, you want to talk about renaming perl 5? To something like Perl 7?" That's pretty funny. I hadn't heard that one before. From gatorreina at gmail.com Mon Sep 26 12:14:54 2011 From: gatorreina at gmail.com (Richard Reina) Date: Mon, 26 Sep 2011 14:14:54 -0500 Subject: [sf-perl] regular expression ? Message-ID: I am trying to match a string "Thank you for order: 55555"; The order number will always change but I want the match to be true if the string has "Thank you for order:" followed by a number and extract the number. Any help would be greatly appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: From frimicc at gmail.com Mon Sep 26 12:19:41 2011 From: frimicc at gmail.com (Michael Friedman) Date: Mon, 26 Sep 2011 12:19:41 -0700 Subject: [sf-perl] regular expression ? In-Reply-To: References: Message-ID: <6A287A6A-A25E-48FF-93FD-A8E84EAB9A06@gmail.com> You probably want to use \d, the special metacharacter that matches digits. Something like this would probably work: if ($text =~ m/Thank you for order:\s+(\d+)/) { $order_num = $1; } See also the perlre manpage for the list of all the other metacharacters: http://perldoc.perl.org/perlre.html#Regular-Expressions -- Mike _________________ Michael Friedman frimicc at gmail.com On Sep 26, 2011, at 12:14 PM, Richard Reina wrote: > I am trying to match a string "Thank you for order: 55555"; > > The order number will always change but I want the match to be true if the > string has "Thank you for order:" followed by a number and extract the > number. > > Any help would be greatly appreciated. > _______________________________________________ > SanFrancisco-pm mailing list > SanFrancisco-pm at pm.org > http://mail.pm.org/mailman/listinfo/sanfrancisco-pm From fobispo at isc.org Mon Sep 26 12:41:37 2011 From: fobispo at isc.org (Francisco Obispo) Date: Mon, 26 Sep 2011 12:41:37 -0700 Subject: [sf-perl] regular expression ? In-Reply-To: References: Message-ID: And if the process is running continuously and matching several of these, you might want to: my $patterm= qr/Thank you for your order:\s*(\d+)/; if ($text =~ m/$patterm/){ my $order_num=$1; # do stuff with $order_num } Francisco On Sep 26, 2011, at 12:14 PM, Richard Reina wrote: > I am trying to match a string "Thank you for order: 55555"; > > The order number will always change but I want the match to be true if the string has "Thank you for order:" followed by a number and extract the number. > > Any help would be greatly appreciated. > _______________________________________________ > SanFrancisco-pm mailing list > SanFrancisco-pm at pm.org > http://mail.pm.org/mailman/listinfo/sanfrancisco-pm Francisco Obispo email: fobispo at isc.org Phone: +1 650 423 1374 || INOC-DBA *3557* NOC Key fingerprint = 532F 84EB 06B4 3806 D5FA 09C6 463E 614E B38D B1BE From not.com at gmail.com Mon Sep 26 12:44:05 2011 From: not.com at gmail.com (yary) Date: Mon, 26 Sep 2011 15:44:05 -0400 Subject: [sf-perl] regular expression ? In-Reply-To: References: Message-ID: On Mon, Sep 26, 2011 at 3:41 PM, Francisco Obispo wrote: > And if the process is running continuously and matching several of these, > you might want to: > > my $patterm= qr/Thank you for your order:\s*(\d+)/; > > if ($text =~ m/$patterm/){ > my $order_num=$1; > # do stuff with $order_num > > } > I don't think that improves performance or readability- the reg exp would be compiled once at load time either way. -------------- next part -------------- An HTML attachment was scrubbed... URL: From extasia at extasia.org Mon Sep 26 13:32:32 2011 From: extasia at extasia.org (David Alban) Date: Mon, 26 Sep 2011 13:32:32 -0700 Subject: [sf-perl] regular expression ? In-Reply-To: References: Message-ID: is there any appreciable loss (performance or otherwise) in compiling one's regex's even if they don't end up being used in a loop or frequently called subroutine? i do it as a matter of course. also, i tend not to trust whitespace. for me this: m/looking for some phrase/ would become: m{ looking \s+ for \s+ some \s+ phrase }xms i might even add the /i for case insensitivity. 2011/9/26 yary : > > On Mon, Sep 26, 2011 at 3:41 PM, Francisco Obispo wrote: >> >> And if the process is running continuously and matching several of these, >> you might want to: >> >> my $patterm= qr/Thank you for your order:\s*(\d+)/; >> >> if ($text =~ m/$patterm/){ >> ? ? ? ?my $order_num=$1; >> ? ? ? ?# do stuff with $order_num >> >> } > > I don't think that improves performance or readability- the reg exp would be > compiled once at load time either way. -- Live in a world of your own, but always welcome visitors. *** Just say NO to a police state: http://www.nytimes.com/2011/09/13/opinion/protect-our-right-to-anonymity.html From not.com at gmail.com Mon Sep 26 13:38:50 2011 From: not.com at gmail.com (yary) Date: Mon, 26 Sep 2011 16:38:50 -0400 Subject: [sf-perl] regular expression ? In-Reply-To: References: Message-ID: On Mon, Sep 26, 2011 at 4:32 PM, David Alban wrote: > is there any appreciable loss (performance or otherwise) in compiling > one's regex's even if they don't end up being used in a loop or > frequently called subroutine? ?i do it as a matter of course. or case insensitivity. Performance, I think is the same, but readability/maintenance may take a hit when you introduce a variable (which you may compile explicitly) to replace a literal regexp (which is still compiled for you). Depends on the situation. From fred at redhotpenguin.com Mon Sep 26 15:06:00 2011 From: fred at redhotpenguin.com (Fred Moyer) Date: Mon, 26 Sep 2011 15:06:00 -0700 Subject: [sf-perl] Fw: Tomorrow: Brewing Perl In-Reply-To: <1710570732.1317067680590.JavaMail.root@jobs0.meetup.com> References: <1710570732.1317067680590.JavaMail.root@jobs0.meetup.com> Message-ID: <238FA67F62CE4DD3823251D5E783A853@redhotpenguin.com> A quick heads up to those coming tomorrow, don't forget your laptop. We'll be doing some hacking to get perlbrew going on your machine. Forwarded message: > From: San Francisco Perl Mongers > To: fred at redhotpenguin.com > Date: Monday, September 26, 2011 1:08:00 PM > Subject: Tomorrow: Brewing Perl > > Meetup > Meetup Reminder > San Francisco Perl Mongers > > > > > > > > > > > Brewing Perl (http://www.meetup.com/San-Francisco-Perl-Mongers/events/32709282/t/cr1.2p_grp/?rv=cr1.2p) > is happening tomorrow > When: > Where: > Your RSVP: > > Tuesday, September 27, 2011 > 7:00 PM > Quetzal Internet Cafe > 1234 Polk Street > San Francisco, CA 94109 > I'm going Change (http://www.meetup.com/San-Francisco-Perl-Mongers/events/32709282/t/cr1.2p_upd/?rv=cr1.2p) > > > > > Who's going: > 14 Perl Mongers > > > > > > > > > > > See all (http://www.meetup.com/San-Francisco-Perl-Mongers/events/32709282/t/cr1.2p_evn/?rv=cr1.2p) > > > > > > > > Meet up at Quetzal Internet Cafe and learn to use App::Perlbrew while enjoying a nice cup of coffee, tea, or cold brew. If we get enough people interested we'll do a little hackathon and show and tell. > Learn more (http://www.meetup.com/San-Francisco-Perl-Mongers/events/32709282/t/cr1.2p_grp/?rv=cr1.2p) > > > > > Follow San Francisco Perl Mongers on: > @sfperlmongers (http://twitter.com/sfperlmongers/) LinkedIn (http://www.linkedin.com/groups?gid=932197&trk=hb_side_g) > > > > > > Sponsors & Perks: > > Red Hot Penguin Consulting (http://www.meetup.com/San-Francisco-Perl-Mongers/sponsors/) ? O'Reilly Media (http://www.meetup.com/San-Francisco-Perl-Mongers/sponsors/) ? Mother Jones (http://www.meetup.com/San-Francisco-Perl-Mongers/sponsors/) ? and 2 more (http://www.meetup.com/San-Francisco-Perl-Mongers/sponsors/) > > > > > > > > Add info at meetup.com (mailto:info at meetup.com) to your address book to receive all Meetup emails > > > To manage your email settings, click here (http://www.meetup.com/account/comm/) > > > Meetup, PO Box 4668 #37895 New York, New York 10163-4668 > > > Meetup HQ in NYC is hiring! http://www.meetup.com/jobs/ From extasia at extasia.org Mon Sep 26 15:50:11 2011 From: extasia at extasia.org (David Alban) Date: Mon, 26 Sep 2011 15:50:11 -0700 Subject: [sf-perl] update ExtUtils::MakeMaker ? Message-ID: trying to install some modules. got: ExtUtils::MakeMaker version 6.31 required--this is only version 6.30 at Makefile.PL line 7. BEGIN failed--compilation aborted at Makefile.PL line 7. so now i'm trying to install updated ExtUtils-MakeMaker-6.59. make test passes tests except for: t/xs......................skipped all skipped: ExtUtils::CBuilder not installed or couldn't find a compiler All tests successful, 8 tests and 32 subtests skipped. and when i try to make the make file for ExtUtils::CBuilder, i get: ExtUtils::MakeMaker version 6.31 required--this is only version 6.30 at Makefile.PL line 7. BEGIN failed--compilation aborted at Makefile.PL line 7. should i worry about the xs tests for MakeMaker being skipped, or proceed with make install anyway? i worry about messing up my perl installation. thanks. -- Live in a world of your own, but always welcome visitors. *** Just say NO to a police state: http://www.nytimes.com/2011/09/13/opinion/protect-our-right-to-anonymity.html From swartz at pobox.com Mon Sep 26 15:53:51 2011 From: swartz at pobox.com (Jonathan Swartz) Date: Mon, 26 Sep 2011 15:53:51 -0700 Subject: [sf-perl] Fw: Tomorrow: Brewing Perl In-Reply-To: <238FA67F62CE4DD3823251D5E783A853@redhotpenguin.com> References: <1710570732.1317067680590.JavaMail.root@jobs0.meetup.com> <238FA67F62CE4DD3823251D5E783A853@redhotpenguin.com> Message-ID: <3043FB54-ADDD-4003-A6A0-8F96349DFE6B@pobox.com> I know this has been discussed before, but any hints on public transportation from downtown to Quetzal? On Sep 26, 2011, at 3:06 PM, Fred Moyer wrote: > A quick heads up to those coming tomorrow, don't forget your laptop. We'll be doing some hacking to get perlbrew going on your machine. > > > Forwarded message: > From conor.list at gmail.com Mon Sep 26 16:03:27 2011 From: conor.list at gmail.com (Conor) Date: Mon, 26 Sep 2011 16:03:27 -0700 Subject: [sf-perl] Fw: Tomorrow: Brewing Perl In-Reply-To: <3043FB54-ADDD-4003-A6A0-8F96349DFE6B@pobox.com> References: <1710570732.1317067680590.JavaMail.root@jobs0.meetup.com> <238FA67F62CE4DD3823251D5E783A853@redhotpenguin.com> <3043FB54-ADDD-4003-A6A0-8F96349DFE6B@pobox.com> Message-ID: I'm taking the either the 2 or the 38 from Embarcadero.. anyone else with a better route? On Sep 26, 2011 3:54 PM, "Jonathan Swartz" wrote: > I know this has been discussed before, but any hints on public transportation from downtown to Quetzal? > > On Sep 26, 2011, at 3:06 PM, Fred Moyer wrote: > >> A quick heads up to those coming tomorrow, don't forget your laptop. We'll be doing some hacking to get perlbrew going on your machine. >> >> >> Forwarded message: >> > _______________________________________________ > SanFrancisco-pm mailing list > SanFrancisco-pm at pm.org > http://mail.pm.org/mailman/listinfo/sanfrancisco-pm -------------- next part -------------- An HTML attachment was scrubbed... URL: From fred at redhotpenguin.com Mon Sep 26 17:08:55 2011 From: fred at redhotpenguin.com (Fred Moyer) Date: Mon, 26 Sep 2011 17:08:55 -0700 Subject: [sf-perl] Fw: Tomorrow: Brewing Perl In-Reply-To: References: <1710570732.1317067680590.JavaMail.root@jobs0.meetup.com> <238FA67F62CE4DD3823251D5E783A853@redhotpenguin.com> <3043FB54-ADDD-4003-A6A0-8F96349DFE6B@pobox.com> Message-ID: The 19 goes down polk to the Civic Center, but only runs about every 20 minutes. The 38 goes up Geary. Not sure what else is around there but 511.org usually has all the routes on it. On Monday, September 26, 2011 at 4:03 PM, Conor wrote: > I'm taking the either the 2 or the 38 from Embarcadero.. anyone else with a better route? > On Sep 26, 2011 3:54 PM, "Jonathan Swartz" wrote: > > I know this has been discussed before, but any hints on public transportation from downtown to Quetzal? > > > > On Sep 26, 2011, at 3:06 PM, Fred Moyer wrote: > > > > > A quick heads up to those coming tomorrow, don't forget your laptop. We'll be doing some hacking to get perlbrew going on your machine. > > > > > > > > > Forwarded message: > > _______________________________________________ > > SanFrancisco-pm mailing list > > SanFrancisco-pm at pm.org (mailto:SanFrancisco-pm at pm.org) > > http://mail.pm.org/mailman/listinfo/sanfrancisco-pm From quinn at fairpath.com Mon Sep 26 19:10:55 2011 From: quinn at fairpath.com (Quinn Weaver) Date: Mon, 26 Sep 2011 19:10:55 -0700 Subject: [sf-perl] update ExtUtils::MakeMaker ? In-Reply-To: References: Message-ID: On Monday, September 26, 2011, David Alban wrote: > trying to install some modules. got: > > ExtUtils::MakeMaker version 6.31 required--this is only version 6.30 > at Makefile.PL line 7. > BEGIN failed--compilation aborted at Makefile.PL line 7. > > so now i'm trying to install updated ExtUtils-MakeMaker-6.59. make > test passes tests except for: I force-install all the time. It's pretty much a requirement if you're installing Catalyst from CPAN. Ugly but true. Are you using cpanminus, BTW? It's made my general CPAN experience a lot better. It might auto-follow dependencies in a way that's better than what you're seeing now. > Just say NO to a police state: > http://www.nytimes.com/2011/09/13/opinion/protect-our-right-to-anonymity.html +1 -- Quinn Weaver Consulting, LLC Full-stack web design and development http://quinnweaver.com/ 510-520-5217 -------------- next part -------------- An HTML attachment was scrubbed... URL: From fred at redhotpenguin.com Tue Sep 27 03:12:07 2011 From: fred at redhotpenguin.com (Fred Moyer) Date: Tue, 27 Sep 2011 03:12:07 -0700 Subject: [sf-perl] Perl news poll Message-ID: <5B448209BAC54D72AC24F8002A84FCA5@redhotpenguin.com> Gabor Szabo created this poll and is looking for respondents, if you have a few minutes you should fill this out. http://perlpolls.com/perl-news -------------- next part -------------- An HTML attachment was scrubbed... URL: From fred at redhotpenguin.com Tue Sep 27 13:00:43 2011 From: fred at redhotpenguin.com (Fred Moyer) Date: Tue, 27 Sep 2011 13:00:43 -0700 Subject: [sf-perl] Fw: Perl 5.14.2 is now available In-Reply-To: <87ipofiboq.fsf@tardis.home.perldition.org> References: <87ipofiboq.fsf@tardis.home.perldition.org> Message-ID: <891D92D30B4D460698BBE67465932038@redhotpenguin.com> 5.14.2 is out! Just in time to brew up tonight. Forwarded message: > From: Florian Ragwitz > To: perl5-porters at perl.org > Date: Monday, September 26, 2011 8:08:05 AM > Subject: Perl 5.14.2 is now available > > > It's not so much that people don't value the programs after they > have them--they do value them. But they're not the sort of thing > that would ever catch on if they had to overcome the marketing > barrier. (I don't yet know if perl will catch on at all--I'm > worried enough about it that I specifically included an awk-to-perl > translator just to help it catch on.) Maybe it's all just an > inferiority complex. Or maybe I don't like to be mercenary. > > So I guess I'd say that the reason some software comes free is that > the mechanism for selling it is missing, either from the work > environment, or from the heart of the programmer. > > -- Larry Wall, January 12, 1988 <992 at devvax.JPL.NASA.GOV (mailto:992 at devvax.JPL.NASA.GOV)> > > It gives me great pleasure to announce Perl 5.14.2, the third stable > release of Perl 5.14. > > You can download Perl 5.14.2 from your favorite CPAN mirror or from: > https://metacpan.org/release/FLORA/perl-5.14.2/ > > SHA1 digests for this release are: > > e48d11c6fd1ee61985b475d7f261d774296a1367 perl-5.14.2.tar.bz2 > df1549d65cdef2b20023af83ecaa2a024109a5ad perl-5.14.2.tar.gz > > This release contains bug fixes, build fixes and documentation > updates. It should be fully backward compatible with Perl 5.14.0. > > Perl 5.14.2 is a recommended upgrade for all users of Perl 5.14. > > You can find a full list of changes in the file "perldelta.pod" located > in the "pod" directory inside the release and on the web at: > https://metacpan.org/module/FLORA/perl-5.14.2/pod/perldelta.pod > > Perl 5.14.2 represents approximately three months of development since > Perl 5.14.1 and contains approximately 1200 lines of changes across 61 > files from 9 authors. > > Perl continues to flourish into its third decade thanks to a vibrant > community of users and developers. The following people are known to > have contributed the improvements that became Perl 5.14.2: > > Craig A. Berry, David Golden, Father Chrysostomos, Florian Ragwitz, > H.Merijn Brand, Karl Williamson, Nicholas Clark, Pau Amma and Ricardo > Signes. > > We expect to release Perl 5.14.3 in mid-December 2011, followed by Perl > 5.14.4 in mid-March 2012. The next major release of Perl 5, 5.16.0 > should appear in spring 2012. From rdm at cfcl.com Wed Sep 28 14:03:28 2011 From: rdm at cfcl.com (Rich Morin) Date: Wed, 28 Sep 2011 14:03:28 -0700 Subject: [sf-perl] Fw: Perl 5.14.2 is now available Message-ID: It has been a while since I did any real Perl programming and I'd like to brush up on the major changes. Are there any particular books (etc) which would give an overview of how Perl 5 (syntax, idioms, practices, etc.) have changed over the past several years? For example, would the latest version of the Camel provide a good overview? -r -- http://www.cfcl.com/rdm Rich Morin http://www.cfcl.com/rdm/resume rdm at cfcl.com http://www.cfcl.com/rdm/weblog +1 650-873-7841 Software system design, development, and documentation From kvale at phy.ucsf.edu Wed Sep 28 14:26:16 2011 From: kvale at phy.ucsf.edu (Mark Kvale) Date: Wed, 28 Sep 2011 14:26:16 -0700 Subject: [sf-perl] Fw: Perl 5.14.2 is now available In-Reply-To: References: Message-ID: <4E8390F8.7020406@phy.ucsf.edu> Modern Perl by chromatic has come out recently and you can download the PDF: http://www.onyxneon.com/books/modern_perl/index.html I don't know if the book has a comparative overview of recent perl versions, but he has opinions modern best practices. Mark On 09/28/2011 02:03 PM, Rich Morin wrote: > It has been a while since I did any real Perl programming > and I'd like to brush up on the major changes. > > Are there any particular books (etc) which would give an > overview of how Perl 5 (syntax, idioms, practices, etc.) > have changed over the past several years? > > For example, would the latest version of the Camel provide > a good overview? > > -r From doom at kzsu.stanford.edu Wed Sep 28 16:53:10 2011 From: doom at kzsu.stanford.edu (Joseph Brenner) Date: Wed, 28 Sep 2011 16:53:10 -0700 Subject: [sf-perl] Fw: Perl 5.14.2 is now available In-Reply-To: References: Message-ID: Rich Morin wrote: > It has been a while since I did any real Perl programming > and I'd like to brush up on the major changes. I don't know that there have been any really major changes to perl itself. There's the smart match operator (~~) and the given/when construct (which both appear to be too clever and in need of further revision). There have been some shifts in trends in perl progamming, though, e.g. Moose is clearly in and the various "InsideOut" objects are out, DBIx::Class is the most popular ORM, though Rose has it's fans, Template Toolkit is still leading, though Mason has it's fans, and so on. The Best Practices for dealing with Unicode are still evolving. You might look up tchrist on the subject some time, for example: http://stackoverflow.com/questions/6162484/why-does-modern-perl-avoid-utf-8-b$ > Are there any particular books (etc) which would give an > overview of how Perl 5 (syntax, idioms, practices, etc.) > have changed over the past several years? As has been pointed out, the "Modern Perl" book by chromatic is the obvious pick: http://www.onyxneon.com/books/modern_perl/index.html http://modernperlbooks.com/mt/index.html For perl news, I like the perl sphere blog aggregator: http://perlsphere.net/ Another trend of sorts is that the perl insiders seem to have decided that stackoverflow is more important than perlmonks. > For example, would the latest version of the Camel provide > a good overview? Whoa. There's a fourth camel out now. I hadn't heard: http://shop.oreilly.com/product/9780596004927.do From clp302 at poda.net Wed Sep 28 17:39:39 2011 From: clp302 at poda.net (C Poda) Date: Wed, 28 Sep 2011 17:39:39 -0700 Subject: [sf-perl] Fw: Perl 5.14.2 is now available In-Reply-To: References: Message-ID: On Wed, 28 Sep 2011 14:03:28 -0700, Rich Morin wrote: > > Are there any particular books (etc) which would give an > overview of how Perl 5 (syntax, idioms, practices, etc.) > have changed over the past several years? > Hi, If you're familiar w/ Effective Perl Programming, the second edition is copyright 2010 (updated from rev 1 of 1998) and includes many idioms. It's a great book for someone w/ some Perl knowledge. It also includes a 6-page Appendix, mapping topics from first to second edition, which can give you an overview of some changes to the language that they thought important. Very good typography, like the first edition, & I find it much easier to read than most other Perl books. http://isbn.nu/0321496949 Perl Best Practices by Conway is older, at 2005. See the discussion about some changes here (they seem to have moved from perlfoundation.org): https://www.socialtext.net/perl5/pbp_module_recommendation_commentary http://isbn.nu/9780596001735 A search of this weblog by chromatic might answer some of your questions. http://www.modernperlbooks.com/mt/ Thanks. clpoda