Gladstone Daniel - dglads wrote:
Can someone help me understand what this line does?
my ($tablename, $filepath, $ifilename, $ojob) = @ARGV;
Can someone give me a good place to look verbs up so I can get a
Better understanding of this program.
I have ordered a book but it will take a week or more
This declares the variables $tablename, $filepath, $ifilename and $ojob.
It copies values from the array @ARGV to there variables so taht
my $tablename = $ARGV[0];
my $filepath = $ARGV[1];
my $ifilename = $ARGV[2];
my $ojob = $ARGV[3];
And @ARGV is the array of all parameters passed. So if you start your
script with ./script.pl 1 2 3 4 then 1,2,3 and 4 will be assigned to the
variables.
http://learn.perl.org will get you started until your book has arrived.
hth
E.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>