Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
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 taking refuge in the Monastery: (5)
As of 2024-04-24 01:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found