The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
#!/usr/bin/env perl

use strict;
use warnings;

use Path::Class;

my $fh = dir($ARGV[ 0 ])->file('test.txt')->openw();

printf $fh join(' ', test => @ARGV);

close($fh);