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

...unblessed reference...

Quote Reply
...unblessed reference...
I'm trying to write a global that will grab something from the lsql_News table. I currently have;

my $table = $DB->table('News');
my $sth = $table->select_options ('ORDER BY Stamp DESC')->select( { Category => "$file" } );
my ($url,@url,@text);

...but when running the abopve code, it gives the following error;

Can't call method "select" on unblessed reference at test.cgi line 63.

I'm not quite sure what that error message means. BTW: I've also checked to see if the value is empty, but its returning what it is supposed to.

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 ...unblessed reference... Andy 2023 Apr 25, 2003, 1:25 AM
Thread Re: [Andy] ...unblessed reference...
Paul 1911 Apr 25, 2003, 1:47 AM
Post Re: [Paul] ...unblessed reference...
Andy 1913 Apr 25, 2003, 6:58 AM