http://www.perlmonks.org?node_id=126665


in reply to Larry vs. Joel vs. Ovid

Here's an example of a nice implementation of liberal input acceptance in perl (no offense, conservatives): the magic <> filehandle that is created from the command-line args which will be either STDIN or the file named on the command-line. It's really handy for quick scripts, and if you don't want ambiguous behavior in a large project, you can just not use it.