Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Escape characters question

by !1 (Hermit)
on Dec 29, 2003 at 07:58 UTC ( #317379=note: print w/replies, xml ) Need Help??


in reply to Escape characters question

$forged_from? ....

\015 and \012 are octal escape sequences with the equivalent decimal being 13 and 10. They represent \r and \n, respectively, on most systems. That's why \015 and \012 are used; they're the characters you want whereas \r and \n aren't always depending upon OS. More info in perldoc perlop

\r is return or carriage return (CR). \n is newline (NL). There are a few places on the internet describing the difference and why it's important to know which or what combination to use.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2021-09-24 10:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?