Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

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
Replies are listed 'Best First'.
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.
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 ...> }

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2015-11-28 18:16 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (743 votes), past polls