NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
:-D (Score:2)
Re::-/ (Score:2)
In theory, that looks good and if I were calling the shots, it would be. However, consider the following:
If one of the "other funcs" has a bare return, some_func() will be passed a list with only one element! You can get around this by prepending the function calls with scalar, but that is not done in the shop I work at, yet function calls are often embedded in other function calls. Thus, we have explicit return values. If only one value is being returned, we
zero (Score:2, Insightful)
Re:zero (Score:2)
Um, err, (shuffles feet and looks away nervously).
Nice catch :)