So write the code like: unlink $file or die $!;
This will throw up an error message and die. On Nov 19, 2009, David Christensen <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
