in reply to Possible memory leak, hash dereference in loop
It's a little longer to type, but exists skips the autovivification. Depending on what's defined in $rDTX and where, you may have to see if more keys exist (like $txit, $txqu, and $key). It's hard to tell without seeing example data, though.if (exists $rDTX->{$key}{$txqu}{$txit}{ResponseText}) { print $rDTX->{$key}{$txqu}{$txit}{ResponseText}, "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Memory problems...
by clearcache (Beadle) on Oct 31, 2001 at 18:15 UTC |