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::Thread(3pm) 				User Contributed Perl Documentation				   News::Scan::Thread(3pm)

NAME
News::Scan::Thread - keep track of threads in a Usenet newsgroup SYNOPSIS
use News::Scan::Thread; my $thr = News::Scan::Thread->new($news_scan_article_obj); DESCRIPTION
This module provides a class whose objects can be used to keep track of threads of discussion in a Usenet newsgroup. CONSTRUCTOR
new ( ARTICLE ) "ARTICLE" should be a "News::Scan::Article" object or an object of some class derived from "News::Scan::Article". "new" performs some initialization and returns a "News::Scan::Thread". METHODS
subject Returns this thread's subject. volume Returns the volume in bytes generated in this thread. articles Returns the number of posts to this thread. header_volume Returns the volume in bytes of the headers in this thread's articles. header_lines Returns the number of header lines in this thread's articles. body_volume Returns the volume in bytes of the message bodies of this thread's articles. body_lines Returns the number of lines in this thread's message bodies. orig_volume Returns the volume in bytes of the original content of this thread's articles. orig_lines Returns the number of original lines in this thread's articles. sig_volume Returns the volume in bytes of the signatures of this thread's articles. sig_lines Returns the number of signature lines in this thread's articles. SEE ALSO
News::Scan, 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::Thread(3pm)
Man Page