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

From this snippet and the first one I can understand that data is an array that references hashes. This last snippet shows that data may be defined with the result of the call to exec_select. Still, that shows no guarantee that the hashes in data have the keys $_->{TEST34} and $_->{TEST33}. You may be assuming that they are present, but they are not.

Replies are listed 'Best First'.
Re^4: A Warning Issue!
by Anonymous Monk on Feb 19, 2008 at 16:58 UTC
    Yes it could be it, but how could I prevent the warning if they have no value?

      You could break your if statement and check separately if those elements are defined.

      if(defined $_->{ TEST33 } && $_->{ TEST33 } ) { # do something with $_->{ TEST33 } # like setting pre-check vars to be used in later conditionals }