Think about Loose Coupling | |
PerlMonks |
Re^4: Extraction of numbers in an stringby Not_a_Number (Prior) |
on Nov 25, 2016 at 20:20 UTC ( [id://1176552]=note: print w/replies, xml ) | Need Help?? |
Even simpler: no need for grep. my @x = split /\D+/, $string;Update: tybalt89 and AnomalousMonk are both right, of course. My bad :(
In Section
Seekers of Perl Wisdom
|
|