Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: pmdesc2 - lists modules with description

by Anonymous Monk
on Nov 06, 2004 at 19:07 UTC ( #405800=note: print w/ replies, xml ) Need Help??


in reply to pmdesc2 - lists modules with description

The speed improvement is great, but pmdesc2 has still some flaws:
(1) Version numbers with more than one separating point (sub-subversion) will be converted into control characters.
(2) DOS-terminated files are not handled correctly (no description found).
(3) The extracted description is not limited to a maximal length, so faulty docs are slurped in completely.
(4) Some modules are split into a pm-file and an accompanying pod-file which leads to double entries.
I rewrote parts of the script and called it pmdesc3. It overcomes the above mentioned flaws. Output can be sorted and formated. It has a POD included. pmdesc3 is part of the VIM-plugin perl-support.vim (script # 556) and can be found at http://vim.sourceforge.net/scripts/script.php?script_id=556


Comment on Re: pmdesc2 - lists modules with description
Re^2: pmdesc2 - lists modules with description
by Aristotle (Chancellor) on Jul 16, 2006 at 05:52 UTC

    I rewrote parts of the script and called it pmdesc3. It overcomes the above mentioned flaws. Output can be sorted and formated. It has a POD included. pmdesc3 is part of the VIM-plugin perl-support.vim (script # 556) and can be found at http://vim.sourceforge.net/scripts/script.php?script_id=556

    Oh dear. Let me quote MJDís File of Good AdviceÖ

    #11911 You wrote the same thing twice here. The cardinal rule of programming is that you never ever write the same thing twice.

    Copy-pasting bits all over the code is not a good idea.

    In any case, Iíve fixed your complaints and posted a new version at lspm ó list names and descriptions of Perl modules in a directory. It doesnít have sorting, because I donít see the point of implementing that as an option that wonít work on systems where you can pipe output to another process anyway, but it does address all the problems you brought up and adds a bonus feature too. The output should be more readily parsable, as well, although it doesnít look the same as in your version.

    Makeshifts last the longest.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2014-12-20 06:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (95 votes), past polls