in reply to
Why do I get a "used only once" warning here?
I don't see why you should do anything else than
no warnings "once";
in a small scope. It does what you want, and every reader of the code immediately know what you wanted to achieve.
Comment on
Re: Why do I get a "used only once" warning here?
Download
Code
In Section
Seekers of Perl Wisdom