"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 portion of the string. The > numerical part is not fixed in length it could be > composed4, 3, 2 or 1 digit I was thinking that the > string could be treated as an array of characters > and that I could just parse the string by accessing > its index, say $a[0]?? Your assistance would be > greatly appreciate. my ( $number ) = $a =~ /\d+/g; John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]