or#!/bin/perl -w my $line = 0 while (<>) { chomp; $line += tr/ \t/./c; } print $line, "\n";
#!/bin/perl -w my $line = 0 while (<>) { $line += tr/ \t\r\n/c; } print $line, "\n";
In reply to Re: What is the difference?
by Thelonius
in thread What is the difference?
by YAFZ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |