Don't ask to ask, just ask | |
PerlMonks |
Re: Why is @flds not imported?by ikegami (Patriarch) |
on Sep 24, 2017 at 23:14 UTC ( [id://1200016]=note: print w/replies, xml ) | Need Help?? |
You gotta be super careful when you place a module in a script or in the same file as another module. It's very easy to execute code in the wrong order. And this is what happened here. Let's look at the following simplified version of your code:
In broad strokes, the following is the compilation and execution process:
Note the relative order of the statements in bold. At the time of import, @EXPORT was empty. Fix:
In Section
Seekers of Perl Wisdom
|
|