in reply to Re: Pattern Matching, left-to-right
in thread Pattern Matching, left-to-right

This code blows up on the example. I thought of that too. {grin}

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.


update: Ooops. My bad. You got it right.
  • Comment on •Re^2: Pattern Matching, left-to-right

Replies are listed 'Best First'.
Re^3: Pattern Matching, left-to-right
by Aristotle (Chancellor) on Aug 20, 2004 at 20:44 UTC

    I get AB&F^CD when I run it, which the OP says is what should happen. By his description of the task the code is also exactly what he's after. Which case do you have in mind that it fails for?

    Makeshifts last the longest.