App-diff_spreadsheets
view release on metacpan or search on metacpan
t/t_TestCommon.pm view on Meta::CPAN
## So trying to see what is happening...
#unshift @perlargs, "-MCarp::Always=verbose";
if ($^O eq "MSWin32") {
for (my $ix=0; $ix <= $#perlargs; $ix++) {
if ($perlargs[$ix] =~ /^-(w?)([Ee])$/) {
# Passing perl code in an argument is impractical in DOS/Windows
my $tf = Path::Tiny->tempfile("perlcode_XXXXX");
push @tfs, $tf;
# N.B. -e (not -E) can be an arg to odfedit as well
$tf->append_utf8("use feature qw/:all/;\n") if $2 eq 'E';
$tf->append_utf8($perlargs[$ix+1]);
warn "============= DUMP OF -$1$2 FILE ===========\n", "".scalar($tf->slurp_utf8), "\n=============(end)============\n" if $debug;
splice @perlargs, $ix, 2, ($1 ? ("-w") : ()), $tf->canonpath;
$ix += 2;
}
}
for (my $ix=0; $ix <= $#perlargs; $ix++) {
for ($perlargs[$ix]) {
if (/^-\*[Ee]/) { oops "unhandled perl arg" }
s/"/\\"/g;
( run in 0.367 second using v1.01-cache-2.11-cpan-cba739cd03b )