Hey there, I have a set of functions that send an XML element, wait for a response, parse the response, and return it. However, there are often cases where the resulting XML is never used, and so parsing it is pointless. Is there a way that a sub can tell where the result is going to go, so that it can not do the parsing if the result is going to be immediatly discarded?
Something like this:
foo(a,b,c);
%result = foo(c,d,e);
sub foo {
...do stuff...
if (-result isn't discarded-) {
return parseResult($result);
}
}
--
Robin <[EMAIL PROTECTED]> JabberID: <[EMAIL PROTECTED]>
Hostes alienigeni me abduxerunt. Qui annus est?
PGP Key 0x776DB663 Fingerprint=DD10 5C62 1E29 A385 9866 0853 CD38 E07A 776D B663
pgp00000.pgp
Description: PGP signature
