diff options
Diffstat (limited to 'perl.req')
-rwxr-xr-x | perl.req | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -77,7 +77,10 @@ sub process_file { my ($file) = @_; - open(FILE, "<$file") || return; + if (!open(FILE, $file)) { + warn("$0: Warning: Could not open file '$file' for reading: $!\n"); + return; + } while (<FILE>) { |