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

[PATCH] t/, which_perl, VMS

Thread Next
Craig A. Berry
May 30, 2002 20:13
[PATCH] t/, which_perl, VMS
Message ID:
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/;-0	Tue May 28 08:26:51 2002
+++ t/	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

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

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