Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: how to output special characters?

by stephen (Priest)
on Jul 11, 2008 at 20:58 UTC ( #697085=note: print w/ replies, xml ) Need Help??


in reply to how to output special characters?

If you want to print a control character, you need to escape it with "\c". So:

print "Here is ^A: \cA Here is ^B: \cB";
Of course, as stated above, you won't be able to see those control characters since they're invisible.

stephen


Comment on Re: how to output special characters?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2014-11-22 05:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (118 votes), past polls