Help for this page

Select Code to Download


  1. or download this
    use Text::ParseWords;
    $str = "a       b               c";
    ...
    print scalar @f, "\n";
    @f = parse_line('\t', 0, $str);
    print scalar @f, "\n";
    
  2. or download this
    [root@localhost root]# perl temp.pl
    4
    4