Hello DanielPfeiffer,

I'm mad for oneliners.. :) so I'd like to investigate this, but I have some test failed (strawberry perl portable)

perl -v This is perl 5, version 26, subversion 0 (v5.26.0) built for MSWin32- +x64-multi-thread gmake -v GNU Make 4.2.1 cpan> test App::pl ... t/unit.t ....... 1/8 # Failed test '"C:\EX_D\ulisseDUE\perl5.26.64bit\perl\bin\perl.exe" +"-W" "../pl" "for( @A, [$A[0], 123456] ) { E Isodate( $_, 0 ), I( 0.0 +, $_ ), I( $_, \"+0\" ), I( $_, 1 ), D( $_, -80, \"+90\", \"-9.5\" ), + \"\"; Date \"08:45\", $_ }" "123456789" "123456789.0" "123456789.1" +"123456789.000001" "123456789.123456789"' # got: 'Subroutine Config::STORE redefined at C:/EX_D/ulisseDUE/perl5. +26.64bit/perl/vendor/lib/Portable/Config.pm line 68. # 1973-11-29T21:33:09.000000 +00:00 1973-11-29T21:33:09.000000 +00:00 +1973-11-29T21:33:09.000000 +00:00 1973-11-29T22:33:09.000000 +01:00 T +hu Nov 29 12:03:19.000000 -09:30 1973 Fri Nov 30 06:18:09.000000 +08: +45 1973 # 1973-11-29T21:33:09.000000 +00:00 1973-11-29T21:33:09.000000 +00:00 +1973-11-29T21:33:09.000000 +00:00 1973-11-29T22:33:09.000000 +01:00 T +hu Nov 29 12:03:19.000000 -09:30 1973 Fri Nov 30 06:18:09.000000 +08: +45 1973 # 1973-11-29T21:33:09.100000 +00:00 1973-11-29T21:33:09.100000 +00:00 +1973-11-29T21:33:09.100000 +00:00 1973-11-29T22:33:09.100000 +01:00 T +hu Nov 29 12:03:19.100000 -09:30 1973 Fri Nov 30 06:18:09.100000 +08: +45 1973 # 1973-11-29T21:33:09.000001 +00:00 1973-11-29T21:33:09.000001 +00:00 +1973-11-29T21:33:09.000001 +00:00 1973-11-29T22:33:09.000001 +01:00 T +hu Nov 29 12:03:19.000001 -09:30 1973 Fri Nov 30 06:18:09.000001 +08: +45 1973 # 1973-11-29T21:33:09.123456 +00:00 1973-11-29T21:33:09.123456 +00:00 +1973-11-29T21:33:09.123456 +00:00 1973-11-29T22:33:09.123456 +01:00 T +hu Nov 29 12:03:19.123456 -09:30 1973 Fri Nov 30 06:18:09.123456 +08: +45 1973 # 1973-11-29T21:33:09.123456 +00:00 1973-11-29T21:33:09.123456 +00:00 +1973-11-29T21:33:09.123456 +00:00 1973-11-29T22:33:09.123456 +01:00 T +hu Nov 29 12:03:19.123456 -09:30 1973 Fri Nov 30 06:18:09.123456 +08: +45 1973 # ' # expected: '1973-11-29T21:33:09.000000 +00:00 1973-11-29T21:33:09.000 +000 +00:00 1973-11-29T21:33:09.000000 +00:00 1973-11-29T22:33:09.0000 +00 +01:00 Thu Nov 29 12:03:19.000000 -09:30 1973 Fri Nov 30 06:18:09. +000000 +08:45 1973 # 1973-11-29T21:33:09.000000 +00:00 1973-11-29T21:33:09.000000 +00:00 +1973-11-29T21:33:09.000000 +00:00 1973-11-29T22:33:09.000000 +01:00 T +hu Nov 29 12:03:19.000000 -09:30 1973 Fri Nov 30 06:18:09.000000 +08: +45 1973 # 1973-11-29T21:33:09.100000 +00:00 1973-11-29T21:33:09.100000 +00:00 +1973-11-29T21:33:09.100000 +00:00 1973-11-29T22:33:09.100000 +01:00 T +hu Nov 29 12:03:19.100000 -09:30 1973 Fri Nov 30 06:18:09.100000 +08: +45 1973 # 1973-11-29T21:33:09.000001 +00:00 1973-11-29T21:33:09.000001 +00:00 +1973-11-29T21:33:09.000001 +00:00 1973-11-29T22:33:09.000001 +01:00 T +hu Nov 29 12:03:19.000001 -09:30 1973 Fri Nov 30 06:18:09.000001 +08: +45 1973 # 1973-11-29T21:33:09.123456 +00:00 1973-11-29T21:33:09.123456 +00:00 +1973-11-29T21:33:09.123456 +00:00 1973-11-29T22:33:09.123456 +01:00 T +hu Nov 29 12:03:19.123456 -09:30 1973 Fri Nov 30 06:18:09.123456 +08: +45 1973 # 1973-11-29T21:33:09.123456 +00:00 1973-11-29T21:33:09.123456 +00:00 +1973-11-29T21:33:09.123456 +00:00 1973-11-29T22:33:09.123456 +01:00 T +hu Nov 29 12:03:19.123456 -09:30 1973 Fri Nov 30 06:18:09.123456 +08: +45 1973 # ' # at ./test.pm line 50. t/unit.t ....... 2/8 # Looks like you failed 1 test of 8. t/unit.t ....... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/8 subtests Test Summary Report ------------------- t/unit.t (Wstat: 256 Tests: 8 Failed: 1) Failed test: 1 Non-zero exit status: 1 Files=6, Tests=80, 8 wallclock secs ( 0.03 usr + 0.01 sys = 0.05 CP +U) Result: FAIL Failed 1/6 test programs. 1/80 subtests failed. gmake: *** [Makefile:875: test_dynamic] Error 1 PFEIFFER/App-pl-0.90.2.tgz C:\EX_D\ulisseDUE\perl5.26.64bit\c\bin\gmake.exe test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports PFEIFFER/App-pl-0.90.2.tgz Stopping: 'test' failed for 'App::pl'. Failed during this command: PFEIFFER/App-pl-0.90.2.tgz : make_test NO # as mentioned in the error (cpan> upgrade Portable::Config fails btw) +: cpan> r Portable::Config Package namespace installed latest in CPAN file Portable::Config 1.22 1.23 KMX/Portable-1.23.tar.g +z

The only thing I find atm is a SO post where #!perl -W seems guilty and you have use warnings 'all'; in all your tests.

HtH

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

In reply to Re^4: pl – Perl One-Liner Magic Wand -- failing tests by Discipulus
in thread pl – Perl One-Liner Magic Wand: looking for feedback by Daniel Pfeiffer

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.