Help for this page

Select Code to Download


  1. or download this
    $ths = ' this is a   string';
    $i = split(/\s/,$ths);
    print "$i\n";
    
  2. or download this
    $_ = ' this is a   string';
    my @words = split " ";
    ...
    $_ = ' this is a   string';
    my $words =()= /(\S+)/g;
    print $words, "\n";