http://www.perlmonks.org?node_id=372235


in reply to Re^4: issues displaying cgi script source?
in thread issues displaying cgi script source?

Try this from a directory that contains a subdirectory named review.

my $name = "../broken.pl"; open(FILE, ">review/$name") || die "Can't write to review/$name!\n"; print FILE "Hi"; close FILE;

Notice that it creates a broken.pl in the current directory instead of the subdirectory.

antirice    
The first rule of Perl club is - use Perl
The
ith rule of Perl club is - follow rule i - 1 for i > 1

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.