QM has asked for the wisdom of the Perl Monks concerning the following question:
Use of uninitialized value in method with known name at blah.pl line 1 +23.
Yes, I understand what the issue is, I was just wondering what the extra verbage with in method with known name contributes? Are there methods with unknown names? Or is this perhaps a defensive/pro-active message, where the parser knew something about the context, and threw that in for free? I'm not against putting useful stuff in error messages, but this seems, to me at least, to distract from the real issue.
Here's an example of an offending line:
$self->{$Foo}{$Bar} = $self->{$Baz}{undef}->method;
(where undef is suitable replaced by an undefined $calar)
-QM
--
Quantum Mechanics: The dreams stuff is made of
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl Error Messages Explained?
by rjt (Curate) on Jul 09, 2013 at 11:25 UTC | |
|
Re: Perl Error Messages Explained? (padop)
by Anonymous Monk on Jul 09, 2013 at 10:41 UTC | |
|
Re: Perl Error Messages Explained?
by dave_the_m (Monsignor) on Jul 09, 2013 at 14:49 UTC | |
by QM (Parson) on Jul 10, 2013 at 09:05 UTC |