[sf-perl] opening a pipe to a system command

Loo, Peter # PHX Peter.Loo at source.wolterskluwer.com
Thu Jul 20 10:31:21 PDT 2006


Hi,
 
Would someone happen to know how I can trap an error return from the
pipe?  Here is what I am doing.
 
unless(open(SYSCMD, "| someSystemCommand -d someFlag -u moreFlag1 -w
moreFlag2")) {
  DO SOME ERROR HANDLING...
  }
 
I tried eval {}; also and nothing was trapped.
 
Hope someone has an answer for this.  :)
 
Thanks.
 
Peter Loo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/sanfrancisco-pm/attachments/20060720/1e297f56/attachment.html 


More information about the SanFrancisco-pm mailing list