carp

carp 

msg

Warns of an error; reports the error as having occurred in the calling routine, not in the routine that contains the carp .

Use Carp;
carp "
text of error message
";