in reply to File contents are not displaying in Perl tk

Have you verified that you are reading the data completely?

Have you verified that you can display a fixed array as you want, without reading the data from the file?

I don't do Tk, but looking at your data, every second line seems to be missing. This is most likely, because something somewhere interprets your data as hash. Maybe the following line is not how you set the text of a widget?

$sublable->insert( 'end', @contents );

As a wild guess, maybe the way to add the information is

$sublable->insert( 'end', \@contents );

Replies are listed 'Best First'.
Re^2: File contents are not displaying in Perl tk
by lamprecht (Friar) on Dec 08, 2010 at 12:13 UTC
    $sublable->insert( 'end', $_ ) for @contents ;

    Cheers, Chris

      Thank you very much dude....!