Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: modify the oder a list with the help of a hash table

by snopal (Pilgrim)
on Jul 26, 2007 at 16:00 UTC ( [id://628965]=note: print w/replies, xml ) Need Help??


in reply to modify the order a list with the help of a hash table

I try to remove all odor from my code, not just mask it.

Wait! You must mean sorting order...

@KEYS = sort @KEYS;

Assignment of the result is missing from your code.

Also, unless you have a logic issue (time not reported in 24 hour format) you should be able to string sort that time field directly.

$Hash{$Element[5]} = $Line;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-04-24 23:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found