perlquestion
Viko
<p>Hi folks,</p>
<p>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. </p>
<p>Any ideas? I've tried removing the lib path with a <code>BEGIN</code> block but that breaks other module imports that rely on my base lib path.</p>
<p>Here's some pseudo code:</p>
<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
</code>
<p>Thanks in advance,<br />
Vinny. </p>