Everything's Easy When You Know How: Part 2

jlttb on 2001-11-15T17:46:41

We just purchased a terrific new Apple iBook. The bonus for me was the chance to try out 'native' Unix Perl in Mac OSX 10.1. The toughest part: 1) finding the Terminal application in OSX (two days--not richly documented on the iBook). 2) Finding that Apple's instructions on calling single-line perl:

To get started with Perl on Mac OS X, open a Terminal window and type:
perl -e 'print "Perl on Mac OS X\n"'

doesn't work - at least for me.

Dug out some Unix references and was able to write up a script in TextEditor (once I stopped that from saving in .rtf) and was then able to call it from the command-line with a % sh filename command. Success!

Also happened upon vi and emacs editors from the Terminal, so I've got those to play with as well. But does this mean I have to do without my in-editor syntax checking and app-running that I'm used to with Mac Perl? The adventure continues...


BBEdit

pudge on 2001-11-19T17:21:32

If you have a recent BBEdit (6.0? 6.5? whatever it is), you can run BBEdit under Mac OS X. It even comes with a command-line utility for opening files into BBEdit.