Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Looking for backslashed characters

by thatguy (Parson)
on Oct 11, 2001 at 20:46 UTC ( #118265=note: print w/ replies, xml ) Need Help??


in reply to Looking for backslashed characters

String::Escape seems to do what you ask.

print printable( "\tNow is the time\nfor all good folks\n" ); \tNow is the time\nfor all good folks\n

tested code:

#!/usr/bin/perl -w use String::Escape qw( printable ) ; open(FILE," text.txt"); while(<FILE>){ print printable($_); } close(FILE);

-p


Comment on Re: Looking for backslashed characters
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2015-07-31 10:28 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 (276 votes), past polls