So write the code like: unlink $file or die $!;
This will throw up an error message and die. On Nov 19, 2009, David Christensen <dpchr...@holgerdanske.com> wrote: beginners: Is unlink() supposed to provide an error message on failure? The documentation does not say so: http://www.perl.com/doc/manual/html/pod/perlfunc/unlink.html Testing indicate that unlink() sets $! on failure: -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/