Yes, thanks for pointing that out, and in fact I usually do implement it with push() to an array. I'm in slow-mo this morning as it's a dreary Saturday to start a long weekend :)
I'll keep my example as is so that future readers have context for your post, and can see the potential pitfall.
In reply to Re^3: Is validation of all subroutine arguments overkill?
by stevieb
in thread Is validation of all subroutine arguments overkill?
by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |