How to save as a .pl

Joined
Jan 31, 2009
Messages
49
Reaction score
0
Points
6
I installed perl but I cannot save as .pl its always bla.pl .rtf

I'm saving with TextEdit. How can I save as .pl?
 

vansmith


Retired Staff
Joined
Oct 19, 2008
Messages
19,966
Reaction score
606
Points
113
Location
Queensland
Your Mac's Specs
Too many devices to list
Perl is installed by default ;).

You should be using an editor more suited for the job. I recommend something like Smultron although you could look into using something like TextMate, BBEdit, TextWrangler or even Eclipse with EPIC (Perl dev env for Eclipse).

The problem with TextEdit is that it is a rich text editor which will greatly problematize your code as the files you save will be saved with rich text. You need to save your files as plain text which is easily done with the aforementioned editors.
 

vansmith


Retired Staff
Joined
Oct 19, 2008
Messages
19,966
Reaction score
606
Points
113
Location
Queensland
Your Mac's Specs
Too many devices to list
Yes, you need to save your scripts as plain text. If you use an editor for programming, this will be the default.
 
Joined
Mar 17, 2008
Messages
6,879
Reaction score
191
Points
63
Location
Tucson, AZ
Your Mac's Specs
Way... way too many specs to list.
vi is also installed by default ;)

Course, it's not as visual as it's name would suggest.
 

vansmith


Retired Staff
Joined
Oct 19, 2008
Messages
19,966
Reaction score
606
Points
113
Location
Queensland
Your Mac's Specs
Too many devices to list
vi is also installed by default ;)

Course, it's not as visual as it's name would suggest.
So is emacs but we shouldn't be frustrating him anymore than he already is ;).
 

vansmith


Retired Staff
Joined
Oct 19, 2008
Messages
19,966
Reaction score
606
Points
113
Location
Queensland
Your Mac's Specs
Too many devices to list
nano/pico are pretty straightforward as all the shortcuts are listed at the bottom of the screen. less/more just show the contents of a file.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top