There are of course many programs that you do not want to
issue any warnings if they cannot open certain files.
Lots of application read in various, optional, configuration
files, one in the current directory, one in the users home
directory, and a system wide config file. Not all config
files will exist, or are readable. You want the application
to silently skip them. This is very acceptable code:
foreach my $file (@files) {
if (open my $fh => $file) {
read in file
do whatever you need to do
}
}
-- Abigail