File Coverage

blib/lib/News/FormReply.pm
Criterion Covered Total %
statement 12 17 70.5
branch 0 2 0.0
condition n/a
subroutine 4 5 80.0
pod 1 1 100.0
total 17 25 68.0


line stmt bran cond sub pod time code
1             # -*- Perl -*-
2             ###########################################################################
3             # Written and maintained by Andrew Gierth
4             #
5             # Copyright 1997 Andrew Gierth. Redistribution terms at end of file.
6             #
7             # $Id: FormReply.pm 1.5 1998/10/18 06:04:56 andrew Exp $
8             #
9              
10             =head1 NAME
11              
12             News::FormReply - derivative of News::FormArticle and News::AutoReply
13              
14             =head1 SYNOPSIS
15              
16             use News::FormReply;
17              
18             See below for functions available.
19              
20             =head1 DESCRIPTION
21              
22             This is a "mixin" of News::FormArticle and News::AutoReply; it
23             generates form replies by performing substitutions on a text file.
24              
25             =head1 USAGE
26              
27             use News::FormReply;
28              
29             Exports nothing.
30              
31             =cut
32              
33             package News::FormReply;
34              
35 1     1   8679 use News::FormArticle;
  1         4  
  1         34  
36 1     1   612 use News::AutoReply;
  1         3  
  1         24  
37 1     1   6 use strict;
  1         2  
  1         31  
38 1     1   5 use vars qw(@ISA);
  1         2  
  1         104  
39              
40             @ISA = qw(News::FormArticle News::AutoReply);
41              
42             =head1 Constructor
43              
44             =over 4
45              
46             =item new ( ORIGINAL, FILENAME [, SOURCE [...]] )
47              
48             Construct an article as a reply to C, initialised from the
49             specified file, performing variable substitution with values supplied
50             by the C parameters (see News::FormArticle).
51              
52             The Subject, To, References and In-Reply-To headers are setup B
53             the template has been read and substituted, but a Subject header set
54             in a template will not be overridden.
55              
56             =cut
57              
58             sub new
59             {
60 0     0 1   my $class = shift;
61 0           my $src = shift;
62              
63 0           my $self = $class->SUPER::new(@_);
64 0 0         return undef unless $self;
65              
66 0           $self->reply_init($src);
67             }
68              
69             1;
70              
71             __END__