diff options
author | 2002-10-27 22:25:13 +0000 | |
---|---|---|
committer | 2002-10-27 22:25:13 +0000 | |
commit | 79cd0b9ae197e67390710f96587afb9169e5346d (patch) | |
tree | 8952f7a8f773436ffd1169eb9ac0d56c7ce1118f /gnu/usr.bin/perl/lib/Pod/InputObjects.pm | |
parent | stock perl 5.8.0 from CPAN (diff) | |
download | wireguard-openbsd-79cd0b9ae197e67390710f96587afb9169e5346d.tar.xz wireguard-openbsd-79cd0b9ae197e67390710f96587afb9169e5346d.zip |
Resolve conflicts, remove old files, merge local changes
Diffstat (limited to 'gnu/usr.bin/perl/lib/Pod/InputObjects.pm')
-rw-r--r-- | gnu/usr.bin/perl/lib/Pod/InputObjects.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gnu/usr.bin/perl/lib/Pod/InputObjects.pm b/gnu/usr.bin/perl/lib/Pod/InputObjects.pm index 352373b9da4..eae8678e463 100644 --- a/gnu/usr.bin/perl/lib/Pod/InputObjects.pm +++ b/gnu/usr.bin/perl/lib/Pod/InputObjects.pm @@ -268,7 +268,7 @@ sub new { ## If they are in the argument list, they will override the defaults. my $self = { -name => undef, - -text => (@_ == 1) ? $_[0] : undef, + -text => (@_ == 1) ? shift : undef, -file => '<unknown-file>', -line => 0, -prefix => '=', @@ -447,7 +447,7 @@ C<-line> keywords indicate the filename and line number corresponding to the beginning of the interior sequence. If the C<$ptree> argument is given, it must be the last argument, and it must be either string, or else an array-ref suitable for passing to B<Pod::ParseTree::new> (or -it may be a reference to an Pod::ParseTree object). +it may be a reference to a Pod::ParseTree object). =cut @@ -892,7 +892,7 @@ sub _unset_child2parent_links { my $self = shift; local *ptree = $self; for (@ptree) { - next unless (length and ref and ref ne 'SCALAR'); + next unless (defined and length and ref and ref ne 'SCALAR'); $_->_unset_child2parent_links() if UNIVERSAL::isa($_, 'Pod::InteriorSequence'); } |