diff options
| author | fukachan <fukachan> | 2003-01-29 04:46:53 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2003-01-29 04:46:53 +0000 |
| commit | 670e2f85089210a3e782d147c3ef4de0ca2cace0 (patch) | |
| tree | f1de6219ac64c91c8536d7f4a75b5a3658781e0b /fml/lib/File/Utils.pm | |
| parent | ea5c4b9363d7d7b6f9626fd2d43ef0de105bee90 (diff) | |
| download | fml8-670e2f85089210a3e782d147c3ef4de0ca2cace0.tar.gz fml8-670e2f85089210a3e782d147c3ef4de0ca2cace0.tar.bz2 fml8-670e2f85089210a3e782d147c3ef4de0ca2cace0.zip | |
FNF: not use $_
Diffstat (limited to 'fml/lib/File/Utils.pm')
| -rw-r--r-- | fml/lib/File/Utils.pm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fml/lib/File/Utils.pm b/fml/lib/File/Utils.pm index e857fe56..d62ed8f9 100644 --- a/fml/lib/File/Utils.pm +++ b/fml/lib/File/Utils.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: Utils.pm,v 1.20 2003/01/11 15:14:23 fukachan Exp $ +# $FML: Utils.pm,v 1.21 2003/01/11 15:16:33 fukachan Exp $ # package File::Utils; @@ -237,8 +237,9 @@ sub append my $wh = new FileHandle ">> $dst"; if (defined($rh) && defined($wh)) { - while (<$rh>) { - print $wh $_; + my $buf = ''; + while ($buf = <$rh>) { + print $wh $buf; } $wh->close(); $rh->close(); |
