The stupid question is the question not asked | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I'm with Abigail-II here. I don't think it's useful to standardize on a behavior when dwimmery is involved. Perl's own functions are not standardized, and I wouldn't want to be held to a standard behavior when my particular function doesn't work that way.
I do think that many of the internals should check for void context, if possible, like what Juerd said (and like what map does). For example, uc (and friends) would be great like that. I hate having to write $x = uc $x; when the dwimmiest way would be uc $x; and have it mutate in void context. ------
Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified. In reply to Re: What should be returned in scalar context?
by dragonchild
|
|