Skip Menu |

This queue is for tickets about the EntityModel-Log CPAN distribution.

Report information
The Basics
Id: 96981
Status: open
Priority: 0/
Queue: EntityModel-Log

People
Owner: Nobody in particular
Requestors: james2vegas [...] aim.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.006
Fixed in: (no value)



Subject: map construction in sub _stack_line only works in 5.18
As seen by test results, and CPAN testers results; the map in the _stack_line sub works in 5.18 and later only, yet 5.10 is the minimum required Perl version:
t/log.t ......... Not enough arguments for map at /home/triton/.cpanm/work/1404615627.2100/EntityModel-Log-0.006/blib/lib/EntityModel/Log.pm line 467, near "))"
Compilation failed in require at t/log.t line 5.
BEGIN failed--compilation aborted at t/log.t line 5.



    my $txt = sprintf ' => %-32.32s %s(%s) args %s',
        $info->{package} . ':' . $info->{line},
        ($info->{subroutine} =~ m{ ( [^:]+$ ) }x),
          ($info->{package} eq 'EntityModel::Log')
        ? ('')
        : (join ', ', map Data::Dump::Filtered::dump_filtered($info, sub {
            my ($ctx, $obj) = @_;
            return undef unless $ctx->is_blessed;
            return { dump => "$obj" };
        })), join ' ', map $_ // '<undef>', @{ $info->{args} };


It would be cool if the packaging could make clear that this is an intentional and not an accidental limitation by declaring the requirement. That way the intentional FAILS are converted to UNKNOWNS. Details about how to do it are on this page: http://wiki.cpantesters.org/wiki/CPANAuthorNotes Thanks,