in reply to Format with Args at End of Script
You could use '$_' as a hash reference. Set $_->{"prefix_text"}=$prefix_text, etc. and use that in the format.
Or just use %_, (i.e. set $_{"prefix_text}, etc.), but I'm not sure if %_ is documented anywhere if that matters.