#!/bin/perl -w while (<>) { chomp; $line = join('', split /[ \t]*/); print $line; } #### #!/bin/perl -w while (<>) { chomp; $line += split /[ \t]*/; } print $line; #### $ ./ccount.pl ## $ ./ccount2.pl