Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: adding non printable characters in perl's print function

by redlemon (Hermit)
on Feb 21, 2007 at 10:20 UTC ( [id://601304]=note: print w/replies, xml ) Need Help??


in reply to adding non printable characters in perl's print function

A quick way to check your output to see everything you put in comes out is to use the 'od' command (on any unix-like box):

perl -e 'print ":Hello ^M world:\n"' | od -c

This will give you

0000000   :   H   e   l   l   o      \r       w   o   r   l   d   :  \n

--
Lyon

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2025-11-11 13:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (68 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.