in reply to Re^2: Getting data from either ARGV or STDIN
in thread Getting data from either ARGV or STDIN

No matter which solution you choose in the end, you might want to hide the magic behind a small module with more documentation.

Like this, you'll only need something like use ReadARGV; in your scripts

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery