summaryrefslogtreecommitdiff
path: root/fml/lib/IO/Adapter/AtomicFile.pm
diff options
context:
space:
mode:
authorfukachan <fukachan>2003-01-29 04:46:53 +0000
committerfukachan <fukachan>2003-01-29 04:46:53 +0000
commit670e2f85089210a3e782d147c3ef4de0ca2cace0 (patch)
treef1de6219ac64c91c8536d7f4a75b5a3658781e0b /fml/lib/IO/Adapter/AtomicFile.pm
parentea5c4b9363d7d7b6f9626fd2d43ef0de105bee90 (diff)
downloadfml8-670e2f85089210a3e782d147c3ef4de0ca2cace0.tar.gz
fml8-670e2f85089210a3e782d147c3ef4de0ca2cace0.tar.bz2
fml8-670e2f85089210a3e782d147c3ef4de0ca2cace0.zip
FNF: not use $_
Diffstat (limited to 'fml/lib/IO/Adapter/AtomicFile.pm')
-rw-r--r--fml/lib/IO/Adapter/AtomicFile.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/fml/lib/IO/Adapter/AtomicFile.pm b/fml/lib/IO/Adapter/AtomicFile.pm
index 7ff1998c..1fcecb57 100644
--- a/fml/lib/IO/Adapter/AtomicFile.pm
+++ b/fml/lib/IO/Adapter/AtomicFile.pm
@@ -4,7 +4,7 @@
# 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.5 2002/12/22 02:54:12 fukachan Exp $
+# $FML: AtomicFile.pm,v 1.6 2002/12/23 15:15:08 fukachan Exp $
#
package IO::Adapter::AtomicFile;
@@ -228,7 +228,8 @@ sub copy
my $wh = $self->open($dst);
if (defined($rh) && defined($wh)) {
- while (sysread($rh, $_, 4096)) { print $wh $_;}
+ my $buf = '';
+ while (sysread($rh, $buf, 4096)) { print $wh $buf;}
$wh->close;
$rh->close;