Robert Spier on Mon, 31 Jan 2000 20:12:14 -0500 (EST)


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

Inline Evals


As a follow up to my talk...

Mark provided me with this example:

# use re 'eval';
my $userinput = '(?{system "echo This is interpolated from user input"})';
$q =~ /(?{system "echo This is statically compiled."})/;
$q =~ /$userinput/;

it will output:

This is statically compiled.
/(?{system "echo This is interpolated from user input"})/: Eval-group not allowed at runtime, use re 'eval' at - line 5.


Which basically means I didn't do my homework as well as I should have 
before my talk.  I made an assumption, and we all know what that means 
:)

The second part of my talk, about RE's that take forever to terminate
still holds, and could still be a problem on some systems.

-R

**Majordomo list services provided by PANIX <URL:http://www.panix.com>**
**To Unsubscribe, send "unsubscribe phl" to majordomo@lists.pm.org**