http://qs1969.pair.com?node_id=1107844


in reply to Re^4: I have a list expanding when I don't want it to
in thread I have a list expanding when I don't want it to

First make it work (using the easiest to maintain code you can) then, only if you need to, make it faster.

"Need to" requires that you have performed some sort of profiling so you know where things are slow. And before you "speed it up" write unit tests to make sure your speed up isn't at the expense of breaking the code (doing nothing can often be quite fast).

Perl is the programming world's equivalent of English