The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

#!/usr/bin/env perl
use strict;
use Test::More tests => 2;
my $tmp = Directory::Scratch->new;
my $file = $tmp->touch('foo', 'foo bar baz');
my $stats = $tmp->stat('foo');
isa_ok $stats, 'File::stat', '$stats';
my @stats = $tmp->stat('foo');
ok scalar @stats > 10, 'got an array, not an object';