in reply to Re: "Can't happen" bugs
in thread "Can't happen" bugs

Beautiful! That's why you should always put the constant on the left:

if(0 = $x) # Can't modify constant item in scalar assignment.

Replies are listed 'Best First'.
Re^3: "Can't happen" bugs
by lodin (Hermit) on Jul 05, 2008 at 15:42 UTC

    Or use warnings:

    use warnings; my $x; if ($x = 0) { 1 } __END__ Found = in conditional, should be == at - line 4.

    lodin