'.' is the current directory and '..' is the parent directory. Neither is a file so you can't open them as a file. You can test for files and skip anything that's not a file:
for my $fileName (@files) { next if ! -f $fileName; open my $in_fh, '<', $fileName; ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Have a multiple file in directory and want to manipulate in each files in incremental order. All the file have same value.
by graff (Chancellor) on Dec 23, 2014 at 09:05 UTC |