in reply to How to pass Windows filepaths on command line
my $in_file = $opt->get_file; open(my $fh, "<:encoding(utf8)", $in_file) or die "Could not open $in_file: $!"; [download]
perl test.pl --file=test.txt [download]