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

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

From:
Craig A. Berry
Date:
October 22, 1999 22:07
Subject:
[PATCH 5.005_62] remove case sensitive match from defsubs_h.PL
Message ID:
v04210107b436e872a3bc@[172.16.246.86]
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)
 #!perl
-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                   
mailto:craig.berry@metamor.com



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