http://www.perlmonks.org?node_id=94235


in reply to Limiting array size?

again, depending on exactly how and why you're implamenting this, you could just write a sub that you call each time you want use the array that checks and rejects it if the length is unacceptable. The Tie ideas are more elegant, but if you can't use them this could work too...

We speak the way we breathe. --Fugazi