in reply to Re: reverse quotemeta?
in thread reverse quotemeta?

Nice... but, hex escapes and octal escapes aren't fixed width. "\xA" is a newline, and octal escapes (which need a leading 0 that you have also forgotten) can have less than 3 octets as well.

And be aware of Unicode. There will be lots more escape sequences with Unicode.

-- Abigail

Replies are listed 'Best First'.
(tye)Re2: reverse quotemeta?
by tye (Sage) on Jun 26, 2001 at 22:55 UTC

    In Perl's double quoted strings, octal escapes don't need a leading zero.

    japhy, please don't make silent updates to your node. (I'm used to update notes using bold)

    (updated)

            - tye (but my friends call me "Tye")