[Chicago-talk] The shebang line in windows

Patrick Fleury pfleury at medicine.bsd.uchicago.edu
Wed Oct 22 17:39:48 CDT 2003

At the last Coogan's get together, I mentioned that I thought windows now 
supported the shebang line.  Andy L. begged to disagree.  So I said I would 

Well, it sort of does and sort of doesn't.   It turns out that the line is 
irrelevant as far as I can tell.

In other words, if you set up a file with the content ...

print "Hello, world!\n"

  ..and name it "hello", then just typing C:\>hello will not run the file.

Entering C:\>perl hello  will run it.

However, if you rename the file to "hello.pl" then C:\>hello.pl will ruin 
the file.  Furthermore, if you delete the first line from hello.pl, it 
still runs.

In other words, a file named "hello.pl" just containing

print "Hello, world!\n"

will run as expected.

Just thought I'd mention it.


More information about the Chicago-talk mailing list