To count columns more literally, and splitting on the more traditional whitespace:while (<>) { print if tr/:// >= 3; # Special use of tr to count column separato +rs }
while (<>) { my @cols = split; print if @cols >= 4; }
In reply to Re^3: Read and parse text file
by Roy Johnson
in thread Read and parse text file
by RCP
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |