Don't ask to ask, just ask | |
PerlMonks |
Re^3: Accessing variables in an external hash without evalby marinersk (Priest) |
on May 18, 2017 at 02:13 UTC ( [id://1190513]=note: print w/replies, xml ) | Need Help?? |
I still get an uninitialized variable for my @hashData. Then it seems obvious that you're not loading a value with this line: my @hashData = $hash{Scope}{model}; Side note: This should probably read more like: my @hashData = @$hash{Scope}{model}; Never assume there is data where you expect it to be when it is coming from an outside source. Check it first. For example:
...or something of that ilk.
In Section
Seekers of Perl Wisdom
|
|