Hi Monks!
My question is about how I could call a subroutine if the "die" gets called. I have a subroutine (&email_error) that sends me an email if the code breaks. I would like to have right after the die when the code fails, just want to know a good way to call the sub &email_error.
Thanks for the help.
sub feed {
...code...
while($l < $2) {
...code...
}
die "Could not retreive data";
}