delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
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 |
content-class: | urn:content-classes:message |
MIME-Version: | 1.0 |
Subject: | Perl's "do" operator with varieties of absolute paths |
Date: | Wed, 7 Jul 2004 23:49:31 +0200 |
Message-ID: | <FD6CA6C74666E546981AEBE7F147C512886C25@mx-dk1.dk.vitesse.com> |
X-MS-Has-Attach: | |
X-MS-TNEF-Correlator: | |
From: | =?iso-8859-1?Q?Ren=E9_B=2E_Nielsen?= <rbn AT vitesse DOT com> |
To: | <cygwin AT cygwin DOT com> |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |