Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Schwartzian transform deformed with impunity

by moritz (Cardinal)
on Apr 22, 2012 at 16:39 UTC ( #966480=note: print w/replies, xml ) Need Help??


in reply to Schwartzian transform deformed with impunity

The reason for the warnings is that the split returns chunks like 9.gb.txt, which are not numeric. Try to just extract the number:

@sorted = map{$_->[0]} sort{$a->[1] <=> $b->[1]} map{ [$_, /(\d+)/g] } + @unsorted;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://966480]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2017-11-18 16:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (277 votes). Check out past polls.

    Notices?