in reply to read file in perl/tk( text )
isopen my $fh,'<','/home/terrance/Desktop/perl/record.txt' || die $!;
becauseopen my $fh,'<','/home/terrance/Desktop/perl/record.txt';
always returns '/home/terrance/Desktop/perl/record.txt''/home/terrance/Desktop/perl/record.txt' || 'also true';
You want to use autodie; or use or die $!
The other thing you want to do , if you want to cut your development time in half, is Use strict warnings and diagnostics or die, after you add that, you'll find some typos you need to fix
|
|---|