while (<>) { print if tr/:// >= 3; # Special use of tr to count column separators } #### while (<>) { my @cols = split; print if @cols >= 4; }