http://qs1969.pair.com?node_id=515672


in reply to perl deferring die to calling method

Instead of using die, use croak from the Carp package. Itís designed for exactly this situation.
## This is B.pm ## package B; use Carp 'croak'; sub foo { croak "Your data is screwed"; }