----- Original Message ----- From: "hernan gonzalez" <[email protected]> To: "Craig DeForest" <[email protected]> Cc: <[email protected]> Sent: Monday, February 23, 2009 5:51 AM Subject: Re: [Perldl] rint
> I'm using ActivePerl, on Windows XP, I got PDL with the Perl Package > Manager If you installed the ActiveState ppm package, try installing the Uwinnipeg ppm package instead. First, 'ppm remove PDL', then : ppm install http://cpan.uwinnipeg.ca/PPMPackages/10xx/PDL.ppd > (I'm using Eclipse with EPIC, but here's the command line result) : I have the same 'perl -V' as you, but no Eclipse or EPIC. Could they be the cause of the problem ? > > C:> perldl > perlDL shell v1.35 > PDL comes with ABSOLUTELY NO WARRANTY. For details, see the file > 'COPYING' in the PDL distribution. This is free software and you > are welcome to redistribute it under certain conditions, see > the same file for details. > ReadLines, NiceSlice, MultiLines enabled > Reading PDL/default.pdl... > Unable to find PDL/pdldoc.db in C:/Perl/site/lib:C:/Perl/lib:. > Type 'demo' for online demos > Loaded PDL v2.4.4 (supports bad values) > > Note: AutoLoader not enabled ('use PDL::AutoLoader' recommended) > > perldl> $w= (sequence 10)/4; > perldl> print $w,"\n"; > [0 0.25 0.5 0.75 1 1.25 1.5 1.75 2 2.25] > perldl> print rint ($w) ,"\n"; > [6015 6015 6015 6015 6015 6015 6015 6015 6015 6015] > ====================================== C:\_32>perl -MPDL -le "print $PDL::VERSION" 2.4.4 C:\_32>perldl.bat perlDL shell v1.35 PDL comes with ABSOLUTELY NO WARRANTY. For details, see the file 'COPYING' in the PDL distribution. This is free software and you are welcome to redistribute it under certain conditions, see the same file for details. ReadLines, NiceSlice, MultiLines enabled Reading PDL/default.pdl... Found docs database C:/_32/ap1004/site/lib/PDL/pdldoc.db Type 'help' for online help Type 'demo' for online demos Loaded PDL v2.4.4 (supports bad values) Note: AutoLoader not enabled ('use PDL::AutoLoader' recommended) perldl> $w= (sequence 10)/4; perldl> print $w, "\n"; [0 0.25 0.5 0.75 1 1.25 1.5 1.75 2 2.25] perldl> print rint ($w), "\n"; [0 0 0 1 1 1 2 2 2 2] ======================================= Note that my PDL/pdldoc.db was found. (I don't think that accounts for the difference.) I had to invoke the perldl shell as 'perldl.bat'. Invoking it as simply 'perldl' produced the error "No Perl script found in input". (Not sure why that happened ... perhaps it's something peculiar to my installation.) Cheers, Rob _______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
