hi perl friends,
how do i pass an argument to an external script w/ the "do" command? for
example if i have:
@Variable = qw(1 2 3 4); #global variable
do 'c:/perl/Test.plx'; # how do i pass the @Variable as an argument to
i am not familiar about creating modules and packages...
even though @Variable is global i still get the error message : " @Variable
is not imported at c:/perl/test.plx line 5.
any help is appreciated.
thanks!
----- Original Message -----
From: Carl Jolley <[EMAIL PROTECTED]>
To: Jimmy S. Lim <[EMAIL PROTECTED]>
Cc: Perl-Win32-Users <[EMAIL PROTECTED]>
Sent: Sunday, April 08, 2001 12:30 AM
Subject: Re: How to Pass Argument to an external script?
> On Sat, 7 Apr 2001, Jimmy S. Lim wrote:
>
> > hi perl friends,
> >
> > how do i pass an argument to an external script w/ the "do" command? for
> > example if i have:
> >
> > my @Variable = qw(1 2 3 4);
> > do 'c:/perl/Test.plx'; # how do i pass the @Variable as an argument to
> > Test.plx?
> >
> > i am not familiar about creating modules and packages...
> >
>
> It depends on how the external script accepts arguments.
> Does it get then from @ARGV or does it expect them to be
> present in other global variables? Does it read them from
> a file? How ever the external script accepts its arguments
> is how you have to provide them when calling the script.
>
> **** [EMAIL PROTECTED] <Carl Jolley>
> **** All opinions are my own and not necessarily those of my employer ****
>
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users