Skip to content

Instantly share code, notes, and snippets.

@j1n3l0
Created May 31, 2012 20:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save j1n3l0/2846098 to your computer and use it in GitHub Desktop.
Save j1n3l0/2846098 to your computer and use it in GitHub Desktop.
List the installed modules from cpan #perl #cpan #utils
#
# List the installed modules from cpan
alias list_installed_cpan_modules="perl -MFile::Find=find -MFile::Spec::Functions -Tlwe 'find { wanted => sub { if (/\.pm\z/) { s{^.+site_perl\/[\.0-9]+\/}{}; s{\/}{::}g; s{\.pm$}{}; print } }, no_chdir => 1 }, grep /site_perl/, @INC' | sort -u"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment