in reply to What's the meaning of die ref $res... ?
Could be written asref $res ? $res->faultstring : $soap->transport->status
if (ref $res){ #$res is a reference and not a scalar die $res->faultstring; # exit printing the fault } else{ die $soap->transport->status; #Exit with the current transport statu +s of the SOAP object }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: What's the meaning of die ref $res... ?
by miguelele (Beadle) on Jan 13, 2012 at 09:17 UTC | |
by Utilitarian (Vicar) on Jan 13, 2012 at 11:15 UTC |