in reply to Re^6: Tidy up conditions
in thread Tidy up conditions

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        

Replies are listed 'Best First'.
Re^8: Tidy up conditions (false)
by tel2 (Pilgrim) on Mar 21, 2015 at 04:26 UTC
    Well explained, tye.

    Thanks very much for that.

    Tel2