This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32914ee
)
Docs: Make use of $self and $class clear
author
Michael Witten
<mfwitten@gmail.com>
Tue, 7 Apr 2009 19:59:28 +0000
(14:59 -0500)
committer
Yves Orton
<demerphq@gmail.com>
Tue, 7 Apr 2009 21:41:32 +0000
(23:41 +0200)
Signed-off-by: Michael Witten <mfwitten@gmail.com>
pod/perlboot.pod
patch
|
blob
|
blame
|
history
diff --git
a/pod/perlboot.pod
b/pod/perlboot.pod
index
b3e9c53
..
2426062
100644
(file)
--- a/
pod/perlboot.pod
+++ b/
pod/perlboot.pod
@@
-568,11
+568,11
@@
build a new horse:
@ISA = qw(Animal);
sub sound { "neigh" }
sub name {
- my $self = shift;
+ my $self = shift;
# instance method, so use $self
$$self;
}
sub named {
- my $class = shift;
+ my $class = shift;
# class method, so use $class
my $name = shift;
bless \$name, $class;
}