develooper Front page | perl.perl5.porters | Postings from February 2009

RE: a condition that is always true?

Thread Previous | Thread Next
From:
Yitzchak Scott-Thoennes
Date:
February 8, 2009 23:54
Subject:
RE: a condition that is always true?
Message ID:
47471.97.113.81.201.1234166050.squirrel@webmail.efn.org
On Fri, January 30, 2009 9:56 am, Steve Hay wrote:
> Nicholas Clark wrote:
>
>> win32/buildext.pl has this:
>>
>> (my $ext = getcwd()) =~ s{/}{\\}g;
>> my $code; FindExt::scan_ext($ext);
>> FindExt::set_static_extensions(split ' ', $Config{static_ext}) if
>> $ext ne "ext";
>>
>> The call to FindExt::set_static_extensions() was added here:
> http://perl5.git.perl.org/perl.git/commitdiff/3fd041e4c6b6a291992aea064f
> 6ddbb6882443a0?hp=a80036c632e9a590837ce173395af69d6c7c2ed5
>
>> Surely $ext ne "ext" is always true, as the return value of getcwd()
>> will always be a fully qualified path?
>
> Yes, I agree. And I tried it out for good measure too.

I can offer no explanation.  Sorry :(



Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About