bsachin has asked for the wisdom of the Perl Monks concerning the following question:
for Ex: I am having following Perl file:
test.pl & (test1.pm. , test_main.pl) they are present in different directories.
The Perl script test_main.pl call the module (sub abc()) defined in test.pm. This module intern calls test.pl using #*system ("perl test.pl");*# system call.
Now i want to return a variable back to test1.pm from test.pl how to do that?
I was trying to pass an argument to system call to collect the return value but it did not worked.
I was using following call
#*system ("perl test.pl $returnVal");*#
Please suggest...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: return a value from perl script to perl module call ing the script
by liverpole (Monsignor) on Feb 05, 2007 at 14:39 UTC | |
|
Re: return a value from perl script to perl module call ing the script
by kyle (Abbot) on Feb 05, 2007 at 14:40 UTC | |
|
Re: return a value from perl script to perl module call ing the script
by Moron (Curate) on Feb 05, 2007 at 14:38 UTC | |
|
Re: return a value from perl script to perl module call ing the script
by BrowserUk (Patriarch) on Feb 05, 2007 at 14:58 UTC | |
|
Re: return a value from perl script to perl module call ing the script
by shmem (Chancellor) on Feb 05, 2007 at 23:35 UTC |