Here's a small portion of my script:

#!/usr/bin/perl

use Tie::File;
use File::Copy 'copy';
use File::Spec;

my $copy="000000-copy.htm";
my $recapfile="000000recap.txt";
my $htmfile="000000.htm";

tie my @hfile, 'Tie::File', $copy or die "cannot tie copy and hfile $!";
tie my @bfile, 'Tie::File', $recapfile or die "cannot tie recapfile and
bfile $!";


When I execute it. I get

cannot tie copy and hfile Permission denied at 4c1.pl line 11.

This is Windows. Everyone has RW permissions on the "copy" file.

What is wrong here?

Thanks.

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to