Result:
found more than 751 distributions - search limited to the first 2001 files matching your query
( run in 0.680 )
File-Blarf
view release on metacpan or search on metacpan
t/readwrite.t view on Meta::CPAN
ok(File::Blarf::blarf($tempfile,$joined),'Wrote array to file');
ok($read = File::Blarf::slurp($tempfile,{ Chomp => 1, }),'Read array from file (scalar context)');
is($read,$joined,'Read data is written data, even in scalar context');
#
# Try to write to a locked file
#
open(my $FH, '<', $tempfile);
flock $FH, LOCK_EX;
my $timedout = 0;
eval {
t/readwrite.t view on Meta::CPAN
};
alarm 0;
if($@ && $@ eq "timeout\n") {
$timedout = 1;
}
ok($timedout,'Write operation on locked file timed out');
flock $FH, LOCK_UN;
ok(File::Blarf::blarf($tempfile,$joined, { Flock => 1, }),'Wrote array to a, now unlocked, file');
close($FH);
view all matches for this distribution( run in 0.680 second using v1.01-cache-2.11-cpan-4ee56698ea0 )