: 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
my $return_value = eval {$code_or_sub_programme};
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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]
> 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
> >
> 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
>
> "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
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
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
> 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
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
10 matches
Mail list logo