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;