In Perl command line argumnet are stored in @ARGV array
$ARGV[0] contains the first argument, $ARGV[1] contains the second argument, etc
Here is simple program for reading a n number of command line Inputs
PHP Code:
#!/usr/bin/perl
#---------------------#
# PROGRAM: commandlineinput.pl #
#---------------------#
foreach $argnum (0 .. $#ARGV)
{
print "$ARGV[$argnum]\n";
}