raflach has asked for the wisdom of the Perl Monks concerning the following question:
That works, but seems sloppy and wasteful of resources.my $ContactID = somecontactid; my @rows=$db->select("select HTMLCheck from Contact where ContactID=$C +ontactID"); my $HTMLCheck = $rows[1]->{HTMLCheck}; # do something with $HTMLCheck
That does not seem to be working as expected. Can anyone advise of a way to simplify the above code?my $HTMLCheck = $db->select("select HTMLCheck from Contact where Conta +ctID=$ContactID")[1]->{HTMLCheck};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: getting a single element from hash result
by Anonymous Monk on Jun 02, 2000 at 22:57 UTC | |
by raflach (Pilgrim) on Jun 05, 2000 at 20:05 UTC | |
|
Re: getting a single element from hash result
by swiftone (Curate) on Jun 02, 2000 at 20:55 UTC | |
by takshaka (Friar) on Jun 02, 2000 at 21:52 UTC |