Hi all,

I am still new to PDL, and trying to get more comfortable with it.
So please excuse if my question is somehow naive ...

I found out that PDL::NiceSlice breaks calling function references.
Is this a known bug?

--
#!/usr/bin/perl

use 5.10.1;

use PDL::NiceSlice;
my $fun_ref = sub { say $_[0]; };
&$fun_ref('Hey!');   # works
$fun_ref->('Hey!');  # does not work
--
... gives the output:
--
Hey!
Can't call method "nslice" on unblessed reference at ./pdl-niceslice.pl line 8.
--

By the way, PDL::NiceSlice is implemented as a Perl source filter,
what can be a bit dangerous.
What are the general recommendations towards PDL::NiceSlice? Is its
usage encouraged?

Best regards,
  Zeno
-- 
MyMediaLite Recommender System Library: http://ismll.de/mymedialite

_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to