This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add an optional third argument to open_new(), to invoke read_only_top() with.
[perl5.git] / regen / regcomp.pl
index abfb8cb..6ed84f3 100644 (file)
@@ -125,10 +125,8 @@ EXTCONST U8 PL_${varname}_bitmask[] = {
 EOP
 }
 
-my $out = open_new('regnodes.h');
-
-print $out read_only_top(lang => 'C', by => 'regen/regcomp.pl',
-                        from => 'regcomp.sym');
+my $out = open_new('regnodes.h', '>',
+                  { by => 'regen/regcomp.pl', from => 'regcomp.sym' });
 printf $out <<EOP,
 /* Regops and State definitions */