loosid has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to configure E-Macs to use Perl but for some
reason it won't read in user input. For example, the code:
print "what's your name? ";
$name = <stdin>;
print "hello, $name!\n";
has the following output in emacs:
what's your name? hello, !
This script works on a command prompt, but not in emacs. Any
help would be much appreciated.
In most .emacs setups, M-! (ie executing a shell command) invokes a non-interactive shell. usually this is because you use this to run non-interactive tasks, ie no stdin , just a command (like make).
What you want to do is open a shell in a new frame, not run a shell command. I'm not if there's a default key binding for this, but since i use xemacs i can just click on the "Tools" menu. Although i find a real shell to be much nicer than an emacs one :-)