Re: Line Parsing/Splitting

2002-01-02 Thread John W. Krahn
"Hubert Ian M. Tabug" wrote: > > Given that $a = `1234 abcde abdcd acbd`; ^ ^ So you are running the program "1234" and want the output in $a or are the back-quotes a typo? > Would anyone know of of a way for me to just > "extract" the numerical

RE: Line Parsing/Splitting

2002-01-01 Thread Wagner-David
If it is at the start of the variable, then if ( $a =~ /^(\d+)/ ) { $numeric = $1; }else { # no starting digits, what do you want to do? } Wags ;) -Original Message- From: Hubert Ian M. Tabug [mailto:[EMAIL PROTECTED]] Sent: Thursday,