Subject: | better documentation of XML::Atom::Entry->content |
Date: | Wed, 31 Aug 2011 12:07:17 +0200 |
To: | bug-XML-Atom [...] rt.cpan.org |
From: | Ansgar Burchardt <ANSGAR [...] cpan.org> |
Hi,
this request to improve the documentation was filed in Debian's bug
tracking system[1]:
--8<---------------cut here---------------start------------->8---
The documentation should make clear (particularly since there's no man page for
Content.pm) that unlike the other XML::Atom::Entry methods, the 'content'
method returns a content object, not a simple string. The documentation
contains an example:
$entry->content('Post Body');
I suggest that it also contain something like:
$content_body = $entry->content->body
--8<---------------cut here---------------end--------------->8---
Regards,
Ansgar
[1] <http://bugs.debian.org/554121>