> >Damian's Text::Balanced does a pretty good job of tokenizing Perl
   > >as it is.  / by itself requires a lot of lookahead, and it's still
   > >a guess.
   > 
   > I don't get it. What makes it so hard? If you see a "/" when you're
   > expecting an operator, or end of statement, then it's division. If you
   > were expecting an expression, it's a regex. Ain't it?

Yes. And that's what makes it hard. Because somethimes you can be
expecting *either* of those :-)

Consider the statement:

        wash / my / gimsox;

Division or pattern match?

Damian

Reply via email to