Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1120823]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-19 15:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found