Perl Monk, Perl Meditation | |
PerlMonks |
Re: What should be returned in scalar context?by Abigail-II (Bishop) |
on Dec 02, 2003 at 15:39 UTC ( [id://311647]=note: print w/replies, xml ) | Need Help?? |
Besides which, I think that it is overkill to have to give an issue like this serious consideration with every function that I write. Having a default that just flows from my fingers would smooth out the development process.It's not that for every function I write I contemplate what I am going to do in list context, and what I am going to do in scalar context. I just do whatever seems right at the time, and that's usually the right choice. But it's seldom consistent. Abigail
In Section
Meditations
|
|