David.for my $rec ( sort { if ($_ eq "PTR") { $a <=> $b} ; else { $a cmp $b +} } @{$dns_records{$_}} ) { # etc }
In reply to Re^2: Syntax question about closures and Perl 'sort'
by dwm042
in thread Syntax question about closures and Perl 'sort'
by dwm042
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |