Skip Menu |

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

Report information
The Basics
Id: 44033
Status: resolved
Priority: 0/
Queue: Config-JFDI

People
Owner: rkrimen [...] cpan.org
Requestors: ddascalescu+perl [...] gmail.com
Cc:
AdminCc:

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



Subject: Should return undef if get/load didn't find any config file
Right now, the returned value is an empty hash, which is slightly confusing.
I like the fact that you can just use ->get without having to worry about checking for undef first I think a better way to go about it would be to add a ->loaded_from method that will return what files the config was loaded from and in what order. In the place where you want to do the special check you can, otherwise you don't have to worry about it.
From: ddascalescu+perl [...] gmail.com
The reason I raised this bug is that I'm used to the Perl idiom open my $file, '<', $filename or die $!; and I expected a similar behavior from Config::JFDI: Config::JFDI->new(name => "myapp")->get or die $!;
This feature is in 0.06, thanks for the suggestion Let me know if you think it can be tweaked