in reply to Documenting Methods/Subs
In code I write for myself (primarily), I usually do something like:
One or two lines is usually enough, the actual code only has comments in parts where I feel they are necessary to explain what it's doing.sub blahfasel { # This function does XYZ # Parameter: This, That ... }
I keep meaning to learn POD and add that, but it won't be as a replacement for comments, just to provide an overview how to use the modules without having to look at the code.
C.
|
|---|