go ahead... be a heretic | |
PerlMonks |
Perl module symbol import versus direct invocationby JayBonci (Curate) |
on Feb 26, 2003 at 07:29 UTC ( [id://238686]=perlquestion: print w/replies, xml ) | Need Help?? |
JayBonci has asked for the wisdom of the Perl Monks concerning the following question:
I am quite bewildered by while a particular perl module can tell the difference between when it a function is use'd into scope and when it is called directly from the module name. In this example that I gave earlier in response to a question:
Works fine. But this: Doesn't work correctly. It throws a usage warning. (Keep in mind this throws the error even if I add the qw symbol import). Perhaps, I'm wrong, but I thought that specifying the scope with ModuleName->FunctionName didn't call the function any differently or with any different parameters. Where's the bug? My code? My reasoning? The module? Thanks for any guidance anyone can give. --jaybonci
Back to
Seekers of Perl Wisdom
|
|