X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperlfaq3.pod;h=c1ba5bb1b04321ea009b3552735c7c953bb43f3a;hb=997e7b23827e884e717eba50697f2e5714034828;hp=2fa78fc654565cdfde81c59ce3db7208251556da;hpb=109f04419ad154407413aa733c313fd77c1e12ca;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perlfaq3.pod b/pod/perlfaq3.pod index 2fa78fc..c1ba5bb 100644 --- a/pod/perlfaq3.pod +++ b/pod/perlfaq3.pod @@ -67,14 +67,14 @@ From the command line, you can use the C command's C<-l> switch: $ cpan -l You can also use C's C<-a> switch to create an autobundle file -that C understands and cna use to re-install every module: +that C understands and can use to re-install every module: $ cpan -a Inside a Perl program, you can use the ExtUtils::Installed module to show all installed distributions, although it can take awhile to do its magic. The standard library which comes with Perl just shows up -as "Perl" (although you can get those with Module::CoreList). +as "Perl" (although you can get those with C). use ExtUtils::Installed; @@ -82,7 +82,7 @@ as "Perl" (although you can get those with Module::CoreList). my @modules = $inst->modules(); If you want a list of all of the Perl module filenames, you -can use File::Find::Rule. +can use C: use File::Find::Rule; @@ -94,7 +94,7 @@ can use File::Find::Rule. ; If you do not have that module, you can do the same thing -with File::Find which is part of the standard library. +with File::Find which is part of the standard library: use File::Find; my @files; @@ -117,12 +117,12 @@ If you simply need to quickly check to see if a module is available, you can check for its documentation. If you can read the documentation the module is most likely installed. If you cannot read the documentation, the module might not -have any (in rare cases). +have any (in rare cases): $ perldoc Module::Name You can also try to include the module in a one-liner to see if -perl finds it. +perl finds it: $ perl -MModule::Name -e1 @@ -307,6 +307,10 @@ ActiveState's cross-platform (as of October 2004, that's Windows, Linux, and Solaris), multi-language IDE has Perl support, including a regular expression debugger and remote debugging. +=item Notepad++ + +http://notepad-plus.sourceforge.net/ + =item Open Perl IDE http://open-perl-ide.sourceforge.net/ @@ -326,9 +330,8 @@ debugger and syntax highlighting editor. http://padre.perlide.org/ -Padre is cross-platform IDE for Perl written in Perl using the the wxWidgets -to provide a native look and feel. It's open source under the Artistic -License. +Padre is cross-platform IDE for Perl written in Perl using wxWidgets to provide +a native look and feel. It's open source under the Artistic License. =item PerlBuilder @@ -364,7 +367,7 @@ anything. In any emacs the cperl-mode (M-x cperl-mode) gives you perhaps the best available Perl editing mode in any editor. If you are using Windows, you can use any editor that lets you work -with plain text, such as NotePad or WordPad. Word processors, such as +with plain text, such as NotePad or WordPad. Word processors, such as Microsoft Word or WordPerfect, typically do not work since they insert all sorts of behind-the-scenes information, although some allow you to save files as "Text Only". You can also download text editors designed @@ -372,7 +375,7 @@ specifically for programming, such as Textpad ( http://www.textpad.com/ ) and UltraEdit ( http://www.ultraedit.com/ ), among others. -If you are using MacOS, the same concerns apply. MacPerl (for Classic +If you are using MacOS, the same concerns apply. MacPerl (for Classic environments) comes with a simple editor. Popular external editors are BBEdit ( http://www.bbedit.com/ ) or Alpha ( http://www.his.com/~jguyer/Alpha/Alpha8.html ). MacOS X users can use @@ -515,7 +518,6 @@ including Perl and HTML ( http://www.his.com/~jguyer/Alpha/Alpha8.html ). are text editors for Mac OS that have a Perl sensitivity mode ( http://web.barebones.com/ ). - =back =head2 Where can I get Perl macros for vi? @@ -734,21 +736,21 @@ only makes one copy. Ditto for stringifying large arrays: - { - local $, = "\n"; - print @big_array; - } + { + local $, = "\n"; + print @big_array; + } is much more memory-efficient than either - print join "\n", @big_array; + print join "\n", @big_array; or - { - local $" = "\n"; - print "@big_array"; - } + { + local $" = "\n"; + print "@big_array"; + } =item * Pass by reference