Re: Checking for calling context

2004-02-14 Thread Robin Sheat
On Sat, Feb 14, 2004 at 03:44:38AM -0500, Jeff 'japhy' Pinyan wrote: > Yes, use wantarray(). Aha! Thanks :) -- Robin <[EMAIL PROTECTED]> JabberID: <[EMAIL PROTECTED]> Hostes alienigeni me abduxerunt. Qui annus est? PGP Key 0x776DB663 Fingerprint=DD10 5C62 1E29 A385 9866 0853 CD3

Re: Checking for calling context

2004-02-14 Thread Jeff 'japhy' Pinyan
On Feb 14, Robin Sheat said: >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

Re: Checking for calling context

2004-02-13 Thread Robin Sheat
On Sat, Feb 14, 2004 at 08:19:20AM +0100, wolf blaum wrote: > If you are asking how to teel between: > $var=⊂ > and > ⊂ Pretty much, from the point of view of sub. > However, there is a way to tell who asked for the result: > read perldoc -f caller Not really what I want. > but why dont you pass

Re: Checking for calling context

2004-02-13 Thread wolf blaum
> Hey there, Hi > 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 g

Checking for calling context

2004-02-13 Thread Robin Sheat
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