in reply to Using 'e' in s///

Where do you capture $2? If it's from a previous regex, it won't be available after a successful match that resets the capture variables!

That one bites me too occasionally, which is how I remember.

Replies are listed 'Best First'.
Re: Re: Using 'e' in s///
by talexb (Chancellor) on Aug 13, 2003 at 20:52 UTC

    D'Oh! (sound of hand slapping forehead repeatedly) Thank you.

    --t. alex
    Life is short: get busy!