From bill.raty at gmail.com Thu Jan 5 08:46:24 2006 From: bill.raty at gmail.com (Bill Raty) Date: Thu, 5 Jan 2006 10:46:24 -0600 Subject: APM: Anyone know how to configure a local CPAN to work with MakeMaker and Module::Build modules? Message-ID: <3be6deac0601050846y62f99da0p96616db3caa60a79@mail.gmail.com> For years I've been running CPAN without problems for Linux/Unix. Lately, there are newfangled modules based upon Module::Build that don't play with classic modules, and things get worse when you have modules of the various types rely upon each other. Has anyone found a configuration that works automatically ( without manual intervention of 'o conf' )? -Bill -- For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/austin/attachments/20060105/a0b2c560/attachment.html From eharris at puremagic.com Fri Jan 6 12:04:55 2006 From: eharris at puremagic.com (Evan Harris) Date: Fri, 6 Jan 2006 14:04:55 -0600 (CST) Subject: APM: Regular expression with double variable substitution Message-ID: Is there any way to make perl re-interpret the contents of a variable that is used as a substitution part of a regex? I thought that the /e modifier would do this, but it doesn't seem to work. For example: $s = '$1 - $2'; $t = '34:56'; $t =~ s/(\d+):(\d+)/$s/e; After this, $t is equal to '$1 - $2', rather than the desired '34 - 56'. I think it may be possible by using an eval, but I don't want the power (and the danger) of allowing any perl code, I just want to fill in nested variables. Evan From jeremy at stuact.tamu.edu Fri Jan 6 13:07:16 2006 From: jeremy at stuact.tamu.edu (Fluhmann, Jeremy) Date: Fri, 6 Jan 2006 15:07:16 -0600 Subject: APM: Regular expression with double variable substitution Message-ID: <297203B1AD107A438D2616D3A8E9B38205151E79@dsae2k.dsad.ad.tamu.edu> This works, but I'm not sure it's what you're trying to do. $t = '34:56'; $t =~ s/(\d+):(\d+)/"$1 - $2"/e; Jeremy Fluhmann Microcomputer Specialist Department of Student Activities Texas A&M University 979-458-4649 jeremy at stuact.tamu.edu -----Original Message----- From: austin-bounces at pm.org [mailto:austin-bounces at pm.org] On Behalf Of Evan Harris Sent: Friday, January 06, 2006 2:05 PM To: Austin Perlmongers Subject: APM: Regular expression with double variable substitution Is there any way to make perl re-interpret the contents of a variable that is used as a substitution part of a regex? I thought that the /e modifier would do this, but it doesn't seem to work. For example: $s = '$1 - $2'; $t = '34:56'; $t =~ s/(\d+):(\d+)/$s/e; After this, $t is equal to '$1 - $2', rather than the desired '34 - 56'. I think it may be possible by using an eval, but I don't want the power (and the danger) of allowing any perl code, I just want to fill in nested variables. Evan _______________________________________________ Austin mailing list Austin at pm.org http://mail.pm.org/mailman/listinfo/austin From eharris at puremagic.com Fri Jan 6 13:55:36 2006 From: eharris at puremagic.com (Evan Harris) Date: Fri, 6 Jan 2006 15:55:36 -0600 (CST) Subject: APM: Regular expression with double variable substitution In-Reply-To: <297203B1AD107A438D2616D3A8E9B38205151E79@dsae2k.dsad.ad.tamu.edu> Message-ID: After talking with Wayne, I think I've settled on a workable (though not optimal) solution: my $cmd = '$str =~ s/' . $srcregex . '/' . $dstregex . '/'; eval $cmd; I was trying to avoid using eval, but I can't figure out how. It seems really strange that perl doesn't provide a way to use the contents of a variable in a way that perl will do one more level of variable expansion. Evan On Fri, 6 Jan 2006, Fluhmann, Jeremy wrote: > This works, but I'm not sure it's what you're trying to do. > > $t = '34:56'; > $t =~ s/(\d+):(\d+)/"$1 - $2"/e; > > Jeremy Fluhmann > Microcomputer Specialist > Department of Student Activities > Texas A&M University > 979-458-4649 > jeremy at stuact.tamu.edu > > -----Original Message----- > From: austin-bounces at pm.org [mailto:austin-bounces at pm.org] On Behalf Of > Evan Harris > Sent: Friday, January 06, 2006 2:05 PM > To: Austin Perlmongers > Subject: APM: Regular expression with double variable substitution > > > Is there any way to make perl re-interpret the contents of a variable > that > is used as a substitution part of a regex? I thought that the /e > modifier > would do this, but it doesn't seem to work. > > For example: > > $s = '$1 - $2'; > $t = '34:56'; > $t =~ s/(\d+):(\d+)/$s/e; > > After this, $t is equal to '$1 - $2', rather than the desired '34 - 56'. > > I think it may be possible by using an eval, but I don't want the power > (and > the danger) of allowing any perl code, I just want to fill in nested > variables. > > Evan > > > _______________________________________________ > Austin mailing list > Austin at pm.org > http://mail.pm.org/mailman/listinfo/austin > > > _______________________________________________ > Austin mailing list > Austin at pm.org > http://mail.pm.org/mailman/listinfo/austin > From mike at stok.co.uk Sat Jan 7 14:40:19 2006 From: mike at stok.co.uk (Mike Stok) Date: Sat, 7 Jan 2006 17:40:19 -0500 Subject: APM: Regular expression with double variable substitution In-Reply-To: References: Message-ID: <20EBD858-805B-43C3-920B-E7316176D422@stok.co.uk> On 6-Jan-06, at 4:55 PM, Evan Harris wrote: > > After talking with Wayne, I think I've settled on a workable > (though not > optimal) solution: > > my $cmd = '$str =~ s/' . $srcregex . '/' . $dstregex . '/'; > eval $cmd; > > I was trying to avoid using eval, but I can't figure out how. It > seems > really strange that perl doesn't provide a way to use the contents > of a > variable in a way that perl will do one more level of variable > expansion. If you don't want eval then you can use extra e modifiers e.g. (in the debugger) DB<1> $s = '$1 - $2' DB<2> $t = '34:56' DB<3> $t =~ s/(\d+):(\d+)/'"' . $s . '"'/ee DB<4> print $t 34 - 56 the "first" e turns the right hand side into "$1 - $2", and the second does the double quotish interpolation. Hope this helps, Mike > > Evan > > > On Fri, 6 Jan 2006, Fluhmann, Jeremy wrote: > >> This works, but I'm not sure it's what you're trying to do. >> >> $t = '34:56'; >> $t =~ s/(\d+):(\d+)/"$1 - $2"/e; >> >> Jeremy Fluhmann >> Microcomputer Specialist >> Department of Student Activities >> Texas A&M University >> 979-458-4649 >> jeremy at stuact.tamu.edu >> >> -----Original Message----- >> From: austin-bounces at pm.org [mailto:austin-bounces at pm.org] On >> Behalf Of >> Evan Harris >> Sent: Friday, January 06, 2006 2:05 PM >> To: Austin Perlmongers >> Subject: APM: Regular expression with double variable substitution >> >> >> Is there any way to make perl re-interpret the contents of a variable >> that >> is used as a substitution part of a regex? I thought that the /e >> modifier >> would do this, but it doesn't seem to work. >> >> For example: >> >> $s = '$1 - $2'; >> $t = '34:56'; >> $t =~ s/(\d+):(\d+)/$s/e; >> >> After this, $t is equal to '$1 - $2', rather than the desired '34 >> - 56'. >> >> I think it may be possible by using an eval, but I don't want the >> power >> (and >> the danger) of allowing any perl code, I just want to fill in nested >> variables. >> >> Evan >> >> >> _______________________________________________ >> Austin mailing list >> Austin at pm.org >> http://mail.pm.org/mailman/listinfo/austin >> >> >> _______________________________________________ >> Austin mailing list >> Austin at pm.org >> http://mail.pm.org/mailman/listinfo/austin >> > > > _______________________________________________ > Austin mailing list > Austin at pm.org > http://mail.pm.org/mailman/listinfo/austin > -- Mike Stok http://www.stok.co.uk/~mike/ The "`Stok' disclaimers" apply. From dbii at interaction.net Sun Jan 15 14:31:57 2006 From: dbii at interaction.net (David Bluestein II) Date: Sun, 15 Jan 2006 16:31:57 -0600 Subject: APM: January Meeting this Wednesday on PUGS Message-ID: <5856fb35df22c25048d4421f4240d0df@interaction.net> JANUARY PERL MEETING Ian Remmler will be presenting at 7 pm: See the power of the Perl of Tomorrow... Today! Sort of! We'll play with Pugs, the surprisingly functional (since it's written in Haskell, heh :) Perl6 compiler. I'll probably talk about some of the other cool Perl6 stuff that Pugs can't do yet as well. Meeting will be this Wednesday the 18th, at the offices of Servergraph (on N. Mopac, NOT the old offices on 6th street). Dinner at 6:00ish at Pok-e Jo's in the Arboretum. We're working on updating the website. David ----------------------------------------------------------------------- David H. Bluestein II President & Lead Developer dbii at interaction.net ii, inc. http://www.interaction.net -- Specializing in Interactive, Database Driven Websites -- From wwalker at bybent.com Wed Jan 18 12:33:53 2006 From: wwalker at bybent.com (Wayne Walker) Date: Wed, 18 Jan 2006 14:33:53 -0600 Subject: APM: Meeting tonight!!!! Message-ID: <20060118203353.GC4783@bybent.com> There is a meeting tonight. Ian Remmler will be giving a talk on Perl 6 PUGS interpreter. Details on the web site. http://austin.pm.org/ -- Wayne Walker www.unwiredbuyer.com - when you just can't be by the computer wwalker at bybent.com Do you use Linux?! http://www.bybent.com Get Counted! http://counter.li.org/ Perl - http://www.perl.org/ Perl User Groups - http://www.pm.org/ Jabber: wwalker at jabber.gnumber.com AIM: lwwalkerbybent IRC: wwalker on freenode.net From ian at remmler.org Thu Jan 19 06:38:38 2006 From: ian at remmler.org (Ian Remmler) Date: Thu, 19 Jan 2006 08:38:38 -0600 Subject: APM: Perl6 spec Message-ID: <20060119143838.GA32026@remmler.org> Last night I mentioned that Perl6 has a real specification, but I forgot to say where it actually is: http://dev.perl.org/perl6/doc/synopsis.html The synopses are numbered to roughly match the chapter in Programming Perl that they correspond to. - Ian. P.S. Thanks again, Bill, for the use of the laptop. I did eventually figure out how to get mine to work this morning. From bill.raty at gmail.com Fri Jan 20 14:06:20 2006 From: bill.raty at gmail.com (Bill Raty) Date: Fri, 20 Jan 2006 16:06:20 -0600 Subject: APM: Did someone lose a watch at the last Perl Mongers? Message-ID: <3be6deac0601201406p1a6f7cbo64676635d0b0e626@mail.gmail.com> A watch was found in the Servergraph conference room used for the meeting. Send a description of the watch you lost to bill dot raty at gmail dot com and I'll get the watch back to you. -- For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/austin/attachments/20060120/a9d281de/attachment.html