Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Reading a hash structure stored in a file

by kschwab (Vicar)
on Jan 15, 2019 at 20:36 UTC ( #1228619=note: print w/replies, xml ) Need Help??


in reply to Reading a hash structure stored in a file

The key advice is in the error: did you forget to declare "my %hash1"?

So add "my %hash1;" either to your script, or the evaled file. Somewhere before assigning to it.

  • Comment on Re: Reading a hash structure stored in a file

Replies are listed 'Best First'.
Re^2: Reading a hash structure stored in a file
by haukex (Bishop) on Jan 15, 2019 at 21:21 UTC
    So add "my %hash1;" either to your script, or the evaled file.

    Unfortunately that won't help in this case, since the file being evaled contains a my %hash1 declaration that'll mask a %hash1 declared in the main code.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1228619]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2021-09-18 17:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?