in reply to Subroutines not exporting? Why?
How do you expect a subroutine that is after the __END__ token to ever be compiled, let alone exported?
__END__ sub get_file_name { ... }
This looks like a throwback to the bad old days of AutoSplit -- which was a hinky trick at the best of times, and these days really doesn't make sense -- but if you really have a good reason to defer compilation, then you would need to be using the AutoSplit module.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Subroutines not exporting? Why?
by no21 (Sexton) on Jul 06, 2015 at 14:42 UTC | |
by AnomalousMonk (Archbishop) on Jul 07, 2015 at 01:00 UTC |