Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Finding the latest available version of a program

by ysth (Canon)
on Feb 02, 2004 at 21:15 UTC ( [id://326002]=note: print w/replies, xml ) Need Help??


in reply to Finding the latest available version of a program

The hash doesn't actually make it easier, an array would do just as well. Something like:
my $package = "gcc"; my $latest_vers = (sort grep /^\Q$package\E-/, keys %apps)[-1];

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-03-29 08:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found