Help for this page

Select Code to Download


  1. or download this
    $string = "a:b::c   d";
    @fields = split(/:|::|\s+/, $string);
    ...
    Got ''
    Got 'c'
    Got 'd'