Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Perl replacement for choice.com

by Athanasius (Abbot)
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2015-07-29 06:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls