Robert Mark White wrote at Fri, 22 Aug 2003 23:37:48 -0600: > I see the "#!/usr/bin/perl -w" at the top of all programs. > I have read it tells perl where to run the program.
No, it usually tells the (*nix) shell what program has to start - in this case /usr/bin/perl - and with what kind of arguments - -w -. The shell then passes all lines but this first one as STDIN to the called program, in this case perl. > This information I assume refers to a *nix box directory structure. > I am using windows and using activeperl > I think that it may mean I should use #!c:/perl -w, > or am I completely lost here? Well, the windows shell (dos box) doesn't interpret the shebang line #!..., so it doesn't play that important role whether /usr/bin/perl is written or c:/perl. However I personally would prefer to write #!/usr/bin/perl even on windows as it doesn't matter for windows, but is more likely to run also on *nix machines > Does the #! command mean anything in windows/activeperl programing? Yes, allthough windows itself doesn't interpret this line, perl still scans it. E.g. it looks for the -w switch or any other possible arguments on the #! line. (I believe, perl expects also that the substring "perl" is in the #! line for interpreting, otherwise it assumes the #... line is really only a commentar) > c:/perl is where it is located on my machine, > or do I just do it like everyone else for standards sake? > I can not imagine anyone using a *nux box wanting my programs! Why? Does your program something very operating system specific? Unless it is an extra work, it's always a good habit to work with standards and intercompability. You can't loose anything but perhaps winning in one day some time. Greetings, Janek -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]