RE: question on regex's {}

2001-05-19 Thread Joseph P. Discenza
: I have a string: : $line = "12345.123.129683.129837.7263.128." : It is a string of numbers separated by a dot. : : The regex: : $line =~ s/^(\d+\.)/\1/; : will return the first number followed by a dot ie "12345." : But what I want is to be given an arbrirary number $x and to : extract that

Re: Deleting records from database after 5 days

2001-05-19 Thread Carl Jolley
On Sat, 19 May 2001, Mauricio Lairet P. wrote: > Hi! > > I'm new to this. I am doing a system shoppingcart-like system that works > like this: > > When a user buys anything, we must give him up to 5 days to make the > payment. If within those 5 days, the user has not completed the payment, the >

XML

2001-05-19 Thread Alex Lee
HI all: Does anyone know if there is a module out there that can parse specific xml tags from an xml file: for example: ca march ny jan : and have the parser give me all info embeded in ? Thanks in advance! Alex :) __

Re: Seek Safe Way of Stripping Out Comments

2001-05-19 Thread James E Keenan
Several days ago I asked, "Has anyone written a module that safely strips out all comments from a Perl script?" This is problematic because the # sign can occur in quoted matter as well as $#array indicating the last index in @array. Thanks to all who responded. James S. Martin <[EMAIL PROTECTE

Re: question on regex's {}

2001-05-19 Thread Nick Pomponio
At 06:23 AM 5/19/2001, you wrote: >Hi, > > >> $line = "12345.123.129683.129837.7263.128." > >> $x = 3; > >> $line =~ s/^(\d+\.){$x}/\1/; > >I was expecting $line to be >12345.123.129683. If you want to use the regex approach, there are two points: 1) Even if the regex matched the string you inte

Re: GD.pm

2001-05-19 Thread TECKIES.COM Online Magazine
-Original Message- From: Edward G. Orton <[EMAIL PROTECTED]> To: Lee Goddard <[EMAIL PROTECTED]>; Perl_Users <[EMAIL PROTECTED]> Date: Saturday, May 19, 2001 9:49 AM Subject: Re: GD.pm > >- Original Message - >From: "Lee Goddard" <[EMAIL PROTECTED]> >To: "Perl_Users" <

Re: question on regex's {}

2001-05-19 Thread Jaime Teng
Hi, >> $line = "12345.123.129683.129837.7263.128." >> $x = 3; >> $line =~ s/^(\d+\.){$x}/\1/; I was expecting $line to be 12345.123.129683. Jaime ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/per