![]() |
|
XP is just a number | |
PerlMonks |
Re^5: Gratuitous use of Perl Prototypesby BrowserUk (Patriarch) |
on Nov 09, 2004 at 17:32 UTC ( #406402=note: print w/replies, xml ) | Need Help?? |
Ah! I see what you mean. (I should have realised that, given you were advocating mapcar() (What the...?) :). The main reason for my avoiding lexicals in a utility sub of this type is that I want to retain the aliasing nature of @_. If you look closely at the output from the second and third print statements, you'll see that they have side-effects. (Which will probably be considered as undesirable, but again, it is sometimes useful.) Perhaps these are more palatable?
Now, if anyone can tell me how to make zipn truely generic in the number of arrays it can deal with I'd be very interested. 20 is probably more than enough for any purpose I am likely to encounter, but I hate arbitrary limits. Also, if anyone can see how to retain the alias status of the parameters to zipn, that would be really cool.
In Section
Meditations
|
|