On Tue, Sep 10, 2002 at 03:26:57AM -0700, RTO RTO wrote: > In a nutshell, is there a way, where user-defined functions can be > "safely" added to my local installation of Perl and make it believe that > such user-defined functions to be a part of "standard Perl functions"? Can > I invoke such user-defined functions without making an explicit "use > MyPackage;" statement?
There might be a way of doing what you ask, perhaps through UNIVERSAL.pm, but this is a really bad idea. If ever you actually use these implicit functions your Perl code will become instantly unportable to any other system, unless you make similar modifications to that system. Anyone who has to maintain your code, including possibly you, will become confused about where these functions are coming from. The best solution to your problem is to place these functions into a module and use that module wherever you need these functions. The module could even automatically import these functions when you use it, to provide the least amount of effort on your part, while still providing a trail for where the functions came from. For more information on this see perldoc perlmod and perldoc Exporter. Michael -- Administrator www.shoebox.net Programmer, System Administrator www.gallanttech.com -- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]