Passing Variable to Perl script


Subject: Passing Variable to Perl script
bthundereagle@aidea.org
Date: Tue Oct 22 2002 - 14:48:52 AKDT


I have a perl script, that runs another perl sdcript from within it passing a
variable to it. My script "script.pl" opens "date.pl" with the following
command:

system (`/sqltest/perl/date.pl $file`);
(I also tried)
system (`/sqltest/perl/date.pl "$file"`);

I do not know if either of those formats is corrent for passing a variable to
the "date.pl" script. Then after passing the variable, how do I access it? I
have tried using %1, %%1, and $1 but so far have been unsuccessful. Any help
would be appreciated.

     Brian ThunderEagle
     - bthundereagle@aidea.org
     - furbs@swjedi.net
     - http://www.swjedi.net

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Tue Oct 22 2002 - 14:51:34 AKDT