Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: command line tools

by JadeNB (Chaplain)
on Dec 29, 2009 at 07:59 UTC ( #814709=note: print w/replies, xml ) Need Help??

in reply to command line tools

This really doesn't seem like a Perl question.

An .exe file is a file in a format that Windows knows how to execute by itself. The original source may have been written in any language, but that source has to be compiled, and the .exe is the result of the compilation. It is not intended to be human-readable.

On the other hand, a .pl file is human-readable (well, opinions differ :-) ), and Windows has no idea how to execute it directly. To run it, you have to call perl as a middle-man (or maybe it's done automatically by Windows on the basis of extensions?) to interpret it.

Replies are listed 'Best First'.
Re^2: command line tools
by cdarke (Prior) on Dec 29, 2009 at 10:23 UTC
    maybe it's done automatically by Windows on the basis of extensions?

    It is a common mis-understanding that Windows (the operating system) does this, but it does not. File extension association has to be looked-up in the registry by whatever is launching the executable, i.e. the shell or application - Windows does not do it for us. See Win32::FetchCommand.
    In theory the .exe extension is not fixed and can be changed, as can all the other file extensions. It would confuse the hell out of everyone though.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2022-12-07 15:52 GMT
Find Nodes?
    Voting Booth?

    No recent polls found