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

Re: Perl replacement for choice.com

by Athanasius (Monsignor)
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 perusing the Monastery: (10)
As of 2014-09-22 21:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (204 votes), past polls