Help for this page

Select Code to Download


  1. or download this
    my @w = split /\s+/,$text,31;
    pop @w;
    my $words30= join " ", @w;
    
  2. or download this
    $text =~ m/^((?:\S+\s+){1,30})/;
    my $words30 = $1;