CAB/Datum/Comment.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 26 CC 2 SCAR 12.8
CC
2
Cov
0%
new
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 3.6
1 ## -*- Mode: CPerl -*-
2 ##
3 ## File: DTA::CAB::Comment.pm
4 ## Author: Bryan Jurish <jurish@uni-potsdam..de>
5 ## Description: DTA::CAB data: comments
6  
7 package DTA::CAB::Comment;
8 use DTA::CAB::Datum;
9 use Carp;
10 use strict;
11  
12 ##==============================================================================
13 ## Globals
14 ##==============================================================================
15  
16 our @ISA = qw(DTA::CAB::Datum);
17  
18 ##==============================================================================
19 ## Constructors etc.
20 ##==============================================================================
21  
22 ## $cmt = CLASS_OR_OBJ->new($comment_text)
23 ## + object structure:
24 ## + SCALAR ref: \$comment_text
25 sub new {
26 my $text = $_[1];
27 $text = '' if (!defined($text));
28 return bless(\$text, ref($_[0])||$_[0]);
29 }
30  
31  
32 1; ##-- be happy
33 __END__