Please share with us what command you use at the command line to open/edit the file.
For example, I use vi editor for the most part, so when I open a script for editing, I do ~$ vi script.pl.
-stevieb
Comment on Re: What editing mode am I in when interacting with a Perl script using OS X Terminal? Because the keyboard works differently to a normal shell.
You don't seem to have understood the question. I'm not editing a Perl script. I'm running a Perl script which takes input from the command line. Please read the question again.