diff options
Diffstat (limited to 'pod/perlfaq3.pod')
-rw-r--r-- | pod/perlfaq3.pod | 43 |
1 files changed, 26 insertions, 17 deletions
diff --git a/pod/perlfaq3.pod b/pod/perlfaq3.pod index 31e669fd5d..62073e8591 100644 --- a/pod/perlfaq3.pod +++ b/pod/perlfaq3.pod @@ -1,6 +1,6 @@ =head1 NAME -perlfaq3 - Programming Tools ($Revision: 1.22 $, $Date: 1997/04/24 22:43:42 $) +perlfaq3 - Programming Tools ($Revision: 1.27 $, $Date: 1998/07/05 15:07:20 $) =head1 DESCRIPTION @@ -71,7 +71,7 @@ The B::Xref module, shipped with the new, alpha-release Perl compiler (not the general distribution prior to the 5.005 release), can be used to generate cross-reference reports for Perl programs. - perl -MO=Xref[,OPTIONS] foo.pl + perl -MO=Xref[,OPTIONS] scriptname.plx =head2 Is there a pretty-printer (formatter) for Perl? @@ -226,9 +226,12 @@ No, Perl's garbage collection system takes care of this. =head2 How can I free an array or hash so my program shrinks? -You can't. Memory the system allocates to a program will in practice -never be returned to the system. That's why long-running programs -sometimes re-exec themselves. +You can't. On most operating systems, memory allocated to a program +can never be returned to the system. That's why long-running programs +sometimes re-exec themselves. Some operating systems (notably, FreeBSD) +allegedly reclaim large chunks of memory that is no longer used, but +it doesn't appear to happen with Perl (yet). The Mac appears to be the +only platform that will reliably (albeit, slowly) return memory to the OS. However, judicious use of my() on your variables will help make sure that they go out of scope so that Perl can free up their storage for @@ -269,6 +272,14 @@ care. See http://www.perl.com/CPAN/modules/by-category/15_World_Wide_Web_HTML_HTTP_CGI/. +A non-free, commerical product, 'The Velocity Engine for Perl', +(http://www.binevolve.com/ or http://www.binevolve.com/bine/vep) might +also be worth looking at. It will allow you to increase the performance +of your perl scripts, upto 25 times faster than normal cgi perl by +running in persistent perl mode, or 4 to 5 times faster without any +modification to your existing cgi scripts. Fully functional evaluation +copies are available from the web site. + =head2 How can I hide the source for my Perl program? Delete it. :-) Seriously, there are a number of (mostly @@ -523,15 +534,13 @@ information, see L<ExtUtils::MakeMaker>. Copyright (c) 1997, 1998 Tom Christiansen and Nathan Torkington. All rights reserved. -When included as part of the Standard Version of Perl, or as part of -its complete documentation whether printed or otherwise, this work -may be distributed only under the terms of Perl's Artistic License. -Any distribution of this file or derivatives thereof I<outside> -of that package require that special arrangements be made with -copyright holder. - -Irrespective of its distribution, all code examples in this file -are hereby placed into the public domain. You are permitted and -encouraged to use this code in your own programs for fun -or for profit as you see fit. A simple comment in the code giving -credit would be courteous but is not required. +When included as an integrated part of the Standard Distribution +of Perl or of its documentation (printed or otherwise), this works is +covered under Perl's Artistic Licence. For separate distributions of +all or part of this FAQ outside of that, see L<perlfaq>. + +Irrespective of its distribution, all code examples here are public +domain. You are permitted and encouraged to use this code and any +derivatives thereof in your own programs for fun or for profit as you +see fit. A simple comment in the code giving credit to the FAQ would +be courteous but is not required. |