When it dies it yeilds 'your data is screwed at B.pm line x'A.pm ----------- package A use B; B->foo(); B.pm ----------- package B sub foo{ die 'your data is screwed'; }
what I would like is the die to report 'your data is screwed at A.pm line x'. x being the line number where B->foo was called.
What is the best way to accomplish this?
In reply to perl deferring die to calling method by arcnon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |