One trick that I've used in the past is to modify @INC to also point to a directory I can modify (e.g. lib in my software release) and then require the module:
my $dir = Cwd::getcwd() . "/" . $0; $dir =~ s#([/\\])[^/\\]+$#/lib#; push(@INC,$dir); require PrivateModule;
That way you are only affecting your own script and you can use the standard module.
In reply to Re: Re: •Re: Can I include a package as part of my script?
by hawtin
in thread Can I include a package as part of my script?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |