in reply to writing to a variable

Of course! Read up on the built-in function formline. Formats use this function internally, but you can call it yourself too.

jdporter
The 6th Rule of Perl Club is -- There is no Rule #6.