No such thing as a small change | |
PerlMonks |
Re^6: reduce like iteratorsby tilly (Archbishop) |
on Jan 19, 2011 at 01:14 UTC ( [id://883029]=note: print w/replies, xml ) | Need Help?? |
In general and in theory, no. But lots of people have so done, and it works out reasonably well in practice. For a random example Dominus used char(20) for this purpose in the widely used Memoize. (Then documented the limitation.) This code is significantly faster than a robust escape mechanism would have been, and he provided a mechanism to fix the potential bug if you needed to.
In Section
Seekers of Perl Wisdom
|
|