$ cpan -l
You can also use C<cpan>'s C<-a> switch to create an autobundle file
-that C<CPAN.pm> understands and cna use to re-install every module:
+that C<CPAN.pm> 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<Module::CoreList>).
use ExtUtils::Installed;
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<File::Find::Rule>:
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;
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
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/
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
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
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
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?
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