warn msg
Produces a message on STDERR just like
die
, but doesn't try to exit or throw an exception. For example:
If the message supplied is null, the message "Something's wrong"is used. As withwarn "Debug enabled" if $debug;
die
, a message not ending with a newline will have file and line number information automatically appended. The
warn
operator is unrelated to the
-w
switch.
Copyright © 2001 O'Reilly & Associates. All rights reserved.