cluck

cluck 

msg

Warns of errors and prints a stack backtrace; reports the error as having occurred in the calling routine. Not exported by default.

use Carp qw(cluck);
cluck "
text of error message
";