X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FEditable.pm;fp=perl%2FEditable.pm;h=b0b4e2627cbcf6d08f4789e1ce6b263635af8073;hb=2ea216bfaf03964488c54d88fad75ce6cd5a5612;hp=0000000000000000000000000000000000000000;hpb=50a2067bc089ea7ceeeaba362993a6c48e2abf4c;p=spider.git diff --git a/perl/Editable.pm b/perl/Editable.pm new file mode 100644 index 00000000..b0b4e262 --- /dev/null +++ b/perl/Editable.pm @@ -0,0 +1,30 @@ +# +# A module to allow a user to create and (eventually) edit arrays of +# text and attributes +# +# This is used for creating mail messages and user script files +# +# It may be sub-classed +# +# Copyright (c) 2001 Dirk Koopman G1TLH +# +# $Id$ +# + +package Editable; + +use vars qw($VERSION $BRANCH); +$VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ ); +$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/ ) || 0; +$main::build += $VERSION; +$main::branch += $BRANCH; + +sub new +{ + my $pkg = shift; + my $class = ref $pkg || $pkg; + + return {}, $class; +} + +1;