Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: pmdesc2 - lists modules with description

by Aristotle (Chancellor)
on Jul 16, 2006 at 05:52 UTC ( #561519=note: print w/ replies, xml ) Need Help??


in reply to Re: pmdesc2 - lists modules with description
in thread pmdesc2 - lists modules with description

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.


Comment on Re^2: pmdesc2 - lists modules with description

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2014-07-28 05:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (187 votes), past polls