in reply to C strings, unescaping of

Use Encode::Escape::ASCII. Under the hood it does the same, but your maintenance programmer gets a readable API and documentation.

Replies are listed 'Best First'.
Re^2: C strings, unescaping of
by Anonymous Monk on Sep 30, 2013 at 15:46 UTC
    That package does not implement C-style escapes. The \v is missing. Furthermore, it looks rather suspect. Observe:
    $ echo -n 'v\v\134aa' | perl -e 'use Encode::Escape::ASCII; print deco +de "ascii-escape", $_ for <>;' | hexdump -C 00000000 76 76 07 61 |vv.a| 00000004

    This does not look right to me at all!