in reply to Re^3: Perl tk - open file and print content
in thread Perl tk - open file and print content
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 (Cardinal) on Jan 19, 2012 at 16:54 UTC | |
by Giorgio C (Novice) on Jan 20, 2012 at 10:58 UTC | |
by zentara (Cardinal) 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 | |
|