Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hello people,
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, Michael Whitaker In reply to Re-using/changing a class by Anonymous Monk
|
|