The test.pl can return a value to the shell as the argument of an exit() call. This will then be picked up by the system() call to run test.pl that occurs in test.pm.
Caveat: Also see perlport for the impact of different platforms on the behaviour of the system() call.
-M
Free your mind
In reply to Re: return a value from perl script to perl module call ing the script
by Moron
in thread return a value from perl script to perl module call ing the script
by bsachin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |