Ah, a classic warning. This happens when two modules export a function with the same name (among other situations). It turns out that both PDL and Moose export the function "inner"
http://search.cpan.org/dist/Moose/lib/Moose/Manual/MethodModifiers.pod#INNER_AND_AUGMENT http://pdl.perl.org/PDLdocs/Primitive.html#inner To avoid this, say "use PDL::Lite", or simply say "use PDL" in another package. Also, you will need to tell Moose that your PDL-based class is a non-Moose. I'm not entirely sure how to do that, but maybe somebody else knows. David On Wed, Jun 19, 2013 at 5:26 PM, Kaj Wiik <[email protected]> wrote: > Hi! > > I got interested in Moose and decided to try to make a Moose module with > PDL. > > Even with a dumb four-line module like this: > > package PDLTest; > use Moose; > use PDL; > 1; > > I get the following warning: > Prototype mismatch: sub PDLTest::inner: none vs (;@) at (eval 236) line 8. > > Any ideas? > > Kaj > > > _______________________________________________ > Perldl mailing list > [email protected] > http://mailman.jach.hawaii.edu/mailman/listinfo/perldl > > -- "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." -- Brian Kernighan
_______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
