Do you know where your variables are? | |
PerlMonks |
Re: appending a fileby arturo (Vicar) |
on Sep 27, 2001 at 23:17 UTC ( [id://115214]=note: print w/replies, xml ) | Need Help?? |
Change: open(DATABASE, ">>/http01/cgi-bin/form/db/db.txt"); to something like :
That will give you an error message (as CubicSpline suggested, I'd bet it's that either your directory structure or permissions aren't set correctly). If this is a CGI script, you might want to put use CGI::Carp qw(fatalsToBrowser); at the top of your script (remove that line after the script goes into production, 'cos it could give valuable information to crackers). Adding that line will make sure you get to see the error message without poking around in the webserver's error logs. Of course, that surmise is only correct for some values of "doesn't work." =) HTH
In Section
Seekers of Perl Wisdom
|
|