summaryrefslogtreecommitdiff
path: root/pod/perltooc.pod
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-03-11 19:44:54 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-03-11 19:44:54 +0000
commit5a2f86394dfa86bd3184e3ae8a7546e06047c35c (patch)
tree4bb177d2a2a8a240aa191fe3cd84abf357f9ffa8 /pod/perltooc.pod
parent77a4069887dcd1a19497f21acebaf596a50df108 (diff)
downloadperl-5a2f86394dfa86bd3184e3ae8a7546e06047c35c.tar.gz
Questionable construct.
p4raw-id: //depot/perl@18926
Diffstat (limited to 'pod/perltooc.pod')
-rw-r--r--pod/perltooc.pod2
1 files changed, 1 insertions, 1 deletions
diff --git a/pod/perltooc.pod b/pod/perltooc.pod
index 667f9fc202..78b6135717 100644
--- 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};
}