perl mycode.pl < inputfile > outputfile #### cat inputfile | perl mycode.pl > outputfile