This is an old revision of the document!
Optimizing Perl
First run the script with profiling enabled:
perl -d:DProf myscript.pl
then run the profile-dumper:
dprofpp tmon.out
Copy (duplicate) a two-dimensional array in Perl
@target = map [map $_ = $_, @{$_}], @source;
CPAN modules fail to compile
Get a Perl-module from CPAN
The easy way which also automatically fetches all modules needed by the module:
perl -MCPAN -e 'install modulename'
e.g.:
perl -MCPAN -e 'install WWW::Search'