From RNathan at baxglobal.com Sun Aug 7 22:39:09 2005 From: RNathan at baxglobal.com (Ranga Nathan) Date: Sun, 7 Aug 2005 22:39:09 -0700 Subject: [LA.pm] Custom extension to regex operator (?? Message-ID: I use (?? to create drop in regex. However now there is a need to actually execute some code and return a regex pattern. The postponed regex operator (?? does not interpolate and does not seem to run any code other than take an expression. Anyway to override this? I am looking at the possibility of creating a custom regex module for this. This is for a project that requires parsing strings that are deeply nested to varying degree sometimes delimiters can be used. Mostly the level of nesting is identified by a numeric value. Anyone remembering COBOL would be able to recall OCCURS DEPENDING ON in COBOL structure definitions. I am taking it to the extreme level to create a generic script. Any experience / suggestion would be appreciated. __________________________________________ Ranga Nathan / CSG Systems Programmer - Specialist; Technical Services; BAX Global Inc. Irvine-California Tel: 714-442-7591 Fax: 714-442-2840 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/losangeles-pm/attachments/20050808/8fe185bf/attachment.html From ben_tilly at operamail.com Mon Aug 8 09:01:09 2005 From: ben_tilly at operamail.com (Benjamin J. Tilly ) Date: Tue, 09 Aug 2005 00:01:09 +0800 Subject: [LA.pm] Custom extension to regex operator (?? Message-ID: <20050808160109.E0C743AA515@ws5-8.us4.outblaze.com> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mail.pm.org/pipermail/losangeles-pm/attachments/20050808/5ba119d7/attachment.pl From ben_tilly at operamail.com Mon Aug 8 22:54:58 2005 From: ben_tilly at operamail.com (Benjamin J. Tilly ) Date: Tue, 09 Aug 2005 13:54:58 +0800 Subject: [LA.pm] This is a long shot but... Message-ID: <20050809055459.0F8D23AA515@ws5-8.us4.outblaze.com> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mail.pm.org/pipermail/losangeles-pm/attachments/20050809/6b6e8b2a/attachment.pl From wdr1 at pobox.com Sat Aug 27 14:43:04 2005 From: wdr1 at pobox.com (William Reardon) Date: Sat, 27 Aug 2005 14:43:04 -0700 Subject: [LA.pm] Alias to a dynamically scoped variable? Message-ID: Just wondering, is it possible to create an alias to a dynamically scoped variable? E.g, such as in this case $foo & $bar both equal 20? { my ($foo, $bar); *foo = *bar; $foo = 10; $bar = 20; print "foo: $foo\n"; print "bar: $bar\n"; } When run with warnings, it's clear that the aliasing is taking place on the global versions of foo, not my my guys. (I've found a different way to do what I was trying, so at this point, it's just curiosity.) Thanks! -Bill From mrkoffee at saltedsnail.com Sat Aug 27 17:15:46 2005 From: mrkoffee at saltedsnail.com (Brian Cooke) Date: Sat, 27 Aug 2005 17:15:46 -0700 (PDT) Subject: [LA.pm] Alias to a dynamically scoped variable? In-Reply-To: References: Message-ID: <23683.162.115.172.122.1125188146.squirrel@webmail.saltedsnail.com> > Just wondering, is it possible to create an alias to a dynamically > scoped variable? > > E.g, such as in this case $foo & $bar both equal 20? > > { > my ($foo, $bar); > *foo = *bar; > > $foo = 10; > $bar = 20; > > print "foo: $foo\n"; > print "bar: $bar\n"; > } > > When run with warnings, it's clear that the aliasing is taking place > on the global versions of foo, not my my guys. William, The "my" variables are lexically scoped, rather than dynamically scoped (i.e., package variables localized at runtime using "local"). You are correct: The *foo = *bar is manipulating the symbol table, and lexicals don't live there. An interesting module that will alias lexical variables is Lexical::Alias. If you say: use Lexical::Alias; { my ($foo, $bar); alias $foo, $bar; $foo = 10; $bar = 20; print "\$foo: $foo\n"; print "\$bar: $bar\n"; } the output will be: $foo: 20 $bar: 20 Cheers, Brian From aavram at mac.com Sat Aug 27 18:52:04 2005 From: aavram at mac.com (a a) Date: Sat, 27 Aug 2005 18:52:04 -0700 Subject: [LA.pm] opportunities In-Reply-To: <23683.162.115.172.122.1125188146.squirrel@webmail.saltedsnail.com> References: <23683.162.115.172.122.1125188146.squirrel@webmail.saltedsnail.com> Message-ID: <5892CE03-0DD2-452F-8AA7-842E7CBD245E@mac.com> Thought I would put it out there that Yahoo (Pasadena location) is looking for good local perl/mod_perl developers. I'm not a recruiter (just an employee) but if anyone is interested I can pass information up through the food chain... cheers, -Avram From wdr1 at pobox.com Sat Aug 27 19:17:05 2005 From: wdr1 at pobox.com (William Reardon) Date: Sat, 27 Aug 2005 19:17:05 -0700 Subject: [LA.pm] Alias to a dynamically scoped variable? In-Reply-To: <23683.162.115.172.122.1125188146.squirrel@webmail.saltedsnail.com> References: <23683.162.115.172.122.1125188146.squirrel@webmail.saltedsnail.com> Message-ID: At 5:15 PM -0700 8/27/05, Brian Cooke wrote: >The "my" variables are lexically scoped, rather than dynamically scoped >(i.e., package variables localized at runtime using "local"). You are >correct: The *foo = *bar is manipulating the symbol table, and lexicals >don't live there. An interesting module that will alias lexical variables >is Lexical::Alias. If you say: Awesome! I seem to have flipped dynamic & lexical in my head. Thanks for the correction & the pointer! -Bill From rspier at pobox.com Sat Aug 27 22:11:52 2005 From: rspier at pobox.com (Robert Spier) Date: Sat, 27 Aug 2005 22:11:52 -0700 Subject: [LA.pm] opportunities In-Reply-To: <5892CE03-0DD2-452F-8AA7-842E7CBD245E@mac.com> References: <23683.162.115.172.122.1125188146.squirrel@webmail.saltedsnail.com> <5892CE03-0DD2-452F-8AA7-842E7CBD245E@mac.com> Message-ID: > Thought I would put it out there that Yahoo (Pasadena location) is > looking for good local perl/mod_perl developers. I'm not a recruiter > (just an employee) but if anyone is interested I can pass information > up through the food chain... > cheers, > -Avram You mean: "The division of Yahoo formerly known as Overture and currently known as Yahoo Search Marketing" ? -R From md5 at embody.org Sat Aug 27 23:15:44 2005 From: md5 at embody.org (Mike Dillon) Date: Sat, 27 Aug 2005 23:15:44 -0700 Subject: [LA.pm] opportunities In-Reply-To: References: <23683.162.115.172.122.1125188146.squirrel@webmail.saltedsnail.com> <5892CE03-0DD2-452F-8AA7-842E7CBD245E@mac.com> Message-ID: <20050828061544.GA5105@hygelac.int.embody.org> begin Robert Spier quotation: > > Thought I would put it out there that Yahoo (Pasadena location) is > > looking for good local perl/mod_perl developers. I'm not a recruiter > > (just an employee) but if anyone is interested I can pass information > > up through the food chain... > > cheers, > > -Avram > > You mean: > > "The division of Yahoo formerly known as Overture and currently > known as Yahoo Search Marketing" He probably also meant: "(Pasadena location) (soon to be Burbank location adjacent to Bob Hope Airport)" -md From ask at develooper.com Sun Aug 28 00:01:23 2005 From: ask at develooper.com (=?ISO-8859-1?Q?Ask_Bj=F8rn_Hansen?=) Date: Sun, 28 Aug 2005 00:01:23 -0700 Subject: [LA.pm] opportunities In-Reply-To: <20050828061544.GA5105@hygelac.int.embody.org> References: <23683.162.115.172.122.1125188146.squirrel@webmail.saltedsnail.com> <5892CE03-0DD2-452F-8AA7-842E7CBD245E@mac.com> <20050828061544.GA5105@hygelac.int.embody.org> Message-ID: <3092EA17-4E9D-4F24-BD91-57E0CD7BA727@develooper.com> On Aug 27, 2005, at 11:15 PM, Mike Dillon wrote: > He probably also meant: > > "(Pasadena location) (soon to be Burbank location adjacent to > Bob Hope Airport)" And Frys! - ask -- http://www.askbjoernhansen.com/ From md5 at embody.org Sun Aug 28 01:11:53 2005 From: md5 at embody.org (Mike Dillon) Date: Sun, 28 Aug 2005 01:11:53 -0700 Subject: [LA.pm] opportunities In-Reply-To: <3092EA17-4E9D-4F24-BD91-57E0CD7BA727@develooper.com> References: <23683.162.115.172.122.1125188146.squirrel@webmail.saltedsnail.com> <5892CE03-0DD2-452F-8AA7-842E7CBD245E@mac.com> <20050828061544.GA5105@hygelac.int.embody.org> <3092EA17-4E9D-4F24-BD91-57E0CD7BA727@develooper.com> Message-ID: <20050828081153.GA3830@hygelac.int.embody.org> begin Ask Bj?rn Hansen quotation: > > On Aug 27, 2005, at 11:15 PM, Mike Dillon wrote: > > > He probably also meant: > > > > "(Pasadena location) (soon to be Burbank location adjacent to > > Bob Hope Airport)" > > And Frys! Now, if only they had somewhere to eat besides the planned on-site cafeteria... -md From wdr1 at pobox.com Sun Aug 28 11:30:08 2005 From: wdr1 at pobox.com (William Reardon) Date: Sun, 28 Aug 2005 11:30:08 -0700 Subject: [LA.pm] opportunities In-Reply-To: <20050828081153.GA3830@hygelac.int.embody.org> References: <23683.162.115.172.122.1125188146.squirrel@webmail.saltedsnail.com> <5892CE03-0DD2-452F-8AA7-842E7CBD245E@mac.com> <20050828061544.GA5105@hygelac.int.embody.org> <3092EA17-4E9D-4F24-BD91-57E0CD7BA727@develooper.com> <20050828081153.GA3830@hygelac.int.embody.org> Message-ID: <6.2.1.2.0.20050828112757.03e31688@amusive.com> At 01:11 AM 8/28/2005, Mike Dillon wrote: >begin Ask Bj?rn Hansen quotation: > > > > On Aug 27, 2005, at 11:15 PM, Mike Dillon wrote: > > > > > He probably also meant: > > > > > > "(Pasadena location) (soon to be Burbank location adjacent to > > > Bob Hope Airport)" > > > > And Frys! > >Now, if only they had somewhere to eat besides the planned on-site >cafeteria... While no cafeteria would match having Old Town at your disposal, if it's anything like our cafeteria up in Sunnyvale, it shouldn't be half-bad. -Bill >-md >_______________________________________________ >Losangeles-pm mailing list >Losangeles-pm at pm.org >http://mail.pm.org/mailman/listinfo/losangeles-pm From aavram at mac.com Sun Aug 28 17:38:40 2005 From: aavram at mac.com (a a) Date: Sun, 28 Aug 2005 17:38:40 -0700 Subject: [LA.pm] opportunities In-Reply-To: <20050828081153.GA3830@hygelac.int.embody.org> References: <23683.162.115.172.122.1125188146.squirrel@webmail.saltedsnail.com> <5892CE03-0DD2-452F-8AA7-842E7CBD245E@mac.com> <20050828061544.GA5105@hygelac.int.embody.org> <3092EA17-4E9D-4F24-BD91-57E0CD7BA727@develooper.com> <20050828081153.GA3830@hygelac.int.embody.org> Message-ID: <4442948D-3BC3-41F3-98CF-7773E2EE3DBB@mac.com> all true.. :) -Avram On Aug 28, 2005, at 1:11 AM, Mike Dillon wrote: > begin Ask Bj?rn Hansen quotation: > >> >> On Aug 27, 2005, at 11:15 PM, Mike Dillon wrote: >> >> >>> He probably also meant: >>> >>> "(Pasadena location) (soon to be Burbank location adjacent to >>> Bob Hope Airport)" >>> >> >> And Frys! >> > > Now, if only they had somewhere to eat besides the planned on-site > cafeteria... > > -md > _______________________________________________ > Losangeles-pm mailing list > Losangeles-pm at pm.org > http://mail.pm.org/mailman/listinfo/losangeles-pm > From rspier at pobox.com Tue Aug 30 15:48:20 2005 From: rspier at pobox.com (Robert Spier) Date: Tue, 30 Aug 2005 15:48:20 -0700 Subject: [LA.pm] Event Message-ID: We should have an event soon. Anyone have any preferences for days of the week? -R (wondering where the chopsticks went... and (throwing himself to the wolves) if anyone wants to hire him.) From e at arix.com Tue Aug 30 23:04:29 2005 From: e at arix.com (Erick Calder) Date: Tue, 30 Aug 2005 23:04:29 -0700 Subject: [LA.pm] Event In-Reply-To: Message-ID: Weds & Fris are best for me > From: Robert Spier > Date: Tue, 30 Aug 2005 15:48:20 -0700 > To: Los Angeles Perl Mongers > Subject: [LA.pm] Event > > > We should have an event soon. > > Anyone have any preferences for days of the week? > > -R (wondering where the chopsticks went... > and (throwing himself to the wolves) if anyone wants to hire him.) > _______________________________________________ > Losangeles-pm mailing list > Losangeles-pm at pm.org > http://mail.pm.org/mailman/listinfo/losangeles-pm