RE: referencing a flat file DB

2001-06-28 Thread Jon Riddle
Hello all, I would like to take a moment to thank everyone who helped me out on my project. I am obviously new to Perl and am a total hack, but eventually, I will become proficient. For those that are wondering, my lap dance program is just a small contest for members of www.ten.com and

Re: referencing a flat file DB

2001-06-28 Thread Michael Fowler
On Thu, Jun 28, 2001 at 05:34:22PM +0100, mark crowe (JIC) wrote: > > $compare = { split (/:/, $stats)}; > > @records = \$compare; > > I think you'd be better off to use: > @records = split (/:/, $stats) While this is correct.. > At the moment you are splitting t

Re: referencing a flat file DB

2001-06-28 Thread Michael Fowler
On Thu, Jun 28, 2001 at 09:06:38AM -0700, Jon Riddle wrote: Be forewarned, what follows is a critique of code you didn't ask about. > #!/usr/local/bin/perl -w > > use CGI; > use CGI::Carp qw(carpout fatalsToBrowser); Always: use strict; when debugging code. > $Q = CGI; This assigns the

RE: referencing a flat file DB

2001-06-28 Thread mark crowe (JIC)
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 >

referencing a flat file DB

2001-06-28 Thread Jon Riddle
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