write does not work with tied handles, probably because a format is different from a file handle (though both are stored in and accessed through globs), and those modules create tied file handles, not "format handles".
You would use formline and $^A as in Kanji's example below, or see what I once did for a more complicated example.
Comment on Re: Re: How to route a format into a variable