Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [Wychwood] Custom.pm problem

Quote Reply
Re: [Wychwood] Custom.pm problem In reply to
Wychwood,

Good idea, however, I did not get better result.

Here is the whole test case:
Global contains the following:
'menu_left' => Links::Custom::SiteHTML::menu_template(),


Custom.pm:
Code:
package Links::Custom::SiteHTML;
# ==================================================================
use strict;
require Links;
import Links qw/$IN $CFG $GLOBALS $USER/;

use vars qw/$GRAND_TOTAL/;
use GT::Dumper;

print "Content-Type: text/html\n\n";
print "\$CFG: " . GT::Dumper::Dumper(\$CFG) . "<br>\n\n";


sub menu_template {
# --------------------------------------------------------
# This routine determines how the rate failure page will look like.
require Links;
import Links qw/$IN $CFG $GLOBALS $USER/;

use GT::Dumper;
print "\$CFG: " . GT::Dumper::Dumper(\$CFG) . "<br>\n\n";
}

Error:
Quote:
Global symbol "$CFG" requires explicit package name at /admin/Links/Custom.pm line 11.
BEGIN not safe after errors--compilation aborted at /admin/Links/Custom.pm line 20.
Compilation failed in require at /admin/Links.pm line 28.
BEGIN failed--compilation aborted at /admin/Links.pm line 28.
Compilation failed in require at page.cgi line 17.
BEGIN failed--compilation aborted at page.cgi line 17.
Premature end of script headers: page.cgi


Any idea?

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...

Last edited by:

webmaster33: Aug 26, 2007, 9:55 AM
Subject Author Views Date
Thread Custom.pm problem webmaster33 6509 Aug 22, 2007, 2:32 PM
Thread Re: [webmaster33] Custom.pm problem
Wychwood 6366 Aug 23, 2007, 2:26 AM
Thread Re: [Wychwood] Custom.pm problem
webmaster33 6376 Aug 26, 2007, 9:23 AM
Thread Re: [webmaster33] Custom.pm problem
Wychwood 6361 Aug 27, 2007, 3:58 PM
Thread Re: [Wychwood] Custom.pm problem
webmaster33 6336 Aug 27, 2007, 4:18 PM
Thread Re: [webmaster33] Custom.pm problem
brewt 6356 Aug 27, 2007, 8:57 PM
Thread Re: [brewt] Custom.pm problem
webmaster33 6325 Aug 28, 2007, 2:22 AM
Thread Re: [webmaster33] Custom.pm problem
brewt 6331 Aug 28, 2007, 10:28 AM
Thread Re: [brewt] Custom.pm problem
webmaster33 6356 Aug 28, 2007, 12:40 PM
Post Re: [webmaster33] Custom.pm problem
eupos 6305 Aug 28, 2007, 12:45 PM
Post Re: [Wychwood] Custom.pm problem
webmaster33 6337 Aug 26, 2007, 10:41 AM