| 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__ |