in reply to Is this logic correct? Maybe can be rewritten better?
However, you are not using strict or, if you are, you are neutering it by having a huge my() or use vars() at the top. Had you been using strict, the bug trammell noticed would have been noticed for you by perl itself. That's why we have been telling you over and over to use it. Warnings would also help find other bugs you have.
As for your UTF-8, the better thing to do would be to create a sample script that only uses ASCII and demonstrates the question you have. Post that, then take the answers given and apply them to your real script.
As for your logic - I don't know what $data does. I also don't know why you're checking the 'select' parameter from your form before caring if the $hostmatch variable is 1 or not 1. Your specifications are unclear.
The Perfect is the Enemy of the Good.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Is this logic correct? Maybe can be rewritten better?
by Nik (Initiate) on Apr 29, 2005 at 15:24 UTC | |
by ikegami (Patriarch) on Apr 29, 2005 at 15:32 UTC | |
| |
by Fletch (Bishop) on Apr 29, 2005 at 16:23 UTC | |
by Nik (Initiate) on Apr 29, 2005 at 16:43 UTC | |
by Fletch (Bishop) on Apr 29, 2005 at 17:13 UTC |