go ahead... be a heretic | |
PerlMonks |
Re: Answer: How to deal with undefined returned variables.by rinceWind (Monsignor) |
on Mar 06, 2002 at 17:00 UTC ( [id://149745]=note: print w/replies, xml ) | Need Help?? |
I take it that the difference between // and || is the difference between testing truthfulness and testing definedness. Hence there is not difference between $a // $b and $a || $b unless $a is 0 or "". It doesn't sound that useful to me.
In Section
Seekers of Perl Wisdom
|
|