in reply to Re^5: Dangerous Names
in thread Dangerous Names

Whatcha talkin bout Willis?
My nickname is tinita.
Go read the original posting.
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.
So where's the last print statement? It isn't executed. sort dies. Or what exactly was your question?

Replies are listed 'Best First'.
Re^7: Dangerous Names
by Anonymous Monk on Dec 18, 2008 at 16:31 UTC
    Dammit, Jim
    D:\>perl -wle"@a = sort { print qq,$a <=> $b,; $a <=> $b } 2, 3, qq,na +n,;print for @a 2 <=> 3 2 <=> nan nan 2 3
    Do you even look at what I post? It doesn't die for me. Perl 5.8/5.10
      Do you even look at what I post? It doesn't die for me. Perl 5.8/5.10
      I did.
      This is perl, v5.8.8 built for i486-linux-gnu-thread-multi
      Please read Re: Dangerous Names - this seems to happen only on some ssystems.
        D'oh.
        C:\>perl -MDevel::Peek -e"Dump(0 <=> 'Nan McEntire')" SV = IV(0x182c75c) at 0x22506c REFCNT = 1 FLAGS = (PADBUSY,PADTMP,IOK,READONLY,pIOK) IV = 0 C:\>C:\strawberry\perl\bin\perl -MDevel::Peek -e"Dump(0 <=> 'Nan McEnt +ire')" SV = IV(0x9795f8) at 0x9795fc REFCNT = 1 FLAGS = (PADTMP,IOK,READONLY,pIOK) IV = 0