in reply to Pretty cool link extractor.

Others have commented on your code. I just wanted to mention something about the comments in your code.

It's much better to make a block comment before a section to describe what the section is doing, and leave out all the single-line comments that are obvious from the code. For instance, "#Path to perl interpreter" and "#Open the file links.txt for appending" are obvious from the code and should be eliminated. They only clutter up the code itself, and make it more difficult to follow the flow of the program.

The Practice of Programming by Kernigan & Pike has a chapter that goes over basic coding style, and is an excellent guide for good commenting.

Replies are listed 'Best First'.
Re: Re: Pretty cool link extractor.
by DigitalKitty (Parson) on Mar 26, 2002 at 20:38 UTC
    To all.
    Thanks for the feedback. Since I am still learning perl, my well intentioned ideas will sometimes be a 'bit off'. I suppose that is part of the learning process. As for the 'commenting', my programming developed that trend when I took a 'C' course last semester. The instructor would decrement your grade *by a full letter* if you didn't comment every line. Ugh... I'll make the necessary corrections in future code samples.

    DigitalKitty

    -> Meow <-