This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Executing a perl script from Windows 7
- From: Peter Holsberg <pjh42 at pobox dot com>
- To: cygwin at cygwin dot com
- Date: Sun, 09 Mar 2014 14:08:37 -0400
- Subject: Executing a perl script from Windows 7
- Authentication-results: sourceware.org; auth=none
Hi,
I have a perl script that I would like to execute simply by
double-clicking on its name from a Windows filemanager window. (That is,
I do not want to use the command line at all, nor do I want to use an icon.)
Eg, myscript.pl
I tried using this
#!C:\cygwin64\bin\perl.exe
as the first line in the script but when I double-click the script,
Windows opens it in a text editor. (I suppose I have .pl associated with
that editor!)
How do I fix this?
Thanks.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple