in reply to Duplicating STDIN

If all you want to do is print from standard input then try this:
#!/usr/bin/perl -w use strict; while (<>) { print $_; }
It boils to Perl reading from the files listed on the command line or from the keyboard (don't forget Ctrl-Z to end in that case).

<Update>I forgot to mention that it can be called like this: script_name.pl input_file