Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

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";

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://579402]
[thezip]: How goes it, Corion?
[Corion]: thezip: Quite good, after a one week vacation in the sun ;)
[Corion]: I hope you're well too!
[thezip]: Where did you go? We've already set a record for all-time February rainfall here.

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2017-02-23 16:59 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (349 votes). Check out past polls.