in reply to What is the best way to delete a file in windows using Perl?

Well, you would have to define "work OK" for anybody to answer that question. In this case, I think the answer is "No," because $flat_to_check is not defined, remame is not a function, and if it's a typo for rename, I don't believe you can set a file name to a zero-length string on any O/S. Also, you probably won't be able rename or delete it while it's open.

So:

grammar correction

emc

"Being forced to write comments actually improves code, because it is easier to fix a crock than to explain it. "
—G. Steele
  • Comment on Re: What is the best way to delete a file in windows using Perl?

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