NAME

RSS::NewsFeed::BBC - Interface to BBC News Feed.

VERSION

Version 0.03

METHODS

get_title()

Returns the news feed title. This should be called after method get_national() or get_international().

use strict; use warnigns;
use RSS::NewsFeed::BBC;

my $news     = RSS::NewsFeed::BBC->new();
my $national = $news->get_national();
my $title    = $news->get_title();

get_url()

Returns the news feed URL. This should be called after method get_national() or get_international().

use strict; use warnigns;
use RSS::NewsFeed::BBC;

my $news     = RSS::NewsFeed::BBC->new();
my $national = $news->get_national();
my $url      = $news->get_url();

get_description()

Returns the news feed description. This should be called after method get_national() or get_international().

use strict; use warnigns;
use RSS::NewsFeed::BBC;

my $news        = RSS::NewsFeed::BBC->new();
my $national    = $news->get_national();
my $description = $news->get_description();

get_national()

Returns the BBC national news.

use strict; use warnigns;
use RSS::NewsFeed::BBC;

my $news     = RSS::NewsFeed::BBC->new();
my $national = $news->get_national();

get_international()

Returns the BBC international news.

use strict; use warnigns;
use RSS::NewsFeed::BBC;

my $news          = RSS::NewsFeed::BBC->new();
my $international = $news->get_international();

as_string()

Returns latest news in a human readable format.

use strict; use warnigns;
use RSS::NewsFeed::BBC;

my $news     = RSS::NewsFeed::BBC->new();
my $national = $news->get_national();

print $news->as_string();

# or even simply
print $news;

AUTHOR

Mohammad S Anwar, <mohammad.anwar at yahoo.com>

BUGS

Please report any bugs or feature requests to bug-rss-newsfeed-bbc at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=RSS-NewsFeed-BBC. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc RSS::NewsFeed::BBC

You can also look for information at:

ACKNOWLEDGEMENTS

RSS::NewsFeed::BBC provides information from BBC official website. This information should be used as it is without any modifications. BBC remains the sole owner of the data. The terms and condition for RSS Feed can be found here http://www.bbc.co.uk/terms/additional_rss.shtml.

LICENSE AND COPYRIGHT

Copyright 2011 Mohammad S Anwar.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

DISCLAIMER

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.