in reply to
Re: Perl and common subexpressions
in thread Perl and common subexpressions
This is very true.
That is, by the way, why I qualified my statement with 'CPU-bound'. When the bulk of your program involves I/O, the overhead from array, hash, and stash lookups becomes negligible -- even for pipes, because they involve context switches to the process on the other end of the pipe.
}"for split/</;$_=$,,y[A-Z a-z]