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 Conta +ctID=$ContactID")[1]->{HTMLCheck};
my $HTMLCheck = {$db->select("select HTMLCheck from Contact where Cont +actID=$ContactID")}[1]->{HTMLCheck};
In reply to Re: getting a single element from hash result
by swiftone
in thread getting a single element from hash result
by raflach
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |