in reply to
Re^4: Out of Memory
in thread
Out of Memory
optimizing such kind of constructs - is one of the ways in your situation.
The answer to your question - 'yes',
Comment on
Re^5: Out of Memory
In Section
Seekers of Perl Wisdom