![]() |
|
P is for Practical | |
PerlMonks |
Re: Errors in Codeby AcidHawk (Vicar) |
on Apr 16, 2003 at 09:40 UTC ( #250824=note: print w/replies, xml ) | Need Help?? |
Some things I found...
2. You are using $CONTROL = $data[2] when you do the split but in your $sth statement you try to select where control = $Control $CONTROL does NOT equal $Control. 3. Your logic seems a little confusing, you are saying in the unless($matches) { that if you get no matches you will then update. That seems backwards what can you update if you get NO match and if you DO get a match you will then insert..? 4. As Enlil says you disconnect before you run the do Some good node can be found here at the Monastery talking about SQL queries etc here are a few I found interesting
Added: You also might like to change to something like ----- Of all the things I've lost in my life, its my mind I miss the most.
In Section
Seekers of Perl Wisdom
|
|