Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Array Sort

by Khen1950fx (Canon)
on May 10, 2011 at 14:26 UTC ( [id://903985]=note: print w/replies, xml ) Need Help??


in reply to Array Sort

Sort::Array can do it.
#!/usr/bin/perl use strict; use warnings; use Sort::Array qw(Sort_Table); use Data::Dumper::Concise; my @data = qw( AC-BA91-CA AB-BA92-CA AD-BA90-CC AA-BA93-CA AA-BA89-CB ); warn Dumper @data = Sort_Table( cols => '3', field => '2', sorting => 'ascending', structure => 'csv', separator => '\-', data => \@data, );

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-25 07:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found