Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Simon (89)

AOL IM: lathosjp (Add Buddy, Send Message)

Busy Man.

Journal of Simon (89)

Saturday June 08, 2002
04:49 AM

Today's evil hack

[ #5503 ]
An optimizer for Parse::RecDescent. It's not totally finished, and has a few glaring bugs in it, but it can turn this:

test: 'a' b /c/
b: bee "hlagh"
bee: 'b'
into this:

test : 'abhlaghc'
b : 'bhlagh'
bee : 'b'
I know this, because I had to write a Parse::RecDescent deparser too.

This lead to my wonder why there isn't a decent regex optimizer module around yet...

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • I always believed Perl had one internally.

    Not being brave enough to venture into the Perl regex internals myself: does it?
      ---ict / Spoon