Re: Calling another perl file

2003-12-22 Thread Tushar Gokhale
Thanks a lot for instant reply. Your prompt help has helped me a lot, my problem has resolved. It helped me to understand your example cleanly. Thanks again, -Tushar -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Calling another perl file

2003-12-20 Thread drieux
On Dec 20, 2003, at 8:06 AM, Peter Scott wrote: [..] You are missing a '|' in there. thanks for the catch... [..] No reason not to make that much simpler using backticks: sub run_cmd { my $cmd = shift; my $args = shift || ''; my @output = `$cmd $args 2>&1`; $? < 0 and return "ERROR: proble

Re: Calling another perl file

2003-12-20 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Drieux) writes: > >On Dec 18, 2003, at 10:12 PM, Tushar Gokhale wrote: > >> How do I call another perl script from my current perl script? I'm >> working >> on one perl testing harness, currently my "bin/run.pl" has a control >> and >> now I wan

Re: Calling another perl file

2003-12-19 Thread drieux
On Dec 18, 2003, at 10:12 PM, Tushar Gokhale wrote: How do I call another perl script from my current perl script? I'm working on one perl testing harness, currently my "bin/run.pl" has a control and now I want to call script files one by one from "tests/" folder. I also want to pass an argument

Calling another perl file

2003-12-19 Thread Tushar Gokhale
How do I call another perl script from my current perl script? I'm working on one perl testing harness, currently my "bin/run.pl" has a control and now I want to call script files one by one from "tests/" folder. I also want to pass an argument to the test script file. Once the file is executed fro