in reply to How can I source other perl scripts from within a Perl script
I'm writing a little script to check whois servers. One funky feature will be the ability to check for domains which don't have a whois server, only a web-based look up - like .tv domains. To do this, I have a wrapper function which chooses whether to do a normal whois or a web whois. The web whois uses the LWP module, like a good perl script.
Now I don't want to load the LWP module - which is not small, right? - every time I run the script, but only when someone is looking up a .tv domain. Is there a simple way to "use" or "require" a module at run time, without getting compile time exceptions because Perl can't find methods and subroutines from the module within the code?
I have a feeling AUTOLOAD has something to do with this... any deep wisdom would be gratefully received.
Thanks
David
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Related question: loading modules at run time
by davorg (Chancellor) on Jan 23, 2001 at 19:15 UTC | |
|
Re: Related question: loading modules at run time
by goldclaw (Scribe) on Jan 23, 2001 at 19:30 UTC | |
|
Re: Related question: loading modules at run time
by repson (Chaplain) on Jan 24, 2001 at 09:07 UTC |