in reply to Re^2: Moo From Hell #1: How to proxy a sub from a non OO module
in thread Moo From Hell #1: How to proxy a sub from a non OO module [SOLVED]
Prototype mismatch: sub Utils::uniq (@) vs none at Utils.pm line 20.
You're importing uniq() and then redefining it; hence the error.
Instead, don't import it:
use List::MoreUtils ();
Then call it fully qualified:
my @result = List::MoreUtils::uniq @{ $self->list };
Anyone got any experience of this phone's predecessor?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Moo From Hell #1: How to proxy a sub from a non OO module
by karlgoethebier (Abbot) on Aug 02, 2015 at 18:47 UTC | |
by Your Mother (Archbishop) on Aug 02, 2015 at 20:16 UTC | |
by karlgoethebier (Abbot) on Aug 02, 2015 at 20:54 UTC | |
by soonix (Chancellor) on Aug 03, 2015 at 06:39 UTC |