Skip to content

Instantly share code, notes, and snippets.

@Hiranyaloka
Created March 10, 2012 02:40
Show Gist options
  • Save Hiranyaloka/2009779 to your computer and use it in GitHub Desktop.
Save Hiranyaloka/2009779 to your computer and use it in GitHub Desktop.
list all installed perl modules.
#!/bin/sh
# From http://blog.kiftwi.net/2011/08/02/os-x-lionにperlbrewとcpanmをインストールしてperl環境を整える/
cat `perldoc -l perllocal` | perl -nle '/C<Module> L<([^\|]*?)\|.*?>/ and print "$1"' | sort -u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment