Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Insert comma after every character

by Cristoforo (Curate)
on Apr 21, 2010 at 20:35 UTC ( #836122=note: print w/replies, xml ) Need Help??


in reply to Insert comma after every character

Another way to do this would be using the substitution operator with \B.

C:\perlp>perl -e "$_='FBD';s/\B/, /g;print" F, B, D

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2022-12-01 00:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?