Calling a perl script from another perl script

2003-06-03 Thread João Luís Bonina
Hi, I'm developing a cgi script with perl and I want to call another perl script from this one. How can I do that? Regards, João Bonina -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Calling a perl script from another perl script

2003-06-03 Thread Andrew Brosnan
On 6/2/03 at 1:49 PM, [EMAIL PROTECTED] (João Luís Bonina) wrote: Hi, I'm developing a cgi script with perl and I want to call another perl script from this one. How can I do that? Lots of ways you *could* do it. How *should* you? In Maine we have a saying, Hard tellin' not knowin'.

Re: Calling a perl script from another perl script

2003-06-03 Thread João Luís Bonina
Well, I've tried the system function, but it isn't executing the script which is located in the same directory... I'm using it this way : system('sendfile.pl ons4jlb'); On 6/2/03 at 1:49 PM, [EMAIL PROTECTED] (João Luís Bonina) wrote: Hi, I'm developing a cgi script with perl and I

RE: Calling a perl script from another perl script

2003-06-03 Thread Paul Kraus
to the beginning. I think it’s a windows thing. Paul -Original Message- From: João Luís Bonina [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 8:22 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Calling a perl script from another perl script Well, I've tried the system

RE: Calling a perl script from another perl script

2003-06-03 Thread João Luís Bonina
] Cc: [EMAIL PROTECTED] Subject: Re: Calling a perl script from another perl script Well, I've tried the system function, but it isn't executing the script which is located in the same directory... I'm using it this way : system('sendfile.pl ons4jlb'); On 6/2/03 at 1:49 PM, [EMAIL

Re: Calling a perl script from another perl script

2003-06-03 Thread Andrew Brosnan
On 6/2/03 at 1:49 PM, [EMAIL PROTECTED] (João Luís Bonina) wrote: Hi, I'm developing a cgi script with perl and I want to call another perl script from this one. How can I do that? Lots of ways you *could* do it. How *should* you? In Maine we have a saying, Hard tellin'

Re: Calling a perl script from another perl script

2003-06-03 Thread zentara
On Mon, 2 Jun 2003 14:21:37 +0100 (WEST), [EMAIL PROTECTED] (João luís bonina) wrote: Well, I've tried the system function, but it isn't executing the script which is located in the same directory... I'm using it this way : system('sendfile.pl ons4jlb'); If you havn't found an answer

Re: Calling a perl script from another perl script

2003-06-03 Thread zentara
] [mailto:[EMAIL PROTECTED] On Behalf Of zentara Sent: Monday, June 02, 2003 3:20 PM To: [EMAIL PROTECTED] Subject: Re: Calling a perl script from another perl script On Mon, 2 Jun 2003 14:21:37 +0100 (WEST), [EMAIL PROTECTED] (João luís bonina) wrote: Well, I've tried the system function, but it isn't

RE: Calling a perl script from another perl script

2003-06-03 Thread Bob Showalter
Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of zentara Sent: Monday, June 02, 2003 3:20 PM To: [EMAIL PROTECTED] Subject: Re: Calling a perl script from another perl script On Mon, 2 Jun 2003 14:21:37 +0100 (WEST), [EMAIL PROTECTED] (João luís bonina) wrote

Re: Calling a Perl Script from Another Perl Script

2003-02-14 Thread Randal L. Schwartz
Jeff == Jeff Westman [EMAIL PROTECTED] writes: Jeff It's not that I am resistant. Both scripts are used by other processes Jeff (called from shell scripts, not perl scripts), so it is pointless to add it Jeff as a sub-routine, otherwise that would be the ideal method I think. In that case,

Calling a Perl Script from Another Perl Script

2003-02-12 Thread Jeff Westman
This seems simple enough I have two separate, independent perl scripts. I want to call one perl script from the other script. I know I can do this with a system call (or backticks). Is there a better way? If not, what is the preferred method? (I don't want to make one a sub routine of the

Re: Calling a Perl Script from Another Perl Script

2003-02-12 Thread simran
If you just wanted to use the other script and not return, look at exec: % perldoc -f exec simran. On Thu, 2003-02-13 at 09:45, Jeff Westman wrote: This seems simple enough I have two separate, independent perl scripts. I want to call one perl script from the other script. I know I

Re: Calling a Perl Script from Another Perl Script

2003-02-12 Thread Jeff Westman
Good point, thanks for the info. That might be the choice I go with. --- simran [EMAIL PROTECTED] wrote: If you just wanted to use the other script and not return, look at exec: % perldoc -f exec simran. On Thu, 2003-02-13 at 09:45, Jeff Westman wrote: This seems simple

Re: Calling a Perl Script from Another Perl Script

2003-02-12 Thread Jeff Westman
--- Wiggins d'Anconia [EMAIL PROTECTED] wrote: Jeff Westman wrote: This seems simple enough I have two separate, independent perl scripts. I want to call one perl script from the other script. Sometimes it just is that simple :-). I guess I am thinking in terms of the overhead

Re: Calling a Perl Script from Another Perl Script

2003-02-12 Thread Paul
You might want to take a look at do(). It's like require or eval, sort of. Maybe just what you were looking for. :) --- Jeff Westman [EMAIL PROTECTED] wrote: --- Wiggins d'Anconia [EMAIL PROTECTED] wrote: Jeff Westman wrote: This seems simple enough I have two separate, independent

Re: Calling a perl script with a perl script

2002-01-04 Thread Jon Molin
Hubert Ian M. Tabug wrote: Hi, Given that I have a perl script main.pl, and I want main.pl to use/call the script testprog.pl, and store testprog.pl's output into a variable that can be used within main.pl. How do I go about doing it? Your help would be greatly appreciated.

Re: Calling a perl script with a perl script

2002-01-04 Thread Connie Chan
- From: Hubert Ian M. Tabug [EMAIL PROTECTED] To: Perl [EMAIL PROTECTED] Sent: Friday, January 04, 2002 2:15 PM Subject: Calling a perl script with a perl script Hi, Given that I have a perl script main.pl, and I want main.pl to use/call the script testprog.pl, and store testprog.pl's