Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: sorting entires by date

by pg (Canon)
on Jan 01, 2004 at 23:18 UTC ( #318189=note: print w/replies, xml ) Need Help??


in reply to sorting entires by date

First get your file into an array thru Tie::File, then:

use Data::Dumper; my @a = ("image1.jpg:100:250:1062352538", "image2.jpg:650:175:10623403 +59"); @a = sort {(split(":", $a))[-1] <=> (split(":", $b))[-1]} @a; print Dumper(\@a);

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://318189]
help
Chatterbox?
[james28909]: it is this node node_id=1190960
[james28909]: excuse me id=1190960
[james28909]: what am i doing worng...
[james28909]: i do not have fun with this chat box :(

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2017-05-24 01:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?