Using a perl cgi script in windows

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chanshaw
    New Member
    • Nov 2008
    • 67

    #1

    Using a perl cgi script in windows

    Ok in linux the first line in your script is

    Code:
    #!/usr/bin/perl -w
    What is it on windows if your perl directory is in c:\perl
  • eWish
    Recognized Expert Contributor
    • Jul 2007
    • 973

    #2
    The path would be something like this:
    Code:
    #!c:\perl\perl.exe

    Comment

    • numberwhun
      Recognized Expert Moderator Specialist
      • May 2007
      • 3467

      #3
      Also know that when coding Perl in the Windows world, the she-bang line (that first line in the script) is not read unless Perl is triggered with the -T option (at least I do remember reading that somewhere).

      I know you have cgi in the subject, but wanted to point that out.

      Regards,

      Jeff

      Comment

      Working...