I am not sure if this would be inane to ask. But here is a dilemma:

I have three functions, ltrim, rtrim and trim. As the function names adumbrate, each 
of them trims white-spaces -- the usual trimming stuff. Since, these functions do not 
exist in Perl and of course I can club them together in the form of a package and then 
invoke it, I was wondering if there is a way to make these three functions to go into 
some "core-box" of Perl, so that they will be seen by my Perl scripts, just similar to 
say substr, chomp, chop etc that are defined as CORE functions of Perl.

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?

Thanks,

Rex



---------------------------------
Yahoo! - We Remember
9-11: A tribute to the more than 3,000 lives lost

Reply via email to