Perl

by Scott, Revised on September 14, 2017 (Open SourcePerlWeb DevelopmentScripting)

Helpful Reminders

Running a test for a module (one or the other):

perl -Ilib t/01_my-test.t
prove -l t/01_my-test.t

Find the version of an installed module:

perl -MModule::Name -e 'print "$Module::Name::VERSION\n"'

Install an app's modules by from a cpanfile:

cpanm --installdeps .

HTTP dev server:

cpanm Plack
plackup -MPlack::App::Directory -e 'Plack::App::Directory->new(root=>".");' -p 8000

Tags: Open SourcePerlWeb DevelopmentScripting