summaryrefslogtreecommitdiff
path: root/fml
diff options
context:
space:
mode:
authorfukachan <fukachan>2001-02-18 15:46:04 +0000
committerfukachan <fukachan>2001-02-18 15:46:04 +0000
commitb6cb650913195de3d8045e34363eaaf5873cd37b (patch)
tree9db74595f65e53ae3120b573fdb2a3d9720899c7 /fml
parent100f5867df678303468f7f098d89453ec3816faa (diff)
downloadfml8-b6cb650913195de3d8045e34363eaaf5873cd37b.tar.gz
fml8-b6cb650913195de3d8045e34363eaaf5873cd37b.tar.bz2
fml8-b6cb650913195de3d8045e34363eaaf5873cd37b.zip
clean up documents
Diffstat (limited to 'fml')
-rw-r--r--fml/lib/FML/SequenceFile.pm41
1 files changed, 26 insertions, 15 deletions
diff --git a/fml/lib/FML/SequenceFile.pm b/fml/lib/FML/SequenceFile.pm
index 88d73b4f..b33470fe 100644
--- a/fml/lib/FML/SequenceFile.pm
+++ b/fml/lib/FML/SequenceFile.pm
@@ -14,6 +14,29 @@ use vars qw(@ISA @EXPORT @EXPORT_OK);
use Carp;
use FML::Errors qw(error_reason error error_reset);
+=head1 NAME
+
+FML::SequenceFile - maintain the sequence number
+
+=head1 SYNOPSIS
+
+ use FML::SequenceFile;
+ my $sfh = new FML::SequenceFile { sequence_file => $seq_file };
+ my $id = $sfh->increment_id;
+ if ($sfh->error) { use Carp; carp( $sfh->error ); }
+
+=head1 DESCRIPTION
+
+=head2 C<new($args)>
+
+$args->{ sequence_file } is the file holding the current sequence number.
+
+=head2 C<increment_id([$file])>
+
+increment the sequence number.
+
+=cut
+
require Exporter;
@ISA = qw(Exporter);
@@ -69,22 +92,10 @@ sub increment_id
}
-=head1 NAME
-
-FML::SequenceFile.pm - what is this
-
-
-=head1 SYNOPSIS
-
-=head1 DESCRIPTION
-
-=head2 new
-
-=item Function()
-
-
=head1 AUTHOR
+Ken'ichi Fukamachi
+
=head1 COPYRIGHT
Copyright (C) 2001 Ken'ichi Fukamachi
@@ -94,7 +105,7 @@ redistribute it and/or modify it under the same terms as Perl itself.
=head1 HISTORY
-FML::SequenceFile.pm appeared in fml5.
+FML::SequenceFile appeared in fml5.
=cut