Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??

Here, including my own stuff are my top 20 according to useage---

  • 0010, Carp::Assert
  • 0011, XML::Twig
  • 0012, Chess::PGN::Moves
  • 0013, Carp
  • 0013, Wild
  • 0016, Chess::PGN::Filter
  • 0016, Getopt::Std
  • 0017, Parse::RecDescent
  • 0018, File::Basename
  • 0021, DB_File
  • 0021, Pod::Usage
  • 0022, Text::Wrap
  • 0023, Getopt::Long
  • 0027, Text::DelimMatch
  • 0032, Text::CSV
  • 0039, Chess::PGN::Parse
  • 0045, Test
  • 0046, ExtUtils::MakeMaker
  • 0048, Data::Dumper
  • 0062, Chess::PGN::EPD
  • 0068, constant
  • 0223, diagnostics
  • 0223, warnings
  • 0239, strict

How do I know this? Fairly easy, go to the root of your Perl development tree on the box of your choice and append the results of 'grep -rd "^use " *.pl' to this:

#!/perl/bin/perl # # use.pl -- statistics for 'use' module name. use strict; use warnings; use diagnostics; my %module; my @list; while (<DATA>) { if (/^use\s(.*?);/) { my $what = $1; if ($what =~ /^lib/) { $module{'lib'}++; } elsif ($what =~ /^constant/) { $module{'constant'}++; } else { $module{$what}++; } } } for (keys %module) { push(@list,sprintf("%04d|%s",$module{$_},$_)); } for (sort @list) { my($howmany,$what) = split /\|/; print "$howmany, $what\n"; } __DATA__

And then run the script...

--hsm

"Never try to teach a pig to sing...it wastes your time and it annoys the pig."

In reply to Re: Favourite modules April 2003 by hsmyers
in thread Favourite modules April 2003 by Juerd

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others wandering the Monastery: (8)
    As of 2014-09-16 10:22 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      How do you remember the number of days in each month?











      Results (5 votes), past polls