diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-03-08 11:30:32 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-03-08 11:30:32 +0000 |
commit | e23b9d0f648442d8e275530c0bf8b0027cee41d1 (patch) | |
tree | cda2f9ce96a56dd5e65f905d19e1faec92e6401e /lib/Pod/InputObjects.pm | |
parent | c645ec3fd74a29e359e29872c448f083581207ce (diff) | |
download | perl-e23b9d0f648442d8e275530c0bf8b0027cee41d1.tar.gz |
Pod::InputObjects tweak (from Brad Appleton)
p4raw-id: //depot/perl@5609
Diffstat (limited to 'lib/Pod/InputObjects.pm')
-rw-r--r-- | lib/Pod/InputObjects.pm | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/Pod/InputObjects.pm b/lib/Pod/InputObjects.pm index 9029f8ccf3..646c00862a 100644 --- a/lib/Pod/InputObjects.pm +++ b/lib/Pod/InputObjects.pm @@ -523,7 +523,9 @@ sub _set_child2parent_links { ## Make sure any sequences know who their parent is for (@children) { next if (!ref || ref eq 'SCALAR'); - if ($_->isa('Pod::InteriorSequence') or $_->can('nested')) { + if (UNIVERSAL::isa($_, 'Pod::InteriorSequence') or + UNIVERSAL::can($_, 'nested')) + { $_->nested($self); } } @@ -537,7 +539,8 @@ sub _unset_child2parent_links { my $ptree = $self->{'-ptree'}; for (@$ptree) { next unless (length and ref and ref ne 'SCALAR'); - $_->_unset_child2parent_links() if $_->isa('Pod::InteriorSequence'); + $_->_unset_child2parent_links() + if UNIVERSAL::isa($_, 'Pod::InteriorSequence'); } } @@ -890,7 +893,8 @@ sub _unset_child2parent_links { local *ptree = $self; for (@ptree) { next unless (length and ref and ref ne 'SCALAR'); - $_->_unset_child2parent_links() if $_->isa('Pod::InteriorSequence'); + $_->_unset_child2parent_links() + if UNIVERSAL::isa($_, 'Pod::InteriorSequence'); } } |