perldlpp.pl

Script to filter PDL::NiceSlice constructs from argument file to STDOUT

perldlpp.pl file-w-niceslice.pm > file-no-niceslice.pm       ( unix systems)
perl perldlpp.pl file-w-niceslice.pm > file-no-niceslice.pm  (win32 systems)

perldlpp.pl is a preprocessor script for perl module files to filter and translate the PDL::NiceSlice constructs. The name of the file(s) to be filtered is given as argument to the command and the result of the source filtering is output to STDOUT.

One use for this script is to preprocess the .pm files installed for PDL to remove the requirement for PDL::NiceSlice filtering in the core PDL modules. This allows PDL to be used with environments such as perlapp that are not compatible with source code filters.

It is planned to add Makefile support for this filter to the PDL configure, build, and install process.

# For example (using the unix shell):
mkdir fixed

# filter all pm files in this directory into fixed/
for pm in *.pm ; do perldlpp.pl $pm > fixed/$pm ; done

Now the fixed/*.pm files have been PDL::NiceSlice processed
and could be used to replace the original input files as
"clean" (no source filter) versions.