On the Emacs on the pc's in school we can use 'F5' to run a selected piece of perl code. However, when im trying to do this at home it fails. I have installed Emacs and Activeperl on my windows7 machine.
Whenever i try to run a piece of code i get the error 'F5 is undefined'. However, when i look into the .Emacs file i see that the F5 function key is correctly binded to the function perl-eval. This afternoon it worked by putting (defalias 'perl-mode 'cperl-mode)
in my .Emacs file, but when i tried to write code this evening i received again the error 'f5 is undefined'.
Anyone who can help me with this subject? I know i can run my perl code with the cmd tool, but it's much easier when i can run directly from my Emacs :).