... captured groupings from a regex can be put in an array.
And they don't even have to be captured. Try
@numbers = $line =~ /\d+/g;
Give a man a fish: <%-{-{-{-<
In reply to Re^3: Print the line with the largest number from standard input
by AnomalousMonk
in thread Print the line with the largest number from standard input
by SSSufe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |