Use of uninitialized valuePerl tried to use the value of a variable, and found that the value was undef, so it displayed a warning;
inSince this generic warning can be triggered at any point during perl execution, perl tells you what opcode it was executing at the time; this gives a clue as to the likely culprit:
method with known nameThe particular opcode is OP_METHOD_NAMED; the above is the textual description of that particular op. This op used when the method name is known at compile time, such as:
as opposed to for example$self->foo();
which uses OP_METHOD instead.my $method = 'foo'; $self->$method();
Note that you won't get this particular warning from a simple $undefined_var->foo(), as perl will give you a specific warning in that case; so it's not clear to me how you're triggering that particular warning.
Dave.
In reply to Re: Perl Error Messages Explained?
by dave_the_m
in thread Perl Error Messages Explained?
by QM
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |