go ahead... be a heretic | |
PerlMonks |
Re: Re: Loading a function from another file dynamically?!by chromatic (Archbishop) |
on Mar 24, 2003 at 00:06 UTC ( [id://245341]=note: print w/replies, xml ) | Need Help?? |
Using a module, you can run a function defined in that module. The module must be loaded at compile time. Partly true. More accurately, you can cause perl to compile things at run-time. The important bit is that it knows how to do the thing you're going to ask it to do when you ask to do it. require, in this case, can be quite useful.
In Section
Seekers of Perl Wisdom
|
|