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

Re: [yogi] Can't use string ("1") as a HASH ref while "strict refs" in use at (eval 27) line 7.

Quote Reply
Re: [yogi] Can't use string ("1") as a HASH ref while "strict refs" in use at (eval 27) line 7. In reply to
Hi yogi. Thanks for the reply.

Its just a global. The first bit of it is;

Code:
sub {

use LWP::Simple;
use XML::Simple;

my $tags = shift;
my $CatID = $tags->{ID};

my $table = $DB->table('Category');
my $sth = $table->select( { ID => $CatID } );
my $Keyword;

while (my $hit = $sth->fetchrow_hashref) {
$Keyword = $hit->{Keyword};
}

Its called with;

<%global_name($ID)%>

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread Can't use string ("1") as a HASH ref while "strict refs" in use at (eval 27) line 7. Andy 1952 Aug 22, 2003, 4:53 AM
Thread Re: [Andy] Can't use string ("1") as a HASH ref while "strict refs" in use at (eval 27) line 7.
yogi 1870 Aug 22, 2003, 8:06 AM
Thread Re: [yogi] Can't use string ("1") as a HASH ref while "strict refs" in use at (eval 27) line 7.
Andy 1870 Aug 22, 2003, 8:11 AM
Thread Re: [Andy] Can't use string ("1") as a HASH ref while "strict refs" in use at (eval 27) line 7.
yogi 1864 Aug 22, 2003, 8:15 AM
Post Re: [yogi] Can't use string ("1") as a HASH ref while "strict refs" in use at (eval 27) line 7.
Andy 1868 Aug 22, 2003, 8:29 AM