in the second example code block in the line
print <http://perldoc.perl.org/functions/print.html> "# Add this line to the top\n"; # <--- HERE'S THE MAGIC
there is the file handle $out missing, that output will go to standard output, not to the target file. The same problem is also in the 3rd code block, line
print <http://perldoc.perl.org/functions/print.html> "# Add this line to the top\n";
Mit freundlichen Grüßen
Steffen Zahn
--
In article
<84AF44A69FF1EA49B3F...@DEMUEXC035.nsn-intra.net>,
Zahn, Steffen (NSN - DE/Berlin) <steffe...@nsn.com> wrote:
> Hello,
>
> in the topic
> http://perldoc.perl.org/perlfaq5.html#How-do-I-change%2c-delete%2c-or-insert-a-
> line-in-a-file%2c-or-append-to-the-beginning-of-a-file%3f
>
This was fixed already. You can always check faq.perl.org for the
latest version.
Thanks, :)