diff options
author | Max Maischein <corion@corion.net> | 2019-10-25 20:20:56 +0200 |
---|---|---|
committer | Max Maischein <github@corion.net> | 2019-11-03 20:39:47 +0100 |
commit | 448aac914b0b0182b7d462d88f99a40dc08b6d9e (patch) | |
tree | b3dc3d73db3027666a2ccdc91d71434444e917f7 /pod | |
parent | cf4ed238de1f463909da889917a8b1d17ae2f012 (diff) | |
download | perl-448aac914b0b0182b7d462d88f99a40dc08b6d9e.tar.gz |
And silence some silly examples.
From RT88754
Adapted to the current Perl by Max Maischein
Created from https://github.com/Perl/perl5/issues/11259
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perldiag.pod | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod index 820c5d9244..bfcc61efff 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -7729,6 +7729,18 @@ can be determined from the template alone. This is not possible if it contains any of the codes @, /, U, u, w or a *-length. Redesign the template. +=item While trying to resolve method call %s->%s() can not locate package "%s" yet it is mentioned in @%s::ISA (perhaps you forgot to load "%s"?) + +(W syntax) It is possible that the @ISA contains a misspelled or never loaded +package name, which can result in perl choosing an unexpected parent +classes method to resolve the method call. If this is deliberate you +can do something like + + @Missing::Package::ISA = (); + +to silence the warnings, otherwise you should correct the package name, or +ensure that the package is loaded prior to the method call. + =item %s() with negative argument (S misc) Certain operations make no sense with negative arguments. |