Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: Problem with deleting a hash key

by cLive ;-) (Parson)
on Aug 15, 2007 at 18:15 UTC ( #632818=note: print w/replies, xml ) Need Help??

in reply to Problem with deleting a hash key

Um. Well. There's quite a few stumbling blocks here:

  • I'd change the DBI connect to throw an error if it fails rather than use a conditional after.
  • explain what %list is, since you don't include the declaration code here.
  • same for getRecord()
  • remove fluff code - the "if (scalar(@dbrec) > 6 )" has nothing to do with whether the key is deleted. heh, maybe that's the bug though and the delete line should be on the other side of the closing brace?
  • in this context, the "if (@dbrec)" conditional is pointless too

Maybe then we'll have a chance at helping you...

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://632818]
[Corion]: Discipulus: Yeah, I rediscovered it when I wanted to have a simple (cross-platform) wrapper for my OpenGL program so it has a nice window etc
[Corion]: ... and one thing leads to another, so ambrus provided the integration with AnyEvent so I can now conveniently make HTTP requests from that app too :)

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2016-12-09 09:14 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (150 votes). Check out past polls.