in reply to Pearls (not really) of Perl programming
Maybe it'll take 2 or 3 days to understand what is goin'on here... ;-)@aFieldsList = sort { $a eq 'listtype' and -1 or $b eq 'listtype' and 1 or $a eq 'listcode' and ( $b ne 'listtype' and -1 or 1 ) or $b eq 'listcode' and ( $a ne 'listtype' and 1 or -1 ) or $a eq 'funclist' and ( $b !~ /^(listtype|listcode)$/ and -1 or + 1 ) or $b eq 'funclist' and ( $a !~ /^(listtype|listcode)$/ and 1 or -1 ) } @aFieldsList;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Pearls (not really) of Perl programming
by rir (Vicar) on Nov 24, 2004 at 18:41 UTC | |
by ysth (Canon) on Nov 24, 2004 at 23:53 UTC | |
by rir (Vicar) on Nov 29, 2004 at 18:28 UTC | |
by Courage (Parson) on Dec 01, 2004 at 15:21 UTC | |
by htoug (Deacon) on Dec 01, 2004 at 18:49 UTC | |
by Courage (Parson) on Dec 01, 2004 at 23:35 UTC | |
by ysth (Canon) on Dec 01, 2004 at 16:49 UTC | |
|
Re^2: Pearls (not really) of Perl programming
by Mutant (Priest) on Nov 24, 2004 at 17:33 UTC |