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
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
more uni doc tweakage
[perl5.git]
/
pod
/
perltooc.pod
diff --git
a/pod/perltooc.pod
b/pod/perltooc.pod
index
667f9fc
..
78b6135
100644
(file)
--- a/
pod/perltooc.pod
+++ b/
pod/perltooc.pod
@@
-842,7
+842,7
@@
ones.
# invoked as class method or object method
sub has_attribute {
my($self, $attr) = @_;
- my $class = ref
$self if
$self;
+ my $class = ref
($self) ||
$self;
return exists $class->{$attr};
}