Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Don't ask to ask, just ask
 
PerlMonks  

Re: perl file doesn't execute

by Anonymous Monk
on Oct 15, 2011 at 06:56 UTC ( #931627=note: print w/ replies, xml ) Need Help??


in reply to perl file doesn't execute

See How do I post a question effectively?

I'm guessing your line endings are not LF or CRLF, along with your shebang, so try

#!/usr/bin/perl -- die $^X;

I think I remember seeing this once with CR line endings, but I'm not gonna check :)


Comment on Re: perl file doesn't execute
Download Code
Re^2: perl file doesn't execute
by rgiskard (Hermit) on Oct 15, 2011 at 14:03 UTC
    Perhaps subhash_fire can post some code; a lot of us are running Cygwin + Perl and can review. When you install Cygwin you get to choose file type (Unix or Dos) which really means you're choosing what kind of newline terminator you would like to use.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://931627]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2014-04-20 00:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls