Skip to content

Instantly share code, notes, and snippets.

@preaction
Created February 27, 2014 20:27
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 preaction/9258837 to your computer and use it in GitHub Desktop.
Save preaction/9258837 to your computer and use it in GitHub Desktop.
Find modules used by perl code
ack -f --perl | ack '^\s*use ([^\s;(]+)' --output='$1' --noheading -h -x > ~/modules.txt
sort < ~/modules.txt | uniq -c | sort -k 1 -n -r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment