|laziness, impatience, and hubris|
Re^4: How to pass an argument to a Module?by mascip (Pilgrim)
|on Sep 09, 2012 at 18:25 UTC||Need Help??|
The author's response (i tried it and it works, with sub IMPORT) :
This is not a bug in the module.
:DEFAULT exports are only exported when the module is use'd with no arguments at all.
But then you call:
with an argument, so the :DEFAULT exports don't happen.
You could fix this by specifying:
(assuming you always want subr() exported).
If not, then you need to specifically request subr(), like this:
or request all the defaults, like this: