Subject: | Its not a bug, but 'my' should be added in example file |
Date: | Mon, 28 Feb 2011 15:34:05 +0700 |
To: | bug-CGI-Application-Plugin-ConfigAuto [...] rt.cpan.org |
From: | zakarias santanu <zaksantanu [...] gmail.com> |
Hi,
I am using CGI::Application::Plugin::ConfigAuto, and looks i should add "my"
into config file,
i saw this in example :
#!/usr/bin/perl
# directory path name
$CFG{DIR} = '/home/mark/www';
# website URL
$CFG{URL} = 'http://mark.stosberg.com/';
\%CFG;
And my application throws "index.pl: Global symbol "%CFG" requires explicit
package name at (eval 166) line 13, <$fh> line 12"
Warning/error is gone when i add "my" into config file
#!/usr/bin/perl
my %CFG=();
# directory path name
$CFG{DIR} = '/home/mark/www';
# website URL
$CFG{URL} = 'http://mark.stosberg.com/';
\%CFG;
FYI: My perl version is 5.10.0
Regards,
Zak