|Subject:||New() method does not croak on a directory|
Test case /tmp/perl-Config-General_directory: use Config::General; Config::General->new($ARGV)->getall; If ARGV is a directory, no message will be printed and program will exit gracefully: $ perl -I Config-General-2.49/blib/lib /tmp/perl-Config-General_directory Config-General-2.49; echo $? 0 In contrast, if ARGV is a non-existing file, error will croak and program will exit with proper code: $ perl -I Config-General-2.49/blib/lib /tmp/perl-Config-General_directory x; echo $? Config::General The file "x" does not exist! at /tmp/perl-Config-General_directory line 2 2 I think Config::General should croak because documentation states the new() argument is a file name (or hash or hash reference).