5

I have a Perl project (developed in Ubuntu 14.04) which cannot be built on perl 5.18.2, but it works on Perlbrew 5.22.0. I have tried to use M-x perldb in Emacs but it looks like Emacs calls Perl 5.18.2 by default. Is there a way to choose Perlbrew in Emacs for debugging?

s_m
  • 51
  • 3

3 Answers3

1

You can customize the command run by perldb by changing gud-perldb-command-name. Its default value is set to "perl -d".

1

These elisps may help you:

They seems to be pretty old, so please check them (I myself don't use perlbrew).

lurdan
  • 1,071
  • 7
  • 11
-1

The simplest way is probably to ensure the correct Perlbrew perl binary is used in the same way as usual for Perlbrew, and then launch Emacs in that environment.

Normally that would be something like

perlbrew switch X
perlbrew use X

See also: https://perlbrew.pl/