develooper Front page | perl.perl5.porters | Postings from November 2016

Re: [perl #129967] [PATCH] Add @ISA to perlvar

Thread Previous | Thread Next
Hauke D
November 1, 2016 12:07
Re: [perl #129967] [PATCH] Add @ISA to perlvar
Message ID:
From 5bb7e60b5df69020ce559627faeb84ee40aaeb3d Mon Sep 17 00:00:00 2001
From: Hauke D <>
Date: Tue, 1 Nov 2016 12:53:38 +0100
Subject: [PATCH] Document @ISA in perlvar

The special variable @ISA is documented in a few places, but not in
perlvar.pod, until now.
 pod/perlvar.pod | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/pod/perlvar.pod b/pod/perlvar.pod
index 35351b7..625d525 100644
--- a/pod/perlvar.pod
+++ b/pod/perlvar.pod
@@ -540,6 +540,19 @@ inplace editing.
 Mnemonic: value of B<-i> switch.
+=item @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
+It is possible to manually set C<@ISA>, or you can use L<parent> to load
+and declare parent classes. Alternatively there is the L<base> pragma, but
+that is discouraged unless you're also using the L<fields> pragma.
 =item $^M

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About