Create a "filehandle" using IO::Callback. This allows you to run a callback coderef on file accesses and when the file is closed. The callback can simulate system errors.
In particular, see examples 6 and 7 in the pod.
In reply to Re: how to make close() fail
by tobyink
in thread how to make close() fail
by kgoess
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |