Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Re: [hennagaijin] help debugging a subroutine

Quote Reply
Re: [hennagaijin] help debugging a subroutine In reply to
Hi,

Not sure if this is a valid line?

my $last_in_forum = $DB->table('UserNew')->select('usernew_last' => { user_id_fk => $user_id, forum_id_fk => $forum_id})->fetchrow_hashref->{usernew_last};


Probably better written;

my $last_in_forum = $DB->table('UserNew')->select( ['usernew_last'], { user_id_fk => $user_id, forum_id_fk => $forum_id})->fetchrow;

Not sure about any other coding problems.

What happens if you run it in the plugin editor? i.e make a test plugin, copy the code into the .pm file, and then do a "Perl Check". This normally shows up any major errors :)

Hope that helps.

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 help debugging a subroutine hennagaijin 5429 Apr 8, 2005, 2:32 PM
Thread Re: [hennagaijin] help debugging a subroutine
Andy 5308 Apr 9, 2005, 1:26 AM
Thread Re: [Andy] help debugging a subroutine
hennagaijin 5333 Apr 9, 2005, 4:42 AM
Thread Re: [hennagaijin] help debugging a subroutine
Andy 5292 Apr 9, 2005, 11:15 AM
Thread Re: [Andy] help debugging a subroutine
hennagaijin 5308 Apr 9, 2005, 11:40 AM
Post Re: [hennagaijin] help debugging a subroutine
Andy 5305 Apr 10, 2005, 11:36 PM
Thread Re: [hennagaijin] help debugging a subroutine
Andy 5321 Apr 10, 2005, 11:39 PM
Post Re: [Andy] help debugging a subroutine
hennagaijin 5298 Apr 14, 2005, 6:46 AM