https://www.perl.com/article/58/2014/1/5/The-easy-way-to-build-stand-alone-Perl-apps/
cpan install pp
pp -x -v example.pl -o example.exe
#!/usr/bin/perl
use strict;
use warnings;
my $dirname = '.';
opendir(DIR, $dirname) or die "Could not open $dirname\n";
while (my $filename = readdir(DIR)) {
if ($filename =~ m/\.csv$/){
open(my $fh, "<", $filename);
while (my $row = <$fh>) {
chomp $row;
print "$row\n";
}
close($fh);
}
}
closedir(DIR);