Good puzzle. This sort of thing is precisely the reason various best practices have arisen.
In reply to Re: Tiny Perl puzzle by tobyink in thread Tiny Perl puzzle by Dominus