in reply to help with array of arrays
With this code, the numbers are printed out as follows.foreach my $sort (@sorted){ print "<h1>$sort->[2]</h1>"; } # sort the array of arrays by price @sorted = sort {$main::a->[2] <=> $main::b->[2]} @sorted; foreach my $sort (@sorted){ print "<h1>$sort->[2]</h1>"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: help with array of arrays
by Chmrr (Vicar) on Apr 01, 2002 at 02:43 UTC | |
|
Re: Re: help with array of arrays
by gav^ (Curate) on Apr 01, 2002 at 02:47 UTC |