Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Accessing the hash name in perlby 1nickt (Canon) |
on Mar 22, 2017 at 12:58 UTC ( [id://1185445]=note: print w/replies, xml ) | Need Help?? |
As hippo said, your code goes about your task in an over-complicated way. Just load the library normally and call a function in it. ( See the monastery's Tutorials on modules. ) MyLib.pm : my_script.pl :
Or, use a data format suited to hashes: my_data.yaml :
my_script2.pl :
Hope this helps!
The way forward always starts with a minimal test.
In Section
Seekers of Perl Wisdom
|
|