What is wrong editing with vi in UNIX? Fact is no VIM in UNIX and that
simplicity works fine and its not inefficient, no need of blinking or
color highlighted text. I can presume that you are used to Bash and
having a hard time to navigate around with set -o vi and expecting tab
completion to work. I will not be surprised if you user account shell
is Korn you may just need to modify your user profile to suit up what
you need.
Woody Allen - "I will not eat oysters. I want my food dead. Not sick.
Not wounded. Dead."
On Mon, Dec 1, 2008 at 12:39 AM, Ludwig Isaac Lim <[EMAIL PROTECTED]> wrote:
>
> 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