miguelele has asked for the wisdom of the Perl Monks concerning the following question:
Specially, after it dies, I do not understand the meaning of ref $res ? $res->faultstring : $soap->transport->status Is it referencing or something?on_fault => sub { my($soap, $res) = @_; eval { die ref $res ? $res->faultstring : $soap->transport->status + }; return ref $res ? $res : new SOAP::SOM; };
Any didactic help will be really appreciated.
Regards
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: What's the meaning of die ref $res... ?
by Utilitarian (Vicar) on Jan 12, 2012 at 17:01 UTC | |
by miguelele (Beadle) on Jan 13, 2012 at 09:17 UTC | |
by Utilitarian (Vicar) on Jan 13, 2012 at 11:15 UTC | |
|
Re: What's the meaning of die ref $res... ?
by BrowserUk (Patriarch) on Jan 12, 2012 at 17:06 UTC |