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

Re^2: Replacing matches within string without splitting.

by walkingthecow (Friar)
on Jan 02, 2013 at 07:26 UTC ( #1011220=note: print w/replies, xml ) Need Help??


in reply to Re: Replacing matches within string without splitting.
in thread Replacing matches within string without splitting.

That worked beautifully (in Perl 5.8 without Modern::Perl)! Thank you :)
$channels =~ s{\b(\d)\b}{0$1}g;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1011220]
help
Chatterbox?
[marioroy]: Wow. It's cool seeing Github coments "Update Monster.pm, Create Wild_hairs, Create alternate- PurpleOnGreen..., Then a location, Create Aleenia. Amazing, really. Thank you for sharing.
Discipulus when naming is clear and you know how to arrange the data, then coding it is a mere writing work
[Lady_Aleena]: marioroy, welcome to my insanity. 8)

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2017-05-29 09:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?