develooper Front page | perl.perl5.porters | Postings from October 1999

[PATCH 5.005_62] remove case sensitive match from defsubs_h.PL

Craig A. Berry
October 22, 1999 22:07
[PATCH 5.005_62] remove case sensitive match from defsubs_h.PL
Message ID:
This fixes a problem on VMS where __FILE__ returns a lower-cased filename so the match fails and ends up causing the include file to be created with a zero-length name (and thus invisible to the compiler during the build).  I don't see any reason for this to be case sensitive anywhere else either, but if someone really objects we can always put an "if $^O eq 'VMS'" in there somewhere.

--- ext/B/defsubs_h.PL_ORIG     Fri Oct 22 23:22:19 1999
+++ ext/B/defsubs_h.PL  Fri Oct 22 23:21:51 1999
@@ -2,7 +2,7 @@
 # this file as a template for defsubs.h
 # Extracting defsubs.h (with variable substitutions)
-my ($out) = __FILE__ =~ /(^.*)\.PL/;
+my ($out) = __FILE__ =~ /(^.*)\.PL/i;
 $out =~ s/_h$/.h/;
 open(OUT,">$out") || die "Cannot open $file:$!";
 print "Extracting $out...\n";

### end of patch
Craig A. Berry           Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About