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

Re: Accessing variables in an external hash without eval

by kevbot (Priest)
on May 17, 2017 at 03:20 UTC ( #1190417=note: print w/replies, xml ) Need Help??


in reply to Accessing variables in an external hash without eval

The hash you provided is not legal perl syntax. Try changing your original hash data to
%hash = ( #scope changes Scope => { model => [ 'data I need', 'another row of needed data', 'more data I need' ] }, IrreleventScope => { #don't need this stuff } );

Replies are listed 'Best First'.
Re^2: Accessing variables in an external hash without eval
by victorz22 (Sexton) on May 17, 2017 at 04:40 UTC

    Thanks for catching my error but that isn't my actual hash it was only an example. I can't post the actual one but it does have a semicolon as well as the 1 at the end of the file.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1190417]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2018-01-20 17:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (227 votes). Check out past polls.

    Notices?