in reply to Re^3: Perl tk - open file and print content
in thread Perl tk - open file and print content
Thank you so much, now CUPS works fine !!
I am able to open a file and it printed content in the terminal. I'm not able to print that content (of the txt files) in a scrolled GUI windows.
Can you suggest me the correct sintax to link print@line in $mw....???
sub open_file {my $open = $mw->getOpenFile(-filetypes => $types_OPEN, -defaultextension => '.sff'); $read_fh = IO::File->new("$open",'r'); read_text($read_fh); } sub read_text { local $read_fh = shift; my @lines; @lines = <$read_fh>; print @lines; MainLoop }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Perl tk - open file and print content
by Anonymous Monk on Jan 19, 2012 at 14:30 UTC | |
Re^5: Perl tk - open file and print content
by zentara (Archbishop) on Jan 19, 2012 at 16:54 UTC | |
by Giorgio C (Novice) on Jan 20, 2012 at 10:58 UTC | |
by zentara (Archbishop) on Jan 21, 2012 at 11:19 UTC | |
by Giorgio C (Novice) on Jan 23, 2012 at 12:29 UTC | |
by Anonymous Monk on Jan 23, 2012 at 12:48 UTC | |
|
In Section
Seekers of Perl Wisdom