The obvious method is to pass a length in with the handle everywhere. That's crude, though, so bundling the length and the handle into an object seems better. But in Perl, we can go a step farther: how about a tied handle that knows about the length limit? Is there something like that already out there?
—John
In reply to Length-limiting handle by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |