Lets say I would want to pass this program 3 parameters, and then use each of them in my project
note this program is run on a linux system
Ok, so I run my program like this on the command line
./testcase.pl HTML help field
i would think, due to the code below that it would print
But it doesn't, it just prints
#!/usr/local/bin/perl use strict; print "$ARGV[$0]\n"; print "$ARGV[$1]\n"; print "$ARGV[$2]\n";
So my question is, am I passing parameters wrong or accessing them in Perl incorrectly?