perl mycode.pl inputfile > outputfile