in reply to Re: Method "do" error
in thread Method "do" error

Hi.

I tried your suggestion with my $dbh = shift; and I'm still having no luck.

Replies are listed 'Best First'.
Re: Re: Re: Method "do" error
by grep (Monsignor) on Apr 20, 2003 at 22:25 UTC
    Where did you put the my $dbh = shift in the sub store_items or the main body of the code??

    it needs to be in the sub

    sub store_items { my $dbh = shift; ....

    If this is the case then follow my previous suggestion and use Data::Dumper to print out the database handle right before your error and see what you get.

    sub store_items { my $dbh = shift; use Data::Dumper; print Dumper $dbh; ...


    grep
    Mynd you, mønk bites Kan be pretti nasti...