Think about Loose Coupling | |
PerlMonks |
Re^5: pl – Perl One-Liner Magic Wand -- failing testsby Daniel Pfeiffer (Acolyte) |
on Jun 17, 2022 at 22:09 UTC ( [id://11144834]=note: print w/replies, xml ) | Need Help?? |
It's not the berries, because in the mean time cpantesters have reported success for 6 different Windows versions, all Strawberry. Something in yours is loading this non-standard variant of Config, where I don't even see why it would load Config at all. I have modified the failing test a bit: sub i tracks the modifications of %INC, using keydiff. Could you please run pl "$I = -1; sub i { ++$I; k $_, $INC{$_} for keys %INC } i; require Time::HiRes; i; for( @A, [$A[0], 123456] ) { E Isodate( $_, 0 ), I( 0.0, $_ ), I( $_, \"+0\" ), I( $_, 1 ), D( $_, -80, \"+90\", \"-9.5\" ), \"\"; Date \"08:45\", $_ } i" 123456789 For me it records only a single change, the module I explicitly require. (Isodate would too, but I wanted to see it in isolation.) If you want more fun, what E would do for echoing refs, you can add this before the end quote: ; require Data::Dumper; i So much for maybe understanding. For the solution, I guess I'll have to drop my overzealous warnings (which I now realize, aren't complete anyway). Can you please remove '-W', from @cmd on line t/test.pm:51? Then please run perl t/unit.t
In Section
Cool Uses for Perl
|
|