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 (updated)

by mr_ron (Chaplain)
on Jul 25, 2019 at 14:21 UTC ( [id://11103378]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -n
    
    ...
    # stolen day I had to remove code.
    #
    
  2. or download this
    ron@penguin:~/monk-bus/line-w-high-no$ ./high-line.pl <in-data.txt 
    1 this year is 2019 1
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-03-29 05:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found