Your skill will accomplish what the force of many cannot |
|
PerlMonks |
where to use "use" and packageby smackdab (Pilgrim) |
on Aug 01, 2002 at 03:22 UTC ( [id://186673]=perlquestion: print w/replies, xml ) | Need Help?? |
smackdab has asked for the wisdom of the Perl Monks concerning the following question:
In my Debug.pm file, it make a difference whether I put the "use" statements before or after the package declaration...
If I put them as this, I get undefined subroutine: I can either move the "use" statements after the package declaration or I can explicitely call copy with File::Copy::copy(...) But "copy()" has been @EXPORTed in the module...so I am confused ;-) What is best? THANKS! OFFTOPIC, but maybe a moderator is interested: If you use my title and then do a preview, the resulting title is only "where to use", the rest is chopped off
Back to
Seekers of Perl Wisdom
|
|