Hi Dennis,
You really should be in the Perl game with a tool like BBEdit. I've stopped saying much about it because it probably does cost too much. However, it's a superb script development environment and since you already own it, you should definitely take advantage of it. The latest version supports text clippings, which is the latest rage. It actually already had essentially the same capability in its Glossary mechanism but it's easier to use in the current form.
BBEdit is also extremely flexible, with a vast array of preferences. In fact I think one warrants your attention. If you are going to use BBEdit to write scripts or edit system files, you want the default line endings to be UNIX, "LF." In BBEdit's preferences, select the "Text Files" pane and under "Default line breaks:", check "UNIX (LF)."
--
Gary
~~~~
They have been at a great feast of languages,
and stolen the scraps.
-- William Shakespeare, "Love's Labour's Lost"