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


in reply to Re^3: Using the DATA file handle for ARGV
in thread Using the DATA file handle for ARGV

No. You either specify no argument, in which case the script processes the DATA section, or you provide a file name, in which case the script processes the file. For a default value of an argument, use
my $arg = shift; $arg //= "default";
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ