script.pl inputfile STDOUT 10