[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

Regexp flag optiomization (was Re: [PATCH] Data::Dumper.pm)



Hi,

related to CODE dumping is RE dumping. IMHO, the RE engine needs some
flag optimization.

$perl -e '$x = qr(abc); $x="$x"; $y = qr($x); $y="$y"; $z=qr($y); print "$z\n";'
=> (?-xism:(?-xism:(?-xism:abc)))

That's a real-world problem, by the way.

-- 
Matthias Urlichs  |  noris network GmbH   |   smurf@noris.de  |  ICQ: 20193661
The quote was selected randomly. Really.    |      http://www.noris.de/~smurf/
-- 
Two Finns were sitting (as Finns usually do) drinking in utter silence,
emptying each a bottle of vodka.  After two hours one of them says to
the other: "Kippis!" (Cheers).  Two hours  later the other responds: "You
bloody idiot.  We came here to drink, not to chat!"


References to:
James Duncan <james@ebookers.com>
Gurusamy Sarathy <gsar@activestate.com>

[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]