uday_sagar has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I have to run a perl script within a main script. I want the standard output of the called perl script to be written in a variable defined within the calling script.
I have tried using this construct:
$my = `/home/hey/abc.pl`;This is not working. Any suggestions.
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Directing STDOUT of called perl script to a variable within a calling perl script
by toolic (Bishop) on Jul 03, 2012 at 13:50 UTC | |
|
Re: Directing STDOUT of called perl script to a variable within a calling perl script
by zentara (Cardinal) on Jul 03, 2012 at 13:48 UTC | |
|
Re: Directing STDOUT of called perl script to a variable within a calling perl script
by NetWallah (Canon) on Jul 03, 2012 at 14:49 UTC | |
|
Re: Directing STDOUT of called perl script to a variable within a calling perl script
by Khen1950fx (Canon) on Jul 04, 2012 at 01:48 UTC |