in reply to Directing STDOUT of called perl script to a variable within a calling perl script

This is not working

What is abc.pl supposed to do? Why do you think it is not working? Backticks would be the number 1 answer to your question, but you say it dosn't work. Read perldoc -q capture and come back with more information.

Just as a wag, try

$my = `/home/hey/abc.pl` or die "something wrong $!\n";
Quite possibly your permissions are wrong on the script, or it dosn't have a shebang line.

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh
  • Comment on Re: Directing STDOUT of called perl script to a variable within a calling perl script
  • Download Code