MLUG: [MLUG - DISCUSSION] Perl Question
[MLUG - DISCUSSION] Perl Question
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
I figure I'll have this worked out before I get a reply, but just thought
I'd give the group something to play with.  I've got a Tilde Separated Value
text file that I'm using in log-style.
   date   ,    name   ,    company    , reg #
"03242002","something","somethingelse","1005"

When I'm adding a new one, I can compare new-name with all the existing
items in the second column, and company with all the existing items in the
third column, and thus make sure I'm not duplicating my efforts, however, is
there an easier/quicker/better way to do this, keeping in mind that its
database-destined values.

Right now I've got:
#$newname is from CGI
#$name is from the second value in the current $_ string
# broken into a hash
#$newcompany is from CGI
#$company is from the third value in the current $_ 
# string broken into a hash
#$isdup is a value to record if the values are already
# in the file defaulted to 0.

if ($newname = $name) {
if ($newcompany = $company) {
$isdup = 1;
} }
--
To unsubscribe, go to http://mlug.missouri.edu/members/edit.php

Archives are available at http://mlug.missouri.edu/list-archives/