my $rd3 = dir( ... ); $rd3->mkpath(); say "rd3 is $rd3"; my $f = $rd3->file( $_ );