diff options
| author | fukachan <fukachan> | 2001-02-01 12:40:37 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2001-02-01 12:40:37 +0000 |
| commit | 5c2ac1982cba4bee94de17d63c9399e99143a2bc (patch) | |
| tree | d07c957bfa4e86bef7d0718df2c9e611f1d22cd9 /regress/base | |
| parent | cd00a759db54b036d316c6c8acf535fc2beab591 (diff) | |
| download | fml8-5c2ac1982cba4bee94de17d63c9399e99143a2bc.tar.gz fml8-5c2ac1982cba4bee94de17d63c9399e99143a2bc.tar.bz2 fml8-5c2ac1982cba4bee94de17d63c9399e99143a2bc.zip | |
IO::File::Atomic::copy(src, dst)
Diffstat (limited to 'regress/base')
| -rw-r--r-- | regress/base/copy.pl | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/regress/base/copy.pl b/regress/base/copy.pl new file mode 100644 index 00000000..049ff5ba --- /dev/null +++ b/regress/base/copy.pl @@ -0,0 +1,20 @@ +#!/usr/local/bin/perl +#-*- perl -*- +# +# Copyright (C) 2001 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. +# +# $Id$ +# $FML$ +# + +use IO::File::Atomic; + +($src, $dst) = @ARGV; +print "IO::File::Atomic->copy($src, $dst);\n"; +print "sleep 3;\n"; +sleep 3; +my $status = IO::File::Atomic->copy($src, $dst) || die("fail to copy"); + +exit 0; |
