The original perldl shell does not support 'use strict' across multiple lines, 
I think.  But pdl2 does, as obviously do scripts.  You can make your usage of 
dice pass 'use strict' if you put the X in single quotes:

{ use strict;
$a = sequence(10,4);
$a->dice('X',[0,3]);
}

Derek

> On Nov 2, 2015, at 5:32 AM, Ingo Schmid <[email protected]> wrote:
> 
> Hi
> 
> in the docs for dice, it says that you can use X to select a whole dimension. 
> In scripts and the pdl2 shell, this throws an error of barewords not allowed 
> as sub refs.
> 
> This is PDL version 2.013_05.
> 
> Has the syntax changed and docs need updating, or is something broken? 
> 
> Ingo
> ------------------------------------------------------------------------------
> _______________________________________________
> pdl-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pdl-general

------------------------------------------------------------------------------
_______________________________________________
pdl-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pdl-general

Reply via email to