![]() |
|
We don't bite newbies here... much | |
PerlMonks |
Re: extracting numbers from a stringby modred (Pilgrim) |
on Feb 07, 2001 at 18:22 UTC ( #56956=note: print w/replies, xml ) | Need Help?? |
If they are all in fixed positions you can use substr repeatedly to extract the values
or you can use a regular expression and assign from the
$1-$9 variable.
perldoc -f substr perldoc perlre the regular expression code would look something like
In Section
Seekers of Perl Wisdom
|
|