> Andrew Gaffney wrote:
> > I've been using Perl for about a year. I'm writing my own 
> module that
> > contains some custom functions that I use a lot. In doing this, I
> > started wondering how modules work. For example, if my module has
> > 'use SomeModule;' and a script I write has 'use MyModule;', 
> does that
> > mean that I am effectively saying 'use SomeModule;' in my script? 
> > 
>       Yes. If that SomeModule is not on the system you are 
> running then your module will not run.
> Wags ;)
> > --


On that note, I use CVS for maintaining module versions, and I like
using the 'version' pragma when importing to make sure the right
version has arrived.

If there is *NO* version, then that is a problem, and an AUTOLOAD, or
overload (overlord?) function would track it down and pull it out of
CVS as required.

If only...

How do I overload the 'require' and 'use' to make sure I can supply
a 'last resort' action before file not found?
 

--              
Senior Technical Specialist             
I d e n t i t y   S o l u t i o n s     
        
Level 1, 369 Camberwell Road, Melbourne, Vic 3124       
Ph 03 9813 1388 Fax 03 9813 1688 Mobile 0417 595 550
Email [EMAIL PROTECTED] 
 


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


Reply via email to