in reply to Regex

Have you tried looking at $ex? And I should tell you now, you meant to be doing:
join '|', map quotemeta($_), keys %stuff; # or join '|', map "\Q$_\E", keys %stuff; # \E not needed


japhy -- Perl and Regex Hacker

Replies are listed 'Best First'.
Re: Re: Regex
by premchai21 (Curate) on Apr 06, 2001 at 23:55 UTC
    Yes, I have. It came out looking okay.

    I had, however, forgotten about quotemeta. Thanks!