in reply to reverse quotemeta?

$x =~ s/\\n/\n/gi; I'm sure there's a better way to do it using tr///, but my brain is fried for today...

--
RatArsed

Replies are listed 'Best First'.
Re: reverse quotemeta? (boo)
by boo_radley (Parson) on Jun 26, 2001 at 20:39 UTC
    I don't think that's correct.
    tr/// can only do character-by-character substitutions, so \n as an escaped new line would be 2.

    You'd also have to consider any other extenuating circumstances, like having an escaped slash preceding a normal n.
    Update
    So this perl hacker walks into a bar...

    and says "ouch!"
    thank you all.