Help for this page

Select Code to Download


  1. or download this
    while ( $str1 =~ /^(\S+\s+)(\S+\s+\S+)(.*)$/ ) {
      print "$1$2\n";
      $str1 = "$2$3";
      $n++;
    }
    
  2. or download this
    while ( $str1 =~ /^(\S+\s+)(\S+\s+\S+)/ ) {
      print "$1$2\n";
      $str1 = "$2$'";
      $n++;
    }