Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Accessing hashes in main program from subroutine

by mickeyn (Priest)
on Jan 09, 2008 at 15:58 UTC ( #661387=note: print w/replies, xml ) Need Help??


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
    thanks a lot. That worked a treat :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://661387]
help
Chatterbox?
[LanX]: ♪..♫ Don't cry for me Mandarina .......♩..♬
[karlgoethebier]: ...pasta bolded too soft in Eately?
[karlgoethebier]: BOILED!
[karlgoethebier]: OK, at least a cool song: https://www. youtube.com/watch? v=jU4caMqKssg

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2017-10-21 15:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (270 votes). Check out past polls.

    Notices?