Jonathan Mast <[EMAIL PROTECTED]> wrote:
> Can you use the $main:: convention from inside a module to 
> call a script subroutine?
> 
> I know it can be used to reference fields from a script, but 
> we seem to be having problems when trying to call a subroutine.

Please don't do that, it's evil. If you need to call a subroutine
from your main package in your module, then pass in a function
reference to use as a callback.

Cheers,
Thomas


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to