Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Perl replacement for choice.com

by Athanasius (Chancellor)
on Mar 02, 2013 at 07:21 UTC ( #1021396=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # regex to add a comma after each char
    # i believe you can think of it starting
    ...
    # the () are required to capture each character
    $show_choices =~ s/(?<=.)/,/g;
    $show_choices =~ s/,$//g;       # remove the last comma
    
  2. or download this
    $show_choices =~ s/(.)/$1,/g;
    
  3. or download this
    $show_choices =~ s/(.)(?!$)/$1,/g;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2017-04-26 21:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (489 votes). Check out past polls.