Skip Menu |

This queue is for tickets about the Config-General CPAN distribution.

Report information
The Basics
Id: 61302
Status: resolved
Priority: 0/
Queue: Config-General

Owner: Nobody in particular
Requestors: ppisar [...]

Bug Information
Severity: (no value)
Broken in: 2.49
Fixed in: (no value)

Subject: New() method does not croak on a directory
Download (untitled) / with headers
text/plain 715b
Test case /tmp/perl-Config-General_directory: use Config::General; Config::General->new($ARGV[0])->getall; If ARGV[0] 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[0] 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).
fixed in 2.50

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to