Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: Question about tr

by soonix (Abbot)
on Oct 19, 2018 at 06:54 UTC ( #1224309=note: print w/replies, xml ) Need Help??

in reply to Question about tr

\0, \1, \2, etc. are NOT hexadecimal character codes, but OCTAL. For what you intended, you'd need \10 or \x8, or what nysus wrote. "Accidently", 0 - 7 octal and hexadecimal are the same.

Update: And, this part \n\0x0B\r\0x0D is wrong - \r is not 0xC but 0xD, so you're skipping chr(12) and have a double chr(13).

Replies are listed 'Best First'.
Re^2: Question about tr
by ikegami (Pope) on Oct 20, 2018 at 02:14 UTC

    And \0xXX should be \xXX. The former means NUL and three other chars.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2019-05-23 21:24 GMT
Find Nodes?
    Voting Booth?
    Do you enjoy 3D movies?

    Results (146 votes). Check out past polls.

    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!