- or download this
package Undef;
sub AUTOLOAD {
undef;
}
- or download this
$text = ((
$elt->first_child( 'subelt') || 'Undef'
)->first_child( 'subsubelt')||'Undef'
)->text();
- or download this
# Takes an array of anon arrays of method calls, and
# chains them. Returns the first non-object of the end of
...
my ($meth, @args) = @$last_call;
return $obj->$meth(@args);
}
- or download this
$text = $elt->chain_meth(
["first_child", "subelt"], ["first_child", "subsubelt"], ["text"]
);