<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=688242317-20072006><FONT face="Courier New" 
size=2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=688242317-20072006><FONT face="Courier New" 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=688242317-20072006><FONT face="Courier New" size=2>Would 
someone happen to know how I can trap an error return from the pipe?&nbsp; Here 
is what I am doing.</FONT></SPAN></DIV>
<DIV><SPAN class=688242317-20072006><FONT face="Courier New" 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=688242317-20072006><FONT face="Courier New" 
size=2>unless(open(SYSCMD, "| someSystemCommand -d someFlag -u moreFlag1 -w 
moreFlag2")) {</FONT></SPAN></DIV>
<DIV><SPAN class=688242317-20072006><FONT face="Courier New" size=2>&nbsp; DO 
SOME ERROR HANDLING...</FONT></SPAN></DIV>
<DIV><SPAN class=688242317-20072006><FONT face="Courier New" size=2>&nbsp; 
}</FONT></SPAN></DIV>
<DIV><SPAN class=688242317-20072006><FONT face="Courier New" 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=688242317-20072006><FONT face="Courier New" size=2>I tried eval 
{}; also and nothing was trapped.</FONT></SPAN></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=688242317-20072006><FONT face="Courier New" size=2>Hope someone 
has an answer for this.&nbsp; :)</FONT></SPAN></DIV>
<DIV><SPAN class=688242317-20072006><FONT face="Courier New" 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=688242317-20072006><FONT face="Courier New" 
size=2>Thanks.</FONT></SPAN></DIV>
<DIV align=left><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV align=left><FONT face="Courier New" size=2>Peter 
Loo</FONT></DIV></BODY></HTML>