Don't ask to ask, just ask | |
PerlMonks |
context-sensitivity for selfwritten functionsby tos (Deacon) |
on Jan 28, 2004 at 09:03 UTC ( [id://324624]=perlquestion: print w/replies, xml ) | Need Help?? |
tos has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks, some intrinsic functions as f.i. 'localtime' are contextsensitive. How can i realize this behavior with my own functions ? How does my function know whether it has to return a scalar- or a list-value ? Is there something to do with overloading ? thanks in advance and regards, tos
Back to
Seekers of Perl Wisdom
|
|