http://qs321.pair.com?node_id=1190417


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.