in reply to List::MoreUtils' minmax bug?
I can kinda sorta reproduce this, but this probably isn't the same as your problem:
use warnings; use strict; use List::MoreUtils 'minmax'; my $envres = [ [], [], [{time=>0.002},{}] ]; my ($min, $max) = minmax(map {$_->{time}} @{$envres->[2]}); use Data::Dump 'dump'; dump $min, $max; __END__ Use of uninitialized value in subroutine entry at - line 5. Use of uninitialized value in subroutine entry at - line 5. (undef, 0.002)
I smell a bug... what version of Perl and what version of List::MoreUtils?
Also, are you feeding minmax plain scalars, or are they objects/tied vars/some other magical things? (See Devel::Peek)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: List::MoreUtils' minmax bug?
by perlancar (Hermit) on Mar 16, 2016 at 18:02 UTC | |
by Anonymous Monk on Mar 16, 2016 at 18:41 UTC | |
by perlancar (Hermit) on Mar 16, 2016 at 19:26 UTC | |
|
Re^2: List::MoreUtils' minmax bug?
by Anonymous Monk on Mar 16, 2016 at 18:32 UTC | |
by Anonymous Monk on Mar 16, 2016 at 18:46 UTC | |
by Anonymous Monk on Mar 16, 2016 at 18:54 UTC | |
by Anonymous Monk on Mar 16, 2016 at 18:58 UTC |