Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^4: IF and GREP Question

by jwkrahn (Monsignor)
on Sep 18, 2013 at 06:10 UTC ( #1054590=note: print w/ replies, xml ) Need Help??


in reply to Re^3: IF and GREP Question
in thread IF and GREP Question

"if ()" imposes a scalar context.

Actually it imposes a boolean context, which is basically the same as scalar context.

"if (@found)" sees undef or zero

An array in boolean context cannot be undef.    In fact, defined doesn't work with arrays anymore.


Comment on Re^4: IF and GREP Question

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2014-09-19 01:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (129 votes), past polls