When working on NEWS, we were prefixing all lines (but the first) with a "1".
Join wants a "" for empty string, not //.
Copyright © 2009 CNRS
-Copyright © 2009-2013 Inria. All rights reserved.
+Copyright © 2009-2014 Inria. All rights reserved.
Copyright © 2009-2013 Université Bordeaux 1
Copyright © 2009-2011 Cisco Systems, Inc. All rights reserved.
my $newf = "$f.new-copyright";
unlink($newf);
open(FILE, ">$newf") || die "Can't open file: $newf";
- print FILE join(//, @lines);
+ print FILE join("", @lines);
close(FILE);
# Now replace the old one