Thanks for all your help.
Regards
Irfan Sayed
Hi Irfan
Create a perl Module.
The Module should start with and should be the second line after ther
perl path
package ;
sub function_name
{
my ($pas1,$pass2,$array,$return)[EMAIL PROTECTED];
Do the Processing
$_[3]= Send the Value..>Can be anything array, hash, or...$;
}
In the PERL
> I need to call/execute another perl file from my backup.pl perl script
by giving some argument.
> Can anybody please tell me how to do that?
my result = system (perl other-script.pl )
or
my result = `perl other-script.pl ` #using back ticks`
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For add
Hi All,
I need to call/execute another perl file from my backup.pl perl script by
giving some argument.
Can anybody please tell me how to do that?
Regards
Irfan Sayed
exec() exits the calling program and does not return.
system() returns the called program's exit status then allows the
calling program to resume execution.
"Programming Perl", 3rd Edition, p.811
On Fri, 2002-12-13 at 08:01, Paul Kraus wrote:
> if I exec a Perl script from a Perl script that fir
ginal Message-
> > From: Kipp, James [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, December 13, 2002 9:15 AM
> > To: 'Paul Kraus'; 'Perl'
> > Subject: RE: Calling another perl script
> >
> >
> > I rarely use 'exec' but i believe
aul Kraus'; 'Perl'
> Subject: RE: Calling another perl script
>
>
> I rarely use 'exec' but i believe the parent script just
> exits . here is some more from the docs:
>
> Since it's a common mistake to use "exec" instead of
> "syst
exec ('foo') }; print STDERR "couldn't exec foo: $!";
or maybe i am not understaning you correctly. could you be talking about
fork -> exec?
HTH
Jim
> -Original Message-
> From: Paul Kraus [mailto:[EMAIL PROTECTED]]
> Sent: Friday, December 13,
; From: Kipp, James [mailto:[EMAIL PROTECTED]]
> Sent: Friday, December 13, 2002 9:04 AM
> To: 'Paul Kraus'; Perl
> Subject: RE: Calling another perl script
>
>
> perldoc -f exec
> exec LIST
> exec PROGRAM LIST
> The "exec" function executes
*and* it is executed directly instead of via your system's
command shell (see below).
> -Original Message-
> From: Paul Kraus [mailto:[EMAIL PROTECTED]]
> Sent: Friday, December 13, 2002 9:01 AM
> To: Perl
> Subject: Calling another perl script
>
>
> if
if I exec a Perl script from a Perl script that first program will end
and then start the second or will it continue to run until both programs
have finished?
Paul Kraus
Network Administrator
PEL Supply Company
216.267.5775 Voice
216-267-6176 Fax
www.pelsupply.com
--
To unsubscribe, e-mail: [EM
11 matches
Mail list logo