Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by choroba (Cardinal)
on Jul 22, 2019 at 12:45 UTC ( [id://11103136]=note: print w/replies, xml ) Need Help??


in reply to Print the line with the largest number from standard input

Crossposted to StackOverflow.

Crossposting is allowed, but it's considered polite to inform about it so people not attending both sites don't waste their efforts solving a problem already solved at the other end of the internet.

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^2: Print the line with the largest number from standard input
by erzuuli (Cannon) on Jul 23, 2019 at 14:05 UTC

    Good catch! In fact, this was most likely (imho) a plagiarized post. That is to say, the person who posted it here is not the same person who posted it on SO.

    I appreciate your watchful eye for such things.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-25 07:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found