I'm learning how to use Perl in Emacs. I used to run R with R-Studio.
How do I execute a command without leaving Emacs?
Example: In R-studio I type
print("hello world")
and press Ctrl+Enter and R-studio executes the command and prints "hello world"
.
How do I do the same in Emacs for a Perl command?
I usually type Ctrl+X Ctrl+F test.pl
print "hello world";
and then I don't know what to do for Emacs to execute the command.