Re: [Pdl-general] PDL::NiceSlice and Perl 5.36

2022-11-05 Thread Luis Mochan
The PDL::NiceSlice bug seems not to be a PDL bug, but rather a Filter::Simple bug. I made a trivial source filter, unrelated to PDL package MyFilter; use v5.36; use Filter::Simple; FILTER_ONLY code_no_comments => sub { say "Code:\n$_" }, all => sub { say "All:\n$_"

Re: [Pdl-general] PDL::NiceSlice and Perl 5.36

2022-11-05 Thread Luis Mochan
Regarding NiceSlice, I made a further couple of tests: Take the program #! /usr/bin/env perl use PDL; BEGIN{$PDL::NiceSlice::debug_filter=1;} use PDL::NiceSlice; my $x=pdl(1); my $V=$x/$x((0))/2; A add the ...debug_filter=1 line to print debugging info. I run it: $

Re: [Pdl-general] PDL::NiceSlice and Perl 5.36

2022-11-05 Thread Grégory Vanuxem
Hello, For sure 'use PDL' needs Nice Slice. Have encountered also this problem Le sam. 5 nov. 2022 à 01:36, Luis Mochan a écrit : > Quite misterious: > > I simplified the code to the following: > >#! /usr/bin/env perl >use PDL; >use PDL::NiceSlice; >my $x=sequence(1); >my

Re: [Pdl-general] PDL::NiceSlice and Perl 5.36

2022-11-04 Thread Luis Mochan
Quite misterious: I simplified the code to the following: #! /usr/bin/env perl use PDL; use PDL::NiceSlice; my $x=sequence(1); my $V=$x/$x((-1)); #my $w=$A/$x((-1)); and it fails with the message syntax error at rem.txt line 5, near "$x(" The error corresponds to the line

Re: [Pdl-general] PDL::NiceSlice and Perl 5.36

2022-11-04 Thread Luis Mochan
If I change the NiceSlice engine, using $ PDL_NICESLICE_ENGINE=Filter::Util::Call program.pl I don't get the error, and the output of the filter is my $x=sequence(1); my $V=$x/$x->slice([-1,0,0]); #my $w=$A/$y->slice([-1,0,0]); so that both the actual $x((-1)) and the same in

Re: [Pdl-general] PDL::NiceSlice and Perl 5.36

2022-11-04 Thread Luis Mochan
Well, I found how to get the output from the filter. Consider the code: #! /usr/bin/env perl use PDL; use PDL::NiceSlice; use Filter::sh 'tee rem1.pl'; my $x=sequence(1); my $V=$x/$x((-1)); #my $w=$A/$x((-1)); The line use Filter::sh 'tee rem1.pl'; sends a copy of

Re: [Pdl-general] PDL::NiceSlice and Perl 5.36

2022-11-04 Thread Yury Pakhomov
Hi Ed, I use last version of PDL 2.081. This problem also affected preview 2.080 version. Other machine has Fedora Core 36 with perl 5.34 and PDL 2.076 Best regards, Yury 04.11.2022 18:49, Ed. пишет: Hi Yury, I had a look and I don’t think Slackware packages PDL. Can you tell us what

Re: [Pdl-general] PDL::NiceSlice and Perl 5.36

2022-11-04 Thread Ed .
Hi Yury, I had a look and I don’t think Slackware packages PDL. Can you tell us what version of PDL you have installed, on the two machines where you’ve tried your script? Best regards, Ed From: Yury Pakhomov Sent: 03 November 2022 13:14 To: