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 ($!)"
In reply to Re^5: Need help deleting *.bak files
by Anonymous Monk
in thread Need help deleting *.bak files
by MikeDexter
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |