Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Subject: Perl's "do" operator with varieties of absolute paths Date: Wed, 7 Jul 2004 23:49:31 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: From: =?iso-8859-1?Q?Ren=E9_B=2E_Nielsen?= To: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id i67LnaNN028211 Hello there, Hope one of you guys can help me out here. I've discovered the following oddity with Cygwin Perl v. 5.8.2's "do" operator: The following two forms of "do" do work: do "c:\\foo.pl"; do "/cygdrive/c/foo.pl"; The following doesn't: do "c:/foo.pl"; The funny thing is that almost any other Perl function/operator works with the latter form. The following, for instance, does NOT die (given that c:\foo.pl exists, of course): die 'c:/foo.pl does not exist' if not -f 'c:/foo.pl'; Also, other Cygwin programs handle the form well. For instance eval `cat u:/foo.pl`; also works well. What is the problem with the "do" operator? Any help is highly appreciated. /René Bøje Nielsen -- 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/