|Just another Perl shrine|
How to execute commands in the same shell as Perl scriptby bhagperl (Novice)
|on Sep 13, 2011 at 11:18 UTC||Need Help??|
bhagperl has asked for the
wisdom of the Perl Monks concerning the following question:
I want to run the shell script in the same process / OS shell as parent perl script. Idea is to run the shell script or any OS command in the same shell as Parent perl script.
Instead of forking a new process and run the command as done in "system" function.
As in UNIX we have "source" or "." commands to run the shell scripts in the same shell instead of child process.
Please suggest me some solutions for this in case of PERL.
Thanks in advance