Even simpler: no need for grep.
my @x = split /\D+/, $string;Update: tybalt89 and AnomalousMonk are both right, of course. My bad :(
In reply to Re^4: Extraction of numbers in an string
by Not_a_Number
in thread Extraction of numbers in an string
by t-rex
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |