tools/list-perl-modules

9 lines
198 B
Bash
Executable file

#!/bin/bash
# List all the perl modules currently installed.
perl -MCPAN - <<EOF
for \$mod (CPAN::Shell->expand("Module","/./")){
next unless \$mod->inst_file;
print \$mod->id, "\n";
}
EOF