CC: | 460423 [...] rt.noris.net |
Subject: | ->guess_syntax modifies $_ |
fany@fany:~> perl -MConfig::Simple -e '$_="Test";print"$_\n"'
Test
fany@fany:~> perl -MConfig::Simple -e
'$_="Test";Config::Simple->new("foo");print"$_\n"'
This es even more of a problem if $_ is a read-only value...
fany@fany:~> perl -MConfig::Simple -e 'Config::Simple->new("foo") for undef'
Modification of a read-only value attempted at
/usr/lib/perl5/site_perl/5.10.0/Config/Simple.pm line 220.
... which just happened when trying to use your module in conjunction
with CGI::Application::Plugin::Config::Simple.
A simple solution would be to add a "local $_;" in front of the "while (
<$fh> )" at line 220.
Regards,
fany