Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

small correction in http://perldoc.perl.org/perlfaq5.html

0 views
Skip to first unread message

Steffen Zahn

unread,
Jun 12, 2009, 8:17:14 AM6/12/09
to perlfaq...@perl.org

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

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
--

Brian D Foy

unread,
Jun 13, 2009, 8:06:03 PM6/13/09
to perlfaq...@perl.org, "Zahn, Steffen NSN - DE/Berlin"
[[ This message was both posted and mailed: see
the "To," "Cc," and "Newsgroups" headers for details. ]]

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, :)

0 new messages