in reply to start bash command from perl script: alternatives to system or backticks?

There's no reason you shouldn't see the output with system. Your script's STDOUT is inherited by the child.
$ perl -e'system "ls .bash*"' .bash_history .bash_logout .bash_profile .bashrc
  • Comment on Re: start bash command from perl script: alternatives to system or backticks?
  • Download Code

Replies are listed 'Best First'.
Re^2: start bash command from perl script: alternatives to system or backticks?
by bfdi533 (Friar) on Apr 28, 2010 at 16:23 UTC
    You might also set $| so that your perl script does not buffer the output.
    #!perl $|++ ...
      $| will have absolutely no effect on children.