go ahead... be a heretic | |
PerlMonks |
Re: Difference between 'use' and 'require'by rrwo (Friar) |
on Dec 07, 2004 at 20:29 UTC ( [id://412995]=note: print w/replies, xml ) | Need Help?? |
Don't forget the arcane 'unimport' routine that is called when you use 'no' instead of 'use'. It's good for making subroutines and constants have no-op or undefined values, so that code which calls the module doesn't have to worry about breaking in strict mode. This only works for modules that have an unimport subroutine defined, though. Carp::Asset is a good example:
In Section
Seekers of Perl Wisdom
|
|