in reply to How to route a format into a variable

There are some modules like IO::Stringy that allow doing I/O on variables. You should be able to get what you want using one of those modules.

Update: Don't go there. There's no cheese down that corridor.

--- print map { my ($m)=1<<hex($_)&11?' ':''; $m.=substr('AHJPacehklnorstu',hex($_),1) } split //,'2fde0abe76c36c914586c';

Replies are listed 'Best First'.
Re: Re: How to route a format into a variable
by runrig (Abbot) on Feb 12, 2003 at 18:20 UTC
    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.