in reply to [SOLVED] Capturing errors from 3-arg pipe open in ActivePerl 5.020
is short foropen (my $ARTICLE, "-|", $shell_command)
open (my $ARTICLE, "-|", "cmd", "/x", "/c", $shell_command)
open successfully executed cmd as requested. No error occurred, so it returned the pid of the child.
Presumably, cmd will return an error for being unable to execute ceasar. Of this you will be notified when you close the handle. It will return false with a true value for $? >> 8.
|
|---|