Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Parsing a data file to find the highest value.

by FunkyMonk (Chancellor)
on Nov 30, 2007 at 18:55 UTC ( [id://654167]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $high_id = 0;
    open my $ID_FILE, "<", "path/to/file" or die $!;
    ...
        $high_id = $id if $id > $high_id;
    }
    print "highest id found = $high_id\n";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (1)
As of 2024-04-25 03:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found