The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

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

VERSION

Version 0.07

METHODS

get_title()

Returns the news feed title of national/international BBC news. This should *ONLY* be called after method get_national() or get_international(), otherwise it will return Undefined.

    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 of national/international BBC news. This should *ONLY* be called after method get_national() or get_international(), otherwise it will return Undefined.

    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 of national/international BBC news. This should *ONLY* be called after method get_national() or get_international(), otherwise it will return Undefined.

    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_xml()

Returns latest news in the XML format.This should *ONLY* 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();

    print $news->as_xml();

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 will 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.