> >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
- Re: RFC 135 (v2) Require explic... Tom Christiansen
- Re: RFC 135 (v2) Require explic... Casey R. Tweten
- Re: RFC 135 (v2) Require explic... Nathan Wiger
- Re: RFC 135 (v2) Require explic... John Porter
- Re: RFC 135 (v2) Require explic... Bart Lateur
- Re: RFC 135 (v2) Require explic... John Porter
- New match and subst replacement... Nathan Wiger
- Re: New match and subst replace... Randy J. Ray
- Re: New match and subst replace... Nathan Wiger
- Re: New match and subst replace... Bart Lateur
- Re: RFC 135 (v2) Require explic... Damian Conway
- Re: RFC 135 (v2) Require explic... Bart Lateur
- Re: RFC 135 (v2) Require explicit m on match... Peter Scott
- Re: RFC 135 (v2) Require explicit m on matches, ... Damian Conway
- Re: RFC 135 (v2) Require explicit m on matches, even wit... Damian Conway
- RE: RFC 135 (v2) Require explicit m on matches, even with... Fisher Mark