How To Dynamically Add a Path to the Perl @INC At Compile-Time

Author: , April 16th, 2021

The key is to define a variable first, then use the BEGIN block to initialize the variable, then reference the variable in use lib $var; later on ;-} For example, enable a module contained in the same directory as a script called via the PATH:

How To Determine Your Perl Module Version

Author: , April 12th, 2012

For example, to see the version for DBD::mysql, do this: perl -MDBD::mysql -we ‘print $DBD::mysql::VERSION;’

How To Make SEO-Friendly URLs Using Apache mod_rewrite And PHP

Author: , December 15th, 2011

Below information copied without permission from Josh Sharp’s site because it is too valuable to lose – great work Josh, and THANKS!

Note: Only rewrite if the requested file is not an existing directory (-d) or a file (-f)

How to Display Installed Perl Modules

Author: , September 29th, 2009

[code lang=”perl”] #!/bin/perl use ExtUtils::Installed; my $instmod = ExtUtils::Installed->new(); foreach my $module ($instmod->modules()) { my $version = $instmod->version($module) || "???"; print "$module — $version\n"; } [/code]