This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Sync perlfaq.
[perl5.git] / pod / perlmodlib.pod
CommitLineData
c165c82a
JH
1=for maintainers
2Generated by perlmodlib.PL -- DO NOT EDIT!
4e860d0a 3
f102b883
TC
4=head1 NAME
5
6perlmodlib - constructing new Perl modules and finding existing ones
7
f102b883
TC
8=head1 THE PERL MODULE LIBRARY
9
7ef5744c 10Many modules are included in the Perl distribution. These are described
19799a22 11below, and all end in F<.pm>. You may discover compiled library
7ef5744c 12files (usually ending in F<.so>) or small pieces of modules to be
19799a22
GS
13autoloaded (ending in F<.al>); these were automatically generated
14by the installation process. You may also discover files in the
15library directory that end in either F<.pl> or F<.ph>. These are
16old libraries supplied so that old programs that use them still
17run. The F<.pl> files will all eventually be converted into standard
18modules, and the F<.ph> files made by B<h2ph> will probably end up
19as extension modules made by B<h2xs>. (Some F<.ph> values may
20already be available through the POSIX, Errno, or Fcntl modules.)
21The B<pl2pm> file in the distribution may help in your conversion,
22but it's just a mechanical process and therefore far from bulletproof.
f102b883
TC
23
24=head2 Pragmatic Modules
25
19799a22
GS
26They work somewhat like compiler directives (pragmata) in that they
27tend to affect the compilation of your program, and thus will usually
28work well only when used within a C<use>, or C<no>. Most of these
29are lexically scoped, so an inner BLOCK may countermand them
30by saying:
f102b883
TC
31
32 no integer;
33 no strict 'refs';
4438c4b7 34 no warnings;
f102b883
TC
35
36which lasts until the end of that BLOCK.
37
19799a22
GS
38Some pragmas are lexically scoped--typically those that affect the
39C<$^H> hints variable. Others affect the current package instead,
77ca0c92 40like C<use vars> and C<use subs>, which allow you to predeclare a
19799a22
GS
41variables or subroutines within a particular I<file> rather than
42just a block. Such declarations are effective for the entire file
43for which they were declared. You cannot rescind them with C<no
44vars> or C<no subs>.
f102b883
TC
45
46The following pragmas are defined (and have their own documentation).
47
48=over 12
49
a4373870
CW
50=item assertions
51
5c5c2539 52Select assertions in blocks of code
a4373870
CW
53
54=item assertions::activate
55
5c5c2539 56Activate assertions
a4373870 57
97a1d740
YST
58=item assertions::compat
59
60Assertions for pre-5.9 versions of perl
61
09bef843
SB
62=item attributes
63
9e107c59 64Get/set subroutine or variable attributes
09bef843 65
ec90690f
TS
66=item attrs
67
68Set/get attributes of a subroutine (deprecated)
69
19799a22
GS
70=item autouse
71
9e107c59 72Postpone load of modules until a function is used
19799a22
GS
73
74=item base
75
f99d9048 76Establish IS-A relationship with base classes at compile time
f102b883 77
fa1c7b03
JH
78=item bigint
79
7ef5744c 80Transparent BigInteger support for Perl
fa1c7b03
JH
81
82=item bignum
83
84Transparent BigNumber support for Perl
85
86=item bigrat
87
82eec310 88Transparent BigNumber/BigRational support for Perl
fa1c7b03 89
f102b883
TC
90=item blib
91
19799a22
GS
92Use MakeMaker's uninstalled version of a package
93
2e1d04bc 94=item bytes
9e107c59 95
2e1d04bc 96Force byte semantics rather than character semantics
9e107c59
GS
97
98=item charnames
99
ec90690f 100Define character names for C<\N{named}> string literal escapes
9e107c59 101
19799a22
GS
102=item constant
103
9e107c59 104Declare constants
f102b883
TC
105
106=item diagnostics
107
f262848d 108Produce verbose warning diagnostics
19799a22 109
1bb908c3
JH
110=item encoding
111
ec90690f 112Allows you to write your script in non-ascii or non-utf8
1bb908c3 113
407700fe
RGS
114=item encoding::warnings
115
116Warn on implicit encoding conversions
117
19799a22
GS
118=item fields
119
2e1d04bc 120Compile-time class fields
19799a22
GS
121
122=item filetest
123
2e1d04bc 124Control the filetest permission operators
f102b883 125
d63e6bb6
JH
126=item if
127
128C<use> a Perl module if a condition holds
129
f102b883
TC
130=item integer
131
4e860d0a 132Use integer arithmetic instead of floating point
f102b883
TC
133
134=item less
135
2e1d04bc 136Request less of something from the compiler
f102b883 137
7ef5744c
RGS
138=item lib
139
140Manipulate @INC at compile time
141
f102b883
TC
142=item locale
143
2e1d04bc
JH
144Use and avoid POSIX locales for built-in operations
145
146=item open
147
cb9c8b59 148Set default PerlIO layers for input and output
f102b883 149
ec90690f
TS
150=item ops
151
152Restrict unsafe operations when compiling
153
f102b883
TC
154=item overload
155
2e1d04bc 156Package for overloading perl operations
f102b883 157
d63e6bb6
JH
158=item re
159
160Alter regular expression behaviour
161
f102b883
TC
162=item sigtrap
163
9e107c59 164Enable simple signal handling
f102b883 165
1bb908c3
JH
166=item sort
167
168Control sort() behaviour
169
f102b883
TC
170=item strict
171
9e107c59 172Restrict unsafe constructs
f102b883
TC
173
174=item subs
175
2e1d04bc 176Predeclare sub names
f102b883 177
ec90690f
TS
178=item threads
179
180Perl extension allowing use of interpreter based threads from perl
181
7ef5744c
RGS
182=item threads::shared
183
184Perl extension for sharing data structures between threads
185
19799a22 186=item utf8
f102b883 187
1fa7ca25 188Enable/disable UTF-8 (or UTF-EBCDIC) in source code
f102b883
TC
189
190=item vars
191
2e1d04bc 192Predeclare global variable names (obsolete)
f102b883 193
7eaa0fdd
RGS
194=item version
195
196Perl extension for Version Objects
197
1bb908c3
JH
198=item vmsish
199
200Control VMS-specific language features
201
4438c4b7 202=item warnings
0453d815 203
9e107c59 204Control optional warnings
19799a22 205
13a2d996
SP
206=item warnings::register
207
208Warnings import function
209
f102b883
TC
210=back
211
212=head2 Standard Modules
213
214Standard, bundled modules are all expected to behave in a well-defined
215manner with respect to namespace pollution because they use the
216Exporter module. See their own documentation for details.
217
7ef5744c
RGS
218It's possible that not all modules listed below are installed on your
219system. For example, the GDBM_File module will not be installed if you
220don't have the gdbm library.
221
f102b883
TC
222=over 12
223
224=item AnyDBM_File
225
2e1d04bc 226Provide framework for multiple DBMs
f102b883 227
97a1d740
YST
228=item Archive::Tar
229
230Module for manipulations of tar archives
231
232=item Archive::Tar::File
233
234A subclass for in-memory extracted file from Archive::Tar
235
06a5f41f
JH
236=item Attribute::Handlers
237
238Simpler definition of attribute handlers
239
f102b883
TC
240=item AutoLoader
241
9e107c59 242Load subroutines only on demand
f102b883
TC
243
244=item AutoSplit
245
9e107c59 246Split a package for autoloading
f102b883 247
ec90690f
TS
248=item B
249
250The Perl Compiler
251
252=item B::Asmdata
253
254Autogenerated data about Perl ops, used to generate bytecode
255
256=item B::Assembler
257
258Assemble Perl bytecode
259
260=item B::Bblock
261
262Walk basic blocks
263
264=item B::Bytecode
265
266Perl compiler's bytecode backend
267
268=item B::C
269
270Perl compiler's C backend
271
272=item B::CC
273
274Perl compiler's optimized C translation backend
275
276=item B::Concise
277
278Walk Perl syntax tree, printing concise info about ops
279
280=item B::Debug
281
282Walk Perl syntax tree, printing debug info about ops
283
284=item B::Deparse
285
286Perl compiler backend to produce perl code
287
288=item B::Disassembler
289
290Disassemble Perl bytecode
291
292=item B::Lint
293
294Perl lint
295
296=item B::Showlex
297
298Show lexical variables used in functions or files
299
300=item B::Stackobj
301
302Helper module for CC backend
303
304=item B::Stash
305
306Show what stashes are loaded
307
308=item B::Terse
309
310Walk Perl syntax tree, printing terse info about ops
311
312=item B::Xref
313
314Generates cross reference reports for Perl programs
315
f102b883
TC
316=item Benchmark
317
2e1d04bc 318Benchmark running times of Perl code
9e107c59 319
ec90690f
TS
320=item ByteLoader
321
322Load byte compiled perl code
323
19799a22
GS
324=item CGI
325
2e1d04bc 326Simple Common Gateway Interface Class
19799a22
GS
327
328=item CGI::Apache
329
2e1d04bc 330Backward compatibility module for CGI.pm
19799a22
GS
331
332=item CGI::Carp
333
334CGI routines for writing to the HTTPD (or other) error log
335
336=item CGI::Cookie
337
338Interface to Netscape Cookies
339
340=item CGI::Fast
341
342CGI Interface for Fast CGI
343
9e107c59
GS
344=item CGI::Pretty
345
346Module to produce nicely formatted HTML code
347
19799a22
GS
348=item CGI::Push
349
350Simple Interface to Server Push
351
352=item CGI::Switch
353
2e1d04bc 354Backward compatibility module for defunct CGI::Switch
19799a22 355
4e860d0a
JH
356=item CGI::Util
357
358Internal utilities used by CGI module
359
f102b883
TC
360=item CPAN
361
2e1d04bc 362Query, download and build perl modules from CPAN sites
f102b883
TC
363
364=item CPAN::FirstTime
365
2e1d04bc 366Utility for CPAN::Config file Initialization
f102b883
TC
367
368=item CPAN::Nox
369
19799a22 370Wrapper around CPAN.pm without using any XS module
f102b883
TC
371
372=item Carp
373
2e1d04bc 374Warn of errors (from perspective of caller)
9e107c59 375
4e860d0a
JH
376=item Carp::Heavy
377
f99d9048 378Heavy machinery, no user serviceable parts inside
4e860d0a
JH
379
380=item Class::ISA
381
382Report the search path for a class's ISA tree
383
f102b883
TC
384=item Class::Struct
385
9e107c59 386Declare struct-like datatypes as Perl classes
f102b883 387
97a1d740
YST
388=item Compress::Zlib
389
390Interface to zlib compression library
391
416e7255
JH
392=item Config
393
394Access Perl configuration information
395
f102b883
TC
396=item Cwd
397
9e107c59 398Get pathname of current working directory
f102b883 399
19799a22
GS
400=item DB
401
2e1d04bc 402Programmatic interface to the Perl debugging API (draft, subject to
19799a22 403
f99d9048
RGS
404=item DBM_Filter
405
406Filter DBM keys/values
407
ec90690f
TS
408=item DB_File
409
410Perl5 access to Berkeley DB version 1.x
411
7ef5744c
RGS
412=item Data::Dumper
413
414Stringified perl data structures, suitable for both printing and C<eval>
415
416=item Devel::DProf
417
418A Perl code profiler
419
a4373870
CW
420=item Devel::PPPort
421
422Perl/Pollution/Portability
423
7ef5744c
RGS
424=item Devel::Peek
425
426A data debugging tool for the XS programmer
427
f102b883
TC
428=item Devel::SelfStubber
429
9e107c59 430Generate stubs for a SelfLoading module
f102b883 431
4e860d0a
JH
432=item Digest
433
434Modules that calculate message digests
435
7ef5744c
RGS
436=item Digest::MD5
437
438Perl interface to the MD5 Algorithm
439
f262848d
RGS
440=item Digest::base
441
442Digest base class
443
407700fe
RGS
444=item Digest::file
445
446Calculate digests of files
447
f102b883
TC
448=item DirHandle
449
9e107c59 450Supply object methods for directory handles
f102b883 451
19799a22
GS
452=item Dumpvalue
453
2e1d04bc 454Provides screen dump of Perl data.
f102b883 455
7ef5744c
RGS
456=item DynaLoader
457
458Dynamically load C libraries into Perl code
459
ec90690f
TS
460=item Encode
461
462Character encodings
463
7ef5744c
RGS
464=item Encode::Alias
465
466Alias definitions to encodings
467
468=item Encode::Byte
469
470Single Byte Encodings
471
472=item Encode::CJKConstants
473
474Internally used by Encode::??::ISO_2022_*
475
476=item Encode::CN
477
478China-based Chinese Encodings
479
480=item Encode::CN::HZ
481
482Internally used by Encode::CN
483
484=item Encode::Config
485
486Internally used by Encode
487
488=item Encode::EBCDIC
489
490EBCDIC Encodings
491
492=item Encode::Encoder
493
494Object Oriented Encoder
495
496=item Encode::Encoding
497
498Encode Implementation Base Class
499
500=item Encode::Guess
501
502Guesses encoding from data
503
504=item Encode::JP
505
506Japanese Encodings
507
508=item Encode::JP::H2Z
509
510Internally used by Encode::JP::2022_JP*
511
512=item Encode::JP::JIS7
513
514Internally used by Encode::JP
515
516=item Encode::KR
517
518Korean Encodings
519
520=item Encode::KR::2022_KR
521
522Internally used by Encode::KR
523
524=item Encode::MIME::Header
525
526MIME 'B' and 'Q' header encoding
527
528=item Encode::PerlIO
529
530A detailed document on Encode and PerlIO
531
532=item Encode::Supported
533
534Encodings supported by Encode
535
536=item Encode::Symbol
537
538Symbol Encodings
539
540=item Encode::TW
541
542Taiwan-based Chinese Encodings
543
544=item Encode::Unicode
545
546Various Unicode Transformation Formats
547
8b9c797b
JH
548=item Encode::Unicode::UTF7
549
550UTF-7 encoding
551
f102b883
TC
552=item English
553
2e1d04bc 554Use nice English (or awk) names for ugly punctuation variables
f102b883
TC
555
556=item Env
557
2e1d04bc 558Perl module that imports environment variables as scalars or arrays
f102b883 559
416e7255
JH
560=item Errno
561
562System errno constants
563
f102b883
TC
564=item Exporter
565
2e1d04bc 566Implements default import method for modules
9e107c59
GS
567
568=item Exporter::Heavy
569
570Exporter guts
19799a22 571
97a1d740
YST
572=item ExtUtils::CBuilder
573
574Compile and link C code for Perl modules
575
576=item ExtUtils::CBuilder::Platform::Windows
577
578Builder class for Windows platforms
579
19799a22
GS
580=item ExtUtils::Command
581
2e1d04bc 582Utilities to replace common UNIX commands in Makefiles etc.
f102b883 583
ec90690f
TS
584=item ExtUtils::Command::MM
585
586Commands for the MM's to use in Makefiles
587
422a9aca
JH
588=item ExtUtils::Constant
589
590Generate XS code to import C header constants
591
407700fe
RGS
592=item ExtUtils::Constant::Base
593
594Base class for ExtUtils::Constant objects
595
596=item ExtUtils::Constant::Utils
597
598Helper functions for ExtUtils::Constant
599
600=item ExtUtils::Constant::XS
601
602Base class for ExtUtils::Constant objects
603
f102b883
TC
604=item ExtUtils::Embed
605
2e1d04bc 606Utilities for embedding Perl in C/C++ applications
f102b883
TC
607
608=item ExtUtils::Install
609
9e107c59 610Install files from here to there
f102b883 611
19799a22
GS
612=item ExtUtils::Installed
613
614Inventory management of installed modules
615
f102b883
TC
616=item ExtUtils::Liblist
617
9e107c59
GS
618Determine libraries to use and how to use them
619
ec90690f
TS
620=item ExtUtils::MM
621
622OS adjusted ExtUtils::MakeMaker subclass
623
97a1d740
YST
624=item ExtUtils::MM_AIX
625
626AIX specific subclass of ExtUtils::MM_Unix
627
ec90690f
TS
628=item ExtUtils::MM_Any
629
639f8edf 630Platform-agnostic MM methods
ec90690f 631
d63e6bb6
JH
632=item ExtUtils::MM_BeOS
633
634Methods to override UN*X behaviour in ExtUtils::MakeMaker
635
9e107c59
GS
636=item ExtUtils::MM_Cygwin
637
2e1d04bc 638Methods to override UN*X behaviour in ExtUtils::MakeMaker
f102b883 639
ec90690f
TS
640=item ExtUtils::MM_DOS
641
642DOS specific subclass of ExtUtils::MM_Unix
643
644=item ExtUtils::MM_MacOS
645
407700fe 646Once produced Makefiles for MacOS Classic
ec90690f 647
5d80033a
JH
648=item ExtUtils::MM_NW5
649
650Methods to override UN*X behaviour in ExtUtils::MakeMaker
651
f102b883
TC
652=item ExtUtils::MM_OS2
653
2e1d04bc 654Methods to override UN*X behaviour in ExtUtils::MakeMaker
f102b883 655
97a1d740
YST
656=item ExtUtils::MM_QNX
657
658QNX specific subclass of ExtUtils::MM_Unix
659
ec90690f
TS
660=item ExtUtils::MM_UWIN
661
662U/WIN specific subclass of ExtUtils::MM_Unix
663
f102b883
TC
664=item ExtUtils::MM_Unix
665
9e107c59 666Methods used by ExtUtils::MakeMaker
f102b883
TC
667
668=item ExtUtils::MM_VMS
669
2e1d04bc 670Methods to override UN*X behaviour in ExtUtils::MakeMaker
19799a22 671
97a1d740
YST
672=item ExtUtils::MM_VOS
673
674VOS specific subclass of ExtUtils::MM_Unix
675
19799a22
GS
676=item ExtUtils::MM_Win32
677
2e1d04bc 678Methods to override UN*X behaviour in ExtUtils::MakeMaker
f102b883 679
ec90690f
TS
680=item ExtUtils::MM_Win95
681
682Method to customize MakeMaker for Win9X
683
684=item ExtUtils::MY
685
686ExtUtils::MakeMaker subclass for customization
687
f102b883
TC
688=item ExtUtils::MakeMaker
689
a4373870
CW
690Create a module Makefile
691
97a1d740
YST
692=item ExtUtils::MakeMaker::Config
693
694Wrapper around Config.pm
695
a4373870
CW
696=item ExtUtils::MakeMaker::FAQ
697
698Frequently Asked Questions About MakeMaker
699
700=item ExtUtils::MakeMaker::Tutorial
701
702Writing a module with MakeMaker
703
8b9c797b
JH
704=item ExtUtils::MakeMaker::bytes
705
f262848d 706Version-agnostic bytes.pm
8b9c797b 707
a4373870
CW
708=item ExtUtils::MakeMaker::vmsish
709
f262848d 710Platform-agnostic vmsish.pm
f102b883
TC
711
712=item ExtUtils::Manifest
713
9e107c59 714Utilities to write and check a MANIFEST file
f102b883
TC
715
716=item ExtUtils::Mkbootstrap
717
9e107c59 718Make a bootstrap file for use by DynaLoader
f102b883
TC
719
720=item ExtUtils::Mksymlists
721
9e107c59 722Write linker options files for dynamic extension
f102b883 723
19799a22
GS
724=item ExtUtils::Packlist
725
9e107c59 726Manage .packlist files
19799a22 727
97a1d740
YST
728=item ExtUtils::ParseXS
729
730Converts Perl XS code into C code
731
f102b883
TC
732=item ExtUtils::testlib
733
9e107c59 734Add blib/* directories to @INC
f102b883 735
b6c543e3
IZ
736=item Fatal
737
9e107c59 738Replace functions with equivalents which succeed or die
b6c543e3 739
ec90690f
TS
740=item Fcntl
741
742Load the C Fcntl.h defines
743
f102b883
TC
744=item File::Basename
745
9e107c59
GS
746Split a pathname into pieces
747
748=item File::CheckTree
749
750Run many filetest checks on a tree
f102b883 751
f102b883
TC
752=item File::Compare
753
19799a22 754Compare files or filehandles
f102b883
TC
755
756=item File::Copy
757
19799a22
GS
758Copy files or filehandles
759
760=item File::DosGlob
761
2e1d04bc 762DOS like globbing and then some
f102b883
TC
763
764=item File::Find
765
d63e6bb6 766Traverse a directory tree.
f102b883 767
7ef5744c
RGS
768=item File::Glob
769
770Perl extension for BSD glob routine
771
f102b883
TC
772=item File::Path
773
2e1d04bc 774Create or remove directory trees
f102b883 775
f505c983
GS
776=item File::Spec
777
9e107c59 778Portably perform operations on file names
f505c983 779
06a5f41f
JH
780=item File::Spec::Cygwin
781
782Methods for Cygwin file specs
783
165c0277
JH
784=item File::Spec::Epoc
785
786Methods for Epoc file specs
787
f505c983
GS
788=item File::Spec::Functions
789
9e107c59 790Portably perform operations on file names
19799a22
GS
791
792=item File::Spec::Mac
793
1bb908c3 794File::Spec for Mac OS (Classic)
19799a22
GS
795
796=item File::Spec::OS2
797
9e107c59 798Methods for OS/2 file specs
19799a22
GS
799
800=item File::Spec::Unix
801
e61ecf27 802File::Spec for Unix, base for other File::Spec modules
19799a22
GS
803
804=item File::Spec::VMS
805
9e107c59 806Methods for VMS file specs
19799a22
GS
807
808=item File::Spec::Win32
809
9e107c59 810Methods for Win32 file specs
f505c983 811
2e1d04bc
JH
812=item File::Temp
813
814Return name and handle of a temporary file safely
815
f102b883
TC
816=item File::stat
817
9e107c59 818By-name interface to Perl's built-in stat() functions
f102b883
TC
819
820=item FileCache
821
9e107c59 822Keep more files open than the system permits
f102b883
TC
823
824=item FileHandle
825
9e107c59 826Supply object methods for filehandles
f102b883 827
165c0277
JH
828=item Filter::Simple
829
830Simplified source filtering
831
7ef5744c
RGS
832=item Filter::Util::Call
833
834Perl Source Filter Utility Module
835
f102b883
TC
836=item FindBin
837
2e1d04bc 838Locate directory of original perl script
f102b883 839
7ef5744c
RGS
840=item GDBM_File
841
842Perl5 access to the gdbm library.
843
f102b883
TC
844=item Getopt::Long
845
9e107c59 846Extended processing of command line options
f102b883
TC
847
848=item Getopt::Std
849
19799a22 850Process single-character switches with switch clustering
f102b883 851
d63e6bb6
JH
852=item Hash::Util
853
854A selection of general-utility hash subroutines
855
f102b883
TC
856=item I18N::Collate
857
2e1d04bc 858Compare 8-bit scalar data according to the current locale
f102b883 859
422a9aca
JH
860=item I18N::LangTags
861
862Functions for dealing with RFC3066-style language tags
863
407700fe
RGS
864=item I18N::LangTags::Detect
865
866Detect the user's language preferences
867
422a9aca
JH
868=item I18N::LangTags::List
869
4f233aa4 870Tags and names for human languages
422a9aca 871
7ef5744c
RGS
872=item I18N::Langinfo
873
874Query locale information
875
ec90690f
TS
876=item IO
877
878Load various IO modules
879
7ef5744c
RGS
880=item IO::Dir
881
882Supply object methods for directory handles
883
884=item IO::File
885
886Supply object methods for filehandles
887
888=item IO::Handle
889
890Supply object methods for I/O handles
891
892=item IO::Pipe
893
894Supply object methods for pipes
895
896=item IO::Poll
897
898Object interface to system poll call
899
900=item IO::Seekable
901
902Supply seek based methods for I/O objects
903
904=item IO::Select
905
906OO interface to the select system call
907
908=item IO::Socket
909
910Object interface to socket communications
911
912=item IO::Socket::INET
913
914Object interface for AF_INET domain sockets
915
916=item IO::Socket::UNIX
917
918Object interface for AF_UNIX domain sockets
919
97a1d740
YST
920=item IO::Zlib
921
922IO:: style interface to L<Compress::Zlib>
923
f102b883
TC
924=item IPC::Open2
925
9e107c59 926Open a process for both reading and writing
f102b883
TC
927
928=item IPC::Open3
929
9e107c59 930Open a process for reading, writing, and error handling
f102b883 931
7ef5744c
RGS
932=item IPC::SysV
933
934SysV IPC constants
935
936=item IPC::SysV::Msg
937
938SysV Msg IPC object class
939
940=item IPC::SysV::Semaphore
941
942SysV Semaphore IPC object class
943
944=item List::Util
945
946A selection of general-utility list subroutines
947
4e860d0a
JH
948=item Locale::Constants
949
950Constants for Locale codes
951
952=item Locale::Country
953
954ISO codes for country identification (ISO 3166)
955
956=item Locale::Currency
957
958ISO three letter codes for currency identification (ISO 4217)
959
960=item Locale::Language
961
962ISO two letter codes for language identification (ISO 639)
963
422a9aca
JH
964=item Locale::Maketext
965
966Framework for localization
967
968=item Locale::Maketext::TPJ13
969
970Article about software localization
971
d63e6bb6
JH
972=item Locale::Script
973
974ISO codes for script identification (ISO 15924)
975
7ef5744c
RGS
976=item MIME::Base64
977
978Encoding and decoding of base64 strings
979
980=item MIME::Base64::QuotedPrint
981
982Encoding and decoding of quoted-printable strings
983
f102b883
TC
984=item Math::BigFloat
985
5d80033a 986Arbitrary size floating point math package
f102b883
TC
987
988=item Math::BigInt
989
97a1d740 990Arbitrary size integer/float math package
f102b883 991
d0363f02
JH
992=item Math::BigInt::Calc
993
994Pure Perl module to support Math::BigInt
995
f99d9048
RGS
996=item Math::BigInt::CalcEmu
997
998Emulate low-level math with BigInt code
999
97a1d740
YST
1000=item Math::BigInt::FastCalc
1001
1002Math::BigInt::Calc with some XS for more speed
1003
fa1c7b03
JH
1004=item Math::BigRat
1005
407700fe 1006Arbitrary big rational numbers
fa1c7b03 1007
f102b883
TC
1008=item Math::Complex
1009
9e107c59 1010Complex numbers and associated mathematical functions
f102b883 1011
404b15a1
CS
1012=item Math::Trig
1013
9e107c59 1014Trigonometric functions
f102b883 1015
5d80033a
JH
1016=item Memoize
1017
ec90690f 1018Make functions faster by trading space for time
5d80033a
JH
1019
1020=item Memoize::AnyDBM_File
1021
1022Glue to provide EXISTS for AnyDBM_File for Storable use
1023
1024=item Memoize::Expire
1025
1026Plug-in module for automatic expiration of memoized values
1027
1028=item Memoize::ExpireFile
1029
1030Test for Memoize expiration semantics
1031
1032=item Memoize::ExpireTest
1033
1034Test for Memoize expiration semantics
1035
1036=item Memoize::NDBM_File
1037
1038Glue to provide EXISTS for NDBM_File for Storable use
1039
1040=item Memoize::SDBM_File
1041
1042Glue to provide EXISTS for SDBM_File for Storable use
1043
5d80033a
JH
1044=item Memoize::Storable
1045
1046Store Memoized data in Storable database
1047
407700fe
RGS
1048=item Module::CoreList
1049
1050What modules shipped with versions of perl
1051
ec90690f
TS
1052=item NDBM_File
1053
1054Tied access to ndbm files
1055
1fa7ca25
JH
1056=item NEXT
1057
7a142657 1058Provide a pseudo-class NEXT (et al) that allows method redispatch
1fa7ca25 1059
5d80033a
JH
1060=item Net::Cmd
1061
1062Network Command class (as used by FTP, SMTP etc)
1063
1064=item Net::Config
1065
1066Local configuration data for libnet
1067
1068=item Net::Domain
1069
1070Attempt to evaluate the current host's internet name and domain
1071
5d80033a
JH
1072=item Net::FTP
1073
1074FTP Client class
1075
1076=item Net::NNTP
1077
1078NNTP Client class
1079
1080=item Net::Netrc
1081
1082OO interface to users netrc file
1083
5d80033a
JH
1084=item Net::POP3
1085
d63e6bb6 1086Post Office Protocol 3 Client class (RFC1939)
5d80033a 1087
f102b883
TC
1088=item Net::Ping
1089
9e107c59 1090Check a remote host for reachability
f102b883 1091
5d80033a
JH
1092=item Net::SMTP
1093
1094Simple Mail Transfer Protocol Client
1095
5d80033a
JH
1096=item Net::Time
1097
1098Time and daytime network client interface
1099
f102b883
TC
1100=item Net::hostent
1101
9e107c59 1102By-name interface to Perl's built-in gethost*() functions
f102b883 1103
5d80033a
JH
1104=item Net::libnetFAQ
1105
1106Libnet Frequently Asked Questions
1107
f102b883
TC
1108=item Net::netent
1109
9e107c59 1110By-name interface to Perl's built-in getnet*() functions
f102b883
TC
1111
1112=item Net::protoent
1113
9e107c59 1114By-name interface to Perl's built-in getproto*() functions
f102b883
TC
1115
1116=item Net::servent
1117
9e107c59 1118By-name interface to Perl's built-in getserv*() functions
f102b883 1119
ec90690f
TS
1120=item O
1121
1122Generic interface to Perl Compiler backends
1123
1124=item ODBM_File
1125
1126Tied access to odbm files
1127
1128=item Opcode
1129
1130Disable named opcodes when compiling perl code
1131
1132=item POSIX
1133
1134Perl interface to IEEE Std 1003.1
1135
4e860d0a
JH
1136=item PerlIO
1137
1138On demand loader for PerlIO layers and root of PerlIO::* name space
1139
7ef5744c
RGS
1140=item PerlIO::encoding
1141
1142Encoding layer
1143
1144=item PerlIO::scalar
1145
639f8edf 1146In-memory IO, scalar IO
7ef5744c
RGS
1147
1148=item PerlIO::via
1149
1150Helper class for PerlIO layers implemented in perl
1151
c40f6c4a
JH
1152=item PerlIO::via::QuotedPrint
1153
1154PerlIO layer for quoted-printable strings
1155
9e107c59
GS
1156=item Pod::Checker
1157
1158Check pod documents for syntax errors
1159
2e1d04bc
JH
1160=item Pod::Find
1161
1162Find POD documents in directory trees
1163
06a5f41f
JH
1164=item Pod::Functions
1165
1166Group Perl's functions a la perlfunc.pod
1167
19799a22
GS
1168=item Pod::Html
1169
9e107c59
GS
1170Module to convert pod files to HTML
1171
1172=item Pod::InputObjects
1173
2e1d04bc 1174Objects representing POD input paragraphs, commands, etc.
9e107c59 1175
13a2d996
SP
1176=item Pod::LaTeX
1177
1178Convert Pod data to formatted Latex
1179
9e107c59
GS
1180=item Pod::Man
1181
1182Convert POD data to formatted *roff input
1183
1bb908c3
JH
1184=item Pod::ParseLink
1185
248e172a 1186Parse an LE<lt>E<gt> formatting code in POD text
1bb908c3 1187
2e1d04bc
JH
1188=item Pod::ParseUtils
1189
1190Helpers for POD parsing and conversion
1191
9e107c59
GS
1192=item Pod::Parser
1193
1194Base class for creating POD filters and translators
1195
a4373870
CW
1196=item Pod::Perldoc::ToChecker
1197
1198Let Perldoc check Pod for errors
1199
1200=item Pod::Perldoc::ToMan
1201
1202Let Perldoc render Pod as man pages
1203
1204=item Pod::Perldoc::ToNroff
1205
1206Let Perldoc convert Pod to nroff
1207
1208=item Pod::Perldoc::ToPod
1209
1210Let Perldoc render Pod as ... Pod!
1211
1212=item Pod::Perldoc::ToRtf
1213
1214Let Perldoc render Pod as RTF
1215
1216=item Pod::Perldoc::ToText
1217
1218Let Perldoc render Pod as plaintext
1219
1220=item Pod::Perldoc::ToTk
1221
1222Let Perldoc use Tk::Pod to render Pod
1223
1224=item Pod::Perldoc::ToXml
1225
1226Let Perldoc render Pod as XML
1227
1228=item Pod::PlainText
1229
1230Convert POD data to formatted ASCII text
1231
2e1d04bc
JH
1232=item Pod::Plainer
1233
1234Perl extension for converting Pod to old style Pod.
1235
9e107c59
GS
1236=item Pod::Select
1237
1238Extract selected sections of POD from input
19799a22
GS
1239
1240=item Pod::Text
1241
9e107c59
GS
1242Convert POD data to formatted ASCII text
1243
1244=item Pod::Text::Color
1245
1246Convert POD data to formatted color ASCII text
1247
4e860d0a
JH
1248=item Pod::Text::Overstrike
1249
1250Convert POD data to formatted overstrike text
1251
2e1d04bc
JH
1252=item Pod::Text::Termcap
1253
1254Convert POD data to ASCII text with format escapes
1255
9e107c59
GS
1256=item Pod::Usage
1257
1258Print a usage message from embedded pod documentation
f102b883 1259
ec90690f
TS
1260=item SDBM_File
1261
1262Tied access to sdbm files
1263
1264=item Safe
1265
1266Compile and execute code in restricted compartments
1267
7ef5744c
RGS
1268=item Scalar::Util
1269
1270A selection of general-utility scalar subroutines
1271
f102b883
TC
1272=item Search::Dict
1273
9e107c59 1274Search for key in dictionary file
f102b883
TC
1275
1276=item SelectSaver
1277
9e107c59 1278Save and restore selected file handle
f102b883
TC
1279
1280=item SelfLoader
1281
9e107c59 1282Load functions only on demand
f102b883
TC
1283
1284=item Shell
1285
2e1d04bc 1286Run shell commands transparently within perl
f102b883 1287
ec90690f
TS
1288=item Socket
1289
1290Load the C socket.h defines and structure manipulators
1291
1292=item Storable
1293
1294Persistence for Perl data structures
1295
4e860d0a
JH
1296=item Switch
1297
1298A switch statement for Perl
1299
f102b883
TC
1300=item Symbol
1301
9e107c59 1302Manipulate Perl symbols and their names
f102b883 1303
7ef5744c
RGS
1304=item Sys::Hostname
1305
1306Try every conceivable way to get hostname
1307
1308=item Sys::Syslog
1309
1310Perl interface to the UNIX syslog(3) calls
1311
2e1d04bc 1312=item Term::ANSIColor
f102b883 1313
2e1d04bc 1314Color screen output using ANSI escape sequences
f102b883
TC
1315
1316=item Term::Cap
1317
2e1d04bc 1318Perl termcap interface
f102b883
TC
1319
1320=item Term::Complete
1321
2e1d04bc 1322Perl word completion module
f102b883
TC
1323
1324=item Term::ReadLine
1325
7ef5744c 1326Perl interface to various C<readline> packages.
19799a22
GS
1327
1328=item Test
1329
9e107c59 1330Provides a simple framework for writing test scripts
f102b883 1331
1bb908c3
JH
1332=item Test::Builder
1333
1334Backend for building test libraries
1335
f102b883
TC
1336=item Test::Harness
1337
f262848d 1338Run Perl standard test scripts with statistics
f102b883 1339
d63e6bb6
JH
1340=item Test::Harness::Assert
1341
1342Simple assert
1343
1344=item Test::Harness::Iterator
1345
1346Internal Test::Harness Iterator
1347
97a1d740
YST
1348=item Test::Harness::Point
1349
1350Object for tracking a single test point
1351
d63e6bb6
JH
1352=item Test::Harness::Straps
1353
1354Detailed analysis of test results
1355
407700fe
RGS
1356=item Test::Harness::TAP
1357
1358Documentation for the TAP format
1359
7a49b635
JH
1360=item Test::More
1361
1362Yet another framework for writing test scripts
1363
1364=item Test::Simple
1365
1366Basic utilities for writing tests.
1367
e61ecf27
JH
1368=item Test::Tutorial
1369
1370A tutorial about writing really basic tests
1371
f102b883
TC
1372=item Text::Abbrev
1373
9e107c59 1374Create an abbreviation table from a list
f102b883 1375
4e860d0a
JH
1376=item Text::Balanced
1377
1378Extract delimited text sequences from strings.
1379
f102b883
TC
1380=item Text::ParseWords
1381
2e1d04bc 1382Parse text into an array of tokens or array of arrays
f102b883
TC
1383
1384=item Text::Soundex
1385
2e1d04bc 1386Implementation of the Soundex Algorithm as Described by Knuth
f102b883 1387
4e860d0a
JH
1388=item Text::Tabs
1389
1390Expand and unexpand tabs per the unix expand(1) and unexpand(1)
1391
f102b883
TC
1392=item Text::Wrap
1393
9e107c59 1394Line wrapping to form simple paragraphs
19799a22 1395
1bb908c3
JH
1396=item Thread
1397
416e7255 1398Manipulate threads in Perl (for old code only)
1bb908c3 1399
ec90690f
TS
1400=item Thread::Queue
1401
83272a45 1402Thread-safe queues
ec90690f
TS
1403
1404=item Thread::Semaphore
1405
83272a45 1406Thread-safe semaphores
ec90690f 1407
7ef5744c
RGS
1408=item Thread::Signal
1409
1410Start a thread which runs signal handlers reliably (for old code)
1411
1412=item Thread::Specific
1413
1414Thread-specific keys
1415
19799a22
GS
1416=item Tie::Array
1417
9e107c59 1418Base class for tied arrays
19799a22 1419
d63e6bb6
JH
1420=item Tie::File
1421
1422Access the lines of a disk file via a Perl array
1423
19799a22
GS
1424=item Tie::Handle
1425
9e107c59 1426Base class definitions for tied handles
19799a22 1427
9e107c59 1428=item Tie::Hash
f102b883 1429
9e107c59 1430Base class definitions for tied hashes
f102b883 1431
d63e6bb6
JH
1432=item Tie::Memoize
1433
1434Add data to hash when needed
1435
f102b883
TC
1436=item Tie::RefHash
1437
9e107c59 1438Use references as hash keys
f102b883 1439
9e107c59 1440=item Tie::Scalar
f102b883 1441
9e107c59 1442Base class definitions for tied scalars
f102b883
TC
1443
1444=item Tie::SubstrHash
1445
19799a22 1446Fixed-table-size, fixed-key-length hashing
f102b883 1447
7ef5744c
RGS
1448=item Time::HiRes
1449
1450High resolution alarm, sleep, gettimeofday, interval timers
1451
f102b883
TC
1452=item Time::Local
1453
9e107c59 1454Efficiently compute time from local and GMT time
f102b883
TC
1455
1456=item Time::gmtime
1457
9e107c59 1458By-name interface to Perl's built-in gmtime() function
f102b883
TC
1459
1460=item Time::localtime
1461
9e107c59 1462By-name interface to Perl's built-in localtime() function
f102b883
TC
1463
1464=item Time::tm
1465
9e107c59 1466Internal object used by Time::gmtime and Time::localtime
f102b883
TC
1467
1468=item UNIVERSAL
1469
9e107c59 1470Base class for ALL classes (blessed references)
f102b883 1471
e61ecf27
JH
1472=item Unicode::Collate
1473
ec90690f 1474Unicode Collation Algorithm
e61ecf27 1475
7ef5744c
RGS
1476=item Unicode::Normalize
1477
1478Unicode Normalization Forms
1479
e61ecf27 1480=item Unicode::UCD
fbe3d936
JH
1481
1482Unicode character database
1483
f102b883
TC
1484=item User::grent
1485
9e107c59 1486By-name interface to Perl's built-in getgr*() functions
f102b883
TC
1487
1488=item User::pwent
1489
9e107c59 1490By-name interface to Perl's built-in getpw*() functions
f102b883 1491
7ef5744c
RGS
1492=item XS::APItest
1493
1494Test the perl C API
1495
1496=item XS::Typemap
1497
1498Module to test the XS typemaps distributed with perl
1499
1500=item XSLoader
1501
1502Dynamically load C libraries into Perl code
1503
f102b883
TC
1504=back
1505
19799a22 1506To find out I<all> modules installed on your system, including
2e1d04bc 1507those without documentation or outside the standard release,
a4373870
CW
1508just use the following command (under the default win32 shell,
1509double quotes should be used instead of single quotes).
f102b883 1510
a4373870
CW
1511 % perl -MFile::Find=find -MFile::Spec::Functions -Tlwe \
1512 'find { wanted => sub { print canonpath $_ if /\.pm\z/ },
1513 no_chdir => 1 }, @INC'
f102b883 1514
8518420c 1515(The -T is here to prevent '.' from being listed in @INC.)
2e1d04bc
JH
1516They should all have their own documentation installed and accessible
1517via your system man(1) command. If you do not have a B<find>
19799a22
GS
1518program, you can use the Perl B<find2perl> program instead, which
1519generates Perl code as output you can run through perl. If you
1520have a B<man> program but it doesn't find your modules, you'll have
2e1d04bc
JH
1521to fix your manpath. See L<perl> for details. If you have no
1522system B<man> command, you might try the B<perldoc> program.
f102b883 1523
8518420c
RGS
1524Note also that the command C<perldoc perllocal> gives you a (possibly
1525incomplete) list of the modules that have been further installed on
1526your system. (The perllocal.pod file is updated by the standard MakeMaker
1527install process.)
1528
f102b883
TC
1529=head2 Extension Modules
1530
19799a22
GS
1531Extension modules are written in C (or a mix of Perl and C). They
1532are usually dynamically loaded into Perl if and when you need them,
d1be9408 1533but may also be linked in statically. Supported extension modules
19799a22 1534include Socket, Fcntl, and POSIX.
f102b883
TC
1535
1536Many popular C extension modules do not come bundled (at least, not
19799a22
GS
1537completely) due to their sizes, volatility, or simply lack of time
1538for adequate testing and configuration across the multitude of
1539platforms on which Perl was beta-tested. You are encouraged to
1540look for them on CPAN (described below), or using web search engines
7ef5744c 1541like Alta Vista or Google.
f102b883
TC
1542
1543=head1 CPAN
1544
19799a22
GS
1545CPAN stands for Comprehensive Perl Archive Network; it's a globally
1546replicated trove of Perl materials, including documentation, style
2e1d04bc 1547guides, tricks and traps, alternate ports to non-Unix systems and
19799a22 1548occasional binary distributions for these. Search engines for
1577cd80 1549CPAN can be found at http://www.cpan.org/
19799a22
GS
1550
1551Most importantly, CPAN includes around a thousand unbundled modules,
1552some of which require a C compiler to build. Major categories of
1553modules are:
f102b883 1554
4e860d0a 1555=over
f102b883
TC
1556
1557=item *
551e1d92 1558
f102b883
TC
1559Language Extensions and Documentation Tools
1560
1561=item *
551e1d92 1562
f102b883
TC
1563Development Support
1564
1565=item *
551e1d92 1566
f102b883
TC
1567Operating System Interfaces
1568
1569=item *
551e1d92 1570
f102b883
TC
1571Networking, Device Control (modems) and InterProcess Communication
1572
1573=item *
551e1d92 1574
f102b883
TC
1575Data Types and Data Type Utilities
1576
1577=item *
551e1d92 1578
f102b883
TC
1579Database Interfaces
1580
1581=item *
551e1d92 1582
f102b883
TC
1583User Interfaces
1584
1585=item *
551e1d92 1586
f102b883
TC
1587Interfaces to / Emulations of Other Programming Languages
1588
1589=item *
551e1d92 1590
f102b883
TC
1591File Names, File Systems and File Locking (see also File Handles)
1592
1593=item *
551e1d92 1594
f102b883
TC
1595String Processing, Language Text Processing, Parsing, and Searching
1596
1597=item *
551e1d92 1598
f102b883
TC
1599Option, Argument, Parameter, and Configuration File Processing
1600
1601=item *
551e1d92 1602
f102b883
TC
1603Internationalization and Locale
1604
1605=item *
551e1d92 1606
f102b883
TC
1607Authentication, Security, and Encryption
1608
1609=item *
551e1d92 1610
f102b883
TC
1611World Wide Web, HTML, HTTP, CGI, MIME
1612
1613=item *
551e1d92 1614
f102b883
TC
1615Server and Daemon Utilities
1616
1617=item *
551e1d92 1618
f102b883
TC
1619Archiving and Compression
1620
1621=item *
551e1d92 1622
f102b883
TC
1623Images, Pixmap and Bitmap Manipulation, Drawing, and Graphing
1624
1625=item *
551e1d92 1626
f102b883
TC
1627Mail and Usenet News
1628
1629=item *
551e1d92 1630
f102b883
TC
1631Control Flow Utilities (callbacks and exceptions etc)
1632
1633=item *
551e1d92 1634
f102b883
TC
1635File Handle and Input/Output Stream Utilities
1636
1637=item *
551e1d92 1638
f102b883
TC
1639Miscellaneous Modules
1640
1641=back
1642
5df44211
JH
1643The list of the registered CPAN sites as of this writing follows.
1644Please note that the sorting order is alphabetical on fields:
1645
1646Continent
1647 |
1648 |-->Country
1649 |
1650 |-->[state/province]
1651 |
1652 |-->ftp
1653 |
1654 |-->[http]
1655
1656and thus the North American servers happen to be listed between the
1657European and the South American sites.
1658
1659You should try to choose one close to you.
f102b883 1660
4e860d0a
JH
1661=head2 Africa
1662
cea6626f 1663=over 4
f102b883 1664
5df44211 1665=item South Africa
4e860d0a 1666
5c5c2539
JH
1667 http://ftp.rucus.ru.ac.za/pub/perl/CPAN/
1668 ftp://ftp.rucus.ru.ac.za/pub/perl/CPAN/
5df44211 1669 ftp://ftp.is.co.za/programming/perl/CPAN/
5df44211
JH
1670 ftp://ftp.saix.net/pub/CPAN/
1671 ftp://ftp.sun.ac.za/CPAN/CPAN/
4e860d0a
JH
1672
1673=back
1674
1675=head2 Asia
1676
1677=over 4
1678
5df44211 1679=item China
4e860d0a 1680
5c5c2539 1681 http://cpan.linuxforum.net/
5df44211
JH
1682 http://cpan.shellhung.org/
1683 ftp://ftp.shellhung.org/pub/CPAN
5c5c2539 1684 ftp://mirrors.hknet.com/CPAN
37a78d01 1685
5df44211 1686=item Indonesia
37a78d01 1687
5c5c2539 1688 http://mirrors.tf.itb.ac.id/cpan/
5df44211
JH
1689 http://cpan.cbn.net.id/
1690 ftp://ftp.cbn.net.id/mirror/CPAN
37a78d01 1691
5df44211 1692=item Israel
37a78d01 1693
5df44211
JH
1694 ftp://ftp.iglu.org.il/pub/CPAN/
1695 http://cpan.lerner.co.il/
1696 http://bioinfo.weizmann.ac.il/pub/software/perl/CPAN/
1697 ftp://bioinfo.weizmann.ac.il/pub/software/perl/CPAN/
37a78d01 1698
5df44211 1699=item Japan
37a78d01 1700
5df44211
JH
1701 ftp://ftp.u-aizu.ac.jp/pub/CPAN
1702 ftp://ftp.kddlabs.co.jp/CPAN/
5df44211
JH
1703 ftp://ftp.ayamura.org/pub/CPAN/
1704 ftp://ftp.jaist.ac.jp/pub/lang/perl/CPAN/
7a142657
JH
1705 http://ftp.cpan.jp/
1706 ftp://ftp.cpan.jp/CPAN/
5df44211
JH
1707 ftp://ftp.dti.ad.jp/pub/lang/CPAN/
1708 ftp://ftp.ring.gr.jp/pub/lang/perl/CPAN/
37a78d01 1709
5c5c2539 1710=item Malaysia
37a78d01 1711
5c5c2539
JH
1712 http://cpan.MyBSD.org.my
1713 http://mirror.leafbug.org/pub/CPAN
1714 http://ossig.mncc.com.my/mirror/pub/CPAN
4e860d0a 1715
5df44211 1716=item Russian Federation
4e860d0a 1717
5df44211 1718 http://cpan.tomsk.ru
7a142657 1719 ftp://cpan.tomsk.ru/
4e860d0a 1720
5df44211 1721=item Saudi Arabia
4e860d0a 1722
5df44211 1723 ftp://ftp.isu.net.sa/pub/CPAN/
4e860d0a 1724
5df44211 1725=item Singapore
4e860d0a 1726
5c5c2539
JH
1727 http://CPAN.en.com.sg/
1728 ftp://cpan.en.com.sg/
5df44211
JH
1729 http://mirror.averse.net/pub/CPAN
1730 ftp://mirror.averse.net/pub/CPAN
5c5c2539
JH
1731 http://cpan.oss.eznetsols.org
1732 ftp://ftp.oss.eznetsols.org/cpan
4e860d0a 1733
5df44211 1734=item South Korea
4e860d0a 1735
5df44211
JH
1736 http://CPAN.bora.net/
1737 ftp://ftp.bora.net/pub/CPAN/
5c5c2539
JH
1738 http://mirror.kr.FreeBSD.org/CPAN
1739 ftp://ftp.kr.FreeBSD.org/pub/CPAN
4e860d0a 1740
5df44211 1741=item Taiwan
4e860d0a 1742
5df44211 1743 ftp://ftp.nctu.edu.tw/UNIX/perl/CPAN
5c5c2539
JH
1744 http://cpan.cdpa.nsysu.edu.tw/
1745 ftp://cpan.cdpa.nsysu.edu.tw/pub/CPAN
1746 http://ftp.isu.edu.tw/pub/CPAN
1747 ftp://ftp.isu.edu.tw/pub/CPAN
5df44211
JH
1748 ftp://ftp1.sinica.edu.tw/pub1/perl/CPAN/
1749 http://ftp.tku.edu.tw/pub/CPAN/
1750 ftp://ftp.tku.edu.tw/pub/CPAN/
7a142657 1751
5df44211 1752=item Thailand
4e860d0a 1753
5df44211
JH
1754 ftp://ftp.loxinfo.co.th/pub/cpan/
1755 ftp://ftp.cs.riubon.ac.th/pub/mirrors/CPAN/
4e860d0a
JH
1756
1757=back
1758
1759=head2 Central America
1760
1761=over 4
1762
5df44211 1763=item Costa Rica
4e860d0a 1764
5df44211
JH
1765 http://ftp.ucr.ac.cr/Unix/CPAN/
1766 ftp://ftp.ucr.ac.cr/pub/Unix/CPAN/
4e860d0a
JH
1767
1768=back
1769
1770=head2 Europe
1771
1772=over 4
1773
5df44211 1774=item Austria
4e860d0a 1775
639f8edf
HS
1776 http://cpan.inode.at/
1777 ftp://cpan.inode.at
5df44211 1778 ftp://ftp.tuwien.ac.at/pub/CPAN/
4e860d0a 1779
5df44211 1780=item Belgium
4e860d0a 1781
5df44211
JH
1782 http://ftp.easynet.be/pub/CPAN/
1783 ftp://ftp.easynet.be/pub/CPAN/
1784 http://cpan.skynet.be
5c5c2539 1785 ftp://ftp.cpan.skynet.be/pub/CPAN
5df44211 1786 ftp://ftp.kulnet.kuleuven.ac.be/pub/mirror/CPAN/
4e860d0a 1787
7a142657
JH
1788=item Bosnia and Herzegovina
1789
1790 http://cpan.blic.net/
1791
5df44211 1792=item Bulgaria
4e860d0a 1793
5c5c2539
JH
1794 http://cpan.online.bg
1795 ftp://cpan.online.bg/cpan
1796 http://cpan.zadnik.org
1797 ftp://ftp.zadnik.org/mirrors/CPAN/
5df44211
JH
1798 http://cpan.lirex.net/
1799 ftp://ftp.lirex.net/pub/mirrors/CPAN
4e860d0a 1800
5df44211 1801=item Croatia
4e860d0a 1802
5df44211
JH
1803 http://ftp.linux.hr/pub/CPAN/
1804 ftp://ftp.linux.hr/pub/CPAN/
4e860d0a 1805
5df44211 1806=item Czech Republic
4e860d0a 1807
5df44211
JH
1808 ftp://ftp.fi.muni.cz/pub/CPAN/
1809 ftp://sunsite.mff.cuni.cz/MIRRORS/ftp.funet.fi/pub/languages/perl/CPAN/
4e860d0a 1810
5df44211 1811=item Denmark
4e860d0a 1812
5df44211
JH
1813 http://mirrors.sunsite.dk/cpan/
1814 ftp://sunsite.dk/mirrors/cpan/
1815 http://cpan.cybercity.dk
1816 http://www.cpan.dk/CPAN/
1817 ftp://www.cpan.dk/ftp.cpan.org/CPAN/
4e860d0a 1818
5df44211 1819=item Estonia
4e860d0a 1820
5df44211 1821 ftp://ftp.ut.ee/pub/languages/perl/CPAN/
4e860d0a 1822
5df44211 1823=item Finland
4e860d0a 1824
5df44211 1825 ftp://ftp.funet.fi/pub/languages/perl/CPAN/
5c5c2539 1826 http://mirror.eunet.fi/CPAN
4e860d0a 1827
5df44211 1828=item France
37a78d01 1829
5c5c2539 1830 http://www.enstimac.fr/Perl/CPAN
5df44211
JH
1831 http://ftp.u-paris10.fr/perl/CPAN
1832 ftp://ftp.u-paris10.fr/perl/CPAN
1833 http://cpan.mirrors.easynet.fr/
1834 ftp://cpan.mirrors.easynet.fr/pub/ftp.cpan.org/
1835 ftp://ftp.club-internet.fr/pub/perl/CPAN/
1836 http://fr.cpan.org/
1837 ftp://ftp.lip6.fr/pub/perl/CPAN/
1838 ftp://ftp.oleane.net/pub/mirrors/CPAN/
1839 ftp://ftp.pasteur.fr/pub/computing/CPAN/
1840 http://mir2.ovh.net/ftp.cpan.org
1841 ftp://mir1.ovh.net/ftp.cpan.org
5c5c2539
JH
1842 http://ftp.crihan.fr/mirrors/ftp.cpan.org/
1843 ftp://ftp.crihan.fr/mirrors/ftp.cpan.org/
5df44211
JH
1844 http://ftp.u-strasbg.fr/CPAN
1845 ftp://ftp.u-strasbg.fr/CPAN
5df44211
JH
1846 ftp://cpan.cict.fr/pub/CPAN/
1847 ftp://ftp.uvsq.fr/pub/perl/CPAN/
37a78d01 1848
5df44211 1849=item Germany
37a78d01 1850
5c5c2539 1851 ftp://ftp.rub.de/pub/CPAN/
5df44211
JH
1852 ftp://ftp.freenet.de/pub/ftp.cpan.org/pub/CPAN/
1853 ftp://ftp.uni-erlangen.de/pub/source/CPAN/
1854 ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/CPAN
1855 http://pandemonium.tiscali.de/pub/CPAN/
1856 ftp://pandemonium.tiscali.de/pub/CPAN/
1857 http://ftp.gwdg.de/pub/languages/perl/CPAN/
1858 ftp://ftp.gwdg.de/pub/languages/perl/CPAN/
1859 ftp://ftp.uni-hamburg.de/pub/soft/lang/perl/CPAN/
1860 ftp://ftp.leo.org/pub/CPAN/
1861 http://cpan.noris.de/
1862 ftp://cpan.noris.de/pub/CPAN/
1863 ftp://ftp.mpi-sb.mpg.de/pub/perl/CPAN/
1864 ftp://ftp.gmd.de/mirrors/CPAN/
4e860d0a 1865
5df44211 1866=item Greece
4e860d0a 1867
5c5c2539 1868 ftp://ftp.acn.gr/pub/lang/perl
5df44211
JH
1869 ftp://ftp.forthnet.gr/pub/languages/perl/CPAN
1870 ftp://ftp.ntua.gr/pub/lang/perl/
4e860d0a 1871
5df44211 1872=item Hungary
4e860d0a 1873
5df44211
JH
1874 http://ftp.kfki.hu/packages/perl/CPAN/
1875 ftp://ftp.kfki.hu/pub/packages/perl/CPAN/
4e860d0a 1876
5df44211 1877=item Iceland
4e860d0a 1878
5df44211
JH
1879 http://ftp.rhnet.is/pub/CPAN/
1880 ftp://ftp.rhnet.is/pub/CPAN/
4e860d0a 1881
5df44211 1882=item Ireland
4e860d0a 1883
5df44211
JH
1884 http://cpan.indigo.ie/
1885 ftp://cpan.indigo.ie/pub/CPAN/
5c5c2539
JH
1886 http://ftp.heanet.ie/mirrors/ftp.perl.org/pub/CPAN
1887 ftp://ftp.heanet.ie/mirrors/ftp.perl.org/pub/CPAN
5df44211
JH
1888 http://sunsite.compapp.dcu.ie/pub/perl/
1889 ftp://sunsite.compapp.dcu.ie/pub/perl/
4e860d0a 1890
5df44211 1891=item Italy
4e860d0a 1892
5df44211
JH
1893 http://cpan.nettuno.it/
1894 http://gusp.dyndns.org/CPAN/
1895 ftp://gusp.dyndns.org/pub/CPAN
1896 http://softcity.iol.it/cpan
1897 ftp://softcity.iol.it/pub/cpan
1898 ftp://ftp.unina.it/pub/Other/CPAN/CPAN/
1899 ftp://ftp.unipi.it/pub/mirror/perl/CPAN/
1900 ftp://cis.uniRoma2.it/CPAN/
1901 ftp://ftp.edisontel.it/pub/CPAN_Mirror/
5c5c2539 1902 http://cpan.flashnet.it/
5df44211 1903 ftp://ftp.flashnet.it/pub/CPAN/
4e860d0a 1904
5df44211 1905=item Latvia
4e860d0a 1906
5df44211 1907 http://kvin.lv/pub/CPAN/
4e860d0a 1908
5df44211 1909=item Lithuania
4e860d0a 1910
5df44211 1911 ftp://ftp.unix.lt/pub/CPAN/
4e860d0a 1912
5df44211 1913=item Netherlands
4e860d0a 1914
5df44211
JH
1915 ftp://download.xs4all.nl/pub/mirror/CPAN/
1916 ftp://ftp.nl.uu.net/pub/CPAN/
1917 ftp://ftp.nluug.nl/pub/languages/perl/CPAN/
1918 http://cpan.cybercomm.nl/
1919 ftp://mirror.cybercomm.nl/pub/CPAN
5c5c2539 1920 ftp://mirror.vuurwerk.nl/pub/CPAN/
5df44211
JH
1921 ftp://ftp.cpan.nl/pub/CPAN/
1922 http://ftp.easynet.nl/mirror/CPAN
1923 ftp://ftp.easynet.nl/mirror/CPAN
1924 http://archive.cs.uu.nl/mirror/CPAN/
1925 ftp://ftp.cs.uu.nl/mirror/CPAN/
4e860d0a 1926
5df44211
JH
1927=item Norway
1928
1929 ftp://ftp.uninett.no/pub/languages/perl/CPAN
1930 ftp://ftp.uit.no/pub/languages/perl/cpan/
1931
1932=item Poland
1933
639f8edf 1934 ftp://ftp.mega.net.pl/CPAN
5df44211
JH
1935 ftp://ftp.man.torun.pl/pub/doc/CPAN/
1936 ftp://sunsite.icm.edu.pl/pub/CPAN/
1937
1938=item Portugal
1939
1940 ftp://ftp.ua.pt/pub/CPAN/
1941 ftp://perl.di.uminho.pt/pub/CPAN/
1942 http://cpan.dei.uc.pt/
1943 ftp://ftp.dei.uc.pt/pub/CPAN
5c5c2539
JH
1944 ftp://ftp.nfsi.pt/pub/CPAN
1945 http://ftp.linux.pt/pub/mirrors/CPAN
1946 ftp://ftp.linux.pt/pub/mirrors/CPAN
5df44211
JH
1947 http://cpan.ip.pt/
1948 ftp://cpan.ip.pt/pub/cpan/
5c5c2539
JH
1949 http://cpan.telepac.pt/
1950 ftp://ftp.telepac.pt/pub/cpan/
4e860d0a 1951
5df44211 1952=item Romania
4e860d0a 1953
5c5c2539 1954 ftp://ftp.bio-net.ro/pub/CPAN
5df44211 1955 ftp://ftp.kappa.ro/pub/mirrors/ftp.perl.org/pub/CPAN/
7a142657 1956 ftp://ftp.lug.ro/CPAN
5c5c2539 1957 ftp://ftp.roedu.net/pub/CPAN/
5df44211 1958 ftp://ftp.dntis.ro/pub/cpan/
5c5c2539
JH
1959 ftp://ftp.iasi.roedu.net/pub/mirrors/ftp.cpan.org/
1960 http://cpan.ambra.ro/
1961 ftp://ftp.ambra.ro/pub/CPAN
5df44211
JH
1962 ftp://ftp.dnttm.ro/pub/CPAN/
1963 ftp://ftp.lasting.ro/pub/CPAN
1964 ftp://ftp.timisoara.roedu.net/mirrors/CPAN/
4e860d0a 1965
5df44211 1966=item Russia
4e860d0a 1967
5df44211
JH
1968 ftp://ftp.chg.ru/pub/lang/perl/CPAN/
1969 http://cpan.rinet.ru/
1970 ftp://cpan.rinet.ru/pub/mirror/CPAN/
1971 ftp://ftp.aha.ru/pub/CPAN/
7a142657 1972 ftp://ftp.corbina.ru/pub/CPAN/
5df44211
JH
1973 http://cpan.sai.msu.ru/
1974 ftp://ftp.sai.msu.su/pub/lang/perl/CPAN/
4e860d0a 1975
5df44211 1976=item Slovakia
4e860d0a 1977
5df44211 1978 ftp://ftp.cvt.stuba.sk/pub/CPAN/
4e860d0a 1979
5df44211 1980=item Slovenia
4e860d0a 1981
5df44211 1982 ftp://ftp.arnes.si/software/perl/CPAN/
4e860d0a 1983
5df44211 1984=item Spain
4e860d0a 1985
5df44211
JH
1986 http://cpan.imasd.elmundo.es/
1987 ftp://ftp.rediris.es/mirror/CPAN/
639f8edf 1988 ftp://ftp.ri.telefonica-data.net/CPAN
5df44211 1989 ftp://ftp.etse.urv.es/pub/perl/
4e860d0a 1990
5df44211 1991=item Sweden
4e860d0a 1992
5df44211
JH
1993 http://ftp.du.se/CPAN/
1994 ftp://ftp.du.se/pub/CPAN/
5c5c2539 1995 http://mirror.dataphone.se/CPAN
5df44211
JH
1996 ftp://mirror.dataphone.se/pub/CPAN
1997 ftp://ftp.sunet.se/pub/lang/perl/CPAN/
4e860d0a 1998
5df44211 1999=item Switzerland
4e860d0a 2000
7a142657
JH
2001 http://cpan.mirror.solnet.ch/
2002 ftp://ftp.solnet.ch/mirror/CPAN/
5df44211
JH
2003 ftp://ftp.danyk.ch/CPAN/
2004 ftp://sunsite.cnlab-switch.ch/mirror/CPAN/
4e860d0a 2005
5df44211 2006=item Turkey
4e860d0a 2007
5df44211
JH
2008 http://ftp.ulak.net.tr/perl/CPAN/
2009 ftp://ftp.ulak.net.tr/perl/CPAN
2010 ftp://sunsite.bilkent.edu.tr/pub/languages/CPAN/
37a78d01 2011
5df44211 2012=item Ukraine
37a78d01 2013
5df44211
JH
2014 http://cpan.org.ua/
2015 ftp://cpan.org.ua/
2016 ftp://ftp.perl.org.ua/pub/CPAN/
5c5c2539
JH
2017 http://no-more.kiev.ua/CPAN/
2018 ftp://no-more.kiev.ua/pub/CPAN/
37a78d01 2019
5df44211 2020=item United Kingdom
556e28cf 2021
5df44211
JH
2022 http://www.mirror.ac.uk/sites/ftp.funet.fi/pub/languages/perl/CPAN
2023 ftp://ftp.mirror.ac.uk/sites/ftp.funet.fi/pub/languages/perl/CPAN/
2024 http://cpan.teleglobe.net/
2025 ftp://cpan.teleglobe.net/pub/CPAN
5c5c2539
JH
2026 http://cpan.mirror.anlx.net/
2027 ftp://ftp.mirror.anlx.net/CPAN/
7a142657
JH
2028 http://cpan.etla.org/
2029 ftp://cpan.etla.org/pub/CPAN
5df44211
JH
2030 ftp://ftp.demon.co.uk/pub/CPAN/
2031 http://cpan.m.flirble.org/
2032 ftp://ftp.flirble.org/pub/languages/perl/CPAN/
2033 ftp://ftp.plig.org/pub/CPAN/
5c5c2539 2034 http://cpan.hambule.co.uk/
5df44211
JH
2035 http://cpan.mirrors.clockerz.net/
2036 ftp://ftp.clockerz.net/pub/CPAN/
2037 ftp://usit.shef.ac.uk/pub/packages/CPAN/
556e28cf 2038
4e860d0a
JH
2039=back
2040
2041=head2 North America
2042
2043=over 4
2044
5c5c2539
JH
2045=item Canada
2046
7a142657 2047=over 8
5c5c2539 2048
5df44211 2049=item Alberta
4e860d0a 2050
5c5c2539
JH
2051 http://cpan.sunsite.ualberta.ca/
2052 ftp://cpan.sunsite.ualberta.ca/pub/CPAN/
4e860d0a 2053
5df44211 2054=item Manitoba
4e860d0a 2055
5df44211
JH
2056 http://theoryx5.uwinnipeg.ca/pub/CPAN/
2057 ftp://theoryx5.uwinnipeg.ca/pub/CPAN/
4e860d0a 2058
5df44211 2059=item Nova Scotia
4e860d0a 2060
5df44211 2061 ftp://cpan.chebucto.ns.ca/pub/CPAN/
4e860d0a 2062
5df44211 2063=item Ontario
4e860d0a 2064
5c5c2539 2065 ftp://ftp.nrc.ca/pub/CPAN/
37a78d01 2066
7a142657
JH
2067=back
2068
5df44211 2069=item Mexico
37a78d01 2070
5df44211
JH
2071 http://cpan.azc.uam.mx
2072 ftp://cpan.azc.uam.mx/mirrors/CPAN
7a142657
JH
2073 http://www.cpan.unam.mx/
2074 ftp://ftp.unam.mx/pub/CPAN
5df44211
JH
2075 http://www.msg.com.mx/CPAN/
2076 ftp://ftp.msg.com.mx/pub/CPAN/
37a78d01 2077
5c5c2539 2078=item United States
556e28cf 2079
7a142657 2080=over 8
4e860d0a 2081
5df44211 2082=item Alabama
4e860d0a 2083
5df44211
JH
2084 http://mirror.hiwaay.net/CPAN/
2085 ftp://mirror.hiwaay.net/CPAN/
4e860d0a 2086
5df44211 2087=item California
4e860d0a 2088
5df44211
JH
2089 http://cpan.develooper.com/
2090 http://www.cpan.org/
2091 ftp://cpan.valueclick.com/pub/CPAN/
7a142657
JH
2092 http://www.mednor.net/ftp/pub/mirrors/CPAN/
2093 ftp://ftp.mednor.net/pub/mirrors/CPAN/
5df44211
JH
2094 http://mirrors.gossamer-threads.com/CPAN
2095 ftp://cpan.nas.nasa.gov/pub/perl/CPAN/
2096 http://mirrors.kernel.org/cpan/
2097 ftp://mirrors.kernel.org/pub/CPAN
7a142657
JH
2098 http://cpan-sj.viaverio.com/
2099 ftp://cpan-sj.viaverio.com/pub/CPAN/
5df44211
JH
2100 http://cpan.digisle.net/
2101 ftp://cpan.digisle.net/pub/CPAN
2102 http://www.perl.com/CPAN/
7a142657 2103 http://www.uberlan.net/CPAN
4e860d0a 2104
5df44211 2105=item Colorado
4e860d0a 2106
5df44211 2107 ftp://ftp.cs.colorado.edu/pub/perl/CPAN/
7a142657 2108 http://cpan.four10.com
4e860d0a 2109
5df44211 2110=item Delaware
4e860d0a 2111
5df44211
JH
2112 http://ftp.lug.udel.edu/pub/CPAN
2113 ftp://ftp.lug.udel.edu/pub/CPAN
4e860d0a 2114
5df44211 2115=item District of Columbia
4e860d0a 2116
5df44211 2117 ftp://ftp.dc.aleron.net/pub/CPAN/
4e860d0a 2118
5df44211 2119=item Florida
37a78d01 2120
5df44211
JH
2121 ftp://ftp.cise.ufl.edu/pub/mirrors/CPAN/
2122 http://mirror.csit.fsu.edu/pub/CPAN/
2123 ftp://mirror.csit.fsu.edu/pub/CPAN/
2124 http://cpan.mirrors.nks.net/
37a78d01 2125
5df44211 2126=item Indiana
4e860d0a 2127
5df44211
JH
2128 ftp://ftp.uwsg.iu.edu/pub/perl/CPAN/
2129 http://cpan.netnitco.net/
2130 ftp://cpan.netnitco.net/pub/mirrors/CPAN/
2131 http://archive.progeny.com/CPAN/
2132 ftp://archive.progeny.com/CPAN/
5c5c2539
JH
2133 http://fx.saintjoe.edu/pub/CPAN
2134 ftp://ftp.saintjoe.edu/pub/CPAN
5df44211
JH
2135 http://csociety-ftp.ecn.purdue.edu/pub/CPAN
2136 ftp://csociety-ftp.ecn.purdue.edu/pub/CPAN
4e860d0a 2137
5df44211 2138=item Kentucky
4e860d0a 2139
5df44211
JH
2140 http://cpan.uky.edu/
2141 ftp://cpan.uky.edu/pub/CPAN/
5c5c2539
JH
2142 http://slugsite.louisville.edu/cpan
2143 ftp://slugsite.louisville.edu/CPAN
4e860d0a 2144
5df44211 2145=item Massachusetts
4e860d0a 2146
5c5c2539
JH
2147 http://mirrors.towardex.com/CPAN
2148 ftp://mirrors.towardex.com/pub/CPAN
5df44211 2149 ftp://ftp.ccs.neu.edu/net/mirrors/ftp.funet.fi/pub/languages/perl/CPAN/
4e860d0a 2150
5df44211 2151=item Michigan
4e860d0a 2152
5df44211 2153 ftp://cpan.cse.msu.edu/
639f8edf
HS
2154 http://cpan.calvin.edu/pub/CPAN
2155 ftp://cpan.calvin.edu/pub/CPAN
4e860d0a 2156
5c5c2539
JH
2157=item Nevada
2158
2159 http://www.oss.redundant.com/pub/CPAN
2160 ftp://www.oss.redundant.com/pub/CPAN
2161
5df44211 2162=item New Jersey
4e860d0a 2163
5c5c2539 2164 http://ftp.cpanel.net/pub/CPAN/
5df44211
JH
2165 ftp://ftp.cpanel.net/pub/CPAN/
2166 http://cpan.teleglobe.net/
2167 ftp://cpan.teleglobe.net/pub/CPAN
4e860d0a 2168
5df44211 2169=item New York
4e860d0a 2170
5df44211 2171 http://cpan.belfry.net/
5c5c2539
JH
2172 http://cpan.erlbaum.net/
2173 ftp://cpan.erlbaum.net/
5df44211
JH
2174 http://cpan.thepirtgroup.com/
2175 ftp://cpan.thepirtgroup.com/
2176 ftp://ftp.stealth.net/pub/CPAN/
2177 http://www.rge.com/pub/languages/perl/
2178 ftp://ftp.rge.com/pub/languages/perl/
4e860d0a 2179
5df44211 2180=item North Carolina
4e860d0a 2181
7a142657
JH
2182 http://www.ibiblio.org/pub/languages/perl/CPAN
2183 ftp://ftp.ibiblio.org/pub/languages/perl/CPAN
5df44211 2184 ftp://ftp.duke.edu/pub/perl/
5c5c2539 2185 ftp://ftp.ncsu.edu/pub/mirror/CPAN/
4e860d0a 2186
5df44211 2187=item Oklahoma
4e860d0a 2188
5df44211 2189 ftp://ftp.ou.edu/mirrors/CPAN/
4e860d0a 2190
5df44211 2191=item Oregon
4e860d0a 2192
5df44211 2193 ftp://ftp.orst.edu/pub/CPAN
4e860d0a 2194
5df44211 2195=item Pennsylvania
4e860d0a 2196
5df44211
JH
2197 http://ftp.epix.net/CPAN/
2198 ftp://ftp.epix.net/pub/languages/perl/
2199 http://mirrors.phenominet.com/pub/CPAN/
2200 ftp://mirrors.phenominet.com/pub/CPAN/
2201 http://cpan.pair.com/
2202 ftp://cpan.pair.com/pub/CPAN/
2203 ftp://carroll.cac.psu.edu/pub/CPAN/
4e860d0a 2204
5df44211 2205=item Tennessee
4e860d0a 2206
5df44211 2207 ftp://ftp.sunsite.utk.edu/pub/CPAN/
4e860d0a 2208
5df44211 2209=item Texas
4e860d0a 2210
5df44211 2211 http://ftp.sedl.org/pub/mirrors/CPAN/
5c5c2539 2212 http://www.binarycode.org/cpan
5df44211 2213 ftp://mirror.telentente.com/pub/CPAN
5c5c2539 2214 http://mirrors.theonlinerecordstore.com/CPAN
4e860d0a 2215
5df44211 2216=item Utah
4e860d0a 2217
5df44211 2218 ftp://mirror.xmission.com/CPAN/
4e860d0a 2219
5df44211 2220=item Virginia
4e860d0a 2221
7a142657
JH
2222 http://cpan-du.viaverio.com/
2223 ftp://cpan-du.viaverio.com/pub/CPAN/
5df44211
JH
2224 http://mirrors.rcn.net/pub/lang/CPAN/
2225 ftp://mirrors.rcn.net/pub/lang/CPAN/
2226 http://perl.secsup.org/
2227 ftp://perl.secsup.org/pub/perl/
5c5c2539 2228 http://noc.cvaix.com/mirrors/CPAN/
4e860d0a 2229
5c5c2539 2230=item Washington
4e860d0a 2231
5df44211
JH
2232 http://cpan.llarian.net/
2233 ftp://cpan.llarian.net/pub/CPAN/
2234 http://cpan.mirrorcentral.com/
2235 ftp://ftp.mirrorcentral.com/pub/CPAN/
2236 ftp://ftp-mirror.internap.com/pub/CPAN/
556e28cf 2237
5df44211 2238=item Wisconsin
556e28cf 2239
5df44211
JH
2240 http://mirror.sit.wisc.edu/pub/CPAN/
2241 ftp://mirror.sit.wisc.edu/pub/CPAN/
7a142657
JH
2242 http://mirror.aphix.com/CPAN
2243 ftp://mirror.aphix.com/pub/CPAN
4e860d0a
JH
2244
2245=back
2246
5c5c2539
JH
2247=back
2248
4e860d0a
JH
2249=head2 Oceania
2250
2251=over 4
2252
5df44211 2253=item Australia
4e860d0a 2254
5df44211
JH
2255 http://ftp.planetmirror.com/pub/CPAN/
2256 ftp://ftp.planetmirror.com/pub/CPAN/
2257 ftp://mirror.aarnet.edu.au/pub/perl/CPAN/
2258 ftp://cpan.topend.com.au/pub/CPAN/
7a142657 2259 http://cpan.mirrors.ilisys.com.au
4e860d0a 2260
5df44211 2261=item New Zealand
556e28cf 2262
5df44211 2263 ftp://ftp.auckland.ac.nz/pub/perl/CPAN/
5c5c2539
JH
2264
2265=item United States
2266
2267 http://aniani.ifa.hawaii.edu/CPAN/
2268 ftp://aniani.ifa.hawaii.edu/CPAN/
4e860d0a
JH
2269
2270=back
2271
2272=head2 South America
2273
2274=over 4
2275
5df44211 2276=item Argentina
4e860d0a 2277
5df44211 2278 ftp://mirrors.bannerlandia.com.ar/mirrors/CPAN/
5c5c2539
JH
2279 http://www.linux.org.ar/mirrors/cpan
2280 ftp://ftp.linux.org.ar/mirrors/cpan
4e860d0a 2281
5df44211 2282=item Brazil
4e860d0a 2283
5df44211
JH
2284 ftp://cpan.pop-mg.com.br/pub/CPAN/
2285 ftp://ftp.matrix.com.br/pub/perl/CPAN/
5c5c2539
JH
2286 http://cpan.hostsul.com.br/
2287 ftp://cpan.hostsul.com.br/
4e860d0a 2288
5df44211 2289=item Chile
4e860d0a 2290
5df44211
JH
2291 http://cpan.netglobalis.net/
2292 ftp://cpan.netglobalis.net/pub/CPAN/
f102b883
TC
2293
2294=back
2295
5df44211
JH
2296=head2 RSYNC Mirrors
2297
7a142657
JH
2298 www.linux.org.ar::cpan
2299 theoryx5.uwinnipeg.ca::CPAN
2300 ftp.shellhung.org::CPAN
2301 rsync.nic.funet.fi::CPAN
2302 ftp.u-paris10.fr::CPAN
2303 mir1.ovh.net::CPAN
2304 rsync://ftp.crihan.fr::CPAN
2305 ftp.gwdg.de::FTP/languages/perl/CPAN/
2306 ftp.leo.org::CPAN
2307 ftp.cbn.net.id::CPAN
2308 rsync://ftp.heanet.ie/mirrors/ftp.perl.org/pub/CPAN
2309 ftp.iglu.org.il::CPAN
2310 gusp.dyndns.org::cpan
2311 ftp.kddlabs.co.jp::cpan
2312 ftp.ayamura.org::pub/CPAN/
2313 mirror.leafbug.org::CPAN
2314 rsync.en.com.sg::CPAN
2315 mirror.averse.net::cpan
2316 rsync.oss.eznetsols.org
2317 ftp.kr.FreeBSD.org::CPAN
2318 ftp.solnet.ch::CPAN
2319 cpan.cdpa.nsysu.edu.tw::CPAN
2320 cpan.teleglobe.net::CPAN
2321 rsync://rsync.mirror.anlx.net::CPAN
2322 ftp.sedl.org::cpan
2323 ibiblio.org::CPAN
2324 cpan-du.viaverio.com::CPAN
2325 aniani.ifa.hawaii.edu::CPAN
2326 archive.progeny.com::CPAN
2327 rsync://slugsite.louisville.edu::CPAN
2328 mirror.aphix.com::CPAN
2329 cpan.teleglobe.net::CPAN
2330 ftp.lug.udel.edu::cpan
2331 mirrors.kernel.org::mirrors/CPAN
2332 mirrors.phenominet.com::CPAN
2333 cpan.pair.com::CPAN
2334 cpan-sj.viaverio.com::CPAN
2335 mirror.csit.fsu.edu::CPAN
2336 csociety-ftp.ecn.purdue.edu::CPAN
5df44211 2337
f102b883 2338For an up-to-date listing of CPAN sites,
4e860d0a 2339see http://www.cpan.org/SITES or ftp://www.cpan.org/SITES .
f102b883
TC
2340
2341=head1 Modules: Creation, Use, and Abuse
2342
2343(The following section is borrowed directly from Tim Bunce's modules
2344file, available at your nearest CPAN site.)
2345
2346Perl implements a class using a package, but the presence of a
2347package doesn't imply the presence of a class. A package is just a
2348namespace. A class is a package that provides subroutines that can be
2349used as methods. A method is just a subroutine that expects, as its
2350first argument, either the name of a package (for "static" methods),
2351or a reference to something (for "virtual" methods).
2352
2353A module is a file that (by convention) provides a class of the same
2354name (sans the .pm), plus an import method in that class that can be
2355called to fetch exported symbols. This module may implement some of
2356its methods by loading dynamic C or C++ objects, but that should be
2357totally transparent to the user of the module. Likewise, the module
2358might set up an AUTOLOAD function to slurp in subroutine definitions on
2359demand, but this is also transparent. Only the F<.pm> file is required to
2e1d04bc 2360exist. See L<perlsub>, L<perltoot>, and L<AutoLoader> for details about
f102b883
TC
2361the AUTOLOAD mechanism.
2362
2363=head2 Guidelines for Module Creation
2364
2365=over 4
2366
4e860d0a
JH
2367=item *
2368
2369Do similar modules already exist in some form?
f102b883
TC
2370
2371If so, please try to reuse the existing modules either in whole or
2372by inheriting useful features into a new class. If this is not
2373practical try to get together with the module authors to work on
2374extending or enhancing the functionality of the existing modules.
2375A perfect example is the plethora of packages in perl4 for dealing
2376with command line options.
2377
2378If you are writing a module to expand an already existing set of
2379modules, please coordinate with the author of the package. It
2380helps if you follow the same naming scheme and module interaction
2381scheme as the original author.
2382
4e860d0a
JH
2383=item *
2384
2385Try to design the new module to be easy to extend and reuse.
f102b883 2386
9f1b1f2d
GS
2387Try to C<use warnings;> (or C<use warnings qw(...);>).
2388Remember that you can add C<no warnings qw(...);> to individual blocks
2e1d04bc 2389of code that need less warnings.
19799a22 2390
f102b883
TC
2391Use blessed references. Use the two argument form of bless to bless
2392into the class name given as the first parameter of the constructor,
2393e.g.,:
2394
2395 sub new {
2e1d04bc
JH
2396 my $class = shift;
2397 return bless {}, $class;
f102b883
TC
2398 }
2399
2400or even this if you'd like it to be used as either a static
2401or a virtual method.
2402
2403 sub new {
2e1d04bc
JH
2404 my $self = shift;
2405 my $class = ref($self) || $self;
2406 return bless {}, $class;
f102b883
TC
2407 }
2408
2409Pass arrays as references so more parameters can be added later
2410(it's also faster). Convert functions into methods where
2411appropriate. Split large methods into smaller more flexible ones.
2412Inherit methods from other modules if appropriate.
2413
2414Avoid class name tests like: C<die "Invalid" unless ref $ref eq 'FOO'>.
19799a22 2415Generally you can delete the C<eq 'FOO'> part with no harm at all.
f102b883
TC
2416Let the objects look after themselves! Generally, avoid hard-wired
2417class names as far as possible.
2418
c47ff5f1
GS
2419Avoid C<< $r->Class::func() >> where using C<@ISA=qw(... Class ...)> and
2420C<< $r->func() >> would work (see L<perlbot> for more details).
f102b883
TC
2421
2422Use autosplit so little used or newly added functions won't be a
5a964f20 2423burden to programs that don't use them. Add test functions to
f102b883
TC
2424the module after __END__ either using AutoSplit or by saying:
2425
2426 eval join('',<main::DATA>) || die $@ unless caller();
2427
2428Does your module pass the 'empty subclass' test? If you say
19799a22 2429C<@SUBCLASS::ISA = qw(YOURCLASS);> your applications should be able
f102b883
TC
2430to use SUBCLASS in exactly the same way as YOURCLASS. For example,
2431does your application still work if you change: C<$obj = new YOURCLASS;>
2432into: C<$obj = new SUBCLASS;> ?
2433
2434Avoid keeping any state information in your packages. It makes it
2435difficult for multiple other packages to use yours. Keep state
2436information in objects.
2437
2e1d04bc 2438Always use B<-w>.
19799a22
GS
2439
2440Try to C<use strict;> (or C<use strict qw(...);>).
f102b883 2441Remember that you can add C<no strict qw(...);> to individual blocks
2e1d04bc 2442of code that need less strictness.
19799a22 2443
2e1d04bc 2444Always use B<-w>.
19799a22 2445
f102b883
TC
2446Follow the guidelines in the perlstyle(1) manual.
2447
19799a22
GS
2448Always use B<-w>.
2449
4e860d0a
JH
2450=item *
2451
2452Some simple style guidelines
f102b883 2453
5a964f20 2454The perlstyle manual supplied with Perl has many helpful points.
f102b883
TC
2455
2456Coding style is a matter of personal taste. Many people evolve their
2457style over several years as they learn what helps them write and
2458maintain good code. Here's one set of assorted suggestions that
2459seem to be widely used by experienced developers:
2460
2461Use underscores to separate words. It is generally easier to read
2462$var_names_like_this than $VarNamesLikeThis, especially for
2463non-native speakers of English. It's also a simple rule that works
2464consistently with VAR_NAMES_LIKE_THIS.
2465
2466Package/Module names are an exception to this rule. Perl informally
2467reserves lowercase module names for 'pragma' modules like integer
2468and strict. Other modules normally begin with a capital letter and
2469use mixed case with no underscores (need to be short and portable).
2470
2471You may find it helpful to use letter case to indicate the scope
2472or nature of a variable. For example:
2473
5a964f20 2474 $ALL_CAPS_HERE constants only (beware clashes with Perl vars)
f102b883
TC
2475 $Some_Caps_Here package-wide global/static
2476 $no_caps_here function scope my() or local() variables
2477
2478Function and method names seem to work best as all lowercase.
c47ff5f1 2479e.g., C<< $obj->as_string() >>.
f102b883
TC
2480
2481You can use a leading underscore to indicate that a variable or
2482function should not be used outside the package that defined it.
2483
4e860d0a
JH
2484=item *
2485
2486Select what to export.
f102b883
TC
2487
2488Do NOT export method names!
2489
2490Do NOT export anything else by default without a good reason!
2491
2492Exports pollute the namespace of the module user. If you must
2493export try to use @EXPORT_OK in preference to @EXPORT and avoid
2494short or common names to reduce the risk of name clashes.
2495
2496Generally anything not exported is still accessible from outside the
c47ff5f1 2497module using the ModuleName::item_name (or C<< $blessed_ref->method >>)
f102b883
TC
2498syntax. By convention you can use a leading underscore on names to
2499indicate informally that they are 'internal' and not for public use.
2500
2501(It is actually possible to get private functions by saying:
2502C<my $subref = sub { ... }; &$subref;>. But there's no way to call that
2503directly as a method, because a method must have a name in the symbol
2504table.)
2505
2506As a general rule, if the module is trying to be object oriented
2507then export nothing. If it's just a collection of functions then
2508@EXPORT_OK anything but use @EXPORT with caution.
2509
4e860d0a
JH
2510=item *
2511
2512Select a name for the module.
f102b883
TC
2513
2514This name should be as descriptive, accurate, and complete as
2515possible. Avoid any risk of ambiguity. Always try to use two or
2516more whole words. Generally the name should reflect what is special
2517about what the module does rather than how it does it. Please use
2518nested module names to group informally or categorize a module.
2519There should be a very good reason for a module not to have a nested name.
2520Module names should begin with a capital letter.
2521
2522Having 57 modules all called Sort will not make life easy for anyone
2523(though having 23 called Sort::Quick is only marginally better :-).
2524Imagine someone trying to install your module alongside many others.
2525If in any doubt ask for suggestions in comp.lang.perl.misc.
2526
2527If you are developing a suite of related modules/classes it's good
2528practice to use nested classes with a common prefix as this will
2529avoid namespace clashes. For example: Xyz::Control, Xyz::View,
2530Xyz::Model etc. Use the modules in this list as a naming guide.
2531
2532If adding a new module to a set, follow the original author's
2533standards for naming modules and the interface to methods in
2534those modules.
2535
165c0277
JH
2536If developing modules for private internal or project specific use,
2537that will never be released to the public, then you should ensure
2538that their names will not clash with any future public module. You
2539can do this either by using the reserved Local::* category or by
2540using a category name that includes an underscore like Foo_Corp::*.
2541
f102b883
TC
2542To be portable each component of a module name should be limited to
254311 characters. If it might be used on MS-DOS then try to ensure each is
2544unique in the first 8 characters. Nested modules make this easier.
2545
4e860d0a
JH
2546=item *
2547
2548Have you got it right?
f102b883
TC
2549
2550How do you know that you've made the right decisions? Have you
2551picked an interface design that will cause problems later? Have
2552you picked the most appropriate name? Do you have any questions?
2553
2554The best way to know for sure, and pick up many helpful suggestions,
2555is to ask someone who knows. Comp.lang.perl.misc is read by just about
2556all the people who develop modules and it's the best place to ask.
2557
2558All you need to do is post a short summary of the module, its
2559purpose and interfaces. A few lines on each of the main methods is
2560probably enough. (If you post the whole module it might be ignored
2561by busy people - generally the very people you want to read it!)
2562
2563Don't worry about posting if you can't say when the module will be
2564ready - just say so in the message. It might be worth inviting
2565others to help you, they may be able to complete it for you!
2566
4e860d0a
JH
2567=item *
2568
2569README and other Additional Files.
f102b883
TC
2570
2571It's well known that software developers usually fully document the
2572software they write. If, however, the world is in urgent need of
2573your software and there is not enough time to write the full
2574documentation please at least provide a README file containing:
2575
2576=over 10
2577
2578=item *
4e860d0a 2579
f102b883
TC
2580A description of the module/package/extension etc.
2581
2582=item *
4e860d0a 2583
f102b883
TC
2584A copyright notice - see below.
2585
2586=item *
4e860d0a 2587
f102b883
TC
2588Prerequisites - what else you may need to have.
2589
2590=item *
4e860d0a 2591
f102b883
TC
2592How to build it - possible changes to Makefile.PL etc.
2593
2594=item *
4e860d0a 2595
f102b883
TC
2596How to install it.
2597
2598=item *
4e860d0a 2599
f102b883
TC
2600Recent changes in this release, especially incompatibilities
2601
2602=item *
4e860d0a 2603
f102b883
TC
2604Changes / enhancements you plan to make in the future.
2605
2606=back
2607
2608If the README file seems to be getting too large you may wish to
2609split out some of the sections into separate files: INSTALL,
2610Copying, ToDo etc.
2611
2612=over 4
2613
37a78d01 2614=item *
f102b883 2615
37a78d01 2616Adding a Copyright Notice.
4e860d0a 2617
f102b883
TC
2618How you choose to license your work is a personal decision.
2619The general mechanism is to assert your Copyright and then make
2620a declaration of how others may copy/use/modify your work.
2621
2a551100
JH
2622Perl, for example, is supplied with two types of licence: The GNU GPL
2623and The Artistic Licence (see the files README, Copying, and Artistic,
2624or L<perlgpl> and L<perlartistic>). Larry has good reasons for NOT
2625just using the GNU GPL.
f102b883
TC
2626
2627My personal recommendation, out of respect for Larry, Perl, and the
5a964f20 2628Perl community at large is to state something simply like:
f102b883
TC
2629
2630 Copyright (c) 1995 Your Name. All rights reserved.
2631 This program is free software; you can redistribute it and/or
2632 modify it under the same terms as Perl itself.
2633
2634This statement should at least appear in the README file. You may
2635also wish to include it in a Copying file and your source files.
2636Remember to include the other words in addition to the Copyright.
2637
4e860d0a
JH
2638=item *
2639
2640Give the module a version/issue/release number.
f102b883
TC
2641
2642To be fully compatible with the Exporter and MakeMaker modules you
2643should store your module's version number in a non-my package
2644variable called $VERSION. This should be a floating point
2645number with at least two digits after the decimal (i.e., hundredths,
2646e.g, C<$VERSION = "0.01">). Don't use a "1.3.2" style version.
19799a22 2647See L<Exporter> for details.
f102b883
TC
2648
2649It may be handy to add a function or method to retrieve the number.
2650Use the number in announcements and archive file names when
2651releasing the module (ModuleName-1.02.tar.Z).
2652See perldoc ExtUtils::MakeMaker.pm for details.
2653
4e860d0a
JH
2654=item *
2655
2656How to release and distribute a module.
f102b883
TC
2657
2658It's good idea to post an announcement of the availability of your
2659module (or the module itself if small) to the comp.lang.perl.announce
2660Usenet newsgroup. This will at least ensure very wide once-off
2661distribution.
2662
2e1d04bc 2663If possible, register the module with CPAN. You should
f102b883
TC
2664include details of its location in your announcement.
2665
2666Some notes about ftp archives: Please use a long descriptive file
5a964f20 2667name that includes the version number. Most incoming directories
f102b883
TC
2668will not be readable/listable, i.e., you won't be able to see your
2669file after uploading it. Remember to send your email notification
2670message as soon as possible after uploading else your file may get
2671deleted automatically. Allow time for the file to be processed
2672and/or check the file has been processed before announcing its
2673location.
2674
2675FTP Archives for Perl Modules:
2676
6cecdcac 2677Follow the instructions and links on:
f102b883 2678
4e860d0a
JH
2679 http://www.cpan.org/modules/00modlist.long.html
2680 http://www.cpan.org/modules/04pause.html
f102b883
TC
2681
2682or upload to one of these sites:
2683
6cecdcac
GS
2684 https://pause.kbx.de/pause/
2685 http://pause.perl.org/pause/
f102b883 2686
6cecdcac 2687and notify <modules@perl.org>.
f102b883
TC
2688
2689By using the WWW interface you can ask the Upload Server to mirror
2690your modules from your ftp or WWW site into your own directory on
2691CPAN!
2692
2693Please remember to send me an updated entry for the Module list!
2694
4e860d0a
JH
2695=item *
2696
2697Take care when changing a released module.
f102b883 2698
7b8d334a
GS
2699Always strive to remain compatible with previous released versions.
2700Otherwise try to add a mechanism to revert to the
19799a22 2701old behavior if people rely on it. Document incompatible changes.
f102b883
TC
2702
2703=back
2704
2705=back
2706
2707=head2 Guidelines for Converting Perl 4 Library Scripts into Modules
2708
2709=over 4
2710
4e860d0a
JH
2711=item *
2712
2713There is no requirement to convert anything.
f102b883
TC
2714
2715If it ain't broke, don't fix it! Perl 4 library scripts should
2716continue to work with no problems. You may need to make some minor
2717changes (like escaping non-array @'s in double quoted strings) but
2718there is no need to convert a .pl file into a Module for just that.
2719
4e860d0a
JH
2720=item *
2721
2722Consider the implications.
f102b883 2723
5a964f20 2724All Perl applications that make use of the script will need to
f102b883
TC
2725be changed (slightly) if the script is converted into a module. Is
2726it worth it unless you plan to make other changes at the same time?
2727
4e860d0a
JH
2728=item *
2729
2730Make the most of the opportunity.
f102b883
TC
2731
2732If you are going to convert the script to a module you can use the
19799a22
GS
2733opportunity to redesign the interface. The guidelines for module
2734creation above include many of the issues you should consider.
f102b883 2735
4e860d0a
JH
2736=item *
2737
2738The pl2pm utility will get you started.
f102b883
TC
2739
2740This utility will read *.pl files (given as parameters) and write
2741corresponding *.pm files. The pl2pm utilities does the following:
2742
2743=over 10
2744
2745=item *
4e860d0a 2746
f102b883
TC
2747Adds the standard Module prologue lines
2748
2749=item *
4e860d0a 2750
f102b883
TC
2751Converts package specifiers from ' to ::
2752
2753=item *
4e860d0a 2754
f102b883
TC
2755Converts die(...) to croak(...)
2756
2757=item *
4e860d0a 2758
f102b883
TC
2759Several other minor changes
2760
2761=back
2762
2763Being a mechanical process pl2pm is not bullet proof. The converted
2764code will need careful checking, especially any package statements.
2765Don't delete the original .pl file till the new .pm one works!
2766
2767=back
2768
2769=head2 Guidelines for Reusing Application Code
2770
2771=over 4
2772
4e860d0a 2773=item *
551e1d92
RB
2774
2775Complete applications rarely belong in the Perl Module Library.
f102b883 2776
4e860d0a 2777=item *
551e1d92
RB
2778
2779Many applications contain some Perl code that could be reused.
f102b883
TC
2780
2781Help save the world! Share your code in a form that makes it easy
2782to reuse.
2783
4e860d0a 2784=item *
551e1d92
RB
2785
2786Break-out the reusable code into one or more separate module files.
f102b883 2787
4e860d0a 2788=item *
551e1d92
RB
2789
2790Take the opportunity to reconsider and redesign the interfaces.
2791
4e860d0a 2792=item *
f102b883 2793
551e1d92 2794In some cases the 'application' can then be reduced to a small
f102b883
TC
2795
2796fragment of code built on top of the reusable modules. In these cases
2797the application could invoked as:
2798
5a964f20 2799 % perl -e 'use Module::Name; method(@ARGV)' ...
f102b883 2800or
5a964f20 2801 % perl -mModule::Name ... (in perl5.002 or higher)
f102b883
TC
2802
2803=back
2804
2805=head1 NOTE
2806
2807Perl does not enforce private and public parts of its modules as you may
2808have been used to in other languages like C++, Ada, or Modula-17. Perl
2809doesn't have an infatuation with enforced privacy. It would prefer
2810that you stayed out of its living room because you weren't invited, not
2811because it has a shotgun.
2812
2813The module and its user have a contract, part of which is common law,
2814and part of which is "written". Part of the common law contract is
2815that a module doesn't pollute any namespace it wasn't asked to. The
2816written contract for the module (A.K.A. documentation) may make other
2817provisions. But then you know when you C<use RedefineTheWorld> that
2818you're redefining the world and willing to take the consequences.