Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: How to insert Hexadecimal characters

by JavaFan (Canon)
on Dec 03, 2009 at 10:03 UTC ( #810794=note: print w/replies, xml ) Need Help??


in reply to How to insert Hexadecimal characters

Actually, you are wrong. print "\n" prints a logical newline - it will output the bytestring which is the appropriate "newline" for the current platform.

In your case, I would do: print "\x{0D}\x{0A}";

Replies are listed 'Best First'.
Re^2: How to insert Hexadecimal characters
by bobf (Monsignor) on Dec 04, 2009 at 03:10 UTC

    For the record (and since no one has mentioned it yet), this is documented in perlport.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2023-03-31 12:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (75 votes). Check out past polls.

    Notices?