in reply to
my within a loop
That code is perfectly fine. In effect, a new var is created every time. As an optimisation, the same variable is reused when possible.
Comment on
Re: my within a loop
In Section
Seekers of Perl Wisdom