|We don't bite newbies here... much|
Re-using/changing a classby Anonymous Monk
|on Feb 09, 2001 at 23:46 UTC||Need Help??|
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am a fairly new Perl programmer, and have a quick question:
Let's say I have a simple script called Temp.pl. Temp.pl uses a class called Myclass.pm. During runtime, I change something in the Myclass.pm file. How can I re-'use' Myclass.pm? (Which would basically recompile it, with my changes added.)
I've tried embedding another 'use Myclass;' inside of my code, but apperantly it doesn't go get the source again. My goal is to have a dynamic program which uses several of my own classes. The classes' source can be changed, and then (hopefully) reimplemented back into my original program as a new object.
Thanks for your help,