Update: "If I comment out the binmode statement and run the program, the file is deleted properly." missed on the first go round. First, I would check to see if you have permissions to delete the file.
If that is fine, then I would test to see if the behavior changes if you isolate the block that uses $fh (my $fh ... $fh->close) with a block or a sub. How about if you do a $fh = undef; after the close?
--MidLifeXis
In reply to Re: Closing a filehandle in ":unix" layer doesn't work on Win32
by MidLifeXis
in thread Closing a filehandle in ":unix" layer doesn't work on Win32
by rovf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |