|XP is just a number|
Re^2: perlfunc index name conflictby syphilis (Chancellor)
|on Sep 23, 2012 at 23:09 UTC||Need Help??|
I doubt PDL exports an index function
I expected the same ... but, apparently, not so:
If we comment out the "use PDL;" we then get the expected output of "3".
As Anonymous Monk said, one solution is to use CORE::index() instead of index().
Another solution is to use PDL(); instead of use PDL;
But it's a bit rude of PDL to be exporting this function by default, isn't it ?
Update: The PDL documentation states:
So this *is* documented ... and it seems that the recommended solution is to "use PDL::Lite;".