Help! I can't figure out how to use Perl on my computer?

sunshine!

New member
I need to learn Perl quickly and I can't get programs running properly on my computer. I am using Mac OS X.. I want to be able to type entire programs and save them as a file, and then have the terminal read from the file. How do I do this?? Do I have to save as .pl file and how do I do that, what kind of text editor could I use? Hopefully somebody knows what I'm talking about!
 
You can use any text editor, save the Perl script with a .pl extension, and then run it from the command line, e.g.

% perl -w my_perl_script.pl

BTW, I recommend the free text editor TextWrangler.
 
Back
Top