Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Sorting two dimensional arrays

by mpd (Monk)
on Aug 16, 2003 at 22:41 UTC ( #284373=note: print w/replies, xml ) Need Help??


in reply to Sorting two dimensional arrays

here's a snippet that should help:
#!/usr/bin/perl -w use strict; my @arr = ( ['one','two','three','four'], ['first','second','third','fourth'], ['jim','bob','bill','sally'], ); print $arr[1]->[1]; # prints "second"
hope that helps.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2021-11-30 07:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?