Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Reading a hash structure stored in a file

by kschwab (Vicar)
on Jan 15, 2019 at 20:36 UTC ( [id://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.

Replies are listed 'Best First'.
Re^2: Reading a hash structure stored in a file
by haukex (Archbishop) 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?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-03-28 08:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found