summaryrefslogtreecommitdiff
path: root/pod/perlboot.pod
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-04-28 08:19:36 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-04-28 08:19:36 +0000
commit016e9c5695872e5cc33263f9d3b6ddfd18396b11 (patch)
tree5861b8b9d532d2b8e3de54fc6dad891ec10b1b86 /pod/perlboot.pod
parent3d6c2ba7f810e9262a5ab163b7db957e54c6f909 (diff)
downloadperl-016e9c5695872e5cc33263f9d3b6ddfd18396b11.tar.gz
clarification about @ISA declaration in perlboot.pod
Patch provided by John Heidemann <johnh@isi.edu> in perlbug #45733. p4raw-id: //depot/perl@33761
Diffstat (limited to 'pod/perlboot.pod')
-rw-r--r--pod/perlboot.pod5
1 files changed, 5 insertions, 0 deletions
diff --git a/pod/perlboot.pod b/pod/perlboot.pod
index 6e3f5ac8ab..55317c352e 100644
--- a/pod/perlboot.pod
+++ b/pod/perlboot.pod
@@ -253,6 +253,11 @@ The easiest is to just spell the package name out:
@Cow::ISA = qw(Animal);
+Or declare it as package global variable:
+
+ package Cow;
+ our @ISA = qw(Animal);
+
Or allow it as an implicitly named package variable:
package Cow;