Differences
This shows you the differences between two versions of the page.
perl [2008/09/26 20:34] a |
perl [2009/05/25 00:35] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Optimizing Perl ===== | ||
- | |||
- | First run the script with profiling enabled: | ||
- | |||
- | perl -d:DProf myscript.pl | ||
- | |||
- | then run the profile-dumper: | ||
- | |||
- | | ||
- | |||
- | ===== Copy (duplicate) a two-dimensional array in Perl ===== | ||
- | |||
- | | ||
- | |||
- | ===== CPAN modules fail to compile ===== | ||
- | |||
- | Then you're probably on a RedHat >= v9 system. | ||
- | Do this: | ||
- | |||
- | export LANG=C | ||
- | |||
- | and retry. | ||
- | |||
- | ===== Get a Perl-module from CPAN ===== | ||
- | |||
- | The easy way which also automatically fetches all modules needed by the module: | ||
- | |||
- | perl -MCPAN -e ' | ||
- | |||
- | e.g.: | ||
- | |||
- | perl -MCPAN -e ' | ||
- | |||
- | |||