Subject: | Exiting subroutine via next |
Date: | Tue, 25 Nov 2014 12:57:42 -0700 (MST) |
To: | bug-Org-Parser [...] rt.cpan.org |
From: | "Louis B. Moore" <lbmoore [...] hethcote.com> |
I have some code that gets fed an Org::Element::Headline and does:
$head{'has_id'} = $hl->get_property('ID',undef);
$head{'has_cat'} = $hl->get_property('CATEGORY','1');
When asking for the parent search for the has_cat value,
Org::Element:Headline dies with:
Exiting subroutine via next at
/usr/local/share/perl/5.20.1/Org/Element/Headline.pm line 224.
Which turns out to be because the parent is an Org::Document and triggers
the next as below
if ($p && $search_parent) {
!---> next unless $p->isa('Org::Element::Headline');
my $res = $p->get_property($name, 1);
return $res if defined $res;
}
Louis