in reply to How come undef eq '' ??
Anyway using warnings you'll often get "Use of uninitialized value" messages.
I do not understand what your intentions are, but if you wanna test for undef use the designated functions defined or //
Equality Operators in perlop
Binary "==" returns true if the left argument is numerically equal to
the right argument.
...
Binary "eq" returns true if the left argument is stringwise equal to
the right argument.
Cheers Rolf
|
|---|