Gossamer Forum
Quote Reply
Custom.pm problem
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.

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...
Subject Author Views Date
Thread Custom.pm problem webmaster33 6455 Aug 22, 2007, 2:32 PM
Thread Re: [webmaster33] Custom.pm problem
Wychwood 6312 Aug 23, 2007, 2:26 AM
Thread Re: [Wychwood] Custom.pm problem
webmaster33 6321 Aug 26, 2007, 9:23 AM
Thread Re: [webmaster33] Custom.pm problem
Wychwood 6307 Aug 27, 2007, 3:58 PM
Thread Re: [Wychwood] Custom.pm problem
webmaster33 6281 Aug 27, 2007, 4:18 PM
Thread Re: [webmaster33] Custom.pm problem
brewt 6301 Aug 27, 2007, 8:57 PM
Thread Re: [brewt] Custom.pm problem
webmaster33 6271 Aug 28, 2007, 2:22 AM
Thread Re: [webmaster33] Custom.pm problem
brewt 6276 Aug 28, 2007, 10:28 AM
Thread Re: [brewt] Custom.pm problem
webmaster33 6301 Aug 28, 2007, 12:40 PM
Post Re: [webmaster33] Custom.pm problem
eupos 6251 Aug 28, 2007, 12:45 PM
Post Re: [Wychwood] Custom.pm problem
webmaster33 6281 Aug 26, 2007, 10:41 AM