Help for this page

Select Code to Download


  1. or download this
    my @res = $string =~ m/\s*(\S+)\s*(\S+)\s*(\S+)\s*(\S+)\s*/ ;
    push @sps, $res[ $columnNumber ];
    
  2. or download this
    @res = split ' ', $string;
    push @sps, $res[ $columnNumber ];
    
    # or if you want one line
    push @sps, (split ' ', $string)[$columNumber];