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