X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: "Michael Kairys" <kairys@comcast.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.20071105T183528-568@post.gmane.org>  <loom.20071206T171108-921@post.gmane.org> <alpine.DEB.0.82.0712061353080.18424@pilot.trilug.org> <loom.20071206T192047-253@post.gmane.org> <loom.20071207T213211-833@post.gmane.org> <fjd50u$sud$1@ger.gmane.org>
Mime-Version:  1.0
Content-Type:  text/plain; 	format=flowed; 	charset="iso-8859-1"; 	reply-type=response
Content-Transfer-Encoding:  7bit
In-Reply-To: <fjd50u$sud$1@ger.gmane.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com


"Andrew DeFaria" <Andrew@DeFaria.com> wrote in message
news:fjd50u$sud$1@ger.gmane.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/

