Hi Kim, I hope you don't take any of this personally. It's certainly not meant that way.
--- Kim Forbes <[EMAIL PROTECTED]> wrote: > #!/usr/bin/perl-w There should be a space after the -w. > print "Content-type:text/html\n\n"; There should be a space after the colon. This is one of the reasons why CGI.pm is preferable: use CGI qw(:standard); print header; > read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'}); > @pairs = split(/&/, $buffer); > foreach $pair (@pairs) { > ($name, $value) = split(/=/, $pair); > $value =~ tr/+/ /; > $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg; > $FORM{$name} = $value; > } Numerous bugs here. Rather than go through all of them, I'll just post a link to my course where I detail them: http://users.easystreet.com/ovid/cgi_course/lesson_two/lesson_two.html > # where is the mail program? > $mailprog = 'usr/lib/sendmail'; Without the leading slash, isn't this going to be relative to the current working directory? I'd also recommend that you use strict. Here are a couple of useful links: http://www.perlmonks.org/index.pl?node_id=87628 http://www.perlmonks.org/index.pl?node_id=108286 Cheers, Ovid ===== "Ovid" on http://www.perlmonks.org/ Web Programming with Perl: http://users.easystreet.com/ovid/cgi_course/ Silence Is Evil: http://users.easystreet.com/ovid/philosophy/decency.txt __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]