[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Internal Conversions



"Jay Bedsole" <rwdd30@email.sps.mot.com> writes:

>I take it you mean self-modifying. I'm sure you could relatively
>easily modify the source code of a running perl program, but I
>don't think this would have any effect until the next time you
>ran it since the code is probably buffered by the MacPerl runtime
>environment.


You can redefine subroutines at runtime:

*subroutine_name = eval "sub { $text_representatino_of_code }";

but then you have the opposite problem. The changes only affect the
runtime and aren't saved to disk.

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch