small correction in http://perldoc.perl.org/perlfaq5.html
[email protected] ("Zahn, Steffen (NSN - DE/Berlin)") Fri, 12 Jun 2009 14:17:14 +0200
| Newsgroups | perl.perlfaq.workers |
|---|---|
| Message-ID | <[email protected]> |
------_=_NextPart_001_01C9EB57.B8758D0A
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello,
in the topic =
http://perldoc.perl.org/perlfaq5.html#How-do-I-change%2c-delete%2c-or-ins=
ert-a-line-in-a-file%2c-or-append-to-the-beginning-of-a-file%3f
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=FC=DFen=20
Steffen Zahn=20
--=20
------_=_NextPart_001_01C9EB57.B8758D0A--