delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/12/11/07:01:22

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: "Michael Kairys" <kairys AT comcast DOT net>
Subject: Re: Wish Setup would accept my Perl
Date: Tue, 11 Dec 2007 06:56:52 -0500
Lines: 33
Message-ID: <fjlttd$pek$1@ger.gmane.org>
References: <loom DOT 20071105T183528-568 AT post DOT gmane DOT org> <loom DOT 20071206T171108-921 AT post DOT gmane DOT org> <alpine DOT DEB DOT 0 DOT 82 DOT 0712061353080 DOT 18424 AT pilot DOT trilug DOT org> <loom DOT 20071206T192047-253 AT post DOT gmane DOT org> <loom DOT 20071207T213211-833 AT post DOT gmane DOT org> <fjd50u$sud$1 AT ger DOT gmane DOT org>
Mime-Version: 1.0
In-Reply-To: <fjd50u$sud$1@ger.gmane.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

"Andrew DeFaria" <Andrew AT DeFaria DOT com> wrote in message
news:fjd50u$sud$1 AT ger DOT gmane DOT org...

> Well that tells you that your previous invocations of system and backquote 
> constructs were not portable to start with. It would be far better to 
> centralize such things to a subroutine to try to mitigate the portability 
> issues. Then again if you are gonna call programs that just don't exist on 
> anything but Windows you will have a problem. But perhaps you can do it in 
> a more "posix" way. And if all else fails you can call the cmd built in 
> with "cmd /c <command>".

Yes, I've done that in most cases, and tested $^O to know what to do. In the
case I noticed I was calling a Windows program by a Windows path and had no
reason to write it differently. So if I want to run that particular script
under Cygwin Perl I could branch to an sh-compatible call, or actually I
rather like the idea of "standardising" on system("cmd /c
...") even if it does waste a cmd.exe invocation :)

> As I said I don't know exactly why your Tk isn't working. I do know that 
> Tk under Cygwin assumes a running X server. I rarely run an X server - I 
> simply use rxvt instead - so I don't like that requirement. I also work 
> with IBM/Rational products and often need to run ccperl or cqperl - both 
> of which are AS based. And they have Tk in there that works straight on 
> Windows (like rxvt does if it senses there is no X server running - I wish 
> Cygwin's Perl::Tk would do that!).

Actually I had no idea - and I must say that rather dissuades me from using
it. I have no other need for an X server, and I quite like the way AS
Perl/Tk gives me Windows controls on Windows and X widgets on X. (I have
installed AS Perl on Solaris and run some of my Perl/Tk scripts there
without problem. Thanks for pointing that out.



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019