Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

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.

Replies are listed 'Best First'.
Re^4: A Warning Issue!
by dsheroh (Prior) 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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2018-06-23 01:42 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (125 votes). Check out past polls.