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

CPAN: standard modules and other modules

by JohnMG (Beadle)
on Oct 20, 2005 at 16:17 UTC ( [id://501721]=perlquestion: print w/replies, xml ) Need Help??

JohnMG has asked for the wisdom of the Perl Monks concerning the following question:

Does CPAN offer any way to differentiate between standard modules (ones that come with the standard library) and other modules?

Maybe I'm not seeing it, but it would be nice if CPAN noted somehow when a module I'm reading about is actually one in the standard library.

  • Comment on CPAN: standard modules and other modules

Replies are listed 'Best First'.
Re: CPAN: standard modules and other modules
by friedo (Prior) on Oct 20, 2005 at 16:26 UTC
    The perlmodlib manpage on your system will have a list of all the standard modules that are installed.
Re: CPAN: standard modules and other modules
by randyk (Parson) on Oct 20, 2005 at 18:53 UTC
    You could install and then use Module::CoreList to see what modules came with what version of Perl.

      Sorry -- perhaps I wasn't being clear enough: My impression is that CPAN lists standard modules as well as many many more that are not part of the standard Perl library.

      When I'm browsing CPAN, and I see a neat module, the first thing I think is: "I wonder if that's part of the standard lib?" That is, I wonder if I've already got it installed (EDIT: also, I'd just like to get to know better which modules are in the std lib, and which aren't.). I sometimes work on various different machines, which each may have different extra modules installed.

      That's why I'm curious if the CPAN site offers a way to differentiate (while browsing) between standard modules and other, extra ones. It would seem like a useful web site feature, no?

      I realize there's other ways to see: (a) which modules the standard lib consists of, and (b) which other modules I've currently got installed on my system. That said, it still seems that it would be convenient to see directly on CPAN what you're dealing with.

        Just to check out my suspicions, I searched CPAN for five modules that my copy of perlmodlib said are standard with 5.8.7.
        Class::Struct
        File::Copy
        Memoize-1.01
        MIME-Base64-3.05
        Tie::Handle
        Only three of these are linked back to the distribution Perl 5.8.7, the other two are found as separate distributions. Not even the listing of modules with Perl 5.8.7 shows the other two modules. Only by looking in the perlmodlib of that release can you find them listed.

        I have to agree that it would be very nice to see the addition of a "Standard since Perl 5.8.3" information line. It would seem all the information needed is in Module::CoreList as mentioned above. I can see that it might be required for some modules to mention more than one release, something like "Standard since Perl 5.7.3, 5.8.0", when the release dates are staggered.

        You're not browsing CPAN, you're browsing search.cpan.org. You should direct your questions to http://search.cpan.org/feedback

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://501721]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-25 23:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found