diff options
| author | fukachan <fukachan> | 2002-01-13 05:57:40 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2002-01-13 05:57:40 +0000 |
| commit | a86c9d7defdec55c0079cd01a97d9a21563b8f2a (patch) | |
| tree | 363c1e8b8e802a52f7f8832d7a0183452cb9384d /fml/lib/File/Sequence.pm | |
| parent | 54556e99fdde4b6744c7925444afb18649dbd7ef (diff) | |
| download | fml8-a86c9d7defdec55c0079cd01a97d9a21563b8f2a.tar.gz fml8-a86c9d7defdec55c0079cd01a97d9a21563b8f2a.tar.bz2 fml8-a86c9d7defdec55c0079cd01a97d9a21563b8f2a.zip | |
clean up comments, update copyright
Diffstat (limited to 'fml/lib/File/Sequence.pm')
| -rw-r--r-- | fml/lib/File/Sequence.pm | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/fml/lib/File/Sequence.pm b/fml/lib/File/Sequence.pm index dacabe20..d50fa827 100644 --- a/fml/lib/File/Sequence.pm +++ b/fml/lib/File/Sequence.pm @@ -1,10 +1,10 @@ #-*- perl -*- # -# Copyright (C) 2001 Ken'ichi Fukamachi +# Copyright (C) 2001,2002 Ken'ichi Fukamachi # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: Sequence.pm,v 1.12 2001/11/27 15:55:23 fukachan Exp $ +# $FML: Sequence.pm,v 1.13 2001/12/22 09:21:11 fukachan Exp $ # package File::Sequence; @@ -80,7 +80,7 @@ get the sequence number from specified C<$file>. # Descriptions: constructor # Arguments: OBJ($self) HASH_REF($args) # Side Effects: object itself holds a few local _variables -# Return Value: object +# Return Value: OBJ sub new { my ($self, $args) = @_; @@ -97,7 +97,7 @@ sub new # If $file is not specified, # the sequence_file parameter in new(). # Side Effects: the number holded in $file is incremented -# Return Value: number (sequence number) +# Return Value: NUM(sequence number) sub increment_id { my ($self, $file) = @_; @@ -111,8 +111,10 @@ sub increment_id # touch the sequence file if it does not exist. unless (-f $seq_file) { - use File::Utils qw(touch); - touch($seq_file); + eval q{ + use File::Utils qw(touch); + touch($seq_file); + }; }; use IO::File::Atomic; @@ -152,7 +154,7 @@ sub increment_id # If $file is not specified, # the sequence_file parameter in new(). # Side Effects: the number holded in $file is incremented -# Return Value: number (sequence number) +# Return Value: NUM(sequence number) sub get_id { my ($self, $file) = @_; @@ -198,7 +200,7 @@ To search max_id in hash key, # Descriptions: search max id number # Arguments: OBJ($self) HASH_REF($args) # Side Effects: none -# Return Value: number +# Return Value: NUM sub search_max_id { my ($self, $args) = @_; |
