XP is just a number | |
PerlMonks |
Re^2: Short form (ternary) if elseby trwww (Priest) |
on Feb 09, 2012 at 17:38 UTC ( [id://952795]=note: print w/replies, xml ) | Need Help?? |
Whenever I see this I usually see this right afterwards: if ( $vxdg != '' ) {Where they should probably be using: if ( $vxdg ) {Which would make the || "" in the assignment unnecessary. Yes, I understand sometimes zero and the empty string are distinct values from undef in many business rules, but I don't think that applies as aften as many coders believe.
In Section
Seekers of Perl Wisdom
|
|