in reply to Re: CGI, cookies, sendmail, HTML attachments, searching txt files,
in thread CGI, cookies, sendmail, HTML attachments, searching txt files,

return "already added" if $email eq chomp($_);

This has to be replaced by

chomp; return "already added" if $email eq $_;
as chomp returns the number of characters chomped. Common mistake ;-)

-- Hofmator