What does “Can't call method ”get“ on an undefined value at ” mean?

后端 未结 1 1273
情书的邮戳
情书的邮戳 2021-01-14 14:34

I am executing a Perl file. I am getting this error. Can anybody please suggest the solution. I am getting this kind of error on many pages like:

\"Ca

相关标签:
1条回答
  • 2021-01-14 14:54

    It means the variable on which the method get is called is undefined instead of being an object that accepts the method.

    Look at the line number given by the error message (in the file given by the message). If the error is in a module, and you don't see where the variable should have been initialized, then put use diagnostics; at the top of the script after your use strict; and use warnings; so you get a stack of the method/function calls at the point of error.

    0 讨论(0)
提交回复
热议问题