develooper Front page | perl.vmsperl | Postings from May 2002

[PATCH] t/test.pl, which_perl, VMS

Thread Next
From:
Craig A. Berry
Date:
May 30, 2002 20:13
Subject:
[PATCH] t/test.pl, which_perl, VMS
Message ID:
a0511170ab91c997b6866@[172.16.52.1]
The $^X discussion led me to discover that we had $Config{_exe} 
missing, and fixing that led me to discover that we really shouldn't 
be using it the way which_perl does because the Perl we use to run 
the test suite doesn't have any extension at all.  The patch below 
fixes the second of two compensating errors and gets all tests 
passing again.


--- t/test.pl;-0	Tue May 28 08:26:51 2002
+++ t/test.pl	Thu May 30 21:26:02 2002
@@ -433,6 +433,9 @@
     unless (defined $Perl) {
 	$Perl = $^X;
 	
+	# VMS should have 'perl' aliased properly
+	return $Perl if $^O eq 'VMS';
+
 	my $exe;
 	eval "require Config; Config->import";
 	if ($@) {
[end of patch]
-- 
________________________________________
Craig A. Berry
mailto:craigberry@mac.com

"... getting out of a sonnet is much more
 difficult than getting in."
                 Brad Leithauser

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