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


in reply to How do I read data passed to perl script

For some things, I use @ARGV, and for others, I use the Getopt::Std and Getopt::Long modules at cpan.org. It depends on what your needs are.
#!/usr/bin/perl use strict; use warnings; if(@ARGV) { print "You entered @ARGV\n"; }