Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Yes, even you can use CPAN

by toolic (Bishop)
on Jun 25, 2008 at 01:07 UTC ( [id://693857]=note: print w/replies, xml ) Need Help??


in reply to Yes, even you can use CPAN

++ Tanktalus.

I had been getting closer to posting something on this topic, in response to the somewhat common requests from Seekers of Perl Wisdom to provide help -- as long as it did not involve non-core modules. You did the work for me, providing comprehensive scenarios which exceed my experience level.

Some simple advice I have given to fellow wisdom seekers is to navigate to the appropriate CPAN webpage, click on the "Source" link, and just copy'n'paste the code directly. This is only practical for simple, pure Perl modules, but there are plenty of those available.

Replies are listed 'Best First'.
Re^2: Yes, even you can use CPAN
by Anonymous Monk on Jun 28, 2009 at 16:59 UTC
    For pure-perl modules, use Inline::Module, and it will automatically copy/paste the module into your program
Re^2: Yes, even you can use CPAN
by TonyNY (Beadle) on Jul 04, 2018 at 12:51 UTC

    Hi

    I've looked on CPAN but can't find any

    "source links"

      When viewing the page for a module, e.g. Mojolicious, on the right hand side of the page:

      Distribution: Mojolicious Module version: 7.87 Source (raw) Browse (raw)

      This may not render on the right hand side on a mobile browser with the screen in portrait orientation.

      However, the manual process is laborious (think about having to satisfy dependencies), you'd essentially be manually downloading/copying and pasting lots of files. Well worth resolving whatever issues there are within your organisation. At $work we have no direct internet connection, however minicpan makes it trivial to maintain a mirror and transfer this into the network via an approved route.

      Update: alternatively, metacpan lets you access the source like this: https://metacpan.org/source/Mojolicious.

      Do you see how on eg. JSON::PP there is a link in the left nav which says "Source" and a link beside it which says "(raw)"? It's the raw link you want.

      Update: marto's reply suggests he sees this nav on the right instead of on the left. Regardless of where the CSS puts it for you a simple search-in-page for "Source" should find it.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2025-06-22 09:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.