--- [EMAIL PROTECTED] wrote:
> I created a first simple program to append code to itself (script
> below). Is there a way to get that code interpreted in the same
> execution? That didn't happen, but when I started it a second time,
> the first appended text was interpreted, the second again not.
Have a look at eval. You can build up your command string and execute it.
The only difference is the scoping of the variables.
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, 28 April, 2001 11:45 AM
Subject: self-appending code
> I
I created a first simple program to append code to itself (script below). Is
there a way to get that code interpreted in the same execution? That didn't
happen, but when I started it a second time, the first appended text was
interpreted, the second again not.
main code
filename: prg2.pl
print"p