Command history in the perl debugger
I’m always forgetting what pieces I need to make this happen, so I’m writing a note to my future self.
Ubuntu Packages
Install:
- libncurses-dev
- libreadline-dev
Perl Packages
Install:
- Term::ReadLine::Gnu
Save a little time with puppet
Include these somewhere and run a puppet update
class libncurses-dev {
package { libncurses-dev: ensure => latest }
}
class libreadline-dev {
package { libreadline-dev: ensure => latest }
}
Save the history to a file
Add this to ~/.perldb
&parse_options("HistFile=$ENV{HOME}/.perldb.hist");
I'll just leave it here:
http://www.mathematik.tu-darmstadt.de/~langsdorf/talks/2012_YAPC::EU/IPL/
Thanks for that komarov. Useful!