Subject: | Error in documentation |
Date: | Wed, 14 Dec 2011 15:38:39 +0000 |
To: | bug-Math-Factor-XS [...] rt.cpan.org |
From: | David McKelvie <dmck [...] interactive.co.uk> |
In the documentation for Math::Factor::XS at
http://search.cpan.org/~schubiger/Math-Factor-XS-0.34/lib/Math/Factor/XS.pm
there is an example:
@matches = matches($number, @factors);
With version 0.38 of this package, this needs to be
@matches = matches($number, \@factors);
otherwise one gets:
Parameter #2 ("7") to Math::Factor::XS::matches was a 'scalar',
which is not one of the allowed types: arrayref
David McKelvie