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

Re: Massaging the Dictionary

by moritz (Cardinal)
on Aug 14, 2007 at 14:06 UTC ( #632499=note: print w/replies, xml ) Need Help??


in reply to Massaging the Dictionary

If you want to insert the br-Tags, use this one:

$ perl -wle '$_="a\nbc\nd";s{$}{<br />}gm; print' a<br /> bc<br /> d<br />

This is your regex but without the additional \n.

If you want to replace the line endings, use s{\n}{<br />}gm

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://632499]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2018-07-16 16:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (344 votes). Check out past polls.

    Notices?