lcpan tips 006: lcpanm

About this series: a collection of short, daily blog posts about lcpan tips/recipes. Some posts will also end up in the upcoming App::lcpan::Manual::Cookbook POD to be included in the App-lcpan distribution.

About lcpan: an application to download and index a mini CPAN mirror on your local filesystem, so in effect you will have something like your own CPAN with a command-line tool (or perl API) to query and extract information from your mirror. I find it perfect for my own personal use when working offline.

lcpanm is a thin wrapper for cpanm and comes with the App-lcpan distribution (which means that when you install lcpan you automatically get lcpanm). It sets --mirror to your local CPAN mirror. Also, its tab completion uses the lcpan database to be able to complete CPAN module names.

Some examples:

% lcpanm -n File::Lock[tab]
Lock    Lock::    lockf    Lockfile

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s