This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
don't write along symlinks into a read only source tree (was Re: [ID 20010129.006...
[perl5.git] / embed.pl
index a3bedba..fcee010 100755 (executable)
--- a/embed.pl
+++ b/embed.pl
@@ -29,6 +29,7 @@ sub walk_table (&@) {
        $F = $filename;
     }
     else {
+       unlink $filename;
        open F, ">$filename" or die "Can't open $filename: $!";
        $F = \*F;
     }