then you can write your own import() function that will see what is actually being imported. (Look at the source for Exporter to get a feel of what to do.) You can then intercept the importation and have the link to your function be there instead.use CGI::MyChild qw(:form);
And, in your import() function, you can see what functions are in %::main and mess with them. Alternately, you could overload the functions in the CGI namespace, but you need to take care with that.use CGI qw( :form ); use CGI::MessWithForms;
Personally, I'd recommend subclassing CGI and require that everyone create an instance of your class. *shrugs* But, that's just me.
------
We are the carpenters and bricklayers of the Information Age.
Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose
I shouldn't have to say this, but any code, unless otherwise stated, is untested
In reply to Re: Imported symbol names
by dragonchild
in thread Imported symbol names
by shemp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |