summaryrefslogtreecommitdiff
path: root/fml/lib/IO/File
diff options
context:
space:
mode:
authorfukachan <fukachan>2001-03-11 10:32:41 +0000
committerfukachan <fukachan>2001-03-11 10:32:41 +0000
commitf3f65292a8e32fac39c8d893748b38e125b172ca (patch)
treea88bdffb800efdc237d73ca23089b36dd97ab711 /fml/lib/IO/File
parent7576a0b812d0faa2cbe7563fb9c0e424cfe07194 (diff)
downloadfml8-f3f65292a8e32fac39c8d893748b38e125b172ca.tar.gz
fml8-f3f65292a8e32fac39c8d893748b38e125b172ca.tar.bz2
fml8-f3f65292a8e32fac39c8d893748b38e125b172ca.zip
fix typo
Diffstat (limited to 'fml/lib/IO/File')
-rw-r--r--fml/lib/IO/File/Atomic.pm14
1 files changed, 7 insertions, 7 deletions
diff --git a/fml/lib/IO/File/Atomic.pm b/fml/lib/IO/File/Atomic.pm
index 3c431752..4b1eb363 100644
--- a/fml/lib/IO/File/Atomic.pm
+++ b/fml/lib/IO/File/Atomic.pm
@@ -22,12 +22,12 @@ END {}
=head1 NAME
-IO::Atomic - atomic IO operation
+IO::File::Atomic - atomic IO operation
=head1 SYNOPSIS
- use IO::Atomic;
- my $wh = IO::Atomic->open($file);
+ use IO::File::Atomic;
+ my $wh = IO::File::Atomic->open($file);
print $wh "new/updated things ...";
$wh->close unless $wh->error;
@@ -37,13 +37,13 @@ Updating is defered until C<close()>.
In usual cases, you use this module in the following way.
use FileHandle;
- use IO::Atomic;
+ use IO::File::Atomic;
# get read handle for $file
my $rh = new FileHandle $file;
# get handle to update $file
- my $wh = IO::Atomic->open($file);
+ my $wh = IO::File::Atomic->open($file);
while (<$rh>) {
print $wh "new/updated things ...";
}
@@ -52,8 +52,8 @@ In usual cases, you use this module in the following way.
You can use this method to open $file for both read and write.
- use IO::Atomic;
- my ($rh, $wh) = IO::Atomic->rw_open($file);
+ use IO::File::Atomic;
+ my ($rh, $wh) = IO::File::Atomic->rw_open($file);
while (<$rh>) {
print $wh "new/updated things ...";
}