Help for this page
use Getopt::Long qw(:config bundling); GetOptions('input-file|i=s' => \my @file); ... # ./script.pl -i - < /dev/null # echo test | ./script.pl # echo test | ./script.pl -i -