Posts Tagged ‘Perl’

List Perl modules installed

Handy command to list all Perl modules installed. perl -MFile::Find=find -MFile::Spec::Functions -lwe ‘find { wanted => sub { print canonpath $_ if /\.pm\z/ }, no_chdir => 1 }, @INC’

Base64 Decode using shell

perl -MMIME::Base64 -ne ‘print decode_base64($_)’ < test.in | less