Port regen/regen_lib.pl to 5.6.2
authorFather Chrysostomos <sprout@cpan.org>
Sun, 25 Dec 2011 00:27:47 +0000 (16:27 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 25 Dec 2011 03:04:53 +0000 (19:04 -0800)
Since the regen scripts use the system perl, I thought I might as
well test regen/feature.pl with 5.6.2, the earliest I have installed.
It failed.

regen/regen_lib.pl

index dcee0a6..a575c97 100644 (file)
@@ -52,7 +52,7 @@ sub open_new {
     *{$fh}->{final_name} = $final_name;
     *{$fh}->{lang} = $lang;
     binmode $fh;
-    print $fh read_only_top(lang => $lang, %$header) if $header;
+    print {$fh} read_only_top(lang => $lang, %$header) if $header;
     $fh;
 }