This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Wish Setup would accept my Perl

Michael Kairys wrote:

I want to type "perl" at the Bash prompt


I suppose I could rewrite my Bash aliases so "foo" equals "/c/Perl/bin/perl"

The solution is to break your habit of saying "perl".

If the first line of a text file begins with "#!" and a valid path name to an executable follows it, Cygwin -- like any *ix -- will consider the executable to be the interpreter for that file, and pass the script as the first argument to the interpreter. So, if you put:


at the top and run it with the command "" from a Cygwin Bash prompt, you get Cygwin perl. No need to reference perl explicitly.

If you find that you still need ActiveState Perl, you can use Windows Explorer to associate .pl with it. Then if you run from a Run box, an Explorer window, or a cmd.exe prompt, you get AS Perl.

None of this helps if you want to use AS Perl from Cygwin or vice versa, of course.

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]