In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/5312fe6cfc33d76b6f506e1dd9bffcdfe953f1e6?hp=89040989e74937c674a9a233107902fcf1fd4e6d>
- Log ----------------------------------------------------------------- commit 5312fe6cfc33d76b6f506e1dd9bffcdfe953f1e6 Author: Aristotle Pagaltzis <[email protected]> Date: Mon Nov 7 09:03:11 2016 +0100 perlvar: clarify @ISA recommendations M pod/perlvar.pod commit bf38d9447ace95e6ab54d5c891a3ec54f82b79a3 Author: Hauke D <[email protected]> Date: Tue Nov 1 12:53:38 2016 +0100 perlvar: document @ISA It was documented in a few other places but not in perlvar. M pod/perlvar.pod ----------------------------------------------------------------------- Summary of changes: pod/perlvar.pod | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pod/perlvar.pod b/pod/perlvar.pod index 467e56f..9c5fda7 100644 --- a/pod/perlvar.pod +++ b/pod/perlvar.pod @@ -540,6 +540,19 @@ inplace editing. Mnemonic: value of B<-i> switch. +=item @ISA +X<@ISA> + +Each package contains a special array called C<@ISA> which contains a list +of that class's parent classes, if any. This array is simply a list of +scalars, each of which is a string that corresponds to a package name. The +array is examined when Perl does method resolution, which is covered in +L<perlobj>. + +To load packages while adding them to C<@ISA>, see the L<parent> pragma. The +discouraged L<base> pragma does this as well, but should not be used except +when compatibility with the discouraged L<fields> pragma is required. + =item $^M X<$^M> -- Perl5 Master Repository
