Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Context aware functions - best practices?

by scholar (Acolyte)
on Jan 14, 2003 at 18:35 UTC ( #226919=note: print w/ replies, xml ) Need Help??


in reply to Context aware functions - best practices?

If I understand the question correctly you're wanting the sub to be aware of the context within which it is called which is precisely the purpose of the wantarray function. And it's perfectly clear to boot. I have to say I've always thought of it as rather elegant myself.


Comment on Re: Context aware functions - best practices?
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://226919]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (9)
As of 2014-09-16 10:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (7 votes), past polls