On Mon, Aug 13, 2001 at 03:12:12PM -0400, Bob Showalter wrote:

> There are two forms of eval. The string form is used to compile code
> "on the fly", which makes perl into a truly dynamic language.
> 
> > Could it have something to do with run-time code 
> > generation............. ??
> 
> Yes, the string form of eval does.
> 
> Both forms are used extensively.

This is true, however, the use of string eval means that you lose all
error checking until the code is run, which is not good.

I have found, during many years of Perl programming, that I have rarely
had a need to use the string eval.  It is possible to do a lot of
dynamic, data driven programming using closures and symbol table
manipulation.

-- 
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to