in reply to
perl index function error when "use PDL"
Use
PDL::Core
instead of PDL. Also, you haven't used a pdl index function, so the perl builtin works fine here.
Comment on
Re: perl index function error when "use PDL"
In Section
Seekers of Perl Wisdom