A Suitable Text Editor
You’ll need one more tool in order to begin
working magic with Perl: a text editor.
Actually, you’ll probably want two of them because you will be writing your Perl scripts in two different places. Sometimes you will write them on your desktop PC (or Mac), then will transfer them to your ISP’s Unix server using an FTP program (like WS_FTP for the PC, or Fetch for the Mac). Other times you will create your scripts right there on the Unix machine using a Unix text editor.
Tip
Because FTP is an unencrypted protocol, it is prone to the same security problems as Telnet is. For that reason, you may wish to investigate using an encrypted protocol for your file transfers. Martin Prikryl’s WinSCP (http://winscp.vse.cz/eng/) offers a nice Windows implementation of the secure scp protocol (which uses ssh for security) to do file transfers. For Mac users, the aforementioned NiftyTelnet (http://andrew2.andrew.cmu.edu/dist/niftytelnet.html) also does scp file transfers. (Mac users running OS X can also use the scp command-line program directly.)
The traditional text editors used in the Unix environment are
emacs
and
vi
(the latter pronounced
“vee-eye”). Both are extremely powerful and
full-featured. Both can also be a bit intimidating for beginners.
Because of that, I’m actually going to focus on a simpler
(albeit less powerful) editor called
pico
for this book’s
text-editing-under-Unix examples. If pico is not available on your system, you may need to buckle down and ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access