in reply to Accessing hashes in main program from subroutine
hi,
seems like you have a bug in $tData{$key}
this access %tData and NOT referenced hash $tData.
try changing to $tData->{$key} and check again.
BTW, use strict would have told you you're doing something wrong here ...
HTH,
Mickey
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Accessing hashes in main program from subroutine
by Angharad (Pilgrim) on Jan 09, 2008 at 16:23 UTC |
In Section
Seekers of Perl Wisdom