Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: Yes, even you can use CPAN

by toolic (Bishop)
on Jun 25, 2008 at 01:07 UTC ( #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


    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:

      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?

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (1)
As of 2020-10-25 17:37 GMT
Find Nodes?
    Voting Booth?
    My favourite web site is:

    Results (249 votes). Check out past polls.