Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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: 
- 
-   dprofpp tmon.out 
- 
-===== Copy (duplicate) a two-dimensional array in Perl ===== 
- 
-   @target = map [map $_ = $_, @{$_}], @source; 
- 
-===== 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 'install modulename' 
- 
-e.g.: 
- 
-  perl -MCPAN -e 'install WWW::Search' 
- 
- 
  
perl.txt ยท Last modified: 2009/05/25 00:35 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready