go ahead... be a heretic | |
PerlMonks |
Re: Matching two real numbers in a string using regexby Silicon Cactus (Scribe) |
on Sep 06, 2002 at 14:35 UTC ( [id://195652]=note: print w/replies, xml ) | Need Help?? |
Why use a regex for this at all, when a simple split will do?
my($FirstNo, $SecondNo) = split /to/; Much more simple, IMHO.
In Section
Seekers of Perl Wisdom
|
|