Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Freshmeat(3)	      User Contributed Perl Documentation	  Freshmeat(3)

NAME
       Mail::Freshmeat - parses	daily newsletters from http://freshmeat.net/

SYNOPSIS
	use Mail::Freshmeat;

	my $newsletter = Mail::Freshmeat->new(\*STDIN);

	print "Date: ",	$newsletter->date(), "\n";
	print "Total entries: ", $newsletter->entries_total(), "\n";

	for my $entry ($newsletter->entries())
	{
	  print	"Position: ", $entry->position(), "\n";
	  print	"Name and version: ", $entry->name_and_version(), "\n";
	}

DESCRIPTION
       IMPORTANT: DUE TO FRESHMEAT.NET CHANGING	THE STRUCTURE OF THEIR
       NEWSLETTERS, THE	INTERFACE FOR THIS PACKAGE HAS CHANGED SINCE
       Mail::Freshmeat 0.94.

       Mail::Freshmeat is a subclass of	Mail::Internet.

       This package provides parsing of	the daily e-mail newsletters which are
       sent out	from http://freshmeat.net/ to any individual who requests
       them.

NEWSLETTER METHODS
       o   new

	   This	is the constructor. Pass it something that Mail::Internet will
	   like	such as	a file descriptor (reference to	a GLOB)	or a reference
	   to an array and you will get	back a newsletter object.

       o   entries

	   This	object method will return an array or an array reference
	   (depending on context) of entry objects for all of the entries in
	   the newsletter.

       o   articles

	   This	object method will return an array or an array reference
	   (depending on context) of article objects for all of	the articles
	   in the newsletter.

ENTRY METHODS
       o   entry_keys

	   This	object method will return an array or an array reference
	   (depending on context) of all the attribute names of	an entry
	   (e.g.: position, name, license, url)	in the order that they
	   appeared.

       o   short_entry

	   This	object method will return the short description	of the entry
	   as it appeared in the newsletter headlines section (eg: Linux
	   2.4.9-ac15 (2.4-ac))

ARTICLE	METHODS
       o   article_keys

	   This	object method will return an array or an array reference
	   (depending on context) of all the attribute names of	an article
	   (e.g.: title, description, url) in the order	that they appeared.

NEWSLETTER ACCESSORS
       o   ad

       o   ad_header

       o   articles_header

       o   articles_payload

       o   articles_total

       o   date

       o   entries_header

       o   entries_payload

       o   entries_total

       o   footer

       o   full

       o   headlines

       o   headlines_header

       o   links

       o   links_header

ENTRY ACCESSORS
       o   about

       o   changes

       o   full

       o   license

       o   name

       o   name_and_version

       o   position

       o   posted_by_name

       o   posted_by_url

       o   posted_on

       o   trove

       o   url

       o   version

ARTICLE	ACCESSORS
       o   description

       o   full

       o   posted_by_name

       o   posted_by_url

       o   posted_on

       o   section

       o   title

       o   url

AUTHORS
       Adam J. Foxson afoxson@pobox.com, 2002-
       Adam Spiers adam@spiers.net, 1999-2000

LICENSE
       This program is free software; you can redistribute it and/or modify it
       under the terms of the GNU General Public License as published by the
       Free Software Foundation; either	version	2 of the License, or (at your
       option) any later version.

       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.  See the GNU
       General Public License for more details.

VERSION
       This is release 1.20.

SEE ALSO
       perl(1).

POD ERRORS
       Hey! The	above document had some	coding errors, which are explained
       below:

       Around line 461:
	   '=item' outside of any '=over'

       Around line 465:
	   You forgot a	'=back'	before '=head1'

perl v5.32.1			  2002-07-22			  Freshmeat(3)

NAME | SYNOPSIS | DESCRIPTION | NEWSLETTER METHODS | ENTRY METHODS | ARTICLE METHODS | NEWSLETTER ACCESSORS | ENTRY ACCESSORS | ARTICLE ACCESSORS | AUTHORS | LICENSE | VERSION | SEE ALSO | POD ERRORS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Freshmeat&sektion=3&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help