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: $!";
In reply to Re^2: read file from ARGV
by 2teez
in thread read file from ARGV
by starface245
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |