summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-07-02 03:09:04 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-07-02 03:09:04 +0000
commitad78e5492e8cc81959085c550786672cd0db9f47 (patch)
tree4b3cb574f363008ae752d8fa8e09b37fd9bd34aa /lib
parent28e1f846b855b70837afc0a54acecb5b653e99fc (diff)
downloadperl-ad78e5492e8cc81959085c550786672cd0db9f47.tar.gz
avoid warnings
p4raw-id: //depot/perl@3564
Diffstat (limited to 'lib')
-rw-r--r--lib/fields.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fields.pm b/lib/fields.pm
index 54602a6b88..f54f639b07 100644
--- a/lib/fields.pm
+++ b/lib/fields.pm
@@ -111,7 +111,7 @@ sub inherit # called by base.pm
{
my($derived, $base) = @_;
- if (defined %{"$derived\::FIELDS"}) {
+ if (keys %{"$derived\::FIELDS"}) {
require Carp;
Carp::croak("Inherited %FIELDS can't override existing %FIELDS");
} else {
@@ -132,7 +132,7 @@ sub _dump # sometimes useful for debugging
{
for my $pkg (sort keys %attr) {
print "\n$pkg";
- if (defined @{"$pkg\::ISA"}) {
+ if (@{"$pkg\::ISA"}) {
print " (", join(", ", @{"$pkg\::ISA"}), ")";
}
print "\n";