Welcome to the Monastery | |
PerlMonks |
Re^7: Tidy up conditions (false)by tye (Sage) |
on Mar 21, 2015 at 03:28 UTC ( [id://1120823]=note: print w/replies, xml ) | Need Help?? |
Because $item =~ /^([^:]+):/ gives a false value that is not an undefined value when it fails (and $false && $blah returns $false not undef and $notundef // $blah returns $notundef not $blah). - tye
In Section
Seekers of Perl Wisdom
|
|