while (<DATA>) { print if (split /\./) < 3; } [download]
In reply to Re^4: Perl split on regex match by 1nickt in thread Perl split on regex match by Eshan_k