in reply to Re: using die
in thread using die in CGI context / 500 errors
THe program prints -#!/usr/local/bin/perl use strict; use CGI; my $query = new CGI; my $dir = $query->param('dir'); my $file = $query->param('file'); $file =~m/^.*(\\|\/)(.*)/; my $name = $2; open(LOCAL,">$dir/$name");# or die "Die: $!"; while(<$file>) { print LOCAL $_; } print $query->header(); print $query->start_html("File Upload"); # DEBUG TO SCREEN print "File and Dir: "$file; print "File: ",$name; print $query->end_html;
The directory and file are located on my local machine, so i've no idea why I might be getting this error - im working on XP. ANy ideas?File and Dir: C:\Documents and Settings\Barry Griffin\Desktop\verbs.tx +t File: verbs.txt
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: using die
by Cyrnus (Monk) on May 10, 2002 at 10:21 UTC | |
by Baz (Friar) on May 10, 2002 at 13:40 UTC | |
by Cyrnus (Monk) on May 11, 2002 at 00:44 UTC | |
by shockme (Chaplain) on May 10, 2002 at 20:52 UTC |