The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 01-27-2009
sennex sennex is offline
Registered User
  
 

Join Date: Jan 2009
Location: at Work
Posts: 7
Multiple shebang lines

*** EDIT: I found something close to my solution under an IIS 7 Module Handle.*****


(Non-Homework question, simply an ease of use one)
Odd question here and maybe its my newness to cgi/Perl, but is it possible to have 2 shebang lines?

I write an test a ton of my homework code on my windows PC. (Vista 64, IIS 7) but when I upload I need to change the shebang line to a Linux format

Is it possible to have both running? or to trick out IIS 7 to think its Unix.

#!/usr/bin/perl
#!c:/perl64/bin/perl.exe


Its only 2 minutes worth of work, and I admit to being lazy.

Last edited by sennex; 01-27-2009 at 11:07 AM..