Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: C strings, unescaping of

by daxim (Chaplain)
on Sep 30, 2013 at 14:05 UTC ( #1056363=note: print w/ replies, xml ) Need Help??


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.


Comment on Re: C strings, unescaping of
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!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1056363]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (14)
As of 2015-07-31 13:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (278 votes), past polls