Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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
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
Back to
Seekers of Perl Wisdom