in reply to Need help with unlink error

unlink probably wants full paths to the files. Try this, and see what errors come up
foreach my $file ( @files ) { unlink $file or warn "Could not unlink $file: $!"; }

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh