foreach my $file (@files) { $count++; }
This is usually simpler as:
my $count = @files;And this:
unlink <$file>;... reads from the filehandle $file (which isn't a filehandle, and is the source of your problems. The <> operator is the same as readline; it doesn't signify a file at all. I think that's what's confused you here.
In reply to Re: File Stricture Help
by chromatic
in thread File Stricture Help
by MrFloydFreak42
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |