|
|
| There's more than one way to do things | |
| PerlMonks |
Re: shift and logical orby mhearse (Hermit) |
| on Nov 17, 2012 at 01:20 UTC ( #1004272=note: print w/ replies, xml ) | Need Help?? |
|
Consider my $val ||= "undefined"
Which is equivalent to:
Blocks of code like that tend to clutter up your code.
Also consider:
Which is equivalent to:
Also, remember perl evaluates expressions for truth.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||