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

Reply via email to