in reply to Re: why can't compare a variable with undef directly?
in thread why can't compare a variable with undef directly?
Actually that is invalid because exists doesn't operate on scalars.
exists argument is not a HASH or ARRAY element or a subroutine at ...
The valid equivalent of that is defined $a && defined $b but don't use $a and $b outside of a sort.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: why can't compare a variable with undef directly?
by RonW (Parson) on Dec 10, 2014 at 21:40 UTC | |
by Mr. Muskrat (Canon) on Dec 10, 2014 at 22:19 UTC | |
by RonW (Parson) on Dec 10, 2014 at 22:55 UTC | |
|
Re^3: why can't compare a variable with undef directly?
by Anonymous Monk on Dec 10, 2014 at 17:55 UTC |