in reply to Re: sort hash of arrays of arrays
in thread sort hash of arrays of arrays
Ok, sorry, it's not a multi-dimensional array this way. In my script I build it up from a tab-delimited text file as follows:
my %hash; while (<FILE>) { chomp; my @line = split("\t"); push(@{$hash{$line[1]}}, [@line]); }
This, at the end, is a 3-D array.
How can I do the sort based on the 2nd item of the innermost array?
Thank you,
maladav
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: sort hash of arrays of arrays
by BrowserUk (Patriarch) on Oct 31, 2012 at 15:16 UTC | |
by maladav (Initiate) on Oct 31, 2012 at 15:49 UTC | |
by BrowserUk (Patriarch) on Oct 31, 2012 at 16:05 UTC | |
by maladav (Initiate) on Oct 31, 2012 at 16:31 UTC | |
by BrowserUk (Patriarch) on Oct 31, 2012 at 16:44 UTC |
In Section
Seekers of Perl Wisdom