(I'm resending this as I'm not sure it reached the list the first
time. Apologies if you've received it twice.)

Hello porters


When trying to fix test failures in Test::PDL since PDL 2.018 (I've
been putting this off a bit longer than I should have), I'm not sure
whether PDL::Lite exports 'pdl' and 'barf'. Reading the documentation,
I thought I could expect the function 'pdl' to be available in my
namespace. However, the following test fails with PDL 2.018:

use Test::More;
use PDL::Lite;
my $p = pdl(3,2,1);
cmp_ok $p->at(1), '==', 2;
done_testing;

When I change 'my $p = pdl()' to 'my $p = PDL->pdl()', it works. It
seems 'pdl' is not exported to my namespace at all. Is this a
documentation error in PDL::Lite or a flaw in my understanding?


Best regards
Edward

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
pdl-devel mailing list
pdl-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-devel

Reply via email to