n
The Carp module allows to present error messages
from the caller's perspective
carp "No hostname given";
No hostname given at perl_script.pl line 5.
n
Recipe:
use Carp;
warn
carp
die
croak