Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: A Warning Issue!

by thezip (Vicar)
on Feb 19, 2008 at 16:55 UTC ( #668841=note: print w/ replies, xml ) Need Help??


in reply to Re^2: A Warning Issue!
in thread A Warning Issue!

At the risk of adding more bulk to your code, try this check first, as well as one for $_-> { TEST34) }.

if ($_->{ TEST33 } ) { <your previous code here ...> }

Your wish is my commandline.


Comment on Re^3: A Warning Issue!
Select or Download Code
Re^4: A Warning Issue!
by Anonymous Monk on Feb 19, 2008 at 18:13 UTC
    I could use something like that for all that apply as well, right?

    if(defined $_->{ TEST33 } && $_->{ TEST34 } && $_->{ TESTX33 }) { <Previous code here ...> }
Re^4: A Warning Issue!
by dsheroh (Parson) on Feb 19, 2008 at 18:23 UTC
    Just don't forget the implicit assumption here that $_->{TEST33} will never be zero. If zero is a valid (or even possible) value, you probably want to test if (defined $_->{TEST33}) instead.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2015-07-04 18:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls