$! never contains the filename that failed. A usual approach would be to show the user just a random error id and to log the error id together with the real error message in a log file.
In reply to Re: Filtering error string $!, for example remove paths
by Corion
in thread Filtering error string $!, for example remove paths
by isync
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |