Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: Print the line with the largest number from standard input

by AnomalousMonk (Archbishop)
on Jul 22, 2019 at 13:33 UTC ( [id://11103141]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Print the line with the largest number from standard input
in thread Print the line with the largest number from standard input

... 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:  <%-{-{-{-<

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11103141]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-20 03:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found