Re: Regular Expression

2001-06-04 Thread ISO-8859-1
One way is $string = 'context_config_file = "1298b";'; $string =~ /"(.*)"/; $data = $1; On 04 Jun 2001 13:41:03 -0400, Satheesh Ramakrishnan wrote: > All, > > How do I assign 1298b to some scalar variable from the string below. > > context_config_file = "1298b"; > > Th

Re: Beginners Training books

2001-06-04 Thread ISO-8859-1
Get an account on safari.oreilly.com. Choose the 5 book subscribition level (10USD a month). Subscribe to: _Learning Perl_, _Programming Perl_, _Perl Cookbook_, and _Advanced Perl Programming_. If you want to connect to a relation database subscribe to _Programming the Perl DBI_ On 04 Jun 2001

RE: A good book?

2001-06-04 Thread ISO-8859-1
I have not read _Perl in 21 Days_ by Lemay, but her books tend to be very well written. On 04 Jun 2001 15:14:02 -0400, Anthony Beaman wrote: > I saw on the FAQ that the "Perl 5 for NT in 21 Days" was recommended for > learning Win32. Though not on the FAQ, is Lemay's "Per in 21 Days" book also >

Re: reg exp

2001-06-05 Thread ISO-8859-1
\d is a shortcut for [0123456789] (any digit) \D is a shorcut for [^0123456789] (any non digit) You could remove " lines processed" like this: $string = "50 lines processed"; $string =~ s/\D//g; #substitute any non-number character with nothing if you are reading lines and want to not process