Article View: pl.comp.lang.perl
Article #811PERL CGI Parsing
From: Ruben Safir
Date: Wed, 10 Dec 1997 18:56
Date: Wed, 10 Dec 1997 18:56
24 lines
1577 bytes
1577 bytes
Hello Perhaps someone can help me with a CGI written in perl that I am working on. The script is taking data from a form which is user edited. It is then parsed or decoded, then looked up on a database file called ussaf.txt. When a matching key is found, it is the entire database is copied record by record into a new file, with the changed information. Then the newfile is renamed the old file. I seem to be having trouble with the two opened files. I am not being permited to open one file for reading and another for writing. When I get to the print DATAOUT command, I'm getting an error message in the Appache log as follows Undefined subroutine &main::DATAOUT called at /var/lib/httpd/cgi-bin/add_lable.cgi line 27 <DATAIN> chunk1. Ruben 75762.2332@compuserve.com
Technical Details
Message-ID:
<OnL$e1ZB9GA.204@nih2naab.prod2.compuserve.com>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!news.icm.edu.pl!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-peer.sprintlink.net!news.sprintlink.net!Sprint!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!newsfeed.ecrc.net!arl-news-svc-8.compuserve.com!news-nih2naab.compuserve.comShow Full Headers
Complete Article Headers
From: Ruben Safir <75762.2332@CompuServe.COM> Subject: PERL CGI Parsing Organization: CompuServe, Inc. (1-800-689-0736) Message-ID: <OnL$e1ZB9GA.204@nih2naab.prod2.compuserve.com> Newsgroups: comp.lang.perl.misc,comp.os.linux.networking,pl.comp.lang.perl,uk.comp.os.linux,alt.os.linux.slackware Date: Wed, 10 Dec 1997 13:56:48 -0500 Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!news.icm.edu.pl!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-peer.sprintlink.net!news.sprintlink.net!Sprint!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!newsfeed.ecrc.net!arl-news-svc-8.compuserve.com!news-nih2naab.compuserve.com Lines: 24 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit