RE: call one perl script within another

2003-10-22 Thread Rick Edwards
: 21 October 2003 08:03 To: Ramprasad A Padmanabhan; [EMAIL PROTECTED] Subject: RE: call one perl script within another > How Can I call a perl script within my main script > If I do > $response=`perl $somescript $args`; This will fork and open a shell so is slow >do

Re: call one perl script within another

2003-10-21 Thread Andrew Shitov
my $return_value = eval {$code_or_sub_programme}; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: call one perl script within another

2003-10-21 Thread Dan Anderson
I think there's a function called eval which lets you evaluate perl code on the fly. http://www.perldoc.com/perl5.8.0/pod/func/eval.html -Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: call one perl script within another

2003-10-21 Thread Wiggins d Anconia
> Andrew Shitov wrote: > >> This will call a new perl process, and may be more expensive on the > >> system. On the other hand I can do > > > > <...> > > > >> But How do I get the reponse of the script. > > > > > > Probably the simpliest way is to make called script a module and run it > >

RE: call one perl script within another

2003-10-21 Thread Geer, David van der
> As I've said before: > >You have exceeded the 4-line .sig boilerplate limit with a >worthless unenforcable disclaimer. Please remove this text from >future postings to this mailing list. If you cannot do so for >mail from your domain, please get a freemail account and rejoin >

Re: call one perl script within another

2003-10-21 Thread Randal L. Schwartz
> "David" == David Van Der Geer <[EMAIL PROTECTED]> writes: David> * David> This message is intended only for the person or entity to David> which it is addressed and may contain confidential and/or David> privileged informat

Re: call one perl script within another

2003-10-21 Thread Ramprasad A Padmanabhan
Andrew Shitov wrote: This will call a new perl process, and may be more expensive on the system. On the other hand I can do <...> But How do I get the reponse of the script. Probably the simpliest way is to make called script a module and run it using either 'use' or 'require'. Precisely , Bu

Re: call one perl script within another

2003-10-21 Thread Andrew Shitov
This will call a new perl process, and may be more expensive on the system. On the other hand I can do <...> But How do I get the reponse of the script. Probably the simpliest way is to make called script a module and run it using either 'use' or 'require'. -- To unsubscribe, e-mail: [EMAIL PROT

RE: call one perl script within another

2003-10-21 Thread Geer, David van der
> How Can I call a perl script within my main script > If I do > $response=`perl $somescript $args`; This will fork and open a shell so is slow >do "$somescript $args"; > But How do I get the reponse of the script. > Is there a way or should I just use the backticks Please look at sys

call one perl script within another

2003-10-20 Thread Ramprasad A Padmanabhan
How Can I call a perl script within my main script If I do $response=`perl $somescript $args`; This will call a new perl process, and may be more expensive on the system. On the other hand I can do do "$somescript $args"; But How do I get the reponse of the script. Is there a way or s