PDLA::Perldl2::Plugin::NiceSlice - enable PDLA NiceSlice syntax
This plugin enables one to use the PDLA::NiceSlice syntax in an instance of Devel::REPL such as the new Perldl2 shell, pdla2. Without the plugin, array slicing looks like this:
Devel::REPL
pdla2
pdla> use PDLA; pdla> $a = sequence(10); $PDLA1 = [0 1 2 3 4 5 6 7 8 9]; pdla> $a->slice("2:9:2"); $PDLA1 = [2 4 6 8];
After the NiceSlice plugin has been loaded, you can use this:
pdla> $a(2:9:2) $PDLA1 = [2 4 6 8];
PDLA::NiceSlice uses Perl source preprocessing. If you need 100% pure Perl compatibility, use the slice method instead.
PDLA::NiceSlice
PDLA::NiceSlice, Devel::REPL, PDLA::Perldl
PDLA::Perldl
Chris Marshall, <chm at cpan dot org>
<chm at cpan dot org>
Copyright (C) 2010 by Christopher Marshall
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install PDLA::Core, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PDLA::Core
CPAN shell
perl -MCPAN -e shell install PDLA::Core
For more information on module installation, please visit the detailed CPAN module installation guide.