Hyer, Dr. Edward wrote:
> 'perldl' shell was working, except that it gave ^[[ crud when I tried to
> use arrow keys. Also, no history and no file completion. The man page
> told me that I could load some modules and get command history, so I set
> up a .perldlrc:
>
> use Term::ReadLine;
> use PDL::AutoLoader;
> $PERLDL::HISTFILESIZE=1000;
>
> This caused perldl do load, but then respond like this:
>
> h...@cal ~> 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 /users/hyer/.perldlrc...
> Type 'demo' for online demos
> Loaded PDL v2.4.4 (supports bad values)
> perldl> help demo
> String found where operator expected at (eval 29) line 4, near "help
> 'demo'"
> (Do you need to predeclare help?)
> syntax error at (eval 29) line 4, near "help 'demo'"
>
>
> I had to delete .perldlrc to get back to the old behavior.
>
> Can someone point me to the correct setup for .perldlrc to get command
> history working?
>
> P.S. If running perldl inside an emacs shell is better, that is also an
> option for me.
>
> Thanks,
>
> --Edward H.
>
> P.P.S. 'man perldl' has this to say: "If you have the perl modules
> ReadLines and ReadKeys installed, then perldl supports a history and
> line-editing mechanism..." Modules by those names are nowhere referred
> to outside of PDL documentation. I guessed that this actually refers to
> Term::ReadLine and Term::ReadKey, is this correct?
>
If you start your ~/.perldlrc with
require('PDL/default.perldlrc');
does that help?
There's a sample .perldlrc on the wiki, linked from The_PDL_environment
cheers,
Derek
re: p.s.:I've never run perldl in an emacs shell--that's a new one for me!
re: p.p.s.: that is correct. I also have Term::ReadLine::Perl
installed. I think it all came with an 'cpan> install Bundle::CPAN'.
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl