Hi Antonio:  I do these installs manually, since I maintain my own 
PDL+packages distribution.  I would bet you could do it from CPAN, though.

--Doug

[email protected]
Software Engineer
UCAR - COSMIC, Tel. (303) 497-2611

On Fri, 2 Oct 2009, Antonio Hales wrote:

> Thanks Doug,
>
> You do this from CPAN ?
>
> Thanks
> a
>
> Doug Hunt wrote:
>> Hi Antonio:  In my experience, you do not need to set up a perldlrc and 
>> 'use Term::ReadLine' to get history to work.  You just need to install the 
>> Term:: packages on your system.
>> 
>> The perldl shell will detect its presence and use it automatically.
>> 
>> I install these two packages on my systems:
>> 
>> TermReadKey
>> Term-ReadLine-Perl
>> 
>> And when I fire up 'perldl', all works as expected.
>> 
>> Regards,
>>
>>   Doug Hunt
>> 
>> 
>> 
>> [email protected]
>> Software Engineer
>> UCAR - COSMIC, Tel. (303) 497-2611
>> 
>> On Fri, 2 Oct 2009, Antonio Hales wrote:
>> 
>>> Hi,
>>> 
>>> I cant get neither history nor file completion to work. This is what I
>>> have in my perdlrc:
>>> 
>>> require('PDL/default.perldlrc');
>>> 
>>> use PDL;
>>> use PDL::Dbg;  # Enable useful commands
>>> use PDL::AutoLoader;
>>> use Term::ReadLine;
>>> #use Term::ReadKeys;
>>> $PERLDL::HISTFILESIZE=1000;
>>> 
>>> #use PDL::Lite; # Alternative to above for hard-core freaks
>>> 
>>> # PDL waffle options (and pacify -w)
>>> BEGIN{
>>>   $PDL::debug = $PDL::debug = 0;
>>>   $PDL::verbose = $PDL::verbose = 1;
>>> }
>>> 
>>> use PDL::Doc::Perldl; # online docs module
>>> 
>>> 1;
>>> 
>>> 
>>> Any hints ?
>>> A
>>> 
>>> Derek Lamb wrote:
>>>> 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
>>>> 
>>> 
>>> -- 
>>> -----------------------------
>>> Dr. Antonio  Hales
>>> ALMA Commissioning Scientist
>>> Joint ALMA Office
>>> Av Apoquindo 3846 Piso 19
>>> Santiago - Chile
>>> -----------------------------
>>> (+56) 2 467 6236
>>> (+56) 9 6 2062609
>>> -----------------------------
>>> 
>>> 
>>> _______________________________________________
>>> Perldl mailing list
>>> [email protected]
>>> http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
>>> 
>
> -- 
> -----------------------------
> Dr. Antonio  Hales ALMA Commissioning Scientist                Joint ALMA 
> Office                           Av Apoquindo 3846 Piso 19 
> Santiago - Chile
> -----------------------------
> (+56) 2 467 6236
> (+56) 9 6 2062609 -----------------------------
>

_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to