in reply to getting a single element from hash result

my $HTMLCheck = $db->select("select HTMLCheck from Contact where Conta +ctID=$ContactID")[1]->{HTMLCheck};
That looks basically right. My guess is that Perl got confused as to what was being subreferenced. Try:
my $HTMLCheck = {$db->select("select HTMLCheck from Contact where Cont +actID=$ContactID")}[1]->{HTMLCheck};

Replies are listed 'Best First'.
RE: Re: getting a single element from hash result
by takshaka (Friar) on Jun 02, 2000 at 21:52 UTC
    I think you meant: my $HTMLCheck = ($db->select("select HTMLCheck from Contact where ContactID=$ContactID"))[1]->{HTMLCheck};