From roberthpike at yahoo.com Tue Feb 2 07:19:17 2010 From: roberthpike at yahoo.com (Robert Pike) Date: Tue, 2 Feb 2010 07:19:17 -0800 (PST) Subject: [kw-pm] Using backticks in Perl script Message-ID: <170223.85474.qm@web58706.mail.re1.yahoo.com> Hi All, I've been passed a script that does unzipping of files and I can't seem to get it to work on a Windows machine. The server I'm trying this on I have to VPN in to. I've commented out the code that is trying to unzip a file and decided to put a simplier command in and see if I can get that to work but still w/o success. my $testStr = "dir"; #--- line 1 my $newTest = `$testStr`; print "
Test string returned :" . $newTest . "
"; When I run the overall script I get errors on the third line of code above telling me : Use of uninitialized value $newTest in concatenation (.) or string at .pl line 82. I'm trying this simplier example to see if I can get it working first, the piece of code in the script (I was passed) is trying to use the gunzip executable but w/o success (i.e. gunzip -cf <$filePath) using the backticks again. Any help would be appreciated. Thanks. Rob __________________________________________________________________ Make your browsing faster, safer, and easier with the new Internet Explorer? 8. Optimized for Yahoo! Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/ From quantum.mechanic.1964 at gmail.com Mon Feb 8 06:46:57 2010 From: quantum.mechanic.1964 at gmail.com (Quantum Mechanic) Date: Mon, 8 Feb 2010 09:46:57 -0500 Subject: [kw-pm] Using backticks in Perl script In-Reply-To: <170223.85474.qm@web58706.mail.re1.yahoo.com> References: <170223.85474.qm@web58706.mail.re1.yahoo.com> Message-ID: <77f3972e1002080646x288dea8bq57df7e6b1838e9b4@mail.gmail.com> On Tue, Feb 2, 2010 at 10:19 AM, Robert Pike wrote: > Hi All, > I've been passed a script that does unzipping of files and I can't seem > to get it to work on a Windows machine. The server I'm trying this on I have > to VPN in to. I've commented out the code that is trying to unzip a file and > decided to put a simplier command in and see if I can get that to work but > still w/o success. > > my $testStr = "dir"; #--- line 1 > my $newTest = `$testStr`; > print "
Test string returned :" . $newTest . "
"; > > When I run the overall script I get errors on the third line of code > above telling me : Use of uninitialized value $newTest > in concatenation (.) or string at .pl line 82. > I'm trying this simplier example to see if I can get it working first, > the piece of code in the script (I was passed) is trying to use the gunzip > executable but w/o success (i.e. gunzip -cf <$filePath) using the backticks > again. Any help would be appreciated. Thanks. > "dir" is a builtin command, and doesn't exist anywhere as an executable by default. On my XP machine, I'd have to issue cmd /c "dir" You would have the same problem on *nix with builtins if the shell didn't interpret them. For instance, `setenv` does nothing when called from perl, though it does from the command line. (However, I doubt that this is your original problem -- most likely you've created an unrelated problem by trying to make the script simpler.) -- -QM Quantum Mechanics: The dreams stuff is made of -------------- next part -------------- An HTML attachment was scrubbed... URL: From foxryan at gmail.com Mon Feb 8 07:05:15 2010 From: foxryan at gmail.com (Ryan Fox) Date: Mon, 8 Feb 2010 10:05:15 -0500 Subject: [kw-pm] Using backticks in Perl script In-Reply-To: <77f3972e1002080646x288dea8bq57df7e6b1838e9b4@mail.gmail.com> References: <170223.85474.qm@web58706.mail.re1.yahoo.com> <77f3972e1002080646x288dea8bq57df7e6b1838e9b4@mail.gmail.com> Message-ID: Perhaps you'd have better luck with a package from CPAN? http://search.cpan.org/perldoc?IO::Uncompress::Gunzip I can't (be bothered to) find if it's doing everything in Perl, or if it's calling a library somewhere, but it should probably at least get around problems with system calls. 2010/2/8 Quantum Mechanic > On Tue, Feb 2, 2010 at 10:19 AM, Robert Pike wrote: > >> Hi All, >> I've been passed a script that does unzipping of files and I can't seem >> to get it to work on a Windows machine. The server I'm trying this on I have >> to VPN in to. I've commented out the code that is trying to unzip a file and >> decided to put a simplier command in and see if I can get that to work but >> still w/o success. >> >> my $testStr = "dir"; #--- line 1 >> my $newTest = `$testStr`; >> print "
Test string returned :" . $newTest . "
"; >> >> When I run the overall script I get errors on the third line of code >> above telling me : Use of uninitialized value $newTest >> in concatenation (.) or string at .pl line 82. >> I'm trying this simplier example to see if I can get it working first, >> the piece of code in the script (I was passed) is trying to use the gunzip >> executable but w/o success (i.e. gunzip -cf <$filePath) using the backticks >> again. Any help would be appreciated. Thanks. >> > > "dir" is a builtin command, and doesn't exist anywhere as an executable by > default. On my XP machine, I'd have to issue > > cmd /c "dir" > > You would have the same problem on *nix with builtins if the shell didn't > interpret them. For instance, `setenv` does nothing when called from perl, > though it does from the command line. > > (However, I doubt that this is your original problem -- most likely you've > created an unrelated problem by trying to make the script simpler.) > > -- > -QM > Quantum Mechanics: The dreams stuff is made of > > _______________________________________________ > kw-pm mailing list > kw-pm at pm.org > http://mail.pm.org/mailman/listinfo/kw-pm > -------------- next part -------------- An HTML attachment was scrubbed... URL: From daniel at coder.com Mon Feb 8 15:46:12 2010 From: daniel at coder.com (Daniel R. Allen) Date: Mon, 8 Feb 2010 18:46:12 -0500 (EST) Subject: [kw-pm] February's talks In-Reply-To: Message-ID: If anyone is interested in giving a short talk in February, or March, there is room for you. As Abram said, they really don't need to be fancy. Or even be perl specific. Just interesting. :) We currently have two talks slated for February: fishbot will present on some developments in Perl 6: "Modern Perl - Module, Modernity and Marketing". And I will do a quick review of a python CGI project I wrote which uses pExpect, a robust alternative to Expect. Our February meeting is the 18th, a week Thursday. Hope to see you there. -Daniel On Sun, 31 Jan 2010, fishbot wrote: > > Unless someone objects, I'll do a 15-20 minute talk in February, > provided there is at least one additional 10-20 minute talk. > > Tyler: as Abram says, a handful of code examples of how > an operator or construct works would fit this bill. > > My proposed talk is provisionally titled: > "Modern Perl - Module, Modernity and Marketing" > > Don't worry: It isn't advocacy. > > ---- original message : 2010-01-22 10:35pm : Abram Hindle ---- > > > Thank you for attending. > > > > Your talk doesn't need slides, often presenters will just have an editor > > open and a terminal and just eval or run various scripts. So if all you > > have is working code that is interesting or fun and uses new perl 6 > > features, a walk through of that would be sufficient. > > > > A couple of lines (even tests!) about one operator would do as well :D > > > > If you think you only have 10 minutes then so be it, we can get other > > presenters to round out the rest of the meeting. > > > > abram > > > > Tyler Slijboom wrote: > >> Thanks everyone for the warm welcome. I would be interested in > >> participating in a talk about the latest on Perl 6, but I honestly do > >> not think I can have it ready for the February Talk. > _______________________________________________ > kw-pm mailing list > kw-pm at pm.org > http://mail.pm.org/mailman/listinfo/kw-pm > From eric at uc.org Wed Feb 10 10:21:34 2010 From: eric at uc.org (fishb) Date: Wed, 10 Feb 2010 13:21:34 -0500 (EST) Subject: [kw-pm] February's talks In-Reply-To: References: Message-ID: I'll put a summary of my planned talk up on the wiki. I might mention Perl 6 in passing, but it is explicitly not about Perl 6. It's a short investigation about what "Modern Perl" is, and then to me more interesting, what "Contemporary Perl" is. Not an advocacy talk. fishbot ---- original message : 2010-02-08 6:46pm : Daniel R. Allen ---- > If anyone is interested in giving a short talk in February, or March, > there is room for you. As Abram said, they really don't need to be fancy. > Or even be perl specific. Just interesting. :) > > We currently have two talks slated for February: > > fishbot will present on some developments in Perl 6: "Modern Perl - > Module, Modernity and Marketing". And I will do a quick review of a python > CGI project I wrote which uses pExpect, a robust alternative to Expect. > > Our February meeting is the 18th, a week Thursday. Hope to see you there. > > -Daniel > > On Sun, 31 Jan 2010, fishbot wrote: > >> >> Unless someone objects, I'll do a 15-20 minute talk in February, >> provided there is at least one additional 10-20 minute talk. >> >> Tyler: as Abram says, a handful of code examples of how >> an operator or construct works would fit this bill. >> >> My proposed talk is provisionally titled: >> "Modern Perl - Module, Modernity and Marketing" >> >> Don't worry: It isn't advocacy. >> >> ---- original message : 2010-01-22 10:35pm : Abram Hindle ---- >> >>> Thank you for attending. >>> >>> Your talk doesn't need slides, often presenters will just have an editor >>> open and a terminal and just eval or run various scripts. So if all you >>> have is working code that is interesting or fun and uses new perl 6 >>> features, a walk through of that would be sufficient. >>> >>> A couple of lines (even tests!) about one operator would do as well :D >>> >>> If you think you only have 10 minutes then so be it, we can get other >>> presenters to round out the rest of the meeting. >>> >>> abram >>> >>> Tyler Slijboom wrote: >>>> Thanks everyone for the warm welcome. I would be interested in >>>> participating in a talk about the latest on Perl 6, but I honestly do >>>> not think I can have it ready for the February Talk. >> _______________________________________________ >> kw-pm mailing list >> kw-pm at pm.org >> http://mail.pm.org/mailman/listinfo/kw-pm >> > > _______________________________________________ > kw-pm mailing list > kw-pm at pm.org > http://mail.pm.org/mailman/listinfo/kw-pm > From abram.hindle at softwareprocess.es Wed Feb 10 10:31:46 2010 From: abram.hindle at softwareprocess.es (Abram Hindle) Date: Wed, 10 Feb 2010 13:31:46 -0500 Subject: [kw-pm] February's talks In-Reply-To: (sfid-20100210_132816_980618_FD79D637) References: (sfid-20100210_132816_980618_FD79D637) Message-ID: <4B72FB92.5040908@softwareprocess.es> For the other talk to fill out the rest Feb, I'd love to see a Perl6 talk a quick demo of an operator or something neat like that. Another alternative would be if someone would like to present something about say a demo bot or an AI bot in the CS Club's tron ai competition. There's a perl pack: http://csclub.uwaterloo.ca/contest/index.php abram fishb wrote: > > I'll put a summary of my planned talk up on the wiki. I might mention > Perl 6 in passing, but it is explicitly not about Perl 6. It's a short > investigation about what "Modern Perl" is, and then to me more > interesting, what "Contemporary Perl" is. Not an advocacy talk. > > fishbot > > ---- original message : 2010-02-08 6:46pm : Daniel R. Allen ---- > >> If anyone is interested in giving a short talk in February, or March, >> there is room for you. As Abram said, they really don't need to be fancy. >> Or even be perl specific. Just interesting. :) >> >> We currently have two talks slated for February: >> >> fishbot will present on some developments in Perl 6: "Modern Perl - >> Module, Modernity and Marketing". And I will do a quick review of a >> python >> CGI project I wrote which uses pExpect, a robust alternative to Expect. >> >> Our February meeting is the 18th, a week Thursday. Hope to see you there. >> >> -Daniel >> >> On Sun, 31 Jan 2010, fishbot wrote: >> >>> >>> Unless someone objects, I'll do a 15-20 minute talk in February, >>> provided there is at least one additional 10-20 minute talk. >>> >>> Tyler: as Abram says, a handful of code examples of how >>> an operator or construct works would fit this bill. >>> >>> My proposed talk is provisionally titled: >>> "Modern Perl - Module, Modernity and Marketing" >>> >>> Don't worry: It isn't advocacy. >>> >>> ---- original message : 2010-01-22 10:35pm : Abram Hindle ---- >>> >>>> Thank you for attending. >>>> >>>> Your talk doesn't need slides, often presenters will just have an >>>> editor >>>> open and a terminal and just eval or run various scripts. So if all you >>>> have is working code that is interesting or fun and uses new perl 6 >>>> features, a walk through of that would be sufficient. >>>> >>>> A couple of lines (even tests!) about one operator would do as well :D >>>> >>>> If you think you only have 10 minutes then so be it, we can get other >>>> presenters to round out the rest of the meeting. >>>> >>>> abram >>>> >>>> Tyler Slijboom wrote: >>>>> Thanks everyone for the warm welcome. I would be interested in >>>>> participating in a talk about the latest on Perl 6, but I honestly do >>>>> not think I can have it ready for the February Talk. >>> _______________________________________________ >>> kw-pm mailing list >>> kw-pm at pm.org >>> http://mail.pm.org/mailman/listinfo/kw-pm >>> >> >> _______________________________________________ >> kw-pm mailing list >> kw-pm at pm.org >> http://mail.pm.org/mailman/listinfo/kw-pm >> > _______________________________________________ > kw-pm mailing list > kw-pm at pm.org > http://mail.pm.org/mailman/listinfo/kw-pm -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 260 bytes Desc: OpenPGP digital signature URL: From daniel at coder.com Thu Feb 18 08:46:40 2010 From: daniel at coder.com (Daniel R. Allen) Date: Thu, 18 Feb 2010 11:46:40 -0500 (EST) Subject: [kw-pm] Tonight's Meeting Message-ID: Tonight we've got two talks planned: fishbot will present "Modern Perl - Module, Modernity and Marketing", a discussion about the "Modern Perl movement", how Modern relates to Contemporary and where we might be in the historic arc of Perl. Daniel will do a quick review of a python CGI project he wrote which uses pExpect, a robust alternative to Expect. Also, with the pizza! Before 5pm please add your name to http://kw.pm.org/wiki/index.cgi?PizzaList As usual we meet: 7pm in DC3323, University of Waterloo. http://kw.pm.org has the details. Hope to see you tonight, -Daniel From roberthpike at yahoo.com Mon Feb 22 13:01:21 2010 From: roberthpike at yahoo.com (Robert Pike) Date: Mon, 22 Feb 2010 13:01:21 -0800 (PST) Subject: [kw-pm] PDK from Activestate Message-ID: <267608.95132.qm@web58706.mail.re1.yahoo.com> Is there anyone here familiar with Activestate's PDK application? __________________________________________________________________ Looking for the perfect gift? Give the gift of Flickr! http://www.flickr.com/gift/