If I'm not completely misunderstanding you, that's what could be done with closures in Perl - as mentioned in the first reply on this node by tadman++.
Makeshifts last the longest.
In reply to Re^2: Refactor method calls or not?
by Aristotle
in thread Refactor method calls or not?
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |