in reply to format/write to variable


Possibly IO::String will do the trick.

Replies are listed 'Best First'.
Re: Re: format/write to variable
by runrig (Abbot) on Jan 29, 2002 at 08:25 UTC
    Possibly IO::String will do the trick.

    IO::String or IO::Scalar always seems to be the first thing people think of, then those that try it eventually find out that format and write don't like tied filehandles. wog and simon.proctor have it right, formline and $^A are the ticket. Here is an implementation I once used when I needed to put hash data into columns.