in reply to Re^4: Need help deleting *.bak files
in thread Need help deleting *.bak files

You also removed the code that makes it useful outside a big project: the reporting of whether an error occurred or not via the exit code.

Saying it twice doesn't make it true. The output on failure would be "filename: failure ($!)"

Replies are listed 'Best First'.
Re^6: Need help deleting *.bak files
by ikegami (Patriarch) on Jan 19, 2010 at 07:22 UTC

    What did I say twice?

    How does the quoted passage relate to your comment?

    Why did you make that comment? It's redundant and doesn't contradict anything I said.

    I believe you misread something. Or maybe you don't know what an exit code is?

      "It would also be useful to say what failed" was a strange response to the code in a comment that provided that information in the form of filename and error code. There was nothing to refute but where it should be displayed (stderr) or how (as infrequent warning rather than status message).

        "It would also be useful to say what failed" was a strange response to the code in a comment that provided that information in the form of filename and error code.

        File names don't fail. You didn't specify which of the operations on the file name failed.