GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Freshmeat(3) User Contributed Perl Documentation Freshmeat(3)

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

 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";
 }

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.

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

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

  • 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_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.

  • 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_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.

  • ad
  • ad_header
  • articles_header
  • articles_payload
  • articles_total
  • date
  • entries_header
  • entries_payload
  • entries_total
  • footer
  • full
  • headlines
  • headlines_header
  • links
  • links_header

  • about
  • changes
  • full
  • license
  • name
  • name_and_version
  • position
  • posted_by_name
  • posted_by_url
  • posted_on
  • trove
  • url
  • version

  • description
  • full
  • posted_by_name
  • posted_by_url
  • posted_on
  • section
  • title
  • url

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

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.

This is release 1.20.

perl(1).

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'
2002-07-22 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.