in reply to Is the file there?
Make sure that, before outputting any error messages to the browser, you print an HTML header. The die/warn message will be printed to the browser if this is going to be run as a CGI.... opendir(FOO, "/bar/baz"); my @files = readdir FOO; closedir FOO; foreach my $file (@files){ chomp $file; die $predefined_die_msg if $file =~ /^file_name$/i; } ...
#------------- perl -e 's=$;$/=$\;W=i;$\=$/;s;;XYW\\U$"\;\);sig,$_^=$[x5,print;'
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Is the file there?
by Albannach (Monsignor) on Oct 25, 2001 at 06:23 UTC | |
by Tyke (Pilgrim) on Oct 25, 2001 at 16:57 UTC | |
Re: Re: Is the file there?
by Ahbeyra (Monk) on Oct 25, 2001 at 06:13 UTC |