This may not be the answer you are looking for..  
but why not just have PH office do the development 
and maintenance of the CGI scripts under Linux/UNIX?
Use a separate Linux machine and then have developers
login to do the development.

And there seems to be this company policy that you cannot 
change your Windows XP to a Linux distro....well just download 
the free VMWare Server and run the Linux/UNIX of your choice.



--- On Mon, 12/1/08, Ludwig Isaac Lim <[EMAIL PROTECTED]> wrote:
From: Ludwig Isaac Lim <[EMAIL PROTECTED]>
Subject: [plug] Cross Platform CGI (in Perl) Development?
To: "PLUG PLUG" <[email protected]>
Date: Monday, December 1, 2008, 2:39 PM

Hi:

    Scenario:
    The deployment server (in Unix) is somewhere in United Stated. Using ssh /
vi (no VIM, yuck)
to edit CGI scripts is inefficient due to the distance not to mention I have to
use vi (VIM is
fine). But the machine in my office  is running on  Windows XP. I already have
an Apache / Perl in
my Windows machine, and I can execute Perl CGI on my Windows Apache Server.

    Problem:
    Everytime I want to deploy, I need to change the following lines:
        #!C:/Perl/bin/Perl               # Windows XP
    
     to 
         #!/opt/perl/bin/perl            # Unix


    Is there a better way of doing it, short of reformatting my PC to Linux
(Not allowed)? :)

    Question #2:
        Similar to above question, Is there a way of doing the following:


BEGIN
{
    if ( platform is Unix/Linux) {
        push @INC, ".....";             # add Unix path to @INC
    elsif (platform is Windows) {
        push @INC< "....";              # add Windows path to @INC
}

Regards,
Ludwig



      
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph



      
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph

Reply via email to