public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Executing a perl script from Windows 7
@ 2014-03-09 19:22 Peter Holsberg
  2014-03-09 20:16 ` Max Polk
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Peter Holsberg @ 2014-03-09 19:22 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-03-20  2:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-09 19:22 Executing a perl script from Windows 7 Peter Holsberg
2014-03-09 20:16 ` Max Polk
2014-03-09 21:50   ` Peter Holsberg
2014-03-10  2:25     ` Andrey Repin
2014-03-16  0:00 ` Reini Urban
2014-03-20 15:02 ` Linda Walsh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).