Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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 rifling through the Monastery: (4)
As of 2015-07-05 18:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls