diff options
| author | fukachan <fukachan> | 2005-05-26 10:20:03 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2005-05-26 10:20:03 +0000 |
| commit | 74b391b33f9d16c40fdfe9b72d83c2dfce893e39 (patch) | |
| tree | edc97823e41b8e4780537b2e6327bb9ec85a18d8 /fml/lib/IO/Adapter | |
| parent | 8b58c0160dff722773e8d5564f2b43bc82c4662f (diff) | |
| download | fml8-74b391b33f9d16c40fdfe9b72d83c2dfce893e39.tar.gz fml8-74b391b33f9d16c40fdfe9b72d83c2dfce893e39.tar.bz2 fml8-74b391b33f9d16c40fdfe9b72d83c2dfce893e39.zip | |
not use str.str
Diffstat (limited to 'fml/lib/IO/Adapter')
| -rw-r--r-- | fml/lib/IO/Adapter/AtomicFile.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fml/lib/IO/Adapter/AtomicFile.pm b/fml/lib/IO/Adapter/AtomicFile.pm index c1d5ab30..ed3757c9 100644 --- a/fml/lib/IO/Adapter/AtomicFile.pm +++ b/fml/lib/IO/Adapter/AtomicFile.pm @@ -1,10 +1,10 @@ #-*- perl -*- # -# Copyright (C) 2001,2002,2003,2004 Ken'ichi Fukamachi +# Copyright (C) 2001,2002,2003,2004,2005 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: AtomicFile.pm,v 1.14 2004/07/11 15:25:52 fukachan Exp $ +# $FML: AtomicFile.pm,v 1.15 2004/07/23 15:59:13 fukachan Exp $ # package IO::Adapter::AtomicFile; @@ -135,7 +135,7 @@ sub open # temporary file unless (defined $Counter) { $Counter = 0;} $Counter++; - my $temp = $file.".new.".$$.$Counter; + my $temp = sprintf("%s.%s.%s.%s", $file, "new", $$, $Counter); ${*$self}{ _orig_file } = $file; ${*$self}{ _temp_file } = $temp; @@ -306,7 +306,7 @@ Ken'ichi Fukamachi =head1 COPYRIGHT -Copyright (C) 2001,2002,2003,2004 Ken'ichi Fukamachi +Copyright (C) 2001,2002,2003,2004,2005 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. |
