Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: examples in CPAN distributions

by grinder (Bishop)
on Apr 25, 2007 at 11:32 UTC ( #611970=note: print w/ replies, xml ) Need Help??


in reply to Re: examples in CPAN distributions
in thread examples in CPAN distributions

The tests of a module provide good clues as to how to use the module, but one has to realise that some of those tests may be there to see how the modules deals with incorrect usages. There may be lots of obscure corner case tests designed to achieve a high level of code coverage.

Sometimes it can be hard to spot what is essential.

Real examples are better in that there's none of the test infrastructure, or the test suite's goals, getting in the way. You can take one and then start to bend it into shape to solve your own task. This is my usual approach to HTML::Parser, since I don't use it enough to remember all of the API. Having a usable skeleton is a great way to start hanging lumps of flesh off it :)

Also, as far as conventions and standards regarding modules goes, if it isn't discussed on the module-authors mailing list, it will become neither. This is not to dismiss Perlmonks, but these things tend to get thrashed out over there. People sometimes don't realise that a lot of the Perl community doesn't hang out on Perlmonks.

• another intruder with the mooring in the heart of the Perl


Comment on Re^2: examples in CPAN distributions
Re^3: examples in CPAN distributions
by zby (Vicar) on Apr 25, 2007 at 11:44 UTC
    I don't feel qualified to ask this question on module-authors mailing list - at least for the one reason that I have not read that list bofore. If anyone would ask this question on this list please post the link to the thread in the archives here if that is possible.
Re^3: examples in CPAN distributions
by shigetsu (Hermit) on Apr 25, 2007 at 11:45 UTC

    People sometimes don't realise that a lot of the Perl community doesn't hang out on Perlmonks.

    May I take the freedom and point to somewhere else?

    http://lists.perl.org is a pretty good start too.

    Please don't reply as it was merely intended as a pointer; we would be getting more and more offtopic if we'd do otherwise.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://611970]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (10)
As of 2014-08-29 15:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (281 votes), past polls