I use the following code, but I get error when I call this sub from a global.
Error: Global symbol "$CFG" requires explicit package name at /.../admin/Links/Custom.pm line 37.
# ==================================================================
use strict;
use Links qw/$IN $CFG $GLOBALS/;
use GT::Dumper;
print "\$CFG: " . GT::Dumper::Dumper(\$CFG) . "<br>\n\n";
Interesting, as $CFG should be loaded by "use Links".
Did I miss something?
Best regards,
Webmaster33
Paid Support from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Error: Global symbol "$CFG" requires explicit package name at /.../admin/Links/Custom.pm line 37.
Code:
package Links::Custom::SiteHTML; # ==================================================================
use strict;
use Links qw/$IN $CFG $GLOBALS/;
use GT::Dumper;
print "\$CFG: " . GT::Dumper::Dumper(\$CFG) . "<br>\n\n";
Interesting, as $CFG should be loaded by "use Links".
Did I miss something?
Best regards,
Webmaster33
Paid Support from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...