FormReply.pm

filter: Statementstmt 33.3% 1 / 3 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 50.0% 2 / 4 CC 1 SCAR 2.6
CC
1
Cov
33%
BEGIN
1.3
CRAP 1.3
« Article.pm ↑ Summary
1 # -*- Perl -*-
2 ###########################################################################
3 # Written and maintained by Andrew Gierth <andrew@erlenstar.demon.co.uk>
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 0 ▶use News::FormArticle;
Subroutine BEGIN: called CC=1 SCAR=2.6
36 use News::AutoReply;
37 use strict;
38 use vars qw(@ISA);
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<ORIGINAL>, initialised from the
49 specified file, performing variable substitution with values supplied
50 by the C<SOURCE> parameters (see News::FormArticle).
51  
52 The Subject, To, References and In-Reply-To headers are setup B<after>
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 my $class = shift;
61 my $src = shift;
62  
63 my $self = $class->SUPER::new(@_);
64 return undef unless $self;
65  
66 $self->reply_init($src);
67 }
68  
69 1;
70  
71 __END__
« Article.pm ↑ Summary