On Wed, Dec 11, 2002 at 09:23:22PM +0100, Steffen Mueller wrote:
> I've been wondering whether it is possible to implement some kind of 
> mechanism that allows a Perl script to modify itself at runtime. 

Using B::Deparse you can get the source of any running subroutine.
Using eval you can replace any subroutine.
So that covers altering code inside subroutines at run time.


-- 

Michael G. Schwern   <[EMAIL PROTECTED]>    http://www.pobox.com/~schwern/
Perl Quality Assurance      <[EMAIL PROTECTED]>         Kwalitee Is Job One
The key, my friend, is hash browns.
        http://www.goats.com/archive/980402.html

Reply via email to