NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Some issues (Score:2, Informative)
* The modules have no abstract (In NAME, one usually puts "Module::Name - Module that does something)
* Prototypes are used for methods. That's useless, since they're ignored for runtime thingies. Besides that, have a look at Far More Than Everything You've Ever Wanted to Know about Prototypes in Perl.
* POD is =cut and then immediately continued...
* Some POD is broken otherwise (if you use multiple angle brackets, you must also use whitespace!)
And probably more...
Re:Some issues (Score:2)
I will correct these issues ASAP.
I know that the prototypes aren't any good during run-time, but I use them when developing. They work quite well when refactoring code, that is why I tend to keep them around.
Again - thanks for you feedback...
Re:Some issues (Score:3, Informative)
In short, prototypes are evil. Don't use them unless you have no other choice (see: Error.pm [cpan.org]).
-Dom
Re:Some issues (Score:2)
Excuse me for not going into a technical discussion on some of all Tom's very good examples, but I do not want to question Tom's article and you and Juerds feed-back on prototypes, I just want to explain why I use prototypes.
The article is not a part of the official documentation on Perl and since the official documentation on Perl states a functionality of prototypes in Perl, which resembles what you can find in a standard textbook I guess a lot of people fall into the trap of using prototypes even though considered harmful, well I did anyway.
This snippet is also taken from the perlsub manpage [perldoc.com] (from Perl version 5.6.0) on prototypes:
"The current mechanism's main goal is to let module writers provide better diagnostics for module users."
So I am put in a somewhat awkward position, since my experience with prototypes has only been a success, as written in my response to juerd I find it very usefull when refactoring (especially other people's code). I know that this in some people's opinion break a rule of refactoring but that is yet another discussion.
This snippet is taken from the perlsub manpage [perldoc.com] (from Perl version 5.6.0) on prototypes:
"Perl supports a very limited kind of compile-time argument checking using function prototyping."
This is exactly the kind of feature I need and use when refactoring.
I guess somebody should write a paper named 'Official Perl Documentation Considered Harmful', I think some guy tried to raise this issue, but he got scared off.
Anyway I will look into not using prototypes, after a more close read of Tom Article, thank you for posting the URL.
Reply to This
Parent