warn
warn
warn LIST
Prints the value of LIST to STDERR. If the last element of LIST does not end in a newline, it appends the same file/line number text as die
does-
If the output is empty and $@
already contains a value (typically from a previous eval) that value is used after appending "\t...caught"
to $@
. This is useful for staying almost, but not entirely similar to die
-
If $@
is empty then the string "Warning: Something's wrong"
is used.
No message is printed if there is a 登录查看完整内容