Config-Extend-MySQL
view release on metacpan or search on metacpan
lib/Config/Extend/MySQL.pm view on Meta::CPAN
@skip{@skip_names} = (1) x @skip_names;
return $self
}
sub __new_from {
my ($backend, $fh, $content_r) = @_;
if ($backend eq "Config::IniFiles") {
local $SIG{__WARN__} = sub {}; # avoid a warning from stat() on this $fh
local *IO::String::FILENO = sub { -1 };
return Config::IniFiles->new(-file => $fh)
}
elsif ($backend eq "Config::Format::Ini") {
local $SIG{__WARN__} = sub {}; # avoid "slurp redefined" warning
local *Config::Format::Ini::slurp = sub { return ${$_[0]} };
return Config::Format::Ini::read_ini($content_r)
}
elsif ($backend eq "Config::Simple") {
# can't get Config::Simple to play nicely because it want to
( run in 1.323 second using v1.01-cache-2.11-cpan-49f99fa48dc )