|Subject:||Failure to read config from a scalar|
When passing a reference to a scalar as -file argument, Config::IniFiles failes to read the configuration using IO::Scalar. Instead, it will try to open the reference as a file. The following one-liner will reproduce the problem as will the test script attached to this report: perl -e 'use Config::IniFiles; my $data="[foo]\nbar=baz\n"; my $cfg = new Config::IniFiles -file=>\$data;' I do have IO::Scalar Version 2.110 installed. The problem seems to result from line 2043 of Version 2.48 of IniFiles.pm, where only IO::Scalar is required but the VERSION of IO::Stringy is checked. Thanks in advanve for your efforts!
use Config::IniFiles; my $contents = <<EOT; [dummy] foo = bar EOT my $cfg = new Config::IniFiles( -file => \$cfg_contents ); print $Config::IniFiles::VERSION, "\n"; print $IO::Scalar::VERSION, "\n";