in reply to Re: Re: Read and parse text file
in thread Read and parse text file

If you're splitting on ':',
while (<>) { print if tr/:// >= 3; # Special use of tr to count column separato +rs }
To count columns more literally, and splitting on the more traditional whitespace:
while (<>) { my @cols = split; print if @cols >= 4; }

The PerlMonk tr/// Advocate

Replies are listed 'Best First'.
Re: Re^3: Read and parse text file
by RCP (Acolyte) on Mar 09, 2004 at 14:36 UTC
    Your second approach worked much better! Thanks again... RCP