in reply to Re: read file from ARGV
in thread read file from ARGV
Hi nithins,
I think it would be a good practice to check the return of open function and to also close an opened filehandles like
Except one is doinguse autodie qw(open close);open my $fh,'<',$ARGV[0] or die "can't open file: $!"; ... close $fh or die "can't close file: $!";
|
|---|