in reply to A Warning Issue!

Where does $_ come from? Are those keys defined in the hash it references?

Replies are listed 'Best First'.
Re^2: A Warning Issue!
by Anonymous Monk on Feb 19, 2008 at 16:25 UTC
    Yes it is!
    $data = (); $sql = sprintf $sql_fmt, $account->[$i]{ 'ACCOUNT#' }; $data = exec_select( $sql ); foreach (@$data) { ....

      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.

        Yes it could be it, but how could I prevent the warning if they have no value?