while (my $line = <DATA>) { print $line if (split /\./,$line) < 3; } [download]
In reply to Re^3: Perl split on regex match by GotToBTru in thread Perl split on regex match by Eshan_k