diff options
author | Yves Orton <demerphq@gmail.com> | 2022-12-18 18:48:51 +0100 |
---|---|---|
committer | Yves Orton <demerphq@gmail.com> | 2023-01-03 11:14:16 +0100 |
commit | 0d370d41c6e8fe1e36eb93a5561e6716ee3a7e3e (patch) | |
tree | 5ec09c9c1d512f71faa24d4bcf346561198886a3 /pod | |
parent | 46bcbc63da3e9dc034db2ae5bac841676313d183 (diff) | |
download | perl-0d370d41c6e8fe1e36eb93a5561e6716ee3a7e3e.tar.gz |
pp_ctl.c - Check if refs have overloads in @INC
If an object in @INC doesnt have a hook method, and it isnt a CODE ref
then check if it has string overloading, if it does not then die with a
helpful message, otherwise call the overload
This uses the nice new amagic_find() function.
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perldiag.pod | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod index 6e538cf702..0d57b58f36 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -1183,6 +1183,14 @@ to load "%s"?) could not be found in UNIVERSAL. This often means that a method requires a package that has not been loaded. +=item Can't locate object method "INC", nor "INCDIR" nor string overload via package %s %s in @INC + +(F) You pushed an object, either directly or via an array reference hook, +into C<@INC>, but the object doesn't support any known hook methods, nor +a string overload and is also not a blessed CODE reference. In short the +C<require> function does not know what to do with the object. +See also L<perlfunc/require>. + =item Can't locate package %s for @%s::ISA (W syntax) The @ISA array contained the name of another package that @@ -4461,14 +4469,6 @@ and you mentioned a variable that starts with 0 that has more than one digit. You probably want to remove the leading 0, or if the intent was to express a variable name in octal you should convert to decimal. -=item Object with arguments in @INC does not support a hook method - -(F) You pushed an array reference hook into C<@INC> which has an object -as the first argument, but the object doesn't support any known hooks. -Since you used the array form of creating a hook, you should have supplied -an object that supports either the C<INC> or C<INCDIR> methods. You -could also use a coderef instead of an object. - =item Octal number > 037777777777 non-portable (W portable) The octal number you specified is larger than 2**32-1 |