How do you get Perl to stop and give a stack trace when you reference an undef value, rather than merely warning? It seems that use strict; isn’t sufficient for this purpose.
How do you get Perl to stop and give a stack trace when you
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The first line makes the warning fatal. The next two cause a stack trace when your program dies.
See also
man 3pm warningsfor more details.