in reply to Re^2: Regex Report
in thread Regex Report

So there's code that looks like $next = List::Util::first { eval { $self->$_ } } @tokens? Oof. Holey AUTOLOAD batman! Why not just make the token a parameter to some function instead of passing the value via the function name? Or is this so you can get overriding? When do we get to see this code and are you sure you couldn't have written this using a mundane method?

Replies are listed 'Best First'.
Re^4: Regex Report
by japhy (Canon) on Jun 28, 2004 at 15:52 UTC
    Rules are methods of the object so that object inheritence works easily. Data is not inherited easily, methods are.
    _____________________________________________________
    Jeff[japhy]Pinyan: Perl, regex, and perl hacker, who'd like a job (NYC-area)
    s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;