Hi Jon
Hey, is this a competition to identify lapdancers or something? If so, don't
forget to post the URL up here when you've got it working ;-) (especially
since we now know all the answers)
Anyway, one thing that might be causing problems is these two lines in your
one_time sub
> $compare = { split (/:/, $stats)};
> @records = \$compare;
I think you'd be better off to use:
@records = split (/:/, $stats)
At the moment you are splitting to a scalar (which I think just puts the
first (or is it the last?) value from that split into the scalar) and then
assigning a reference to that scalar as an array. I'm sure that's not good
for you (and I'm a bit surprised that -w didn't pick it up, or haven't you
tried it from the command line?)
Other than that I can't see anything that should actually stop it working.
It's not the prettiest code I've ever seen though...
Cheers
Mark C
> Hello everyone,
> I am trying to create a simple cgi script that if a
> user enters the
> correct information on a contest form, they are entered into
> a flat-file DB.
> This I have conquered. My next feat is that before I write
> their personal
> information into the DB, I am comparing 3 fields from the DB
> to 3 fields
> being submitted by the user for duplicate submissions in sub
> one_time (the
> fields are phone number fields). The problem is, is that I
> never get a
> match and the user is able to submit an infinite amount of
> time. Here is my
> source code. It's only about 65 lines. Thank you for your help!
>