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

a condition that is always true?

Thread Next
Nicholas Clark
January 29, 2009 15:34
a condition that is always true?
Message ID:
win32/ has this:

(my $ext = getcwd()) =~ s{/}{\\}g;
my $code;
FindExt::set_static_extensions(split ' ', $Config{static_ext}) if $ext ne "ext";

The call to FindExt::set_static_extensions() was added here:

Surely $ext ne "ext" is always true, as the return value of getcwd() will
always be a fully qualified path?

Nicholas Clark

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About