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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: context-sensitivity for selfwritten functions
by Abigail-II (Bishop) on Jan 28, 2004 at 09:32 UTC | |
Re: context-sensitivity for selfwritten functions
by rob_au (Abbot) on Jan 28, 2004 at 09:06 UTC | |
Re: context-sensitivity for selfwritten functions
by l3nz (Friar) on Jan 28, 2004 at 09:29 UTC |
Back to
Seekers of Perl Wisdom