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 reply to Re^7: Tidy up conditions (false)
by tye
in thread Tidy up conditions
by tel2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |