Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

news::formarticle(3pm) [debian man page]

FormArticle(3pm)					User Contributed Perl Documentation					  FormArticle(3pm)

NAME
News::FormArticle - derivative of News::Article SYNOPSIS
use News::FormArticle; See below for functions available. DESCRIPTION
Like News::Article, but designed to be constructed from a file containing form text with substitutions. Currently, the source text is substituted as follows: Variables are denoted by $NAME or @NAME (where NAME is any simple identifier). (The sequences $$ and @@ denote literal $ and @ characters.) Variables of the form $NAME are expected to supply scalar values which are interpolated; variables of the form @NAME are expected to supply lists (or references to arrays) which are interpolated with separating newlines. Values of variables are found by consulting the list of sources supplied. Each source may be either a reference to a hash, or a reference to code. Source hashes may contain as values either the desired value (scalar or reference to array), or a typeglob, or a code reference which will be called to return the result. (Since typeglobs are allowed values, it is possible to supply a reference to a module symbol table as a valid source.) Code references supplied as sources are invoked with the variable name (including the leading $ or @) as the only parameter. In the degenerate case, all variables accessible in the source scope may be made available for interpolation by supplying the following as a source: sub { eval shift } If multiple sources are supplied, then each is consulted in turn until a defined value is found. USAGE
use News::FormArticle; Exports nothing. Constructor new ( FILE [, SOURCE [...]] ) Construct an article from the specified file, performing variable substitution with values supplied by the "SOURCE" parameters (see Description). FILE is any form of data recognised by News::Article's read() method. AUTHOR
Andrew Gierth <andrew@erlenstar.demon.co.uk> COPYRIGHT
Copyright 1997 Andrew Gierth <andrew@erlenstar.demon.co.uk> This code may be used and/or distributed under the same terms as Perl itself. perl v5.10.1 2010-04-03 FormArticle(3pm)

Check Out this Related Man Page

News::Scan::Poster(3pm) 				User Contributed Perl Documentation				   News::Scan::Poster(3pm)

NAME
News::Scan::Poster - keep track of posters to a newsgroup SYNOPSIS
use News::Scan::Poster; my $poster = News::Scan::Poster->new($news_scan_article_obj); DESCRIPTION
This module provides a class whose objects can be used to keep track of cumulative statistics for posters to a Usenet newsgroup such as header volume or signature lines. CONSTRUCTOR
new ( ARTICLE ) "ARTICLE" should be a "News::Scan::Article" object or inherit from the "News::Scan::Article" class. "new" performs some initialization and returns a "News::Scan::Poster" object. METHODS
address ( [ ADDRESS ] ) Returns the address of this poster represented as a "Mail::Internet" object. If present, "ADDRESS" tells the object that the "Mail::Internet" object in "ADDRESS" is its address. idea. attrib ( [ ATTRIBUTION ] ) Returns some nice attribution for this poster. If present, "ATTRIBUTION" tells the object how it shall identify itself when asked. message_ids ( [ MESSAGE-ID ] ) Returns a list of Message-IDs attributed to this poster. If present, "MESSAGE-ID" is added to this list of this poster's articles. volume Returns the volume in bytes of the traffic generated by this poster. articles Returns the number of articles attributed to this poster. posted_to Returns a hash whose keys are newsgroup names and whose values are the number of times this poster has crossposted to the group of interest and the corresponding newsgroup. crossposts Returns the total number of crossposts this poster has sent through the group of interest. header_volume Returns the volume in bytes generated by this poster's headers. header_lines Returns the number of header lines generated by this poster. body_volume Returns the volume in bytes generated by this poster's message bodies. body_lines Returns the number of body lines generated by this poster. orig_volume Returns the volume in bytes of original content generated by this poster. orig_lines Returns the number of original lines generated by this poster. sig_volume Returns the volume in bytes generated by this poster's signatures. sig_lines Returns the number of signature lines generated by this poster. SEE ALSO
News::Scan, Mail::Address, News::Scan::Article AUTHOR
Greg Bacon <gbacon@cs.uah.edu> COPYRIGHT
Copyright (c) 1997 Greg Bacon. All Rights Reserved. This library is free software. You may distribute and/or modify it under the same terms as Perl itself. perl v5.10.1 2000-04-13 News::Scan::Poster(3pm)
Man Page