I want to overload CGI.pm with some minor tweaks of mine. It has to have the same name (using use 'lib' or PERL5LIB to access mine first), due to the number of files I'd have to change in order to replace the original with mine. The problem is that my module has to call the original CGI.pm after it's done.
Any ideas? I've tried removing the lib path with a BEGIN block but that breaks other module imports that rely on my base lib path.
Here's some pseudo code:
use lib '/path/to/my/root/lib';
use CGI; #this one is mine, found under /path/to/my/root/lib/CGI.pm
# need to find a way to 'use', or 'use base' the original CGI.pm here
#... some code here to set $query_string...
return CGI->new($query_string); # this Lincoln Stein's CGI.pm
Thanks in advance,