XP is just a number | |
PerlMonks |
Re: Re-using/changing a classby Trinary (Pilgrim) |
on Feb 09, 2001 at 23:56 UTC ( [id://57463]=note: print w/replies, xml ) | Need Help?? |
You have to take the module out of the %INC structure, then do another require Myclass import Myclass; For doing dynamic module loading, I'd avoid 'use', replace em with requre/import. use (I think) builds a list of modules at compile time, and dosen't allow for much dynamic voodoo to be pulled. Enjoy! Trinary Update:Should be more clear, you need to delete the key "Myclass" from %INC...if the actual Myclass has some ::s in it, they're converted to / s when it's put into %INC.
In Section
Seekers of Perl Wisdom
|
|