Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: print real newlines in place of literal ones

by tos (Deacon)
on Jun 05, 2003 at 18:59 UTC ( [id://263462]=note: print w/replies, xml ) Need Help??


in reply to print real newlines in place of literal ones

Hi

I'm not sure if i understand what you mean.

If you want the literal newlines to be printed try something like this

perl -we 'print qw/Hello\nWorld\n!/' Hello\nWorld\n!
if not simply print out the string as it is.
# perl -we 'print "Hello\nWorld\n!"' Hello World !

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2024-04-19 10:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found