in reply to Cannot save to file with a CGI scipt
I think valdez is likely to be right - unless it's something even simpler, like the filepath you specified is wrong or incomplete. My only suggestion is that if you are looking in the error log for your error messages, then you could save yourself some trouble by putting
§ George Sherston
near the top of your code during development - it'll chuck your fatal errors (and your warnings if you put -w at the end of your shebang line) onto the browser where you can see 'em in real time.use CGI::Carp qw(fatalsToBrowser warningsToBrowser); print $cgi->header; warningsToBrowser(1);
§ George Sherston
|
---|
In Section
Seekers of Perl Wisdom