I agree with zentara; it looks like you are feeding insert a hash. See the following test code:
Update: (after actual code snippet was posted) You are setting yourself up for trouble by accessing private internal data structures directly. Try using the accessor methods instead.use warnings; use strict; use Tk; my %w; my %hash = ( 'key1' => 'value1', 'key2' => 'value2' ); $w{mw} = MainWindow->new; $w{text} = $w{mw}->Text->pack; $w{text}->insert('end', %hash); $w{text}->insert('end', "\n\n" ); while ( my ($key, $value) = each %hash ){ $w{text}->insert('end', "$key => $value\n"); } MainLoop;
Update 2:blarg. fixed broken hash iterator in demo code.$txt->insert('end', $worksheet->get_cell($row, $col)->value());
In reply to Re: Perl Tk text widget printing problem
by thundergnat
in thread Perl Tk text widget printing problem
by reaper9187
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |