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 ( #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


Comment on Re: adding non printable characters in perl's print function
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (16)
As of 2014-07-22 16:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (119 votes), past polls