Gerryjun has asked for the wisdom of the Perl Monks concerning the following question:
@RE_QUERY = sort { "$QUERY {$a}[3] $QUERY {$a}[2] $QUERY {$a}[0]" cmp + "$QUERY {$b}[3] $ QUERY {$b}[2] $QUERY {$b}[0]" } keys % QUERY;
$titles{$PathFilename} = $title; $descriptions{$PathFilename} = $description;
$RESULTS{PathFilename}[0] = $title; $RESULTS{PathFilename}[1] = $description;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sorting a Hash by the presence of a $tring Argument
by MZSanford (Curate) on Oct 30, 2001 at 21:41 UTC | |
|
Re: Sorting a Hash by the presence of a $tring Argument
by pike (Monk) on Oct 31, 2001 at 01:18 UTC |