in reply to Unexpected effect of -w with undef

Heh...if you used -w, you would have caught this.

$ perl -wew 'if (undef() eq undef()) {print "true" }else{ print "false +"}' Unquoted string "w" may clash with future reserved word at -e line 1. Useless use of a constant in void context at -e line 1.

Sorry...couldn't resist.

-b

Replies are listed 'Best First'.
Re^2: Unexpected effect of -w with undef
by Joost (Canon) on Dec 22, 2004 at 21:44 UTC