oh no, not a perl question.

Nick Cleaton nick at cleaton.net
Thu Aug 30 13:57:36 BST 2007


On Thu, Aug 30, 2007 at 01:30:02PM +0100, Nic Gibson wrote:
>
> open3 doesn't give me a sensible way to get the child's exit status as
> far as I can tell.

Not even via $? ?

> backticks involve a lot of escaping of arguments and
> redirections that I'm not 100% certain of.

I doesn't need to:

  $ENV{'PARAM'} = $param;
  my $foo = `frob "\$PARAM"`;

> need redirections and then I get the shell exit status as far as I can tell.

Are you including "exec" in the shell comamnd line ?  If not, that
might help.


Nick


More information about the london.pm mailing list