Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perl on a Macintosh

Status
Not open for further replies.

tbohon

Programmer
Apr 20, 2000
293
US
Is there any way to launch a Perl program on a Mac OS/X 10.x by using a desktop icon? I've tried a couple of things without success. On a PC I just create a shortcut to a command line session and have it execute the program automatically - but I can't figure out how to do the same thing on a Mac.

Thank in advance as always.

Tom

"My mind is like a steel whatchamacallit ...
 
On Windows what you would do is set the shortcut path to...

Code:
C:\Perl\bin\perl.exe "C:\path\to\perl\script.pl"

Can you do something similar for Mac?

-------------
Cuvou.com | The NEW Kirsle.net
 
I haven't used a Mac in a while but I think all you have to do is to change the permission of the Perl script to executable and you will be able to launch it by double clicking.
 
the path to perl at the top of the script will be important in this context

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top