in reply to Trying to access hash from external perl file
Ok thanks for all the replies. Yes, there is a typo in my code. Sorry about that, it has been corrected.
Also, there isn't a package keyword used File_a.pl so it isn't in any specified namespace. The hash does have a lexical scope. I edited the code to reflect that as well.
To clarify further, I can't modify File_a.pl
I tried the "do" keyword and couldn't access the data. Perhaps I'll try the slurp keyword.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Trying to access hash from external perl file
by kennethk (Abbot) on Jul 11, 2012 at 19:06 UTC |