in reply to Re: Re: Read and parse text file
in thread Read and parse text file
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; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re^3: Read and parse text file
by RCP (Acolyte) on Mar 09, 2004 at 14:36 UTC |