Help for this page

Select Code to Download


  1. or download this
    my $foo = "foo,bar,moo,cow";
    $foo =~ /(?:([^,]+),)+/;
    
  2. or download this
    my $mystr = "foo,bar,moo,cow";
    my @values = $mystr =~ m/(\w+)\,?/g;