Plugin.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 12 / 12 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Plugin/General.pm ↑ Summary Server.pm »
1 # $Id: Plugin.pm,v 1.3 2003/04/08 00:27:30 cwest Exp $
2 package POEST::Plugin;
3  
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 $^W = 1;
6  
7 1 ▶use vars qw[$VERSION];
Subroutine BEGIN: called CC=1 SCAR=0.0
8 $VERSION = (qw$Revision: 1.3 $)[1];
9  
10 1 ▶use POE qw[Component::Server::SMTP];
Subroutine BEGIN: called CC=1 SCAR=0.0
11 use Carp;
12  
13 sub import {
14 my ($class) = @_;
15 my ($caller) = (caller)[0];
16
17 {
18 eval qq[
19 package $caller;
20 use POE qw[Component::Server::SMTP];
21 use Carp;
22 package $class;
23 ];
24 croak $@ if $@;
25 }
26 }
27  
28 sub CONFIG () { [ ] }
29  
30 sub new {
31 my ($class, %args) = @_;
32  
33 return bless \%args, $class;
34 }
35  
36 1;
37  
38 __END__
« Plugin/General.pm ↑ Summary Server.pm »