Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Line break interpretation

by Molt (Chaplain)
on Oct 19, 2006 at 17:06 UTC ( #579402=note: print w/ replies, xml ) Need Help??


in reply to Line break interpretation

Another approach which may be suitable if it's only line-breaks you're interested in may be to use a substitution.

#!/usr/bin/perl use strict; use warnings; my $msg = 'Hello\nWorld'; print "Msg was $msg\n"; $msg =~ s/\\n/\n/g; print "Msg is $msg\n";


Comment on Re: Line break interpretation
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (14)
As of 2015-07-28 09:39 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 (254 votes), past polls