in reply to Associating filehandles with Perl::Tk widgets?
Another option is to use a file handle that is tied to a scalar variable, format the text using that file handle and retrieve the formatted output via the scalar:
my $buf; open(my $fh, ">", \$buf); ... write $fh ...; ... close($fh); # now use $buf: $widget->configure(-text => $buf);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Associating filehandles with Perl::Tk widgets?
by YYCseismic (Beadle) on Jul 16, 2008 at 19:27 UTC | |
by YYCseismic (Beadle) on Jul 16, 2008 at 21:01 UTC |