Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: substitute an enter with regular expressions

by mrmick (Curate)
on Jan 15, 2001 at 22:17 UTC ( [id://51989]=note: print w/replies, xml ) Need Help??


in reply to substitute an enter with regular expressions

Here's a quick one (untested):
my $char = '<BR>'; s/\n/$char/g;

Mick

Log In?
Username:
Password:

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

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

    No recent polls found