in reply to Re^5: Dangerous Names
in thread Dangerous Names
Whatcha talkin bout Willis?My nickname is tinita.
So where's the last print statement? It isn't executed. sort dies. Or what exactly was your question?perl -wle'@a = sort { print "$a <=> $b"; $a <=> $b } 2, 3, "nan"; print "\@a = @a";' 2 <=> 3 2 <=> nan Sort subroutine didn't return a numeric value at -e line 1.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Dangerous Names
by Anonymous Monk on Dec 18, 2008 at 16:31 UTC | |
by tinita (Parson) on Dec 18, 2008 at 16:40 UTC | |
by Anonymous Monk on Dec 18, 2008 at 16:45 UTC |