in reply to Imported symbol names
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Imported symbol names
by shemp (Deacon) on Jul 08, 2004 at 18:05 UTC | |
by dragonchild (Archbishop) on Jul 08, 2004 at 18:17 UTC | |
by shemp (Deacon) on Jul 08, 2004 at 18:32 UTC | |
by dragonchild (Archbishop) on Jul 08, 2004 at 20:51 UTC |