Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- data/miniconda3/man/man1/perlop.1 +0 -0
- data/miniconda3/man/man1/perlport.1 +0 -0
- data/miniconda3/man/man3/AnyDBM_File.3 +208 -0
- data/miniconda3/man/man3/App%3A%3AProve%3A%3AState%3A%3AResult%3A%3ATest.3 +241 -0
- data/miniconda3/man/man3/App%3A%3AProve%3A%3AState%3A%3AResult.3 +251 -0
- data/miniconda3/man/man3/App%3A%3AProve%3A%3AState.3 +273 -0
- data/miniconda3/man/man3/App%3A%3AProve.3 +451 -0
- data/miniconda3/man/man3/Archive%3A%3ATar%3A%3AFile.3 +363 -0
- data/miniconda3/man/man3/Archive%3A%3ATar.3 +1056 -0
- data/miniconda3/man/man3/AutoLoader.3 +381 -0
- data/miniconda3/man/man3/AutoSplit.3 +320 -0
- data/miniconda3/man/man3/B%3A%3AConcise.3 +827 -0
- data/miniconda3/man/man3/B%3A%3ADeparse.3 +618 -0
- data/miniconda3/man/man3/B%3A%3AShowlex.3 +218 -0
- data/miniconda3/man/man3/B%3A%3ATerse.3 +176 -0
- data/miniconda3/man/man3/B%3A%3AXref.3 +262 -0
- data/miniconda3/man/man3/B.3 +1062 -0
- data/miniconda3/man/man3/CPAN%3A%3AAPI%3A%3AHOWTO.3 +179 -0
- data/miniconda3/man/man3/CPAN%3A%3ADebug.3 +146 -0
- data/miniconda3/man/man3/CPAN%3A%3ADistroprefs.3 +284 -0
- data/miniconda3/man/man3/CPAN%3A%3AFirstTime.3 +737 -0
- data/miniconda3/man/man3/CPAN%3A%3AHandleConfig.3 +175 -0
- data/miniconda3/man/man3/CPAN%3A%3AKwalify.3 +174 -0
- data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AConverter.3 +258 -0
- data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AFeature.3 +196 -0
- data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AHistory%3A%3AMeta_1_0.3 +343 -0
- data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AHistory%3A%3AMeta_1_1.3 +401 -0
- data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AHistory%3A%3AMeta_1_2.3 +787 -0
- data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AHistory%3A%3AMeta_1_3.3 +808 -0
- data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AHistory%3A%3AMeta_1_4.3 +833 -0
- data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AHistory.3 +312 -0
- data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AMerge.3 +223 -0
- data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3APrereqs.3 +285 -0
- data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3ARequirements.3 +446 -0
- data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3ASpec.3 +1303 -0
- data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AValidator.3 +210 -0
- data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AYAML.3 +195 -0
- data/miniconda3/man/man3/CPAN%3A%3AMeta.3 +538 -0
- data/miniconda3/man/man3/CPAN%3A%3AMirrors.3 +287 -0
- data/miniconda3/man/man3/CPAN%3A%3ANox.3 +162 -0
- data/miniconda3/man/man3/CPAN%3A%3APlugin.3 +185 -0
- data/miniconda3/man/man3/CPAN%3A%3AQueue.3 +146 -0
- data/miniconda3/man/man3/CPAN%3A%3ATarzip.3 +146 -0
- data/miniconda3/man/man3/CPAN%3A%3AVersion.3 +174 -0
- data/miniconda3/man/man3/CPAN.3 +0 -0
- data/miniconda3/man/man3/Carp.3 +427 -0
- data/miniconda3/man/man3/Compress%3A%3ARaw%3A%3ABzip2.3 +394 -0
- data/miniconda3/man/man3/Compress%3A%3ARaw%3A%3AZlib.3 +1062 -0
- data/miniconda3/man/man3/Compress%3A%3AZlib.3 +968 -0
- data/miniconda3/man/man3/Config%3A%3AExtensions.3 +173 -0
data/miniconda3/man/man1/perlop.1
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/miniconda3/man/man1/perlport.1
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/miniconda3/man/man3/AnyDBM_File.3
ADDED
|
@@ -0,0 +1,208 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "AnyDBM_File 3"
|
| 136 |
+
.TH AnyDBM_File 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
AnyDBM_File \- provide framework for multiple DBMs
|
| 143 |
+
.PP
|
| 144 |
+
NDBM_File, DB_File, GDBM_File, SDBM_File, ODBM_File \- various DBM implementations
|
| 145 |
+
.SH "SYNOPSIS"
|
| 146 |
+
.IX Header "SYNOPSIS"
|
| 147 |
+
.Vb 1
|
| 148 |
+
\& use AnyDBM_File;
|
| 149 |
+
.Ve
|
| 150 |
+
.SH "DESCRIPTION"
|
| 151 |
+
.IX Header "DESCRIPTION"
|
| 152 |
+
This module is a \*(L"pure virtual base class\*(R"\-\-it has nothing of its own.
|
| 153 |
+
It's just there to inherit from one of the various \s-1DBM\s0 packages. It
|
| 154 |
+
prefers ndbm for compatibility reasons with Perl 4, then Berkeley \s-1DB\s0 (See
|
| 155 |
+
DB_File), \s-1GDBM, SDBM\s0 (which is always there\*(--it comes with Perl), and
|
| 156 |
+
finally \s-1ODBM.\s0 This way old programs that used to use \s-1NDBM\s0 via \fBdbmopen()\fR
|
| 157 |
+
can still do so, but new ones can reorder \f(CW@ISA:\fR
|
| 158 |
+
.PP
|
| 159 |
+
.Vb 2
|
| 160 |
+
\& BEGIN { @AnyDBM_File::ISA = qw(DB_File GDBM_File NDBM_File) }
|
| 161 |
+
\& use AnyDBM_File;
|
| 162 |
+
.Ve
|
| 163 |
+
.PP
|
| 164 |
+
Having multiple \s-1DBM\s0 implementations makes it trivial to copy database formats:
|
| 165 |
+
.PP
|
| 166 |
+
.Vb 4
|
| 167 |
+
\& use Fcntl; use NDBM_File; use DB_File;
|
| 168 |
+
\& tie %newhash, \*(AqDB_File\*(Aq, $new_filename, O_CREAT|O_RDWR;
|
| 169 |
+
\& tie %oldhash, \*(AqNDBM_File\*(Aq, $old_filename, 1, 0;
|
| 170 |
+
\& %newhash = %oldhash;
|
| 171 |
+
.Ve
|
| 172 |
+
.SS "\s-1DBM\s0 Comparisons"
|
| 173 |
+
.IX Subsection "DBM Comparisons"
|
| 174 |
+
Here's a partial table of features the different packages offer:
|
| 175 |
+
.PP
|
| 176 |
+
.Vb 10
|
| 177 |
+
\& odbm ndbm sdbm gdbm bsd\-db
|
| 178 |
+
\& \-\-\-\- \-\-\-\- \-\-\-\- \-\-\-\- \-\-\-\-\-\-
|
| 179 |
+
\& Linkage comes w/ perl yes yes yes yes yes
|
| 180 |
+
\& Src comes w/ perl no no yes no no
|
| 181 |
+
\& Comes w/ many unix os yes yes[0] no no no
|
| 182 |
+
\& Builds ok on !unix ? ? yes yes ?
|
| 183 |
+
\& Code Size ? ? small big big
|
| 184 |
+
\& Database Size ? ? small big? ok[1]
|
| 185 |
+
\& Speed ? ? slow ok fast
|
| 186 |
+
\& FTPable no no yes yes yes
|
| 187 |
+
\& Easy to build N/A N/A yes yes ok[2]
|
| 188 |
+
\& Size limits 1k 4k 1k[3] none none
|
| 189 |
+
\& Byte\-order independent no no no no yes
|
| 190 |
+
\& Licensing restrictions ? ? no yes no
|
| 191 |
+
.Ve
|
| 192 |
+
.IP "[0]" 4
|
| 193 |
+
.IX Item "[0]"
|
| 194 |
+
on mixed universe machines, may be in the bsd compat library,
|
| 195 |
+
which is often shunned.
|
| 196 |
+
.IP "[1]" 4
|
| 197 |
+
.IX Item "[1]"
|
| 198 |
+
Can be trimmed if you compile for one access method.
|
| 199 |
+
.IP "[2]" 4
|
| 200 |
+
.IX Item "[2]"
|
| 201 |
+
See DB_File.
|
| 202 |
+
Requires symbolic links.
|
| 203 |
+
.IP "[3]" 4
|
| 204 |
+
.IX Item "[3]"
|
| 205 |
+
By default, but can be redefined.
|
| 206 |
+
.SH "SEE ALSO"
|
| 207 |
+
.IX Header "SEE ALSO"
|
| 208 |
+
\&\fB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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "App::Prove::State::Result::Test 3"
|
| 136 |
+
.TH App::Prove::State::Result::Test 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
App::Prove::State::Result::Test \- Individual test results.
|
| 143 |
+
.SH "VERSION"
|
| 144 |
+
.IX Header "VERSION"
|
| 145 |
+
Version 3.42
|
| 146 |
+
.SH "DESCRIPTION"
|
| 147 |
+
.IX Header "DESCRIPTION"
|
| 148 |
+
The \f(CW\*(C`prove\*(C'\fR command supports a \f(CW\*(C`\-\-state\*(C'\fR option that instructs it to
|
| 149 |
+
store persistent state across runs. This module encapsulates the results for a
|
| 150 |
+
single test.
|
| 151 |
+
.SH "SYNOPSIS"
|
| 152 |
+
.IX Header "SYNOPSIS"
|
| 153 |
+
.Vb 2
|
| 154 |
+
\& # Re\-run failed tests
|
| 155 |
+
\& $ prove \-\-state=failed,save \-rbv
|
| 156 |
+
.Ve
|
| 157 |
+
.SH "METHODS"
|
| 158 |
+
.IX Header "METHODS"
|
| 159 |
+
.SS "Class Methods"
|
| 160 |
+
.IX Subsection "Class Methods"
|
| 161 |
+
\fI\f(CI\*(C`new\*(C'\fI\fR
|
| 162 |
+
.IX Subsection "new"
|
| 163 |
+
.SS "Instance Methods"
|
| 164 |
+
.IX Subsection "Instance Methods"
|
| 165 |
+
\fI\f(CI\*(C`name\*(C'\fI\fR
|
| 166 |
+
.IX Subsection "name"
|
| 167 |
+
.PP
|
| 168 |
+
The name of the test. Usually a filename.
|
| 169 |
+
.PP
|
| 170 |
+
\fI\f(CI\*(C`elapsed\*(C'\fI\fR
|
| 171 |
+
.IX Subsection "elapsed"
|
| 172 |
+
.PP
|
| 173 |
+
The total elapsed times the test took to run, in seconds from the epoch..
|
| 174 |
+
.PP
|
| 175 |
+
\fI\f(CI\*(C`generation\*(C'\fI\fR
|
| 176 |
+
.IX Subsection "generation"
|
| 177 |
+
.PP
|
| 178 |
+
The number for the \*(L"generation\*(R" of the test run. The first generation is 1
|
| 179 |
+
(one) and subsequent generations are 2, 3, etc.
|
| 180 |
+
.PP
|
| 181 |
+
\fI\f(CI\*(C`last_pass_time\*(C'\fI\fR
|
| 182 |
+
.IX Subsection "last_pass_time"
|
| 183 |
+
.PP
|
| 184 |
+
The last time the test program passed, in seconds from the epoch.
|
| 185 |
+
.PP
|
| 186 |
+
Returns \f(CW\*(C`undef\*(C'\fR if the program has never passed.
|
| 187 |
+
.PP
|
| 188 |
+
\fI\f(CI\*(C`last_fail_time\*(C'\fI\fR
|
| 189 |
+
.IX Subsection "last_fail_time"
|
| 190 |
+
.PP
|
| 191 |
+
The last time the test suite failed, in seconds from the epoch.
|
| 192 |
+
.PP
|
| 193 |
+
Returns \f(CW\*(C`undef\*(C'\fR if the program has never failed.
|
| 194 |
+
.PP
|
| 195 |
+
\fI\f(CI\*(C`mtime\*(C'\fI\fR
|
| 196 |
+
.IX Subsection "mtime"
|
| 197 |
+
.PP
|
| 198 |
+
Returns the mtime of the test, in seconds from the epoch.
|
| 199 |
+
.PP
|
| 200 |
+
\fI\f(CI\*(C`raw\*(C'\fI\fR
|
| 201 |
+
.IX Subsection "raw"
|
| 202 |
+
.PP
|
| 203 |
+
Returns a hashref of raw test data, suitable for serialization by \s-1YAML.\s0
|
| 204 |
+
.PP
|
| 205 |
+
\fI\f(CI\*(C`result\*(C'\fI\fR
|
| 206 |
+
.IX Subsection "result"
|
| 207 |
+
.PP
|
| 208 |
+
Currently, whether or not the test suite passed with no 'problems' (such as
|
| 209 |
+
\&\s-1TODO\s0 passed).
|
| 210 |
+
.PP
|
| 211 |
+
\fI\f(CI\*(C`run_time\*(C'\fI\fR
|
| 212 |
+
.IX Subsection "run_time"
|
| 213 |
+
.PP
|
| 214 |
+
The total time it took for the test to run, in seconds. If \f(CW\*(C`Time::HiRes\*(C'\fR is
|
| 215 |
+
available, it will have finer granularity.
|
| 216 |
+
.PP
|
| 217 |
+
\fI\f(CI\*(C`num_todo\*(C'\fI\fR
|
| 218 |
+
.IX Subsection "num_todo"
|
| 219 |
+
.PP
|
| 220 |
+
The number of tests with \s-1TODO\s0 directives.
|
| 221 |
+
.PP
|
| 222 |
+
\fI\f(CI\*(C`sequence\*(C'\fI\fR
|
| 223 |
+
.IX Subsection "sequence"
|
| 224 |
+
.PP
|
| 225 |
+
The order in which this test was run for the given test suite result.
|
| 226 |
+
.PP
|
| 227 |
+
\fI\f(CI\*(C`total_passes\*(C'\fI\fR
|
| 228 |
+
.IX Subsection "total_passes"
|
| 229 |
+
.PP
|
| 230 |
+
The number of times the test has passed.
|
| 231 |
+
.PP
|
| 232 |
+
\fI\f(CI\*(C`total_failures\*(C'\fI\fR
|
| 233 |
+
.IX Subsection "total_failures"
|
| 234 |
+
.PP
|
| 235 |
+
The number of times the test has failed.
|
| 236 |
+
.PP
|
| 237 |
+
\fI\f(CI\*(C`parser\*(C'\fI\fR
|
| 238 |
+
.IX Subsection "parser"
|
| 239 |
+
.PP
|
| 240 |
+
The underlying parser object. This is useful if you need the full
|
| 241 |
+
information for the test program.
|
data/miniconda3/man/man3/App%3A%3AProve%3A%3AState%3A%3AResult.3
ADDED
|
@@ -0,0 +1,251 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "App::Prove::State::Result 3"
|
| 136 |
+
.TH App::Prove::State::Result 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
App::Prove::State::Result \- Individual test suite results.
|
| 143 |
+
.SH "VERSION"
|
| 144 |
+
.IX Header "VERSION"
|
| 145 |
+
Version 3.42
|
| 146 |
+
.SH "DESCRIPTION"
|
| 147 |
+
.IX Header "DESCRIPTION"
|
| 148 |
+
The \f(CW\*(C`prove\*(C'\fR command supports a \f(CW\*(C`\-\-state\*(C'\fR option that instructs it to
|
| 149 |
+
store persistent state across runs. This module encapsulates the results for a
|
| 150 |
+
single test suite run.
|
| 151 |
+
.SH "SYNOPSIS"
|
| 152 |
+
.IX Header "SYNOPSIS"
|
| 153 |
+
.Vb 2
|
| 154 |
+
\& # Re\-run failed tests
|
| 155 |
+
\& $ prove \-\-state=failed,save \-rbv
|
| 156 |
+
.Ve
|
| 157 |
+
.SH "METHODS"
|
| 158 |
+
.IX Header "METHODS"
|
| 159 |
+
.SS "Class Methods"
|
| 160 |
+
.IX Subsection "Class Methods"
|
| 161 |
+
\fI\f(CI\*(C`new\*(C'\fI\fR
|
| 162 |
+
.IX Subsection "new"
|
| 163 |
+
.PP
|
| 164 |
+
.Vb 4
|
| 165 |
+
\& my $result = App::Prove::State::Result\->new({
|
| 166 |
+
\& generation => $generation,
|
| 167 |
+
\& tests => \e%tests,
|
| 168 |
+
\& });
|
| 169 |
+
.Ve
|
| 170 |
+
.PP
|
| 171 |
+
Returns a new \f(CW\*(C`App::Prove::State::Result\*(C'\fR instance.
|
| 172 |
+
.ie n .SS """state_version"""
|
| 173 |
+
.el .SS "\f(CWstate_version\fP"
|
| 174 |
+
.IX Subsection "state_version"
|
| 175 |
+
Returns the current version of state storage.
|
| 176 |
+
.ie n .SS """test_class"""
|
| 177 |
+
.el .SS "\f(CWtest_class\fP"
|
| 178 |
+
.IX Subsection "test_class"
|
| 179 |
+
Returns the name of the class used for tracking individual tests. This class
|
| 180 |
+
should either subclass from \f(CW\*(C`App::Prove::State::Result::Test\*(C'\fR or provide an
|
| 181 |
+
identical interface.
|
| 182 |
+
.PP
|
| 183 |
+
\fI\f(CI\*(C`generation\*(C'\fI\fR
|
| 184 |
+
.IX Subsection "generation"
|
| 185 |
+
.PP
|
| 186 |
+
Getter/setter for the \*(L"generation\*(R" of the test suite run. The first
|
| 187 |
+
generation is 1 (one) and subsequent generations are 2, 3, etc.
|
| 188 |
+
.PP
|
| 189 |
+
\fI\f(CI\*(C`last_run_time\*(C'\fI\fR
|
| 190 |
+
.IX Subsection "last_run_time"
|
| 191 |
+
.PP
|
| 192 |
+
Getter/setter for the time of the test suite run.
|
| 193 |
+
.PP
|
| 194 |
+
\fI\f(CI\*(C`tests\*(C'\fI\fR
|
| 195 |
+
.IX Subsection "tests"
|
| 196 |
+
.PP
|
| 197 |
+
Returns the tests for a given generation. This is a hashref or a hash,
|
| 198 |
+
depending on context called. The keys to the hash are the individual
|
| 199 |
+
test names and the value is a hashref with various interesting values.
|
| 200 |
+
Each k/v pair might resemble something like this:
|
| 201 |
+
.PP
|
| 202 |
+
.Vb 11
|
| 203 |
+
\& \*(Aqt/foo.t\*(Aq => {
|
| 204 |
+
\& elapsed => \*(Aq0.0428488254547119\*(Aq,
|
| 205 |
+
\& gen => \*(Aq7\*(Aq,
|
| 206 |
+
\& last_pass_time => \*(Aq1219328376.07815\*(Aq,
|
| 207 |
+
\& last_result => \*(Aq0\*(Aq,
|
| 208 |
+
\& last_run_time => \*(Aq1219328376.07815\*(Aq,
|
| 209 |
+
\& last_todo => \*(Aq0\*(Aq,
|
| 210 |
+
\& mtime => \*(Aq1191708862\*(Aq,
|
| 211 |
+
\& seq => \*(Aq192\*(Aq,
|
| 212 |
+
\& total_passes => \*(Aq6\*(Aq,
|
| 213 |
+
\& }
|
| 214 |
+
.Ve
|
| 215 |
+
.PP
|
| 216 |
+
\fI\f(CI\*(C`test\*(C'\fI\fR
|
| 217 |
+
.IX Subsection "test"
|
| 218 |
+
.PP
|
| 219 |
+
.Vb 1
|
| 220 |
+
\& my $test = $result\->test(\*(Aqt/customer/create.t\*(Aq);
|
| 221 |
+
.Ve
|
| 222 |
+
.PP
|
| 223 |
+
Returns an individual \f(CW\*(C`App::Prove::State::Result::Test\*(C'\fR instance for the
|
| 224 |
+
given test name (usually the filename). Will return a new
|
| 225 |
+
\&\f(CW\*(C`App::Prove::State::Result::Test\*(C'\fR instance if the name is not found.
|
| 226 |
+
.PP
|
| 227 |
+
\fI\f(CI\*(C`test_names\*(C'\fI\fR
|
| 228 |
+
.IX Subsection "test_names"
|
| 229 |
+
.PP
|
| 230 |
+
Returns an list of test names, sorted by run order.
|
| 231 |
+
.PP
|
| 232 |
+
\fI\f(CI\*(C`remove\*(C'\fI\fR
|
| 233 |
+
.IX Subsection "remove"
|
| 234 |
+
.PP
|
| 235 |
+
.Vb 2
|
| 236 |
+
\& $result\->remove($test_name); # remove the test
|
| 237 |
+
\& my $test = $result\->test($test_name); # fatal error
|
| 238 |
+
.Ve
|
| 239 |
+
.PP
|
| 240 |
+
Removes a given test from results. This is a no-op if the test name is not
|
| 241 |
+
found.
|
| 242 |
+
.PP
|
| 243 |
+
\fI\f(CI\*(C`num_tests\*(C'\fI\fR
|
| 244 |
+
.IX Subsection "num_tests"
|
| 245 |
+
.PP
|
| 246 |
+
Returns the number of tests for a given test suite result.
|
| 247 |
+
.PP
|
| 248 |
+
\fI\f(CI\*(C`raw\*(C'\fI\fR
|
| 249 |
+
.IX Subsection "raw"
|
| 250 |
+
.PP
|
| 251 |
+
Returns a hashref of raw results, suitable for serialization by \s-1YAML.\s0
|
data/miniconda3/man/man3/App%3A%3AProve%3A%3AState.3
ADDED
|
@@ -0,0 +1,273 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "App::Prove::State 3"
|
| 136 |
+
.TH App::Prove::State 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
App::Prove::State \- State storage for the "prove" command.
|
| 143 |
+
.SH "VERSION"
|
| 144 |
+
.IX Header "VERSION"
|
| 145 |
+
Version 3.42
|
| 146 |
+
.SH "DESCRIPTION"
|
| 147 |
+
.IX Header "DESCRIPTION"
|
| 148 |
+
The \f(CW\*(C`prove\*(C'\fR command supports a \f(CW\*(C`\-\-state\*(C'\fR option that instructs it to
|
| 149 |
+
store persistent state across runs. This module implements that state
|
| 150 |
+
and the operations that may be performed on it.
|
| 151 |
+
.SH "SYNOPSIS"
|
| 152 |
+
.IX Header "SYNOPSIS"
|
| 153 |
+
.Vb 2
|
| 154 |
+
\& # Re\-run failed tests
|
| 155 |
+
\& $ prove \-\-state=failed,save \-rbv
|
| 156 |
+
.Ve
|
| 157 |
+
.SH "METHODS"
|
| 158 |
+
.IX Header "METHODS"
|
| 159 |
+
.SS "Class Methods"
|
| 160 |
+
.IX Subsection "Class Methods"
|
| 161 |
+
\fI\f(CI\*(C`new\*(C'\fI\fR
|
| 162 |
+
.IX Subsection "new"
|
| 163 |
+
.PP
|
| 164 |
+
Accepts a hashref with the following key/value pairs:
|
| 165 |
+
.IP "\(bu" 4
|
| 166 |
+
\&\f(CW\*(C`store\*(C'\fR
|
| 167 |
+
.Sp
|
| 168 |
+
The filename of the data store holding the data that App::Prove::State reads.
|
| 169 |
+
.IP "\(bu" 4
|
| 170 |
+
\&\f(CW\*(C`extensions\*(C'\fR (optional)
|
| 171 |
+
.Sp
|
| 172 |
+
The test name extensions. Defaults to \f(CW\*(C`.t\*(C'\fR.
|
| 173 |
+
.IP "\(bu" 4
|
| 174 |
+
\&\f(CW\*(C`result_class\*(C'\fR (optional)
|
| 175 |
+
.Sp
|
| 176 |
+
The name of the \f(CW\*(C`result_class\*(C'\fR. Defaults to \f(CW\*(C`App::Prove::State::Result\*(C'\fR.
|
| 177 |
+
.ie n .SS """result_class"""
|
| 178 |
+
.el .SS "\f(CWresult_class\fP"
|
| 179 |
+
.IX Subsection "result_class"
|
| 180 |
+
Getter/setter for the name of the class used for tracking test results. This
|
| 181 |
+
class should either subclass from \f(CW\*(C`App::Prove::State::Result\*(C'\fR or provide an
|
| 182 |
+
identical interface.
|
| 183 |
+
.ie n .SS """extensions"""
|
| 184 |
+
.el .SS "\f(CWextensions\fP"
|
| 185 |
+
.IX Subsection "extensions"
|
| 186 |
+
Get or set the list of extensions that files must have in order to be
|
| 187 |
+
considered tests. Defaults to ['.t'].
|
| 188 |
+
.ie n .SS """results"""
|
| 189 |
+
.el .SS "\f(CWresults\fP"
|
| 190 |
+
.IX Subsection "results"
|
| 191 |
+
Get the results of the last test run. Returns a \f(CW\*(C`result_class()\*(C'\fR instance.
|
| 192 |
+
.ie n .SS """commit"""
|
| 193 |
+
.el .SS "\f(CWcommit\fP"
|
| 194 |
+
.IX Subsection "commit"
|
| 195 |
+
Save the test results. Should be called after all tests have run.
|
| 196 |
+
.SS "Instance Methods"
|
| 197 |
+
.IX Subsection "Instance Methods"
|
| 198 |
+
\fI\f(CI\*(C`apply_switch\*(C'\fI\fR
|
| 199 |
+
.IX Subsection "apply_switch"
|
| 200 |
+
.PP
|
| 201 |
+
.Vb 1
|
| 202 |
+
\& $self\->apply_switch(\*(Aqfailed,save\*(Aq);
|
| 203 |
+
.Ve
|
| 204 |
+
.PP
|
| 205 |
+
Apply a list of switch options to the state, updating the internal
|
| 206 |
+
object state as a result. Nothing is returned.
|
| 207 |
+
.PP
|
| 208 |
+
Diagnostics:
|
| 209 |
+
\- \*(L"Illegal state option: \f(CW%s\fR\*(R"
|
| 210 |
+
.ie n .IP """last""" 4
|
| 211 |
+
.el .IP "\f(CWlast\fR" 4
|
| 212 |
+
.IX Item "last"
|
| 213 |
+
Run in the same order as last time
|
| 214 |
+
.ie n .IP """failed""" 4
|
| 215 |
+
.el .IP "\f(CWfailed\fR" 4
|
| 216 |
+
.IX Item "failed"
|
| 217 |
+
Run only the failed tests from last time
|
| 218 |
+
.ie n .IP """passed""" 4
|
| 219 |
+
.el .IP "\f(CWpassed\fR" 4
|
| 220 |
+
.IX Item "passed"
|
| 221 |
+
Run only the passed tests from last time
|
| 222 |
+
.ie n .IP """all""" 4
|
| 223 |
+
.el .IP "\f(CWall\fR" 4
|
| 224 |
+
.IX Item "all"
|
| 225 |
+
Run all tests in normal order
|
| 226 |
+
.ie n .IP """hot""" 4
|
| 227 |
+
.el .IP "\f(CWhot\fR" 4
|
| 228 |
+
.IX Item "hot"
|
| 229 |
+
Run the tests that most recently failed first
|
| 230 |
+
.ie n .IP """todo""" 4
|
| 231 |
+
.el .IP "\f(CWtodo\fR" 4
|
| 232 |
+
.IX Item "todo"
|
| 233 |
+
Run the tests ordered by number of todos.
|
| 234 |
+
.ie n .IP """slow""" 4
|
| 235 |
+
.el .IP "\f(CWslow\fR" 4
|
| 236 |
+
.IX Item "slow"
|
| 237 |
+
Run the tests in slowest to fastest order.
|
| 238 |
+
.ie n .IP """fast""" 4
|
| 239 |
+
.el .IP "\f(CWfast\fR" 4
|
| 240 |
+
.IX Item "fast"
|
| 241 |
+
Run test tests in fastest to slowest order.
|
| 242 |
+
.ie n .IP """new""" 4
|
| 243 |
+
.el .IP "\f(CWnew\fR" 4
|
| 244 |
+
.IX Item "new"
|
| 245 |
+
Run the tests in newest to oldest order.
|
| 246 |
+
.ie n .IP """old""" 4
|
| 247 |
+
.el .IP "\f(CWold\fR" 4
|
| 248 |
+
.IX Item "old"
|
| 249 |
+
Run the tests in oldest to newest order.
|
| 250 |
+
.ie n .IP """save""" 4
|
| 251 |
+
.el .IP "\f(CWsave\fR" 4
|
| 252 |
+
.IX Item "save"
|
| 253 |
+
Save the state on exit.
|
| 254 |
+
.PP
|
| 255 |
+
\fI\f(CI\*(C`get_tests\*(C'\fI\fR
|
| 256 |
+
.IX Subsection "get_tests"
|
| 257 |
+
.PP
|
| 258 |
+
Given a list of args get the names of tests that should run
|
| 259 |
+
.PP
|
| 260 |
+
\fI\f(CI\*(C`observe_test\*(C'\fI\fR
|
| 261 |
+
.IX Subsection "observe_test"
|
| 262 |
+
.PP
|
| 263 |
+
Store the results of a test.
|
| 264 |
+
.PP
|
| 265 |
+
\fI\f(CI\*(C`save\*(C'\fI\fR
|
| 266 |
+
.IX Subsection "save"
|
| 267 |
+
.PP
|
| 268 |
+
Write the state to a file.
|
| 269 |
+
.PP
|
| 270 |
+
\fI\f(CI\*(C`load\*(C'\fI\fR
|
| 271 |
+
.IX Subsection "load"
|
| 272 |
+
.PP
|
| 273 |
+
Load the state from a file
|
data/miniconda3/man/man3/App%3A%3AProve.3
ADDED
|
@@ -0,0 +1,451 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "App::Prove 3"
|
| 136 |
+
.TH App::Prove 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
App::Prove \- Implements the "prove" command.
|
| 143 |
+
.SH "VERSION"
|
| 144 |
+
.IX Header "VERSION"
|
| 145 |
+
Version 3.42
|
| 146 |
+
.SH "DESCRIPTION"
|
| 147 |
+
.IX Header "DESCRIPTION"
|
| 148 |
+
Test::Harness provides a command, \f(CW\*(C`prove\*(C'\fR, which runs a \s-1TAP\s0 based
|
| 149 |
+
test suite and prints a report. The \f(CW\*(C`prove\*(C'\fR command is a minimal
|
| 150 |
+
wrapper around an instance of this module.
|
| 151 |
+
.SH "SYNOPSIS"
|
| 152 |
+
.IX Header "SYNOPSIS"
|
| 153 |
+
.Vb 1
|
| 154 |
+
\& use App::Prove;
|
| 155 |
+
\&
|
| 156 |
+
\& my $app = App::Prove\->new;
|
| 157 |
+
\& $app\->process_args(@ARGV);
|
| 158 |
+
\& $app\->run;
|
| 159 |
+
.Ve
|
| 160 |
+
.SH "METHODS"
|
| 161 |
+
.IX Header "METHODS"
|
| 162 |
+
.SS "Class Methods"
|
| 163 |
+
.IX Subsection "Class Methods"
|
| 164 |
+
\fI\f(CI\*(C`new\*(C'\fI\fR
|
| 165 |
+
.IX Subsection "new"
|
| 166 |
+
.PP
|
| 167 |
+
Create a new \f(CW\*(C`App::Prove\*(C'\fR. Optionally a hash ref of attribute
|
| 168 |
+
initializers may be passed.
|
| 169 |
+
.PP
|
| 170 |
+
\fI\f(CI\*(C`state_class\*(C'\fI\fR
|
| 171 |
+
.IX Subsection "state_class"
|
| 172 |
+
.PP
|
| 173 |
+
Getter/setter for the name of the class used for maintaining state. This
|
| 174 |
+
class should either subclass from \f(CW\*(C`App::Prove::State\*(C'\fR or provide an identical
|
| 175 |
+
interface.
|
| 176 |
+
.PP
|
| 177 |
+
\fI\f(CI\*(C`state_manager\*(C'\fI\fR
|
| 178 |
+
.IX Subsection "state_manager"
|
| 179 |
+
.PP
|
| 180 |
+
Getter/setter for the instance of the \f(CW\*(C`state_class\*(C'\fR.
|
| 181 |
+
.PP
|
| 182 |
+
\fI\f(CI\*(C`add_rc_file\*(C'\fI\fR
|
| 183 |
+
.IX Subsection "add_rc_file"
|
| 184 |
+
.PP
|
| 185 |
+
.Vb 1
|
| 186 |
+
\& $prove\->add_rc_file(\*(Aqmyproj/.proverc\*(Aq);
|
| 187 |
+
.Ve
|
| 188 |
+
.PP
|
| 189 |
+
Called before \f(CW\*(C`process_args\*(C'\fR to prepend the contents of an rc file to
|
| 190 |
+
the options.
|
| 191 |
+
.PP
|
| 192 |
+
\fI\f(CI\*(C`process_args\*(C'\fI\fR
|
| 193 |
+
.IX Subsection "process_args"
|
| 194 |
+
.PP
|
| 195 |
+
.Vb 1
|
| 196 |
+
\& $prove\->process_args(@args);
|
| 197 |
+
.Ve
|
| 198 |
+
.PP
|
| 199 |
+
Processes the command-line arguments. Attributes will be set
|
| 200 |
+
appropriately. Any filenames may be found in the \f(CW\*(C`argv\*(C'\fR attribute.
|
| 201 |
+
.PP
|
| 202 |
+
Dies on invalid arguments.
|
| 203 |
+
.PP
|
| 204 |
+
\fI\f(CI\*(C`run\*(C'\fI\fR
|
| 205 |
+
.IX Subsection "run"
|
| 206 |
+
.PP
|
| 207 |
+
Perform whatever actions the command line args specified. The \f(CW\*(C`prove\*(C'\fR
|
| 208 |
+
command line tool consists of the following code:
|
| 209 |
+
.PP
|
| 210 |
+
.Vb 1
|
| 211 |
+
\& use App::Prove;
|
| 212 |
+
\&
|
| 213 |
+
\& my $app = App::Prove\->new;
|
| 214 |
+
\& $app\->process_args(@ARGV);
|
| 215 |
+
\& exit( $app\->run ? 0 : 1 ); # if you need the exit code
|
| 216 |
+
.Ve
|
| 217 |
+
.PP
|
| 218 |
+
\fI\f(CI\*(C`require_harness\*(C'\fI\fR
|
| 219 |
+
.IX Subsection "require_harness"
|
| 220 |
+
.PP
|
| 221 |
+
Load a harness replacement class.
|
| 222 |
+
.PP
|
| 223 |
+
.Vb 1
|
| 224 |
+
\& $prove\->require_harness($for => $class_name);
|
| 225 |
+
.Ve
|
| 226 |
+
.PP
|
| 227 |
+
\fI\f(CI\*(C`print_version\*(C'\fI\fR
|
| 228 |
+
.IX Subsection "print_version"
|
| 229 |
+
.PP
|
| 230 |
+
Display the version numbers of the loaded TAP::Harness and the
|
| 231 |
+
current Perl.
|
| 232 |
+
.SS "Attributes"
|
| 233 |
+
.IX Subsection "Attributes"
|
| 234 |
+
After command line parsing the following attributes reflect the values
|
| 235 |
+
of the corresponding command line switches. They may be altered before
|
| 236 |
+
calling \f(CW\*(C`run\*(C'\fR.
|
| 237 |
+
.ie n .IP """archive""" 4
|
| 238 |
+
.el .IP "\f(CWarchive\fR" 4
|
| 239 |
+
.IX Item "archive"
|
| 240 |
+
.PD 0
|
| 241 |
+
.ie n .IP """argv""" 4
|
| 242 |
+
.el .IP "\f(CWargv\fR" 4
|
| 243 |
+
.IX Item "argv"
|
| 244 |
+
.ie n .IP """backwards""" 4
|
| 245 |
+
.el .IP "\f(CWbackwards\fR" 4
|
| 246 |
+
.IX Item "backwards"
|
| 247 |
+
.ie n .IP """blib""" 4
|
| 248 |
+
.el .IP "\f(CWblib\fR" 4
|
| 249 |
+
.IX Item "blib"
|
| 250 |
+
.ie n .IP """color""" 4
|
| 251 |
+
.el .IP "\f(CWcolor\fR" 4
|
| 252 |
+
.IX Item "color"
|
| 253 |
+
.ie n .IP """directives""" 4
|
| 254 |
+
.el .IP "\f(CWdirectives\fR" 4
|
| 255 |
+
.IX Item "directives"
|
| 256 |
+
.ie n .IP """dry""" 4
|
| 257 |
+
.el .IP "\f(CWdry\fR" 4
|
| 258 |
+
.IX Item "dry"
|
| 259 |
+
.ie n .IP """exec""" 4
|
| 260 |
+
.el .IP "\f(CWexec\fR" 4
|
| 261 |
+
.IX Item "exec"
|
| 262 |
+
.ie n .IP """extensions""" 4
|
| 263 |
+
.el .IP "\f(CWextensions\fR" 4
|
| 264 |
+
.IX Item "extensions"
|
| 265 |
+
.ie n .IP """failures""" 4
|
| 266 |
+
.el .IP "\f(CWfailures\fR" 4
|
| 267 |
+
.IX Item "failures"
|
| 268 |
+
.ie n .IP """comments""" 4
|
| 269 |
+
.el .IP "\f(CWcomments\fR" 4
|
| 270 |
+
.IX Item "comments"
|
| 271 |
+
.ie n .IP """formatter""" 4
|
| 272 |
+
.el .IP "\f(CWformatter\fR" 4
|
| 273 |
+
.IX Item "formatter"
|
| 274 |
+
.ie n .IP """harness""" 4
|
| 275 |
+
.el .IP "\f(CWharness\fR" 4
|
| 276 |
+
.IX Item "harness"
|
| 277 |
+
.ie n .IP """ignore_exit""" 4
|
| 278 |
+
.el .IP "\f(CWignore_exit\fR" 4
|
| 279 |
+
.IX Item "ignore_exit"
|
| 280 |
+
.ie n .IP """includes""" 4
|
| 281 |
+
.el .IP "\f(CWincludes\fR" 4
|
| 282 |
+
.IX Item "includes"
|
| 283 |
+
.ie n .IP """jobs""" 4
|
| 284 |
+
.el .IP "\f(CWjobs\fR" 4
|
| 285 |
+
.IX Item "jobs"
|
| 286 |
+
.ie n .IP """lib""" 4
|
| 287 |
+
.el .IP "\f(CWlib\fR" 4
|
| 288 |
+
.IX Item "lib"
|
| 289 |
+
.ie n .IP """merge""" 4
|
| 290 |
+
.el .IP "\f(CWmerge\fR" 4
|
| 291 |
+
.IX Item "merge"
|
| 292 |
+
.ie n .IP """modules""" 4
|
| 293 |
+
.el .IP "\f(CWmodules\fR" 4
|
| 294 |
+
.IX Item "modules"
|
| 295 |
+
.ie n .IP """parse""" 4
|
| 296 |
+
.el .IP "\f(CWparse\fR" 4
|
| 297 |
+
.IX Item "parse"
|
| 298 |
+
.ie n .IP """plugins""" 4
|
| 299 |
+
.el .IP "\f(CWplugins\fR" 4
|
| 300 |
+
.IX Item "plugins"
|
| 301 |
+
.ie n .IP """quiet""" 4
|
| 302 |
+
.el .IP "\f(CWquiet\fR" 4
|
| 303 |
+
.IX Item "quiet"
|
| 304 |
+
.ie n .IP """really_quiet""" 4
|
| 305 |
+
.el .IP "\f(CWreally_quiet\fR" 4
|
| 306 |
+
.IX Item "really_quiet"
|
| 307 |
+
.ie n .IP """recurse""" 4
|
| 308 |
+
.el .IP "\f(CWrecurse\fR" 4
|
| 309 |
+
.IX Item "recurse"
|
| 310 |
+
.ie n .IP """rules""" 4
|
| 311 |
+
.el .IP "\f(CWrules\fR" 4
|
| 312 |
+
.IX Item "rules"
|
| 313 |
+
.ie n .IP """show_count""" 4
|
| 314 |
+
.el .IP "\f(CWshow_count\fR" 4
|
| 315 |
+
.IX Item "show_count"
|
| 316 |
+
.ie n .IP """show_help""" 4
|
| 317 |
+
.el .IP "\f(CWshow_help\fR" 4
|
| 318 |
+
.IX Item "show_help"
|
| 319 |
+
.ie n .IP """show_man""" 4
|
| 320 |
+
.el .IP "\f(CWshow_man\fR" 4
|
| 321 |
+
.IX Item "show_man"
|
| 322 |
+
.ie n .IP """show_version""" 4
|
| 323 |
+
.el .IP "\f(CWshow_version\fR" 4
|
| 324 |
+
.IX Item "show_version"
|
| 325 |
+
.ie n .IP """shuffle""" 4
|
| 326 |
+
.el .IP "\f(CWshuffle\fR" 4
|
| 327 |
+
.IX Item "shuffle"
|
| 328 |
+
.ie n .IP """state""" 4
|
| 329 |
+
.el .IP "\f(CWstate\fR" 4
|
| 330 |
+
.IX Item "state"
|
| 331 |
+
.ie n .IP """state_class""" 4
|
| 332 |
+
.el .IP "\f(CWstate_class\fR" 4
|
| 333 |
+
.IX Item "state_class"
|
| 334 |
+
.ie n .IP """taint_fail""" 4
|
| 335 |
+
.el .IP "\f(CWtaint_fail\fR" 4
|
| 336 |
+
.IX Item "taint_fail"
|
| 337 |
+
.ie n .IP """taint_warn""" 4
|
| 338 |
+
.el .IP "\f(CWtaint_warn\fR" 4
|
| 339 |
+
.IX Item "taint_warn"
|
| 340 |
+
.ie n .IP """test_args""" 4
|
| 341 |
+
.el .IP "\f(CWtest_args\fR" 4
|
| 342 |
+
.IX Item "test_args"
|
| 343 |
+
.ie n .IP """timer""" 4
|
| 344 |
+
.el .IP "\f(CWtimer\fR" 4
|
| 345 |
+
.IX Item "timer"
|
| 346 |
+
.ie n .IP """verbose""" 4
|
| 347 |
+
.el .IP "\f(CWverbose\fR" 4
|
| 348 |
+
.IX Item "verbose"
|
| 349 |
+
.ie n .IP """warnings_fail""" 4
|
| 350 |
+
.el .IP "\f(CWwarnings_fail\fR" 4
|
| 351 |
+
.IX Item "warnings_fail"
|
| 352 |
+
.ie n .IP """warnings_warn""" 4
|
| 353 |
+
.el .IP "\f(CWwarnings_warn\fR" 4
|
| 354 |
+
.IX Item "warnings_warn"
|
| 355 |
+
.ie n .IP """tapversion""" 4
|
| 356 |
+
.el .IP "\f(CWtapversion\fR" 4
|
| 357 |
+
.IX Item "tapversion"
|
| 358 |
+
.ie n .IP """trap""" 4
|
| 359 |
+
.el .IP "\f(CWtrap\fR" 4
|
| 360 |
+
.IX Item "trap"
|
| 361 |
+
.PD
|
| 362 |
+
.SH "PLUGINS"
|
| 363 |
+
.IX Header "PLUGINS"
|
| 364 |
+
\&\f(CW\*(C`App::Prove\*(C'\fR provides support for 3rd\-party plugins. These are currently
|
| 365 |
+
loaded at run-time, \fIafter\fR arguments have been parsed (so you can not
|
| 366 |
+
change the way arguments are processed, sorry), typically with the
|
| 367 |
+
\&\f(CW\*(C`\-P\f(CIplugin\f(CW\*(C'\fR switch, eg:
|
| 368 |
+
.PP
|
| 369 |
+
.Vb 1
|
| 370 |
+
\& prove \-PMyPlugin
|
| 371 |
+
.Ve
|
| 372 |
+
.PP
|
| 373 |
+
This will search for a module named \f(CW\*(C`App::Prove::Plugin::MyPlugin\*(C'\fR, or failing
|
| 374 |
+
that, \f(CW\*(C`MyPlugin\*(C'\fR. If the plugin can't be found, \f(CW\*(C`prove\*(C'\fR will complain & exit.
|
| 375 |
+
.PP
|
| 376 |
+
You can pass an argument to your plugin by appending an \f(CW\*(C`=\*(C'\fR after the plugin
|
| 377 |
+
name, eg \f(CW\*(C`\-PMyPlugin=foo\*(C'\fR. You can pass multiple arguments using commas:
|
| 378 |
+
.PP
|
| 379 |
+
.Vb 1
|
| 380 |
+
\& prove \-PMyPlugin=foo,bar,baz
|
| 381 |
+
.Ve
|
| 382 |
+
.PP
|
| 383 |
+
These are passed in to your plugin's \f(CW\*(C`load()\*(C'\fR class method (if it has one),
|
| 384 |
+
along with a reference to the \f(CW\*(C`App::Prove\*(C'\fR object that is invoking your plugin:
|
| 385 |
+
.PP
|
| 386 |
+
.Vb 2
|
| 387 |
+
\& sub load {
|
| 388 |
+
\& my ($class, $p) = @_;
|
| 389 |
+
\&
|
| 390 |
+
\& my @args = @{ $p\->{args} };
|
| 391 |
+
\& # @args will contain ( \*(Aqfoo\*(Aq, \*(Aqbar\*(Aq, \*(Aqbaz\*(Aq )
|
| 392 |
+
\& $p\->{app_prove}\->do_something;
|
| 393 |
+
\& ...
|
| 394 |
+
\& }
|
| 395 |
+
.Ve
|
| 396 |
+
.PP
|
| 397 |
+
Note that the user's arguments are also passed to your plugin's \f(CW\*(C`import()\*(C'\fR
|
| 398 |
+
function as a list, eg:
|
| 399 |
+
.PP
|
| 400 |
+
.Vb 5
|
| 401 |
+
\& sub import {
|
| 402 |
+
\& my ($class, @args) = @_;
|
| 403 |
+
\& # @args will contain ( \*(Aqfoo\*(Aq, \*(Aqbar\*(Aq, \*(Aqbaz\*(Aq )
|
| 404 |
+
\& ...
|
| 405 |
+
\& }
|
| 406 |
+
.Ve
|
| 407 |
+
.PP
|
| 408 |
+
This is for backwards compatibility, and may be deprecated in the future.
|
| 409 |
+
.SS "Sample Plugin"
|
| 410 |
+
.IX Subsection "Sample Plugin"
|
| 411 |
+
Here's a sample plugin, for your reference:
|
| 412 |
+
.PP
|
| 413 |
+
.Vb 1
|
| 414 |
+
\& package App::Prove::Plugin::Foo;
|
| 415 |
+
\&
|
| 416 |
+
\& # Sample plugin, try running with:
|
| 417 |
+
\& # prove \-PFoo=bar \-r \-j3
|
| 418 |
+
\& # prove \-PFoo \-Q
|
| 419 |
+
\& # prove \-PFoo=bar,My::Formatter
|
| 420 |
+
\&
|
| 421 |
+
\& use strict;
|
| 422 |
+
\& use warnings;
|
| 423 |
+
\&
|
| 424 |
+
\& sub load {
|
| 425 |
+
\& my ($class, $p) = @_;
|
| 426 |
+
\& my @args = @{ $p\->{args} };
|
| 427 |
+
\& my $app = $p\->{app_prove};
|
| 428 |
+
\&
|
| 429 |
+
\& print "loading plugin: $class, args: ", join(\*(Aq, \*(Aq, @args ), "\en";
|
| 430 |
+
\&
|
| 431 |
+
\& # turn on verbosity
|
| 432 |
+
\& $app\->verbose( 1 );
|
| 433 |
+
\&
|
| 434 |
+
\& # set the formatter?
|
| 435 |
+
\& $app\->formatter( $args[1] ) if @args > 1;
|
| 436 |
+
\&
|
| 437 |
+
\& # print some of App::Prove\*(Aqs state:
|
| 438 |
+
\& for my $attr (qw( jobs quiet really_quiet recurse verbose )) {
|
| 439 |
+
\& my $val = $app\->$attr;
|
| 440 |
+
\& $val = \*(Aqundef\*(Aq unless defined( $val );
|
| 441 |
+
\& print "$attr: $val\en";
|
| 442 |
+
\& }
|
| 443 |
+
\&
|
| 444 |
+
\& return 1;
|
| 445 |
+
\& }
|
| 446 |
+
\&
|
| 447 |
+
\& 1;
|
| 448 |
+
.Ve
|
| 449 |
+
.SH "SEE ALSO"
|
| 450 |
+
.IX Header "SEE ALSO"
|
| 451 |
+
prove, TAP::Harness
|
data/miniconda3/man/man3/Archive%3A%3ATar%3A%3AFile.3
ADDED
|
@@ -0,0 +1,363 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "Archive::Tar::File 3"
|
| 136 |
+
.TH Archive::Tar::File 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
Archive::Tar::File \- a subclass for in\-memory extracted file from Archive::Tar
|
| 143 |
+
.SH "SYNOPSIS"
|
| 144 |
+
.IX Header "SYNOPSIS"
|
| 145 |
+
.Vb 1
|
| 146 |
+
\& my @items = $tar\->get_files;
|
| 147 |
+
\&
|
| 148 |
+
\& print $_\->name, \*(Aq \*(Aq, $_\->size, "\en" for @items;
|
| 149 |
+
\&
|
| 150 |
+
\& print $object\->get_content;
|
| 151 |
+
\& $object\->replace_content(\*(Aqnew content\*(Aq);
|
| 152 |
+
\&
|
| 153 |
+
\& $object\->rename( \*(Aqnew/full/path/to/file.c\*(Aq );
|
| 154 |
+
.Ve
|
| 155 |
+
.SH "DESCRIPTION"
|
| 156 |
+
.IX Header "DESCRIPTION"
|
| 157 |
+
Archive::Tar::Files provides a neat little object layer for in-memory
|
| 158 |
+
extracted files. It's mostly used internally in Archive::Tar to tidy
|
| 159 |
+
up the code, but there's no reason users shouldn't use this \s-1API\s0 as
|
| 160 |
+
well.
|
| 161 |
+
.SS "Accessors"
|
| 162 |
+
.IX Subsection "Accessors"
|
| 163 |
+
A lot of the methods in this package are accessors to the various
|
| 164 |
+
fields in the tar header:
|
| 165 |
+
.IP "name" 4
|
| 166 |
+
.IX Item "name"
|
| 167 |
+
The file's name
|
| 168 |
+
.IP "mode" 4
|
| 169 |
+
.IX Item "mode"
|
| 170 |
+
The file's mode
|
| 171 |
+
.IP "uid" 4
|
| 172 |
+
.IX Item "uid"
|
| 173 |
+
The user id owning the file
|
| 174 |
+
.IP "gid" 4
|
| 175 |
+
.IX Item "gid"
|
| 176 |
+
The group id owning the file
|
| 177 |
+
.IP "size" 4
|
| 178 |
+
.IX Item "size"
|
| 179 |
+
File size in bytes
|
| 180 |
+
.IP "mtime" 4
|
| 181 |
+
.IX Item "mtime"
|
| 182 |
+
Modification time. Adjusted to mac-time on MacOS if required
|
| 183 |
+
.IP "chksum" 4
|
| 184 |
+
.IX Item "chksum"
|
| 185 |
+
Checksum field for the tar header
|
| 186 |
+
.IP "type" 4
|
| 187 |
+
.IX Item "type"
|
| 188 |
+
File type \*(-- numeric, but comparable to exported constants \*(-- see
|
| 189 |
+
Archive::Tar's documentation
|
| 190 |
+
.IP "linkname" 4
|
| 191 |
+
.IX Item "linkname"
|
| 192 |
+
If the file is a symlink, the file it's pointing to
|
| 193 |
+
.IP "magic" 4
|
| 194 |
+
.IX Item "magic"
|
| 195 |
+
Tar magic string \*(-- not useful for most users
|
| 196 |
+
.IP "version" 4
|
| 197 |
+
.IX Item "version"
|
| 198 |
+
Tar version string \*(-- not useful for most users
|
| 199 |
+
.IP "uname" 4
|
| 200 |
+
.IX Item "uname"
|
| 201 |
+
The user name that owns the file
|
| 202 |
+
.IP "gname" 4
|
| 203 |
+
.IX Item "gname"
|
| 204 |
+
The group name that owns the file
|
| 205 |
+
.IP "devmajor" 4
|
| 206 |
+
.IX Item "devmajor"
|
| 207 |
+
Device major number in case of a special file
|
| 208 |
+
.IP "devminor" 4
|
| 209 |
+
.IX Item "devminor"
|
| 210 |
+
Device minor number in case of a special file
|
| 211 |
+
.IP "prefix" 4
|
| 212 |
+
.IX Item "prefix"
|
| 213 |
+
Any directory to prefix to the extraction path, if any
|
| 214 |
+
.IP "raw" 4
|
| 215 |
+
.IX Item "raw"
|
| 216 |
+
Raw tar header \*(-- not useful for most users
|
| 217 |
+
.SH "Methods"
|
| 218 |
+
.IX Header "Methods"
|
| 219 |
+
.ie n .SS "Archive::Tar::File\->new( file => $path )"
|
| 220 |
+
.el .SS "Archive::Tar::File\->new( file => \f(CW$path\fP )"
|
| 221 |
+
.IX Subsection "Archive::Tar::File->new( file => $path )"
|
| 222 |
+
Returns a new Archive::Tar::File object from an existing file.
|
| 223 |
+
.PP
|
| 224 |
+
Returns undef on failure.
|
| 225 |
+
.ie n .SS "Archive::Tar::File\->new( data => $path, $data, $opt )"
|
| 226 |
+
.el .SS "Archive::Tar::File\->new( data => \f(CW$path\fP, \f(CW$data\fP, \f(CW$opt\fP )"
|
| 227 |
+
.IX Subsection "Archive::Tar::File->new( data => $path, $data, $opt )"
|
| 228 |
+
Returns a new Archive::Tar::File object from data.
|
| 229 |
+
.PP
|
| 230 |
+
\&\f(CW$path\fR defines the file name (which need not exist), \f(CW$data\fR the
|
| 231 |
+
file contents, and \f(CW$opt\fR is a reference to a hash of attributes
|
| 232 |
+
which may be used to override the default attributes (fields in the
|
| 233 |
+
tar header), which are described above in the Accessors section.
|
| 234 |
+
.PP
|
| 235 |
+
Returns undef on failure.
|
| 236 |
+
.ie n .SS "Archive::Tar::File\->new( chunk => $chunk )"
|
| 237 |
+
.el .SS "Archive::Tar::File\->new( chunk => \f(CW$chunk\fP )"
|
| 238 |
+
.IX Subsection "Archive::Tar::File->new( chunk => $chunk )"
|
| 239 |
+
Returns a new Archive::Tar::File object from a raw 512\-byte tar
|
| 240 |
+
archive chunk.
|
| 241 |
+
.PP
|
| 242 |
+
Returns undef on failure.
|
| 243 |
+
.ie n .SS "$bool = $file\->extract( [ $alternative_name ] )"
|
| 244 |
+
.el .SS "\f(CW$bool\fP = \f(CW$file\fP\->extract( [ \f(CW$alternative_name\fP ] )"
|
| 245 |
+
.IX Subsection "$bool = $file->extract( [ $alternative_name ] )"
|
| 246 |
+
Extract this object, optionally to an alternative name.
|
| 247 |
+
.PP
|
| 248 |
+
See \f(CW\*(C`Archive::Tar\->extract_file\*(C'\fR for details.
|
| 249 |
+
.PP
|
| 250 |
+
Returns true on success and false on failure.
|
| 251 |
+
.ie n .SS "$path = $file\->full_path"
|
| 252 |
+
.el .SS "\f(CW$path\fP = \f(CW$file\fP\->full_path"
|
| 253 |
+
.IX Subsection "$path = $file->full_path"
|
| 254 |
+
Returns the full path from the tar header; this is basically a
|
| 255 |
+
concatenation of the \f(CW\*(C`prefix\*(C'\fR and \f(CW\*(C`name\*(C'\fR fields.
|
| 256 |
+
.ie n .SS "$bool = $file\->validate"
|
| 257 |
+
.el .SS "\f(CW$bool\fP = \f(CW$file\fP\->validate"
|
| 258 |
+
.IX Subsection "$bool = $file->validate"
|
| 259 |
+
Done by Archive::Tar internally when reading the tar file:
|
| 260 |
+
validate the header against the checksum to ensure integer tar file.
|
| 261 |
+
.PP
|
| 262 |
+
Returns true on success, false on failure
|
| 263 |
+
.ie n .SS "$bool = $file\->has_content"
|
| 264 |
+
.el .SS "\f(CW$bool\fP = \f(CW$file\fP\->has_content"
|
| 265 |
+
.IX Subsection "$bool = $file->has_content"
|
| 266 |
+
Returns a boolean to indicate whether the current object has content.
|
| 267 |
+
Some special files like directories and so on never will have any
|
| 268 |
+
content. This method is mainly to make sure you don't get warnings
|
| 269 |
+
for using uninitialized values when looking at an object's content.
|
| 270 |
+
.ie n .SS "$content = $file\->get_content"
|
| 271 |
+
.el .SS "\f(CW$content\fP = \f(CW$file\fP\->get_content"
|
| 272 |
+
.IX Subsection "$content = $file->get_content"
|
| 273 |
+
Returns the current content for the in-memory file
|
| 274 |
+
.ie n .SS "$cref = $file\->get_content_by_ref"
|
| 275 |
+
.el .SS "\f(CW$cref\fP = \f(CW$file\fP\->get_content_by_ref"
|
| 276 |
+
.IX Subsection "$cref = $file->get_content_by_ref"
|
| 277 |
+
Returns the current content for the in-memory file as a scalar
|
| 278 |
+
reference. Normal users won't need this, but it will save memory if
|
| 279 |
+
you are dealing with very large data files in your tar archive, since
|
| 280 |
+
it will pass the contents by reference, rather than make a copy of it
|
| 281 |
+
first.
|
| 282 |
+
.ie n .SS "$bool = $file\->replace_content( $content )"
|
| 283 |
+
.el .SS "\f(CW$bool\fP = \f(CW$file\fP\->replace_content( \f(CW$content\fP )"
|
| 284 |
+
.IX Subsection "$bool = $file->replace_content( $content )"
|
| 285 |
+
Replace the current content of the file with the new content. This
|
| 286 |
+
only affects the in-memory archive, not the on-disk version until
|
| 287 |
+
you write it.
|
| 288 |
+
.PP
|
| 289 |
+
Returns true on success, false on failure.
|
| 290 |
+
.ie n .SS "$bool = $file\->rename( $new_name )"
|
| 291 |
+
.el .SS "\f(CW$bool\fP = \f(CW$file\fP\->rename( \f(CW$new_name\fP )"
|
| 292 |
+
.IX Subsection "$bool = $file->rename( $new_name )"
|
| 293 |
+
Rename the current file to \f(CW$new_name\fR.
|
| 294 |
+
.PP
|
| 295 |
+
Note that you must specify a Unix path for \f(CW$new_name\fR, since per tar
|
| 296 |
+
standard, all files in the archive must be Unix paths.
|
| 297 |
+
.PP
|
| 298 |
+
Returns true on success and false on failure.
|
| 299 |
+
.ie n .SS "$bool = $file\->chmod $mode)"
|
| 300 |
+
.el .SS "\f(CW$bool\fP = \f(CW$file\fP\->chmod \f(CW$mode\fP)"
|
| 301 |
+
.IX Subsection "$bool = $file->chmod $mode)"
|
| 302 |
+
Change mode of \f(CW$file\fR to \f(CW$mode\fR. The mode can be a string or a number
|
| 303 |
+
which is interpreted as octal whether or not a leading 0 is given.
|
| 304 |
+
.PP
|
| 305 |
+
Returns true on success and false on failure.
|
| 306 |
+
.ie n .SS "$bool = $file\->chown( $user [, $group])"
|
| 307 |
+
.el .SS "\f(CW$bool\fP = \f(CW$file\fP\->chown( \f(CW$user\fP [, \f(CW$group\fP])"
|
| 308 |
+
.IX Subsection "$bool = $file->chown( $user [, $group])"
|
| 309 |
+
Change owner of \f(CW$file\fR to \f(CW$user\fR. If a \f(CW$group\fR is given that is changed
|
| 310 |
+
as well. You can also pass a single parameter with a colon separating the
|
| 311 |
+
use and group as in 'root:wheel'.
|
| 312 |
+
.PP
|
| 313 |
+
Returns true on success and false on failure.
|
| 314 |
+
.SH "Convenience methods"
|
| 315 |
+
.IX Header "Convenience methods"
|
| 316 |
+
To quickly check the type of a \f(CW\*(C`Archive::Tar::File\*(C'\fR object, you can
|
| 317 |
+
use the following methods:
|
| 318 |
+
.ie n .IP "$file\->is_file" 4
|
| 319 |
+
.el .IP "\f(CW$file\fR\->is_file" 4
|
| 320 |
+
.IX Item "$file->is_file"
|
| 321 |
+
Returns true if the file is of type \f(CW\*(C`file\*(C'\fR
|
| 322 |
+
.ie n .IP "$file\->is_dir" 4
|
| 323 |
+
.el .IP "\f(CW$file\fR\->is_dir" 4
|
| 324 |
+
.IX Item "$file->is_dir"
|
| 325 |
+
Returns true if the file is of type \f(CW\*(C`dir\*(C'\fR
|
| 326 |
+
.ie n .IP "$file\->is_hardlink" 4
|
| 327 |
+
.el .IP "\f(CW$file\fR\->is_hardlink" 4
|
| 328 |
+
.IX Item "$file->is_hardlink"
|
| 329 |
+
Returns true if the file is of type \f(CW\*(C`hardlink\*(C'\fR
|
| 330 |
+
.ie n .IP "$file\->is_symlink" 4
|
| 331 |
+
.el .IP "\f(CW$file\fR\->is_symlink" 4
|
| 332 |
+
.IX Item "$file->is_symlink"
|
| 333 |
+
Returns true if the file is of type \f(CW\*(C`symlink\*(C'\fR
|
| 334 |
+
.ie n .IP "$file\->is_chardev" 4
|
| 335 |
+
.el .IP "\f(CW$file\fR\->is_chardev" 4
|
| 336 |
+
.IX Item "$file->is_chardev"
|
| 337 |
+
Returns true if the file is of type \f(CW\*(C`chardev\*(C'\fR
|
| 338 |
+
.ie n .IP "$file\->is_blockdev" 4
|
| 339 |
+
.el .IP "\f(CW$file\fR\->is_blockdev" 4
|
| 340 |
+
.IX Item "$file->is_blockdev"
|
| 341 |
+
Returns true if the file is of type \f(CW\*(C`blockdev\*(C'\fR
|
| 342 |
+
.ie n .IP "$file\->is_fifo" 4
|
| 343 |
+
.el .IP "\f(CW$file\fR\->is_fifo" 4
|
| 344 |
+
.IX Item "$file->is_fifo"
|
| 345 |
+
Returns true if the file is of type \f(CW\*(C`fifo\*(C'\fR
|
| 346 |
+
.ie n .IP "$file\->is_socket" 4
|
| 347 |
+
.el .IP "\f(CW$file\fR\->is_socket" 4
|
| 348 |
+
.IX Item "$file->is_socket"
|
| 349 |
+
Returns true if the file is of type \f(CW\*(C`socket\*(C'\fR
|
| 350 |
+
.ie n .IP "$file\->is_longlink" 4
|
| 351 |
+
.el .IP "\f(CW$file\fR\->is_longlink" 4
|
| 352 |
+
.IX Item "$file->is_longlink"
|
| 353 |
+
Returns true if the file is of type \f(CW\*(C`LongLink\*(C'\fR.
|
| 354 |
+
Should not happen after a successful \f(CW\*(C`read\*(C'\fR.
|
| 355 |
+
.ie n .IP "$file\->is_label" 4
|
| 356 |
+
.el .IP "\f(CW$file\fR\->is_label" 4
|
| 357 |
+
.IX Item "$file->is_label"
|
| 358 |
+
Returns true if the file is of type \f(CW\*(C`Label\*(C'\fR.
|
| 359 |
+
Should not happen after a successful \f(CW\*(C`read\*(C'\fR.
|
| 360 |
+
.ie n .IP "$file\->is_unknown" 4
|
| 361 |
+
.el .IP "\f(CW$file\fR\->is_unknown" 4
|
| 362 |
+
.IX Item "$file->is_unknown"
|
| 363 |
+
Returns true if the file type is \f(CW\*(C`unknown\*(C'\fR
|
data/miniconda3/man/man3/Archive%3A%3ATar.3
ADDED
|
@@ -0,0 +1,1056 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "Archive::Tar 3"
|
| 136 |
+
.TH Archive::Tar 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
Archive::Tar \- module for manipulations of tar archives
|
| 143 |
+
.SH "SYNOPSIS"
|
| 144 |
+
.IX Header "SYNOPSIS"
|
| 145 |
+
.Vb 2
|
| 146 |
+
\& use Archive::Tar;
|
| 147 |
+
\& my $tar = Archive::Tar\->new;
|
| 148 |
+
\&
|
| 149 |
+
\& $tar\->read(\*(Aqorigin.tgz\*(Aq);
|
| 150 |
+
\& $tar\->extract();
|
| 151 |
+
\&
|
| 152 |
+
\& $tar\->add_files(\*(Aqfile/foo.pl\*(Aq, \*(Aqdocs/README\*(Aq);
|
| 153 |
+
\& $tar\->add_data(\*(Aqfile/baz.txt\*(Aq, \*(AqThis is the contents now\*(Aq);
|
| 154 |
+
\&
|
| 155 |
+
\& $tar\->rename(\*(Aqoldname\*(Aq, \*(Aqnew/file/name\*(Aq);
|
| 156 |
+
\& $tar\->chown(\*(Aq/\*(Aq, \*(Aqroot\*(Aq);
|
| 157 |
+
\& $tar\->chown(\*(Aq/\*(Aq, \*(Aqroot:root\*(Aq);
|
| 158 |
+
\& $tar\->chmod(\*(Aq/tmp\*(Aq, \*(Aq1777\*(Aq);
|
| 159 |
+
\&
|
| 160 |
+
\& $tar\->write(\*(Aqfiles.tar\*(Aq); # plain tar
|
| 161 |
+
\& $tar\->write(\*(Aqfiles.tgz\*(Aq, COMPRESS_GZIP); # gzip compressed
|
| 162 |
+
\& $tar\->write(\*(Aqfiles.tbz\*(Aq, COMPRESS_BZIP); # bzip2 compressed
|
| 163 |
+
\& $tar\->write(\*(Aqfiles.txz\*(Aq, COMPRESS_XZ); # xz compressed
|
| 164 |
+
.Ve
|
| 165 |
+
.SH "DESCRIPTION"
|
| 166 |
+
.IX Header "DESCRIPTION"
|
| 167 |
+
Archive::Tar provides an object oriented mechanism for handling tar
|
| 168 |
+
files. It provides class methods for quick and easy files handling
|
| 169 |
+
while also allowing for the creation of tar file objects for custom
|
| 170 |
+
manipulation. If you have the IO::Zlib module installed,
|
| 171 |
+
Archive::Tar will also support compressed or gzipped tar files.
|
| 172 |
+
.PP
|
| 173 |
+
An object of class Archive::Tar represents a .tar(.gz) archive full
|
| 174 |
+
of files and things.
|
| 175 |
+
.SH "Object Methods"
|
| 176 |
+
.IX Header "Object Methods"
|
| 177 |
+
.ie n .SS "Archive::Tar\->new( [$file, $compressed] )"
|
| 178 |
+
.el .SS "Archive::Tar\->new( [$file, \f(CW$compressed\fP] )"
|
| 179 |
+
.IX Subsection "Archive::Tar->new( [$file, $compressed] )"
|
| 180 |
+
Returns a new Tar object. If given any arguments, \f(CW\*(C`new()\*(C'\fR calls the
|
| 181 |
+
\&\f(CW\*(C`read()\*(C'\fR method automatically, passing on the arguments provided to
|
| 182 |
+
the \f(CW\*(C`read()\*(C'\fR method.
|
| 183 |
+
.PP
|
| 184 |
+
If \f(CW\*(C`new()\*(C'\fR is invoked with arguments and the \f(CW\*(C`read()\*(C'\fR method fails
|
| 185 |
+
for any reason, \f(CW\*(C`new()\*(C'\fR returns undef.
|
| 186 |
+
.ie n .SS "$tar\->read ( $filename|$handle, [$compressed, {opt => 'val'}] )"
|
| 187 |
+
.el .SS "\f(CW$tar\fP\->read ( \f(CW$filename\fP|$handle, [$compressed, {opt => 'val'}] )"
|
| 188 |
+
.IX Subsection "$tar->read ( $filename|$handle, [$compressed, {opt => 'val'}] )"
|
| 189 |
+
Read the given tar file into memory.
|
| 190 |
+
The first argument can either be the name of a file or a reference to
|
| 191 |
+
an already open filehandle (or an IO::Zlib object if it's compressed)
|
| 192 |
+
.PP
|
| 193 |
+
The \f(CW\*(C`read\*(C'\fR will \fIreplace\fR any previous content in \f(CW$tar\fR!
|
| 194 |
+
.PP
|
| 195 |
+
The second argument may be considered optional, but remains for
|
| 196 |
+
backwards compatibility. Archive::Tar now looks at the file
|
| 197 |
+
magic to determine what class should be used to open the file
|
| 198 |
+
and will transparently Do The Right Thing.
|
| 199 |
+
.PP
|
| 200 |
+
Archive::Tar will warn if you try to pass a bzip2 / xz compressed file and the
|
| 201 |
+
IO::Uncompress::Bunzip2 / IO::Uncompress::UnXz are not available and simply return.
|
| 202 |
+
.PP
|
| 203 |
+
Note that you can currently \fBnot\fR pass a \f(CW\*(C`gzip\*(C'\fR compressed
|
| 204 |
+
filehandle, which is not opened with \f(CW\*(C`IO::Zlib\*(C'\fR, a \f(CW\*(C`bzip2\*(C'\fR compressed
|
| 205 |
+
filehandle, which is not opened with \f(CW\*(C`IO::Uncompress::Bunzip2\*(C'\fR, a \f(CW\*(C`xz\*(C'\fR compressed
|
| 206 |
+
filehandle, which is not opened with \f(CW\*(C`IO::Uncompress::UnXz\*(C'\fR, nor a string
|
| 207 |
+
containing the full archive information (either compressed or
|
| 208 |
+
uncompressed). These are worth while features, but not currently
|
| 209 |
+
implemented. See the \f(CW\*(C`TODO\*(C'\fR section.
|
| 210 |
+
.PP
|
| 211 |
+
The third argument can be a hash reference with options. Note that
|
| 212 |
+
all options are case-sensitive.
|
| 213 |
+
.IP "limit" 4
|
| 214 |
+
.IX Item "limit"
|
| 215 |
+
Do not read more than \f(CW\*(C`limit\*(C'\fR files. This is useful if you have
|
| 216 |
+
very big archives, and are only interested in the first few files.
|
| 217 |
+
.IP "filter" 4
|
| 218 |
+
.IX Item "filter"
|
| 219 |
+
Can be set to a regular expression. Only files with names that match
|
| 220 |
+
the expression will be read.
|
| 221 |
+
.IP "md5" 4
|
| 222 |
+
.IX Item "md5"
|
| 223 |
+
Set to 1 and the md5sum of files will be returned (instead of file data)
|
| 224 |
+
my \f(CW$iter\fR = Archive::Tar\->iter( \f(CW$file\fR, 1, {md5 => 1} );
|
| 225 |
+
while( my \f(CW$f\fR = \f(CW$iter\fR\->() ) {
|
| 226 |
+
print \f(CW$f\fR\->data . \*(L"\et\*(R" . \f(CW$f\fR\->full_path . $/;
|
| 227 |
+
}
|
| 228 |
+
.IP "extract" 4
|
| 229 |
+
.IX Item "extract"
|
| 230 |
+
If set to true, immediately extract entries when reading them. This
|
| 231 |
+
gives you the same memory break as the \f(CW\*(C`extract_archive\*(C'\fR function.
|
| 232 |
+
Note however that entries will not be read into memory, but written
|
| 233 |
+
straight to disk. This means no \f(CW\*(C`Archive::Tar::File\*(C'\fR objects are
|
| 234 |
+
created for you to inspect.
|
| 235 |
+
.PP
|
| 236 |
+
All files are stored internally as \f(CW\*(C`Archive::Tar::File\*(C'\fR objects.
|
| 237 |
+
Please consult the Archive::Tar::File documentation for details.
|
| 238 |
+
.PP
|
| 239 |
+
Returns the number of files read in scalar context, and a list of
|
| 240 |
+
\&\f(CW\*(C`Archive::Tar::File\*(C'\fR objects in list context.
|
| 241 |
+
.ie n .SS "$tar\->contains_file( $filename )"
|
| 242 |
+
.el .SS "\f(CW$tar\fP\->contains_file( \f(CW$filename\fP )"
|
| 243 |
+
.IX Subsection "$tar->contains_file( $filename )"
|
| 244 |
+
Check if the archive contains a certain file.
|
| 245 |
+
It will return true if the file is in the archive, false otherwise.
|
| 246 |
+
.PP
|
| 247 |
+
Note however, that this function does an exact match using \f(CW\*(C`eq\*(C'\fR
|
| 248 |
+
on the full path. So it cannot compensate for case-insensitive file\-
|
| 249 |
+
systems or compare 2 paths to see if they would point to the same
|
| 250 |
+
underlying file.
|
| 251 |
+
.ie n .SS "$tar\->extract( [@filenames] )"
|
| 252 |
+
.el .SS "\f(CW$tar\fP\->extract( [@filenames] )"
|
| 253 |
+
.IX Subsection "$tar->extract( [@filenames] )"
|
| 254 |
+
Write files whose names are equivalent to any of the names in
|
| 255 |
+
\&\f(CW@filenames\fR to disk, creating subdirectories as necessary. This
|
| 256 |
+
might not work too well under \s-1VMS.\s0
|
| 257 |
+
Under MacPerl, the file's modification time will be converted to the
|
| 258 |
+
MacOS zero of time, and appropriate conversions will be done to the
|
| 259 |
+
path. However, the length of each element of the path is not
|
| 260 |
+
inspected to see whether it's longer than MacOS currently allows (32
|
| 261 |
+
characters).
|
| 262 |
+
.PP
|
| 263 |
+
If \f(CW\*(C`extract\*(C'\fR is called without a list of file names, the entire
|
| 264 |
+
contents of the archive are extracted.
|
| 265 |
+
.PP
|
| 266 |
+
Returns a list of filenames extracted.
|
| 267 |
+
.ie n .SS "$tar\->extract_file( $file, [$extract_path] )"
|
| 268 |
+
.el .SS "\f(CW$tar\fP\->extract_file( \f(CW$file\fP, [$extract_path] )"
|
| 269 |
+
.IX Subsection "$tar->extract_file( $file, [$extract_path] )"
|
| 270 |
+
Write an entry, whose name is equivalent to the file name provided to
|
| 271 |
+
disk. Optionally takes a second parameter, which is the full native
|
| 272 |
+
path (including filename) the entry will be written to.
|
| 273 |
+
.PP
|
| 274 |
+
For example:
|
| 275 |
+
.PP
|
| 276 |
+
.Vb 1
|
| 277 |
+
\& $tar\->extract_file( \*(Aqname/in/archive\*(Aq, \*(Aqname/i/want/to/give/it\*(Aq );
|
| 278 |
+
\&
|
| 279 |
+
\& $tar\->extract_file( $at_file_object, \*(Aqname/i/want/to/give/it\*(Aq );
|
| 280 |
+
.Ve
|
| 281 |
+
.PP
|
| 282 |
+
Returns true on success, false on failure.
|
| 283 |
+
.ie n .SS "$tar\->list_files( [\e@properties] )"
|
| 284 |
+
.el .SS "\f(CW$tar\fP\->list_files( [\e@properties] )"
|
| 285 |
+
.IX Subsection "$tar->list_files( [@properties] )"
|
| 286 |
+
Returns a list of the names of all the files in the archive.
|
| 287 |
+
.PP
|
| 288 |
+
If \f(CW\*(C`list_files()\*(C'\fR is passed an array reference as its first argument
|
| 289 |
+
it returns a list of hash references containing the requested
|
| 290 |
+
properties of each file. The following list of properties is
|
| 291 |
+
supported: name, size, mtime (last modified date), mode, uid, gid,
|
| 292 |
+
linkname, uname, gname, devmajor, devminor, prefix.
|
| 293 |
+
.PP
|
| 294 |
+
Passing an array reference containing only one element, 'name', is
|
| 295 |
+
special cased to return a list of names rather than a list of hash
|
| 296 |
+
references, making it equivalent to calling \f(CW\*(C`list_files\*(C'\fR without
|
| 297 |
+
arguments.
|
| 298 |
+
.ie n .SS "$tar\->get_files( [@filenames] )"
|
| 299 |
+
.el .SS "\f(CW$tar\fP\->get_files( [@filenames] )"
|
| 300 |
+
.IX Subsection "$tar->get_files( [@filenames] )"
|
| 301 |
+
Returns the \f(CW\*(C`Archive::Tar::File\*(C'\fR objects matching the filenames
|
| 302 |
+
provided. If no filename list was passed, all \f(CW\*(C`Archive::Tar::File\*(C'\fR
|
| 303 |
+
objects in the current Tar object are returned.
|
| 304 |
+
.PP
|
| 305 |
+
Please refer to the \f(CW\*(C`Archive::Tar::File\*(C'\fR documentation on how to
|
| 306 |
+
handle these objects.
|
| 307 |
+
.ie n .SS "$tar\->get_content( $file )"
|
| 308 |
+
.el .SS "\f(CW$tar\fP\->get_content( \f(CW$file\fP )"
|
| 309 |
+
.IX Subsection "$tar->get_content( $file )"
|
| 310 |
+
Return the content of the named file.
|
| 311 |
+
.ie n .SS "$tar\->replace_content( $file, $content )"
|
| 312 |
+
.el .SS "\f(CW$tar\fP\->replace_content( \f(CW$file\fP, \f(CW$content\fP )"
|
| 313 |
+
.IX Subsection "$tar->replace_content( $file, $content )"
|
| 314 |
+
Make the string \f(CW$content\fR be the content for the file named \f(CW$file\fR.
|
| 315 |
+
.ie n .SS "$tar\->rename( $file, $new_name )"
|
| 316 |
+
.el .SS "\f(CW$tar\fP\->rename( \f(CW$file\fP, \f(CW$new_name\fP )"
|
| 317 |
+
.IX Subsection "$tar->rename( $file, $new_name )"
|
| 318 |
+
Rename the file of the in-memory archive to \f(CW$new_name\fR.
|
| 319 |
+
.PP
|
| 320 |
+
Note that you must specify a Unix path for \f(CW$new_name\fR, since per tar
|
| 321 |
+
standard, all files in the archive must be Unix paths.
|
| 322 |
+
.PP
|
| 323 |
+
Returns true on success and false on failure.
|
| 324 |
+
.ie n .SS "$tar\->chmod( $file, $mode )"
|
| 325 |
+
.el .SS "\f(CW$tar\fP\->chmod( \f(CW$file\fP, \f(CW$mode\fP )"
|
| 326 |
+
.IX Subsection "$tar->chmod( $file, $mode )"
|
| 327 |
+
Change mode of \f(CW$file\fR to \f(CW$mode\fR.
|
| 328 |
+
.PP
|
| 329 |
+
Returns true on success and false on failure.
|
| 330 |
+
.ie n .SS "$tar\->chown( $file, $uname [, $gname] )"
|
| 331 |
+
.el .SS "\f(CW$tar\fP\->chown( \f(CW$file\fP, \f(CW$uname\fP [, \f(CW$gname\fP] )"
|
| 332 |
+
.IX Subsection "$tar->chown( $file, $uname [, $gname] )"
|
| 333 |
+
Change owner \f(CW$file\fR to \f(CW$uname\fR and \f(CW$gname\fR.
|
| 334 |
+
.PP
|
| 335 |
+
Returns true on success and false on failure.
|
| 336 |
+
.ie n .SS "$tar\->remove (@filenamelist)"
|
| 337 |
+
.el .SS "\f(CW$tar\fP\->remove (@filenamelist)"
|
| 338 |
+
.IX Subsection "$tar->remove (@filenamelist)"
|
| 339 |
+
Removes any entries with names matching any of the given filenames
|
| 340 |
+
from the in-memory archive. Returns a list of \f(CW\*(C`Archive::Tar::File\*(C'\fR
|
| 341 |
+
objects that remain.
|
| 342 |
+
.ie n .SS "$tar\->clear"
|
| 343 |
+
.el .SS "\f(CW$tar\fP\->clear"
|
| 344 |
+
.IX Subsection "$tar->clear"
|
| 345 |
+
\&\f(CW\*(C`clear\*(C'\fR clears the current in-memory archive. This effectively gives
|
| 346 |
+
you a 'blank' object, ready to be filled again. Note that \f(CW\*(C`clear\*(C'\fR
|
| 347 |
+
only has effect on the object, not the underlying tarfile.
|
| 348 |
+
.ie n .SS "$tar\->write ( [$file, $compressed, $prefix] )"
|
| 349 |
+
.el .SS "\f(CW$tar\fP\->write ( [$file, \f(CW$compressed\fP, \f(CW$prefix\fP] )"
|
| 350 |
+
.IX Subsection "$tar->write ( [$file, $compressed, $prefix] )"
|
| 351 |
+
Write the in-memory archive to disk. The first argument can either
|
| 352 |
+
be the name of a file or a reference to an already open filehandle (a
|
| 353 |
+
\&\s-1GLOB\s0 reference).
|
| 354 |
+
.PP
|
| 355 |
+
The second argument is used to indicate compression. You can
|
| 356 |
+
compress using \f(CW\*(C`gzip\*(C'\fR, \f(CW\*(C`bzip2\*(C'\fR or \f(CW\*(C`xz\*(C'\fR. If you pass a digit, it's assumed
|
| 357 |
+
to be the \f(CW\*(C`gzip\*(C'\fR compression level (between 1 and 9), but the use of
|
| 358 |
+
constants is preferred:
|
| 359 |
+
.PP
|
| 360 |
+
.Vb 2
|
| 361 |
+
\& # write a gzip compressed file
|
| 362 |
+
\& $tar\->write( \*(Aqout.tgz\*(Aq, COMPRESS_GZIP );
|
| 363 |
+
\&
|
| 364 |
+
\& # write a bzip compressed file
|
| 365 |
+
\& $tar\->write( \*(Aqout.tbz\*(Aq, COMPRESS_BZIP );
|
| 366 |
+
\&
|
| 367 |
+
\& # write a xz compressed file
|
| 368 |
+
\& $tar\->write( \*(Aqout.txz\*(Aq, COMPRESS_XZ );
|
| 369 |
+
.Ve
|
| 370 |
+
.PP
|
| 371 |
+
Note that when you pass in a filehandle, the compression argument
|
| 372 |
+
is ignored, as all files are printed verbatim to your filehandle.
|
| 373 |
+
If you wish to enable compression with filehandles, use an
|
| 374 |
+
\&\f(CW\*(C`IO::Zlib\*(C'\fR, \f(CW\*(C`IO::Compress::Bzip2\*(C'\fR or \f(CW\*(C`IO::Compress::Xz\*(C'\fR filehandle instead.
|
| 375 |
+
.PP
|
| 376 |
+
The third argument is an optional prefix. All files will be tucked
|
| 377 |
+
away in the directory you specify as prefix. So if you have files
|
| 378 |
+
\&'a' and 'b' in your archive, and you specify 'foo' as prefix, they
|
| 379 |
+
will be written to the archive as 'foo/a' and 'foo/b'.
|
| 380 |
+
.PP
|
| 381 |
+
If no arguments are given, \f(CW\*(C`write\*(C'\fR returns the entire formatted
|
| 382 |
+
archive as a string, which could be useful if you'd like to stuff the
|
| 383 |
+
archive into a socket or a pipe to gzip or something.
|
| 384 |
+
.ie n .SS "$tar\->add_files( @filenamelist )"
|
| 385 |
+
.el .SS "\f(CW$tar\fP\->add_files( \f(CW@filenamelist\fP )"
|
| 386 |
+
.IX Subsection "$tar->add_files( @filenamelist )"
|
| 387 |
+
Takes a list of filenames and adds them to the in-memory archive.
|
| 388 |
+
.PP
|
| 389 |
+
The path to the file is automatically converted to a Unix like
|
| 390 |
+
equivalent for use in the archive, and, if on MacOS, the file's
|
| 391 |
+
modification time is converted from the MacOS epoch to the Unix epoch.
|
| 392 |
+
So tar archives created on MacOS with \fBArchive::Tar\fR can be read
|
| 393 |
+
both with \fItar\fR on Unix and applications like \fIsuntar\fR or
|
| 394 |
+
\&\fIStuffit Expander\fR on MacOS.
|
| 395 |
+
.PP
|
| 396 |
+
Be aware that the file's type/creator and resource fork will be lost,
|
| 397 |
+
which is usually what you want in cross-platform archives.
|
| 398 |
+
.PP
|
| 399 |
+
Instead of a filename, you can also pass it an existing \f(CW\*(C`Archive::Tar::File\*(C'\fR
|
| 400 |
+
object from, for example, another archive. The object will be clone, and
|
| 401 |
+
effectively be a copy of the original, not an alias.
|
| 402 |
+
.PP
|
| 403 |
+
Returns a list of \f(CW\*(C`Archive::Tar::File\*(C'\fR objects that were just added.
|
| 404 |
+
.ie n .SS "$tar\->add_data ( $filename, $data, [$opthashref] )"
|
| 405 |
+
.el .SS "\f(CW$tar\fP\->add_data ( \f(CW$filename\fP, \f(CW$data\fP, [$opthashref] )"
|
| 406 |
+
.IX Subsection "$tar->add_data ( $filename, $data, [$opthashref] )"
|
| 407 |
+
Takes a filename, a scalar full of data and optionally a reference to
|
| 408 |
+
a hash with specific options.
|
| 409 |
+
.PP
|
| 410 |
+
Will add a file to the in-memory archive, with name \f(CW$filename\fR and
|
| 411 |
+
content \f(CW$data\fR. Specific properties can be set using \f(CW$opthashref\fR.
|
| 412 |
+
The following list of properties is supported: name, size, mtime
|
| 413 |
+
(last modified date), mode, uid, gid, linkname, uname, gname,
|
| 414 |
+
devmajor, devminor, prefix, type. (On MacOS, the file's path and
|
| 415 |
+
modification times are converted to Unix equivalents.)
|
| 416 |
+
.PP
|
| 417 |
+
Valid values for the file type are the following constants defined by
|
| 418 |
+
Archive::Tar::Constant:
|
| 419 |
+
.IP "\s-1FILE\s0" 4
|
| 420 |
+
.IX Item "FILE"
|
| 421 |
+
Regular file.
|
| 422 |
+
.IP "\s-1HARDLINK\s0" 4
|
| 423 |
+
.IX Item "HARDLINK"
|
| 424 |
+
.PD 0
|
| 425 |
+
.IP "\s-1SYMLINK\s0" 4
|
| 426 |
+
.IX Item "SYMLINK"
|
| 427 |
+
.PD
|
| 428 |
+
Hard and symbolic (\*(L"soft\*(R") links; linkname should specify target.
|
| 429 |
+
.IP "\s-1CHARDEV\s0" 4
|
| 430 |
+
.IX Item "CHARDEV"
|
| 431 |
+
.PD 0
|
| 432 |
+
.IP "\s-1BLOCKDEV\s0" 4
|
| 433 |
+
.IX Item "BLOCKDEV"
|
| 434 |
+
.PD
|
| 435 |
+
Character and block devices. devmajor and devminor should specify the major
|
| 436 |
+
and minor device numbers.
|
| 437 |
+
.IP "\s-1DIR\s0" 4
|
| 438 |
+
.IX Item "DIR"
|
| 439 |
+
Directory.
|
| 440 |
+
.IP "\s-1FIFO\s0" 4
|
| 441 |
+
.IX Item "FIFO"
|
| 442 |
+
\&\s-1FIFO\s0 (named pipe).
|
| 443 |
+
.IP "\s-1SOCKET\s0" 4
|
| 444 |
+
.IX Item "SOCKET"
|
| 445 |
+
Socket.
|
| 446 |
+
.PP
|
| 447 |
+
Returns the \f(CW\*(C`Archive::Tar::File\*(C'\fR object that was just added, or
|
| 448 |
+
\&\f(CW\*(C`undef\*(C'\fR on failure.
|
| 449 |
+
.ie n .SS "$tar\->error( [$BOOL] )"
|
| 450 |
+
.el .SS "\f(CW$tar\fP\->error( [$BOOL] )"
|
| 451 |
+
.IX Subsection "$tar->error( [$BOOL] )"
|
| 452 |
+
Returns the current error string (usually, the last error reported).
|
| 453 |
+
If a true value was specified, it will give the \f(CW\*(C`Carp::longmess\*(C'\fR
|
| 454 |
+
equivalent of the error, in effect giving you a stacktrace.
|
| 455 |
+
.PP
|
| 456 |
+
For backwards compatibility, this error is also available as
|
| 457 |
+
\&\f(CW$Archive::Tar::error\fR although it is much recommended you use the
|
| 458 |
+
method call instead.
|
| 459 |
+
.ie n .SS "$tar\->setcwd( $cwd );"
|
| 460 |
+
.el .SS "\f(CW$tar\fP\->setcwd( \f(CW$cwd\fP );"
|
| 461 |
+
.IX Subsection "$tar->setcwd( $cwd );"
|
| 462 |
+
\&\f(CW\*(C`Archive::Tar\*(C'\fR needs to know the current directory, and it will run
|
| 463 |
+
\&\f(CW\*(C`Cwd::cwd()\*(C'\fR \fIevery\fR time it extracts a \fIrelative\fR entry from the
|
| 464 |
+
tarfile and saves it in the file system. (As of version 1.30, however,
|
| 465 |
+
\&\f(CW\*(C`Archive::Tar\*(C'\fR will use the speed optimization described below
|
| 466 |
+
automatically, so it's only relevant if you're using \f(CW\*(C`extract_file()\*(C'\fR).
|
| 467 |
+
.PP
|
| 468 |
+
Since \f(CW\*(C`Archive::Tar\*(C'\fR doesn't change the current directory internally
|
| 469 |
+
while it is extracting the items in a tarball, all calls to \f(CW\*(C`Cwd::cwd()\*(C'\fR
|
| 470 |
+
can be avoided if we can guarantee that the current directory doesn't
|
| 471 |
+
get changed externally.
|
| 472 |
+
.PP
|
| 473 |
+
To use this performance boost, set the current directory via
|
| 474 |
+
.PP
|
| 475 |
+
.Vb 2
|
| 476 |
+
\& use Cwd;
|
| 477 |
+
\& $tar\->setcwd( cwd() );
|
| 478 |
+
.Ve
|
| 479 |
+
.PP
|
| 480 |
+
once before calling a function like \f(CW\*(C`extract_file\*(C'\fR and
|
| 481 |
+
\&\f(CW\*(C`Archive::Tar\*(C'\fR will use the current directory setting from then on
|
| 482 |
+
and won't call \f(CW\*(C`Cwd::cwd()\*(C'\fR internally.
|
| 483 |
+
.PP
|
| 484 |
+
To switch back to the default behaviour, use
|
| 485 |
+
.PP
|
| 486 |
+
.Vb 1
|
| 487 |
+
\& $tar\->setcwd( undef );
|
| 488 |
+
.Ve
|
| 489 |
+
.PP
|
| 490 |
+
and \f(CW\*(C`Archive::Tar\*(C'\fR will call \f(CW\*(C`Cwd::cwd()\*(C'\fR internally again.
|
| 491 |
+
.PP
|
| 492 |
+
If you're using \f(CW\*(C`Archive::Tar\*(C'\fR's \f(CW\*(C`extract()\*(C'\fR method, \f(CW\*(C`setcwd()\*(C'\fR will
|
| 493 |
+
be called for you.
|
| 494 |
+
.SH "Class Methods"
|
| 495 |
+
.IX Header "Class Methods"
|
| 496 |
+
.ie n .SS "Archive::Tar\->create_archive($file, $compressed, @filelist)"
|
| 497 |
+
.el .SS "Archive::Tar\->create_archive($file, \f(CW$compressed\fP, \f(CW@filelist\fP)"
|
| 498 |
+
.IX Subsection "Archive::Tar->create_archive($file, $compressed, @filelist)"
|
| 499 |
+
Creates a tar file from the list of files provided. The first
|
| 500 |
+
argument can either be the name of the tar file to create or a
|
| 501 |
+
reference to an open file handle (e.g. a \s-1GLOB\s0 reference).
|
| 502 |
+
.PP
|
| 503 |
+
The second argument is used to indicate compression. You can
|
| 504 |
+
compress using \f(CW\*(C`gzip\*(C'\fR, \f(CW\*(C`bzip2\*(C'\fR or \f(CW\*(C`xz\*(C'\fR. If you pass a digit, it's assumed
|
| 505 |
+
to be the \f(CW\*(C`gzip\*(C'\fR compression level (between 1 and 9), but the use of
|
| 506 |
+
constants is preferred:
|
| 507 |
+
.PP
|
| 508 |
+
.Vb 2
|
| 509 |
+
\& # write a gzip compressed file
|
| 510 |
+
\& Archive::Tar\->create_archive( \*(Aqout.tgz\*(Aq, COMPRESS_GZIP, @filelist );
|
| 511 |
+
\&
|
| 512 |
+
\& # write a bzip compressed file
|
| 513 |
+
\& Archive::Tar\->create_archive( \*(Aqout.tbz\*(Aq, COMPRESS_BZIP, @filelist );
|
| 514 |
+
\&
|
| 515 |
+
\& # write a xz compressed file
|
| 516 |
+
\& Archive::Tar\->create_archive( \*(Aqout.txz\*(Aq, COMPRESS_XZ, @filelist );
|
| 517 |
+
.Ve
|
| 518 |
+
.PP
|
| 519 |
+
Note that when you pass in a filehandle, the compression argument
|
| 520 |
+
is ignored, as all files are printed verbatim to your filehandle.
|
| 521 |
+
If you wish to enable compression with filehandles, use an
|
| 522 |
+
\&\f(CW\*(C`IO::Zlib\*(C'\fR, \f(CW\*(C`IO::Compress::Bzip2\*(C'\fR or \f(CW\*(C`IO::Compress::Xz\*(C'\fR filehandle instead.
|
| 523 |
+
.PP
|
| 524 |
+
The remaining arguments list the files to be included in the tar file.
|
| 525 |
+
These files must all exist. Any files which don't exist or can't be
|
| 526 |
+
read are silently ignored.
|
| 527 |
+
.PP
|
| 528 |
+
If the archive creation fails for any reason, \f(CW\*(C`create_archive\*(C'\fR will
|
| 529 |
+
return false. Please use the \f(CW\*(C`error\*(C'\fR method to find the cause of the
|
| 530 |
+
failure.
|
| 531 |
+
.PP
|
| 532 |
+
Note that this method does not write \f(CW\*(C`on the fly\*(C'\fR as it were; it
|
| 533 |
+
still reads all the files into memory before writing out the archive.
|
| 534 |
+
Consult the \s-1FAQ\s0 below if this is a problem.
|
| 535 |
+
.ie n .SS "Archive::Tar\->iter( $filename, [ $compressed, {opt => $val} ] )"
|
| 536 |
+
.el .SS "Archive::Tar\->iter( \f(CW$filename\fP, [ \f(CW$compressed\fP, {opt => \f(CW$val\fP} ] )"
|
| 537 |
+
.IX Subsection "Archive::Tar->iter( $filename, [ $compressed, {opt => $val} ] )"
|
| 538 |
+
Returns an iterator function that reads the tar file without loading
|
| 539 |
+
it all in memory. Each time the function is called it will return the
|
| 540 |
+
next file in the tarball. The files are returned as
|
| 541 |
+
\&\f(CW\*(C`Archive::Tar::File\*(C'\fR objects. The iterator function returns the
|
| 542 |
+
empty list once it has exhausted the files contained.
|
| 543 |
+
.PP
|
| 544 |
+
The second argument can be a hash reference with options, which are
|
| 545 |
+
identical to the arguments passed to \f(CW\*(C`read()\*(C'\fR.
|
| 546 |
+
.PP
|
| 547 |
+
Example usage:
|
| 548 |
+
.PP
|
| 549 |
+
.Vb 1
|
| 550 |
+
\& my $next = Archive::Tar\->iter( "example.tar.gz", 1, {filter => qr/\e.pm$/} );
|
| 551 |
+
\&
|
| 552 |
+
\& while( my $f = $next\->() ) {
|
| 553 |
+
\& print $f\->name, "\en";
|
| 554 |
+
\&
|
| 555 |
+
\& $f\->extract or warn "Extraction failed";
|
| 556 |
+
\&
|
| 557 |
+
\& # ....
|
| 558 |
+
\& }
|
| 559 |
+
.Ve
|
| 560 |
+
.ie n .SS "Archive::Tar\->list_archive($file, $compressed, [\e@properties])"
|
| 561 |
+
.el .SS "Archive::Tar\->list_archive($file, \f(CW$compressed\fP, [\e@properties])"
|
| 562 |
+
.IX Subsection "Archive::Tar->list_archive($file, $compressed, [@properties])"
|
| 563 |
+
Returns a list of the names of all the files in the archive. The
|
| 564 |
+
first argument can either be the name of the tar file to list or a
|
| 565 |
+
reference to an open file handle (e.g. a \s-1GLOB\s0 reference).
|
| 566 |
+
.PP
|
| 567 |
+
If \f(CW\*(C`list_archive()\*(C'\fR is passed an array reference as its third
|
| 568 |
+
argument it returns a list of hash references containing the requested
|
| 569 |
+
properties of each file. The following list of properties is
|
| 570 |
+
supported: full_path, name, size, mtime (last modified date), mode,
|
| 571 |
+
uid, gid, linkname, uname, gname, devmajor, devminor, prefix, type.
|
| 572 |
+
.PP
|
| 573 |
+
See \f(CW\*(C`Archive::Tar::File\*(C'\fR for details about supported properties.
|
| 574 |
+
.PP
|
| 575 |
+
Passing an array reference containing only one element, 'name', is
|
| 576 |
+
special cased to return a list of names rather than a list of hash
|
| 577 |
+
references.
|
| 578 |
+
.ie n .SS "Archive::Tar\->extract_archive($file, $compressed)"
|
| 579 |
+
.el .SS "Archive::Tar\->extract_archive($file, \f(CW$compressed\fP)"
|
| 580 |
+
.IX Subsection "Archive::Tar->extract_archive($file, $compressed)"
|
| 581 |
+
Extracts the contents of the tar file. The first argument can either
|
| 582 |
+
be the name of the tar file to create or a reference to an open file
|
| 583 |
+
handle (e.g. a \s-1GLOB\s0 reference). All relative paths in the tar file will
|
| 584 |
+
be created underneath the current working directory.
|
| 585 |
+
.PP
|
| 586 |
+
\&\f(CW\*(C`extract_archive\*(C'\fR will return a list of files it extracted.
|
| 587 |
+
If the archive extraction fails for any reason, \f(CW\*(C`extract_archive\*(C'\fR
|
| 588 |
+
will return false. Please use the \f(CW\*(C`error\*(C'\fR method to find the cause
|
| 589 |
+
of the failure.
|
| 590 |
+
.ie n .SS "$bool = Archive::Tar\->has_io_string"
|
| 591 |
+
.el .SS "\f(CW$bool\fP = Archive::Tar\->has_io_string"
|
| 592 |
+
.IX Subsection "$bool = Archive::Tar->has_io_string"
|
| 593 |
+
Returns true if we currently have \f(CW\*(C`IO::String\*(C'\fR support loaded.
|
| 594 |
+
.PP
|
| 595 |
+
Either \f(CW\*(C`IO::String\*(C'\fR or \f(CW\*(C`perlio\*(C'\fR support is needed to support writing
|
| 596 |
+
stringified archives. Currently, \f(CW\*(C`perlio\*(C'\fR is the preferred method, if
|
| 597 |
+
available.
|
| 598 |
+
.PP
|
| 599 |
+
See the \f(CW\*(C`GLOBAL VARIABLES\*(C'\fR section to see how to change this preference.
|
| 600 |
+
.ie n .SS "$bool = Archive::Tar\->has_perlio"
|
| 601 |
+
.el .SS "\f(CW$bool\fP = Archive::Tar\->has_perlio"
|
| 602 |
+
.IX Subsection "$bool = Archive::Tar->has_perlio"
|
| 603 |
+
Returns true if we currently have \f(CW\*(C`perlio\*(C'\fR support loaded.
|
| 604 |
+
.PP
|
| 605 |
+
This requires \f(CW\*(C`perl\-5.8\*(C'\fR or higher, compiled with \f(CW\*(C`perlio\*(C'\fR
|
| 606 |
+
.PP
|
| 607 |
+
Either \f(CW\*(C`IO::String\*(C'\fR or \f(CW\*(C`perlio\*(C'\fR support is needed to support writing
|
| 608 |
+
stringified archives. Currently, \f(CW\*(C`perlio\*(C'\fR is the preferred method, if
|
| 609 |
+
available.
|
| 610 |
+
.PP
|
| 611 |
+
See the \f(CW\*(C`GLOBAL VARIABLES\*(C'\fR section to see how to change this preference.
|
| 612 |
+
.ie n .SS "$bool = Archive::Tar\->has_zlib_support"
|
| 613 |
+
.el .SS "\f(CW$bool\fP = Archive::Tar\->has_zlib_support"
|
| 614 |
+
.IX Subsection "$bool = Archive::Tar->has_zlib_support"
|
| 615 |
+
Returns true if \f(CW\*(C`Archive::Tar\*(C'\fR can extract \f(CW\*(C`zlib\*(C'\fR compressed archives
|
| 616 |
+
.ie n .SS "$bool = Archive::Tar\->has_bzip2_support"
|
| 617 |
+
.el .SS "\f(CW$bool\fP = Archive::Tar\->has_bzip2_support"
|
| 618 |
+
.IX Subsection "$bool = Archive::Tar->has_bzip2_support"
|
| 619 |
+
Returns true if \f(CW\*(C`Archive::Tar\*(C'\fR can extract \f(CW\*(C`bzip2\*(C'\fR compressed archives
|
| 620 |
+
.ie n .SS "$bool = Archive::Tar\->has_xz_support"
|
| 621 |
+
.el .SS "\f(CW$bool\fP = Archive::Tar\->has_xz_support"
|
| 622 |
+
.IX Subsection "$bool = Archive::Tar->has_xz_support"
|
| 623 |
+
Returns true if \f(CW\*(C`Archive::Tar\*(C'\fR can extract \f(CW\*(C`xz\*(C'\fR compressed archives
|
| 624 |
+
.SS "Archive::Tar\->can_handle_compressed_files"
|
| 625 |
+
.IX Subsection "Archive::Tar->can_handle_compressed_files"
|
| 626 |
+
A simple checking routine, which will return true if \f(CW\*(C`Archive::Tar\*(C'\fR
|
| 627 |
+
is able to uncompress compressed archives on the fly with \f(CW\*(C`IO::Zlib\*(C'\fR,
|
| 628 |
+
\&\f(CW\*(C`IO::Compress::Bzip2\*(C'\fR and \f(CW\*(C`IO::Compress::Xz\*(C'\fR or false if not both are installed.
|
| 629 |
+
.PP
|
| 630 |
+
You can use this as a shortcut to determine whether \f(CW\*(C`Archive::Tar\*(C'\fR
|
| 631 |
+
will do what you think before passing compressed archives to its
|
| 632 |
+
\&\f(CW\*(C`read\*(C'\fR method.
|
| 633 |
+
.SH "GLOBAL VARIABLES"
|
| 634 |
+
.IX Header "GLOBAL VARIABLES"
|
| 635 |
+
.ie n .SS "$Archive::Tar::FOLLOW_SYMLINK"
|
| 636 |
+
.el .SS "\f(CW$Archive::Tar::FOLLOW_SYMLINK\fP"
|
| 637 |
+
.IX Subsection "$Archive::Tar::FOLLOW_SYMLINK"
|
| 638 |
+
Set this variable to \f(CW1\fR to make \f(CW\*(C`Archive::Tar\*(C'\fR effectively make a
|
| 639 |
+
copy of the file when extracting. Default is \f(CW0\fR, which
|
| 640 |
+
means the symlink stays intact. Of course, you will have to pack the
|
| 641 |
+
file linked to as well.
|
| 642 |
+
.PP
|
| 643 |
+
This option is checked when you write out the tarfile using \f(CW\*(C`write\*(C'\fR
|
| 644 |
+
or \f(CW\*(C`create_archive\*(C'\fR.
|
| 645 |
+
.PP
|
| 646 |
+
This works just like \f(CW\*(C`/bin/tar\*(C'\fR's \f(CW\*(C`\-h\*(C'\fR option.
|
| 647 |
+
.ie n .SS "$Archive::Tar::CHOWN"
|
| 648 |
+
.el .SS "\f(CW$Archive::Tar::CHOWN\fP"
|
| 649 |
+
.IX Subsection "$Archive::Tar::CHOWN"
|
| 650 |
+
By default, \f(CW\*(C`Archive::Tar\*(C'\fR will try to \f(CW\*(C`chown\*(C'\fR your files if it is
|
| 651 |
+
able to. In some cases, this may not be desired. In that case, set
|
| 652 |
+
this variable to \f(CW0\fR to disable \f(CW\*(C`chown\*(C'\fR\-ing, even if it were
|
| 653 |
+
possible.
|
| 654 |
+
.PP
|
| 655 |
+
The default is \f(CW1\fR.
|
| 656 |
+
.ie n .SS "$Archive::Tar::CHMOD"
|
| 657 |
+
.el .SS "\f(CW$Archive::Tar::CHMOD\fP"
|
| 658 |
+
.IX Subsection "$Archive::Tar::CHMOD"
|
| 659 |
+
By default, \f(CW\*(C`Archive::Tar\*(C'\fR will try to \f(CW\*(C`chmod\*(C'\fR your files to
|
| 660 |
+
whatever mode was specified for the particular file in the archive.
|
| 661 |
+
In some cases, this may not be desired. In that case, set this
|
| 662 |
+
variable to \f(CW0\fR to disable \f(CW\*(C`chmod\*(C'\fR\-ing.
|
| 663 |
+
.PP
|
| 664 |
+
The default is \f(CW1\fR.
|
| 665 |
+
.ie n .SS "$Archive::Tar::SAME_PERMISSIONS"
|
| 666 |
+
.el .SS "\f(CW$Archive::Tar::SAME_PERMISSIONS\fP"
|
| 667 |
+
.IX Subsection "$Archive::Tar::SAME_PERMISSIONS"
|
| 668 |
+
When, \f(CW$Archive::Tar::CHMOD\fR is enabled, this setting controls whether
|
| 669 |
+
the permissions on files from the archive are used without modification
|
| 670 |
+
of if they are filtered by removing any setid bits and applying the
|
| 671 |
+
current umask.
|
| 672 |
+
.PP
|
| 673 |
+
The default is \f(CW1\fR for the root user and \f(CW0\fR for normal users.
|
| 674 |
+
.ie n .SS "$Archive::Tar::DO_NOT_USE_PREFIX"
|
| 675 |
+
.el .SS "\f(CW$Archive::Tar::DO_NOT_USE_PREFIX\fP"
|
| 676 |
+
.IX Subsection "$Archive::Tar::DO_NOT_USE_PREFIX"
|
| 677 |
+
By default, \f(CW\*(C`Archive::Tar\*(C'\fR will try to put paths that are over
|
| 678 |
+
100 characters in the \f(CW\*(C`prefix\*(C'\fR field of your tar header, as
|
| 679 |
+
defined per POSIX-standard. However, some (older) tar programs
|
| 680 |
+
do not implement this spec. To retain compatibility with these older
|
| 681 |
+
or non-POSIX compliant versions, you can set the \f(CW$DO_NOT_USE_PREFIX\fR
|
| 682 |
+
variable to a true value, and \f(CW\*(C`Archive::Tar\*(C'\fR will use an alternate
|
| 683 |
+
way of dealing with paths over 100 characters by using the
|
| 684 |
+
\&\f(CW\*(C`GNU Extended Header\*(C'\fR feature.
|
| 685 |
+
.PP
|
| 686 |
+
Note that clients who do not support the \f(CW\*(C`GNU Extended Header\*(C'\fR
|
| 687 |
+
feature will not be able to read these archives. Such clients include
|
| 688 |
+
tars on \f(CW\*(C`Solaris\*(C'\fR, \f(CW\*(C`Irix\*(C'\fR and \f(CW\*(C`AIX\*(C'\fR.
|
| 689 |
+
.PP
|
| 690 |
+
The default is \f(CW0\fR.
|
| 691 |
+
.ie n .SS "$Archive::Tar::DEBUG"
|
| 692 |
+
.el .SS "\f(CW$Archive::Tar::DEBUG\fP"
|
| 693 |
+
.IX Subsection "$Archive::Tar::DEBUG"
|
| 694 |
+
Set this variable to \f(CW1\fR to always get the \f(CW\*(C`Carp::longmess\*(C'\fR output
|
| 695 |
+
of the warnings, instead of the regular \f(CW\*(C`carp\*(C'\fR. This is the same
|
| 696 |
+
message you would get by doing:
|
| 697 |
+
.PP
|
| 698 |
+
.Vb 1
|
| 699 |
+
\& $tar\->error(1);
|
| 700 |
+
.Ve
|
| 701 |
+
.PP
|
| 702 |
+
Defaults to \f(CW0\fR.
|
| 703 |
+
.ie n .SS "$Archive::Tar::WARN"
|
| 704 |
+
.el .SS "\f(CW$Archive::Tar::WARN\fP"
|
| 705 |
+
.IX Subsection "$Archive::Tar::WARN"
|
| 706 |
+
Set this variable to \f(CW0\fR if you do not want any warnings printed.
|
| 707 |
+
Personally I recommend against doing this, but people asked for the
|
| 708 |
+
option. Also, be advised that this is of course not threadsafe.
|
| 709 |
+
.PP
|
| 710 |
+
Defaults to \f(CW1\fR.
|
| 711 |
+
.ie n .SS "$Archive::Tar::error"
|
| 712 |
+
.el .SS "\f(CW$Archive::Tar::error\fP"
|
| 713 |
+
.IX Subsection "$Archive::Tar::error"
|
| 714 |
+
Holds the last reported error. Kept for historical reasons, but its
|
| 715 |
+
use is very much discouraged. Use the \f(CW\*(C`error()\*(C'\fR method instead:
|
| 716 |
+
.PP
|
| 717 |
+
.Vb 1
|
| 718 |
+
\& warn $tar\->error unless $tar\->extract;
|
| 719 |
+
.Ve
|
| 720 |
+
.PP
|
| 721 |
+
Note that in older versions of this module, the \f(CW\*(C`error()\*(C'\fR method
|
| 722 |
+
would return an effectively global value even when called an instance
|
| 723 |
+
method as above. This has since been fixed, and multiple instances of
|
| 724 |
+
\&\f(CW\*(C`Archive::Tar\*(C'\fR now have separate error strings.
|
| 725 |
+
.ie n .SS "$Archive::Tar::INSECURE_EXTRACT_MODE"
|
| 726 |
+
.el .SS "\f(CW$Archive::Tar::INSECURE_EXTRACT_MODE\fP"
|
| 727 |
+
.IX Subsection "$Archive::Tar::INSECURE_EXTRACT_MODE"
|
| 728 |
+
This variable indicates whether \f(CW\*(C`Archive::Tar\*(C'\fR should allow
|
| 729 |
+
files to be extracted outside their current working directory.
|
| 730 |
+
.PP
|
| 731 |
+
Allowing this could have security implications, as a malicious
|
| 732 |
+
tar archive could alter or replace any file the extracting user
|
| 733 |
+
has permissions to. Therefor, the default is to not allow
|
| 734 |
+
insecure extractions.
|
| 735 |
+
.PP
|
| 736 |
+
If you trust the archive, or have other reasons to allow the
|
| 737 |
+
archive to write files outside your current working directory,
|
| 738 |
+
set this variable to \f(CW\*(C`true\*(C'\fR.
|
| 739 |
+
.PP
|
| 740 |
+
Note that this is a backwards incompatible change from version
|
| 741 |
+
\&\f(CW1.36\fR and before.
|
| 742 |
+
.ie n .SS "$Archive::Tar::HAS_PERLIO"
|
| 743 |
+
.el .SS "\f(CW$Archive::Tar::HAS_PERLIO\fP"
|
| 744 |
+
.IX Subsection "$Archive::Tar::HAS_PERLIO"
|
| 745 |
+
This variable holds a boolean indicating if we currently have
|
| 746 |
+
\&\f(CW\*(C`perlio\*(C'\fR support loaded. This will be enabled for any perl
|
| 747 |
+
greater than \f(CW5.8\fR compiled with \f(CW\*(C`perlio\*(C'\fR.
|
| 748 |
+
.PP
|
| 749 |
+
If you feel strongly about disabling it, set this variable to
|
| 750 |
+
\&\f(CW\*(C`false\*(C'\fR. Note that you will then need \f(CW\*(C`IO::String\*(C'\fR installed
|
| 751 |
+
to support writing stringified archives.
|
| 752 |
+
.PP
|
| 753 |
+
Don't change this variable unless you \fBreally\fR know what you're
|
| 754 |
+
doing.
|
| 755 |
+
.ie n .SS "$Archive::Tar::HAS_IO_STRING"
|
| 756 |
+
.el .SS "\f(CW$Archive::Tar::HAS_IO_STRING\fP"
|
| 757 |
+
.IX Subsection "$Archive::Tar::HAS_IO_STRING"
|
| 758 |
+
This variable holds a boolean indicating if we currently have
|
| 759 |
+
\&\f(CW\*(C`IO::String\*(C'\fR support loaded. This will be enabled for any perl
|
| 760 |
+
that has a loadable \f(CW\*(C`IO::String\*(C'\fR module.
|
| 761 |
+
.PP
|
| 762 |
+
If you feel strongly about disabling it, set this variable to
|
| 763 |
+
\&\f(CW\*(C`false\*(C'\fR. Note that you will then need \f(CW\*(C`perlio\*(C'\fR support from
|
| 764 |
+
your perl to be able to write stringified archives.
|
| 765 |
+
.PP
|
| 766 |
+
Don't change this variable unless you \fBreally\fR know what you're
|
| 767 |
+
doing.
|
| 768 |
+
.ie n .SS "$Archive::Tar::ZERO_PAD_NUMBERS"
|
| 769 |
+
.el .SS "\f(CW$Archive::Tar::ZERO_PAD_NUMBERS\fP"
|
| 770 |
+
.IX Subsection "$Archive::Tar::ZERO_PAD_NUMBERS"
|
| 771 |
+
This variable holds a boolean indicating if we will create
|
| 772 |
+
zero padded numbers for \f(CW\*(C`size\*(C'\fR, \f(CW\*(C`mtime\*(C'\fR and \f(CW\*(C`checksum\*(C'\fR.
|
| 773 |
+
The default is \f(CW0\fR, indicating that we will create space padded
|
| 774 |
+
numbers. Added for compatibility with \f(CW\*(C`busybox\*(C'\fR implementations.
|
| 775 |
+
.SS "Tuning the way \s-1RESOLVE_SYMLINK\s0 will works"
|
| 776 |
+
.IX Subsection "Tuning the way RESOLVE_SYMLINK will works"
|
| 777 |
+
.Vb 2
|
| 778 |
+
\& You can tune the behaviour by setting the $Archive::Tar::RESOLVE_SYMLINK variable,
|
| 779 |
+
\& or $ENV{PERL5_AT_RESOLVE_SYMLINK} before loading the module Archive::Tar.
|
| 780 |
+
\&
|
| 781 |
+
\& Values can be one of the following:
|
| 782 |
+
\&
|
| 783 |
+
\& none
|
| 784 |
+
\& Disable this mechanism and failed as it was in previous version (<1.88)
|
| 785 |
+
\&
|
| 786 |
+
\& speed (default)
|
| 787 |
+
\& If you prefer speed
|
| 788 |
+
\& this will read again the whole archive using read() so all entries
|
| 789 |
+
\& will be available
|
| 790 |
+
\&
|
| 791 |
+
\& memory
|
| 792 |
+
\& If you prefer memory
|
| 793 |
+
\&
|
| 794 |
+
\& Limitation
|
| 795 |
+
\&
|
| 796 |
+
\& It won\*(Aqt work for terminal, pipe or sockets or every non seekable source.
|
| 797 |
+
.Ve
|
| 798 |
+
.SH "FAQ"
|
| 799 |
+
.IX Header "FAQ"
|
| 800 |
+
.IP "What's the minimum perl version required to run Archive::Tar?" 4
|
| 801 |
+
.IX Item "What's the minimum perl version required to run Archive::Tar?"
|
| 802 |
+
You will need perl version 5.005_03 or newer.
|
| 803 |
+
.IP "Isn't Archive::Tar slow?" 4
|
| 804 |
+
.IX Item "Isn't Archive::Tar slow?"
|
| 805 |
+
Yes it is. It's pure perl, so it's a lot slower then your \f(CW\*(C`/bin/tar\*(C'\fR
|
| 806 |
+
However, it's very portable. If speed is an issue, consider using
|
| 807 |
+
\&\f(CW\*(C`/bin/tar\*(C'\fR instead.
|
| 808 |
+
.IP "Isn't Archive::Tar heavier on memory than /bin/tar?" 4
|
| 809 |
+
.IX Item "Isn't Archive::Tar heavier on memory than /bin/tar?"
|
| 810 |
+
Yes it is, see previous answer. Since \f(CW\*(C`Compress::Zlib\*(C'\fR and therefore
|
| 811 |
+
\&\f(CW\*(C`IO::Zlib\*(C'\fR doesn't support \f(CW\*(C`seek\*(C'\fR on their filehandles, there is little
|
| 812 |
+
choice but to read the archive into memory.
|
| 813 |
+
This is ok if you want to do in-memory manipulation of the archive.
|
| 814 |
+
.Sp
|
| 815 |
+
If you just want to extract, use the \f(CW\*(C`extract_archive\*(C'\fR class method
|
| 816 |
+
instead. It will optimize and write to disk immediately.
|
| 817 |
+
.Sp
|
| 818 |
+
Another option is to use the \f(CW\*(C`iter\*(C'\fR class method to iterate over
|
| 819 |
+
the files in the tarball without reading them all in memory at once.
|
| 820 |
+
.IP "Can you lazy-load data instead?" 4
|
| 821 |
+
.IX Item "Can you lazy-load data instead?"
|
| 822 |
+
In some cases, yes. You can use the \f(CW\*(C`iter\*(C'\fR class method to iterate
|
| 823 |
+
over the files in the tarball without reading them all in memory at once.
|
| 824 |
+
.IP "How much memory will an X kb tar file need?" 4
|
| 825 |
+
.IX Item "How much memory will an X kb tar file need?"
|
| 826 |
+
Probably more than X kb, since it will all be read into memory. If
|
| 827 |
+
this is a problem, and you don't need to do in memory manipulation
|
| 828 |
+
of the archive, consider using the \f(CW\*(C`iter\*(C'\fR class method, or \f(CW\*(C`/bin/tar\*(C'\fR
|
| 829 |
+
instead.
|
| 830 |
+
.IP "What do you do with unsupported filetypes in an archive?" 4
|
| 831 |
+
.IX Item "What do you do with unsupported filetypes in an archive?"
|
| 832 |
+
\&\f(CW\*(C`Unix\*(C'\fR has a few filetypes that aren't supported on other platforms,
|
| 833 |
+
like \f(CW\*(C`Win32\*(C'\fR. If we encounter a \f(CW\*(C`hardlink\*(C'\fR or \f(CW\*(C`symlink\*(C'\fR we'll just
|
| 834 |
+
try to make a copy of the original file, rather than throwing an error.
|
| 835 |
+
.Sp
|
| 836 |
+
This does require you to read the entire archive in to memory first,
|
| 837 |
+
since otherwise we wouldn't know what data to fill the copy with.
|
| 838 |
+
(This means that you cannot use the class methods, including \f(CW\*(C`iter\*(C'\fR
|
| 839 |
+
on archives that have incompatible filetypes and still expect things
|
| 840 |
+
to work).
|
| 841 |
+
.Sp
|
| 842 |
+
For other filetypes, like \f(CW\*(C`chardevs\*(C'\fR and \f(CW\*(C`blockdevs\*(C'\fR we'll warn that
|
| 843 |
+
the extraction of this particular item didn't work.
|
| 844 |
+
.IP "I'm using WinZip, or some other non-POSIX client, and files are not being extracted properly!" 4
|
| 845 |
+
.IX Item "I'm using WinZip, or some other non-POSIX client, and files are not being extracted properly!"
|
| 846 |
+
By default, \f(CW\*(C`Archive::Tar\*(C'\fR is in a completely POSIX-compatible
|
| 847 |
+
mode, which uses the POSIX-specification of \f(CW\*(C`tar\*(C'\fR to store files.
|
| 848 |
+
For paths greater than 100 characters, this is done using the
|
| 849 |
+
\&\f(CW\*(C`POSIX header prefix\*(C'\fR. Non-POSIX-compatible clients may not support
|
| 850 |
+
this part of the specification, and may only support the \f(CW\*(C`GNU Extended
|
| 851 |
+
Header\*(C'\fR functionality. To facilitate those clients, you can set the
|
| 852 |
+
\&\f(CW$Archive::Tar::DO_NOT_USE_PREFIX\fR variable to \f(CW\*(C`true\*(C'\fR. See the
|
| 853 |
+
\&\f(CW\*(C`GLOBAL VARIABLES\*(C'\fR section for details on this variable.
|
| 854 |
+
.Sp
|
| 855 |
+
Note that \s-1GNU\s0 tar earlier than version 1.14 does not cope well with
|
| 856 |
+
the \f(CW\*(C`POSIX header prefix\*(C'\fR. If you use such a version, consider setting
|
| 857 |
+
the \f(CW$Archive::Tar::DO_NOT_USE_PREFIX\fR variable to \f(CW\*(C`true\*(C'\fR.
|
| 858 |
+
.IP "How do I extract only files that have property X from an archive?" 4
|
| 859 |
+
.IX Item "How do I extract only files that have property X from an archive?"
|
| 860 |
+
Sometimes, you might not wish to extract a complete archive, just
|
| 861 |
+
the files that are relevant to you, based on some criteria.
|
| 862 |
+
.Sp
|
| 863 |
+
You can do this by filtering a list of \f(CW\*(C`Archive::Tar::File\*(C'\fR objects
|
| 864 |
+
based on your criteria. For example, to extract only files that have
|
| 865 |
+
the string \f(CW\*(C`foo\*(C'\fR in their title, you would use:
|
| 866 |
+
.Sp
|
| 867 |
+
.Vb 3
|
| 868 |
+
\& $tar\->extract(
|
| 869 |
+
\& grep { $_\->full_path =~ /foo/ } $tar\->get_files
|
| 870 |
+
\& );
|
| 871 |
+
.Ve
|
| 872 |
+
.Sp
|
| 873 |
+
This way, you can filter on any attribute of the files in the archive.
|
| 874 |
+
Consult the \f(CW\*(C`Archive::Tar::File\*(C'\fR documentation on how to use these
|
| 875 |
+
objects.
|
| 876 |
+
.IP "How do I access .tar.Z files?" 4
|
| 877 |
+
.IX Item "How do I access .tar.Z files?"
|
| 878 |
+
The \f(CW\*(C`Archive::Tar\*(C'\fR module can optionally use \f(CW\*(C`Compress::Zlib\*(C'\fR (via
|
| 879 |
+
the \f(CW\*(C`IO::Zlib\*(C'\fR module) to access tar files that have been compressed
|
| 880 |
+
with \f(CW\*(C`gzip\*(C'\fR. Unfortunately tar files compressed with the Unix \f(CW\*(C`compress\*(C'\fR
|
| 881 |
+
utility cannot be read by \f(CW\*(C`Compress::Zlib\*(C'\fR and so cannot be directly
|
| 882 |
+
accesses by \f(CW\*(C`Archive::Tar\*(C'\fR.
|
| 883 |
+
.Sp
|
| 884 |
+
If the \f(CW\*(C`uncompress\*(C'\fR or \f(CW\*(C`gunzip\*(C'\fR programs are available, you can use
|
| 885 |
+
one of these workarounds to read \f(CW\*(C`.tar.Z\*(C'\fR files from \f(CW\*(C`Archive::Tar\*(C'\fR
|
| 886 |
+
.Sp
|
| 887 |
+
Firstly with \f(CW\*(C`uncompress\*(C'\fR
|
| 888 |
+
.Sp
|
| 889 |
+
.Vb 1
|
| 890 |
+
\& use Archive::Tar;
|
| 891 |
+
\&
|
| 892 |
+
\& open F, "uncompress \-c $filename |";
|
| 893 |
+
\& my $tar = Archive::Tar\->new(*F);
|
| 894 |
+
\& ...
|
| 895 |
+
.Ve
|
| 896 |
+
.Sp
|
| 897 |
+
and this with \f(CW\*(C`gunzip\*(C'\fR
|
| 898 |
+
.Sp
|
| 899 |
+
.Vb 1
|
| 900 |
+
\& use Archive::Tar;
|
| 901 |
+
\&
|
| 902 |
+
\& open F, "gunzip \-c $filename |";
|
| 903 |
+
\& my $tar = Archive::Tar\->new(*F);
|
| 904 |
+
\& ...
|
| 905 |
+
.Ve
|
| 906 |
+
.Sp
|
| 907 |
+
Similarly, if the \f(CW\*(C`compress\*(C'\fR program is available, you can use this to
|
| 908 |
+
write a \f(CW\*(C`.tar.Z\*(C'\fR file
|
| 909 |
+
.Sp
|
| 910 |
+
.Vb 2
|
| 911 |
+
\& use Archive::Tar;
|
| 912 |
+
\& use IO::File;
|
| 913 |
+
\&
|
| 914 |
+
\& my $fh = new IO::File "| compress \-c >$filename";
|
| 915 |
+
\& my $tar = Archive::Tar\->new();
|
| 916 |
+
\& ...
|
| 917 |
+
\& $tar\->write($fh);
|
| 918 |
+
\& $fh\->close ;
|
| 919 |
+
.Ve
|
| 920 |
+
.IP "How do I handle Unicode strings?" 4
|
| 921 |
+
.IX Item "How do I handle Unicode strings?"
|
| 922 |
+
\&\f(CW\*(C`Archive::Tar\*(C'\fR uses byte semantics for any files it reads from or writes
|
| 923 |
+
to disk. This is not a problem if you only deal with files and never
|
| 924 |
+
look at their content or work solely with byte strings. But if you use
|
| 925 |
+
Unicode strings with character semantics, some additional steps need
|
| 926 |
+
to be taken.
|
| 927 |
+
.Sp
|
| 928 |
+
For example, if you add a Unicode string like
|
| 929 |
+
.Sp
|
| 930 |
+
.Vb 2
|
| 931 |
+
\& # Problem
|
| 932 |
+
\& $tar\->add_data(\*(Aqfile.txt\*(Aq, "Euro: \ex{20AC}");
|
| 933 |
+
.Ve
|
| 934 |
+
.Sp
|
| 935 |
+
then there will be a problem later when the tarfile gets written out
|
| 936 |
+
to disk via \f(CW\*(C`$tar\->write()\*(C'\fR:
|
| 937 |
+
.Sp
|
| 938 |
+
.Vb 1
|
| 939 |
+
\& Wide character in print at .../Archive/Tar.pm line 1014.
|
| 940 |
+
.Ve
|
| 941 |
+
.Sp
|
| 942 |
+
The data was added as a Unicode string and when writing it out to disk,
|
| 943 |
+
the \f(CW\*(C`:utf8\*(C'\fR line discipline wasn't set by \f(CW\*(C`Archive::Tar\*(C'\fR, so Perl
|
| 944 |
+
tried to convert the string to \s-1ISO\-8859\s0 and failed. The written file
|
| 945 |
+
now contains garbage.
|
| 946 |
+
.Sp
|
| 947 |
+
For this reason, Unicode strings need to be converted to UTF\-8\-encoded
|
| 948 |
+
bytestrings before they are handed off to \f(CW\*(C`add_data()\*(C'\fR:
|
| 949 |
+
.Sp
|
| 950 |
+
.Vb 3
|
| 951 |
+
\& use Encode;
|
| 952 |
+
\& my $data = "Accented character: \ex{20AC}";
|
| 953 |
+
\& $data = encode(\*(Aqutf8\*(Aq, $data);
|
| 954 |
+
\&
|
| 955 |
+
\& $tar\->add_data(\*(Aqfile.txt\*(Aq, $data);
|
| 956 |
+
.Ve
|
| 957 |
+
.Sp
|
| 958 |
+
A opposite problem occurs if you extract a UTF8\-encoded file from a
|
| 959 |
+
tarball. Using \f(CW\*(C`get_content()\*(C'\fR on the \f(CW\*(C`Archive::Tar::File\*(C'\fR object
|
| 960 |
+
will return its content as a bytestring, not as a Unicode string.
|
| 961 |
+
.Sp
|
| 962 |
+
If you want it to be a Unicode string (because you want character
|
| 963 |
+
semantics with operations like regular expression matching), you need
|
| 964 |
+
to decode the UTF8\-encoded content and have Perl convert it into
|
| 965 |
+
a Unicode string:
|
| 966 |
+
.Sp
|
| 967 |
+
.Vb 2
|
| 968 |
+
\& use Encode;
|
| 969 |
+
\& my $data = $tar\->get_content();
|
| 970 |
+
\&
|
| 971 |
+
\& # Make it a Unicode string
|
| 972 |
+
\& $data = decode(\*(Aqutf8\*(Aq, $data);
|
| 973 |
+
.Ve
|
| 974 |
+
.Sp
|
| 975 |
+
There is no easy way to provide this functionality in \f(CW\*(C`Archive::Tar\*(C'\fR,
|
| 976 |
+
because a tarball can contain many files, and each of which could be
|
| 977 |
+
encoded in a different way.
|
| 978 |
+
.SH "CAVEATS"
|
| 979 |
+
.IX Header "CAVEATS"
|
| 980 |
+
The \s-1AIX\s0 tar does not fill all unused space in the tar archive with 0x00.
|
| 981 |
+
This sometimes leads to warning messages from \f(CW\*(C`Archive::Tar\*(C'\fR.
|
| 982 |
+
.PP
|
| 983 |
+
.Vb 1
|
| 984 |
+
\& Invalid header block at offset nnn
|
| 985 |
+
.Ve
|
| 986 |
+
.PP
|
| 987 |
+
A fix for that problem is scheduled to be released in the following levels
|
| 988 |
+
of \s-1AIX,\s0 all of which should be coming out in the 4th quarter of 2009:
|
| 989 |
+
.PP
|
| 990 |
+
.Vb 4
|
| 991 |
+
\& AIX 5.3 TL7 SP10
|
| 992 |
+
\& AIX 5.3 TL8 SP8
|
| 993 |
+
\& AIX 5.3 TL9 SP5
|
| 994 |
+
\& AIX 5.3 TL10 SP2
|
| 995 |
+
\&
|
| 996 |
+
\& AIX 6.1 TL0 SP11
|
| 997 |
+
\& AIX 6.1 TL1 SP7
|
| 998 |
+
\& AIX 6.1 TL2 SP6
|
| 999 |
+
\& AIX 6.1 TL3 SP3
|
| 1000 |
+
.Ve
|
| 1001 |
+
.PP
|
| 1002 |
+
The \s-1IBM APAR\s0 number for this problem is \s-1IZ50240\s0 (Reported component \s-1ID:
|
| 1003 |
+
5765G0300 / AIX 5.3\s0). It is possible to get an ifix for that problem.
|
| 1004 |
+
If you need an ifix please contact your local \s-1IBM AIX\s0 support.
|
| 1005 |
+
.SH "TODO"
|
| 1006 |
+
.IX Header "TODO"
|
| 1007 |
+
.IP "Check if passed in handles are open for read/write" 4
|
| 1008 |
+
.IX Item "Check if passed in handles are open for read/write"
|
| 1009 |
+
Currently I don't know of any portable pure perl way to do this.
|
| 1010 |
+
Suggestions welcome.
|
| 1011 |
+
.IP "Allow archives to be passed in as string" 4
|
| 1012 |
+
.IX Item "Allow archives to be passed in as string"
|
| 1013 |
+
Currently, we only allow opened filehandles or filenames, but
|
| 1014 |
+
not strings. The internals would need some reworking to facilitate
|
| 1015 |
+
stringified archives.
|
| 1016 |
+
.IP "Facilitate processing an opened filehandle of a compressed archive" 4
|
| 1017 |
+
.IX Item "Facilitate processing an opened filehandle of a compressed archive"
|
| 1018 |
+
Currently, we only support this if the filehandle is an IO::Zlib object.
|
| 1019 |
+
Environments, like apache, will present you with an opened filehandle
|
| 1020 |
+
to an uploaded file, which might be a compressed archive.
|
| 1021 |
+
.SH "SEE ALSO"
|
| 1022 |
+
.IX Header "SEE ALSO"
|
| 1023 |
+
.IP "The \s-1GNU\s0 tar specification" 4
|
| 1024 |
+
.IX Item "The GNU tar specification"
|
| 1025 |
+
\&\f(CW\*(C`http://www.gnu.org/software/tar/manual/tar.html\*(C'\fR
|
| 1026 |
+
.IP "The \s-1PAX\s0 format specification" 4
|
| 1027 |
+
.IX Item "The PAX format specification"
|
| 1028 |
+
The specification which tar derives from; \f(CW\*(C` http://www.opengroup.org/onlinepubs/007904975/utilities/pax.html\*(C'\fR
|
| 1029 |
+
.ie n .IP "A comparison of \s-1GNU\s0 and \s-1POSIX\s0 tar standards; ""http://www.delorie.com/gnu/docs/tar/tar_114.html""" 4
|
| 1030 |
+
.el .IP "A comparison of \s-1GNU\s0 and \s-1POSIX\s0 tar standards; \f(CWhttp://www.delorie.com/gnu/docs/tar/tar_114.html\fR" 4
|
| 1031 |
+
.IX Item "A comparison of GNU and POSIX tar standards; http://www.delorie.com/gnu/docs/tar/tar_114.html"
|
| 1032 |
+
.PD 0
|
| 1033 |
+
.IP "\s-1GNU\s0 tar intends to switch to \s-1POSIX\s0 compatibility" 4
|
| 1034 |
+
.IX Item "GNU tar intends to switch to POSIX compatibility"
|
| 1035 |
+
.PD
|
| 1036 |
+
\&\s-1GNU\s0 Tar authors have expressed their intention to become completely
|
| 1037 |
+
POSIX-compatible; \f(CW\*(C`http://www.gnu.org/software/tar/manual/html_node/Formats.html\*(C'\fR
|
| 1038 |
+
.IP "A Comparison between various tar implementations" 4
|
| 1039 |
+
.IX Item "A Comparison between various tar implementations"
|
| 1040 |
+
Lists known issues and incompatibilities; \f(CW\*(C`http://gd.tuwien.ac.at/utils/archivers/star/README.otherbugs\*(C'\fR
|
| 1041 |
+
.SH "AUTHOR"
|
| 1042 |
+
.IX Header "AUTHOR"
|
| 1043 |
+
This module by Jos Boumans <kane@cpan.org>.
|
| 1044 |
+
.PP
|
| 1045 |
+
Please reports bugs to <bug\-archive\-tar@rt.cpan.org>.
|
| 1046 |
+
.SH "ACKNOWLEDGEMENTS"
|
| 1047 |
+
.IX Header "ACKNOWLEDGEMENTS"
|
| 1048 |
+
Thanks to Sean Burke, Chris Nandor, Chip Salzenberg, Tim Heaney, Gisle Aas,
|
| 1049 |
+
Rainer Tammer and especially Andrew Savige for their help and suggestions.
|
| 1050 |
+
.SH "COPYRIGHT"
|
| 1051 |
+
.IX Header "COPYRIGHT"
|
| 1052 |
+
This module is copyright (c) 2002 \- 2009 Jos Boumans
|
| 1053 |
+
<kane@cpan.org>. All rights reserved.
|
| 1054 |
+
.PP
|
| 1055 |
+
This library is free software; you may redistribute and/or modify
|
| 1056 |
+
it under the same terms as Perl itself.
|
data/miniconda3/man/man3/AutoLoader.3
ADDED
|
@@ -0,0 +1,381 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "AutoLoader 3"
|
| 136 |
+
.TH AutoLoader 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
AutoLoader \- load subroutines only on demand
|
| 143 |
+
.SH "SYNOPSIS"
|
| 144 |
+
.IX Header "SYNOPSIS"
|
| 145 |
+
.Vb 2
|
| 146 |
+
\& package Foo;
|
| 147 |
+
\& use AutoLoader \*(AqAUTOLOAD\*(Aq; # import the default AUTOLOAD subroutine
|
| 148 |
+
\&
|
| 149 |
+
\& package Bar;
|
| 150 |
+
\& use AutoLoader; # don\*(Aqt import AUTOLOAD, define our own
|
| 151 |
+
\& sub AUTOLOAD {
|
| 152 |
+
\& ...
|
| 153 |
+
\& $AutoLoader::AUTOLOAD = "...";
|
| 154 |
+
\& goto &AutoLoader::AUTOLOAD;
|
| 155 |
+
\& }
|
| 156 |
+
.Ve
|
| 157 |
+
.SH "DESCRIPTION"
|
| 158 |
+
.IX Header "DESCRIPTION"
|
| 159 |
+
The \fBAutoLoader\fR module works with the \fBAutoSplit\fR module and the
|
| 160 |
+
\&\f(CW\*(C`_\|_END_\|_\*(C'\fR token to defer the loading of some subroutines until they are
|
| 161 |
+
used rather than loading them all at once.
|
| 162 |
+
.PP
|
| 163 |
+
To use \fBAutoLoader\fR, the author of a module has to place the
|
| 164 |
+
definitions of subroutines to be autoloaded after an \f(CW\*(C`_\|_END_\|_\*(C'\fR token.
|
| 165 |
+
(See perldata.) The \fBAutoSplit\fR module can then be run manually to
|
| 166 |
+
extract the definitions into individual files \fIauto/funcname.al\fR.
|
| 167 |
+
.PP
|
| 168 |
+
\&\fBAutoLoader\fR implements an \s-1AUTOLOAD\s0 subroutine. When an undefined
|
| 169 |
+
subroutine in is called in a client module of \fBAutoLoader\fR,
|
| 170 |
+
\&\fBAutoLoader\fR's \s-1AUTOLOAD\s0 subroutine attempts to locate the subroutine in a
|
| 171 |
+
file with a name related to the location of the file from which the
|
| 172 |
+
client module was read. As an example, if \fI\s-1POSIX\s0.pm\fR is located in
|
| 173 |
+
\&\fI/usr/local/lib/perl5/POSIX.pm\fR, \fBAutoLoader\fR will look for perl
|
| 174 |
+
subroutines \fB\s-1POSIX\s0\fR in \fI/usr/local/lib/perl5/auto/POSIX/*.al\fR, where
|
| 175 |
+
the \f(CW\*(C`.al\*(C'\fR file has the same name as the subroutine, sans package. If
|
| 176 |
+
such a file exists, \s-1AUTOLOAD\s0 will read and evaluate it,
|
| 177 |
+
thus (presumably) defining the needed subroutine. \s-1AUTOLOAD\s0 will then
|
| 178 |
+
\&\f(CW\*(C`goto\*(C'\fR the newly defined subroutine.
|
| 179 |
+
.PP
|
| 180 |
+
Once this process completes for a given function, it is defined, so
|
| 181 |
+
future calls to the subroutine will bypass the \s-1AUTOLOAD\s0 mechanism.
|
| 182 |
+
.SS "Subroutine Stubs"
|
| 183 |
+
.IX Subsection "Subroutine Stubs"
|
| 184 |
+
In order for object method lookup and/or prototype checking to operate
|
| 185 |
+
correctly even when methods have not yet been defined it is necessary to
|
| 186 |
+
\&\*(L"forward declare\*(R" each subroutine (as in \f(CW\*(C`sub NAME;\*(C'\fR). See
|
| 187 |
+
\&\*(L"\s-1SYNOPSIS\*(R"\s0 in perlsub. Such forward declaration creates \*(L"subroutine
|
| 188 |
+
stubs\*(R", which are place holders with no code.
|
| 189 |
+
.PP
|
| 190 |
+
The AutoSplit and \fBAutoLoader\fR modules automate the creation of forward
|
| 191 |
+
declarations. The AutoSplit module creates an 'index' file containing
|
| 192 |
+
forward declarations of all the AutoSplit subroutines. When the
|
| 193 |
+
AutoLoader module is 'use'd it loads these declarations into its callers
|
| 194 |
+
package.
|
| 195 |
+
.PP
|
| 196 |
+
Because of this mechanism it is important that \fBAutoLoader\fR is always
|
| 197 |
+
\&\f(CW\*(C`use\*(C'\fRd and not \f(CW\*(C`require\*(C'\fRd.
|
| 198 |
+
.SS "Using \fBAutoLoader\fP's \s-1AUTOLOAD\s0 Subroutine"
|
| 199 |
+
.IX Subsection "Using AutoLoader's AUTOLOAD Subroutine"
|
| 200 |
+
In order to use \fBAutoLoader\fR's \s-1AUTOLOAD\s0 subroutine you \fImust\fR
|
| 201 |
+
explicitly import it:
|
| 202 |
+
.PP
|
| 203 |
+
.Vb 1
|
| 204 |
+
\& use AutoLoader \*(AqAUTOLOAD\*(Aq;
|
| 205 |
+
.Ve
|
| 206 |
+
.SS "Overriding \fBAutoLoader\fP's \s-1AUTOLOAD\s0 Subroutine"
|
| 207 |
+
.IX Subsection "Overriding AutoLoader's AUTOLOAD Subroutine"
|
| 208 |
+
Some modules, mainly extensions, provide their own \s-1AUTOLOAD\s0 subroutines.
|
| 209 |
+
They typically need to check for some special cases (such as constants)
|
| 210 |
+
and then fallback to \fBAutoLoader\fR's \s-1AUTOLOAD\s0 for the rest.
|
| 211 |
+
.PP
|
| 212 |
+
Such modules should \fInot\fR import \fBAutoLoader\fR's \s-1AUTOLOAD\s0 subroutine.
|
| 213 |
+
Instead, they should define their own \s-1AUTOLOAD\s0 subroutines along these
|
| 214 |
+
lines:
|
| 215 |
+
.PP
|
| 216 |
+
.Vb 2
|
| 217 |
+
\& use AutoLoader;
|
| 218 |
+
\& use Carp;
|
| 219 |
+
\&
|
| 220 |
+
\& sub AUTOLOAD {
|
| 221 |
+
\& my $sub = $AUTOLOAD;
|
| 222 |
+
\& (my $constname = $sub) =~ s/.*:://;
|
| 223 |
+
\& my $val = constant($constname, @_ ? $_[0] : 0);
|
| 224 |
+
\& if ($! != 0) {
|
| 225 |
+
\& if ($! =~ /Invalid/ || $!{EINVAL}) {
|
| 226 |
+
\& $AutoLoader::AUTOLOAD = $sub;
|
| 227 |
+
\& goto &AutoLoader::AUTOLOAD;
|
| 228 |
+
\& }
|
| 229 |
+
\& else {
|
| 230 |
+
\& croak "Your vendor has not defined constant $constname";
|
| 231 |
+
\& }
|
| 232 |
+
\& }
|
| 233 |
+
\& *$sub = sub { $val }; # same as: eval "sub $sub { $val }";
|
| 234 |
+
\& goto &$sub;
|
| 235 |
+
\& }
|
| 236 |
+
.Ve
|
| 237 |
+
.PP
|
| 238 |
+
If any module's own \s-1AUTOLOAD\s0 subroutine has no need to fallback to the
|
| 239 |
+
AutoLoader's \s-1AUTOLOAD\s0 subroutine (because it doesn't have any AutoSplit
|
| 240 |
+
subroutines), then that module should not use \fBAutoLoader\fR at all.
|
| 241 |
+
.SS "Package Lexicals"
|
| 242 |
+
.IX Subsection "Package Lexicals"
|
| 243 |
+
Package lexicals declared with \f(CW\*(C`my\*(C'\fR in the main block of a package
|
| 244 |
+
using \fBAutoLoader\fR will not be visible to auto-loaded subroutines, due to
|
| 245 |
+
the fact that the given scope ends at the \f(CW\*(C`_\|_END_\|_\*(C'\fR marker. A module
|
| 246 |
+
using such variables as package globals will not work properly under the
|
| 247 |
+
\&\fBAutoLoader\fR.
|
| 248 |
+
.PP
|
| 249 |
+
The \f(CW\*(C`vars\*(C'\fR pragma (see \*(L"vars\*(R" in perlmod) may be used in such
|
| 250 |
+
situations as an alternative to explicitly qualifying all globals with
|
| 251 |
+
the package namespace. Variables pre-declared with this pragma will be
|
| 252 |
+
visible to any autoloaded routines (but will not be invisible outside
|
| 253 |
+
the package, unfortunately).
|
| 254 |
+
.SS "Not Using AutoLoader"
|
| 255 |
+
.IX Subsection "Not Using AutoLoader"
|
| 256 |
+
You can stop using AutoLoader by simply
|
| 257 |
+
.PP
|
| 258 |
+
.Vb 1
|
| 259 |
+
\& no AutoLoader;
|
| 260 |
+
.Ve
|
| 261 |
+
.SS "\fBAutoLoader\fP vs. \fBSelfLoader\fP"
|
| 262 |
+
.IX Subsection "AutoLoader vs. SelfLoader"
|
| 263 |
+
The \fBAutoLoader\fR is similar in purpose to \fBSelfLoader\fR: both delay the
|
| 264 |
+
loading of subroutines.
|
| 265 |
+
.PP
|
| 266 |
+
\&\fBSelfLoader\fR uses the \f(CW\*(C`_\|_DATA_\|_\*(C'\fR marker rather than \f(CW\*(C`_\|_END_\|_\*(C'\fR.
|
| 267 |
+
While this avoids the use of a hierarchy of disk files and the
|
| 268 |
+
associated open/close for each routine loaded, \fBSelfLoader\fR suffers a
|
| 269 |
+
startup speed disadvantage in the one-time parsing of the lines after
|
| 270 |
+
\&\f(CW\*(C`_\|_DATA_\|_\*(C'\fR, after which routines are cached. \fBSelfLoader\fR can also
|
| 271 |
+
handle multiple packages in a file.
|
| 272 |
+
.PP
|
| 273 |
+
\&\fBAutoLoader\fR only reads code as it is requested, and in many cases
|
| 274 |
+
should be faster, but requires a mechanism like \fBAutoSplit\fR be used to
|
| 275 |
+
create the individual files. ExtUtils::MakeMaker will invoke
|
| 276 |
+
\&\fBAutoSplit\fR automatically if \fBAutoLoader\fR is used in a module source
|
| 277 |
+
file.
|
| 278 |
+
.SS "Forcing AutoLoader to Load a Function"
|
| 279 |
+
.IX Subsection "Forcing AutoLoader to Load a Function"
|
| 280 |
+
Sometimes, it can be necessary or useful to make sure that a certain
|
| 281 |
+
function is fully loaded by AutoLoader. This is the case, for example,
|
| 282 |
+
when you need to wrap a function to inject debugging code. It is also
|
| 283 |
+
helpful to force early loading of code before forking to make use of
|
| 284 |
+
copy-on-write as much as possible.
|
| 285 |
+
.PP
|
| 286 |
+
Starting with AutoLoader 5.73, you can call the
|
| 287 |
+
\&\f(CW\*(C`AutoLoader::autoload_sub\*(C'\fR function with the fully-qualified name of
|
| 288 |
+
the function to load from its \fI.al\fR file. The behaviour is exactly
|
| 289 |
+
the same as if you called the function, triggering the regular
|
| 290 |
+
\&\f(CW\*(C`AUTOLOAD\*(C'\fR mechanism, but it does not actually execute the
|
| 291 |
+
autoloaded function.
|
| 292 |
+
.SH "CAVEATS"
|
| 293 |
+
.IX Header "CAVEATS"
|
| 294 |
+
AutoLoaders prior to Perl 5.002 had a slightly different interface. Any
|
| 295 |
+
old modules which use \fBAutoLoader\fR should be changed to the new calling
|
| 296 |
+
style. Typically this just means changing a require to a use, adding
|
| 297 |
+
the explicit \f(CW\*(AqAUTOLOAD\*(Aq\fR import if needed, and removing \fBAutoLoader\fR
|
| 298 |
+
from \f(CW@ISA\fR.
|
| 299 |
+
.PP
|
| 300 |
+
On systems with restrictions on file name length, the file corresponding
|
| 301 |
+
to a subroutine may have a shorter name that the routine itself. This
|
| 302 |
+
can lead to conflicting file names. The \fIAutoSplit\fR package warns of
|
| 303 |
+
these potential conflicts when used to split a module.
|
| 304 |
+
.PP
|
| 305 |
+
AutoLoader may fail to find the autosplit files (or even find the wrong
|
| 306 |
+
ones) in cases where \f(CW@INC\fR contains relative paths, \fBand\fR the program
|
| 307 |
+
does \f(CW\*(C`chdir\*(C'\fR.
|
| 308 |
+
.SH "SEE ALSO"
|
| 309 |
+
.IX Header "SEE ALSO"
|
| 310 |
+
SelfLoader \- an autoloader that doesn't use external files.
|
| 311 |
+
.SH "AUTHOR"
|
| 312 |
+
.IX Header "AUTHOR"
|
| 313 |
+
\&\f(CW\*(C`AutoLoader\*(C'\fR is maintained by the perl5\-porters. Please direct
|
| 314 |
+
any questions to the canonical mailing list. Anything that
|
| 315 |
+
is applicable to the \s-1CPAN\s0 release can be sent to its maintainer,
|
| 316 |
+
though.
|
| 317 |
+
.PP
|
| 318 |
+
Author and Maintainer: The Perl5\-Porters <perl5\-porters@perl.org>
|
| 319 |
+
.PP
|
| 320 |
+
Maintainer of the \s-1CPAN\s0 release: Steffen Mueller <smueller@cpan.org>
|
| 321 |
+
.SH "COPYRIGHT AND LICENSE"
|
| 322 |
+
.IX Header "COPYRIGHT AND LICENSE"
|
| 323 |
+
This package has been part of the perl core since the first release
|
| 324 |
+
of perl5. It has been released separately to \s-1CPAN\s0 so older installations
|
| 325 |
+
can benefit from bug fixes.
|
| 326 |
+
.PP
|
| 327 |
+
This package has the same copyright and license as the perl core:
|
| 328 |
+
.PP
|
| 329 |
+
.Vb 4
|
| 330 |
+
\& Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
| 331 |
+
\& 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
|
| 332 |
+
\& 2011, 2012, 2013
|
| 333 |
+
\& by Larry Wall and others
|
| 334 |
+
\&
|
| 335 |
+
\& All rights reserved.
|
| 336 |
+
\&
|
| 337 |
+
\& This program is free software; you can redistribute it and/or modify
|
| 338 |
+
\& it under the terms of either:
|
| 339 |
+
\&
|
| 340 |
+
\& a) the GNU General Public License as published by the Free
|
| 341 |
+
\& Software Foundation; either version 1, or (at your option) any
|
| 342 |
+
\& later version, or
|
| 343 |
+
\&
|
| 344 |
+
\& b) the "Artistic License" which comes with this Kit.
|
| 345 |
+
\&
|
| 346 |
+
\& This program is distributed in the hope that it will be useful,
|
| 347 |
+
\& but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 348 |
+
\& MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See either
|
| 349 |
+
\& the GNU General Public License or the Artistic License for more details.
|
| 350 |
+
\&
|
| 351 |
+
\& You should have received a copy of the Artistic License with this
|
| 352 |
+
\& Kit, in the file named "Artistic". If not, I\*(Aqll be glad to provide one.
|
| 353 |
+
\&
|
| 354 |
+
\& You should also have received a copy of the GNU General Public License
|
| 355 |
+
\& along with this program in the file named "Copying". If not, write to the
|
| 356 |
+
\& Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
|
| 357 |
+
\& MA 02110\-1301, USA or visit their web page on the internet at
|
| 358 |
+
\& http://www.gnu.org/copyleft/gpl.html.
|
| 359 |
+
\&
|
| 360 |
+
\& For those of you that choose to use the GNU General Public License,
|
| 361 |
+
\& my interpretation of the GNU General Public License is that no Perl
|
| 362 |
+
\& script falls under the terms of the GPL unless you explicitly put
|
| 363 |
+
\& said script under the terms of the GPL yourself. Furthermore, any
|
| 364 |
+
\& object code linked with perl does not automatically fall under the
|
| 365 |
+
\& terms of the GPL, provided such object code only adds definitions
|
| 366 |
+
\& of subroutines and variables, and does not otherwise impair the
|
| 367 |
+
\& resulting interpreter from executing any standard Perl script. I
|
| 368 |
+
\& consider linking in C subroutines in this manner to be the moral
|
| 369 |
+
\& equivalent of defining subroutines in the Perl language itself. You
|
| 370 |
+
\& may sell such an object file as proprietary provided that you provide
|
| 371 |
+
\& or offer to provide the Perl source, as specified by the GNU General
|
| 372 |
+
\& Public License. (This is merely an alternate way of specifying input
|
| 373 |
+
\& to the program.) You may also sell a binary produced by the dumping of
|
| 374 |
+
\& a running Perl script that belongs to you, provided that you provide or
|
| 375 |
+
\& offer to provide the Perl source as specified by the GPL. (The
|
| 376 |
+
\& fact that a Perl interpreter and your code are in the same binary file
|
| 377 |
+
\& is, in this case, a form of mere aggregation.) This is my interpretation
|
| 378 |
+
\& of the GPL. If you still have concerns or difficulties understanding
|
| 379 |
+
\& my intent, feel free to contact me. Of course, the Artistic License
|
| 380 |
+
\& spells all this out for your protection, so you may prefer to use that.
|
| 381 |
+
.Ve
|
data/miniconda3/man/man3/AutoSplit.3
ADDED
|
@@ -0,0 +1,320 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "AutoSplit 3"
|
| 136 |
+
.TH AutoSplit 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
AutoSplit \- split a package for autoloading
|
| 143 |
+
.SH "SYNOPSIS"
|
| 144 |
+
.IX Header "SYNOPSIS"
|
| 145 |
+
.Vb 1
|
| 146 |
+
\& autosplit($file, $dir, $keep, $check, $modtime);
|
| 147 |
+
\&
|
| 148 |
+
\& autosplit_lib_modules(@modules);
|
| 149 |
+
.Ve
|
| 150 |
+
.SH "DESCRIPTION"
|
| 151 |
+
.IX Header "DESCRIPTION"
|
| 152 |
+
This function will split up your program into files that the AutoLoader
|
| 153 |
+
module can handle. It is used by both the standard perl libraries and by
|
| 154 |
+
the MakeMaker utility, to automatically configure libraries for autoloading.
|
| 155 |
+
.PP
|
| 156 |
+
The \f(CW\*(C`autosplit\*(C'\fR interface splits the specified file into a hierarchy
|
| 157 |
+
rooted at the directory \f(CW$dir\fR. It creates directories as needed to reflect
|
| 158 |
+
class hierarchy, and creates the file \fIautosplit.ix\fR. This file acts as
|
| 159 |
+
both forward declaration of all package routines, and as timestamp for the
|
| 160 |
+
last update of the hierarchy.
|
| 161 |
+
.PP
|
| 162 |
+
The remaining three arguments to \f(CW\*(C`autosplit\*(C'\fR govern other options to
|
| 163 |
+
the autosplitter.
|
| 164 |
+
.ie n .IP "$keep" 2
|
| 165 |
+
.el .IP "\f(CW$keep\fR" 2
|
| 166 |
+
.IX Item "$keep"
|
| 167 |
+
If the third argument, \fI\f(CI$keep\fI\fR, is false, then any
|
| 168 |
+
pre-existing \f(CW\*(C`*.al\*(C'\fR files in the autoload directory are removed if
|
| 169 |
+
they are no longer part of the module (obsoleted functions).
|
| 170 |
+
\&\f(CW$keep\fR defaults to 0.
|
| 171 |
+
.ie n .IP "$check" 2
|
| 172 |
+
.el .IP "\f(CW$check\fR" 2
|
| 173 |
+
.IX Item "$check"
|
| 174 |
+
The
|
| 175 |
+
fourth argument, \fI\f(CI$check\fI\fR, instructs \f(CW\*(C`autosplit\*(C'\fR to check the module
|
| 176 |
+
currently being split to ensure that it includes a \f(CW\*(C`use\*(C'\fR
|
| 177 |
+
specification for the AutoLoader module, and skips the module if
|
| 178 |
+
AutoLoader is not detected.
|
| 179 |
+
\&\f(CW$check\fR defaults to 1.
|
| 180 |
+
.ie n .IP "$modtime" 2
|
| 181 |
+
.el .IP "\f(CW$modtime\fR" 2
|
| 182 |
+
.IX Item "$modtime"
|
| 183 |
+
Lastly, the \fI\f(CI$modtime\fI\fR argument specifies
|
| 184 |
+
that \f(CW\*(C`autosplit\*(C'\fR is to check the modification time of the module
|
| 185 |
+
against that of the \f(CW\*(C`autosplit.ix\*(C'\fR file, and only split the module if
|
| 186 |
+
it is newer.
|
| 187 |
+
\&\f(CW$modtime\fR defaults to 1.
|
| 188 |
+
.PP
|
| 189 |
+
Typical use of AutoSplit in the perl MakeMaker utility is via the command-line
|
| 190 |
+
with:
|
| 191 |
+
.PP
|
| 192 |
+
.Vb 1
|
| 193 |
+
\& perl \-e \*(Aquse AutoSplit; autosplit($ARGV[0], $ARGV[1], 0, 1, 1)\*(Aq
|
| 194 |
+
.Ve
|
| 195 |
+
.PP
|
| 196 |
+
Defined as a Make macro, it is invoked with file and directory arguments;
|
| 197 |
+
\&\f(CW\*(C`autosplit\*(C'\fR will split the specified file into the specified directory and
|
| 198 |
+
delete obsolete \f(CW\*(C`.al\*(C'\fR files, after checking first that the module does use
|
| 199 |
+
the AutoLoader, and ensuring that the module is not already currently split
|
| 200 |
+
in its current form (the modtime test).
|
| 201 |
+
.PP
|
| 202 |
+
The \f(CW\*(C`autosplit_lib_modules\*(C'\fR form is used in the building of perl. It takes
|
| 203 |
+
as input a list of files (modules) that are assumed to reside in a directory
|
| 204 |
+
\&\fBlib\fR relative to the current directory. Each file is sent to the
|
| 205 |
+
autosplitter one at a time, to be split into the directory \fBlib/auto\fR.
|
| 206 |
+
.PP
|
| 207 |
+
In both usages of the autosplitter, only subroutines defined following the
|
| 208 |
+
perl \fI_\|_END_\|_\fR token are split out into separate files. Some
|
| 209 |
+
routines may be placed prior to this marker to force their immediate loading
|
| 210 |
+
and parsing.
|
| 211 |
+
.SS "Multiple packages"
|
| 212 |
+
.IX Subsection "Multiple packages"
|
| 213 |
+
As of version 1.01 of the AutoSplit module it is possible to have
|
| 214 |
+
multiple packages within a single file. Both of the following cases
|
| 215 |
+
are supported:
|
| 216 |
+
.PP
|
| 217 |
+
.Vb 7
|
| 218 |
+
\& package NAME;
|
| 219 |
+
\& _\|_END_\|_
|
| 220 |
+
\& sub AAA { ... }
|
| 221 |
+
\& package NAME::option1;
|
| 222 |
+
\& sub BBB { ... }
|
| 223 |
+
\& package NAME::option2;
|
| 224 |
+
\& sub BBB { ... }
|
| 225 |
+
\&
|
| 226 |
+
\& package NAME;
|
| 227 |
+
\& _\|_END_\|_
|
| 228 |
+
\& sub AAA { ... }
|
| 229 |
+
\& sub NAME::option1::BBB { ... }
|
| 230 |
+
\& sub NAME::option2::BBB { ... }
|
| 231 |
+
.Ve
|
| 232 |
+
.SH "DIAGNOSTICS"
|
| 233 |
+
.IX Header "DIAGNOSTICS"
|
| 234 |
+
\&\f(CW\*(C`AutoSplit\*(C'\fR will inform the user if it is necessary to create the
|
| 235 |
+
top-level directory specified in the invocation. It is preferred that
|
| 236 |
+
the script or installation process that invokes \f(CW\*(C`AutoSplit\*(C'\fR have
|
| 237 |
+
created the full directory path ahead of time. This warning may
|
| 238 |
+
indicate that the module is being split into an incorrect path.
|
| 239 |
+
.PP
|
| 240 |
+
\&\f(CW\*(C`AutoSplit\*(C'\fR will warn the user of all subroutines whose name causes
|
| 241 |
+
potential file naming conflicts on machines with drastically limited
|
| 242 |
+
(8 characters or less) file name length. Since the subroutine name is
|
| 243 |
+
used as the file name, these warnings can aid in portability to such
|
| 244 |
+
systems.
|
| 245 |
+
.PP
|
| 246 |
+
Warnings are issued and the file skipped if \f(CW\*(C`AutoSplit\*(C'\fR cannot locate
|
| 247 |
+
either the \fI_\|_END_\|_\fR marker or a \*(L"package Name;\*(R"\-style specification.
|
| 248 |
+
.PP
|
| 249 |
+
\&\f(CW\*(C`AutoSplit\*(C'\fR will also emit general diagnostics for inability to
|
| 250 |
+
create directories or files.
|
| 251 |
+
.SH "AUTHOR"
|
| 252 |
+
.IX Header "AUTHOR"
|
| 253 |
+
\&\f(CW\*(C`AutoSplit\*(C'\fR is maintained by the perl5\-porters. Please direct
|
| 254 |
+
any questions to the canonical mailing list. Anything that
|
| 255 |
+
is applicable to the \s-1CPAN\s0 release can be sent to its maintainer,
|
| 256 |
+
though.
|
| 257 |
+
.PP
|
| 258 |
+
Author and Maintainer: The Perl5\-Porters <perl5\-porters@perl.org>
|
| 259 |
+
.PP
|
| 260 |
+
Maintainer of the \s-1CPAN\s0 release: Steffen Mueller <smueller@cpan.org>
|
| 261 |
+
.SH "COPYRIGHT AND LICENSE"
|
| 262 |
+
.IX Header "COPYRIGHT AND LICENSE"
|
| 263 |
+
This package has been part of the perl core since the first release
|
| 264 |
+
of perl5. It has been released separately to \s-1CPAN\s0 so older installations
|
| 265 |
+
can benefit from bug fixes.
|
| 266 |
+
.PP
|
| 267 |
+
This package has the same copyright and license as the perl core:
|
| 268 |
+
.PP
|
| 269 |
+
.Vb 3
|
| 270 |
+
\& Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
| 271 |
+
\& 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
|
| 272 |
+
\& by Larry Wall and others
|
| 273 |
+
\&
|
| 274 |
+
\& All rights reserved.
|
| 275 |
+
\&
|
| 276 |
+
\& This program is free software; you can redistribute it and/or modify
|
| 277 |
+
\& it under the terms of either:
|
| 278 |
+
\&
|
| 279 |
+
\& a) the GNU General Public License as published by the Free
|
| 280 |
+
\& Software Foundation; either version 1, or (at your option) any
|
| 281 |
+
\& later version, or
|
| 282 |
+
\&
|
| 283 |
+
\& b) the "Artistic License" which comes with this Kit.
|
| 284 |
+
\&
|
| 285 |
+
\& This program is distributed in the hope that it will be useful,
|
| 286 |
+
\& but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 287 |
+
\& MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See either
|
| 288 |
+
\& the GNU General Public License or the Artistic License for more details.
|
| 289 |
+
\&
|
| 290 |
+
\& You should have received a copy of the Artistic License with this
|
| 291 |
+
\& Kit, in the file named "Artistic". If not, I\*(Aqll be glad to provide one.
|
| 292 |
+
\&
|
| 293 |
+
\& You should also have received a copy of the GNU General Public License
|
| 294 |
+
\& along with this program in the file named "Copying". If not, write to the
|
| 295 |
+
\& Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
| 296 |
+
\& 02111\-1307, USA or visit their web page on the internet at
|
| 297 |
+
\& http://www.gnu.org/copyleft/gpl.html.
|
| 298 |
+
\&
|
| 299 |
+
\& For those of you that choose to use the GNU General Public License,
|
| 300 |
+
\& my interpretation of the GNU General Public License is that no Perl
|
| 301 |
+
\& script falls under the terms of the GPL unless you explicitly put
|
| 302 |
+
\& said script under the terms of the GPL yourself. Furthermore, any
|
| 303 |
+
\& object code linked with perl does not automatically fall under the
|
| 304 |
+
\& terms of the GPL, provided such object code only adds definitions
|
| 305 |
+
\& of subroutines and variables, and does not otherwise impair the
|
| 306 |
+
\& resulting interpreter from executing any standard Perl script. I
|
| 307 |
+
\& consider linking in C subroutines in this manner to be the moral
|
| 308 |
+
\& equivalent of defining subroutines in the Perl language itself. You
|
| 309 |
+
\& may sell such an object file as proprietary provided that you provide
|
| 310 |
+
\& or offer to provide the Perl source, as specified by the GNU General
|
| 311 |
+
\& Public License. (This is merely an alternate way of specifying input
|
| 312 |
+
\& to the program.) You may also sell a binary produced by the dumping of
|
| 313 |
+
\& a running Perl script that belongs to you, provided that you provide or
|
| 314 |
+
\& offer to provide the Perl source as specified by the GPL. (The
|
| 315 |
+
\& fact that a Perl interpreter and your code are in the same binary file
|
| 316 |
+
\& is, in this case, a form of mere aggregation.) This is my interpretation
|
| 317 |
+
\& of the GPL. If you still have concerns or difficulties understanding
|
| 318 |
+
\& my intent, feel free to contact me. Of course, the Artistic License
|
| 319 |
+
\& spells all this out for your protection, so you may prefer to use that.
|
| 320 |
+
.Ve
|
data/miniconda3/man/man3/B%3A%3AConcise.3
ADDED
|
@@ -0,0 +1,827 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "B::Concise 3"
|
| 136 |
+
.TH B::Concise 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
B::Concise \- Walk Perl syntax tree, printing concise info about ops
|
| 143 |
+
.SH "SYNOPSIS"
|
| 144 |
+
.IX Header "SYNOPSIS"
|
| 145 |
+
.Vb 1
|
| 146 |
+
\& perl \-MO=Concise[,OPTIONS] foo.pl
|
| 147 |
+
\&
|
| 148 |
+
\& use B::Concise qw(set_style add_callback);
|
| 149 |
+
.Ve
|
| 150 |
+
.SH "DESCRIPTION"
|
| 151 |
+
.IX Header "DESCRIPTION"
|
| 152 |
+
This compiler backend prints the internal OPs of a Perl program's syntax
|
| 153 |
+
tree in one of several space-efficient text formats suitable for debugging
|
| 154 |
+
the inner workings of perl or other compiler backends. It can print OPs in
|
| 155 |
+
the order they appear in the \s-1OP\s0 tree, in the order they will execute, or
|
| 156 |
+
in a text approximation to their tree structure, and the format of the
|
| 157 |
+
information displayed is customizable. Its function is similar to that of
|
| 158 |
+
perl's \fB\-Dx\fR debugging flag or the \fBB::Terse\fR module, but it is more
|
| 159 |
+
sophisticated and flexible.
|
| 160 |
+
.SH "EXAMPLE"
|
| 161 |
+
.IX Header "EXAMPLE"
|
| 162 |
+
Here's two outputs (or 'renderings'), using the \-exec and \-basic
|
| 163 |
+
(i.e. default) formatting conventions on the same code snippet.
|
| 164 |
+
.PP
|
| 165 |
+
.Vb 9
|
| 166 |
+
\& % perl \-MO=Concise,\-exec \-e \*(Aq$a = $b + 42\*(Aq
|
| 167 |
+
\& 1 <0> enter
|
| 168 |
+
\& 2 <;> nextstate(main 1 \-e:1) v
|
| 169 |
+
\& 3 <#> gvsv[*b] s
|
| 170 |
+
\& 4 <$> const[IV 42] s
|
| 171 |
+
\& * 5 <2> add[t3] sK/2
|
| 172 |
+
\& 6 <#> gvsv[*a] s
|
| 173 |
+
\& 7 <2> sassign vKS/2
|
| 174 |
+
\& 8 <@> leave[1 ref] vKP/REFC
|
| 175 |
+
.Ve
|
| 176 |
+
.PP
|
| 177 |
+
In this \-exec rendering, each opcode is executed in the order shown.
|
| 178 |
+
The add opcode, marked with '*', is discussed in more detail.
|
| 179 |
+
.PP
|
| 180 |
+
The 1st column is the op's sequence number, starting at 1, and is
|
| 181 |
+
displayed in base 36 by default. Here they're purely linear; the
|
| 182 |
+
sequences are very helpful when looking at code with loops and
|
| 183 |
+
branches.
|
| 184 |
+
.PP
|
| 185 |
+
The symbol between angle brackets indicates the op's type, for
|
| 186 |
+
example; <2> is a \s-1BINOP,\s0 <@> a \s-1LISTOP,\s0 and <#> is a \s-1PADOP,\s0 which is
|
| 187 |
+
used in threaded perls. (see \*(L"\s-1OP\s0 class abbreviations\*(R").
|
| 188 |
+
.PP
|
| 189 |
+
The opname, as in \fB'add[t1]'\fR, may be followed by op-specific
|
| 190 |
+
information in parentheses or brackets (ex \fB'[t1]'\fR).
|
| 191 |
+
.PP
|
| 192 |
+
The op-flags (ex \fB'sK/2'\fR) are described in (\*(L"\s-1OP\s0 flags
|
| 193 |
+
abbreviations\*(R").
|
| 194 |
+
.PP
|
| 195 |
+
.Vb 11
|
| 196 |
+
\& % perl \-MO=Concise \-e \*(Aq$a = $b + 42\*(Aq
|
| 197 |
+
\& 8 <@> leave[1 ref] vKP/REFC \->(end)
|
| 198 |
+
\& 1 <0> enter \->2
|
| 199 |
+
\& 2 <;> nextstate(main 1 \-e:1) v \->3
|
| 200 |
+
\& 7 <2> sassign vKS/2 \->8
|
| 201 |
+
\& * 5 <2> add[t1] sK/2 \->6
|
| 202 |
+
\& \- <1> ex\-rv2sv sK/1 \->4
|
| 203 |
+
\& 3 <$> gvsv(*b) s \->4
|
| 204 |
+
\& 4 <$> const(IV 42) s \->5
|
| 205 |
+
\& \- <1> ex\-rv2sv sKRM*/1 \->7
|
| 206 |
+
\& 6 <$> gvsv(*a) s \->7
|
| 207 |
+
.Ve
|
| 208 |
+
.PP
|
| 209 |
+
The default rendering is top-down, so they're not in execution order.
|
| 210 |
+
This form reflects the way the stack is used to parse and evaluate
|
| 211 |
+
expressions; the add operates on the two terms below it in the tree.
|
| 212 |
+
.PP
|
| 213 |
+
Nullops appear as \f(CW\*(C`ex\-opname\*(C'\fR, where \fIopname\fR is an op that has been
|
| 214 |
+
optimized away by perl. They're displayed with a sequence-number of
|
| 215 |
+
\&'\-', because they are not executed (they don't appear in previous
|
| 216 |
+
example), they're printed here because they reflect the parse.
|
| 217 |
+
.PP
|
| 218 |
+
The arrow points to the sequence number of the next op; they're not
|
| 219 |
+
displayed in \-exec mode, for obvious reasons.
|
| 220 |
+
.PP
|
| 221 |
+
Note that because this rendering was done on a non-threaded perl, the
|
| 222 |
+
PADOPs in the previous examples are now SVOPs, and some (but not all)
|
| 223 |
+
of the square brackets have been replaced by round ones. This is a
|
| 224 |
+
subtle feature to provide some visual distinction between renderings
|
| 225 |
+
on threaded and un-threaded perls.
|
| 226 |
+
.SH "OPTIONS"
|
| 227 |
+
.IX Header "OPTIONS"
|
| 228 |
+
Arguments that don't start with a hyphen are taken to be the names of
|
| 229 |
+
subroutines or formats to render; if no
|
| 230 |
+
such functions are specified, the main
|
| 231 |
+
body of the program (outside any subroutines, and not including use'd
|
| 232 |
+
or require'd files) is rendered. Passing \f(CW\*(C`BEGIN\*(C'\fR, \f(CW\*(C`UNITCHECK\*(C'\fR,
|
| 233 |
+
\&\f(CW\*(C`CHECK\*(C'\fR, \f(CW\*(C`INIT\*(C'\fR, or \f(CW\*(C`END\*(C'\fR will cause all of the corresponding
|
| 234 |
+
special blocks to be printed. Arguments must follow options.
|
| 235 |
+
.PP
|
| 236 |
+
Options affect how things are rendered (ie printed). They're presented
|
| 237 |
+
here by their visual effect, 1st being strongest. They're grouped
|
| 238 |
+
according to how they interrelate; within each group the options are
|
| 239 |
+
mutually exclusive (unless otherwise stated).
|
| 240 |
+
.SS "Options for Opcode Ordering"
|
| 241 |
+
.IX Subsection "Options for Opcode Ordering"
|
| 242 |
+
These options control the 'vertical display' of opcodes. The display
|
| 243 |
+
\&'order' is also called 'mode' elsewhere in this document.
|
| 244 |
+
.IP "\fB\-basic\fR" 4
|
| 245 |
+
.IX Item "-basic"
|
| 246 |
+
Print OPs in the order they appear in the \s-1OP\s0 tree (a preorder
|
| 247 |
+
traversal, starting at the root). The indentation of each \s-1OP\s0 shows its
|
| 248 |
+
level in the tree, and the '\->' at the end of the line indicates the
|
| 249 |
+
next opcode in execution order. This mode is the default, so the flag
|
| 250 |
+
is included simply for completeness.
|
| 251 |
+
.IP "\fB\-exec\fR" 4
|
| 252 |
+
.IX Item "-exec"
|
| 253 |
+
Print OPs in the order they would normally execute (for the majority
|
| 254 |
+
of constructs this is a postorder traversal of the tree, ending at the
|
| 255 |
+
root). In most cases the \s-1OP\s0 that usually follows a given \s-1OP\s0 will
|
| 256 |
+
appear directly below it; alternate paths are shown by indentation. In
|
| 257 |
+
cases like loops when control jumps out of a linear path, a 'goto'
|
| 258 |
+
line is generated.
|
| 259 |
+
.IP "\fB\-tree\fR" 4
|
| 260 |
+
.IX Item "-tree"
|
| 261 |
+
Print OPs in a text approximation of a tree, with the root of the tree
|
| 262 |
+
at the left and 'left\-to\-right' order of children transformed into
|
| 263 |
+
\&'top\-to\-bottom'. Because this mode grows both to the right and down,
|
| 264 |
+
it isn't suitable for large programs (unless you have a very wide
|
| 265 |
+
terminal).
|
| 266 |
+
.SS "Options for Line-Style"
|
| 267 |
+
.IX Subsection "Options for Line-Style"
|
| 268 |
+
These options select the line-style (or just style) used to render
|
| 269 |
+
each opcode, and dictates what info is actually printed into each line.
|
| 270 |
+
.IP "\fB\-concise\fR" 4
|
| 271 |
+
.IX Item "-concise"
|
| 272 |
+
Use the author's favorite set of formatting conventions. This is the
|
| 273 |
+
default, of course.
|
| 274 |
+
.IP "\fB\-terse\fR" 4
|
| 275 |
+
.IX Item "-terse"
|
| 276 |
+
Use formatting conventions that emulate the output of \fBB::Terse\fR. The
|
| 277 |
+
basic mode is almost indistinguishable from the real \fBB::Terse\fR, and the
|
| 278 |
+
exec mode looks very similar, but is in a more logical order and lacks
|
| 279 |
+
curly brackets. \fBB::Terse\fR doesn't have a tree mode, so the tree mode
|
| 280 |
+
is only vaguely reminiscent of \fBB::Terse\fR.
|
| 281 |
+
.IP "\fB\-linenoise\fR" 4
|
| 282 |
+
.IX Item "-linenoise"
|
| 283 |
+
Use formatting conventions in which the name of each \s-1OP,\s0 rather than being
|
| 284 |
+
written out in full, is represented by a one\- or two-character abbreviation.
|
| 285 |
+
This is mainly a joke.
|
| 286 |
+
.IP "\fB\-debug\fR" 4
|
| 287 |
+
.IX Item "-debug"
|
| 288 |
+
Use formatting conventions reminiscent of \s-1CPAN\s0 module \fBB::Debug\fR; these aren't
|
| 289 |
+
very concise at all.
|
| 290 |
+
.IP "\fB\-env\fR" 4
|
| 291 |
+
.IX Item "-env"
|
| 292 |
+
Use formatting conventions read from the environment variables
|
| 293 |
+
\&\f(CW\*(C`B_CONCISE_FORMAT\*(C'\fR, \f(CW\*(C`B_CONCISE_GOTO_FORMAT\*(C'\fR, and \f(CW\*(C`B_CONCISE_TREE_FORMAT\*(C'\fR.
|
| 294 |
+
.SS "Options for tree-specific formatting"
|
| 295 |
+
.IX Subsection "Options for tree-specific formatting"
|
| 296 |
+
.IP "\fB\-compact\fR" 4
|
| 297 |
+
.IX Item "-compact"
|
| 298 |
+
Use a tree format in which the minimum amount of space is used for the
|
| 299 |
+
lines connecting nodes (one character in most cases). This squeezes out
|
| 300 |
+
a few precious columns of screen real estate.
|
| 301 |
+
.IP "\fB\-loose\fR" 4
|
| 302 |
+
.IX Item "-loose"
|
| 303 |
+
Use a tree format that uses longer edges to separate \s-1OP\s0 nodes. This format
|
| 304 |
+
tends to look better than the compact one, especially in \s-1ASCII,\s0 and is
|
| 305 |
+
the default.
|
| 306 |
+
.IP "\fB\-vt\fR" 4
|
| 307 |
+
.IX Item "-vt"
|
| 308 |
+
Use tree connecting characters drawn from the \s-1VT100\s0 line-drawing set.
|
| 309 |
+
This looks better if your terminal supports it.
|
| 310 |
+
.IP "\fB\-ascii\fR" 4
|
| 311 |
+
.IX Item "-ascii"
|
| 312 |
+
Draw the tree with standard \s-1ASCII\s0 characters like \f(CW\*(C`+\*(C'\fR and \f(CW\*(C`|\*(C'\fR. These don't
|
| 313 |
+
look as clean as the \s-1VT100\s0 characters, but they'll work with almost any
|
| 314 |
+
terminal (or the horizontal scrolling mode of \fBless\fR\|(1)) and are suitable
|
| 315 |
+
for text documentation or email. This is the default.
|
| 316 |
+
.PP
|
| 317 |
+
These are pairwise exclusive, i.e. compact or loose, vt or ascii.
|
| 318 |
+
.SS "Options controlling sequence numbering"
|
| 319 |
+
.IX Subsection "Options controlling sequence numbering"
|
| 320 |
+
.IP "\fB\-base\fR\fIn\fR" 4
|
| 321 |
+
.IX Item "-basen"
|
| 322 |
+
Print \s-1OP\s0 sequence numbers in base \fIn\fR. If \fIn\fR is greater than 10, the
|
| 323 |
+
digit for 11 will be 'a', and so on. If \fIn\fR is greater than 36, the digit
|
| 324 |
+
for 37 will be 'A', and so on until 62. Values greater than 62 are not
|
| 325 |
+
currently supported. The default is 36.
|
| 326 |
+
.IP "\fB\-bigendian\fR" 4
|
| 327 |
+
.IX Item "-bigendian"
|
| 328 |
+
Print sequence numbers with the most significant digit first. This is the
|
| 329 |
+
usual convention for Arabic numerals, and the default.
|
| 330 |
+
.IP "\fB\-littleendian\fR" 4
|
| 331 |
+
.IX Item "-littleendian"
|
| 332 |
+
Print sequence numbers with the least significant digit first. This is
|
| 333 |
+
obviously mutually exclusive with bigendian.
|
| 334 |
+
.SS "Other options"
|
| 335 |
+
.IX Subsection "Other options"
|
| 336 |
+
.IP "\fB\-src\fR" 4
|
| 337 |
+
.IX Item "-src"
|
| 338 |
+
With this option, the rendering of each statement (starting with the
|
| 339 |
+
nextstate \s-1OP\s0) will be preceded by the 1st line of source code that
|
| 340 |
+
generates it. For example:
|
| 341 |
+
.Sp
|
| 342 |
+
.Vb 10
|
| 343 |
+
\& 1 <0> enter
|
| 344 |
+
\& # 1: my $i;
|
| 345 |
+
\& 2 <;> nextstate(main 1 junk.pl:1) v:{
|
| 346 |
+
\& 3 <0> padsv[$i:1,10] vM/LVINTRO
|
| 347 |
+
\& # 3: for $i (0..9) {
|
| 348 |
+
\& 4 <;> nextstate(main 3 junk.pl:3) v:{
|
| 349 |
+
\& 5 <0> pushmark s
|
| 350 |
+
\& 6 <$> const[IV 0] s
|
| 351 |
+
\& 7 <$> const[IV 9] s
|
| 352 |
+
\& 8 <{> enteriter(next\->j last\->m redo\->9)[$i:1,10] lKS
|
| 353 |
+
\& k <0> iter s
|
| 354 |
+
\& l <|> and(other\->9) vK/1
|
| 355 |
+
\& # 4: print "line ";
|
| 356 |
+
\& 9 <;> nextstate(main 2 junk.pl:4) v
|
| 357 |
+
\& a <0> pushmark s
|
| 358 |
+
\& b <$> const[PV "line "] s
|
| 359 |
+
\& c <@> print vK
|
| 360 |
+
\& # 5: print "$i\en";
|
| 361 |
+
\& ...
|
| 362 |
+
.Ve
|
| 363 |
+
.ie n .IP "\fB\-stash=""somepackage""\fR" 4
|
| 364 |
+
.el .IP "\fB\-stash=``somepackage''\fR" 4
|
| 365 |
+
.IX Item "-stash=somepackage"
|
| 366 |
+
With this, \*(L"somepackage\*(R" will be required, then the stash is
|
| 367 |
+
inspected, and each function is rendered.
|
| 368 |
+
.PP
|
| 369 |
+
The following options are pairwise exclusive.
|
| 370 |
+
.IP "\fB\-main\fR" 4
|
| 371 |
+
.IX Item "-main"
|
| 372 |
+
Include the main program in the output, even if subroutines were also
|
| 373 |
+
specified. This rendering is normally suppressed when a subroutine
|
| 374 |
+
name or reference is given.
|
| 375 |
+
.IP "\fB\-nomain\fR" 4
|
| 376 |
+
.IX Item "-nomain"
|
| 377 |
+
This restores the default behavior after you've changed it with '\-main'
|
| 378 |
+
(it's not normally needed). If no subroutine name/ref is given, main is
|
| 379 |
+
rendered, regardless of this flag.
|
| 380 |
+
.IP "\fB\-nobanner\fR" 4
|
| 381 |
+
.IX Item "-nobanner"
|
| 382 |
+
Renderings usually include a banner line identifying the function name
|
| 383 |
+
or stringified subref. This suppresses the printing of the banner.
|
| 384 |
+
.Sp
|
| 385 |
+
\&\s-1TBC:\s0 Remove the stringified coderef; while it provides a 'cookie' for
|
| 386 |
+
each function rendered, the cookies used should be 1,2,3.. not a
|
| 387 |
+
random hex-address. It also complicates string comparison of two
|
| 388 |
+
different trees.
|
| 389 |
+
.IP "\fB\-banner\fR" 4
|
| 390 |
+
.IX Item "-banner"
|
| 391 |
+
restores default banner behavior.
|
| 392 |
+
.IP "\fB\-banneris\fR => subref" 4
|
| 393 |
+
.IX Item "-banneris => subref"
|
| 394 |
+
\&\s-1TBC:\s0 a hookpoint (and an option to set it) for a user-supplied
|
| 395 |
+
function to produce a banner appropriate for users needs. It's not
|
| 396 |
+
ideal, because the rendering-state variables, which are a natural
|
| 397 |
+
candidate for use in concise.t, are unavailable to the user.
|
| 398 |
+
.SS "Option Stickiness"
|
| 399 |
+
.IX Subsection "Option Stickiness"
|
| 400 |
+
If you invoke Concise more than once in a program, you should know that
|
| 401 |
+
the options are 'sticky'. This means that the options you provide in
|
| 402 |
+
the first call will be remembered for the 2nd call, unless you
|
| 403 |
+
re-specify or change them.
|
| 404 |
+
.SH "ABBREVIATIONS"
|
| 405 |
+
.IX Header "ABBREVIATIONS"
|
| 406 |
+
The concise style uses symbols to convey maximum info with minimal
|
| 407 |
+
clutter (like hex addresses). With just a little practice, you can
|
| 408 |
+
start to see the flowers, not just the branches, in the trees.
|
| 409 |
+
.SS "\s-1OP\s0 class abbreviations"
|
| 410 |
+
.IX Subsection "OP class abbreviations"
|
| 411 |
+
These symbols appear before the op-name, and indicate the
|
| 412 |
+
B:: namespace that represents the ops in your Perl code.
|
| 413 |
+
.PP
|
| 414 |
+
.Vb 10
|
| 415 |
+
\& 0 OP (aka BASEOP) An OP with no children
|
| 416 |
+
\& 1 UNOP An OP with one child
|
| 417 |
+
\& + UNOP_AUX A UNOP with auxillary fields
|
| 418 |
+
\& 2 BINOP An OP with two children
|
| 419 |
+
\& | LOGOP A control branch OP
|
| 420 |
+
\& @ LISTOP An OP that could have lots of children
|
| 421 |
+
\& / PMOP An OP with a regular expression
|
| 422 |
+
\& $ SVOP An OP with an SV
|
| 423 |
+
\& " PVOP An OP with a string
|
| 424 |
+
\& { LOOP An OP that holds pointers for a loop
|
| 425 |
+
\& ; COP An OP that marks the start of a statement
|
| 426 |
+
\& # PADOP An OP with a GV on the pad
|
| 427 |
+
\& . METHOP An OP with method call info
|
| 428 |
+
.Ve
|
| 429 |
+
.SS "\s-1OP\s0 flags abbreviations"
|
| 430 |
+
.IX Subsection "OP flags abbreviations"
|
| 431 |
+
\&\s-1OP\s0 flags are either public or private. The public flags alter the
|
| 432 |
+
behavior of each opcode in consistent ways, and are represented by 0
|
| 433 |
+
or more single characters.
|
| 434 |
+
.PP
|
| 435 |
+
.Vb 12
|
| 436 |
+
\& v OPf_WANT_VOID Want nothing (void context)
|
| 437 |
+
\& s OPf_WANT_SCALAR Want single value (scalar context)
|
| 438 |
+
\& l OPf_WANT_LIST Want list of any length (list context)
|
| 439 |
+
\& Want is unknown
|
| 440 |
+
\& K OPf_KIDS There is a firstborn child.
|
| 441 |
+
\& P OPf_PARENS This operator was parenthesized.
|
| 442 |
+
\& (Or block needs explicit scope entry.)
|
| 443 |
+
\& R OPf_REF Certified reference.
|
| 444 |
+
\& (Return container, not containee).
|
| 445 |
+
\& M OPf_MOD Will modify (lvalue).
|
| 446 |
+
\& S OPf_STACKED Some arg is arriving on the stack.
|
| 447 |
+
\& * OPf_SPECIAL Do something weird for this op (see op.h)
|
| 448 |
+
.Ve
|
| 449 |
+
.PP
|
| 450 |
+
Private flags, if any are set for an opcode, are displayed after a '/'
|
| 451 |
+
.PP
|
| 452 |
+
.Vb 2
|
| 453 |
+
\& 8 <@> leave[1 ref] vKP/REFC \->(end)
|
| 454 |
+
\& 7 <2> sassign vKS/2 \->8
|
| 455 |
+
.Ve
|
| 456 |
+
.PP
|
| 457 |
+
They're opcode specific, and occur less often than the public ones, so
|
| 458 |
+
they're represented by short mnemonics instead of single-chars; see
|
| 459 |
+
B::Op_private and \fIregen/op_private\fR for more details.
|
| 460 |
+
.SH "FORMATTING SPECIFICATIONS"
|
| 461 |
+
.IX Header "FORMATTING SPECIFICATIONS"
|
| 462 |
+
For each line-style ('concise', 'terse', 'linenoise', etc.) there are
|
| 463 |
+
3 format-specs which control how OPs are rendered.
|
| 464 |
+
.PP
|
| 465 |
+
The first is the 'default' format, which is used in both basic and exec
|
| 466 |
+
modes to print all opcodes. The 2nd, goto-format, is used in exec
|
| 467 |
+
mode when branches are encountered. They're not real opcodes, and are
|
| 468 |
+
inserted to look like a closing curly brace. The tree-format is tree
|
| 469 |
+
specific.
|
| 470 |
+
.PP
|
| 471 |
+
When a line is rendered, the correct format-spec is copied and scanned
|
| 472 |
+
for the following items; data is substituted in, and other
|
| 473 |
+
manipulations like basic indenting are done, for each opcode rendered.
|
| 474 |
+
.PP
|
| 475 |
+
There are 3 kinds of items that may be populated; special patterns,
|
| 476 |
+
#vars, and literal text, which is copied verbatim. (Yes, it's a set
|
| 477 |
+
of s///g steps.)
|
| 478 |
+
.SS "Special Patterns"
|
| 479 |
+
.IX Subsection "Special Patterns"
|
| 480 |
+
These items are the primitives used to perform indenting, and to
|
| 481 |
+
select text from amongst alternatives.
|
| 482 |
+
.IP "\fB(x(\fR\fIexec_text\fR\fB;\fR\fIbasic_text\fR\fB)x)\fR" 4
|
| 483 |
+
.IX Item "(x(exec_text;basic_text)x)"
|
| 484 |
+
Generates \fIexec_text\fR in exec mode, or \fIbasic_text\fR in basic mode.
|
| 485 |
+
.IP "\fB(*(\fR\fItext\fR\fB)*)\fR" 4
|
| 486 |
+
.IX Item "(*(text)*)"
|
| 487 |
+
Generates one copy of \fItext\fR for each indentation level.
|
| 488 |
+
.IP "\fB(*(\fR\fItext1\fR\fB;\fR\fItext2\fR\fB)*)\fR" 4
|
| 489 |
+
.IX Item "(*(text1;text2)*)"
|
| 490 |
+
Generates one fewer copies of \fItext1\fR than the indentation level, followed
|
| 491 |
+
by one copy of \fItext2\fR if the indentation level is more than 0.
|
| 492 |
+
.IP "\fB(?(\fR\fItext1\fR\fB#\fR\fIvar\fR\fIText2\fR\fB)?)\fR" 4
|
| 493 |
+
.IX Item "(?(text1#varText2)?)"
|
| 494 |
+
If the value of \fIvar\fR is true (not empty or zero), generates the
|
| 495 |
+
value of \fIvar\fR surrounded by \fItext1\fR and \fIText2\fR, otherwise
|
| 496 |
+
nothing.
|
| 497 |
+
.IP "\fB~\fR" 4
|
| 498 |
+
.IX Item "~"
|
| 499 |
+
Any number of tildes and surrounding whitespace will be collapsed to
|
| 500 |
+
a single space.
|
| 501 |
+
.SS "# Variables"
|
| 502 |
+
.IX Subsection "# Variables"
|
| 503 |
+
These #vars represent opcode properties that you may want as part of
|
| 504 |
+
your rendering. The '#' is intended as a private sigil; a #var's
|
| 505 |
+
value is interpolated into the style-line, much like \*(L"read \f(CW$this\fR\*(R".
|
| 506 |
+
.PP
|
| 507 |
+
These vars take 3 forms:
|
| 508 |
+
.IP "\fB#\fR\fIvar\fR" 4
|
| 509 |
+
.IX Item "#var"
|
| 510 |
+
A property named 'var' is assumed to exist for the opcodes, and is
|
| 511 |
+
interpolated into the rendering.
|
| 512 |
+
.IP "\fB#\fR\fIvar\fR\fIN\fR" 4
|
| 513 |
+
.IX Item "#varN"
|
| 514 |
+
Generates the value of \fIvar\fR, left justified to fill \fIN\fR spaces.
|
| 515 |
+
Note that this means while you can have properties 'foo' and 'foo2',
|
| 516 |
+
you cannot render 'foo2', but you could with 'foo2a'. You would be
|
| 517 |
+
wise not to rely on this behavior going forward ;\-)
|
| 518 |
+
.IP "\fB#\fR\fIVar\fR" 4
|
| 519 |
+
.IX Item "#Var"
|
| 520 |
+
This ucfirst form of #var generates a tag-value form of itself for
|
| 521 |
+
display; it converts '#Var' into a 'Var => #var' style, which is then
|
| 522 |
+
handled as described above. (Imp-note: #Vars cannot be used for
|
| 523 |
+
conditional-fills, because the => #var transform is done after the check
|
| 524 |
+
for #Var's value).
|
| 525 |
+
.PP
|
| 526 |
+
The following variables are 'defined' by B::Concise; when they are
|
| 527 |
+
used in a style, their respective values are plugged into the
|
| 528 |
+
rendering of each opcode.
|
| 529 |
+
.PP
|
| 530 |
+
Only some of these are used by the standard styles, the others are
|
| 531 |
+
provided for you to delve into optree mechanics, should you wish to
|
| 532 |
+
add a new style (see \*(L"add_style\*(R" below) that uses them. You can
|
| 533 |
+
also add new ones using \*(L"add_callback\*(R".
|
| 534 |
+
.IP "\fB#addr\fR" 4
|
| 535 |
+
.IX Item "#addr"
|
| 536 |
+
The address of the \s-1OP,\s0 in hexadecimal.
|
| 537 |
+
.IP "\fB#arg\fR" 4
|
| 538 |
+
.IX Item "#arg"
|
| 539 |
+
The OP-specific information of the \s-1OP\s0 (such as the \s-1SV\s0 for an \s-1SVOP,\s0 the
|
| 540 |
+
non-local exit pointers for a \s-1LOOP,\s0 etc.) enclosed in parentheses.
|
| 541 |
+
.IP "\fB#class\fR" 4
|
| 542 |
+
.IX Item "#class"
|
| 543 |
+
The B\-determined class of the \s-1OP,\s0 in all caps.
|
| 544 |
+
.IP "\fB#classsym\fR" 4
|
| 545 |
+
.IX Item "#classsym"
|
| 546 |
+
A single symbol abbreviating the class of the \s-1OP.\s0
|
| 547 |
+
.IP "\fB#coplabel\fR" 4
|
| 548 |
+
.IX Item "#coplabel"
|
| 549 |
+
The label of the statement or block the \s-1OP\s0 is the start of, if any.
|
| 550 |
+
.IP "\fB#exname\fR" 4
|
| 551 |
+
.IX Item "#exname"
|
| 552 |
+
The name of the \s-1OP,\s0 or 'ex\-foo' if the \s-1OP\s0 is a null that used to be a foo.
|
| 553 |
+
.IP "\fB#extarg\fR" 4
|
| 554 |
+
.IX Item "#extarg"
|
| 555 |
+
The target of the \s-1OP,\s0 or nothing for a nulled \s-1OP.\s0
|
| 556 |
+
.IP "\fB#firstaddr\fR" 4
|
| 557 |
+
.IX Item "#firstaddr"
|
| 558 |
+
The address of the \s-1OP\s0's first child, in hexadecimal.
|
| 559 |
+
.IP "\fB#flags\fR" 4
|
| 560 |
+
.IX Item "#flags"
|
| 561 |
+
The \s-1OP\s0's flags, abbreviated as a series of symbols.
|
| 562 |
+
.IP "\fB#flagval\fR" 4
|
| 563 |
+
.IX Item "#flagval"
|
| 564 |
+
The numeric value of the \s-1OP\s0's flags.
|
| 565 |
+
.IP "\fB#hints\fR" 4
|
| 566 |
+
.IX Item "#hints"
|
| 567 |
+
The \s-1COP\s0's hint flags, rendered with abbreviated names if possible. An empty
|
| 568 |
+
string if this is not a \s-1COP.\s0 Here are the symbols used:
|
| 569 |
+
.Sp
|
| 570 |
+
.Vb 10
|
| 571 |
+
\& $ strict refs
|
| 572 |
+
\& & strict subs
|
| 573 |
+
\& * strict vars
|
| 574 |
+
\& x$ explicit use/no strict refs
|
| 575 |
+
\& x& explicit use/no strict subs
|
| 576 |
+
\& x* explicit use/no strict vars
|
| 577 |
+
\& i integers
|
| 578 |
+
\& l locale
|
| 579 |
+
\& b bytes
|
| 580 |
+
\& { block scope
|
| 581 |
+
\& % localise %^H
|
| 582 |
+
\& < open in
|
| 583 |
+
\& > open out
|
| 584 |
+
\& I overload int
|
| 585 |
+
\& F overload float
|
| 586 |
+
\& B overload binary
|
| 587 |
+
\& S overload string
|
| 588 |
+
\& R overload re
|
| 589 |
+
\& T taint
|
| 590 |
+
\& E eval
|
| 591 |
+
\& X filetest access
|
| 592 |
+
\& U utf\-8
|
| 593 |
+
\&
|
| 594 |
+
\& us use feature \*(Aqunicode_strings\*(Aq
|
| 595 |
+
\& fea=NNN feature bundle number
|
| 596 |
+
.Ve
|
| 597 |
+
.IP "\fB#hintsval\fR" 4
|
| 598 |
+
.IX Item "#hintsval"
|
| 599 |
+
The numeric value of the \s-1COP\s0's hint flags, or an empty string if this is not
|
| 600 |
+
a \s-1COP.\s0
|
| 601 |
+
.IP "\fB#hyphseq\fR" 4
|
| 602 |
+
.IX Item "#hyphseq"
|
| 603 |
+
The sequence number of the \s-1OP,\s0 or a hyphen if it doesn't have one.
|
| 604 |
+
.IP "\fB#label\fR" 4
|
| 605 |
+
.IX Item "#label"
|
| 606 |
+
\&'\s-1NEXT\s0', '\s-1LAST\s0', or '\s-1REDO\s0' if the \s-1OP\s0 is a target of one of those in exec
|
| 607 |
+
mode, or empty otherwise.
|
| 608 |
+
.IP "\fB#lastaddr\fR" 4
|
| 609 |
+
.IX Item "#lastaddr"
|
| 610 |
+
The address of the \s-1OP\s0's last child, in hexadecimal.
|
| 611 |
+
.IP "\fB#name\fR" 4
|
| 612 |
+
.IX Item "#name"
|
| 613 |
+
The \s-1OP\s0's name.
|
| 614 |
+
.IP "\fB#NAME\fR" 4
|
| 615 |
+
.IX Item "#NAME"
|
| 616 |
+
The \s-1OP\s0's name, in all caps.
|
| 617 |
+
.IP "\fB#next\fR" 4
|
| 618 |
+
.IX Item "#next"
|
| 619 |
+
The sequence number of the \s-1OP\s0's next \s-1OP.\s0
|
| 620 |
+
.IP "\fB#nextaddr\fR" 4
|
| 621 |
+
.IX Item "#nextaddr"
|
| 622 |
+
The address of the \s-1OP\s0's next \s-1OP,\s0 in hexadecimal.
|
| 623 |
+
.IP "\fB#noise\fR" 4
|
| 624 |
+
.IX Item "#noise"
|
| 625 |
+
A one\- or two-character abbreviation for the \s-1OP\s0's name.
|
| 626 |
+
.IP "\fB#private\fR" 4
|
| 627 |
+
.IX Item "#private"
|
| 628 |
+
The \s-1OP\s0's private flags, rendered with abbreviated names if possible.
|
| 629 |
+
.IP "\fB#privval\fR" 4
|
| 630 |
+
.IX Item "#privval"
|
| 631 |
+
The numeric value of the \s-1OP\s0's private flags.
|
| 632 |
+
.IP "\fB#seq\fR" 4
|
| 633 |
+
.IX Item "#seq"
|
| 634 |
+
The sequence number of the \s-1OP.\s0 Note that this is a sequence number
|
| 635 |
+
generated by B::Concise.
|
| 636 |
+
.IP "\fB#opt\fR" 4
|
| 637 |
+
.IX Item "#opt"
|
| 638 |
+
Whether or not the op has been optimized by the peephole optimizer.
|
| 639 |
+
.IP "\fB#sibaddr\fR" 4
|
| 640 |
+
.IX Item "#sibaddr"
|
| 641 |
+
The address of the \s-1OP\s0's next youngest sibling, in hexadecimal.
|
| 642 |
+
.IP "\fB#svaddr\fR" 4
|
| 643 |
+
.IX Item "#svaddr"
|
| 644 |
+
The address of the \s-1OP\s0's \s-1SV,\s0 if it has an \s-1SV,\s0 in hexadecimal.
|
| 645 |
+
.IP "\fB#svclass\fR" 4
|
| 646 |
+
.IX Item "#svclass"
|
| 647 |
+
The class of the \s-1OP\s0's \s-1SV,\s0 if it has one, in all caps (e.g., '\s-1IV\s0').
|
| 648 |
+
.IP "\fB#svval\fR" 4
|
| 649 |
+
.IX Item "#svval"
|
| 650 |
+
The value of the \s-1OP\s0's \s-1SV,\s0 if it has one, in a short human-readable format.
|
| 651 |
+
.IP "\fB#targ\fR" 4
|
| 652 |
+
.IX Item "#targ"
|
| 653 |
+
The numeric value of the \s-1OP\s0's targ.
|
| 654 |
+
.IP "\fB#targarg\fR" 4
|
| 655 |
+
.IX Item "#targarg"
|
| 656 |
+
The name of the variable the \s-1OP\s0's targ refers to, if any, otherwise the
|
| 657 |
+
letter t followed by the \s-1OP\s0's targ in decimal.
|
| 658 |
+
.IP "\fB#targarglife\fR" 4
|
| 659 |
+
.IX Item "#targarglife"
|
| 660 |
+
Same as \fB#targarg\fR, but followed by the \s-1COP\s0 sequence numbers that delimit
|
| 661 |
+
the variable's lifetime (or 'end' for a variable in an open scope) for a
|
| 662 |
+
variable.
|
| 663 |
+
.IP "\fB#typenum\fR" 4
|
| 664 |
+
.IX Item "#typenum"
|
| 665 |
+
The numeric value of the \s-1OP\s0's type, in decimal.
|
| 666 |
+
.SH "One-Liner Command tips"
|
| 667 |
+
.IX Header "One-Liner Command tips"
|
| 668 |
+
.IP "perl \-MO=Concise,bar foo.pl" 4
|
| 669 |
+
.IX Item "perl -MO=Concise,bar foo.pl"
|
| 670 |
+
Renders only \fBbar()\fR from foo.pl. To see main, drop the ',bar'. To see
|
| 671 |
+
both, add ',\-main'
|
| 672 |
+
.IP "perl \-MDigest::MD5=md5 \-MO=Concise,md5 \-e1" 4
|
| 673 |
+
.IX Item "perl -MDigest::MD5=md5 -MO=Concise,md5 -e1"
|
| 674 |
+
Identifies md5 as an \s-1XS\s0 function. The export is needed so that \s-1BC\s0 can
|
| 675 |
+
find it in main.
|
| 676 |
+
.IP "perl \-MPOSIX \-MO=Concise,_POSIX_ARG_MAX \-e1" 4
|
| 677 |
+
.IX Item "perl -MPOSIX -MO=Concise,_POSIX_ARG_MAX -e1"
|
| 678 |
+
Identifies _POSIX_ARG_MAX as a constant sub, optimized to an \s-1IV.\s0
|
| 679 |
+
Although \s-1POSIX\s0 isn't entirely consistent across platforms, this is
|
| 680 |
+
likely to be present in virtually all of them.
|
| 681 |
+
.IP "perl \-MPOSIX \-MO=Concise,a \-e 'print _POSIX_SAVED_IDS'" 4
|
| 682 |
+
.IX Item "perl -MPOSIX -MO=Concise,a -e 'print _POSIX_SAVED_IDS'"
|
| 683 |
+
This renders a print statement, which includes a call to the function.
|
| 684 |
+
It's identical to rendering a file with a use call and that single
|
| 685 |
+
statement, except for the filename which appears in the nextstate ops.
|
| 686 |
+
.IP "perl \-MPOSIX \-MO=Concise,a \-e 'sub a{_POSIX_SAVED_IDS}'" 4
|
| 687 |
+
.IX Item "perl -MPOSIX -MO=Concise,a -e 'sub a{_POSIX_SAVED_IDS}'"
|
| 688 |
+
This is \fBvery\fR similar to previous, only the first two ops differ. This
|
| 689 |
+
subroutine rendering is more representative, insofar as a single main
|
| 690 |
+
program will have many subs.
|
| 691 |
+
.ie n .IP "perl \-MB::Concise \-e 'B::Concise::compile(""\-exec"",""\-src"", \e%B::Concise::)\->()'" 4
|
| 692 |
+
.el .IP "perl \-MB::Concise \-e 'B::Concise::compile(``\-exec'',``\-src'', \e%B::Concise::)\->()'" 4
|
| 693 |
+
.IX Item "perl -MB::Concise -e 'B::Concise::compile(-exec,-src, %B::Concise::)->()'"
|
| 694 |
+
This renders all functions in the B::Concise package with the source
|
| 695 |
+
lines. It eschews the O framework so that the stashref can be passed
|
| 696 |
+
directly to \fBB::Concise::compile()\fR. See \-stash option for a more
|
| 697 |
+
convenient way to render a package.
|
| 698 |
+
.SH "Using B::Concise outside of the O framework"
|
| 699 |
+
.IX Header "Using B::Concise outside of the O framework"
|
| 700 |
+
The common (and original) usage of B::Concise was for command-line
|
| 701 |
+
renderings of simple code, as given in \s-1EXAMPLE.\s0 But you can also use
|
| 702 |
+
\&\fBB::Concise\fR from your code, and call \fBcompile()\fR directly, and
|
| 703 |
+
repeatedly. By doing so, you can avoid the compile-time only
|
| 704 |
+
operation of O.pm, and even use the debugger to step through
|
| 705 |
+
\&\fBB::Concise::compile()\fR itself.
|
| 706 |
+
.PP
|
| 707 |
+
Once you're doing this, you may alter Concise output by adding new
|
| 708 |
+
rendering styles, and by optionally adding callback routines which
|
| 709 |
+
populate new variables, if such were referenced from those (just
|
| 710 |
+
added) styles.
|
| 711 |
+
.SS "Example: Altering Concise Renderings"
|
| 712 |
+
.IX Subsection "Example: Altering Concise Renderings"
|
| 713 |
+
.Vb 9
|
| 714 |
+
\& use B::Concise qw(set_style add_callback);
|
| 715 |
+
\& add_style($yourStyleName => $defaultfmt, $gotofmt, $treefmt);
|
| 716 |
+
\& add_callback
|
| 717 |
+
\& ( sub {
|
| 718 |
+
\& my ($h, $op, $format, $level, $stylename) = @_;
|
| 719 |
+
\& $h\->{variable} = some_func($op);
|
| 720 |
+
\& });
|
| 721 |
+
\& $walker = B::Concise::compile(@options,@subnames,@subrefs);
|
| 722 |
+
\& $walker\->();
|
| 723 |
+
.Ve
|
| 724 |
+
.SS "\fBset_style()\fP"
|
| 725 |
+
.IX Subsection "set_style()"
|
| 726 |
+
\&\fBset_style\fR accepts 3 arguments, and updates the three format-specs
|
| 727 |
+
comprising a line-style (basic-exec, goto, tree). It has one minor
|
| 728 |
+
drawback though; it doesn't register the style under a new name. This
|
| 729 |
+
can become an issue if you render more than once and switch styles.
|
| 730 |
+
Thus you may prefer to use \fBadd_style()\fR and/or \fBset_style_standard()\fR
|
| 731 |
+
instead.
|
| 732 |
+
.SS "set_style_standard($name)"
|
| 733 |
+
.IX Subsection "set_style_standard($name)"
|
| 734 |
+
This restores one of the standard line-styles: \f(CW\*(C`terse\*(C'\fR, \f(CW\*(C`concise\*(C'\fR,
|
| 735 |
+
\&\f(CW\*(C`linenoise\*(C'\fR, \f(CW\*(C`debug\*(C'\fR, \f(CW\*(C`env\*(C'\fR, into effect. It also accepts style
|
| 736 |
+
names previously defined with \fBadd_style()\fR.
|
| 737 |
+
.SS "add_style ()"
|
| 738 |
+
.IX Subsection "add_style ()"
|
| 739 |
+
This subroutine accepts a new style name and three style arguments as
|
| 740 |
+
above, and creates, registers, and selects the newly named style. It is
|
| 741 |
+
an error to re-add a style; call \fBset_style_standard()\fR to switch between
|
| 742 |
+
several styles.
|
| 743 |
+
.SS "add_callback ()"
|
| 744 |
+
.IX Subsection "add_callback ()"
|
| 745 |
+
If your newly minted styles refer to any new #variables, you'll need
|
| 746 |
+
to define a callback subroutine that will populate (or modify) those
|
| 747 |
+
variables. They are then available for use in the style you've
|
| 748 |
+
chosen.
|
| 749 |
+
.PP
|
| 750 |
+
The callbacks are called for each opcode visited by Concise, in the
|
| 751 |
+
same order as they are added. Each subroutine is passed five
|
| 752 |
+
parameters.
|
| 753 |
+
.PP
|
| 754 |
+
.Vb 6
|
| 755 |
+
\& 1. A hashref, containing the variable names and values which are
|
| 756 |
+
\& populated into the report\-line for the op
|
| 757 |
+
\& 2. the op, as a B<B::OP> object
|
| 758 |
+
\& 3. a reference to the format string
|
| 759 |
+
\& 4. the formatting (indent) level
|
| 760 |
+
\& 5. the selected stylename
|
| 761 |
+
.Ve
|
| 762 |
+
.PP
|
| 763 |
+
To define your own variables, simply add them to the hash, or change
|
| 764 |
+
existing values if you need to. The level and format are passed in as
|
| 765 |
+
references to scalars, but it is unlikely that they will need to be
|
| 766 |
+
changed or even used.
|
| 767 |
+
.SS "Running \fBB::Concise::compile()\fP"
|
| 768 |
+
.IX Subsection "Running B::Concise::compile()"
|
| 769 |
+
\&\fBcompile\fR accepts options as described above in \*(L"\s-1OPTIONS\*(R"\s0, and
|
| 770 |
+
arguments, which are either coderefs, or subroutine names.
|
| 771 |
+
.PP
|
| 772 |
+
It constructs and returns a \f(CW$treewalker\fR coderef, which when invoked,
|
| 773 |
+
traverses, or walks, and renders the optrees of the given arguments to
|
| 774 |
+
\&\s-1STDOUT.\s0 You can reuse this, and can change the rendering style used
|
| 775 |
+
each time; thereafter the coderef renders in the new style.
|
| 776 |
+
.PP
|
| 777 |
+
\&\fBwalk_output\fR lets you change the print destination from \s-1STDOUT\s0 to
|
| 778 |
+
another open filehandle, or into a string passed as a ref (unless
|
| 779 |
+
you've built perl with \-Uuseperlio).
|
| 780 |
+
.PP
|
| 781 |
+
.Vb 7
|
| 782 |
+
\& my $walker = B::Concise::compile(\*(Aq\-terse\*(Aq,\*(AqaFuncName\*(Aq, \e&aSubRef); # 1
|
| 783 |
+
\& walk_output(\emy $buf);
|
| 784 |
+
\& $walker\->(); # 1 renders \-terse
|
| 785 |
+
\& set_style_standard(\*(Aqconcise\*(Aq); # 2
|
| 786 |
+
\& $walker\->(); # 2 renders \-concise
|
| 787 |
+
\& $walker\->(@new); # 3 renders whatever
|
| 788 |
+
\& print "3 different renderings: terse, concise, and @new: $buf\en";
|
| 789 |
+
.Ve
|
| 790 |
+
.PP
|
| 791 |
+
When \f(CW$walker\fR is called, it traverses the subroutines supplied when it
|
| 792 |
+
was created, and renders them using the current style. You can change
|
| 793 |
+
the style afterwards in several different ways:
|
| 794 |
+
.PP
|
| 795 |
+
.Vb 3
|
| 796 |
+
\& 1. call C<compile>, altering style or mode/order
|
| 797 |
+
\& 2. call C<set_style_standard>
|
| 798 |
+
\& 3. call $walker, passing @new options
|
| 799 |
+
.Ve
|
| 800 |
+
.PP
|
| 801 |
+
Passing new options to the \f(CW$walker\fR is the easiest way to change
|
| 802 |
+
amongst any pre-defined styles (the ones you add are automatically
|
| 803 |
+
recognized as options), and is the only way to alter rendering order
|
| 804 |
+
without calling compile again. Note however that rendering state is
|
| 805 |
+
still shared amongst multiple \f(CW$walker\fR objects, so they must still be
|
| 806 |
+
used in a coordinated manner.
|
| 807 |
+
.SS "\fBB::Concise::reset_sequence()\fP"
|
| 808 |
+
.IX Subsection "B::Concise::reset_sequence()"
|
| 809 |
+
This function (not exported) lets you reset the sequence numbers (note
|
| 810 |
+
that they're numbered arbitrarily, their goal being to be human
|
| 811 |
+
readable). Its purpose is mostly to support testing, i.e. to compare
|
| 812 |
+
the concise output from two identical anonymous subroutines (but
|
| 813 |
+
different instances). Without the reset, B::Concise, seeing that
|
| 814 |
+
they're separate optrees, generates different sequence numbers in
|
| 815 |
+
the output.
|
| 816 |
+
.SS "Errors"
|
| 817 |
+
.IX Subsection "Errors"
|
| 818 |
+
Errors in rendering (non-existent function-name, non-existent coderef)
|
| 819 |
+
are written to the \s-1STDOUT,\s0 or wherever you've set it via
|
| 820 |
+
\&\fBwalk_output()\fR.
|
| 821 |
+
.PP
|
| 822 |
+
Errors using the various *style* calls, and bad args to \fBwalk_output()\fR,
|
| 823 |
+
result in \fBdie()\fR. Use an eval if you wish to catch these errors and
|
| 824 |
+
continue processing.
|
| 825 |
+
.SH "AUTHOR"
|
| 826 |
+
.IX Header "AUTHOR"
|
| 827 |
+
Stephen McCamant, <smcc@CSUA.Berkeley.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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "B::Deparse 3"
|
| 136 |
+
.TH B::Deparse 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
B::Deparse \- Perl compiler backend to produce perl code
|
| 143 |
+
.SH "SYNOPSIS"
|
| 144 |
+
.IX Header "SYNOPSIS"
|
| 145 |
+
\&\fBperl\fR \fB\-MO=Deparse\fR[\fB,\-d\fR][\fB,\-f\fR\fI\s-1FILE\s0\fR][\fB,\-p\fR][\fB,\-q\fR][\fB,\-l\fR]
|
| 146 |
+
[\fB,\-s\fR\fI\s-1LETTERS\s0\fR][\fB,\-x\fR\fI\s-1LEVEL\s0\fR] \fIprog.pl\fR
|
| 147 |
+
.SH "DESCRIPTION"
|
| 148 |
+
.IX Header "DESCRIPTION"
|
| 149 |
+
B::Deparse is a backend module for the Perl compiler that generates
|
| 150 |
+
perl source code, based on the internal compiled structure that perl
|
| 151 |
+
itself creates after parsing a program. The output of B::Deparse won't
|
| 152 |
+
be exactly the same as the original source, since perl doesn't keep
|
| 153 |
+
track of comments or whitespace, and there isn't a one-to-one
|
| 154 |
+
correspondence between perl's syntactical constructions and their
|
| 155 |
+
compiled form, but it will often be close. When you use the \fB\-p\fR
|
| 156 |
+
option, the output also includes parentheses even when they are not
|
| 157 |
+
required by precedence, which can make it easy to see if perl is
|
| 158 |
+
parsing your expressions the way you intended.
|
| 159 |
+
.PP
|
| 160 |
+
While B::Deparse goes to some lengths to try to figure out what your
|
| 161 |
+
original program was doing, some parts of the language can still trip
|
| 162 |
+
it up; it still fails even on some parts of Perl's own test suite. If
|
| 163 |
+
you encounter a failure other than the most common ones described in
|
| 164 |
+
the \s-1BUGS\s0 section below, you can help contribute to B::Deparse's
|
| 165 |
+
ongoing development by submitting a bug report with a small
|
| 166 |
+
example.
|
| 167 |
+
.SH "OPTIONS"
|
| 168 |
+
.IX Header "OPTIONS"
|
| 169 |
+
As with all compiler backend options, these must follow directly after
|
| 170 |
+
the '\-MO=Deparse', separated by a comma but not any white space.
|
| 171 |
+
.IP "\fB\-d\fR" 4
|
| 172 |
+
.IX Item "-d"
|
| 173 |
+
Output data values (when they appear as constants) using Data::Dumper.
|
| 174 |
+
Without this option, B::Deparse will use some simple routines of its
|
| 175 |
+
own for the same purpose. Currently, Data::Dumper is better for some
|
| 176 |
+
kinds of data (such as complex structures with sharing and
|
| 177 |
+
self-reference) while the built-in routines are better for others
|
| 178 |
+
(such as odd floating-point values).
|
| 179 |
+
.IP "\fB\-f\fR\fI\s-1FILE\s0\fR" 4
|
| 180 |
+
.IX Item "-fFILE"
|
| 181 |
+
Normally, B::Deparse deparses the main code of a program, and all the subs
|
| 182 |
+
defined in the same file. To include subs defined in
|
| 183 |
+
other files, pass the \fB\-f\fR option with the filename.
|
| 184 |
+
You can pass the \fB\-f\fR option several times, to
|
| 185 |
+
include more than one secondary file. (Most of the time you don't want to
|
| 186 |
+
use it at all.) You can also use this option to include subs which are
|
| 187 |
+
defined in the scope of a \fB#line\fR directive with two parameters.
|
| 188 |
+
.IP "\fB\-l\fR" 4
|
| 189 |
+
.IX Item "-l"
|
| 190 |
+
Add '#line' declarations to the output based on the line and file
|
| 191 |
+
locations of the original code.
|
| 192 |
+
.IP "\fB\-p\fR" 4
|
| 193 |
+
.IX Item "-p"
|
| 194 |
+
Print extra parentheses. Without this option, B::Deparse includes
|
| 195 |
+
parentheses in its output only when they are needed, based on the
|
| 196 |
+
structure of your program. With \fB\-p\fR, it uses parentheses (almost)
|
| 197 |
+
whenever they would be legal. This can be useful if you are used to
|
| 198 |
+
\&\s-1LISP,\s0 or if you want to see how perl parses your input. If you say
|
| 199 |
+
.Sp
|
| 200 |
+
.Vb 3
|
| 201 |
+
\& if ($var & 0x7f == 65) {print "Gimme an A!"}
|
| 202 |
+
\& print ($which ? $a : $b), "\en";
|
| 203 |
+
\& $name = $ENV{USER} or "Bob";
|
| 204 |
+
.Ve
|
| 205 |
+
.Sp
|
| 206 |
+
\&\f(CW\*(C`B::Deparse,\-p\*(C'\fR will print
|
| 207 |
+
.Sp
|
| 208 |
+
.Vb 5
|
| 209 |
+
\& if (($var & 0)) {
|
| 210 |
+
\& print(\*(AqGimme an A!\*(Aq)
|
| 211 |
+
\& };
|
| 212 |
+
\& (print(($which ? $a : $b)), \*(Aq???\*(Aq);
|
| 213 |
+
\& (($name = $ENV{\*(AqUSER\*(Aq}) or \*(Aq???\*(Aq)
|
| 214 |
+
.Ve
|
| 215 |
+
.Sp
|
| 216 |
+
which probably isn't what you intended (the \f(CW\*(Aq???\*(Aq\fR is a sign that
|
| 217 |
+
perl optimized away a constant value).
|
| 218 |
+
.IP "\fB\-P\fR" 4
|
| 219 |
+
.IX Item "-P"
|
| 220 |
+
Disable prototype checking. With this option, all function calls are
|
| 221 |
+
deparsed as if no prototype was defined for them. In other words,
|
| 222 |
+
.Sp
|
| 223 |
+
.Vb 1
|
| 224 |
+
\& perl \-MO=Deparse,\-P \-e \*(Aqsub foo (\e@) { 1 } foo @x\*(Aq
|
| 225 |
+
.Ve
|
| 226 |
+
.Sp
|
| 227 |
+
will print
|
| 228 |
+
.Sp
|
| 229 |
+
.Vb 4
|
| 230 |
+
\& sub foo (\e@) {
|
| 231 |
+
\& 1;
|
| 232 |
+
\& }
|
| 233 |
+
\& &foo(\e@x);
|
| 234 |
+
.Ve
|
| 235 |
+
.Sp
|
| 236 |
+
making clear how the parameters are actually passed to \f(CW\*(C`foo\*(C'\fR.
|
| 237 |
+
.IP "\fB\-q\fR" 4
|
| 238 |
+
.IX Item "-q"
|
| 239 |
+
Expand double-quoted strings into the corresponding combinations of
|
| 240 |
+
concatenation, uc, ucfirst, lc, lcfirst, quotemeta, and join. For
|
| 241 |
+
instance, print
|
| 242 |
+
.Sp
|
| 243 |
+
.Vb 1
|
| 244 |
+
\& print "Hello, $world, @ladies, \eu$gentlemen\eE, \eu\eL$me!";
|
| 245 |
+
.Ve
|
| 246 |
+
.Sp
|
| 247 |
+
as
|
| 248 |
+
.Sp
|
| 249 |
+
.Vb 2
|
| 250 |
+
\& print \*(AqHello, \*(Aq . $world . \*(Aq, \*(Aq . join($", @ladies) . \*(Aq, \*(Aq
|
| 251 |
+
\& . ucfirst($gentlemen) . \*(Aq, \*(Aq . ucfirst(lc $me . \*(Aq!\*(Aq);
|
| 252 |
+
.Ve
|
| 253 |
+
.Sp
|
| 254 |
+
Note that the expanded form represents the way perl handles such
|
| 255 |
+
constructions internally \*(-- this option actually turns off the reverse
|
| 256 |
+
translation that B::Deparse usually does. On the other hand, note that
|
| 257 |
+
\&\f(CW\*(C`$x = "$y"\*(C'\fR is not the same as \f(CW\*(C`$x = $y\*(C'\fR: the former makes the value
|
| 258 |
+
of \f(CW$y\fR into a string before doing the assignment.
|
| 259 |
+
.IP "\fB\-s\fR\fI\s-1LETTERS\s0\fR" 4
|
| 260 |
+
.IX Item "-sLETTERS"
|
| 261 |
+
Tweak the style of B::Deparse's output. The letters should follow
|
| 262 |
+
directly after the 's', with no space or punctuation. The following
|
| 263 |
+
options are available:
|
| 264 |
+
.RS 4
|
| 265 |
+
.IP "\fBC\fR" 4
|
| 266 |
+
.IX Item "C"
|
| 267 |
+
Cuddle \f(CW\*(C`elsif\*(C'\fR, \f(CW\*(C`else\*(C'\fR, and \f(CW\*(C`continue\*(C'\fR blocks. For example, print
|
| 268 |
+
.Sp
|
| 269 |
+
.Vb 5
|
| 270 |
+
\& if (...) {
|
| 271 |
+
\& ...
|
| 272 |
+
\& } else {
|
| 273 |
+
\& ...
|
| 274 |
+
\& }
|
| 275 |
+
.Ve
|
| 276 |
+
.Sp
|
| 277 |
+
instead of
|
| 278 |
+
.Sp
|
| 279 |
+
.Vb 6
|
| 280 |
+
\& if (...) {
|
| 281 |
+
\& ...
|
| 282 |
+
\& }
|
| 283 |
+
\& else {
|
| 284 |
+
\& ...
|
| 285 |
+
\& }
|
| 286 |
+
.Ve
|
| 287 |
+
.Sp
|
| 288 |
+
The default is not to cuddle.
|
| 289 |
+
.IP "\fBi\fR\fI\s-1NUMBER\s0\fR" 4
|
| 290 |
+
.IX Item "iNUMBER"
|
| 291 |
+
Indent lines by multiples of \fI\s-1NUMBER\s0\fR columns. The default is 4 columns.
|
| 292 |
+
.IP "\fBT\fR" 4
|
| 293 |
+
.IX Item "T"
|
| 294 |
+
Use tabs for each 8 columns of indent. The default is to use only spaces.
|
| 295 |
+
For instance, if the style options are \fB\-si4T\fR, a line that's indented
|
| 296 |
+
3 times will be preceded by one tab and four spaces; if the options were
|
| 297 |
+
\&\fB\-si8T\fR, the same line would be preceded by three tabs.
|
| 298 |
+
.IP "\fBv\fR\fI\s-1STRING\s0\fR\fB.\fR" 4
|
| 299 |
+
.IX Item "vSTRING."
|
| 300 |
+
Print \fI\s-1STRING\s0\fR for the value of a constant that can't be determined
|
| 301 |
+
because it was optimized away (mnemonic: this happens when a constant
|
| 302 |
+
is used in \fBv\fRoid context). The end of the string is marked by a period.
|
| 303 |
+
The string should be a valid perl expression, generally a constant.
|
| 304 |
+
Note that unless it's a number, it probably needs to be quoted, and on
|
| 305 |
+
a command line quotes need to be protected from the shell. Some
|
| 306 |
+
conventional values include 0, 1, 42, '', 'foo', and
|
| 307 |
+
\&'Useless use of constant omitted' (which may need to be
|
| 308 |
+
\&\fB\-sv\*(L"'Useless use of constant omitted'.\*(R"\fR
|
| 309 |
+
or something similar depending on your shell). The default is '???'.
|
| 310 |
+
If you're using B::Deparse on a module or other file that's require'd,
|
| 311 |
+
you shouldn't use a value that evaluates to false, since the customary
|
| 312 |
+
true constant at the end of a module will be in void context when the
|
| 313 |
+
file is compiled as a main program.
|
| 314 |
+
.RE
|
| 315 |
+
.RS 4
|
| 316 |
+
.RE
|
| 317 |
+
.IP "\fB\-x\fR\fI\s-1LEVEL\s0\fR" 4
|
| 318 |
+
.IX Item "-xLEVEL"
|
| 319 |
+
Expand conventional syntax constructions into equivalent ones that expose
|
| 320 |
+
their internal operation. \fI\s-1LEVEL\s0\fR should be a digit, with higher values
|
| 321 |
+
meaning more expansion. As with \fB\-q\fR, this actually involves turning off
|
| 322 |
+
special cases in B::Deparse's normal operations.
|
| 323 |
+
.Sp
|
| 324 |
+
If \fI\s-1LEVEL\s0\fR is at least 3, \f(CW\*(C`for\*(C'\fR loops will be translated into equivalent
|
| 325 |
+
while loops with continue blocks; for instance
|
| 326 |
+
.Sp
|
| 327 |
+
.Vb 3
|
| 328 |
+
\& for ($i = 0; $i < 10; ++$i) {
|
| 329 |
+
\& print $i;
|
| 330 |
+
\& }
|
| 331 |
+
.Ve
|
| 332 |
+
.Sp
|
| 333 |
+
turns into
|
| 334 |
+
.Sp
|
| 335 |
+
.Vb 6
|
| 336 |
+
\& $i = 0;
|
| 337 |
+
\& while ($i < 10) {
|
| 338 |
+
\& print $i;
|
| 339 |
+
\& } continue {
|
| 340 |
+
\& ++$i
|
| 341 |
+
\& }
|
| 342 |
+
.Ve
|
| 343 |
+
.Sp
|
| 344 |
+
Note that in a few cases this translation can't be perfectly carried back
|
| 345 |
+
into the source code \*(-- if the loop's initializer declares a my variable,
|
| 346 |
+
for instance, it won't have the correct scope outside of the loop.
|
| 347 |
+
.Sp
|
| 348 |
+
If \fI\s-1LEVEL\s0\fR is at least 5, \f(CW\*(C`use\*(C'\fR declarations will be translated into
|
| 349 |
+
\&\f(CW\*(C`BEGIN\*(C'\fR blocks containing calls to \f(CW\*(C`require\*(C'\fR and \f(CW\*(C`import\*(C'\fR; for
|
| 350 |
+
instance,
|
| 351 |
+
.Sp
|
| 352 |
+
.Vb 1
|
| 353 |
+
\& use strict \*(Aqrefs\*(Aq;
|
| 354 |
+
.Ve
|
| 355 |
+
.Sp
|
| 356 |
+
turns into
|
| 357 |
+
.Sp
|
| 358 |
+
.Vb 6
|
| 359 |
+
\& sub BEGIN {
|
| 360 |
+
\& require strict;
|
| 361 |
+
\& do {
|
| 362 |
+
\& \*(Aqstrict\*(Aq\->import(\*(Aqrefs\*(Aq)
|
| 363 |
+
\& };
|
| 364 |
+
\& }
|
| 365 |
+
.Ve
|
| 366 |
+
.Sp
|
| 367 |
+
If \fI\s-1LEVEL\s0\fR is at least 7, \f(CW\*(C`if\*(C'\fR statements will be translated into
|
| 368 |
+
equivalent expressions using \f(CW\*(C`&&\*(C'\fR, \f(CW\*(C`?:\*(C'\fR and \f(CW\*(C`do {}\*(C'\fR; for instance
|
| 369 |
+
.Sp
|
| 370 |
+
.Vb 9
|
| 371 |
+
\& print \*(Aqhi\*(Aq if $nice;
|
| 372 |
+
\& if ($nice) {
|
| 373 |
+
\& print \*(Aqhi\*(Aq;
|
| 374 |
+
\& }
|
| 375 |
+
\& if ($nice) {
|
| 376 |
+
\& print \*(Aqhi\*(Aq;
|
| 377 |
+
\& } else {
|
| 378 |
+
\& print \*(Aqbye\*(Aq;
|
| 379 |
+
\& }
|
| 380 |
+
.Ve
|
| 381 |
+
.Sp
|
| 382 |
+
turns into
|
| 383 |
+
.Sp
|
| 384 |
+
.Vb 3
|
| 385 |
+
\& $nice and print \*(Aqhi\*(Aq;
|
| 386 |
+
\& $nice and do { print \*(Aqhi\*(Aq };
|
| 387 |
+
\& $nice ? do { print \*(Aqhi\*(Aq } : do { print \*(Aqbye\*(Aq };
|
| 388 |
+
.Ve
|
| 389 |
+
.Sp
|
| 390 |
+
Long sequences of elsifs will turn into nested ternary operators, which
|
| 391 |
+
B::Deparse doesn't know how to indent nicely.
|
| 392 |
+
.SH "USING B::Deparse AS A MODULE"
|
| 393 |
+
.IX Header "USING B::Deparse AS A MODULE"
|
| 394 |
+
.SS "Synopsis"
|
| 395 |
+
.IX Subsection "Synopsis"
|
| 396 |
+
.Vb 4
|
| 397 |
+
\& use B::Deparse;
|
| 398 |
+
\& $deparse = B::Deparse\->new("\-p", "\-sC");
|
| 399 |
+
\& $body = $deparse\->coderef2text(\e&func);
|
| 400 |
+
\& eval "sub func $body"; # the inverse operation
|
| 401 |
+
.Ve
|
| 402 |
+
.SS "Description"
|
| 403 |
+
.IX Subsection "Description"
|
| 404 |
+
B::Deparse can also be used on a sub-by-sub basis from other perl
|
| 405 |
+
programs.
|
| 406 |
+
.SS "new"
|
| 407 |
+
.IX Subsection "new"
|
| 408 |
+
.Vb 1
|
| 409 |
+
\& $deparse = B::Deparse\->new(OPTIONS)
|
| 410 |
+
.Ve
|
| 411 |
+
.PP
|
| 412 |
+
Create an object to store the state of a deparsing operation and any
|
| 413 |
+
options. The options are the same as those that can be given on the
|
| 414 |
+
command line (see \*(L"\s-1OPTIONS\*(R"\s0); options that are separated by commas
|
| 415 |
+
after \fB\-MO=Deparse\fR should be given as separate strings.
|
| 416 |
+
.SS "ambient_pragmas"
|
| 417 |
+
.IX Subsection "ambient_pragmas"
|
| 418 |
+
.Vb 1
|
| 419 |
+
\& $deparse\->ambient_pragmas(strict => \*(Aqall\*(Aq, \*(Aq$[\*(Aq => $[);
|
| 420 |
+
.Ve
|
| 421 |
+
.PP
|
| 422 |
+
The compilation of a subroutine can be affected by a few compiler
|
| 423 |
+
directives, \fBpragmas\fR. These are:
|
| 424 |
+
.IP "\(bu" 4
|
| 425 |
+
use strict;
|
| 426 |
+
.IP "\(bu" 4
|
| 427 |
+
use warnings;
|
| 428 |
+
.IP "\(bu" 4
|
| 429 |
+
Assigning to the special variable $[
|
| 430 |
+
.IP "\(bu" 4
|
| 431 |
+
use integer;
|
| 432 |
+
.IP "\(bu" 4
|
| 433 |
+
use bytes;
|
| 434 |
+
.IP "\(bu" 4
|
| 435 |
+
use utf8;
|
| 436 |
+
.IP "\(bu" 4
|
| 437 |
+
use re;
|
| 438 |
+
.PP
|
| 439 |
+
Ordinarily, if you use B::Deparse on a subroutine which has
|
| 440 |
+
been compiled in the presence of one or more of these pragmas,
|
| 441 |
+
the output will include statements to turn on the appropriate
|
| 442 |
+
directives. So if you then compile the code returned by coderef2text,
|
| 443 |
+
it will behave the same way as the subroutine which you deparsed.
|
| 444 |
+
.PP
|
| 445 |
+
However, you may know that you intend to use the results in a
|
| 446 |
+
particular context, where some pragmas are already in scope. In
|
| 447 |
+
this case, you use the \fBambient_pragmas\fR method to describe the
|
| 448 |
+
assumptions you wish to make.
|
| 449 |
+
.PP
|
| 450 |
+
Not all of the options currently have any useful effect. See
|
| 451 |
+
\&\*(L"\s-1BUGS\*(R"\s0 for more details.
|
| 452 |
+
.PP
|
| 453 |
+
The parameters it accepts are:
|
| 454 |
+
.IP "strict" 4
|
| 455 |
+
.IX Item "strict"
|
| 456 |
+
Takes a string, possibly containing several values separated
|
| 457 |
+
by whitespace. The special values \*(L"all\*(R" and \*(L"none\*(R" mean what you'd
|
| 458 |
+
expect.
|
| 459 |
+
.Sp
|
| 460 |
+
.Vb 1
|
| 461 |
+
\& $deparse\->ambient_pragmas(strict => \*(Aqsubs refs\*(Aq);
|
| 462 |
+
.Ve
|
| 463 |
+
.IP "$[" 4
|
| 464 |
+
Takes a number, the value of the array base $[.
|
| 465 |
+
Obsolete: cannot be non-zero.
|
| 466 |
+
.IP "bytes" 4
|
| 467 |
+
.IX Item "bytes"
|
| 468 |
+
.PD 0
|
| 469 |
+
.IP "utf8" 4
|
| 470 |
+
.IX Item "utf8"
|
| 471 |
+
.IP "integer" 4
|
| 472 |
+
.IX Item "integer"
|
| 473 |
+
.PD
|
| 474 |
+
If the value is true, then the appropriate pragma is assumed to
|
| 475 |
+
be in the ambient scope, otherwise not.
|
| 476 |
+
.IP "re" 4
|
| 477 |
+
.IX Item "re"
|
| 478 |
+
Takes a string, possibly containing a whitespace-separated list of
|
| 479 |
+
values. The values \*(L"all\*(R" and \*(L"none\*(R" are special. It's also permissible
|
| 480 |
+
to pass an array reference here.
|
| 481 |
+
.Sp
|
| 482 |
+
.Vb 1
|
| 483 |
+
\& $deparser\->ambient_pragmas(re => \*(Aqeval\*(Aq);
|
| 484 |
+
.Ve
|
| 485 |
+
.IP "warnings" 4
|
| 486 |
+
.IX Item "warnings"
|
| 487 |
+
Takes a string, possibly containing a whitespace-separated list of
|
| 488 |
+
values. The values \*(L"all\*(R" and \*(L"none\*(R" are special, again. It's also
|
| 489 |
+
permissible to pass an array reference here.
|
| 490 |
+
.Sp
|
| 491 |
+
.Vb 1
|
| 492 |
+
\& $deparser\->ambient_pragmas(warnings => [qw[void io]]);
|
| 493 |
+
.Ve
|
| 494 |
+
.Sp
|
| 495 |
+
If one of the values is the string \*(L"\s-1FATAL\*(R",\s0 then all the warnings
|
| 496 |
+
in that list will be considered fatal, just as with the \fBwarnings\fR
|
| 497 |
+
pragma itself. Should you need to specify that some warnings are
|
| 498 |
+
fatal, and others are merely enabled, you can pass the \fBwarnings\fR
|
| 499 |
+
parameter twice:
|
| 500 |
+
.Sp
|
| 501 |
+
.Vb 4
|
| 502 |
+
\& $deparser\->ambient_pragmas(
|
| 503 |
+
\& warnings => \*(Aqall\*(Aq,
|
| 504 |
+
\& warnings => [FATAL => qw/void io/],
|
| 505 |
+
\& );
|
| 506 |
+
.Ve
|
| 507 |
+
.Sp
|
| 508 |
+
See warnings for more information about lexical warnings.
|
| 509 |
+
.IP "hint_bits" 4
|
| 510 |
+
.IX Item "hint_bits"
|
| 511 |
+
.PD 0
|
| 512 |
+
.IP "warning_bits" 4
|
| 513 |
+
.IX Item "warning_bits"
|
| 514 |
+
.PD
|
| 515 |
+
These two parameters are used to specify the ambient pragmas in
|
| 516 |
+
the format used by the special variables $^H and ${^WARNING_BITS}.
|
| 517 |
+
.Sp
|
| 518 |
+
They exist principally so that you can write code like:
|
| 519 |
+
.Sp
|
| 520 |
+
.Vb 7
|
| 521 |
+
\& { my ($hint_bits, $warning_bits);
|
| 522 |
+
\& BEGIN {($hint_bits, $warning_bits) = ($^H, ${^WARNING_BITS})}
|
| 523 |
+
\& $deparser\->ambient_pragmas (
|
| 524 |
+
\& hint_bits => $hint_bits,
|
| 525 |
+
\& warning_bits => $warning_bits,
|
| 526 |
+
\& \*(Aq$[\*(Aq => 0 + $[
|
| 527 |
+
\& ); }
|
| 528 |
+
.Ve
|
| 529 |
+
.Sp
|
| 530 |
+
which specifies that the ambient pragmas are exactly those which
|
| 531 |
+
are in scope at the point of calling.
|
| 532 |
+
.IP "%^H" 4
|
| 533 |
+
.IX Item "%^H"
|
| 534 |
+
This parameter is used to specify the ambient pragmas which are
|
| 535 |
+
stored in the special hash %^H.
|
| 536 |
+
.SS "coderef2text"
|
| 537 |
+
.IX Subsection "coderef2text"
|
| 538 |
+
.Vb 2
|
| 539 |
+
\& $body = $deparse\->coderef2text(\e&func)
|
| 540 |
+
\& $body = $deparse\->coderef2text(sub ($$) { ... })
|
| 541 |
+
.Ve
|
| 542 |
+
.PP
|
| 543 |
+
Return source code for the body of a subroutine (a block, optionally
|
| 544 |
+
preceded by a prototype in parens), given a reference to the
|
| 545 |
+
sub. Because a subroutine can have no names, or more than one name,
|
| 546 |
+
this method doesn't return a complete subroutine definition \*(-- if you
|
| 547 |
+
want to eval the result, you should prepend \*(L"sub subname \*(R", or \*(L"sub \*(R"
|
| 548 |
+
for an anonymous function constructor. Unless the sub was defined in
|
| 549 |
+
the main:: package, the code will include a package declaration.
|
| 550 |
+
.SH "BUGS"
|
| 551 |
+
.IX Header "BUGS"
|
| 552 |
+
.IP "\(bu" 4
|
| 553 |
+
The only pragmas to
|
| 554 |
+
be completely supported are: \f(CW\*(C`use warnings\*(C'\fR,
|
| 555 |
+
\&\f(CW\*(C`use strict\*(C'\fR, \f(CW\*(C`use bytes\*(C'\fR, \f(CW\*(C`use integer\*(C'\fR
|
| 556 |
+
and \f(CW\*(C`use feature\*(C'\fR.
|
| 557 |
+
.Sp
|
| 558 |
+
Excepting those listed above, we're currently unable to guarantee that
|
| 559 |
+
B::Deparse will produce a pragma at the correct point in the program.
|
| 560 |
+
(Specifically, pragmas at the beginning of a block often appear right
|
| 561 |
+
before the start of the block instead.)
|
| 562 |
+
Since the effects of pragmas are often lexically scoped, this can mean
|
| 563 |
+
that the pragma holds sway over a different portion of the program
|
| 564 |
+
than in the input file.
|
| 565 |
+
.IP "\(bu" 4
|
| 566 |
+
In fact, the above is a specific instance of a more general problem:
|
| 567 |
+
we can't guarantee to produce \s-1BEGIN\s0 blocks or \f(CW\*(C`use\*(C'\fR declarations in
|
| 568 |
+
exactly the right place. So if you use a module which affects compilation
|
| 569 |
+
(such as by over-riding keywords, overloading constants or whatever)
|
| 570 |
+
then the output code might not work as intended.
|
| 571 |
+
.IP "\(bu" 4
|
| 572 |
+
Some constants don't print correctly either with or without \fB\-d\fR.
|
| 573 |
+
For instance, neither B::Deparse nor Data::Dumper know how to print
|
| 574 |
+
dual-valued scalars correctly, as in:
|
| 575 |
+
.Sp
|
| 576 |
+
.Vb 1
|
| 577 |
+
\& use constant E2BIG => ($!=7); $y = E2BIG; print $y, 0+$y;
|
| 578 |
+
\&
|
| 579 |
+
\& use constant H => { "#" => 1 }; H\->{"#"};
|
| 580 |
+
.Ve
|
| 581 |
+
.IP "\(bu" 4
|
| 582 |
+
An input file that uses source filtering probably won't be deparsed into
|
| 583 |
+
runnable code, because it will still include the \fBuse\fR declaration
|
| 584 |
+
for the source filtering module, even though the code that is
|
| 585 |
+
produced is already ordinary Perl which shouldn't be filtered again.
|
| 586 |
+
.IP "\(bu" 4
|
| 587 |
+
Optimized-away statements are rendered as
|
| 588 |
+
\&'???'. This includes statements that
|
| 589 |
+
have a compile-time side-effect, such as the obscure
|
| 590 |
+
.Sp
|
| 591 |
+
.Vb 1
|
| 592 |
+
\& my $x if 0;
|
| 593 |
+
.Ve
|
| 594 |
+
.Sp
|
| 595 |
+
which is not, consequently, deparsed correctly.
|
| 596 |
+
.Sp
|
| 597 |
+
.Vb 3
|
| 598 |
+
\& foreach my $i (@_) { 0 }
|
| 599 |
+
\& =>
|
| 600 |
+
\& foreach my $i (@_) { \*(Aq???\*(Aq }
|
| 601 |
+
.Ve
|
| 602 |
+
.IP "\(bu" 4
|
| 603 |
+
Lexical (my) variables declared in scopes external to a subroutine
|
| 604 |
+
appear in coderef2text output text as package variables. This is a tricky
|
| 605 |
+
problem, as perl has no native facility for referring to a lexical variable
|
| 606 |
+
defined within a different scope, although PadWalker is a good start.
|
| 607 |
+
.Sp
|
| 608 |
+
See also Data::Dump::Streamer, which combines B::Deparse and
|
| 609 |
+
PadWalker to serialize closures properly.
|
| 610 |
+
.IP "\(bu" 4
|
| 611 |
+
There are probably many more bugs on non-ASCII platforms (\s-1EBCDIC\s0).
|
| 612 |
+
.SH "AUTHOR"
|
| 613 |
+
.IX Header "AUTHOR"
|
| 614 |
+
Stephen McCamant <smcc@CSUA.Berkeley.EDU>, based on an earlier version
|
| 615 |
+
by Malcolm Beattie <mbeattie@sable.ox.ac.uk>, with contributions from
|
| 616 |
+
Gisle Aas, James Duncan, Albert Dvornik, Robin Houston, Dave Mitchell,
|
| 617 |
+
Hugo van der Sanden, Gurusamy Sarathy, Nick Ing-Simmons, and Rafael
|
| 618 |
+
Garcia-Suarez.
|
data/miniconda3/man/man3/B%3A%3AShowlex.3
ADDED
|
@@ -0,0 +1,218 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "B::Showlex 3"
|
| 136 |
+
.TH B::Showlex 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
B::Showlex \- Show lexical variables used in functions or files
|
| 143 |
+
.SH "SYNOPSIS"
|
| 144 |
+
.IX Header "SYNOPSIS"
|
| 145 |
+
.Vb 1
|
| 146 |
+
\& perl \-MO=Showlex[,\-OPTIONS][,SUBROUTINE] foo.pl
|
| 147 |
+
.Ve
|
| 148 |
+
.SH "DESCRIPTION"
|
| 149 |
+
.IX Header "DESCRIPTION"
|
| 150 |
+
When a comma-separated list of subroutine names is given as options, Showlex
|
| 151 |
+
prints the lexical variables used in those subroutines. Otherwise, it prints
|
| 152 |
+
the file-scope lexicals in the file.
|
| 153 |
+
.SH "EXAMPLES"
|
| 154 |
+
.IX Header "EXAMPLES"
|
| 155 |
+
Traditional form:
|
| 156 |
+
.PP
|
| 157 |
+
.Vb 10
|
| 158 |
+
\& $ perl \-MO=Showlex \-e \*(Aqmy ($i,$j,$k)=(1,"foo")\*(Aq
|
| 159 |
+
\& Pad of lexical names for comppadlist has 4 entries
|
| 160 |
+
\& 0: (0x8caea4) undef
|
| 161 |
+
\& 1: (0x9db0fb0) $i
|
| 162 |
+
\& 2: (0x9db0f38) $j
|
| 163 |
+
\& 3: (0x9db0f50) $k
|
| 164 |
+
\& Pad of lexical values for comppadlist has 5 entries
|
| 165 |
+
\& 0: SPECIAL #1 &PL_sv_undef
|
| 166 |
+
\& 1: NULL (0x9da4234)
|
| 167 |
+
\& 2: NULL (0x9db0f2c)
|
| 168 |
+
\& 3: NULL (0x9db0f44)
|
| 169 |
+
\& 4: NULL (0x9da4264)
|
| 170 |
+
\& \-e syntax OK
|
| 171 |
+
.Ve
|
| 172 |
+
.PP
|
| 173 |
+
New-style form:
|
| 174 |
+
.PP
|
| 175 |
+
.Vb 7
|
| 176 |
+
\& $ perl \-MO=Showlex,\-newlex \-e \*(Aqmy ($i,$j,$k)=(1,"foo")\*(Aq
|
| 177 |
+
\& main Pad has 4 entries
|
| 178 |
+
\& 0: (0x8caea4) undef
|
| 179 |
+
\& 1: (0xa0c4fb8) "$i" = NULL (0xa0b8234)
|
| 180 |
+
\& 2: (0xa0c4f40) "$j" = NULL (0xa0c4f34)
|
| 181 |
+
\& 3: (0xa0c4f58) "$k" = NULL (0xa0c4f4c)
|
| 182 |
+
\& \-e syntax OK
|
| 183 |
+
.Ve
|
| 184 |
+
.PP
|
| 185 |
+
New form, no specials, outside O framework:
|
| 186 |
+
.PP
|
| 187 |
+
.Vb 6
|
| 188 |
+
\& $ perl \-MB::Showlex \-e \e
|
| 189 |
+
\& \*(Aqmy ($i,$j,$k)=(1,"foo"); B::Showlex::compile(\-newlex,\-nosp)\->()\*(Aq
|
| 190 |
+
\& main Pad has 4 entries
|
| 191 |
+
\& 1: (0x998ffb0) "$i" = IV (0x9983234) 1
|
| 192 |
+
\& 2: (0x998ff68) "$j" = PV (0x998ff5c) "foo"
|
| 193 |
+
\& 3: (0x998ff80) "$k" = NULL (0x998ff74)
|
| 194 |
+
.Ve
|
| 195 |
+
.PP
|
| 196 |
+
Note that this example shows the values of the lexicals, whereas the other
|
| 197 |
+
examples did not (as they're compile-time only).
|
| 198 |
+
.SS "\s-1OPTIONS\s0"
|
| 199 |
+
.IX Subsection "OPTIONS"
|
| 200 |
+
The \f(CW\*(C`\-newlex\*(C'\fR option produces a more readable \f(CW\*(C`name => value\*(C'\fR format,
|
| 201 |
+
and is shown in the second example above.
|
| 202 |
+
.PP
|
| 203 |
+
The \f(CW\*(C`\-nosp\*(C'\fR option eliminates reporting of SPECIALs, such as \f(CW\*(C`0: SPECIAL
|
| 204 |
+
#1 &PL_sv_undef\*(C'\fR above. Reporting of SPECIALs can sometimes overwhelm
|
| 205 |
+
your declared lexicals.
|
| 206 |
+
.SH "SEE ALSO"
|
| 207 |
+
.IX Header "SEE ALSO"
|
| 208 |
+
B::Showlex can also be used outside of the O framework, as in the third
|
| 209 |
+
example. See B::Concise for a fuller explanation of reasons.
|
| 210 |
+
.SH "TODO"
|
| 211 |
+
.IX Header "TODO"
|
| 212 |
+
Some of the reported info, such as hex addresses, is not particularly
|
| 213 |
+
valuable. Other information would be more useful for the typical
|
| 214 |
+
programmer, such as line-numbers, pad-slot reuses, etc.. Given this,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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "B::Terse 3"
|
| 136 |
+
.TH B::Terse 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
B::Terse \- Walk Perl syntax tree, printing terse info about ops
|
| 143 |
+
.SH "SYNOPSIS"
|
| 144 |
+
.IX Header "SYNOPSIS"
|
| 145 |
+
.Vb 1
|
| 146 |
+
\& perl \-MO=Terse[,OPTIONS] foo.pl
|
| 147 |
+
.Ve
|
| 148 |
+
.SH "DESCRIPTION"
|
| 149 |
+
.IX Header "DESCRIPTION"
|
| 150 |
+
This module prints the contents of the parse tree, but without as much
|
| 151 |
+
information as \s-1CPAN\s0 module B::Debug. For comparison, \f(CW\*(C`print "Hello, world."\*(C'\fR
|
| 152 |
+
produced 96 lines of output from B::Debug, but only 6 from B::Terse.
|
| 153 |
+
.PP
|
| 154 |
+
This module is useful for people who are writing their own back end,
|
| 155 |
+
or who are learning about the Perl internals. It's not useful to the
|
| 156 |
+
average programmer.
|
| 157 |
+
.PP
|
| 158 |
+
This version of B::Terse is really just a wrapper that calls B::Concise
|
| 159 |
+
with the \fB\-terse\fR option. It is provided for compatibility with old scripts
|
| 160 |
+
(and habits) but using B::Concise directly is now recommended instead.
|
| 161 |
+
.PP
|
| 162 |
+
For compatibility with the old B::Terse, this module also adds a
|
| 163 |
+
method named \f(CW\*(C`terse\*(C'\fR to B::OP and B::SV objects. The B::SV method is
|
| 164 |
+
largely compatible with the old one, though authors of new software
|
| 165 |
+
might be advised to choose a more user-friendly output format. The
|
| 166 |
+
B::OP \f(CW\*(C`terse\*(C'\fR method, however, doesn't work well. Since B::Terse was
|
| 167 |
+
first written, much more information in OPs has migrated to the
|
| 168 |
+
scratchpad datastructure, but the \f(CW\*(C`terse\*(C'\fR interface doesn't have any
|
| 169 |
+
way of getting to the correct pad. As a kludge, the new version will
|
| 170 |
+
always use the pad for the main program, but for OPs in subroutines
|
| 171 |
+
this will give the wrong answer or crash.
|
| 172 |
+
.SH "AUTHOR"
|
| 173 |
+
.IX Header "AUTHOR"
|
| 174 |
+
The original version of B::Terse was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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "B::Xref 3"
|
| 136 |
+
.TH B::Xref 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
B::Xref \- Generates cross reference reports for Perl programs
|
| 143 |
+
.SH "SYNOPSIS"
|
| 144 |
+
.IX Header "SYNOPSIS"
|
| 145 |
+
perl \-MO=Xref[,OPTIONS] foo.pl
|
| 146 |
+
.SH "DESCRIPTION"
|
| 147 |
+
.IX Header "DESCRIPTION"
|
| 148 |
+
The B::Xref module is used to generate a cross reference listing of all
|
| 149 |
+
definitions and uses of variables, subroutines and formats in a Perl program.
|
| 150 |
+
It is implemented as a backend for the Perl compiler.
|
| 151 |
+
.PP
|
| 152 |
+
The report generated is in the following format:
|
| 153 |
+
.PP
|
| 154 |
+
.Vb 8
|
| 155 |
+
\& File filename1
|
| 156 |
+
\& Subroutine subname1
|
| 157 |
+
\& Package package1
|
| 158 |
+
\& object1 line numbers
|
| 159 |
+
\& object2 line numbers
|
| 160 |
+
\& ...
|
| 161 |
+
\& Package package2
|
| 162 |
+
\& ...
|
| 163 |
+
.Ve
|
| 164 |
+
.PP
|
| 165 |
+
Each \fBFile\fR section reports on a single file. Each \fBSubroutine\fR section
|
| 166 |
+
reports on a single subroutine apart from the special cases
|
| 167 |
+
\&\*(L"(definitions)\*(R" and \*(L"(main)\*(R". These report, respectively, on subroutine
|
| 168 |
+
definitions found by the initial symbol table walk and on the main part of
|
| 169 |
+
the program or module external to all subroutines.
|
| 170 |
+
.PP
|
| 171 |
+
The report is then grouped by the \fBPackage\fR of each variable,
|
| 172 |
+
subroutine or format with the special case \*(L"(lexicals)\*(R" meaning
|
| 173 |
+
lexical variables. Each \fBobject\fR name (implicitly qualified by its
|
| 174 |
+
containing \fBPackage\fR) includes its type character(s) at the beginning
|
| 175 |
+
where possible. Lexical variables are easier to track and even
|
| 176 |
+
included dereferencing information where possible.
|
| 177 |
+
.PP
|
| 178 |
+
The \f(CW\*(C`line numbers\*(C'\fR are a comma separated list of line numbers (some
|
| 179 |
+
preceded by code letters) where that object is used in some way.
|
| 180 |
+
Simple uses aren't preceded by a code letter. Introductions (such as
|
| 181 |
+
where a lexical is first defined with \f(CW\*(C`my\*(C'\fR) are indicated with the
|
| 182 |
+
letter \*(L"i\*(R". Subroutine and method calls are indicated by the character
|
| 183 |
+
\&\*(L"&\*(R". Subroutine definitions are indicated by \*(L"s\*(R" and format
|
| 184 |
+
definitions by \*(L"f\*(R".
|
| 185 |
+
.PP
|
| 186 |
+
For instance, here's part of the report from the \fIpod2man\fR program that
|
| 187 |
+
comes with Perl:
|
| 188 |
+
.PP
|
| 189 |
+
.Vb 12
|
| 190 |
+
\& Subroutine clear_noremap
|
| 191 |
+
\& Package (lexical)
|
| 192 |
+
\& $ready_to_print i1069, 1079
|
| 193 |
+
\& Package main
|
| 194 |
+
\& $& 1086
|
| 195 |
+
\& $. 1086
|
| 196 |
+
\& $0 1086
|
| 197 |
+
\& $1 1087
|
| 198 |
+
\& $2 1085, 1085
|
| 199 |
+
\& $3 1085, 1085
|
| 200 |
+
\& $ARGV 1086
|
| 201 |
+
\& %HTML_Escapes 1085, 1085
|
| 202 |
+
.Ve
|
| 203 |
+
.PP
|
| 204 |
+
This shows the variables used in the subroutine \f(CW\*(C`clear_noremap\*(C'\fR. The
|
| 205 |
+
variable \f(CW$ready_to_print\fR is a \fBmy()\fR (lexical) variable,
|
| 206 |
+
\&\fBi\fRntroduced (first declared with \fBmy()\fR) on line 1069, and used on
|
| 207 |
+
line 1079. The variable \f(CW$&\fR from the main package is used on 1086,
|
| 208 |
+
and so on.
|
| 209 |
+
.PP
|
| 210 |
+
A line number may be prefixed by a single letter:
|
| 211 |
+
.IP "i" 4
|
| 212 |
+
.IX Item "i"
|
| 213 |
+
Lexical variable introduced (declared with \fBmy()\fR) for the first time.
|
| 214 |
+
.IP "&" 4
|
| 215 |
+
Subroutine or method call.
|
| 216 |
+
.IP "s" 4
|
| 217 |
+
.IX Item "s"
|
| 218 |
+
Subroutine defined.
|
| 219 |
+
.IP "r" 4
|
| 220 |
+
.IX Item "r"
|
| 221 |
+
Format defined.
|
| 222 |
+
.PP
|
| 223 |
+
The most useful option the cross referencer has is to save the report
|
| 224 |
+
to a separate file. For instance, to save the report on
|
| 225 |
+
\&\fImyperlprogram\fR to the file \fIreport\fR:
|
| 226 |
+
.PP
|
| 227 |
+
.Vb 1
|
| 228 |
+
\& $ perl \-MO=Xref,\-oreport myperlprogram
|
| 229 |
+
.Ve
|
| 230 |
+
.SH "OPTIONS"
|
| 231 |
+
.IX Header "OPTIONS"
|
| 232 |
+
Option words are separated by commas (not whitespace) and follow the
|
| 233 |
+
usual conventions of compiler backend options.
|
| 234 |
+
.ie n .IP """\-oFILENAME""" 8
|
| 235 |
+
.el .IP "\f(CW\-oFILENAME\fR" 8
|
| 236 |
+
.IX Item "-oFILENAME"
|
| 237 |
+
Directs output to \f(CW\*(C`FILENAME\*(C'\fR instead of standard output.
|
| 238 |
+
.ie n .IP """\-r""" 8
|
| 239 |
+
.el .IP "\f(CW\-r\fR" 8
|
| 240 |
+
.IX Item "-r"
|
| 241 |
+
Raw output. Instead of producing a human-readable report, outputs a line
|
| 242 |
+
in machine-readable form for each definition/use of a variable/sub/format.
|
| 243 |
+
.ie n .IP """\-d""" 8
|
| 244 |
+
.el .IP "\f(CW\-d\fR" 8
|
| 245 |
+
.IX Item "-d"
|
| 246 |
+
Don't output the \*(L"(definitions)\*(R" sections.
|
| 247 |
+
.ie n .IP """\-D[tO]""" 8
|
| 248 |
+
.el .IP "\f(CW\-D[tO]\fR" 8
|
| 249 |
+
.IX Item "-D[tO]"
|
| 250 |
+
(Internal) debug options, probably only useful if \f(CW\*(C`\-r\*(C'\fR included.
|
| 251 |
+
The \f(CW\*(C`t\*(C'\fR option prints the object on the top of the stack as it's
|
| 252 |
+
being tracked. The \f(CW\*(C`O\*(C'\fR option prints each operator as it's being
|
| 253 |
+
processed in the execution order of the program.
|
| 254 |
+
.SH "BUGS"
|
| 255 |
+
.IX Header "BUGS"
|
| 256 |
+
Non-lexical variables are quite difficult to track through a program.
|
| 257 |
+
Sometimes the type of a non-lexical variable's use is impossible to
|
| 258 |
+
determine. Introductions of non-lexical non-scalars don't seem to be
|
| 259 |
+
reported properly.
|
| 260 |
+
.SH "AUTHOR"
|
| 261 |
+
.IX Header "AUTHOR"
|
| 262 |
+
Malcolm Beattie, mbeattie@sable.ox.ac.uk.
|
data/miniconda3/man/man3/B.3
ADDED
|
@@ -0,0 +1,1062 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "B 3"
|
| 136 |
+
.TH B 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
B \- The Perl Compiler Backend
|
| 143 |
+
.SH "SYNOPSIS"
|
| 144 |
+
.IX Header "SYNOPSIS"
|
| 145 |
+
.Vb 1
|
| 146 |
+
\& use B;
|
| 147 |
+
.Ve
|
| 148 |
+
.SH "DESCRIPTION"
|
| 149 |
+
.IX Header "DESCRIPTION"
|
| 150 |
+
The \f(CW\*(C`B\*(C'\fR module supplies classes which allow a Perl program to delve
|
| 151 |
+
into its own innards. It is the module used to implement the
|
| 152 |
+
\&\*(L"backends\*(R" of the Perl compiler. Usage of the compiler does not
|
| 153 |
+
require knowledge of this module: see the \fIO\fR module for the
|
| 154 |
+
user-visible part. The \f(CW\*(C`B\*(C'\fR module is of use to those who want to
|
| 155 |
+
write new compiler backends. This documentation assumes that the
|
| 156 |
+
reader knows a fair amount about perl's internals including such
|
| 157 |
+
things as SVs, OPs and the internal symbol table and syntax tree
|
| 158 |
+
of a program.
|
| 159 |
+
.SH "OVERVIEW"
|
| 160 |
+
.IX Header "OVERVIEW"
|
| 161 |
+
The \f(CW\*(C`B\*(C'\fR module contains a set of utility functions for querying the
|
| 162 |
+
current state of the Perl interpreter; typically these functions
|
| 163 |
+
return objects from the B::SV and B::OP classes, or their derived
|
| 164 |
+
classes. These classes in turn define methods for querying the
|
| 165 |
+
resulting objects about their own internal state.
|
| 166 |
+
.SH "Utility Functions"
|
| 167 |
+
.IX Header "Utility Functions"
|
| 168 |
+
The \f(CW\*(C`B\*(C'\fR module exports a variety of functions: some are simple
|
| 169 |
+
utility functions, others provide a Perl program with a way to
|
| 170 |
+
get an initial \*(L"handle\*(R" on an internal object.
|
| 171 |
+
.ie n .SS "Functions Returning ""B::SV"", ""B::AV"", ""B::HV"", and ""B::CV"" objects"
|
| 172 |
+
.el .SS "Functions Returning \f(CWB::SV\fP, \f(CWB::AV\fP, \f(CWB::HV\fP, and \f(CWB::CV\fP objects"
|
| 173 |
+
.IX Subsection "Functions Returning B::SV, B::AV, B::HV, and B::CV objects"
|
| 174 |
+
For descriptions of the class hierarchy of these objects and the
|
| 175 |
+
methods that can be called on them, see below, \*(L"\s-1OVERVIEW OF
|
| 176 |
+
CLASSES\*(R"\s0 and \*(L"SV-RELATED \s-1CLASSES\*(R"\s0.
|
| 177 |
+
.IP "sv_undef" 4
|
| 178 |
+
.IX Item "sv_undef"
|
| 179 |
+
Returns the \s-1SV\s0 object corresponding to the C variable \f(CW\*(C`sv_undef\*(C'\fR.
|
| 180 |
+
.IP "sv_yes" 4
|
| 181 |
+
.IX Item "sv_yes"
|
| 182 |
+
Returns the \s-1SV\s0 object corresponding to the C variable \f(CW\*(C`sv_yes\*(C'\fR.
|
| 183 |
+
.IP "sv_no" 4
|
| 184 |
+
.IX Item "sv_no"
|
| 185 |
+
Returns the \s-1SV\s0 object corresponding to the C variable \f(CW\*(C`sv_no\*(C'\fR.
|
| 186 |
+
.IP "svref_2object(\s-1SVREF\s0)" 4
|
| 187 |
+
.IX Item "svref_2object(SVREF)"
|
| 188 |
+
Takes a reference to any Perl value, and turns the referred-to value
|
| 189 |
+
into an object in the appropriate B::OP\-derived or B::SV\-derived
|
| 190 |
+
class. Apart from functions such as \f(CW\*(C`main_root\*(C'\fR, this is the primary
|
| 191 |
+
way to get an initial \*(L"handle\*(R" on an internal perl data structure
|
| 192 |
+
which can then be followed with the other access methods.
|
| 193 |
+
.Sp
|
| 194 |
+
The returned object will only be valid as long as the underlying OPs
|
| 195 |
+
and SVs continue to exist. Do not attempt to use the object after the
|
| 196 |
+
underlying structures are freed.
|
| 197 |
+
.IP "amagic_generation" 4
|
| 198 |
+
.IX Item "amagic_generation"
|
| 199 |
+
Returns the \s-1SV\s0 object corresponding to the C variable \f(CW\*(C`amagic_generation\*(C'\fR.
|
| 200 |
+
As of Perl 5.18, this is just an alias to \f(CW\*(C`PL_na\*(C'\fR, so its value is
|
| 201 |
+
meaningless.
|
| 202 |
+
.IP "init_av" 4
|
| 203 |
+
.IX Item "init_av"
|
| 204 |
+
Returns the \s-1AV\s0 object (i.e. in class B::AV) representing \s-1INIT\s0 blocks.
|
| 205 |
+
.IP "check_av" 4
|
| 206 |
+
.IX Item "check_av"
|
| 207 |
+
Returns the \s-1AV\s0 object (i.e. in class B::AV) representing \s-1CHECK\s0 blocks.
|
| 208 |
+
.IP "unitcheck_av" 4
|
| 209 |
+
.IX Item "unitcheck_av"
|
| 210 |
+
Returns the \s-1AV\s0 object (i.e. in class B::AV) representing \s-1UNITCHECK\s0 blocks.
|
| 211 |
+
.IP "begin_av" 4
|
| 212 |
+
.IX Item "begin_av"
|
| 213 |
+
Returns the \s-1AV\s0 object (i.e. in class B::AV) representing \s-1BEGIN\s0 blocks.
|
| 214 |
+
.IP "end_av" 4
|
| 215 |
+
.IX Item "end_av"
|
| 216 |
+
Returns the \s-1AV\s0 object (i.e. in class B::AV) representing \s-1END\s0 blocks.
|
| 217 |
+
.IP "comppadlist" 4
|
| 218 |
+
.IX Item "comppadlist"
|
| 219 |
+
Returns the \s-1PADLIST\s0 object (i.e. in class B::PADLIST) of the global
|
| 220 |
+
comppadlist. In Perl 5.16 and earlier it returns an \s-1AV\s0 object (class
|
| 221 |
+
B::AV).
|
| 222 |
+
.IP "regex_padav" 4
|
| 223 |
+
.IX Item "regex_padav"
|
| 224 |
+
Only when perl was compiled with ithreads.
|
| 225 |
+
.IP "main_cv" 4
|
| 226 |
+
.IX Item "main_cv"
|
| 227 |
+
Return the (faked) \s-1CV\s0 corresponding to the main part of the Perl
|
| 228 |
+
program.
|
| 229 |
+
.SS "Functions for Examining the Symbol Table"
|
| 230 |
+
.IX Subsection "Functions for Examining the Symbol Table"
|
| 231 |
+
.IP "walksymtable(\s-1SYMREF, METHOD, RECURSE, PREFIX\s0)" 4
|
| 232 |
+
.IX Item "walksymtable(SYMREF, METHOD, RECURSE, PREFIX)"
|
| 233 |
+
Walk the symbol table starting at \s-1SYMREF\s0 and call \s-1METHOD\s0 on each
|
| 234 |
+
symbol (a B::GV object) visited. When the walk reaches package
|
| 235 |
+
symbols (such as \*(L"Foo::\*(R") it invokes \s-1RECURSE,\s0 passing in the symbol
|
| 236 |
+
name, and only recurses into the package if that sub returns true.
|
| 237 |
+
.Sp
|
| 238 |
+
\&\s-1PREFIX\s0 is the name of the \s-1SYMREF\s0 you're walking.
|
| 239 |
+
.Sp
|
| 240 |
+
For example:
|
| 241 |
+
.Sp
|
| 242 |
+
.Vb 4
|
| 243 |
+
\& # Walk CGI\*(Aqs symbol table calling print_subs on each symbol.
|
| 244 |
+
\& # Recurse only into CGI::Util::
|
| 245 |
+
\& walksymtable(\e%CGI::, \*(Aqprint_subs\*(Aq,
|
| 246 |
+
\& sub { $_[0] eq \*(AqCGI::Util::\*(Aq }, \*(AqCGI::\*(Aq);
|
| 247 |
+
.Ve
|
| 248 |
+
.Sp
|
| 249 |
+
\&\fBprint_subs()\fR is a B::GV method you have declared. Also see \*(L"B::GV
|
| 250 |
+
Methods\*(R", below.
|
| 251 |
+
.ie n .SS "Functions Returning ""B::OP"" objects or for walking op trees"
|
| 252 |
+
.el .SS "Functions Returning \f(CWB::OP\fP objects or for walking op trees"
|
| 253 |
+
.IX Subsection "Functions Returning B::OP objects or for walking op trees"
|
| 254 |
+
For descriptions of the class hierarchy of these objects and the
|
| 255 |
+
methods that can be called on them, see below, \*(L"\s-1OVERVIEW OF
|
| 256 |
+
CLASSES\*(R"\s0 and \*(L"OP-RELATED \s-1CLASSES\*(R"\s0.
|
| 257 |
+
.IP "main_root" 4
|
| 258 |
+
.IX Item "main_root"
|
| 259 |
+
Returns the root op (i.e. an object in the appropriate B::OP\-derived
|
| 260 |
+
class) of the main part of the Perl program.
|
| 261 |
+
.IP "main_start" 4
|
| 262 |
+
.IX Item "main_start"
|
| 263 |
+
Returns the starting op of the main part of the Perl program.
|
| 264 |
+
.IP "walkoptree(\s-1OP, METHOD\s0)" 4
|
| 265 |
+
.IX Item "walkoptree(OP, METHOD)"
|
| 266 |
+
Does a tree-walk of the syntax tree based at \s-1OP\s0 and calls \s-1METHOD\s0 on
|
| 267 |
+
each op it visits. Each node is visited before its children. If
|
| 268 |
+
\&\f(CW\*(C`walkoptree_debug\*(C'\fR (see below) has been called to turn debugging on then
|
| 269 |
+
the method \f(CW\*(C`walkoptree_debug\*(C'\fR is called on each op before \s-1METHOD\s0 is
|
| 270 |
+
called.
|
| 271 |
+
.IP "walkoptree_debug(\s-1DEBUG\s0)" 4
|
| 272 |
+
.IX Item "walkoptree_debug(DEBUG)"
|
| 273 |
+
Returns the current debugging flag for \f(CW\*(C`walkoptree\*(C'\fR. If the optional
|
| 274 |
+
\&\s-1DEBUG\s0 argument is non-zero, it sets the debugging flag to that. See
|
| 275 |
+
the description of \f(CW\*(C`walkoptree\*(C'\fR above for what the debugging flag
|
| 276 |
+
does.
|
| 277 |
+
.SS "Miscellaneous Utility Functions"
|
| 278 |
+
.IX Subsection "Miscellaneous Utility Functions"
|
| 279 |
+
.IP "ppname(\s-1OPNUM\s0)" 4
|
| 280 |
+
.IX Item "ppname(OPNUM)"
|
| 281 |
+
Return the \s-1PP\s0 function name (e.g. \*(L"pp_add\*(R") of op number \s-1OPNUM.\s0
|
| 282 |
+
.IP "hash(\s-1STR\s0)" 4
|
| 283 |
+
.IX Item "hash(STR)"
|
| 284 |
+
Returns a string in the form \*(L"0x...\*(R" representing the value of the
|
| 285 |
+
internal hash function used by perl on string \s-1STR.\s0
|
| 286 |
+
.IP "cast_I32(I)" 4
|
| 287 |
+
.IX Item "cast_I32(I)"
|
| 288 |
+
Casts I to the internal I32 type used by that perl.
|
| 289 |
+
.IP "minus_c" 4
|
| 290 |
+
.IX Item "minus_c"
|
| 291 |
+
Does the equivalent of the \f(CW\*(C`\-c\*(C'\fR command-line option. Obviously, this
|
| 292 |
+
is only useful in a \s-1BEGIN\s0 block or else the flag is set too late.
|
| 293 |
+
.IP "cstring(\s-1STR\s0)" 4
|
| 294 |
+
.IX Item "cstring(STR)"
|
| 295 |
+
Returns a double-quote-surrounded escaped version of \s-1STR\s0 which can
|
| 296 |
+
be used as a string in C source code.
|
| 297 |
+
.IP "perlstring(\s-1STR\s0)" 4
|
| 298 |
+
.IX Item "perlstring(STR)"
|
| 299 |
+
Returns a double-quote-surrounded escaped version of \s-1STR\s0 which can
|
| 300 |
+
be used as a string in Perl source code.
|
| 301 |
+
.IP "safename(\s-1STR\s0)" 4
|
| 302 |
+
.IX Item "safename(STR)"
|
| 303 |
+
This function returns the string with the first character modified if it
|
| 304 |
+
is a control character. It converts it to ^X format first, so that \*(L"\ecG\*(R"
|
| 305 |
+
becomes \*(L"^G\*(R". This is used internally by B::GV::SAFENAME, but
|
| 306 |
+
you can call it directly.
|
| 307 |
+
.IP "class(\s-1OBJ\s0)" 4
|
| 308 |
+
.IX Item "class(OBJ)"
|
| 309 |
+
Returns the class of an object without the part of the classname
|
| 310 |
+
preceding the first \f(CW"::"\fR. This is used to turn \f(CW"B::UNOP"\fR into
|
| 311 |
+
\&\f(CW"UNOP"\fR for example.
|
| 312 |
+
.IP "threadsv_names" 4
|
| 313 |
+
.IX Item "threadsv_names"
|
| 314 |
+
This used to provide support for the old 5.005 threading module. It now
|
| 315 |
+
does nothing.
|
| 316 |
+
.SS "Exported utility variables"
|
| 317 |
+
.IX Subsection "Exported utility variables"
|
| 318 |
+
.ie n .IP "@optype" 4
|
| 319 |
+
.el .IP "\f(CW@optype\fR" 4
|
| 320 |
+
.IX Item "@optype"
|
| 321 |
+
.Vb 1
|
| 322 |
+
\& my $op_type = $optype[$op_type_num];
|
| 323 |
+
.Ve
|
| 324 |
+
.Sp
|
| 325 |
+
A simple mapping of the op type number to its type (like '\s-1COP\s0' or '\s-1BINOP\s0').
|
| 326 |
+
.ie n .IP "@specialsv_name" 4
|
| 327 |
+
.el .IP "\f(CW@specialsv_name\fR" 4
|
| 328 |
+
.IX Item "@specialsv_name"
|
| 329 |
+
.Vb 1
|
| 330 |
+
\& my $sv_name = $specialsv_name[$sv_index];
|
| 331 |
+
.Ve
|
| 332 |
+
.Sp
|
| 333 |
+
Certain \s-1SV\s0 types are considered 'special'. They're represented by
|
| 334 |
+
B::SPECIAL and are referred to by a number from the specialsv_list.
|
| 335 |
+
This array maps that number back to the name of the \s-1SV\s0 (like 'Nullsv'
|
| 336 |
+
or '&PL_sv_undef').
|
| 337 |
+
.SH "OVERVIEW OF CLASSES"
|
| 338 |
+
.IX Header "OVERVIEW OF CLASSES"
|
| 339 |
+
The C structures used by Perl's internals to hold \s-1SV\s0 and \s-1OP\s0
|
| 340 |
+
information (\s-1PVIV, AV, HV, ..., OP, SVOP, UNOP, ...\s0) are modelled on a
|
| 341 |
+
class hierarchy and the \f(CW\*(C`B\*(C'\fR module gives access to them via a true
|
| 342 |
+
object hierarchy. Structure fields which point to other objects
|
| 343 |
+
(whether types of \s-1SV\s0 or types of \s-1OP\s0) are represented by the \f(CW\*(C`B\*(C'\fR
|
| 344 |
+
module as Perl objects of the appropriate class.
|
| 345 |
+
.PP
|
| 346 |
+
The bulk of the \f(CW\*(C`B\*(C'\fR module is the methods for accessing fields of
|
| 347 |
+
these structures.
|
| 348 |
+
.PP
|
| 349 |
+
Note that all access is read-only. You cannot modify the internals by
|
| 350 |
+
using this module. Also, note that the B::OP and B::SV objects created
|
| 351 |
+
by this module are only valid for as long as the underlying objects
|
| 352 |
+
exist; their creation doesn't increase the reference counts of the
|
| 353 |
+
underlying objects. Trying to access the fields of a freed object will
|
| 354 |
+
give incomprehensible results, or worse.
|
| 355 |
+
.SS "SV-RELATED \s-1CLASSES\s0"
|
| 356 |
+
.IX Subsection "SV-RELATED CLASSES"
|
| 357 |
+
B::IV, B::NV, B::PV, B::PVIV, B::PVNV, B::PVMG,
|
| 358 |
+
B::PVLV, B::AV, B::HV, B::CV, B::GV, B::FM, B::IO. These classes
|
| 359 |
+
correspond in the obvious way to the underlying C structures of similar names.
|
| 360 |
+
The inheritance hierarchy mimics the underlying C \*(L"inheritance\*(R":
|
| 361 |
+
.PP
|
| 362 |
+
.Vb 10
|
| 363 |
+
\& B::SV
|
| 364 |
+
\& |
|
| 365 |
+
\& +\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-+
|
| 366 |
+
\& | | |
|
| 367 |
+
\& B::PV B::IV B::NV
|
| 368 |
+
\& \e / /
|
| 369 |
+
\& \e / /
|
| 370 |
+
\& B::PVIV /
|
| 371 |
+
\& \e /
|
| 372 |
+
\& \e /
|
| 373 |
+
\& \e /
|
| 374 |
+
\& B::PVNV
|
| 375 |
+
\& |
|
| 376 |
+
\& |
|
| 377 |
+
\& B::PVMG
|
| 378 |
+
\& |
|
| 379 |
+
\& +\-\-\-\-\-\-\-+\-\-\-\-\-\-\-+\-\-\-+\-\-\-+\-\-\-\-\-\-\-+\-\-\-\-\-\-\-+
|
| 380 |
+
\& | | | | | |
|
| 381 |
+
\& B::AV B::GV B::HV B::CV B::IO B::REGEXP
|
| 382 |
+
\& | |
|
| 383 |
+
\& | |
|
| 384 |
+
\& B::PVLV B::FM
|
| 385 |
+
.Ve
|
| 386 |
+
.PP
|
| 387 |
+
Access methods correspond to the underlying C macros for field access,
|
| 388 |
+
usually with the leading \*(L"class indication\*(R" prefix removed (Sv, Av,
|
| 389 |
+
Hv, ...). The leading prefix is only left in cases where its removal
|
| 390 |
+
would cause a clash in method name. For example, \f(CW\*(C`GvREFCNT\*(C'\fR stays
|
| 391 |
+
as-is since its abbreviation would clash with the \*(L"superclass\*(R" method
|
| 392 |
+
\&\f(CW\*(C`REFCNT\*(C'\fR (corresponding to the C function \f(CW\*(C`SvREFCNT\*(C'\fR).
|
| 393 |
+
.SS "B::SV Methods"
|
| 394 |
+
.IX Subsection "B::SV Methods"
|
| 395 |
+
.IP "\s-1REFCNT\s0" 4
|
| 396 |
+
.IX Item "REFCNT"
|
| 397 |
+
.PD 0
|
| 398 |
+
.IP "\s-1FLAGS\s0" 4
|
| 399 |
+
.IX Item "FLAGS"
|
| 400 |
+
.IP "object_2svref" 4
|
| 401 |
+
.IX Item "object_2svref"
|
| 402 |
+
.PD
|
| 403 |
+
Returns a reference to the regular scalar corresponding to this
|
| 404 |
+
B::SV object. In other words, this method is the inverse operation
|
| 405 |
+
to the \fBsvref_2object()\fR subroutine. This scalar and other data it points
|
| 406 |
+
at should be considered read-only: modifying them is neither safe nor
|
| 407 |
+
guaranteed to have a sensible effect.
|
| 408 |
+
.SS "B::IV Methods"
|
| 409 |
+
.IX Subsection "B::IV Methods"
|
| 410 |
+
.IP "\s-1IV\s0" 4
|
| 411 |
+
.IX Item "IV"
|
| 412 |
+
Returns the value of the \s-1IV,\s0 \fIinterpreted as
|
| 413 |
+
a signed integer\fR. This will be misleading
|
| 414 |
+
if \f(CW\*(C`FLAGS & SVf_IVisUV\*(C'\fR. Perhaps you want the
|
| 415 |
+
\&\f(CW\*(C`int_value\*(C'\fR method instead?
|
| 416 |
+
.IP "\s-1IVX\s0" 4
|
| 417 |
+
.IX Item "IVX"
|
| 418 |
+
.PD 0
|
| 419 |
+
.IP "\s-1UVX\s0" 4
|
| 420 |
+
.IX Item "UVX"
|
| 421 |
+
.IP "int_value" 4
|
| 422 |
+
.IX Item "int_value"
|
| 423 |
+
.PD
|
| 424 |
+
This method returns the value of the \s-1IV\s0 as an integer.
|
| 425 |
+
It differs from \f(CW\*(C`IV\*(C'\fR in that it returns the correct
|
| 426 |
+
value regardless of whether it's stored signed or
|
| 427 |
+
unsigned.
|
| 428 |
+
.IP "needs64bits" 4
|
| 429 |
+
.IX Item "needs64bits"
|
| 430 |
+
.PD 0
|
| 431 |
+
.IP "packiv" 4
|
| 432 |
+
.IX Item "packiv"
|
| 433 |
+
.PD
|
| 434 |
+
.SS "B::NV Methods"
|
| 435 |
+
.IX Subsection "B::NV Methods"
|
| 436 |
+
.IP "\s-1NV\s0" 4
|
| 437 |
+
.IX Item "NV"
|
| 438 |
+
.PD 0
|
| 439 |
+
.IP "\s-1NVX\s0" 4
|
| 440 |
+
.IX Item "NVX"
|
| 441 |
+
.IP "\s-1COP_SEQ_RANGE_LOW\s0" 4
|
| 442 |
+
.IX Item "COP_SEQ_RANGE_LOW"
|
| 443 |
+
.IP "\s-1COP_SEQ_RANGE_HIGH\s0" 4
|
| 444 |
+
.IX Item "COP_SEQ_RANGE_HIGH"
|
| 445 |
+
.PD
|
| 446 |
+
These last two are only valid for pad name SVs. They only existed in the
|
| 447 |
+
B::NV class before Perl 5.22. In 5.22 they were moved to the B::PADNAME
|
| 448 |
+
class.
|
| 449 |
+
.SS "B::RV Methods"
|
| 450 |
+
.IX Subsection "B::RV Methods"
|
| 451 |
+
.IP "\s-1RV\s0" 4
|
| 452 |
+
.IX Item "RV"
|
| 453 |
+
.SS "B::PV Methods"
|
| 454 |
+
.IX Subsection "B::PV Methods"
|
| 455 |
+
.PD 0
|
| 456 |
+
.IP "\s-1PV\s0" 4
|
| 457 |
+
.IX Item "PV"
|
| 458 |
+
.PD
|
| 459 |
+
This method is the one you usually want. It constructs a
|
| 460 |
+
string using the length and offset information in the struct:
|
| 461 |
+
for ordinary scalars it will return the string that you'd see
|
| 462 |
+
from Perl, even if it contains null characters.
|
| 463 |
+
.IP "\s-1RV\s0" 4
|
| 464 |
+
.IX Item "RV"
|
| 465 |
+
Same as B::RV::RV, except that it will \fBdie()\fR if the \s-1PV\s0 isn't
|
| 466 |
+
a reference.
|
| 467 |
+
.IP "\s-1PVX\s0" 4
|
| 468 |
+
.IX Item "PVX"
|
| 469 |
+
This method is less often useful. It assumes that the string
|
| 470 |
+
stored in the struct is null-terminated, and disregards the
|
| 471 |
+
length information.
|
| 472 |
+
.Sp
|
| 473 |
+
It is the appropriate method to use if you need to get the name
|
| 474 |
+
of a lexical variable from a padname array. Lexical variable names
|
| 475 |
+
are always stored with a null terminator, and the length field
|
| 476 |
+
(\s-1CUR\s0) is overloaded for other purposes and can't be relied on here.
|
| 477 |
+
.IP "\s-1CUR\s0" 4
|
| 478 |
+
.IX Item "CUR"
|
| 479 |
+
This method returns the internal length field, which consists of the number
|
| 480 |
+
of internal bytes, not necessarily the number of logical characters.
|
| 481 |
+
.IP "\s-1LEN\s0" 4
|
| 482 |
+
.IX Item "LEN"
|
| 483 |
+
This method returns the number of bytes allocated (via malloc) for storing
|
| 484 |
+
the string. This is 0 if the scalar does not \*(L"own\*(R" the string.
|
| 485 |
+
.SS "B::PVMG Methods"
|
| 486 |
+
.IX Subsection "B::PVMG Methods"
|
| 487 |
+
.IP "\s-1MAGIC\s0" 4
|
| 488 |
+
.IX Item "MAGIC"
|
| 489 |
+
.PD 0
|
| 490 |
+
.IP "SvSTASH" 4
|
| 491 |
+
.IX Item "SvSTASH"
|
| 492 |
+
.PD
|
| 493 |
+
.SS "B::MAGIC Methods"
|
| 494 |
+
.IX Subsection "B::MAGIC Methods"
|
| 495 |
+
.IP "\s-1MOREMAGIC\s0" 4
|
| 496 |
+
.IX Item "MOREMAGIC"
|
| 497 |
+
.PD 0
|
| 498 |
+
.IP "precomp" 4
|
| 499 |
+
.IX Item "precomp"
|
| 500 |
+
.PD
|
| 501 |
+
Only valid on r\-magic, returns the string that generated the regexp.
|
| 502 |
+
.IP "\s-1PRIVATE\s0" 4
|
| 503 |
+
.IX Item "PRIVATE"
|
| 504 |
+
.PD 0
|
| 505 |
+
.IP "\s-1TYPE\s0" 4
|
| 506 |
+
.IX Item "TYPE"
|
| 507 |
+
.IP "\s-1FLAGS\s0" 4
|
| 508 |
+
.IX Item "FLAGS"
|
| 509 |
+
.IP "\s-1OBJ\s0" 4
|
| 510 |
+
.IX Item "OBJ"
|
| 511 |
+
.PD
|
| 512 |
+
Will \fBdie()\fR if called on r\-magic.
|
| 513 |
+
.IP "\s-1PTR\s0" 4
|
| 514 |
+
.IX Item "PTR"
|
| 515 |
+
.PD 0
|
| 516 |
+
.IP "\s-1REGEX\s0" 4
|
| 517 |
+
.IX Item "REGEX"
|
| 518 |
+
.PD
|
| 519 |
+
Only valid on r\-magic, returns the integer value of the \s-1REGEX\s0 stored
|
| 520 |
+
in the \s-1MAGIC.\s0
|
| 521 |
+
.SS "B::PVLV Methods"
|
| 522 |
+
.IX Subsection "B::PVLV Methods"
|
| 523 |
+
.IP "\s-1TARGOFF\s0" 4
|
| 524 |
+
.IX Item "TARGOFF"
|
| 525 |
+
.PD 0
|
| 526 |
+
.IP "\s-1TARGLEN\s0" 4
|
| 527 |
+
.IX Item "TARGLEN"
|
| 528 |
+
.IP "\s-1TYPE\s0" 4
|
| 529 |
+
.IX Item "TYPE"
|
| 530 |
+
.IP "\s-1TARG\s0" 4
|
| 531 |
+
.IX Item "TARG"
|
| 532 |
+
.PD
|
| 533 |
+
.SS "B::BM Methods"
|
| 534 |
+
.IX Subsection "B::BM Methods"
|
| 535 |
+
.IP "\s-1USEFUL\s0" 4
|
| 536 |
+
.IX Item "USEFUL"
|
| 537 |
+
.PD 0
|
| 538 |
+
.IP "\s-1PREVIOUS\s0" 4
|
| 539 |
+
.IX Item "PREVIOUS"
|
| 540 |
+
.IP "\s-1RARE\s0" 4
|
| 541 |
+
.IX Item "RARE"
|
| 542 |
+
.IP "\s-1TABLE\s0" 4
|
| 543 |
+
.IX Item "TABLE"
|
| 544 |
+
.PD
|
| 545 |
+
.SS "B::REGEXP Methods"
|
| 546 |
+
.IX Subsection "B::REGEXP Methods"
|
| 547 |
+
.IP "\s-1REGEX\s0" 4
|
| 548 |
+
.IX Item "REGEX"
|
| 549 |
+
.PD 0
|
| 550 |
+
.IP "precomp" 4
|
| 551 |
+
.IX Item "precomp"
|
| 552 |
+
.IP "qr_anoncv" 4
|
| 553 |
+
.IX Item "qr_anoncv"
|
| 554 |
+
.IP "compflags" 4
|
| 555 |
+
.IX Item "compflags"
|
| 556 |
+
.PD
|
| 557 |
+
The last two were added in Perl 5.22.
|
| 558 |
+
.SS "B::GV Methods"
|
| 559 |
+
.IX Subsection "B::GV Methods"
|
| 560 |
+
.IP "is_empty" 4
|
| 561 |
+
.IX Item "is_empty"
|
| 562 |
+
This method returns \s-1TRUE\s0 if the \s-1GP\s0 field of the \s-1GV\s0 is \s-1NULL.\s0
|
| 563 |
+
.IP "\s-1NAME\s0" 4
|
| 564 |
+
.IX Item "NAME"
|
| 565 |
+
.PD 0
|
| 566 |
+
.IP "\s-1SAFENAME\s0" 4
|
| 567 |
+
.IX Item "SAFENAME"
|
| 568 |
+
.PD
|
| 569 |
+
This method returns the name of the glob, but if the first
|
| 570 |
+
character of the name is a control character, then it converts
|
| 571 |
+
it to ^X first, so that *^G would return \*(L"^G\*(R" rather than \*(L"\ecG\*(R".
|
| 572 |
+
.Sp
|
| 573 |
+
It's useful if you want to print out the name of a variable.
|
| 574 |
+
If you restrict yourself to globs which exist at compile-time
|
| 575 |
+
then the result ought to be unambiguous, because code like
|
| 576 |
+
\&\f(CW\*(C`${"^G"} = 1\*(C'\fR is compiled as two ops \- a constant string and
|
| 577 |
+
a dereference (rv2gv) \- so that the glob is created at runtime.
|
| 578 |
+
.Sp
|
| 579 |
+
If you're working with globs at runtime, and need to disambiguate
|
| 580 |
+
*^G from *{\*(L"^G\*(R"}, then you should use the raw \s-1NAME\s0 method.
|
| 581 |
+
.IP "\s-1STASH\s0" 4
|
| 582 |
+
.IX Item "STASH"
|
| 583 |
+
.PD 0
|
| 584 |
+
.IP "\s-1SV\s0" 4
|
| 585 |
+
.IX Item "SV"
|
| 586 |
+
.IP "\s-1IO\s0" 4
|
| 587 |
+
.IX Item "IO"
|
| 588 |
+
.IP "\s-1FORM\s0" 4
|
| 589 |
+
.IX Item "FORM"
|
| 590 |
+
.IP "\s-1AV\s0" 4
|
| 591 |
+
.IX Item "AV"
|
| 592 |
+
.IP "\s-1HV\s0" 4
|
| 593 |
+
.IX Item "HV"
|
| 594 |
+
.IP "\s-1EGV\s0" 4
|
| 595 |
+
.IX Item "EGV"
|
| 596 |
+
.IP "\s-1CV\s0" 4
|
| 597 |
+
.IX Item "CV"
|
| 598 |
+
.IP "\s-1CVGEN\s0" 4
|
| 599 |
+
.IX Item "CVGEN"
|
| 600 |
+
.IP "\s-1LINE\s0" 4
|
| 601 |
+
.IX Item "LINE"
|
| 602 |
+
.IP "\s-1FILE\s0" 4
|
| 603 |
+
.IX Item "FILE"
|
| 604 |
+
.IP "\s-1FILEGV\s0" 4
|
| 605 |
+
.IX Item "FILEGV"
|
| 606 |
+
.IP "GvREFCNT" 4
|
| 607 |
+
.IX Item "GvREFCNT"
|
| 608 |
+
.IP "\s-1FLAGS\s0" 4
|
| 609 |
+
.IX Item "FLAGS"
|
| 610 |
+
.IP "\s-1GPFLAGS\s0" 4
|
| 611 |
+
.IX Item "GPFLAGS"
|
| 612 |
+
.PD
|
| 613 |
+
This last one is present only in perl 5.22.0 and higher.
|
| 614 |
+
.SS "B::IO Methods"
|
| 615 |
+
.IX Subsection "B::IO Methods"
|
| 616 |
+
B::IO objects derive from \s-1IO\s0 objects and you will get more information from
|
| 617 |
+
the \s-1IO\s0 object itself.
|
| 618 |
+
.PP
|
| 619 |
+
For example:
|
| 620 |
+
.PP
|
| 621 |
+
.Vb 3
|
| 622 |
+
\& $gvio = B::svref_2object(\e*main::stdin)\->IO;
|
| 623 |
+
\& $IO = $gvio\->object_2svref();
|
| 624 |
+
\& $fd = $IO\->fileno();
|
| 625 |
+
.Ve
|
| 626 |
+
.IP "\s-1LINES\s0" 4
|
| 627 |
+
.IX Item "LINES"
|
| 628 |
+
.PD 0
|
| 629 |
+
.IP "\s-1PAGE\s0" 4
|
| 630 |
+
.IX Item "PAGE"
|
| 631 |
+
.IP "\s-1PAGE_LEN\s0" 4
|
| 632 |
+
.IX Item "PAGE_LEN"
|
| 633 |
+
.IP "\s-1LINES_LEFT\s0" 4
|
| 634 |
+
.IX Item "LINES_LEFT"
|
| 635 |
+
.IP "\s-1TOP_NAME\s0" 4
|
| 636 |
+
.IX Item "TOP_NAME"
|
| 637 |
+
.IP "\s-1TOP_GV\s0" 4
|
| 638 |
+
.IX Item "TOP_GV"
|
| 639 |
+
.IP "\s-1FMT_NAME\s0" 4
|
| 640 |
+
.IX Item "FMT_NAME"
|
| 641 |
+
.IP "\s-1FMT_GV\s0" 4
|
| 642 |
+
.IX Item "FMT_GV"
|
| 643 |
+
.IP "\s-1BOTTOM_NAME\s0" 4
|
| 644 |
+
.IX Item "BOTTOM_NAME"
|
| 645 |
+
.IP "\s-1BOTTOM_GV\s0" 4
|
| 646 |
+
.IX Item "BOTTOM_GV"
|
| 647 |
+
.IP "\s-1SUBPROCESS\s0" 4
|
| 648 |
+
.IX Item "SUBPROCESS"
|
| 649 |
+
.IP "IoTYPE" 4
|
| 650 |
+
.IX Item "IoTYPE"
|
| 651 |
+
.PD
|
| 652 |
+
A character symbolizing the type of \s-1IO\s0 Handle.
|
| 653 |
+
.Sp
|
| 654 |
+
.Vb 12
|
| 655 |
+
\& \- STDIN/OUT
|
| 656 |
+
\& I STDIN/OUT/ERR
|
| 657 |
+
\& < read\-only
|
| 658 |
+
\& > write\-only
|
| 659 |
+
\& a append
|
| 660 |
+
\& + read and write
|
| 661 |
+
\& s socket
|
| 662 |
+
\& | pipe
|
| 663 |
+
\& I IMPLICIT
|
| 664 |
+
\& # NUMERIC
|
| 665 |
+
\& space closed handle
|
| 666 |
+
\& \e0 closed internal handle
|
| 667 |
+
.Ve
|
| 668 |
+
.IP "IoFLAGS" 4
|
| 669 |
+
.IX Item "IoFLAGS"
|
| 670 |
+
.PD 0
|
| 671 |
+
.IP "IsSTD" 4
|
| 672 |
+
.IX Item "IsSTD"
|
| 673 |
+
.PD
|
| 674 |
+
Takes one argument ( 'stdin' | 'stdout' | 'stderr' ) and returns true
|
| 675 |
+
if the IoIFP of the object is equal to the handle whose name was
|
| 676 |
+
passed as argument; i.e., \f(CW$io\fR\->IsSTD('stderr') is true if
|
| 677 |
+
IoIFP($io) == \fBPerlIO_stderr()\fR.
|
| 678 |
+
.SS "B::AV Methods"
|
| 679 |
+
.IX Subsection "B::AV Methods"
|
| 680 |
+
.IP "\s-1FILL\s0" 4
|
| 681 |
+
.IX Item "FILL"
|
| 682 |
+
.PD 0
|
| 683 |
+
.IP "\s-1MAX\s0" 4
|
| 684 |
+
.IX Item "MAX"
|
| 685 |
+
.IP "\s-1ARRAY\s0" 4
|
| 686 |
+
.IX Item "ARRAY"
|
| 687 |
+
.IP "ARRAYelt" 4
|
| 688 |
+
.IX Item "ARRAYelt"
|
| 689 |
+
.PD
|
| 690 |
+
Like \f(CW\*(C`ARRAY\*(C'\fR, but takes an index as an argument to get only one element,
|
| 691 |
+
rather than a list of all of them.
|
| 692 |
+
.SS "B::CV Methods"
|
| 693 |
+
.IX Subsection "B::CV Methods"
|
| 694 |
+
.IP "\s-1STASH\s0" 4
|
| 695 |
+
.IX Item "STASH"
|
| 696 |
+
.PD 0
|
| 697 |
+
.IP "\s-1START\s0" 4
|
| 698 |
+
.IX Item "START"
|
| 699 |
+
.IP "\s-1ROOT\s0" 4
|
| 700 |
+
.IX Item "ROOT"
|
| 701 |
+
.IP "\s-1GV\s0" 4
|
| 702 |
+
.IX Item "GV"
|
| 703 |
+
.IP "\s-1FILE\s0" 4
|
| 704 |
+
.IX Item "FILE"
|
| 705 |
+
.IP "\s-1DEPTH\s0" 4
|
| 706 |
+
.IX Item "DEPTH"
|
| 707 |
+
.IP "\s-1PADLIST\s0" 4
|
| 708 |
+
.IX Item "PADLIST"
|
| 709 |
+
.PD
|
| 710 |
+
Returns a B::PADLIST object.
|
| 711 |
+
.IP "\s-1OUTSIDE\s0" 4
|
| 712 |
+
.IX Item "OUTSIDE"
|
| 713 |
+
.PD 0
|
| 714 |
+
.IP "\s-1OUTSIDE_SEQ\s0" 4
|
| 715 |
+
.IX Item "OUTSIDE_SEQ"
|
| 716 |
+
.IP "\s-1XSUB\s0" 4
|
| 717 |
+
.IX Item "XSUB"
|
| 718 |
+
.IP "\s-1XSUBANY\s0" 4
|
| 719 |
+
.IX Item "XSUBANY"
|
| 720 |
+
.PD
|
| 721 |
+
For constant subroutines, returns the constant \s-1SV\s0 returned by the subroutine.
|
| 722 |
+
.IP "CvFLAGS" 4
|
| 723 |
+
.IX Item "CvFLAGS"
|
| 724 |
+
.PD 0
|
| 725 |
+
.IP "const_sv" 4
|
| 726 |
+
.IX Item "const_sv"
|
| 727 |
+
.IP "\s-1NAME_HEK\s0" 4
|
| 728 |
+
.IX Item "NAME_HEK"
|
| 729 |
+
.PD
|
| 730 |
+
Returns the name of a lexical sub, otherwise \f(CW\*(C`undef\*(C'\fR.
|
| 731 |
+
.SS "B::HV Methods"
|
| 732 |
+
.IX Subsection "B::HV Methods"
|
| 733 |
+
.IP "\s-1FILL\s0" 4
|
| 734 |
+
.IX Item "FILL"
|
| 735 |
+
.PD 0
|
| 736 |
+
.IP "\s-1MAX\s0" 4
|
| 737 |
+
.IX Item "MAX"
|
| 738 |
+
.IP "\s-1KEYS\s0" 4
|
| 739 |
+
.IX Item "KEYS"
|
| 740 |
+
.IP "\s-1RITER\s0" 4
|
| 741 |
+
.IX Item "RITER"
|
| 742 |
+
.IP "\s-1NAME\s0" 4
|
| 743 |
+
.IX Item "NAME"
|
| 744 |
+
.IP "\s-1ARRAY\s0" 4
|
| 745 |
+
.IX Item "ARRAY"
|
| 746 |
+
.PD
|
| 747 |
+
.SS "OP-RELATED \s-1CLASSES\s0"
|
| 748 |
+
.IX Subsection "OP-RELATED CLASSES"
|
| 749 |
+
\&\f(CW\*(C`B::OP\*(C'\fR, \f(CW\*(C`B::UNOP\*(C'\fR, \f(CW\*(C`B::UNOP_AUX\*(C'\fR, \f(CW\*(C`B::BINOP\*(C'\fR, \f(CW\*(C`B::LOGOP\*(C'\fR,
|
| 750 |
+
\&\f(CW\*(C`B::LISTOP\*(C'\fR, \f(CW\*(C`B::PMOP\*(C'\fR, \f(CW\*(C`B::SVOP\*(C'\fR, \f(CW\*(C`B::PADOP\*(C'\fR, \f(CW\*(C`B::PVOP\*(C'\fR, \f(CW\*(C`B::LOOP\*(C'\fR,
|
| 751 |
+
\&\f(CW\*(C`B::COP\*(C'\fR, \f(CW\*(C`B::METHOP\*(C'\fR.
|
| 752 |
+
.PP
|
| 753 |
+
These classes correspond in the obvious way to the underlying C
|
| 754 |
+
structures of similar names. The inheritance hierarchy mimics the
|
| 755 |
+
underlying C \*(L"inheritance\*(R":
|
| 756 |
+
.PP
|
| 757 |
+
.Vb 10
|
| 758 |
+
\& B::OP
|
| 759 |
+
\& |
|
| 760 |
+
\& +\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-+
|
| 761 |
+
\& | | | | | |
|
| 762 |
+
\& B::UNOP B::SVOP B::PADOP B::COP B::PVOP B::METHOP
|
| 763 |
+
\& |
|
| 764 |
+
\& +\-\-\-+\-\-\-+\-\-\-\-\-\-\-\-\-+
|
| 765 |
+
\& | | |
|
| 766 |
+
\& B::BINOP B::LOGOP B::UNOP_AUX
|
| 767 |
+
\& |
|
| 768 |
+
\& |
|
| 769 |
+
\& B::LISTOP
|
| 770 |
+
\& |
|
| 771 |
+
\& +\-\-\-+\-\-\-+
|
| 772 |
+
\& | |
|
| 773 |
+
\& B::LOOP B::PMOP
|
| 774 |
+
.Ve
|
| 775 |
+
.PP
|
| 776 |
+
Access methods correspond to the underlying C structure field names,
|
| 777 |
+
with the leading \*(L"class indication\*(R" prefix (\f(CW"op_"\fR) removed.
|
| 778 |
+
.SS "B::OP Methods"
|
| 779 |
+
.IX Subsection "B::OP Methods"
|
| 780 |
+
These methods get the values of similarly named fields within the \s-1OP\s0
|
| 781 |
+
data structure. See top of \f(CW\*(C`op.h\*(C'\fR for more info.
|
| 782 |
+
.IP "next" 4
|
| 783 |
+
.IX Item "next"
|
| 784 |
+
.PD 0
|
| 785 |
+
.IP "sibling" 4
|
| 786 |
+
.IX Item "sibling"
|
| 787 |
+
.IP "parent" 4
|
| 788 |
+
.IX Item "parent"
|
| 789 |
+
.PD
|
| 790 |
+
Returns the \s-1OP\s0's parent. If it has no parent, or if your perl wasn't built
|
| 791 |
+
with \f(CW\*(C`\-DPERL_OP_PARENT\*(C'\fR, returns \s-1NULL.\s0
|
| 792 |
+
.Sp
|
| 793 |
+
Note that the global variable \f(CW$B::OP::does_parent\fR is undefined on older
|
| 794 |
+
perls that don't support the \f(CW\*(C`parent\*(C'\fR method, is defined but false on
|
| 795 |
+
perls that support the method but were built without \f(CW\*(C`\-DPERL_OP_PARENT\*(C'\fR,
|
| 796 |
+
and is true otherwise.
|
| 797 |
+
.IP "name" 4
|
| 798 |
+
.IX Item "name"
|
| 799 |
+
This returns the op name as a string (e.g. \*(L"add\*(R", \*(L"rv2av\*(R").
|
| 800 |
+
.IP "ppaddr" 4
|
| 801 |
+
.IX Item "ppaddr"
|
| 802 |
+
This returns the function name as a string (e.g. \*(L"PL_ppaddr[\s-1OP_ADD\s0]\*(R",
|
| 803 |
+
\&\*(L"PL_ppaddr[\s-1OP_RV2AV\s0]\*(R").
|
| 804 |
+
.IP "desc" 4
|
| 805 |
+
.IX Item "desc"
|
| 806 |
+
This returns the op description from the global C PL_op_desc array
|
| 807 |
+
(e.g. \*(L"addition\*(R" \*(L"array deref\*(R").
|
| 808 |
+
.IP "targ" 4
|
| 809 |
+
.IX Item "targ"
|
| 810 |
+
.PD 0
|
| 811 |
+
.IP "type" 4
|
| 812 |
+
.IX Item "type"
|
| 813 |
+
.IP "opt" 4
|
| 814 |
+
.IX Item "opt"
|
| 815 |
+
.IP "flags" 4
|
| 816 |
+
.IX Item "flags"
|
| 817 |
+
.IP "private" 4
|
| 818 |
+
.IX Item "private"
|
| 819 |
+
.IP "spare" 4
|
| 820 |
+
.IX Item "spare"
|
| 821 |
+
.PD
|
| 822 |
+
.SS "B::UNOP Method"
|
| 823 |
+
.IX Subsection "B::UNOP Method"
|
| 824 |
+
.IP "first" 4
|
| 825 |
+
.IX Item "first"
|
| 826 |
+
.SS "B::UNOP_AUX Methods (since 5.22)"
|
| 827 |
+
.IX Subsection "B::UNOP_AUX Methods (since 5.22)"
|
| 828 |
+
.PD 0
|
| 829 |
+
.IP "aux_list(cv)" 4
|
| 830 |
+
.IX Item "aux_list(cv)"
|
| 831 |
+
.PD
|
| 832 |
+
This returns a list of the elements of the op's aux data structure,
|
| 833 |
+
or a null list if there is no aux. What will be returned depends on the
|
| 834 |
+
object's type, but will typically be a collection of \f(CW\*(C`B::IV\*(C'\fR, \f(CW\*(C`B::GV\*(C'\fR,
|
| 835 |
+
etc. objects. \f(CW\*(C`cv\*(C'\fR is the \f(CW\*(C`B::CV\*(C'\fR object representing the sub that the
|
| 836 |
+
op is contained within.
|
| 837 |
+
.IP "string(cv)" 4
|
| 838 |
+
.IX Item "string(cv)"
|
| 839 |
+
This returns a textual representation of the object (likely to b useful
|
| 840 |
+
for deparsing and debugging), or an empty string if the op type doesn't
|
| 841 |
+
support this. \f(CW\*(C`cv\*(C'\fR is the \f(CW\*(C`B::CV\*(C'\fR object representing the sub that the
|
| 842 |
+
op is contained within.
|
| 843 |
+
.SS "B::BINOP Method"
|
| 844 |
+
.IX Subsection "B::BINOP Method"
|
| 845 |
+
.IP "last" 4
|
| 846 |
+
.IX Item "last"
|
| 847 |
+
.SS "B::LOGOP Method"
|
| 848 |
+
.IX Subsection "B::LOGOP Method"
|
| 849 |
+
.PD 0
|
| 850 |
+
.IP "other" 4
|
| 851 |
+
.IX Item "other"
|
| 852 |
+
.PD
|
| 853 |
+
.SS "B::LISTOP Method"
|
| 854 |
+
.IX Subsection "B::LISTOP Method"
|
| 855 |
+
.IP "children" 4
|
| 856 |
+
.IX Item "children"
|
| 857 |
+
.SS "B::PMOP Methods"
|
| 858 |
+
.IX Subsection "B::PMOP Methods"
|
| 859 |
+
.PD 0
|
| 860 |
+
.IP "pmreplroot" 4
|
| 861 |
+
.IX Item "pmreplroot"
|
| 862 |
+
.IP "pmreplstart" 4
|
| 863 |
+
.IX Item "pmreplstart"
|
| 864 |
+
.IP "pmflags" 4
|
| 865 |
+
.IX Item "pmflags"
|
| 866 |
+
.IP "precomp" 4
|
| 867 |
+
.IX Item "precomp"
|
| 868 |
+
.IP "pmoffset" 4
|
| 869 |
+
.IX Item "pmoffset"
|
| 870 |
+
.PD
|
| 871 |
+
Only when perl was compiled with ithreads.
|
| 872 |
+
.IP "code_list" 4
|
| 873 |
+
.IX Item "code_list"
|
| 874 |
+
Since perl 5.17.1
|
| 875 |
+
.IP "pmregexp" 4
|
| 876 |
+
.IX Item "pmregexp"
|
| 877 |
+
Added in perl 5.22, this method returns the B::REGEXP associated with the
|
| 878 |
+
op. While PMOPs do not actually have \f(CW\*(C`pmregexp\*(C'\fR fields under threaded
|
| 879 |
+
builds, this method returns the regexp under threads nonetheless, for
|
| 880 |
+
convenience.
|
| 881 |
+
.SS "B::SVOP Methods"
|
| 882 |
+
.IX Subsection "B::SVOP Methods"
|
| 883 |
+
.IP "sv" 4
|
| 884 |
+
.IX Item "sv"
|
| 885 |
+
.PD 0
|
| 886 |
+
.IP "gv" 4
|
| 887 |
+
.IX Item "gv"
|
| 888 |
+
.PD
|
| 889 |
+
.SS "B::PADOP Method"
|
| 890 |
+
.IX Subsection "B::PADOP Method"
|
| 891 |
+
.IP "padix" 4
|
| 892 |
+
.IX Item "padix"
|
| 893 |
+
.SS "B::PVOP Method"
|
| 894 |
+
.IX Subsection "B::PVOP Method"
|
| 895 |
+
.PD 0
|
| 896 |
+
.IP "pv" 4
|
| 897 |
+
.IX Item "pv"
|
| 898 |
+
.PD
|
| 899 |
+
.SS "B::LOOP Methods"
|
| 900 |
+
.IX Subsection "B::LOOP Methods"
|
| 901 |
+
.IP "redoop" 4
|
| 902 |
+
.IX Item "redoop"
|
| 903 |
+
.PD 0
|
| 904 |
+
.IP "nextop" 4
|
| 905 |
+
.IX Item "nextop"
|
| 906 |
+
.IP "lastop" 4
|
| 907 |
+
.IX Item "lastop"
|
| 908 |
+
.PD
|
| 909 |
+
.SS "B::COP Methods"
|
| 910 |
+
.IX Subsection "B::COP Methods"
|
| 911 |
+
The \f(CW\*(C`B::COP\*(C'\fR class is used for \*(L"nextstate\*(R" and \*(L"dbstate\*(R" ops. As of Perl
|
| 912 |
+
5.22, it is also used for \*(L"null\*(R" ops that started out as COPs.
|
| 913 |
+
.IP "label" 4
|
| 914 |
+
.IX Item "label"
|
| 915 |
+
.PD 0
|
| 916 |
+
.IP "stash" 4
|
| 917 |
+
.IX Item "stash"
|
| 918 |
+
.IP "stashpv" 4
|
| 919 |
+
.IX Item "stashpv"
|
| 920 |
+
.IP "stashoff (threaded only)" 4
|
| 921 |
+
.IX Item "stashoff (threaded only)"
|
| 922 |
+
.IP "file" 4
|
| 923 |
+
.IX Item "file"
|
| 924 |
+
.IP "cop_seq" 4
|
| 925 |
+
.IX Item "cop_seq"
|
| 926 |
+
.IP "line" 4
|
| 927 |
+
.IX Item "line"
|
| 928 |
+
.IP "warnings" 4
|
| 929 |
+
.IX Item "warnings"
|
| 930 |
+
.IP "io" 4
|
| 931 |
+
.IX Item "io"
|
| 932 |
+
.IP "hints" 4
|
| 933 |
+
.IX Item "hints"
|
| 934 |
+
.IP "hints_hash" 4
|
| 935 |
+
.IX Item "hints_hash"
|
| 936 |
+
.PD
|
| 937 |
+
.SS "B::METHOP Methods (Since Perl 5.22)"
|
| 938 |
+
.IX Subsection "B::METHOP Methods (Since Perl 5.22)"
|
| 939 |
+
.IP "first" 4
|
| 940 |
+
.IX Item "first"
|
| 941 |
+
.PD 0
|
| 942 |
+
.IP "meth_sv" 4
|
| 943 |
+
.IX Item "meth_sv"
|
| 944 |
+
.PD
|
| 945 |
+
.SS "PAD-RELATED \s-1CLASSES\s0"
|
| 946 |
+
.IX Subsection "PAD-RELATED CLASSES"
|
| 947 |
+
Perl 5.18 introduced a new class, B::PADLIST, returned by B::CV's
|
| 948 |
+
\&\f(CW\*(C`PADLIST\*(C'\fR method.
|
| 949 |
+
.PP
|
| 950 |
+
Perl 5.22 introduced the B::PADNAMELIST and B::PADNAME classes.
|
| 951 |
+
.SS "B::PADLIST Methods"
|
| 952 |
+
.IX Subsection "B::PADLIST Methods"
|
| 953 |
+
.IP "\s-1MAX\s0" 4
|
| 954 |
+
.IX Item "MAX"
|
| 955 |
+
.PD 0
|
| 956 |
+
.IP "\s-1ARRAY\s0" 4
|
| 957 |
+
.IX Item "ARRAY"
|
| 958 |
+
.PD
|
| 959 |
+
A list of pads. The first one is a B::PADNAMELIST containing the names.
|
| 960 |
+
The rest are currently B::AV objects, but that could
|
| 961 |
+
change in future versions.
|
| 962 |
+
.IP "ARRAYelt" 4
|
| 963 |
+
.IX Item "ARRAYelt"
|
| 964 |
+
Like \f(CW\*(C`ARRAY\*(C'\fR, but takes an index as an argument to get only one element,
|
| 965 |
+
rather than a list of all of them.
|
| 966 |
+
.IP "\s-1NAMES\s0" 4
|
| 967 |
+
.IX Item "NAMES"
|
| 968 |
+
This method, introduced in 5.22, returns the B::PADNAMELIST. It is
|
| 969 |
+
equivalent to \f(CW\*(C`ARRAYelt\*(C'\fR with a 0 argument.
|
| 970 |
+
.IP "\s-1REFCNT\s0" 4
|
| 971 |
+
.IX Item "REFCNT"
|
| 972 |
+
.PD 0
|
| 973 |
+
.IP "id" 4
|
| 974 |
+
.IX Item "id"
|
| 975 |
+
.PD
|
| 976 |
+
This method, introduced in 5.22, returns an \s-1ID\s0 shared by clones of the same
|
| 977 |
+
padlist.
|
| 978 |
+
.IP "outid" 4
|
| 979 |
+
.IX Item "outid"
|
| 980 |
+
This method, also added in 5.22, returns the \s-1ID\s0 of the outer padlist.
|
| 981 |
+
.SS "B::PADNAMELIST Methods"
|
| 982 |
+
.IX Subsection "B::PADNAMELIST Methods"
|
| 983 |
+
.IP "\s-1MAX\s0" 4
|
| 984 |
+
.IX Item "MAX"
|
| 985 |
+
.PD 0
|
| 986 |
+
.IP "\s-1ARRAY\s0" 4
|
| 987 |
+
.IX Item "ARRAY"
|
| 988 |
+
.IP "ARRAYelt" 4
|
| 989 |
+
.IX Item "ARRAYelt"
|
| 990 |
+
.PD
|
| 991 |
+
These two methods return the pad names, using B::SPECIAL objects for null
|
| 992 |
+
pointers and B::PADNAME objects otherwise.
|
| 993 |
+
.IP "\s-1REFCNT\s0" 4
|
| 994 |
+
.IX Item "REFCNT"
|
| 995 |
+
.SS "B::PADNAME Methods"
|
| 996 |
+
.IX Subsection "B::PADNAME Methods"
|
| 997 |
+
.PD 0
|
| 998 |
+
.IP "\s-1PV\s0" 4
|
| 999 |
+
.IX Item "PV"
|
| 1000 |
+
.IP "\s-1PVX\s0" 4
|
| 1001 |
+
.IX Item "PVX"
|
| 1002 |
+
.IP "\s-1LEN\s0" 4
|
| 1003 |
+
.IX Item "LEN"
|
| 1004 |
+
.IP "\s-1REFCNT\s0" 4
|
| 1005 |
+
.IX Item "REFCNT"
|
| 1006 |
+
.IP "\s-1FLAGS\s0" 4
|
| 1007 |
+
.IX Item "FLAGS"
|
| 1008 |
+
.PD
|
| 1009 |
+
For backward-compatibility, if the PADNAMEt_OUTER flag is set, the \s-1FLAGS\s0
|
| 1010 |
+
method adds the SVf_FAKE flag, too.
|
| 1011 |
+
.IP "\s-1TYPE\s0" 4
|
| 1012 |
+
.IX Item "TYPE"
|
| 1013 |
+
A B::HV object representing the stash for a typed lexical.
|
| 1014 |
+
.IP "SvSTASH" 4
|
| 1015 |
+
.IX Item "SvSTASH"
|
| 1016 |
+
A backward-compatibility alias for \s-1TYPE.\s0
|
| 1017 |
+
.IP "\s-1OURSTASH\s0" 4
|
| 1018 |
+
.IX Item "OURSTASH"
|
| 1019 |
+
A B::HV object representing the stash for 'our' variables.
|
| 1020 |
+
.IP "\s-1PROTOCV\s0" 4
|
| 1021 |
+
.IX Item "PROTOCV"
|
| 1022 |
+
The prototype \s-1CV\s0 for a 'my' sub.
|
| 1023 |
+
.IP "\s-1COP_SEQ_RANGE_LOW\s0" 4
|
| 1024 |
+
.IX Item "COP_SEQ_RANGE_LOW"
|
| 1025 |
+
.PD 0
|
| 1026 |
+
.IP "\s-1COP_SEQ_RANGE_HIGH\s0" 4
|
| 1027 |
+
.IX Item "COP_SEQ_RANGE_HIGH"
|
| 1028 |
+
.PD
|
| 1029 |
+
Sequence numbers representing the scope within which a lexical is visible.
|
| 1030 |
+
Meaningless if PADNAMEt_OUTER is set.
|
| 1031 |
+
.IP "\s-1PARENT_PAD_INDEX\s0" 4
|
| 1032 |
+
.IX Item "PARENT_PAD_INDEX"
|
| 1033 |
+
Only meaningful if PADNAMEt_OUTER is set.
|
| 1034 |
+
.IP "\s-1PARENT_FAKELEX_FLAGS\s0" 4
|
| 1035 |
+
.IX Item "PARENT_FAKELEX_FLAGS"
|
| 1036 |
+
Only meaningful if PADNAMEt_OUTER is set.
|
| 1037 |
+
.ie n .SS "$B::overlay"
|
| 1038 |
+
.el .SS "\f(CW$B::overlay\fP"
|
| 1039 |
+
.IX Subsection "$B::overlay"
|
| 1040 |
+
Although the optree is read-only, there is an overlay facility that allows
|
| 1041 |
+
you to override what values the various B::*OP methods return for a
|
| 1042 |
+
particular op. \f(CW$B::overlay\fR should be set to reference a two-deep hash:
|
| 1043 |
+
indexed by \s-1OP\s0 address, then method name. Whenever a an op method is
|
| 1044 |
+
called, the value in the hash is returned if it exists. This facility is
|
| 1045 |
+
used by B::Deparse to \*(L"undo\*(R" some optimisations. For example:
|
| 1046 |
+
.PP
|
| 1047 |
+
.Vb 11
|
| 1048 |
+
\& local $B::overlay = {};
|
| 1049 |
+
\& ...
|
| 1050 |
+
\& if ($op\->name eq "foo") {
|
| 1051 |
+
\& $B::overlay\->{$$op} = {
|
| 1052 |
+
\& name => \*(Aqbar\*(Aq,
|
| 1053 |
+
\& next => $op\->next\->next,
|
| 1054 |
+
\& };
|
| 1055 |
+
\& }
|
| 1056 |
+
\& ...
|
| 1057 |
+
\& $op\->name # returns "bar"
|
| 1058 |
+
\& $op\->next # returns the next op but one
|
| 1059 |
+
.Ve
|
| 1060 |
+
.SH "AUTHOR"
|
| 1061 |
+
.IX Header "AUTHOR"
|
| 1062 |
+
Malcolm Beattie, \f(CW\*(C`mbeattie@sable.ox.ac.uk\*(C'\fR
|
data/miniconda3/man/man3/CPAN%3A%3AAPI%3A%3AHOWTO.3
ADDED
|
@@ -0,0 +1,179 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "CPAN::API::HOWTO 3"
|
| 136 |
+
.TH CPAN::API::HOWTO 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
CPAN::API::HOWTO \- a recipe book for programming with CPAN.pm
|
| 143 |
+
.SH "RECIPES"
|
| 144 |
+
.IX Header "RECIPES"
|
| 145 |
+
All of these recipes assume that you have put \*(L"use \s-1CPAN\*(R"\s0 at the top of
|
| 146 |
+
your program.
|
| 147 |
+
.SS "What distribution contains a particular module?"
|
| 148 |
+
.IX Subsection "What distribution contains a particular module?"
|
| 149 |
+
.Vb 3
|
| 150 |
+
\& my $distribution = CPAN::Shell\->expand(
|
| 151 |
+
\& "Module", "Data::UUID"
|
| 152 |
+
\& )\->distribution()\->pretty_id();
|
| 153 |
+
.Ve
|
| 154 |
+
.PP
|
| 155 |
+
This returns a string of the form \*(L"\s-1AUTHORID/TARBALL\*(R".\s0 If you want the
|
| 156 |
+
full path and filename to this distribution on a \s-1CPAN\s0 mirror, then it is
|
| 157 |
+
\&\f(CW\*(C`.../authors/id/A/AU/AUTHORID/TARBALL\*(C'\fR.
|
| 158 |
+
.SS "What modules does a particular distribution contain?"
|
| 159 |
+
.IX Subsection "What modules does a particular distribution contain?"
|
| 160 |
+
.Vb 4
|
| 161 |
+
\& CPAN::Index\->reload();
|
| 162 |
+
\& my @modules = CPAN::Shell\->expand(
|
| 163 |
+
\& "Distribution", "JHI/Graph\-0.83.tar.gz"
|
| 164 |
+
\& )\->containsmods();
|
| 165 |
+
.Ve
|
| 166 |
+
.PP
|
| 167 |
+
You may also refer to a distribution in the form A/AU/AUTHORID/TARBALL.
|
| 168 |
+
.SH "SEE ALSO"
|
| 169 |
+
.IX Header "SEE ALSO"
|
| 170 |
+
the main \s-1CPAN\s0.pm documentation
|
| 171 |
+
.SH "LICENSE"
|
| 172 |
+
.IX Header "LICENSE"
|
| 173 |
+
This program is free software; you can redistribute it and/or
|
| 174 |
+
modify it under the same terms as Perl itself.
|
| 175 |
+
.PP
|
| 176 |
+
See <http://www.perl.com/perl/misc/Artistic.html>
|
| 177 |
+
.SH "AUTHOR"
|
| 178 |
+
.IX Header "AUTHOR"
|
| 179 |
+
David Cantrell
|
data/miniconda3/man/man3/CPAN%3A%3ADebug.3
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "CPAN::Debug 3"
|
| 136 |
+
.TH CPAN::Debug 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
CPAN::Debug \- internal debugging for CPAN.pm
|
| 143 |
+
.SH "LICENSE"
|
| 144 |
+
.IX Header "LICENSE"
|
| 145 |
+
This program is free software; you can redistribute it and/or
|
| 146 |
+
modify it under the same terms as Perl itself.
|
data/miniconda3/man/man3/CPAN%3A%3ADistroprefs.3
ADDED
|
@@ -0,0 +1,284 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "CPAN::Distroprefs 3"
|
| 136 |
+
.TH CPAN::Distroprefs 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
CPAN::Distroprefs \-\- read and match distroprefs
|
| 143 |
+
.SH "SYNOPSIS"
|
| 144 |
+
.IX Header "SYNOPSIS"
|
| 145 |
+
.Vb 1
|
| 146 |
+
\& use CPAN::Distroprefs;
|
| 147 |
+
\&
|
| 148 |
+
\& my %info = (... distribution/environment info ...);
|
| 149 |
+
\&
|
| 150 |
+
\& my $finder = CPAN::Distroprefs\->find($prefs_dir, \e%ext_map);
|
| 151 |
+
\&
|
| 152 |
+
\& while (my $result = $finder\->next) {
|
| 153 |
+
\&
|
| 154 |
+
\& die $result\->as_string if $result\->is_fatal;
|
| 155 |
+
\&
|
| 156 |
+
\& warn($result\->as_string), next if $result\->is_warning;
|
| 157 |
+
\&
|
| 158 |
+
\& for my $pref (@{ $result\->prefs }) {
|
| 159 |
+
\& if ($pref\->matches(\e%info)) {
|
| 160 |
+
\& return $pref;
|
| 161 |
+
\& }
|
| 162 |
+
\& }
|
| 163 |
+
\& }
|
| 164 |
+
.Ve
|
| 165 |
+
.SH "DESCRIPTION"
|
| 166 |
+
.IX Header "DESCRIPTION"
|
| 167 |
+
This module encapsulates reading Distroprefs and matching them against \s-1CPAN\s0 distributions.
|
| 168 |
+
.SH "INTERFACE"
|
| 169 |
+
.IX Header "INTERFACE"
|
| 170 |
+
.Vb 1
|
| 171 |
+
\& my $finder = CPAN::Distroprefs\->find($dir, \e%ext_map);
|
| 172 |
+
\&
|
| 173 |
+
\& while (my $result = $finder\->next) { ... }
|
| 174 |
+
.Ve
|
| 175 |
+
.PP
|
| 176 |
+
Build an iterator which finds distroprefs files in the tree below the
|
| 177 |
+
given directory. Within the tree directories matching \f(CW\*(C`m/^[._]/\*(C'\fR are
|
| 178 |
+
pruned.
|
| 179 |
+
.PP
|
| 180 |
+
\&\f(CW%ext_map\fR is a hashref whose keys are file extensions and whose values are
|
| 181 |
+
modules used to load matching files:
|
| 182 |
+
.PP
|
| 183 |
+
.Vb 5
|
| 184 |
+
\& {
|
| 185 |
+
\& \*(Aqyml\*(Aq => \*(AqYAML::Syck\*(Aq,
|
| 186 |
+
\& \*(Aqdd\*(Aq => \*(AqData::Dumper\*(Aq,
|
| 187 |
+
\& ...
|
| 188 |
+
\& }
|
| 189 |
+
.Ve
|
| 190 |
+
.PP
|
| 191 |
+
Each time \f(CW\*(C`$finder\->next\*(C'\fR is called, the iterator returns one of two
|
| 192 |
+
possible values:
|
| 193 |
+
.IP "\(bu" 4
|
| 194 |
+
a CPAN::Distroprefs::Result object
|
| 195 |
+
.IP "\(bu" 4
|
| 196 |
+
\&\f(CW\*(C`undef\*(C'\fR, indicating that no prefs files remain to be found
|
| 197 |
+
.SH "RESULTS"
|
| 198 |
+
.IX Header "RESULTS"
|
| 199 |
+
\&\f(CW\*(C`find()\*(C'\fR returns CPAN::Distroprefs::Result objects to
|
| 200 |
+
indicate success or failure when reading a prefs file.
|
| 201 |
+
.SS "Common"
|
| 202 |
+
.IX Subsection "Common"
|
| 203 |
+
All results share some common attributes:
|
| 204 |
+
.PP
|
| 205 |
+
\fItype\fR
|
| 206 |
+
.IX Subsection "type"
|
| 207 |
+
.PP
|
| 208 |
+
\&\f(CW\*(C`success\*(C'\fR, \f(CW\*(C`warning\*(C'\fR, or \f(CW\*(C`fatal\*(C'\fR
|
| 209 |
+
.PP
|
| 210 |
+
\fIfile\fR
|
| 211 |
+
.IX Subsection "file"
|
| 212 |
+
.PP
|
| 213 |
+
the file from which these prefs were read, or to which this error refers (relative filename)
|
| 214 |
+
.PP
|
| 215 |
+
\fIext\fR
|
| 216 |
+
.IX Subsection "ext"
|
| 217 |
+
.PP
|
| 218 |
+
the file's extension, which determines how to load it
|
| 219 |
+
.PP
|
| 220 |
+
\fIdir\fR
|
| 221 |
+
.IX Subsection "dir"
|
| 222 |
+
.PP
|
| 223 |
+
the directory the file was read from
|
| 224 |
+
.PP
|
| 225 |
+
\fIabs\fR
|
| 226 |
+
.IX Subsection "abs"
|
| 227 |
+
.PP
|
| 228 |
+
the absolute path to the file
|
| 229 |
+
.SS "Errors"
|
| 230 |
+
.IX Subsection "Errors"
|
| 231 |
+
Error results (warning and fatal) contain:
|
| 232 |
+
.PP
|
| 233 |
+
\fImsg\fR
|
| 234 |
+
.IX Subsection "msg"
|
| 235 |
+
.PP
|
| 236 |
+
the error message (usually either \f(CW$!\fR or a \s-1YAML\s0 error)
|
| 237 |
+
.SS "Successes"
|
| 238 |
+
.IX Subsection "Successes"
|
| 239 |
+
Success results contain:
|
| 240 |
+
.PP
|
| 241 |
+
\fIprefs\fR
|
| 242 |
+
.IX Subsection "prefs"
|
| 243 |
+
.PP
|
| 244 |
+
an arrayref of CPAN::Distroprefs::Pref objects
|
| 245 |
+
.SH "PREFS"
|
| 246 |
+
.IX Header "PREFS"
|
| 247 |
+
CPAN::Distroprefs::Pref objects represent individual distroprefs documents.
|
| 248 |
+
They are constructed automatically as part of \f(CW\*(C`success\*(C'\fR results from \f(CW\*(C`find()\*(C'\fR.
|
| 249 |
+
.PP
|
| 250 |
+
\fIdata\fR
|
| 251 |
+
.IX Subsection "data"
|
| 252 |
+
.PP
|
| 253 |
+
the pref information as a hashref, suitable for e.g. passing to Kwalify
|
| 254 |
+
.PP
|
| 255 |
+
\fImatch_attributes\fR
|
| 256 |
+
.IX Subsection "match_attributes"
|
| 257 |
+
.PP
|
| 258 |
+
returns a list of the valid match attributes (see the Distroprefs section in \s-1CPAN\s0)
|
| 259 |
+
.PP
|
| 260 |
+
currently: \f(CW\*(C`env perl perlconfig distribution module\*(C'\fR
|
| 261 |
+
.PP
|
| 262 |
+
\fIhas_any_match\fR
|
| 263 |
+
.IX Subsection "has_any_match"
|
| 264 |
+
.PP
|
| 265 |
+
true if this pref has a 'match' attribute at all
|
| 266 |
+
.PP
|
| 267 |
+
\fIhas_valid_subkeys\fR
|
| 268 |
+
.IX Subsection "has_valid_subkeys"
|
| 269 |
+
.PP
|
| 270 |
+
true if this pref has a 'match' attribute and at least one valid match attribute
|
| 271 |
+
.PP
|
| 272 |
+
\fImatches\fR
|
| 273 |
+
.IX Subsection "matches"
|
| 274 |
+
.PP
|
| 275 |
+
.Vb 1
|
| 276 |
+
\& if ($pref\->matches(\e%arg)) { ... }
|
| 277 |
+
.Ve
|
| 278 |
+
.PP
|
| 279 |
+
true if this pref matches the passed-in hashref, which must have a value for
|
| 280 |
+
each of the \f(CW\*(C`match_attributes\*(C'\fR (above)
|
| 281 |
+
.SH "LICENSE"
|
| 282 |
+
.IX Header "LICENSE"
|
| 283 |
+
This program is free software; you can redistribute it and/or modify it under
|
| 284 |
+
the same terms as Perl itself.
|
data/miniconda3/man/man3/CPAN%3A%3AFirstTime.3
ADDED
|
@@ -0,0 +1,737 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "CPAN::FirstTime 3"
|
| 136 |
+
.TH CPAN::FirstTime 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
CPAN::FirstTime \- Utility for CPAN::Config file Initialization
|
| 143 |
+
.SH "SYNOPSIS"
|
| 144 |
+
.IX Header "SYNOPSIS"
|
| 145 |
+
\&\fBCPAN::FirstTime::init()\fR
|
| 146 |
+
.SH "DESCRIPTION"
|
| 147 |
+
.IX Header "DESCRIPTION"
|
| 148 |
+
The init routine asks a few questions and writes a CPAN/Config.pm or
|
| 149 |
+
CPAN/MyConfig.pm file (depending on what it is currently using).
|
| 150 |
+
.PP
|
| 151 |
+
In the following all questions and explanations regarding config
|
| 152 |
+
variables are collected.
|
| 153 |
+
.IP "allow_installing_module_downgrades" 2
|
| 154 |
+
.IX Item "allow_installing_module_downgrades"
|
| 155 |
+
The \s-1CPAN\s0 shell can watch the \f(CW\*(C`blib/\*(C'\fR directories that are built up
|
| 156 |
+
before running \f(CW\*(C`make test\*(C'\fR to determine whether the current
|
| 157 |
+
distribution will end up with modules being overwritten with decreasing module version numbers. It
|
| 158 |
+
can then let the build of this distro fail when it discovers a
|
| 159 |
+
downgrade.
|
| 160 |
+
.Sp
|
| 161 |
+
Do you want to allow installing distros with decreasing module
|
| 162 |
+
versions compared to what you have installed (yes, no, ask/yes,
|
| 163 |
+
ask/no)?
|
| 164 |
+
.IP "allow_installing_outdated_dists" 2
|
| 165 |
+
.IX Item "allow_installing_outdated_dists"
|
| 166 |
+
The \s-1CPAN\s0 shell can watch the \f(CW\*(C`blib/\*(C'\fR directories that are built up
|
| 167 |
+
before running \f(CW\*(C`make test\*(C'\fR to determine whether the current
|
| 168 |
+
distribution contains modules that are indexed with a distro with a
|
| 169 |
+
higher distro-version number than the current one. It can
|
| 170 |
+
then let the build of this distro fail when it would not represent the
|
| 171 |
+
most up-to-date version of the distro.
|
| 172 |
+
.Sp
|
| 173 |
+
Note: choosing anyhing but 'yes' for this option will need
|
| 174 |
+
Devel::DistnameInfo being installed for taking effect.
|
| 175 |
+
.Sp
|
| 176 |
+
Do you want to allow installing distros that are not indexed as the
|
| 177 |
+
highest distro-version for all contained modules (yes, no, ask/yes,
|
| 178 |
+
ask/no)?
|
| 179 |
+
.IP "auto_commit" 2
|
| 180 |
+
.IX Item "auto_commit"
|
| 181 |
+
Normally \s-1CPAN\s0.pm keeps config variables in memory and changes need to
|
| 182 |
+
be saved in a separate 'o conf commit' command to make them permanent
|
| 183 |
+
between sessions. If you set the 'auto_commit' option to true, changes
|
| 184 |
+
to a config variable are always automatically committed to disk.
|
| 185 |
+
.Sp
|
| 186 |
+
Always commit changes to config variables to disk?
|
| 187 |
+
.IP "build_cache" 2
|
| 188 |
+
.IX Item "build_cache"
|
| 189 |
+
\&\s-1CPAN\s0.pm can limit the size of the disk area for keeping the build
|
| 190 |
+
directories with all the intermediate files.
|
| 191 |
+
.Sp
|
| 192 |
+
Cache size for build directory (in \s-1MB\s0)?
|
| 193 |
+
.IP "build_dir" 2
|
| 194 |
+
.IX Item "build_dir"
|
| 195 |
+
Directory where the build process takes place?
|
| 196 |
+
.IP "build_dir_reuse" 2
|
| 197 |
+
.IX Item "build_dir_reuse"
|
| 198 |
+
Until version 1.88 \s-1CPAN\s0.pm never trusted the contents of the build_dir
|
| 199 |
+
directory between sessions. Since 1.88_58 \s-1CPAN\s0.pm has a YAML-based
|
| 200 |
+
mechanism that makes it possible to share the contents of the
|
| 201 |
+
build_dir/ directory between different sessions with the same version
|
| 202 |
+
of perl. People who prefer to test things several days before
|
| 203 |
+
installing will like this feature because it saves a lot of time.
|
| 204 |
+
.Sp
|
| 205 |
+
If you say yes to the following question, \s-1CPAN\s0 will try to store
|
| 206 |
+
enough information about the build process so that it can pick up in
|
| 207 |
+
future sessions at the same state of affairs as it left a previous
|
| 208 |
+
session.
|
| 209 |
+
.Sp
|
| 210 |
+
Store and re-use state information about distributions between
|
| 211 |
+
\&\s-1CPAN\s0.pm sessions?
|
| 212 |
+
.IP "build_requires_install_policy" 2
|
| 213 |
+
.IX Item "build_requires_install_policy"
|
| 214 |
+
When a module declares another one as a 'build_requires' prerequisite
|
| 215 |
+
this means that the other module is only needed for building or
|
| 216 |
+
testing the module but need not be installed permanently. In this case
|
| 217 |
+
you may wish to install that other module nonetheless or just keep it
|
| 218 |
+
in the 'build_dir' directory to have it available only temporarily.
|
| 219 |
+
Installing saves time on future installations but makes the perl
|
| 220 |
+
installation bigger.
|
| 221 |
+
.Sp
|
| 222 |
+
You can choose if you want to always install (yes), never install (no)
|
| 223 |
+
or be always asked. In the latter case you can set the default answer
|
| 224 |
+
for the question to yes (ask/yes) or no (ask/no).
|
| 225 |
+
.Sp
|
| 226 |
+
Policy on installing 'build_requires' modules (yes, no, ask/yes,
|
| 227 |
+
ask/no)?
|
| 228 |
+
.IP "cache_metadata" 2
|
| 229 |
+
.IX Item "cache_metadata"
|
| 230 |
+
To considerably speed up the initial \s-1CPAN\s0 shell startup, it is
|
| 231 |
+
possible to use Storable to create a cache of metadata. If Storable is
|
| 232 |
+
not available, the normal index mechanism will be used.
|
| 233 |
+
.Sp
|
| 234 |
+
Note: this mechanism is not used when use_sqlite is on and SQLLite is
|
| 235 |
+
running.
|
| 236 |
+
.Sp
|
| 237 |
+
Cache metadata (yes/no)?
|
| 238 |
+
.IP "check_sigs" 2
|
| 239 |
+
.IX Item "check_sigs"
|
| 240 |
+
\&\s-1CPAN\s0 packages can be digitally signed by authors and thus verified
|
| 241 |
+
with the security provided by strong cryptography. The exact mechanism
|
| 242 |
+
is defined in the Module::Signature module. While this is generally
|
| 243 |
+
considered a good thing, it is not always convenient to the end user
|
| 244 |
+
to install modules that are signed incorrectly or where the key of the
|
| 245 |
+
author is not available or where some prerequisite for
|
| 246 |
+
Module::Signature has a bug and so on.
|
| 247 |
+
.Sp
|
| 248 |
+
With the check_sigs parameter you can turn signature checking on and
|
| 249 |
+
off. The default is off for now because the whole tool chain for the
|
| 250 |
+
functionality is not yet considered mature by some. The author of
|
| 251 |
+
\&\s-1CPAN\s0.pm would recommend setting it to true most of the time and
|
| 252 |
+
turning it off only if it turns out to be annoying.
|
| 253 |
+
.Sp
|
| 254 |
+
Note that if you do not have Module::Signature installed, no signature
|
| 255 |
+
checks will be performed at all.
|
| 256 |
+
.Sp
|
| 257 |
+
Always try to check and verify signatures if a \s-1SIGNATURE\s0 file is in
|
| 258 |
+
the package and Module::Signature is installed (yes/no)?
|
| 259 |
+
.IP "cleanup_after_install" 2
|
| 260 |
+
.IX Item "cleanup_after_install"
|
| 261 |
+
Users who install modules and do not intend to look back, can free
|
| 262 |
+
occupied disk space quickly by letting \s-1CPAN\s0.pm cleanup each build
|
| 263 |
+
directory immediately after a successful install.
|
| 264 |
+
.Sp
|
| 265 |
+
Remove build directory after a successful install? (yes/no)?
|
| 266 |
+
.IP "colorize_output" 2
|
| 267 |
+
.IX Item "colorize_output"
|
| 268 |
+
When you have Term::ANSIColor installed, you can turn on colorized
|
| 269 |
+
output to have some visual differences between normal \s-1CPAN\s0.pm output,
|
| 270 |
+
warnings, debugging output, and the output of the modules being
|
| 271 |
+
installed. Set your favorite colors after some experimenting with the
|
| 272 |
+
Term::ANSIColor module.
|
| 273 |
+
.Sp
|
| 274 |
+
Please note that on Windows platforms colorized output also requires
|
| 275 |
+
the Win32::Console::ANSI module.
|
| 276 |
+
.Sp
|
| 277 |
+
Do you want to turn on colored output?
|
| 278 |
+
.IP "colorize_print" 2
|
| 279 |
+
.IX Item "colorize_print"
|
| 280 |
+
Color for normal output?
|
| 281 |
+
.IP "colorize_warn" 2
|
| 282 |
+
.IX Item "colorize_warn"
|
| 283 |
+
Color for warnings?
|
| 284 |
+
.IP "colorize_debug" 2
|
| 285 |
+
.IX Item "colorize_debug"
|
| 286 |
+
Color for debugging messages?
|
| 287 |
+
.IP "commandnumber_in_prompt" 2
|
| 288 |
+
.IX Item "commandnumber_in_prompt"
|
| 289 |
+
The prompt of the cpan shell can contain the current command number
|
| 290 |
+
for easier tracking of the session or be a plain string.
|
| 291 |
+
.Sp
|
| 292 |
+
Do you want the command number in the prompt (yes/no)?
|
| 293 |
+
.IP "connect_to_internet_ok" 2
|
| 294 |
+
.IX Item "connect_to_internet_ok"
|
| 295 |
+
If you have never defined your own \f(CW\*(C`urllist\*(C'\fR in your configuration
|
| 296 |
+
then \f(CW\*(C`CPAN.pm\*(C'\fR will be hesitant to use the built in default sites for
|
| 297 |
+
downloading. It will ask you once per session if a connection to the
|
| 298 |
+
internet is \s-1OK\s0 and only if you say yes, it will try to connect. But to
|
| 299 |
+
avoid this question, you can choose your favorite download sites once
|
| 300 |
+
and get away with it. Or, if you have no favorite download sites
|
| 301 |
+
answer yes to the following question.
|
| 302 |
+
.Sp
|
| 303 |
+
If no urllist has been chosen yet, would you prefer \s-1CPAN\s0.pm to connect
|
| 304 |
+
to the built-in default sites without asking? (yes/no)?
|
| 305 |
+
.IP "ftp_passive" 2
|
| 306 |
+
.IX Item "ftp_passive"
|
| 307 |
+
Shall we always set the \s-1FTP_PASSIVE\s0 environment variable when dealing
|
| 308 |
+
with ftp download (yes/no)?
|
| 309 |
+
.IP "ftpstats_period" 2
|
| 310 |
+
.IX Item "ftpstats_period"
|
| 311 |
+
Statistics about downloads are truncated by size and period
|
| 312 |
+
simultaneously.
|
| 313 |
+
.Sp
|
| 314 |
+
How many days shall we keep statistics about downloads?
|
| 315 |
+
.IP "ftpstats_size" 2
|
| 316 |
+
.IX Item "ftpstats_size"
|
| 317 |
+
Statistics about downloads are truncated by size and period
|
| 318 |
+
simultaneously. Setting this to zero or negative disables download
|
| 319 |
+
statistics.
|
| 320 |
+
.Sp
|
| 321 |
+
How many items shall we keep in the statistics about downloads?
|
| 322 |
+
.IP "getcwd" 2
|
| 323 |
+
.IX Item "getcwd"
|
| 324 |
+
\&\s-1CPAN\s0.pm changes the current working directory often and needs to
|
| 325 |
+
determine its own current working directory. Per default it uses
|
| 326 |
+
Cwd::cwd but if this doesn't work on your system for some reason,
|
| 327 |
+
alternatives can be configured according to the following table:
|
| 328 |
+
.Sp
|
| 329 |
+
.Vb 5
|
| 330 |
+
\& cwd Cwd::cwd
|
| 331 |
+
\& getcwd Cwd::getcwd
|
| 332 |
+
\& fastcwd Cwd::fastcwd
|
| 333 |
+
\& getdcwd Cwd::getdcwd
|
| 334 |
+
\& backtickcwd external command cwd
|
| 335 |
+
.Ve
|
| 336 |
+
.Sp
|
| 337 |
+
Preferred method for determining the current working directory?
|
| 338 |
+
.IP "halt_on_failure" 2
|
| 339 |
+
.IX Item "halt_on_failure"
|
| 340 |
+
Normally, \s-1CPAN\s0.pm continues processing the full list of targets and
|
| 341 |
+
dependencies, even if one of them fails. However, you can specify
|
| 342 |
+
that \s-1CPAN\s0 should halt after the first failure. (Note that optional
|
| 343 |
+
recommended or suggested modules that fail will not cause a halt.)
|
| 344 |
+
.Sp
|
| 345 |
+
Do you want to halt on failure (yes/no)?
|
| 346 |
+
.IP "histfile" 2
|
| 347 |
+
.IX Item "histfile"
|
| 348 |
+
If you have one of the readline packages (Term::ReadLine::Perl,
|
| 349 |
+
Term::ReadLine::Gnu, possibly others) installed, the interactive \s-1CPAN\s0
|
| 350 |
+
shell will have history support. The next two questions deal with the
|
| 351 |
+
filename of the history file and with its size. If you do not want to
|
| 352 |
+
set this variable, please hit \s-1SPACE ENTER\s0 to the following question.
|
| 353 |
+
.Sp
|
| 354 |
+
File to save your history?
|
| 355 |
+
.IP "histsize" 2
|
| 356 |
+
.IX Item "histsize"
|
| 357 |
+
Number of lines to save?
|
| 358 |
+
.IP "inactivity_timeout" 2
|
| 359 |
+
.IX Item "inactivity_timeout"
|
| 360 |
+
Sometimes you may wish to leave the processes run by \s-1CPAN\s0 alone
|
| 361 |
+
without caring about them. Because the Makefile.PL or the Build.PL
|
| 362 |
+
sometimes contains question you're expected to answer, you can set a
|
| 363 |
+
timer that will kill a 'perl Makefile.PL' process after the specified
|
| 364 |
+
time in seconds.
|
| 365 |
+
.Sp
|
| 366 |
+
If you set this value to 0, these processes will wait forever. This is
|
| 367 |
+
the default and recommended setting.
|
| 368 |
+
.Sp
|
| 369 |
+
Timeout for inactivity during {Makefile,Build}.PL?
|
| 370 |
+
.IP "index_expire" 2
|
| 371 |
+
.IX Item "index_expire"
|
| 372 |
+
The \s-1CPAN\s0 indexes are usually rebuilt once or twice per hour, but the
|
| 373 |
+
typical \s-1CPAN\s0 mirror mirrors only once or twice per day. Depending on
|
| 374 |
+
the quality of your mirror and your desire to be on the bleeding edge,
|
| 375 |
+
you may want to set the following value to more or less than one day
|
| 376 |
+
(which is the default). It determines after how many days \s-1CPAN\s0.pm
|
| 377 |
+
downloads new indexes.
|
| 378 |
+
.Sp
|
| 379 |
+
Let the index expire after how many days?
|
| 380 |
+
.IP "inhibit_startup_message" 2
|
| 381 |
+
.IX Item "inhibit_startup_message"
|
| 382 |
+
When the \s-1CPAN\s0 shell is started it normally displays a greeting message
|
| 383 |
+
that contains the running version and the status of readline support.
|
| 384 |
+
.Sp
|
| 385 |
+
Do you want to turn this message off?
|
| 386 |
+
.IP "keep_source_where" 2
|
| 387 |
+
.IX Item "keep_source_where"
|
| 388 |
+
Unless you are accessing the \s-1CPAN\s0 on your filesystem via a file: \s-1URL,
|
| 389 |
+
CPAN\s0.pm needs to keep the source files it downloads somewhere. Please
|
| 390 |
+
supply a directory where the downloaded files are to be kept.
|
| 391 |
+
.Sp
|
| 392 |
+
Download target directory?
|
| 393 |
+
.IP "load_module_verbosity" 2
|
| 394 |
+
.IX Item "load_module_verbosity"
|
| 395 |
+
When \s-1CPAN\s0.pm loads a module it needs for some optional feature, it
|
| 396 |
+
usually reports about module name and version. Choose 'v' to get this
|
| 397 |
+
message, 'none' to suppress it.
|
| 398 |
+
.Sp
|
| 399 |
+
Verbosity level for loading modules (none or v)?
|
| 400 |
+
.IP "makepl_arg" 2
|
| 401 |
+
.IX Item "makepl_arg"
|
| 402 |
+
Every Makefile.PL is run by perl in a separate process. Likewise we
|
| 403 |
+
run 'make' and 'make install' in separate processes. If you have
|
| 404 |
+
any parameters (e.g. \s-1PREFIX, UNINST\s0 or the like) you want to
|
| 405 |
+
pass to the calls, please specify them here.
|
| 406 |
+
.Sp
|
| 407 |
+
If you don't understand this question, just press \s-1ENTER.\s0
|
| 408 |
+
.Sp
|
| 409 |
+
Typical frequently used settings:
|
| 410 |
+
.Sp
|
| 411 |
+
.Vb 1
|
| 412 |
+
\& PREFIX=~/perl # non\-root users (please see manual for more hints)
|
| 413 |
+
.Ve
|
| 414 |
+
.Sp
|
| 415 |
+
Parameters for the 'perl Makefile.PL' command?
|
| 416 |
+
.IP "make_arg" 2
|
| 417 |
+
.IX Item "make_arg"
|
| 418 |
+
Parameters for the 'make' command? Typical frequently used setting:
|
| 419 |
+
.Sp
|
| 420 |
+
.Vb 1
|
| 421 |
+
\& \-j3 # dual processor system (on GNU make)
|
| 422 |
+
.Ve
|
| 423 |
+
.Sp
|
| 424 |
+
Your choice:
|
| 425 |
+
.IP "make_install_arg" 2
|
| 426 |
+
.IX Item "make_install_arg"
|
| 427 |
+
Parameters for the 'make install' command?
|
| 428 |
+
Typical frequently used setting:
|
| 429 |
+
.Sp
|
| 430 |
+
.Vb 2
|
| 431 |
+
\& UNINST=1 # to always uninstall potentially conflicting files
|
| 432 |
+
\& # (but do NOT use with local::lib or INSTALL_BASE)
|
| 433 |
+
.Ve
|
| 434 |
+
.Sp
|
| 435 |
+
Your choice:
|
| 436 |
+
.IP "make_install_make_command" 2
|
| 437 |
+
.IX Item "make_install_make_command"
|
| 438 |
+
Do you want to use a different make command for 'make install'?
|
| 439 |
+
Cautious people will probably prefer:
|
| 440 |
+
.Sp
|
| 441 |
+
.Vb 5
|
| 442 |
+
\& su root \-c make
|
| 443 |
+
\& or
|
| 444 |
+
\& sudo make
|
| 445 |
+
\& or
|
| 446 |
+
\& /path1/to/sudo \-u admin_account /path2/to/make
|
| 447 |
+
.Ve
|
| 448 |
+
.Sp
|
| 449 |
+
or some such. Your choice:
|
| 450 |
+
.IP "mbuildpl_arg" 2
|
| 451 |
+
.IX Item "mbuildpl_arg"
|
| 452 |
+
A Build.PL is run by perl in a separate process. Likewise we run
|
| 453 |
+
\&'./Build' and './Build install' in separate processes. If you have any
|
| 454 |
+
parameters you want to pass to the calls, please specify them here.
|
| 455 |
+
.Sp
|
| 456 |
+
Typical frequently used settings:
|
| 457 |
+
.Sp
|
| 458 |
+
.Vb 1
|
| 459 |
+
\& \-\-install_base /home/xxx # different installation directory
|
| 460 |
+
.Ve
|
| 461 |
+
.Sp
|
| 462 |
+
Parameters for the 'perl Build.PL' command?
|
| 463 |
+
.IP "mbuild_arg" 2
|
| 464 |
+
.IX Item "mbuild_arg"
|
| 465 |
+
Parameters for the './Build' command? Setting might be:
|
| 466 |
+
.Sp
|
| 467 |
+
.Vb 1
|
| 468 |
+
\& \-\-extra_linker_flags \-L/usr/foo/lib # non\-standard library location
|
| 469 |
+
.Ve
|
| 470 |
+
.Sp
|
| 471 |
+
Your choice:
|
| 472 |
+
.IP "mbuild_install_arg" 2
|
| 473 |
+
.IX Item "mbuild_install_arg"
|
| 474 |
+
Parameters for the './Build install' command? Typical frequently used
|
| 475 |
+
setting:
|
| 476 |
+
.Sp
|
| 477 |
+
.Vb 2
|
| 478 |
+
\& \-\-uninst 1 # uninstall conflicting files
|
| 479 |
+
\& # (but do NOT use with local::lib or INSTALL_BASE)
|
| 480 |
+
.Ve
|
| 481 |
+
.Sp
|
| 482 |
+
Your choice:
|
| 483 |
+
.IP "mbuild_install_build_command" 2
|
| 484 |
+
.IX Item "mbuild_install_build_command"
|
| 485 |
+
Do you want to use a different command for './Build install'? Sudo
|
| 486 |
+
users will probably prefer:
|
| 487 |
+
.Sp
|
| 488 |
+
.Vb 5
|
| 489 |
+
\& su root \-c ./Build
|
| 490 |
+
\& or
|
| 491 |
+
\& sudo ./Build
|
| 492 |
+
\& or
|
| 493 |
+
\& /path1/to/sudo \-u admin_account ./Build
|
| 494 |
+
.Ve
|
| 495 |
+
.Sp
|
| 496 |
+
or some such. Your choice:
|
| 497 |
+
.IP "pager" 2
|
| 498 |
+
.IX Item "pager"
|
| 499 |
+
What is your favorite pager program?
|
| 500 |
+
.IP "prefer_installer" 2
|
| 501 |
+
.IX Item "prefer_installer"
|
| 502 |
+
When you have Module::Build installed and a module comes with both a
|
| 503 |
+
Makefile.PL and a Build.PL, which shall have precedence?
|
| 504 |
+
.Sp
|
| 505 |
+
The main two standard installer modules are the old and well
|
| 506 |
+
established ExtUtils::MakeMaker (for short: \s-1EUMM\s0) which uses the
|
| 507 |
+
Makefile.PL. And the next generation installer Module::Build (\s-1MB\s0)
|
| 508 |
+
which works with the Build.PL (and often comes with a Makefile.PL
|
| 509 |
+
too). If a module comes only with one of the two we will use that one
|
| 510 |
+
but if both are supplied then a decision must be made between \s-1EUMM\s0 and
|
| 511 |
+
\&\s-1MB.\s0 See also http://rt.cpan.org/Ticket/Display.html?id=29235 for a
|
| 512 |
+
discussion about the right default.
|
| 513 |
+
.Sp
|
| 514 |
+
Or, as a third option you can choose \s-1RAND\s0 which will make a random
|
| 515 |
+
decision (something regular \s-1CPAN\s0 testers will enjoy).
|
| 516 |
+
.Sp
|
| 517 |
+
In case you can choose between running a Makefile.PL or a Build.PL,
|
| 518 |
+
which installer would you prefer (\s-1EUMM\s0 or \s-1MB\s0 or \s-1RAND\s0)?
|
| 519 |
+
.IP "prefs_dir" 2
|
| 520 |
+
.IX Item "prefs_dir"
|
| 521 |
+
\&\s-1CPAN\s0.pm can store customized build environments based on regular
|
| 522 |
+
expressions for distribution names. These are \s-1YAML\s0 files where the
|
| 523 |
+
default options for \s-1CPAN\s0.pm and the environment can be overridden and
|
| 524 |
+
dialog sequences can be stored that can later be executed by an
|
| 525 |
+
Expect.pm object. The \s-1CPAN\s0.pm distribution comes with some prefab \s-1YAML\s0
|
| 526 |
+
files that cover sample distributions that can be used as blueprints
|
| 527 |
+
to store your own prefs. Please check out the distroprefs/ directory of
|
| 528 |
+
the \s-1CPAN\s0.pm distribution to get a quick start into the prefs system.
|
| 529 |
+
.Sp
|
| 530 |
+
Directory where to store default options/environment/dialogs for
|
| 531 |
+
building modules that need some customization?
|
| 532 |
+
.IP "prerequisites_policy" 2
|
| 533 |
+
.IX Item "prerequisites_policy"
|
| 534 |
+
The \s-1CPAN\s0 module can detect when a module which you are trying to build
|
| 535 |
+
depends on prerequisites. If this happens, it can build the
|
| 536 |
+
prerequisites for you automatically ('follow'), ask you for
|
| 537 |
+
confirmation ('ask'), or just ignore them ('ignore'). Choosing
|
| 538 |
+
\&'follow' also sets \s-1PERL_AUTOINSTALL\s0 and \s-1PERL_EXTUTILS_AUTOINSTALL\s0 for
|
| 539 |
+
\&\*(L"\-\-defaultdeps\*(R" if not already set.
|
| 540 |
+
.Sp
|
| 541 |
+
Please set your policy to one of the three values.
|
| 542 |
+
.Sp
|
| 543 |
+
Policy on building prerequisites (follow, ask or ignore)?
|
| 544 |
+
.IP "randomize_urllist" 2
|
| 545 |
+
.IX Item "randomize_urllist"
|
| 546 |
+
\&\s-1CPAN\s0.pm can introduce some randomness when using hosts for download
|
| 547 |
+
that are configured in the urllist parameter. Enter a numeric value
|
| 548 |
+
between 0 and 1 to indicate how often you want to let \s-1CPAN\s0.pm try a
|
| 549 |
+
random host from the urllist. A value of one specifies to always use a
|
| 550 |
+
random host as the first try. A value of zero means no randomness at
|
| 551 |
+
all. Anything in between specifies how often, on average, a random
|
| 552 |
+
host should be tried first.
|
| 553 |
+
.Sp
|
| 554 |
+
Randomize parameter
|
| 555 |
+
.IP "recommends_policy" 2
|
| 556 |
+
.IX Item "recommends_policy"
|
| 557 |
+
(Experimental feature!) Some \s-1CPAN\s0 modules recommend additional, optional dependencies. These should
|
| 558 |
+
generally be installed except in resource constrained environments. When this
|
| 559 |
+
policy is true, recommended modules will be included with required modules.
|
| 560 |
+
.Sp
|
| 561 |
+
Include recommended modules?
|
| 562 |
+
.IP "scan_cache" 2
|
| 563 |
+
.IX Item "scan_cache"
|
| 564 |
+
By default, each time the \s-1CPAN\s0 module is started, cache scanning is
|
| 565 |
+
performed to keep the cache size in sync ('atstart'). Alternatively,
|
| 566 |
+
scanning and cleanup can happen when \s-1CPAN\s0 exits ('atexit'). To prevent
|
| 567 |
+
any cache cleanup, answer 'never'.
|
| 568 |
+
.Sp
|
| 569 |
+
Perform cache scanning ('atstart', 'atexit' or 'never')?
|
| 570 |
+
.IP "shell" 2
|
| 571 |
+
.IX Item "shell"
|
| 572 |
+
What is your favorite shell?
|
| 573 |
+
.IP "show_unparsable_versions" 2
|
| 574 |
+
.IX Item "show_unparsable_versions"
|
| 575 |
+
During the 'r' command \s-1CPAN\s0.pm finds modules without version number.
|
| 576 |
+
When the command finishes, it prints a report about this. If you
|
| 577 |
+
want this report to be very verbose, say yes to the following
|
| 578 |
+
variable.
|
| 579 |
+
.Sp
|
| 580 |
+
Show all individual modules that have no \f(CW$VERSION\fR?
|
| 581 |
+
.IP "show_upload_date" 2
|
| 582 |
+
.IX Item "show_upload_date"
|
| 583 |
+
The 'd' and the 'm' command normally only show you information they
|
| 584 |
+
have in their in-memory database and thus will never connect to the
|
| 585 |
+
internet. If you set the 'show_upload_date' variable to true, 'm' and
|
| 586 |
+
\&'d' will additionally show you the upload date of the module or
|
| 587 |
+
distribution. Per default this feature is off because it may require a
|
| 588 |
+
net connection to get at the upload date.
|
| 589 |
+
.Sp
|
| 590 |
+
Always try to show upload date with 'd' and 'm' command (yes/no)?
|
| 591 |
+
.IP "show_zero_versions" 2
|
| 592 |
+
.IX Item "show_zero_versions"
|
| 593 |
+
During the 'r' command \s-1CPAN\s0.pm finds modules with a version number of
|
| 594 |
+
zero. When the command finishes, it prints a report about this. If you
|
| 595 |
+
want this report to be very verbose, say yes to the following
|
| 596 |
+
variable.
|
| 597 |
+
.Sp
|
| 598 |
+
Show all individual modules that have a \f(CW$VERSION\fR of zero?
|
| 599 |
+
.IP "suggests_policy" 2
|
| 600 |
+
.IX Item "suggests_policy"
|
| 601 |
+
(Experimental feature!) Some \s-1CPAN\s0 modules suggest additional, optional dependencies. These 'suggest'
|
| 602 |
+
dependencies provide enhanced operation. When this policy is true, suggested
|
| 603 |
+
modules will be included with required modules.
|
| 604 |
+
.Sp
|
| 605 |
+
Include suggested modules?
|
| 606 |
+
.IP "tar_verbosity" 2
|
| 607 |
+
.IX Item "tar_verbosity"
|
| 608 |
+
When \s-1CPAN\s0.pm uses the tar command, which switch for the verbosity
|
| 609 |
+
shall be used? Choose 'none' for quiet operation, 'v' for file
|
| 610 |
+
name listing, 'vv' for full listing.
|
| 611 |
+
.Sp
|
| 612 |
+
Tar command verbosity level (none or v or vv)?
|
| 613 |
+
.IP "term_is_latin" 2
|
| 614 |
+
.IX Item "term_is_latin"
|
| 615 |
+
The next option deals with the charset (a.k.a. character set) your
|
| 616 |
+
terminal supports. In general, \s-1CPAN\s0 is English speaking territory, so
|
| 617 |
+
the charset does not matter much but some \s-1CPAN\s0 have names that are
|
| 618 |
+
outside the \s-1ASCII\s0 range. If your terminal supports \s-1UTF\-8,\s0 you should
|
| 619 |
+
say no to the next question. If it expects \s-1ISO\-8859\-1\s0 (also known as
|
| 620 |
+
\&\s-1LATIN1\s0) then you should say yes. If it supports neither, your answer
|
| 621 |
+
does not matter because you will not be able to read the names of some
|
| 622 |
+
authors anyway. If you answer no, names will be output in \s-1UTF\-8.\s0
|
| 623 |
+
.Sp
|
| 624 |
+
Your terminal expects \s-1ISO\-8859\-1\s0 (yes/no)?
|
| 625 |
+
.IP "term_ornaments" 2
|
| 626 |
+
.IX Item "term_ornaments"
|
| 627 |
+
When using Term::ReadLine, you can turn ornaments on so that your
|
| 628 |
+
input stands out against the output from \s-1CPAN\s0.pm.
|
| 629 |
+
.Sp
|
| 630 |
+
Do you want to turn ornaments on?
|
| 631 |
+
.IP "test_report" 2
|
| 632 |
+
.IX Item "test_report"
|
| 633 |
+
The goal of the \s-1CPAN\s0 Testers project (http://testers.cpan.org/) is to
|
| 634 |
+
test as many \s-1CPAN\s0 packages as possible on as many platforms as
|
| 635 |
+
possible. This provides valuable feedback to module authors and
|
| 636 |
+
potential users to identify bugs or platform compatibility issues and
|
| 637 |
+
improves the overall quality and value of \s-1CPAN.\s0
|
| 638 |
+
.Sp
|
| 639 |
+
One way you can contribute is to send test results for each module
|
| 640 |
+
that you install. If you install the CPAN::Reporter module, you have
|
| 641 |
+
the option to automatically generate and deliver test reports to \s-1CPAN\s0
|
| 642 |
+
Testers whenever you run tests on a \s-1CPAN\s0 package.
|
| 643 |
+
.Sp
|
| 644 |
+
See the CPAN::Reporter documentation for additional details and
|
| 645 |
+
configuration settings. If your firewall blocks outgoing traffic,
|
| 646 |
+
you may need to configure CPAN::Reporter before sending reports.
|
| 647 |
+
.Sp
|
| 648 |
+
Generate test reports if CPAN::Reporter is installed (yes/no)?
|
| 649 |
+
.IP "perl5lib_verbosity" 2
|
| 650 |
+
.IX Item "perl5lib_verbosity"
|
| 651 |
+
When \s-1CPAN\s0.pm extends \f(CW@INC\fR via \s-1PERL5LIB,\s0 it prints a list of
|
| 652 |
+
directories added (or a summary of how many directories are
|
| 653 |
+
added). Choose 'v' to get this message, 'none' to suppress it.
|
| 654 |
+
.Sp
|
| 655 |
+
Verbosity level for \s-1PERL5LIB\s0 changes (none or v)?
|
| 656 |
+
.IP "prefer_external_tar" 2
|
| 657 |
+
.IX Item "prefer_external_tar"
|
| 658 |
+
Per default all untar operations are done with the perl module
|
| 659 |
+
Archive::Tar; by setting this variable to true the external tar
|
| 660 |
+
command is used if available; on Unix this is usually preferred
|
| 661 |
+
because they have a reliable and fast gnutar implementation.
|
| 662 |
+
.Sp
|
| 663 |
+
Use the external tar program instead of Archive::Tar?
|
| 664 |
+
.IP "trust_test_report_history" 2
|
| 665 |
+
.IX Item "trust_test_report_history"
|
| 666 |
+
When a distribution has already been tested by CPAN::Reporter on
|
| 667 |
+
this machine, \s-1CPAN\s0 can skip the test phase and just rely on the
|
| 668 |
+
test report history instead.
|
| 669 |
+
.Sp
|
| 670 |
+
Note that this will not apply to distributions that failed tests
|
| 671 |
+
because of missing dependencies. Also, tests can be run
|
| 672 |
+
regardless of the history using \*(L"force\*(R".
|
| 673 |
+
.Sp
|
| 674 |
+
Do you want to rely on the test report history (yes/no)?
|
| 675 |
+
.IP "urllist_ping_external" 2
|
| 676 |
+
.IX Item "urllist_ping_external"
|
| 677 |
+
When automatic selection of the nearest cpan mirrors is performed,
|
| 678 |
+
turn on the use of the external ping via Net::Ping::External. This is
|
| 679 |
+
recommended in the case the local network has a transparent proxy.
|
| 680 |
+
.Sp
|
| 681 |
+
Do you want to use the external ping command when autoselecting
|
| 682 |
+
mirrors?
|
| 683 |
+
.IP "urllist_ping_verbose" 2
|
| 684 |
+
.IX Item "urllist_ping_verbose"
|
| 685 |
+
When automatic selection of the nearest cpan mirrors is performed,
|
| 686 |
+
this option can be used to turn on verbosity during the selection
|
| 687 |
+
process.
|
| 688 |
+
.Sp
|
| 689 |
+
Do you want to see verbosity turned on when autoselecting mirrors?
|
| 690 |
+
.IP "use_prompt_default" 2
|
| 691 |
+
.IX Item "use_prompt_default"
|
| 692 |
+
When this is true, \s-1CPAN\s0 will set \s-1PERL_MM_USE_DEFAULT\s0 to a true
|
| 693 |
+
value. This causes ExtUtils::MakeMaker (and compatible) prompts
|
| 694 |
+
to use default values instead of stopping to prompt you to answer
|
| 695 |
+
questions. It also sets \s-1NONINTERACTIVE_TESTING\s0 to a true value to
|
| 696 |
+
signal more generally that distributions should not try to
|
| 697 |
+
interact with you.
|
| 698 |
+
.Sp
|
| 699 |
+
Do you want to use prompt defaults (yes/no)?
|
| 700 |
+
.IP "use_sqlite" 2
|
| 701 |
+
.IX Item "use_sqlite"
|
| 702 |
+
CPAN::SQLite is a layer between the index files that are downloaded
|
| 703 |
+
from the \s-1CPAN\s0 and \s-1CPAN\s0.pm that speeds up metadata queries and reduces
|
| 704 |
+
memory consumption of \s-1CPAN\s0.pm considerably.
|
| 705 |
+
.Sp
|
| 706 |
+
Use CPAN::SQLite if available? (yes/no)?
|
| 707 |
+
.IP "version_timeout" 2
|
| 708 |
+
.IX Item "version_timeout"
|
| 709 |
+
This timeout prevents \s-1CPAN\s0 from hanging when trying to parse a
|
| 710 |
+
pathologically coded \f(CW$VERSION\fR from a module.
|
| 711 |
+
.Sp
|
| 712 |
+
The default is 15 seconds. If you set this value to 0, no timeout
|
| 713 |
+
will occur, but this is not recommended.
|
| 714 |
+
.Sp
|
| 715 |
+
Timeout for parsing module versions?
|
| 716 |
+
.IP "yaml_load_code" 2
|
| 717 |
+
.IX Item "yaml_load_code"
|
| 718 |
+
Both \s-1YAML\s0.pm and YAML::Syck are capable of deserialising code. As this
|
| 719 |
+
requires a string eval, which might be a security risk, you can use
|
| 720 |
+
this option to enable or disable the deserialisation of code via
|
| 721 |
+
CPAN::DeferredCode. (Note: This does not work under perl 5.6)
|
| 722 |
+
.Sp
|
| 723 |
+
Do you want to enable code deserialisation (yes/no)?
|
| 724 |
+
.IP "yaml_module" 2
|
| 725 |
+
.IX Item "yaml_module"
|
| 726 |
+
At the time of this writing (2009\-03) there are three \s-1YAML\s0
|
| 727 |
+
implementations working: \s-1YAML,\s0 YAML::Syck, and \s-1YAML::XS.\s0 The latter
|
| 728 |
+
two are faster but need a C compiler installed on your system. There
|
| 729 |
+
may be more alternative \s-1YAML\s0 conforming modules. When I tried two
|
| 730 |
+
other players, YAML::Tiny and YAML::Perl, they seemed not powerful
|
| 731 |
+
enough to work with \s-1CPAN\s0.pm. This may have changed in the meantime.
|
| 732 |
+
.Sp
|
| 733 |
+
Which \s-1YAML\s0 implementation would you prefer?
|
| 734 |
+
.SH "LICENSE"
|
| 735 |
+
.IX Header "LICENSE"
|
| 736 |
+
This program is free software; you can redistribute it and/or
|
| 737 |
+
modify it under the same terms as Perl itself.
|
data/miniconda3/man/man3/CPAN%3A%3AHandleConfig.3
ADDED
|
@@ -0,0 +1,175 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "CPAN::HandleConfig 3"
|
| 136 |
+
.TH CPAN::HandleConfig 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
CPAN::HandleConfig \- internal configuration handling for CPAN.pm
|
| 143 |
+
.ie n .SS """CLASS\->safe_quote ITEM"""
|
| 144 |
+
.el .SS "\f(CWCLASS\->safe_quote ITEM\fP"
|
| 145 |
+
.IX Subsection "CLASS->safe_quote ITEM"
|
| 146 |
+
Quotes an item to become safe against spaces
|
| 147 |
+
in shell interpolation. An item is enclosed
|
| 148 |
+
in double quotes if:
|
| 149 |
+
.PP
|
| 150 |
+
.Vb 2
|
| 151 |
+
\& \- the item contains spaces in the middle
|
| 152 |
+
\& \- the item does not start with a quote
|
| 153 |
+
.Ve
|
| 154 |
+
.PP
|
| 155 |
+
This happens to avoid shell interpolation
|
| 156 |
+
problems when whitespace is present in
|
| 157 |
+
directory names.
|
| 158 |
+
.PP
|
| 159 |
+
This method uses \f(CW\*(C`commands_quote\*(C'\fR to determine
|
| 160 |
+
the correct quote. If \f(CW\*(C`commands_quote\*(C'\fR is
|
| 161 |
+
a space, no quoting will take place.
|
| 162 |
+
.PP
|
| 163 |
+
if it starts and ends with the same quote character: leave it as it is
|
| 164 |
+
.PP
|
| 165 |
+
if it contains no whitespace: leave it as it is
|
| 166 |
+
.PP
|
| 167 |
+
if it contains whitespace, then
|
| 168 |
+
.PP
|
| 169 |
+
if it contains quotes: better leave it as it is
|
| 170 |
+
.PP
|
| 171 |
+
else: quote it with the correct quote type for the box we're on
|
| 172 |
+
.SH "LICENSE"
|
| 173 |
+
.IX Header "LICENSE"
|
| 174 |
+
This program is free software; you can redistribute it and/or
|
| 175 |
+
modify it under the same terms as Perl itself.
|
data/miniconda3/man/man3/CPAN%3A%3AKwalify.3
ADDED
|
@@ -0,0 +1,174 @@
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "CPAN::Kwalify 3"
|
| 136 |
+
.TH CPAN::Kwalify 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
CPAN::Kwalify \- Interface between CPAN.pm and Kwalify.pm
|
| 143 |
+
.SH "SYNOPSIS"
|
| 144 |
+
.IX Header "SYNOPSIS"
|
| 145 |
+
.Vb 2
|
| 146 |
+
\& use CPAN::Kwalify;
|
| 147 |
+
\& validate($schema_name, $data, $file, $doc);
|
| 148 |
+
.Ve
|
| 149 |
+
.SH "DESCRIPTION"
|
| 150 |
+
.IX Header "DESCRIPTION"
|
| 151 |
+
.ie n .IP "_validate($schema_name, $data, $file, $doc)" 4
|
| 152 |
+
.el .IP "_validate($schema_name, \f(CW$data\fR, \f(CW$file\fR, \f(CW$doc\fR)" 4
|
| 153 |
+
.IX Item "_validate($schema_name, $data, $file, $doc)"
|
| 154 |
+
\&\f(CW$schema_name\fR is the name of a supported schema. Currently only
|
| 155 |
+
\&\f(CW\*(C`distroprefs\*(C'\fR is supported. \f(CW$data\fR is the data to be validated. \f(CW$file\fR
|
| 156 |
+
is the absolute path to the file the data are coming from. \f(CW$doc\fR is the
|
| 157 |
+
index of the document within \f(CW$doc\fR that is to be validated. The last
|
| 158 |
+
two arguments are only there for better error reporting.
|
| 159 |
+
.Sp
|
| 160 |
+
Relies on being called from within \s-1CPAN\s0.pm.
|
| 161 |
+
.Sp
|
| 162 |
+
Dies if something fails. Does not return anything useful.
|
| 163 |
+
.IP "yaml($schema_name)" 4
|
| 164 |
+
.IX Item "yaml($schema_name)"
|
| 165 |
+
Returns the \s-1YAML\s0 text of that schema. Dies if something fails.
|
| 166 |
+
.SH "AUTHOR"
|
| 167 |
+
.IX Header "AUTHOR"
|
| 168 |
+
Andreas Koenig \f(CW\*(C`<andk@cpan.org>\*(C'\fR
|
| 169 |
+
.SH "LICENSE"
|
| 170 |
+
.IX Header "LICENSE"
|
| 171 |
+
This program is free software; you can redistribute it and/or
|
| 172 |
+
modify it under the same terms as Perl itself.
|
| 173 |
+
.PP
|
| 174 |
+
See <http://www.perl.com/perl/misc/Artistic.html>
|
data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AConverter.3
ADDED
|
@@ -0,0 +1,258 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "CPAN::Meta::Converter 3"
|
| 136 |
+
.TH CPAN::Meta::Converter 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
CPAN::Meta::Converter \- Convert CPAN distribution metadata structures
|
| 143 |
+
.SH "VERSION"
|
| 144 |
+
.IX Header "VERSION"
|
| 145 |
+
version 2.150010
|
| 146 |
+
.SH "SYNOPSIS"
|
| 147 |
+
.IX Header "SYNOPSIS"
|
| 148 |
+
.Vb 1
|
| 149 |
+
\& my $struct = decode_json_file(\*(AqMETA.json\*(Aq);
|
| 150 |
+
\&
|
| 151 |
+
\& my $cmc = CPAN::Meta::Converter\->new( $struct );
|
| 152 |
+
\&
|
| 153 |
+
\& my $new_struct = $cmc\->convert( version => "2" );
|
| 154 |
+
.Ve
|
| 155 |
+
.SH "DESCRIPTION"
|
| 156 |
+
.IX Header "DESCRIPTION"
|
| 157 |
+
This module converts \s-1CPAN\s0 Meta structures from one form to another. The
|
| 158 |
+
primary use is to convert older structures to the most modern version of
|
| 159 |
+
the specification, but other transformations may be implemented in the
|
| 160 |
+
future as needed. (E.g. stripping all custom fields or stripping all
|
| 161 |
+
optional fields.)
|
| 162 |
+
.SH "METHODS"
|
| 163 |
+
.IX Header "METHODS"
|
| 164 |
+
.SS "new"
|
| 165 |
+
.IX Subsection "new"
|
| 166 |
+
.Vb 1
|
| 167 |
+
\& my $cmc = CPAN::Meta::Converter\->new( $struct );
|
| 168 |
+
.Ve
|
| 169 |
+
.PP
|
| 170 |
+
The constructor should be passed a valid metadata structure but invalid
|
| 171 |
+
structures are accepted. If no meta-spec version is provided, version 1.0 will
|
| 172 |
+
be assumed.
|
| 173 |
+
.PP
|
| 174 |
+
Optionally, you can provide a \f(CW\*(C`default_version\*(C'\fR argument after \f(CW$struct\fR:
|
| 175 |
+
.PP
|
| 176 |
+
.Vb 1
|
| 177 |
+
\& my $cmc = CPAN::Meta::Converter\->new( $struct, default_version => "1.4" );
|
| 178 |
+
.Ve
|
| 179 |
+
.PP
|
| 180 |
+
This is only needed when converting a metadata fragment that does not include a
|
| 181 |
+
\&\f(CW\*(C`meta\-spec\*(C'\fR field.
|
| 182 |
+
.SS "convert"
|
| 183 |
+
.IX Subsection "convert"
|
| 184 |
+
.Vb 1
|
| 185 |
+
\& my $new_struct = $cmc\->convert( version => "2" );
|
| 186 |
+
.Ve
|
| 187 |
+
.PP
|
| 188 |
+
Returns a new hash reference with the metadata converted to a different form.
|
| 189 |
+
\&\f(CW\*(C`convert\*(C'\fR will die if any conversion/standardization still results in an
|
| 190 |
+
invalid structure.
|
| 191 |
+
.PP
|
| 192 |
+
Valid parameters include:
|
| 193 |
+
.IP "\(bu" 4
|
| 194 |
+
\&\f(CW\*(C`version\*(C'\fR \*(-- Indicates the desired specification version (e.g. \*(L"1.0\*(R", \*(L"1.1\*(R" ... \*(L"1.4\*(R", \*(L"2\*(R").
|
| 195 |
+
Defaults to the latest version of the \s-1CPAN\s0 Meta Spec.
|
| 196 |
+
.PP
|
| 197 |
+
Conversion proceeds through each version in turn. For example, a version 1.2
|
| 198 |
+
structure might be converted to 1.3 then 1.4 then finally to version 2. The
|
| 199 |
+
conversion process attempts to clean-up simple errors and standardize data.
|
| 200 |
+
For example, if \f(CW\*(C`author\*(C'\fR is given as a scalar, it will converted to an array
|
| 201 |
+
reference containing the item. (Converting a structure to its own version will
|
| 202 |
+
also clean-up and standardize.)
|
| 203 |
+
.PP
|
| 204 |
+
When data are cleaned and standardized, missing or invalid fields will be
|
| 205 |
+
replaced with sensible defaults when possible. This may be lossy or imprecise.
|
| 206 |
+
For example, some badly structured \s-1META\s0.yml files on \s-1CPAN\s0 have prerequisite
|
| 207 |
+
modules listed as both keys and values:
|
| 208 |
+
.PP
|
| 209 |
+
.Vb 1
|
| 210 |
+
\& requires => { \*(AqFoo::Bar\*(Aq => \*(AqBam::Baz\*(Aq }
|
| 211 |
+
.Ve
|
| 212 |
+
.PP
|
| 213 |
+
These would be split and each converted to a prerequisite with a minimum
|
| 214 |
+
version of zero.
|
| 215 |
+
.PP
|
| 216 |
+
When some mandatory fields are missing or invalid, the conversion will attempt
|
| 217 |
+
to provide a sensible default or will fill them with a value of 'unknown'. For
|
| 218 |
+
example a missing or unrecognized \f(CW\*(C`license\*(C'\fR field will result in a \f(CW\*(C`license\*(C'\fR
|
| 219 |
+
field of 'unknown'. Fields that may get an 'unknown' include:
|
| 220 |
+
.IP "\(bu" 4
|
| 221 |
+
abstract
|
| 222 |
+
.IP "\(bu" 4
|
| 223 |
+
author
|
| 224 |
+
.IP "\(bu" 4
|
| 225 |
+
license
|
| 226 |
+
.SS "upgrade_fragment"
|
| 227 |
+
.IX Subsection "upgrade_fragment"
|
| 228 |
+
.Vb 1
|
| 229 |
+
\& my $new_struct = $cmc\->upgrade_fragment;
|
| 230 |
+
.Ve
|
| 231 |
+
.PP
|
| 232 |
+
Returns a new hash reference with the metadata converted to the latest version
|
| 233 |
+
of the \s-1CPAN\s0 Meta Spec. No validation is done on the result \*(-- you must
|
| 234 |
+
validate after merging fragments into a complete metadata document.
|
| 235 |
+
.PP
|
| 236 |
+
Available since version 2.141170.
|
| 237 |
+
.SH "BUGS"
|
| 238 |
+
.IX Header "BUGS"
|
| 239 |
+
Please report any bugs or feature using the \s-1CPAN\s0 Request Tracker.
|
| 240 |
+
Bugs can be submitted through the web interface at
|
| 241 |
+
<http://rt.cpan.org/Dist/Display.html?Queue=CPAN\-Meta>
|
| 242 |
+
.PP
|
| 243 |
+
When submitting a bug or request, please include a test-file or a patch to an
|
| 244 |
+
existing test-file that illustrates the bug or desired feature.
|
| 245 |
+
.SH "AUTHORS"
|
| 246 |
+
.IX Header "AUTHORS"
|
| 247 |
+
.IP "\(bu" 4
|
| 248 |
+
David Golden <dagolden@cpan.org>
|
| 249 |
+
.IP "\(bu" 4
|
| 250 |
+
Ricardo Signes <rjbs@cpan.org>
|
| 251 |
+
.IP "\(bu" 4
|
| 252 |
+
Adam Kennedy <adamk@cpan.org>
|
| 253 |
+
.SH "COPYRIGHT AND LICENSE"
|
| 254 |
+
.IX Header "COPYRIGHT AND LICENSE"
|
| 255 |
+
This software is copyright (c) 2010 by David Golden, Ricardo Signes, Adam Kennedy and Contributors.
|
| 256 |
+
.PP
|
| 257 |
+
This is free software; you can redistribute it and/or modify it under
|
| 258 |
+
the same terms as the Perl 5 programming language system itself.
|
data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AFeature.3
ADDED
|
@@ -0,0 +1,196 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "CPAN::Meta::Feature 3"
|
| 136 |
+
.TH CPAN::Meta::Feature 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
CPAN::Meta::Feature \- an optional feature provided by a CPAN distribution
|
| 143 |
+
.SH "VERSION"
|
| 144 |
+
.IX Header "VERSION"
|
| 145 |
+
version 2.150010
|
| 146 |
+
.SH "DESCRIPTION"
|
| 147 |
+
.IX Header "DESCRIPTION"
|
| 148 |
+
A CPAN::Meta::Feature object describes an optional feature offered by a \s-1CPAN\s0
|
| 149 |
+
distribution and specified in the distribution's \fI\s-1META\s0.json\fR (or \fI\s-1META\s0.yml\fR)
|
| 150 |
+
file.
|
| 151 |
+
.PP
|
| 152 |
+
For the most part, this class will only be used when operating on the result of
|
| 153 |
+
the \f(CW\*(C`feature\*(C'\fR or \f(CW\*(C`features\*(C'\fR methods on a CPAN::Meta object.
|
| 154 |
+
.SH "METHODS"
|
| 155 |
+
.IX Header "METHODS"
|
| 156 |
+
.SS "new"
|
| 157 |
+
.IX Subsection "new"
|
| 158 |
+
.Vb 1
|
| 159 |
+
\& my $feature = CPAN::Meta::Feature\->new( $identifier => \e%spec );
|
| 160 |
+
.Ve
|
| 161 |
+
.PP
|
| 162 |
+
This returns a new Feature object. The \f(CW%spec\fR argument to the constructor
|
| 163 |
+
should be the same as the value of the \f(CW\*(C`optional_feature\*(C'\fR entry in the
|
| 164 |
+
distmeta. It must contain entries for \f(CW\*(C`description\*(C'\fR and \f(CW\*(C`prereqs\*(C'\fR.
|
| 165 |
+
.SS "identifier"
|
| 166 |
+
.IX Subsection "identifier"
|
| 167 |
+
This method returns the feature's identifier.
|
| 168 |
+
.SS "description"
|
| 169 |
+
.IX Subsection "description"
|
| 170 |
+
This method returns the feature's long description.
|
| 171 |
+
.SS "prereqs"
|
| 172 |
+
.IX Subsection "prereqs"
|
| 173 |
+
This method returns the feature's prerequisites as a CPAN::Meta::Prereqs
|
| 174 |
+
object.
|
| 175 |
+
.SH "BUGS"
|
| 176 |
+
.IX Header "BUGS"
|
| 177 |
+
Please report any bugs or feature using the \s-1CPAN\s0 Request Tracker.
|
| 178 |
+
Bugs can be submitted through the web interface at
|
| 179 |
+
<http://rt.cpan.org/Dist/Display.html?Queue=CPAN\-Meta>
|
| 180 |
+
.PP
|
| 181 |
+
When submitting a bug or request, please include a test-file or a patch to an
|
| 182 |
+
existing test-file that illustrates the bug or desired feature.
|
| 183 |
+
.SH "AUTHORS"
|
| 184 |
+
.IX Header "AUTHORS"
|
| 185 |
+
.IP "\(bu" 4
|
| 186 |
+
David Golden <dagolden@cpan.org>
|
| 187 |
+
.IP "\(bu" 4
|
| 188 |
+
Ricardo Signes <rjbs@cpan.org>
|
| 189 |
+
.IP "\(bu" 4
|
| 190 |
+
Adam Kennedy <adamk@cpan.org>
|
| 191 |
+
.SH "COPYRIGHT AND LICENSE"
|
| 192 |
+
.IX Header "COPYRIGHT AND LICENSE"
|
| 193 |
+
This software is copyright (c) 2010 by David Golden, Ricardo Signes, Adam Kennedy and Contributors.
|
| 194 |
+
.PP
|
| 195 |
+
This is free software; you can redistribute it and/or modify it under
|
| 196 |
+
the same terms as the Perl 5 programming language system itself.
|
data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AHistory%3A%3AMeta_1_0.3
ADDED
|
@@ -0,0 +1,343 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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atically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "CPAN::Meta::History::Meta_1_0 3"
|
| 136 |
+
.TH CPAN::Meta::History::Meta_1_0 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
CPAN::Meta::History::Meta_1_0 \- Version 1.0 metadata specification for META.yml
|
| 143 |
+
.SH "PREFACE"
|
| 144 |
+
.IX Header "PREFACE"
|
| 145 |
+
This is a historical copy of the version 1.0 specification for \fI\s-1META\s0.yml\fR
|
| 146 |
+
files, copyright by Ken Williams and licensed under the same terms as Perl
|
| 147 |
+
itself.
|
| 148 |
+
.PP
|
| 149 |
+
Modifications from the original:
|
| 150 |
+
.IP "\(bu" 4
|
| 151 |
+
Conversion from the original \s-1HTML\s0 to \s-1POD\s0 format
|
| 152 |
+
.IP "\(bu" 4
|
| 153 |
+
Include list of valid licenses from Module::Build 0.17 rather than
|
| 154 |
+
linking to the module, with minor updates to text and links to reflect
|
| 155 |
+
versions at the time of publication.
|
| 156 |
+
.IP "\(bu" 4
|
| 157 |
+
Fixed some dead links to point to active resources.
|
| 158 |
+
.SH "DESCRIPTION"
|
| 159 |
+
.IX Header "DESCRIPTION"
|
| 160 |
+
This document describes version 1.0 of the \fI\s-1META\s0.yml\fR specification.
|
| 161 |
+
.PP
|
| 162 |
+
The \s-1META\s0.yml file describes important properties of contributed Perl
|
| 163 |
+
distributions such as the ones found on \s-1CPAN\s0 <http://www.cpan.org>. It is
|
| 164 |
+
typically created by tools like Module::Build and ExtUtils::MakeMaker.
|
| 165 |
+
.PP
|
| 166 |
+
The fields in the \fI\s-1META\s0.yml\fR file are meant to be helpful to people
|
| 167 |
+
maintaining module collections (like \s-1CPAN\s0), for people writing
|
| 168 |
+
installation tools (like \s-1CPAN\s0 or \s-1CPANPLUS\s0), or just people who want to
|
| 169 |
+
know some stuff about a distribution before downloading it and starting to
|
| 170 |
+
install it.
|
| 171 |
+
.SH "Format"
|
| 172 |
+
.IX Header "Format"
|
| 173 |
+
\&\fI\s-1META\s0.yml\fR files are written in the \s-1YAML\s0 <http://www.yaml.org/> format. The
|
| 174 |
+
reasons we chose \s-1YAML\s0 instead of, say, \s-1XML\s0 or Data::Dumper are discussed in
|
| 175 |
+
this thread <http://www.nntp.perl.org/group/perl.makemaker/2002/04/msg406.html>
|
| 176 |
+
on the MakeMaker mailing list.
|
| 177 |
+
.PP
|
| 178 |
+
The first line of a \fI\s-1META\s0.yml\fR file should be a valid
|
| 179 |
+
\&\s-1YAML\s0 document header <http://yaml.org/spec/history/2002-10-31.html#syntax-document>
|
| 180 |
+
like \f(CW"\-\-\- #YAML:1.0"\fR
|
| 181 |
+
.SH "Fields"
|
| 182 |
+
.IX Header "Fields"
|
| 183 |
+
The rest of the \s-1META\s0.yml file is one big \s-1YAML\s0
|
| 184 |
+
mapping <http://yaml.org/spec/history/2002-10-31.html#syntax-mapping>,
|
| 185 |
+
whose keys are described here.
|
| 186 |
+
.IP "name" 4
|
| 187 |
+
.IX Item "name"
|
| 188 |
+
Example: \f(CW\*(C`Module\-Build\*(C'\fR
|
| 189 |
+
.Sp
|
| 190 |
+
The name of the distribution. Often created by taking the \*(L"main
|
| 191 |
+
module\*(R" in the distribution and changing \*(L"::\*(R" to \*(L"\-\*(R". Sometimes it's
|
| 192 |
+
completely different, however, as in the case of the
|
| 193 |
+
libwww-perl <http://search.cpan.org/author/GAAS/libwww-perl/> distribution.
|
| 194 |
+
.IP "version" 4
|
| 195 |
+
.IX Item "version"
|
| 196 |
+
Example: \f(CW0.16\fR
|
| 197 |
+
.Sp
|
| 198 |
+
The version of the distribution to which the \s-1META\s0.yml file refers.
|
| 199 |
+
.IP "license" 4
|
| 200 |
+
.IX Item "license"
|
| 201 |
+
Example: \f(CW\*(C`perl\*(C'\fR
|
| 202 |
+
.Sp
|
| 203 |
+
The license under which this distribution may be used and
|
| 204 |
+
redistributed.
|
| 205 |
+
.Sp
|
| 206 |
+
Must be one of the following licenses:
|
| 207 |
+
.RS 4
|
| 208 |
+
.IP "perl" 4
|
| 209 |
+
.IX Item "perl"
|
| 210 |
+
The distribution may be copied and redistributed under the same terms as perl
|
| 211 |
+
itself (this is by far the most common licensing option for modules on \s-1CPAN\s0).
|
| 212 |
+
This is a dual license, in which the user may choose between either the \s-1GPL\s0
|
| 213 |
+
version 1 or the Artistic version 1 license.
|
| 214 |
+
.IP "gpl" 4
|
| 215 |
+
.IX Item "gpl"
|
| 216 |
+
The distribution is distributed under the terms of the \s-1GNU\s0 General Public
|
| 217 |
+
License version 2 (<http://opensource.org/licenses/GPL\-2.0>).
|
| 218 |
+
.IP "lgpl" 4
|
| 219 |
+
.IX Item "lgpl"
|
| 220 |
+
The distribution is distributed under the terms of the \s-1GNU\s0 Lesser General
|
| 221 |
+
Public License version 2 (<http://opensource.org/licenses/LGPL\-2.1>).
|
| 222 |
+
.IP "artistic" 4
|
| 223 |
+
.IX Item "artistic"
|
| 224 |
+
The distribution is licensed under the Artistic License version 1, as specified
|
| 225 |
+
by the Artistic file in the standard perl distribution
|
| 226 |
+
(<http://opensource.org/licenses/Artistic\-Perl\-1.0>).
|
| 227 |
+
.IP "bsd" 4
|
| 228 |
+
.IX Item "bsd"
|
| 229 |
+
The distribution is licensed under the \s-1BSD\s0 3\-Clause License
|
| 230 |
+
(<http://opensource.org/licenses/BSD\-3\-Clause>).
|
| 231 |
+
.IP "open_source" 4
|
| 232 |
+
.IX Item "open_source"
|
| 233 |
+
The distribution is licensed under some other Open Source Initiative-approved
|
| 234 |
+
license listed at <http://www.opensource.org/licenses/>.
|
| 235 |
+
.IP "unrestricted" 4
|
| 236 |
+
.IX Item "unrestricted"
|
| 237 |
+
The distribution is licensed under a license that is \fBnot\fR approved by
|
| 238 |
+
www.opensource.org <http://www.opensource.org/> but that allows distribution
|
| 239 |
+
without restrictions.
|
| 240 |
+
.IP "restrictive" 4
|
| 241 |
+
.IX Item "restrictive"
|
| 242 |
+
The distribution may not be redistributed without special permission from the
|
| 243 |
+
author and/or copyright holder.
|
| 244 |
+
.RE
|
| 245 |
+
.RS 4
|
| 246 |
+
.RE
|
| 247 |
+
.IP "distribution_type" 4
|
| 248 |
+
.IX Item "distribution_type"
|
| 249 |
+
Example: \f(CW\*(C`module\*(C'\fR
|
| 250 |
+
.Sp
|
| 251 |
+
What kind of stuff is contained in this distribution. Most things on
|
| 252 |
+
\&\s-1CPAN\s0 are \f(CW\*(C`module\*(C'\fRs (which can also mean a collection of
|
| 253 |
+
modules), but some things are \f(CW\*(C`script\*(C'\fRs.
|
| 254 |
+
.IP "requires" 4
|
| 255 |
+
.IX Item "requires"
|
| 256 |
+
Example:
|
| 257 |
+
.Sp
|
| 258 |
+
.Vb 2
|
| 259 |
+
\& Data::Dumper: 0
|
| 260 |
+
\& File::Find: 1.03
|
| 261 |
+
.Ve
|
| 262 |
+
.Sp
|
| 263 |
+
A \s-1YAML\s0 mapping <http://yaml.org/spec/history/2002-10-31.html#syntax-mapping>
|
| 264 |
+
indicating the Perl modules this distribution requires for proper
|
| 265 |
+
operation. The keys are the module names, and the values are version
|
| 266 |
+
specifications as described in the
|
| 267 |
+
documentation for Module::Build's \*(L"requires\*(R" parameter.
|
| 268 |
+
.Sp
|
| 269 |
+
\&\fINote: the exact nature of the fancy specifications like
|
| 270 |
+
\&\f(CI">= 1.2, != 1.5, < 2.0"\fI is subject to
|
| 271 |
+
change. Advance notice will be given here. The simple specifications
|
| 272 |
+
like \f(CI"1.2"\fI will not change in format.\fR
|
| 273 |
+
.IP "recommends" 4
|
| 274 |
+
.IX Item "recommends"
|
| 275 |
+
Example:
|
| 276 |
+
.Sp
|
| 277 |
+
.Vb 2
|
| 278 |
+
\& Data::Dumper: 0
|
| 279 |
+
\& File::Find: 1.03
|
| 280 |
+
.Ve
|
| 281 |
+
.Sp
|
| 282 |
+
A \s-1YAML\s0 mapping <http://yaml.org/spec/history/2002-10-31.html#syntax-mapping>
|
| 283 |
+
indicating the Perl modules this distribution recommends for enhanced
|
| 284 |
+
operation.
|
| 285 |
+
.IP "build_requires" 4
|
| 286 |
+
.IX Item "build_requires"
|
| 287 |
+
Example:
|
| 288 |
+
.Sp
|
| 289 |
+
.Vb 2
|
| 290 |
+
\& Data::Dumper: 0
|
| 291 |
+
\& File::Find: 1.03
|
| 292 |
+
.Ve
|
| 293 |
+
.Sp
|
| 294 |
+
A \s-1YAML\s0 mapping <http://yaml.org/spec/history/2002-10-31.html#syntax-mapping>
|
| 295 |
+
indicating the Perl modules required for building and/or testing of
|
| 296 |
+
this distribution. These dependencies are not required after the
|
| 297 |
+
module is installed.
|
| 298 |
+
.IP "conflicts" 4
|
| 299 |
+
.IX Item "conflicts"
|
| 300 |
+
Example:
|
| 301 |
+
.Sp
|
| 302 |
+
.Vb 2
|
| 303 |
+
\& Data::Dumper: 0
|
| 304 |
+
\& File::Find: 1.03
|
| 305 |
+
.Ve
|
| 306 |
+
.Sp
|
| 307 |
+
A \s-1YAML\s0 mapping <http://yaml.org/spec/history/2002-10-31.html#syntax-mapping>
|
| 308 |
+
indicating the Perl modules that cannot be installed while this
|
| 309 |
+
distribution is installed. This is a pretty uncommon situation.
|
| 310 |
+
.IP "dynamic_config" 4
|
| 311 |
+
.IX Item "dynamic_config"
|
| 312 |
+
Example: \f(CW0\fR
|
| 313 |
+
.Sp
|
| 314 |
+
A boolean flag indicating whether a \fIBuild.PL\fR or
|
| 315 |
+
\&\fIMakefile.PL\fR (or similar) must be executed, or whether this
|
| 316 |
+
module can be built, tested and installed solely from consulting its
|
| 317 |
+
metadata file. The main reason to set this to a true value if that
|
| 318 |
+
your module performs some dynamic configuration (asking questions,
|
| 319 |
+
sensing the environment, etc.) as part of its build/install process.
|
| 320 |
+
.Sp
|
| 321 |
+
Currently Module::Build doesn't actually do anything with
|
| 322 |
+
this flag \- it's probably going to be up to higher-level tools like
|
| 323 |
+
\&\s-1CPAN\s0.pm to do something useful with it. It can potentially
|
| 324 |
+
bring lots of security, packaging, and convenience improvements.
|
| 325 |
+
.IP "generated_by" 4
|
| 326 |
+
.IX Item "generated_by"
|
| 327 |
+
Example: \f(CW\*(C`Module::Build version 0.16\*(C'\fR
|
| 328 |
+
.Sp
|
| 329 |
+
Indicates the tool that was used to create this \fI\s-1META\s0.yml\fR file. It's
|
| 330 |
+
good form to include both the name of the tool and its version, but
|
| 331 |
+
this field is essentially opaque, at least for the moment.
|
| 332 |
+
.SH "Related Projects"
|
| 333 |
+
.IX Header "Related Projects"
|
| 334 |
+
.IP "\s-1DOAP\s0" 4
|
| 335 |
+
.IX Item "DOAP"
|
| 336 |
+
An \s-1RDF\s0 vocabulary to describe software projects. <http://usefulinc.com/doap>.
|
| 337 |
+
.SH "History"
|
| 338 |
+
.IX Header "History"
|
| 339 |
+
.IP "\(bu" 4
|
| 340 |
+
\&\fBMarch 14, 2003\fR (Pi day) \- created version 1.0 of this document.
|
| 341 |
+
.IP "\(bu" 4
|
| 342 |
+
\&\fBMay 8, 2003\fR \- added the \*(L"dynamic_config\*(R" field, which was missing from the
|
| 343 |
+
initial version.
|
data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AHistory%3A%3AMeta_1_1.3
ADDED
|
@@ -0,0 +1,401 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "CPAN::Meta::History::Meta_1_1 3"
|
| 136 |
+
.TH CPAN::Meta::History::Meta_1_1 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
CPAN::Meta::History::Meta_1_1 \- Version 1.1 metadata specification for META.yml
|
| 143 |
+
.SH "PREFACE"
|
| 144 |
+
.IX Header "PREFACE"
|
| 145 |
+
This is a historical copy of the version 1.1 specification for \fI\s-1META\s0.yml\fR
|
| 146 |
+
files, copyright by Ken Williams and licensed under the same terms as Perl
|
| 147 |
+
itself.
|
| 148 |
+
.PP
|
| 149 |
+
Modifications from the original:
|
| 150 |
+
.IP "\(bu" 4
|
| 151 |
+
Conversion from the original \s-1HTML\s0 to \s-1POD\s0 format
|
| 152 |
+
.IP "\(bu" 4
|
| 153 |
+
Include list of valid licenses from Module::Build 0.18 rather than
|
| 154 |
+
linking to the module, with minor updates to text and links to reflect
|
| 155 |
+
versions at the time of publication.
|
| 156 |
+
.IP "\(bu" 4
|
| 157 |
+
Fixed some dead links to point to active resources.
|
| 158 |
+
.SH "DESCRIPTION"
|
| 159 |
+
.IX Header "DESCRIPTION"
|
| 160 |
+
This document describes version 1.1 of the \fI\s-1META\s0.yml\fR specification.
|
| 161 |
+
.PP
|
| 162 |
+
The \fI\s-1META\s0.yml\fR file describes important properties of contributed Perl
|
| 163 |
+
distributions such as the ones found on \s-1CPAN\s0 <http://www.cpan.org>. It is
|
| 164 |
+
typically created by tools like Module::Build and ExtUtils::MakeMaker.
|
| 165 |
+
.PP
|
| 166 |
+
The fields in the \fI\s-1META\s0.yml\fR file are meant to be helpful to people
|
| 167 |
+
maintaining module collections (like \s-1CPAN\s0), for people writing
|
| 168 |
+
installation tools (like \s-1CPAN\s0 or \s-1CPANPLUS\s0), or just people who want to
|
| 169 |
+
know some stuff about a distribution before downloading it and starting to
|
| 170 |
+
install it.
|
| 171 |
+
.SH "Format"
|
| 172 |
+
.IX Header "Format"
|
| 173 |
+
\&\fI\s-1META\s0.yml\fR files are written in the \s-1YAML\s0 <http://www.yaml.org/> format. The
|
| 174 |
+
reasons we chose \s-1YAML\s0 instead of, say, \s-1XML\s0 or Data::Dumper are discussed in
|
| 175 |
+
this thread <http://www.nntp.perl.org/group/perl.makemaker/2002/04/msg406.html>
|
| 176 |
+
on the MakeMaker mailing list.
|
| 177 |
+
.PP
|
| 178 |
+
The first line of a \fI\s-1META\s0.yml\fR file should be a valid
|
| 179 |
+
\&\s-1YAML\s0 document header <http://yaml.org/spec/history/2002-10-31.html#syntax-document>
|
| 180 |
+
like \f(CW"\-\-\- #YAML:1.0"\fR
|
| 181 |
+
.SH "Fields"
|
| 182 |
+
.IX Header "Fields"
|
| 183 |
+
The rest of the \s-1META\s0.yml file is one big \s-1YAML\s0
|
| 184 |
+
mapping <http://yaml.org/spec/history/2002-10-31.html#syntax-mapping>,
|
| 185 |
+
whose keys are described here.
|
| 186 |
+
.IP "name" 4
|
| 187 |
+
.IX Item "name"
|
| 188 |
+
Example: \f(CW\*(C`Module\-Build\*(C'\fR
|
| 189 |
+
.Sp
|
| 190 |
+
The name of the distribution. Often created by taking the \*(L"main
|
| 191 |
+
module\*(R" in the distribution and changing \*(L"::\*(R" to \*(L"\-\*(R". Sometimes it's
|
| 192 |
+
completely different, however, as in the case of the
|
| 193 |
+
libwww-perl <http://search.cpan.org/author/GAAS/libwww-perl/> distribution.
|
| 194 |
+
.IP "version" 4
|
| 195 |
+
.IX Item "version"
|
| 196 |
+
Example: \f(CW0.16\fR
|
| 197 |
+
.Sp
|
| 198 |
+
The version of the distribution to which the \s-1META\s0.yml file refers.
|
| 199 |
+
This is a mandatory field.
|
| 200 |
+
.Sp
|
| 201 |
+
The version is essentially an arbitrary string, but \fImust\fR be
|
| 202 |
+
only \s-1ASCII\s0 characters, and \fIstrongly should\fR be of the format
|
| 203 |
+
integer-dot-digit-digit, i.e. \f(CW25.57\fR, optionally followed by
|
| 204 |
+
underscore-digit-digit, i.e. \f(CW\*(C`25.57_04\*(C'\fR.
|
| 205 |
+
.Sp
|
| 206 |
+
The standard tools that deal with module distribution (\s-1PAUSE, CPAN,\s0
|
| 207 |
+
etc.) form an identifier for each distribution by joining the 'name'
|
| 208 |
+
and 'version' attributes with a dash (\f(CW\*(C`\-\*(C'\fR) character. Tools
|
| 209 |
+
who are prepared to deal with distributions that have no version
|
| 210 |
+
numbers generally omit the dash as well.
|
| 211 |
+
.IP "license" 4
|
| 212 |
+
.IX Item "license"
|
| 213 |
+
Example: \f(CW\*(C`perl\*(C'\fR
|
| 214 |
+
.Sp
|
| 215 |
+
a descriptive term for the licenses ... not authoritative, but must
|
| 216 |
+
be consistent with licensure statements in the READMEs, documentation, etc.
|
| 217 |
+
.Sp
|
| 218 |
+
The license under which this distribution may be used and
|
| 219 |
+
redistributed.
|
| 220 |
+
.Sp
|
| 221 |
+
Must be one of the following licenses:
|
| 222 |
+
.RS 4
|
| 223 |
+
.IP "perl" 4
|
| 224 |
+
.IX Item "perl"
|
| 225 |
+
The distribution may be copied and redistributed under the same terms as perl
|
| 226 |
+
itself (this is by far the most common licensing option for modules on \s-1CPAN\s0).
|
| 227 |
+
This is a dual license, in which the user may choose between either the \s-1GPL\s0
|
| 228 |
+
version 1 or the Artistic version 1 license.
|
| 229 |
+
.IP "gpl" 4
|
| 230 |
+
.IX Item "gpl"
|
| 231 |
+
The distribution is distributed under the terms of the \s-1GNU\s0 General Public
|
| 232 |
+
License version 2 (<http://opensource.org/licenses/GPL\-2.0>).
|
| 233 |
+
.IP "lgpl" 4
|
| 234 |
+
.IX Item "lgpl"
|
| 235 |
+
The distribution is distributed under the terms of the \s-1GNU\s0 Lesser General
|
| 236 |
+
Public License version 2 (<http://opensource.org/licenses/LGPL\-2.1>).
|
| 237 |
+
.IP "artistic" 4
|
| 238 |
+
.IX Item "artistic"
|
| 239 |
+
The distribution is licensed under the Artistic License version 1, as specified
|
| 240 |
+
by the Artistic file in the standard perl distribution
|
| 241 |
+
(<http://opensource.org/licenses/Artistic\-Perl\-1.0>).
|
| 242 |
+
.IP "bsd" 4
|
| 243 |
+
.IX Item "bsd"
|
| 244 |
+
The distribution is licensed under the \s-1BSD\s0 3\-Clause License
|
| 245 |
+
(<http://opensource.org/licenses/BSD\-3\-Clause>).
|
| 246 |
+
.IP "open_source" 4
|
| 247 |
+
.IX Item "open_source"
|
| 248 |
+
The distribution is licensed under some other Open Source Initiative-approved
|
| 249 |
+
license listed at <http://www.opensource.org/licenses/>.
|
| 250 |
+
.IP "unrestricted" 4
|
| 251 |
+
.IX Item "unrestricted"
|
| 252 |
+
The distribution is licensed under a license that is \fBnot\fR approved by
|
| 253 |
+
www.opensource.org <http://www.opensource.org/> but that allows distribution
|
| 254 |
+
without restrictions.
|
| 255 |
+
.IP "restrictive" 4
|
| 256 |
+
.IX Item "restrictive"
|
| 257 |
+
The distribution may not be redistributed without special permission from the
|
| 258 |
+
author and/or copyright holder.
|
| 259 |
+
.RE
|
| 260 |
+
.RS 4
|
| 261 |
+
.RE
|
| 262 |
+
.IP "license_uri" 4
|
| 263 |
+
.IX Item "license_uri"
|
| 264 |
+
This should contain a \s-1URI\s0 where the exact terms of the license may be found.
|
| 265 |
+
.Sp
|
| 266 |
+
(change \*(L"unrestricted\*(R" to \*(L"redistributable\*(R"?)
|
| 267 |
+
.IP "distribution_type" 4
|
| 268 |
+
.IX Item "distribution_type"
|
| 269 |
+
Example: \f(CW\*(C`module\*(C'\fR
|
| 270 |
+
.Sp
|
| 271 |
+
What kind of stuff is contained in this distribution. Most things on
|
| 272 |
+
\&\s-1CPAN\s0 are \f(CW\*(C`module\*(C'\fRs (which can also mean a collection of
|
| 273 |
+
modules), but some things are \f(CW\*(C`script\*(C'\fRs.
|
| 274 |
+
.Sp
|
| 275 |
+
This field is basically meaningless, and tools (like Module::Build or
|
| 276 |
+
MakeMaker) will likely stop generating it in the future.
|
| 277 |
+
.IP "private" 4
|
| 278 |
+
.IX Item "private"
|
| 279 |
+
\&\s-1WTF\s0 is going on here?
|
| 280 |
+
.Sp
|
| 281 |
+
index_ignore: any application that indexes the contents of
|
| 282 |
+
distributions (\s-1PAUSE,\s0 search.cpan.org) ought to ignore the items
|
| 283 |
+
(packages, files, directories, namespace hierarchies).
|
| 284 |
+
.IP "requires" 4
|
| 285 |
+
.IX Item "requires"
|
| 286 |
+
Example:
|
| 287 |
+
.Sp
|
| 288 |
+
.Vb 2
|
| 289 |
+
\& Data::Dumper: 0
|
| 290 |
+
\& File::Find: 1.03
|
| 291 |
+
.Ve
|
| 292 |
+
.Sp
|
| 293 |
+
A \s-1YAML\s0 mapping <http://yaml.org/spec/history/2002-10-31.html#syntax-mapping>
|
| 294 |
+
indicating the Perl modules this distribution requires for proper
|
| 295 |
+
operation. The keys are the module names, and the values are version
|
| 296 |
+
specifications as described in the
|
| 297 |
+
documentation for Module::Build's \*(L"requires\*(R" parameter.
|
| 298 |
+
.Sp
|
| 299 |
+
\&\fINote: the exact nature of the fancy specifications like
|
| 300 |
+
\&\f(CI">= 1.2, != 1.5, < 2.0"\fI is subject to
|
| 301 |
+
change. Advance notice will be given here. The simple specifications
|
| 302 |
+
like \f(CI"1.2"\fI will not change in format.\fR
|
| 303 |
+
.IP "recommends" 4
|
| 304 |
+
.IX Item "recommends"
|
| 305 |
+
Example:
|
| 306 |
+
.Sp
|
| 307 |
+
.Vb 2
|
| 308 |
+
\& Data::Dumper: 0
|
| 309 |
+
\& File::Find: 1.03
|
| 310 |
+
.Ve
|
| 311 |
+
.Sp
|
| 312 |
+
A \s-1YAML\s0 mapping <http://yaml.org/spec/history/2002-10-31.html#syntax-mapping>
|
| 313 |
+
indicating the Perl modules this distribution recommends for enhanced
|
| 314 |
+
operation.
|
| 315 |
+
.IP "build_requires" 4
|
| 316 |
+
.IX Item "build_requires"
|
| 317 |
+
Example:
|
| 318 |
+
.Sp
|
| 319 |
+
.Vb 2
|
| 320 |
+
\& Data::Dumper: 0
|
| 321 |
+
\& File::Find: 1.03
|
| 322 |
+
.Ve
|
| 323 |
+
.Sp
|
| 324 |
+
A \s-1YAML\s0 mapping <http://yaml.org/spec/history/2002-10-31.html#syntax-mapping>
|
| 325 |
+
indicating the Perl modules required for building and/or testing of
|
| 326 |
+
this distribution. These dependencies are not required after the
|
| 327 |
+
module is installed.
|
| 328 |
+
.IP "conflicts" 4
|
| 329 |
+
.IX Item "conflicts"
|
| 330 |
+
Example:
|
| 331 |
+
.Sp
|
| 332 |
+
.Vb 2
|
| 333 |
+
\& Data::Dumper: 0
|
| 334 |
+
\& File::Find: 1.03
|
| 335 |
+
.Ve
|
| 336 |
+
.Sp
|
| 337 |
+
A \s-1YAML\s0 mapping <http://yaml.org/spec/history/2002-10-31.html#syntax-mapping>
|
| 338 |
+
indicating the Perl modules that cannot be installed while this
|
| 339 |
+
distribution is installed. This is a pretty uncommon situation.
|
| 340 |
+
.Sp
|
| 341 |
+
\&\- possibly separate out test-time prereqs, complications include: can
|
| 342 |
+
tests be meaningfully preserved for later running? are test-time
|
| 343 |
+
prereqs in addition to build-time, or exclusive?
|
| 344 |
+
.Sp
|
| 345 |
+
\&\- make official location for installed *distributions*, which can
|
| 346 |
+
contain tests, etc.
|
| 347 |
+
.IP "dynamic_config" 4
|
| 348 |
+
.IX Item "dynamic_config"
|
| 349 |
+
Example: \f(CW0\fR
|
| 350 |
+
.Sp
|
| 351 |
+
A boolean flag indicating whether a \fIBuild.PL\fR or
|
| 352 |
+
\&\fIMakefile.PL\fR (or similar) must be executed, or whether this
|
| 353 |
+
module can be built, tested and installed solely from consulting its
|
| 354 |
+
metadata file. The main reason to set this to a true value if that
|
| 355 |
+
your module performs some dynamic configuration (asking questions,
|
| 356 |
+
sensing the environment, etc.) as part of its build/install process.
|
| 357 |
+
.Sp
|
| 358 |
+
Currently Module::Build doesn't actually do anything with
|
| 359 |
+
this flag \- it's probably going to be up to higher-level tools like
|
| 360 |
+
\&\s-1CPAN\s0.pm to do something useful with it. It can potentially
|
| 361 |
+
bring lots of security, packaging, and convenience improvements.
|
| 362 |
+
.IP "generated_by" 4
|
| 363 |
+
.IX Item "generated_by"
|
| 364 |
+
Example: \f(CW\*(C`Module::Build version 0.16\*(C'\fR
|
| 365 |
+
.Sp
|
| 366 |
+
Indicates the tool that was used to create this \fI\s-1META\s0.yml\fR file. It's
|
| 367 |
+
good form to include both the name of the tool and its version, but
|
| 368 |
+
this field is essentially opaque, at least for the moment.
|
| 369 |
+
.SS "Ingy's suggestions"
|
| 370 |
+
.IX Subsection "Ingy's suggestions"
|
| 371 |
+
.IP "short_description" 4
|
| 372 |
+
.IX Item "short_description"
|
| 373 |
+
add as field, containing abstract, maximum 80 characters, suggested minimum 40 characters
|
| 374 |
+
.IP "description" 4
|
| 375 |
+
.IX Item "description"
|
| 376 |
+
long version of abstract, should add?
|
| 377 |
+
.IP "maturity" 4
|
| 378 |
+
.IX Item "maturity"
|
| 379 |
+
alpha, beta, gamma, mature, stable
|
| 380 |
+
.IP "author_id, owner_id" 4
|
| 381 |
+
.IX Item "author_id, owner_id"
|
| 382 |
+
.PD 0
|
| 383 |
+
.IP "categorization, keyword, chapter_id" 4
|
| 384 |
+
.IX Item "categorization, keyword, chapter_id"
|
| 385 |
+
.IP "\s-1URL\s0 for further information" 4
|
| 386 |
+
.IX Item "URL for further information"
|
| 387 |
+
.PD
|
| 388 |
+
could default to search.cpan.org on \s-1PAUSE\s0
|
| 389 |
+
.IP "namespaces" 4
|
| 390 |
+
.IX Item "namespaces"
|
| 391 |
+
can be specified for single elements by prepending
|
| 392 |
+
dotted-form, i.e. \*(L"com.example.my_application.my_property\*(R". Default
|
| 393 |
+
namespace for \s-1META\s0.yml is probably \*(L"org.cpan.meta_author\*(R" or
|
| 394 |
+
something. Precedent for this is Apple's Carbon namespaces, I think.
|
| 395 |
+
.SH "History"
|
| 396 |
+
.IX Header "History"
|
| 397 |
+
.IP "\(bu" 4
|
| 398 |
+
\&\fBMarch 14, 2003\fR (Pi day) \- created version 1.0 of this document.
|
| 399 |
+
.IP "\(bu" 4
|
| 400 |
+
\&\fBMay 8, 2003\fR \- added the \*(L"dynamic_config\*(R" field, which was missing from the
|
| 401 |
+
initial version.
|
data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AHistory%3A%3AMeta_1_2.3
ADDED
|
@@ -0,0 +1,787 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "CPAN::Meta::History::Meta_1_2 3"
|
| 136 |
+
.TH CPAN::Meta::History::Meta_1_2 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
CPAN::Meta::History::Meta_1_2 \- Version 1.2 metadata specification for META.yml
|
| 143 |
+
.SH "PREFACE"
|
| 144 |
+
.IX Header "PREFACE"
|
| 145 |
+
This is a historical copy of the version 1.2 specification for \fI\s-1META\s0.yml\fR
|
| 146 |
+
files, copyright by Ken Williams and licensed under the same terms as Perl
|
| 147 |
+
itself.
|
| 148 |
+
.PP
|
| 149 |
+
Modifications from the original:
|
| 150 |
+
.IP "\(bu" 4
|
| 151 |
+
Various spelling corrections
|
| 152 |
+
.IP "\(bu" 4
|
| 153 |
+
Include list of valid licenses from Module::Build 0.2611 rather than
|
| 154 |
+
linking to the module, with minor updates to text and links to reflect
|
| 155 |
+
versions at the time of publication.
|
| 156 |
+
.IP "\(bu" 4
|
| 157 |
+
Fixed some dead links to point to active resources.
|
| 158 |
+
.SH "SYNOPSIS"
|
| 159 |
+
.IX Header "SYNOPSIS"
|
| 160 |
+
.Vb 10
|
| 161 |
+
\& \-\-\- #YAML:1.0
|
| 162 |
+
\& name: Module\-Build
|
| 163 |
+
\& abstract: Build and install Perl modules
|
| 164 |
+
\& version: 0.20
|
| 165 |
+
\& author:
|
| 166 |
+
\& \- Ken Williams <kwilliams@cpan.org>
|
| 167 |
+
\& license: perl
|
| 168 |
+
\& distribution_type: module
|
| 169 |
+
\& requires:
|
| 170 |
+
\& Config: 0
|
| 171 |
+
\& Cwd: 0
|
| 172 |
+
\& Data::Dumper: 0
|
| 173 |
+
\& ExtUtils::Install: 0
|
| 174 |
+
\& File::Basename: 0
|
| 175 |
+
\& File::Compare: 0
|
| 176 |
+
\& File::Copy: 0
|
| 177 |
+
\& File::Find: 0
|
| 178 |
+
\& File::Path: 0
|
| 179 |
+
\& File::Spec: 0
|
| 180 |
+
\& IO::File: 0
|
| 181 |
+
\& perl: 5.005_03
|
| 182 |
+
\& recommends:
|
| 183 |
+
\& Archive::Tar: 1.00
|
| 184 |
+
\& ExtUtils::Install: 0.3
|
| 185 |
+
\& ExtUtils::ParseXS: 2.02
|
| 186 |
+
\& Pod::Text: 0
|
| 187 |
+
\& YAML: 0.35
|
| 188 |
+
\& build_requires:
|
| 189 |
+
\& Test: 0
|
| 190 |
+
\& urls:
|
| 191 |
+
\& license: http://dev.perl.org/licenses/
|
| 192 |
+
\& meta\-spec:
|
| 193 |
+
\& version: 1.2
|
| 194 |
+
\& url: http://module\-build.sourceforge.net/META\-spec\-v1.2.html
|
| 195 |
+
\& generated_by: Module::Build version 0.20
|
| 196 |
+
.Ve
|
| 197 |
+
.SH "DESCRIPTION"
|
| 198 |
+
.IX Header "DESCRIPTION"
|
| 199 |
+
This document describes version 1.2 of the \fI\s-1META\s0.yml\fR specification.
|
| 200 |
+
.PP
|
| 201 |
+
The \fI\s-1META\s0.yml\fR file describes important properties of contributed
|
| 202 |
+
Perl distributions such as the ones found on \s-1CPAN.\s0 It is typically
|
| 203 |
+
created by tools like Module::Build, Module::Install, and
|
| 204 |
+
ExtUtils::MakeMaker.
|
| 205 |
+
.PP
|
| 206 |
+
The fields in the \fI\s-1META\s0.yml\fR file are meant to be helpful for people
|
| 207 |
+
maintaining module collections (like \s-1CPAN\s0), for people writing
|
| 208 |
+
installation tools (like \s-1CPAN\s0.pm or \s-1CPANPLUS\s0), or just for people who
|
| 209 |
+
want to know some stuff about a distribution before downloading it and
|
| 210 |
+
starting to install it.
|
| 211 |
+
.PP
|
| 212 |
+
\&\fINote: The latest stable version of this specification can always be
|
| 213 |
+
found at <http://module\-build.sourceforge.net/META\-spec\-current.html>,
|
| 214 |
+
and the latest development version (which may include things that
|
| 215 |
+
won't make it into the stable version can always be found at
|
| 216 |
+
<http://module\-build.sourceforge.net/META\-spec\-blead.html>.\fR
|
| 217 |
+
.SH "FORMAT"
|
| 218 |
+
.IX Header "FORMAT"
|
| 219 |
+
\&\fI\s-1META\s0.yml\fR files are written in the \s-1YAML\s0 format (see
|
| 220 |
+
<http://www.yaml.org/>).
|
| 221 |
+
.PP
|
| 222 |
+
See the following links to learn why we chose \s-1YAML\s0 instead of, say,
|
| 223 |
+
\&\s-1XML\s0 or Data::Dumper:
|
| 224 |
+
.IP "\(bu" 4
|
| 225 |
+
Module::Build design plans <http://www.nntp.perl.org/group/perl.makemaker/2002/04/msg407.html>
|
| 226 |
+
.IP "\(bu" 4
|
| 227 |
+
Not keen on \s-1YAML\s0 <http://www.nntp.perl.org/group/perl.module-authors/2003/11/msg1353.html>
|
| 228 |
+
.IP "\(bu" 4
|
| 229 |
+
\&\s-1META\s0 Concerns <http://www.nntp.perl.org/group/perl.module-authors/2003/11/msg1385.html>
|
| 230 |
+
.SH "TERMINOLOGY"
|
| 231 |
+
.IX Header "TERMINOLOGY"
|
| 232 |
+
.IP "distribution" 4
|
| 233 |
+
.IX Item "distribution"
|
| 234 |
+
This is the primary object described by the \fI\s-1META\s0.yml\fR
|
| 235 |
+
specification. In the context of this document it usually refers to a
|
| 236 |
+
collection of modules, scripts, and/or documents that are distributed
|
| 237 |
+
for other developers to use.
|
| 238 |
+
.IP "module" 4
|
| 239 |
+
.IX Item "module"
|
| 240 |
+
This refers to a reusable library of code typically contained in a
|
| 241 |
+
single file. Currently, we primarily talk of perl modules, but this
|
| 242 |
+
specification should be open enough to apply to other languages as
|
| 243 |
+
well (ex. python, ruby).
|
| 244 |
+
.SH "VERSION SPECIFICATIONS"
|
| 245 |
+
.IX Header "VERSION SPECIFICATIONS"
|
| 246 |
+
Some fields require a version specification (ex. \*(L"requires\*(R",
|
| 247 |
+
\&\*(L"recommends\*(R", \*(L"build_requires\*(R", etc.). This section details the
|
| 248 |
+
version specifications that are currently supported.
|
| 249 |
+
.PP
|
| 250 |
+
If a single version is listed, then that version is considered to be
|
| 251 |
+
the minimum version supported.
|
| 252 |
+
.PP
|
| 253 |
+
If 0 is given as the version number, then any version is supported.
|
| 254 |
+
.PP
|
| 255 |
+
Additionally, for more complicated requirements, the specification
|
| 256 |
+
supports a list of versions, each of which may be optionally preceded
|
| 257 |
+
by a relational operator.
|
| 258 |
+
.PP
|
| 259 |
+
Supported operators include < (less than), <= (less than or
|
| 260 |
+
equal), > (greater than), >= (greater than or equal), == (equal), and !=
|
| 261 |
+
(not equal).
|
| 262 |
+
.PP
|
| 263 |
+
If a list is given then it is evaluated from left to right so that any
|
| 264 |
+
specifications in the list that conflict with a previous specification
|
| 265 |
+
are overridden by the later.
|
| 266 |
+
.PP
|
| 267 |
+
Examples:
|
| 268 |
+
.PP
|
| 269 |
+
.Vb 1
|
| 270 |
+
\& >= 1.2, != 1.5, < 2.0
|
| 271 |
+
.Ve
|
| 272 |
+
.PP
|
| 273 |
+
Any version from version 1.2 onward, except version 1.5, that also
|
| 274 |
+
precedes version 2.0.
|
| 275 |
+
.SH "HEADER"
|
| 276 |
+
.IX Header "HEADER"
|
| 277 |
+
The first line of a \fI\s-1META\s0.yml\fR file should be a valid \s-1YAML\s0 document
|
| 278 |
+
header like \f(CW"\-\-\- #YAML:1.0"\fR.
|
| 279 |
+
.SH "FIELDS"
|
| 280 |
+
.IX Header "FIELDS"
|
| 281 |
+
The rest of the \fI\s-1META\s0.yml\fR file is one big \s-1YAML\s0 mapping whose keys
|
| 282 |
+
are described here.
|
| 283 |
+
.SS "meta-spec"
|
| 284 |
+
.IX Subsection "meta-spec"
|
| 285 |
+
Example:
|
| 286 |
+
.PP
|
| 287 |
+
.Vb 3
|
| 288 |
+
\& meta\-spec:
|
| 289 |
+
\& version: 1.2
|
| 290 |
+
\& url: http://module\-build.sourceforge.net/META\-spec\-v1.2.html
|
| 291 |
+
.Ve
|
| 292 |
+
.PP
|
| 293 |
+
(Spec 1.1) [required] {\s-1URL\s0} This field indicates the location of the
|
| 294 |
+
version of the \s-1META\s0.yml specification used.
|
| 295 |
+
.SS "name"
|
| 296 |
+
.IX Subsection "name"
|
| 297 |
+
Example:
|
| 298 |
+
.PP
|
| 299 |
+
.Vb 1
|
| 300 |
+
\& name: Module\-Build
|
| 301 |
+
.Ve
|
| 302 |
+
.PP
|
| 303 |
+
(Spec 1.0) [required] {string} The name of the distribution which is often
|
| 304 |
+
created by taking the \*(L"main module\*(R" in the distribution and changing
|
| 305 |
+
\&\*(L"::\*(R" to \*(L"\-\*(R". Sometimes it's completely different, however, as in the
|
| 306 |
+
case of the libwww-perl distribution (see
|
| 307 |
+
<http://search.cpan.org/author/GAAS/libwww\-perl/>).
|
| 308 |
+
.SS "version"
|
| 309 |
+
.IX Subsection "version"
|
| 310 |
+
Example:
|
| 311 |
+
.PP
|
| 312 |
+
.Vb 1
|
| 313 |
+
\& version: 0.20
|
| 314 |
+
.Ve
|
| 315 |
+
.PP
|
| 316 |
+
(Spec 1.0) [required] {version} The version of the distribution to which the
|
| 317 |
+
\&\fI\s-1META\s0.yml\fR file refers.
|
| 318 |
+
.SS "abstract"
|
| 319 |
+
.IX Subsection "abstract"
|
| 320 |
+
Example:
|
| 321 |
+
.PP
|
| 322 |
+
.Vb 1
|
| 323 |
+
\& abstract: Build and install Perl modules.
|
| 324 |
+
.Ve
|
| 325 |
+
.PP
|
| 326 |
+
(Spec 1.1) [required] {string} A short description of the purpose of the
|
| 327 |
+
distribution.
|
| 328 |
+
.SS "author"
|
| 329 |
+
.IX Subsection "author"
|
| 330 |
+
Example:
|
| 331 |
+
.PP
|
| 332 |
+
.Vb 2
|
| 333 |
+
\& author:
|
| 334 |
+
\& \- Ken Williams <kwilliams@cpan.org>
|
| 335 |
+
.Ve
|
| 336 |
+
.PP
|
| 337 |
+
(Spec 1.1) [required] {list of strings} A \s-1YAML\s0 sequence indicating the author(s) of the
|
| 338 |
+
distribution. The preferred form is author-name <email\-address>.
|
| 339 |
+
.SS "license"
|
| 340 |
+
.IX Subsection "license"
|
| 341 |
+
Example:
|
| 342 |
+
.PP
|
| 343 |
+
.Vb 1
|
| 344 |
+
\& license: perl
|
| 345 |
+
.Ve
|
| 346 |
+
.PP
|
| 347 |
+
(Spec 1.0) [required] {string} The license under which this distribution may be
|
| 348 |
+
used and redistributed.
|
| 349 |
+
.PP
|
| 350 |
+
Must be one of the following licenses:
|
| 351 |
+
.IP "perl" 4
|
| 352 |
+
.IX Item "perl"
|
| 353 |
+
The distribution may be copied and redistributed under the same terms as perl
|
| 354 |
+
itself (this is by far the most common licensing option for modules on \s-1CPAN\s0).
|
| 355 |
+
This is a dual license, in which the user may choose between either the \s-1GPL\s0
|
| 356 |
+
version 1 or the Artistic version 1 license.
|
| 357 |
+
.IP "gpl" 4
|
| 358 |
+
.IX Item "gpl"
|
| 359 |
+
The distribution is distributed under the terms of the \s-1GNU\s0 General Public
|
| 360 |
+
License version 2 (<http://opensource.org/licenses/GPL\-2.0>).
|
| 361 |
+
.IP "lgpl" 4
|
| 362 |
+
.IX Item "lgpl"
|
| 363 |
+
The distribution is distributed under the terms of the \s-1GNU\s0 Lesser General
|
| 364 |
+
Public License version 2 (<http://opensource.org/licenses/LGPL\-2.1>).
|
| 365 |
+
.IP "artistic" 4
|
| 366 |
+
.IX Item "artistic"
|
| 367 |
+
The distribution is licensed under the Artistic License version 1, as specified
|
| 368 |
+
by the Artistic file in the standard perl distribution
|
| 369 |
+
(<http://opensource.org/licenses/Artistic\-Perl\-1.0>).
|
| 370 |
+
.IP "bsd" 4
|
| 371 |
+
.IX Item "bsd"
|
| 372 |
+
The distribution is licensed under the \s-1BSD\s0 3\-Clause License
|
| 373 |
+
(<http://opensource.org/licenses/BSD\-3\-Clause>).
|
| 374 |
+
.IP "open_source" 4
|
| 375 |
+
.IX Item "open_source"
|
| 376 |
+
The distribution is licensed under some other Open Source Initiative-approved
|
| 377 |
+
license listed at <http://www.opensource.org/licenses/>.
|
| 378 |
+
.IP "unrestricted" 4
|
| 379 |
+
.IX Item "unrestricted"
|
| 380 |
+
The distribution is licensed under a license that is \fBnot\fR approved by
|
| 381 |
+
www.opensource.org <http://www.opensource.org/> but that allows distribution
|
| 382 |
+
without restrictions.
|
| 383 |
+
.IP "restrictive" 4
|
| 384 |
+
.IX Item "restrictive"
|
| 385 |
+
The distribution may not be redistributed without special permission from the
|
| 386 |
+
author and/or copyright holder.
|
| 387 |
+
.SS "distribution_type"
|
| 388 |
+
.IX Subsection "distribution_type"
|
| 389 |
+
Example:
|
| 390 |
+
.PP
|
| 391 |
+
.Vb 1
|
| 392 |
+
\& distribution_type: module
|
| 393 |
+
.Ve
|
| 394 |
+
.PP
|
| 395 |
+
(Spec 1.0) [optional] {string} What kind of stuff is contained in this
|
| 396 |
+
distribution. Most things on \s-1CPAN\s0 are \f(CW\*(C`module\*(C'\fRs (which can also mean
|
| 397 |
+
a collection of modules), but some things are \f(CW\*(C`script\*(C'\fRs.
|
| 398 |
+
.PP
|
| 399 |
+
Unfortunately this field is basically meaningless, since many
|
| 400 |
+
distributions are hybrids of several kinds of things, or some new
|
| 401 |
+
thing, or subjectively different in focus depending on who's using
|
| 402 |
+
them. Tools like Module::Build and MakeMaker will likely stop
|
| 403 |
+
generating this field.
|
| 404 |
+
.SS "requires"
|
| 405 |
+
.IX Subsection "requires"
|
| 406 |
+
Example:
|
| 407 |
+
.PP
|
| 408 |
+
.Vb 3
|
| 409 |
+
\& requires:
|
| 410 |
+
\& Data::Dumper: 0
|
| 411 |
+
\& File::Find: 1.03
|
| 412 |
+
.Ve
|
| 413 |
+
.PP
|
| 414 |
+
(Spec 1.0) [optional] {map} A \s-1YAML\s0 mapping indicating the Perl modules this
|
| 415 |
+
distribution requires for proper operation. The keys are the module
|
| 416 |
+
names, and the values are version specifications as described in
|
| 417 |
+
Module::Build for the \*(L"requires\*(R" parameter.
|
| 418 |
+
.SS "recommends"
|
| 419 |
+
.IX Subsection "recommends"
|
| 420 |
+
Example:
|
| 421 |
+
.PP
|
| 422 |
+
.Vb 3
|
| 423 |
+
\& recommends:
|
| 424 |
+
\& Data::Dumper: 0
|
| 425 |
+
\& File::Find: 1.03
|
| 426 |
+
.Ve
|
| 427 |
+
.PP
|
| 428 |
+
(Spec 1.0) [optional] {map} A \s-1YAML\s0 mapping indicating the Perl modules this
|
| 429 |
+
distribution recommends for enhanced operation.
|
| 430 |
+
.PP
|
| 431 |
+
\&\fI\s-1ALTERNATIVE:\s0 It may be desirable to present to the user which
|
| 432 |
+
features depend on which modules so they can make an informed
|
| 433 |
+
decision about which recommended modules to install.\fR
|
| 434 |
+
.PP
|
| 435 |
+
Example:
|
| 436 |
+
.PP
|
| 437 |
+
.Vb 9
|
| 438 |
+
\& optional_features:
|
| 439 |
+
\& \- foo:
|
| 440 |
+
\& description: Provides the ability to blah.
|
| 441 |
+
\& requires:
|
| 442 |
+
\& Data::Dumper: 0
|
| 443 |
+
\& File::Find: 1.03
|
| 444 |
+
\& \- bar:
|
| 445 |
+
\& description: This feature is not available on this platform.
|
| 446 |
+
\& excludes_os: MSWin32
|
| 447 |
+
.Ve
|
| 448 |
+
.PP
|
| 449 |
+
\&\fI(Spec 1.1) [optional] {map} A \s-1YAML\s0 sequence of names for optional features
|
| 450 |
+
which are made available when its requirements are met. For each
|
| 451 |
+
feature a description is provided along with any of \*(L"requires\*(R",
|
| 452 |
+
\&\*(L"build_requires\*(R", \*(L"conflicts\*(R", \f(CI\*(C`requires_packages\*(C'\fI,
|
| 453 |
+
\&\f(CI\*(C`requires_os\*(C'\fI, and \f(CI\*(C`excludes_os\*(C'\fI which have the same meaning in
|
| 454 |
+
this subcontext as described elsewhere in this document.\fR
|
| 455 |
+
.SS "build_requires"
|
| 456 |
+
.IX Subsection "build_requires"
|
| 457 |
+
Example:
|
| 458 |
+
.PP
|
| 459 |
+
.Vb 3
|
| 460 |
+
\& build_requires:
|
| 461 |
+
\& Data::Dumper: 0
|
| 462 |
+
\& File::Find: 1.03
|
| 463 |
+
.Ve
|
| 464 |
+
.PP
|
| 465 |
+
(Spec 1.0) [optional] {map} A \s-1YAML\s0 mapping indicating the Perl modules
|
| 466 |
+
required for building and/or testing of this distribution. These
|
| 467 |
+
dependencies are not required after the module is installed.
|
| 468 |
+
.SS "conflicts"
|
| 469 |
+
.IX Subsection "conflicts"
|
| 470 |
+
Example:
|
| 471 |
+
.PP
|
| 472 |
+
.Vb 3
|
| 473 |
+
\& conflicts:
|
| 474 |
+
\& Data::Dumper: 0
|
| 475 |
+
\& File::Find: 1.03
|
| 476 |
+
.Ve
|
| 477 |
+
.PP
|
| 478 |
+
(Spec 1.0) [optional] {map} A \s-1YAML\s0 mapping indicating the Perl modules that
|
| 479 |
+
cannot be installed while this distribution is installed. This is a
|
| 480 |
+
pretty uncommon situation.
|
| 481 |
+
.SS "dynamic_config"
|
| 482 |
+
.IX Subsection "dynamic_config"
|
| 483 |
+
Example:
|
| 484 |
+
.PP
|
| 485 |
+
.Vb 1
|
| 486 |
+
\& dynamic_config: 0
|
| 487 |
+
.Ve
|
| 488 |
+
.PP
|
| 489 |
+
(Spec 1.0) [optional] {boolean} A boolean flag indicating whether a \fIBuild.PL\fR
|
| 490 |
+
or \fIMakefile.PL\fR (or similar) must be executed when building this
|
| 491 |
+
distribution, or whether it can be built, tested and installed solely
|
| 492 |
+
from consulting its
|
| 493 |
+
metadata file. The main reason to set this to a true value if that
|
| 494 |
+
your module performs some dynamic configuration (asking questions,
|
| 495 |
+
sensing the environment, etc.) as part of its build/install process.
|
| 496 |
+
.PP
|
| 497 |
+
Currently Module::Build doesn't actually do anything with this flag
|
| 498 |
+
\&\- it's probably going to be up to higher-level tools like \s-1CPAN\s0
|
| 499 |
+
to do something useful with it. It can potentially bring lots of
|
| 500 |
+
security, packaging, and convenience improvements.
|
| 501 |
+
.PP
|
| 502 |
+
If this field is omitted, it defaults to 1 (true).
|
| 503 |
+
.SS "private"
|
| 504 |
+
.IX Subsection "private"
|
| 505 |
+
\&\fI(Deprecated)\fR (Spec 1.0) [optional] {map} This field has been renamed to
|
| 506 |
+
\&\*(L"no_index\*(R". See below.
|
| 507 |
+
.SS "provides"
|
| 508 |
+
.IX Subsection "provides"
|
| 509 |
+
Example:
|
| 510 |
+
.PP
|
| 511 |
+
.Vb 9
|
| 512 |
+
\& provides:
|
| 513 |
+
\& Foo::Bar:
|
| 514 |
+
\& file: lib/Foo/Bar.pm
|
| 515 |
+
\& version: 0.27_02
|
| 516 |
+
\& Foo::Bar::Blah:
|
| 517 |
+
\& file: lib/Foo/Bar/Blah.pm
|
| 518 |
+
\& Foo::Bar::Baz:
|
| 519 |
+
\& file: lib/Foo/Bar/Baz.pm
|
| 520 |
+
\& version: 0.3
|
| 521 |
+
.Ve
|
| 522 |
+
.PP
|
| 523 |
+
(Spec 1.1) [optional] {map} A \s-1YAML\s0 mapping that describes all packages
|
| 524 |
+
provided by this distribution. This information can be (and, in some
|
| 525 |
+
cases, is) used by distribution and automation mechanisms like \s-1PAUSE,
|
| 526 |
+
CPAN,\s0 and search.cpan.org to build indexes saying in which
|
| 527 |
+
distribution various packages can be found.
|
| 528 |
+
.PP
|
| 529 |
+
When using tools like Module::Build that can generate the
|
| 530 |
+
\&\f(CW\*(C`provides\*(C'\fR mapping for your distribution automatically, make sure you
|
| 531 |
+
examine what it generates to make sure it makes sense \- indexers will
|
| 532 |
+
usually trust the \f(CW\*(C`provides\*(C'\fR field if it's present, rather than
|
| 533 |
+
scanning through the distribution files themselves to figure out
|
| 534 |
+
packages and versions. This is a good thing, because it means you can
|
| 535 |
+
use the \f(CW\*(C`provides\*(C'\fR field to tell the indexers precisely what you want
|
| 536 |
+
indexed about your distribution, rather than relying on them to
|
| 537 |
+
essentially guess what you want indexed.
|
| 538 |
+
.SS "no_index"
|
| 539 |
+
.IX Subsection "no_index"
|
| 540 |
+
Example:
|
| 541 |
+
.PP
|
| 542 |
+
.Vb 9
|
| 543 |
+
\& no_index:
|
| 544 |
+
\& file:
|
| 545 |
+
\& \- My/Module.pm
|
| 546 |
+
\& dir:
|
| 547 |
+
\& \- My/Private
|
| 548 |
+
\& package:
|
| 549 |
+
\& \- My::Module::Stuff
|
| 550 |
+
\& namespace:
|
| 551 |
+
\& \- My::Module::Stuff
|
| 552 |
+
.Ve
|
| 553 |
+
.PP
|
| 554 |
+
(Spec 1.1) [optional] {map} A \s-1YAML\s0 mapping that describes any files,
|
| 555 |
+
directories, packages, and namespaces that are private
|
| 556 |
+
(i.e. implementation artifacts) that are not of interest to searching
|
| 557 |
+
and indexing tools. This is useful when no \f(CW\*(C`provides\*(C'\fR field is
|
| 558 |
+
present.
|
| 559 |
+
.PP
|
| 560 |
+
\&\fI(Note: I'm not actually sure who looks at this field, or exactly
|
| 561 |
+
what they do with it. This spec could be off in some way from actual
|
| 562 |
+
usage.)\fR
|
| 563 |
+
.PP
|
| 564 |
+
\fIfile\fR
|
| 565 |
+
.IX Subsection "file"
|
| 566 |
+
.PP
|
| 567 |
+
(Spec 1.1) [optional] Exclude any listed file(s).
|
| 568 |
+
.PP
|
| 569 |
+
\fIdir\fR
|
| 570 |
+
.IX Subsection "dir"
|
| 571 |
+
.PP
|
| 572 |
+
(Spec 1.1) [optional] Exclude anything below the listed
|
| 573 |
+
directory(ies).
|
| 574 |
+
.PP
|
| 575 |
+
\fIpackage\fR
|
| 576 |
+
.IX Subsection "package"
|
| 577 |
+
.PP
|
| 578 |
+
(Spec 1.1) [optional] Exclude the listed package(s).
|
| 579 |
+
.PP
|
| 580 |
+
\fInamespace\fR
|
| 581 |
+
.IX Subsection "namespace"
|
| 582 |
+
.PP
|
| 583 |
+
(Spec 1.1) [optional] Excludes anything below the listed namespace(s),
|
| 584 |
+
but \fInot\fR the listed namespace(s) its self.
|
| 585 |
+
.SS "keywords"
|
| 586 |
+
.IX Subsection "keywords"
|
| 587 |
+
Example:
|
| 588 |
+
.PP
|
| 589 |
+
.Vb 4
|
| 590 |
+
\& keywords:
|
| 591 |
+
\& \- make
|
| 592 |
+
\& \- build
|
| 593 |
+
\& \- install
|
| 594 |
+
.Ve
|
| 595 |
+
.PP
|
| 596 |
+
(Spec 1.1) [optional] {list} A sequence of keywords/phrases that describe
|
| 597 |
+
this distribution.
|
| 598 |
+
.SS "resources"
|
| 599 |
+
.IX Subsection "resources"
|
| 600 |
+
Example:
|
| 601 |
+
.PP
|
| 602 |
+
.Vb 5
|
| 603 |
+
\& resources:
|
| 604 |
+
\& license: http://dev.perl.org/licenses/
|
| 605 |
+
\& homepage: http://sourceforge.net/projects/module\-build
|
| 606 |
+
\& bugtracker: http://rt.cpan.org/NoAuth/Bugs.html?Dist=Module\-Build
|
| 607 |
+
\& MailingList: http://lists.sourceforge.net/lists/listinfo/module\-build\-general
|
| 608 |
+
.Ve
|
| 609 |
+
.PP
|
| 610 |
+
(Spec 1.1) [optional] {map} A mapping of any \s-1URL\s0 resources related to
|
| 611 |
+
this distribution. All-lower-case keys, such as \f(CW\*(C`homepage\*(C'\fR,
|
| 612 |
+
\&\f(CW\*(C`license\*(C'\fR, and \f(CW\*(C`bugtracker\*(C'\fR, are reserved by this specification, as
|
| 613 |
+
they have \*(L"official\*(R" meanings defined here in this specification. If
|
| 614 |
+
you'd like to add your own \*(L"special\*(R" entries (like the \*(L"MailingList\*(R"
|
| 615 |
+
entry above), use at least one upper-case letter.
|
| 616 |
+
.PP
|
| 617 |
+
The current set of official keys is:
|
| 618 |
+
.IP "homepage" 2
|
| 619 |
+
.IX Item "homepage"
|
| 620 |
+
The official home of this project on the web.
|
| 621 |
+
.IP "license" 2
|
| 622 |
+
.IX Item "license"
|
| 623 |
+
An \s-1URL\s0 for an official statement of this distribution's license.
|
| 624 |
+
.IP "bugtracker" 2
|
| 625 |
+
.IX Item "bugtracker"
|
| 626 |
+
An \s-1URL\s0 for a bug tracker (e.g. Bugzilla or \s-1RT\s0 queue) for this project.
|
| 627 |
+
.SS "generated_by"
|
| 628 |
+
.IX Subsection "generated_by"
|
| 629 |
+
Example:
|
| 630 |
+
.PP
|
| 631 |
+
.Vb 1
|
| 632 |
+
\& generated_by: Module::Build version 0.20
|
| 633 |
+
.Ve
|
| 634 |
+
.PP
|
| 635 |
+
(Spec 1.0) [required] {string} Indicates the tool that was used to create this
|
| 636 |
+
\&\fI\s-1META\s0.yml\fR file. It's good form to include both the name of the tool
|
| 637 |
+
and its version, but this field is essentially opaque, at least for
|
| 638 |
+
the moment. If \fI\s-1META\s0.yml\fR was generated by hand, it is suggested that
|
| 639 |
+
the author be specified here.
|
| 640 |
+
.PP
|
| 641 |
+
[Note: My \fImeta_stats.pl\fR script which I use to gather statistics
|
| 642 |
+
regarding \fI\s-1META\s0.yml\fR usage prefers the form listed above, i.e. it
|
| 643 |
+
splits on /\es+version\es+/ taking the first field as the name of the
|
| 644 |
+
tool that generated the file and the second field as version of that
|
| 645 |
+
tool. \s-1RWS\s0]
|
| 646 |
+
.SH "SEE ALSO"
|
| 647 |
+
.IX Header "SEE ALSO"
|
| 648 |
+
\&\s-1CPAN\s0 <http://www.cpan.org/>
|
| 649 |
+
.PP
|
| 650 |
+
\&\s-1CPAN\s0.pm
|
| 651 |
+
.PP
|
| 652 |
+
\&\s-1CPANPLUS\s0
|
| 653 |
+
.PP
|
| 654 |
+
Data::Dumper
|
| 655 |
+
.PP
|
| 656 |
+
ExtUtils::MakeMaker
|
| 657 |
+
.PP
|
| 658 |
+
Module::Build
|
| 659 |
+
.PP
|
| 660 |
+
Module::Install
|
| 661 |
+
.PP
|
| 662 |
+
\&\s-1XML\s0 <http://www.w3.org/XML/>
|
| 663 |
+
.PP
|
| 664 |
+
\&\s-1YAML\s0 <http://www.yaml.org/>
|
| 665 |
+
.SH "HISTORY"
|
| 666 |
+
.IX Header "HISTORY"
|
| 667 |
+
.IP "March 14, 2003 (Pi day)" 4
|
| 668 |
+
.IX Item "March 14, 2003 (Pi day)"
|
| 669 |
+
.RS 4
|
| 670 |
+
.PD 0
|
| 671 |
+
.IP "\(bu" 2
|
| 672 |
+
.PD
|
| 673 |
+
Created version 1.0 of this document.
|
| 674 |
+
.RE
|
| 675 |
+
.RS 4
|
| 676 |
+
.RE
|
| 677 |
+
.IP "May 8, 2003" 4
|
| 678 |
+
.IX Item "May 8, 2003"
|
| 679 |
+
.RS 4
|
| 680 |
+
.PD 0
|
| 681 |
+
.IP "\(bu" 2
|
| 682 |
+
.PD
|
| 683 |
+
Added the \*(L"dynamic_config\*(R" field, which was missing from the initial
|
| 684 |
+
version.
|
| 685 |
+
.RE
|
| 686 |
+
.RS 4
|
| 687 |
+
.RE
|
| 688 |
+
.IP "November 13, 2003" 4
|
| 689 |
+
.IX Item "November 13, 2003"
|
| 690 |
+
.RS 4
|
| 691 |
+
.PD 0
|
| 692 |
+
.IP "\(bu" 2
|
| 693 |
+
.PD
|
| 694 |
+
Added more \s-1YAML\s0 rationale articles.
|
| 695 |
+
.IP "\(bu" 2
|
| 696 |
+
Fixed existing link to \s-1YAML\s0 discussion thread to point to new
|
| 697 |
+
<http://nntp.x.perl.org/group/> site.
|
| 698 |
+
.IP "\(bu" 2
|
| 699 |
+
Added and deprecated the \*(L"private\*(R" field.
|
| 700 |
+
.IP "\(bu" 2
|
| 701 |
+
Added \*(L"abstract\*(R", \f(CW\*(C`configure\*(C'\fR, \f(CW\*(C`requires_packages\*(C'\fR,
|
| 702 |
+
\&\f(CW\*(C`requires_os\*(C'\fR, \f(CW\*(C`excludes_os\*(C'\fR, and \*(L"no_index\*(R" fields.
|
| 703 |
+
.IP "\(bu" 2
|
| 704 |
+
Bumped version.
|
| 705 |
+
.RE
|
| 706 |
+
.RS 4
|
| 707 |
+
.RE
|
| 708 |
+
.IP "November 16, 2003" 4
|
| 709 |
+
.IX Item "November 16, 2003"
|
| 710 |
+
.RS 4
|
| 711 |
+
.PD 0
|
| 712 |
+
.IP "\(bu" 2
|
| 713 |
+
.PD
|
| 714 |
+
Added \f(CW\*(C`generation\*(C'\fR, \f(CW\*(C`authored_by\*(C'\fR fields.
|
| 715 |
+
.IP "\(bu" 2
|
| 716 |
+
Add alternative proposal to the \*(L"recommends\*(R" field.
|
| 717 |
+
.IP "\(bu" 2
|
| 718 |
+
Add proposal for a \f(CW\*(C`requires_build_tools\*(C'\fR field.
|
| 719 |
+
.RE
|
| 720 |
+
.RS 4
|
| 721 |
+
.RE
|
| 722 |
+
.IP "December 9, 2003" 4
|
| 723 |
+
.IX Item "December 9, 2003"
|
| 724 |
+
.RS 4
|
| 725 |
+
.PD 0
|
| 726 |
+
.IP "\(bu" 2
|
| 727 |
+
.PD
|
| 728 |
+
Added link to latest version of this specification on \s-1CPAN.\s0
|
| 729 |
+
.IP "\(bu" 2
|
| 730 |
+
Added section \*(L"\s-1VERSION SPECIFICATIONS\*(R"\s0.
|
| 731 |
+
.IP "\(bu" 2
|
| 732 |
+
Chang name from Module::Build::META\-spec to CPAN::META::Specification.
|
| 733 |
+
.IP "\(bu" 2
|
| 734 |
+
Add proposal for \f(CW\*(C`auto_regenerate\*(C'\fR field.
|
| 735 |
+
.RE
|
| 736 |
+
.RS 4
|
| 737 |
+
.RE
|
| 738 |
+
.IP "December 15, 2003" 4
|
| 739 |
+
.IX Item "December 15, 2003"
|
| 740 |
+
.RS 4
|
| 741 |
+
.PD 0
|
| 742 |
+
.IP "\(bu" 2
|
| 743 |
+
.PD
|
| 744 |
+
Add \f(CW\*(C`index\*(C'\fR field as a compliment to \*(L"no_index\*(R"
|
| 745 |
+
.IP "\(bu" 2
|
| 746 |
+
Add \*(L"keywords\*(R" field as a means to aid searching distributions.
|
| 747 |
+
.IP "\(bu" 2
|
| 748 |
+
Add \*(L"\s-1TERMINOLOGY\*(R"\s0 section to explain certain terms that may be
|
| 749 |
+
ambiguous.
|
| 750 |
+
.RE
|
| 751 |
+
.RS 4
|
| 752 |
+
.RE
|
| 753 |
+
.IP "July 26, 2005" 4
|
| 754 |
+
.IX Item "July 26, 2005"
|
| 755 |
+
.RS 4
|
| 756 |
+
.PD 0
|
| 757 |
+
.IP "\(bu" 2
|
| 758 |
+
.PD
|
| 759 |
+
Removed a bunch of items (generation, requires_build_tools,
|
| 760 |
+
requires_packages, configure, requires_os, excludes_os,
|
| 761 |
+
auto_regenerate) that have never actually been supported, but were
|
| 762 |
+
more like records of brainstorming.
|
| 763 |
+
.IP "\(bu" 2
|
| 764 |
+
Changed \f(CW\*(C`authored_by\*(C'\fR to \*(L"author\*(R", since that's always been what
|
| 765 |
+
it's actually called in actual \fI\s-1META\s0.yml\fR files.
|
| 766 |
+
.IP "\(bu" 2
|
| 767 |
+
Added the \*(L"==\*(R" operator to the list of supported version-checking
|
| 768 |
+
operators.
|
| 769 |
+
.IP "\(bu" 2
|
| 770 |
+
Noted that the \*(L"distribution_type\*(R" field is basically meaningless,
|
| 771 |
+
and shouldn't really be used.
|
| 772 |
+
.IP "\(bu" 2
|
| 773 |
+
Clarified \*(L"dynamic_config\*(R" a bit.
|
| 774 |
+
.RE
|
| 775 |
+
.RS 4
|
| 776 |
+
.RE
|
| 777 |
+
.IP "August 23, 2005" 4
|
| 778 |
+
.IX Item "August 23, 2005"
|
| 779 |
+
.RS 4
|
| 780 |
+
.PD 0
|
| 781 |
+
.IP "\(bu" 2
|
| 782 |
+
.PD
|
| 783 |
+
Removed the name \f(CW\*(C`CPAN::META::Specification\*(C'\fR, since that implies a
|
| 784 |
+
module that doesn't actually exist.
|
| 785 |
+
.RE
|
| 786 |
+
.RS 4
|
| 787 |
+
.RE
|
data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AHistory%3A%3AMeta_1_3.3
ADDED
|
@@ -0,0 +1,808 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "CPAN::Meta::History::Meta_1_3 3"
|
| 136 |
+
.TH CPAN::Meta::History::Meta_1_3 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
CPAN::Meta::History::Meta_1_3 \- Version 1.3 metadata specification for META.yml
|
| 143 |
+
.SH "PREFACE"
|
| 144 |
+
.IX Header "PREFACE"
|
| 145 |
+
This is a historical copy of the version 1.3 specification for \fI\s-1META\s0.yml\fR
|
| 146 |
+
files, copyright by Ken Williams and licensed under the same terms as Perl
|
| 147 |
+
itself.
|
| 148 |
+
.PP
|
| 149 |
+
Modifications from the original:
|
| 150 |
+
.IP "\(bu" 4
|
| 151 |
+
Various spelling corrections
|
| 152 |
+
.IP "\(bu" 4
|
| 153 |
+
Include list of valid licenses from Module::Build 0.2805 rather than
|
| 154 |
+
linking to the module, with minor updates to text and links to reflect
|
| 155 |
+
versions at the time of publication.
|
| 156 |
+
.IP "\(bu" 4
|
| 157 |
+
Fixed some dead links to point to active resources.
|
| 158 |
+
.SH "SYNOPSIS"
|
| 159 |
+
.IX Header "SYNOPSIS"
|
| 160 |
+
.Vb 10
|
| 161 |
+
\& \-\-\- #YAML:1.0
|
| 162 |
+
\& name: Module\-Build
|
| 163 |
+
\& abstract: Build and install Perl modules
|
| 164 |
+
\& version: 0.20
|
| 165 |
+
\& author:
|
| 166 |
+
\& \- Ken Williams <kwilliams@cpan.org>
|
| 167 |
+
\& license: perl
|
| 168 |
+
\& distribution_type: module
|
| 169 |
+
\& requires:
|
| 170 |
+
\& Config: 0
|
| 171 |
+
\& Cwd: 0
|
| 172 |
+
\& Data::Dumper: 0
|
| 173 |
+
\& ExtUtils::Install: 0
|
| 174 |
+
\& File::Basename: 0
|
| 175 |
+
\& File::Compare: 0
|
| 176 |
+
\& File::Copy: 0
|
| 177 |
+
\& File::Find: 0
|
| 178 |
+
\& File::Path: 0
|
| 179 |
+
\& File::Spec: 0
|
| 180 |
+
\& IO::File: 0
|
| 181 |
+
\& perl: 5.005_03
|
| 182 |
+
\& recommends:
|
| 183 |
+
\& Archive::Tar: 1.00
|
| 184 |
+
\& ExtUtils::Install: 0.3
|
| 185 |
+
\& ExtUtils::ParseXS: 2.02
|
| 186 |
+
\& Pod::Text: 0
|
| 187 |
+
\& YAML: 0.35
|
| 188 |
+
\& build_requires:
|
| 189 |
+
\& Test: 0
|
| 190 |
+
\& urls:
|
| 191 |
+
\& license: http://dev.perl.org/licenses/
|
| 192 |
+
\& meta\-spec:
|
| 193 |
+
\& version: 1.3
|
| 194 |
+
\& url: http://module\-build.sourceforge.net/META\-spec\-v1.3.html
|
| 195 |
+
\& generated_by: Module::Build version 0.20
|
| 196 |
+
.Ve
|
| 197 |
+
.SH "DESCRIPTION"
|
| 198 |
+
.IX Header "DESCRIPTION"
|
| 199 |
+
This document describes version 1.3 of the \fI\s-1META\s0.yml\fR specification.
|
| 200 |
+
.PP
|
| 201 |
+
The \fI\s-1META\s0.yml\fR file describes important properties of contributed
|
| 202 |
+
Perl distributions such as the ones found on \s-1CPAN.\s0 It is typically
|
| 203 |
+
created by tools like Module::Build, Module::Install, and
|
| 204 |
+
ExtUtils::MakeMaker.
|
| 205 |
+
.PP
|
| 206 |
+
The fields in the \fI\s-1META\s0.yml\fR file are meant to be helpful for people
|
| 207 |
+
maintaining module collections (like \s-1CPAN\s0), for people writing
|
| 208 |
+
installation tools (like \s-1CPAN\s0.pm or \s-1CPANPLUS\s0), or just for people who
|
| 209 |
+
want to know some stuff about a distribution before downloading it and
|
| 210 |
+
starting to install it.
|
| 211 |
+
.PP
|
| 212 |
+
\&\fINote: The latest stable version of this specification can always be
|
| 213 |
+
found at <http://module\-build.sourceforge.net/META\-spec\-current.html>,
|
| 214 |
+
and the latest development version (which may include things that
|
| 215 |
+
won't make it into the stable version) can always be found at
|
| 216 |
+
<http://module\-build.sourceforge.net/META\-spec\-blead.html>.\fR
|
| 217 |
+
.SH "FORMAT"
|
| 218 |
+
.IX Header "FORMAT"
|
| 219 |
+
\&\fI\s-1META\s0.yml\fR files are written in the \s-1YAML\s0 format (see
|
| 220 |
+
<http://www.yaml.org/>).
|
| 221 |
+
.PP
|
| 222 |
+
See the following links to learn why we chose \s-1YAML\s0 instead of, say,
|
| 223 |
+
\&\s-1XML\s0 or Data::Dumper:
|
| 224 |
+
.IP "\(bu" 4
|
| 225 |
+
Module::Build design plans <http://www.nntp.perl.org/group/perl.makemaker/2002/04/msg407.html>
|
| 226 |
+
.IP "\(bu" 4
|
| 227 |
+
Not keen on \s-1YAML\s0 <http://www.nntp.perl.org/group/perl.module-authors/2003/11/msg1353.html>
|
| 228 |
+
.IP "\(bu" 4
|
| 229 |
+
\&\s-1META\s0 Concerns <http://www.nntp.perl.org/group/perl.module-authors/2003/11/msg1385.html>
|
| 230 |
+
.SH "TERMINOLOGY"
|
| 231 |
+
.IX Header "TERMINOLOGY"
|
| 232 |
+
.IP "distribution" 4
|
| 233 |
+
.IX Item "distribution"
|
| 234 |
+
This is the primary object described by the \fI\s-1META\s0.yml\fR
|
| 235 |
+
specification. In the context of this document it usually refers to a
|
| 236 |
+
collection of modules, scripts, and/or documents that are distributed
|
| 237 |
+
together for other developers to use. Examples of distributions are
|
| 238 |
+
\&\f(CW\*(C`Class\-Container\*(C'\fR, \f(CW\*(C`libwww\-perl\*(C'\fR, or \f(CW\*(C`DBI\*(C'\fR.
|
| 239 |
+
.IP "module" 4
|
| 240 |
+
.IX Item "module"
|
| 241 |
+
This refers to a reusable library of code typically contained in a
|
| 242 |
+
single file. Currently, we primarily talk of perl modules, but this
|
| 243 |
+
specification should be open enough to apply to other languages as
|
| 244 |
+
well (ex. python, ruby). Examples of modules are \f(CW\*(C`Class::Container\*(C'\fR,
|
| 245 |
+
\&\f(CW\*(C`LWP::Simple\*(C'\fR, or \f(CW\*(C`DBD::File\*(C'\fR.
|
| 246 |
+
.SH "HEADER"
|
| 247 |
+
.IX Header "HEADER"
|
| 248 |
+
The first line of a \fI\s-1META\s0.yml\fR file should be a valid \s-1YAML\s0 document
|
| 249 |
+
header like \f(CW"\-\-\- #YAML:1.0"\fR.
|
| 250 |
+
.SH "FIELDS"
|
| 251 |
+
.IX Header "FIELDS"
|
| 252 |
+
The rest of the \fI\s-1META\s0.yml\fR file is one big \s-1YAML\s0 mapping whose keys
|
| 253 |
+
are described here.
|
| 254 |
+
.SS "meta-spec"
|
| 255 |
+
.IX Subsection "meta-spec"
|
| 256 |
+
Example:
|
| 257 |
+
.PP
|
| 258 |
+
.Vb 3
|
| 259 |
+
\& meta\-spec:
|
| 260 |
+
\& version: 1.3
|
| 261 |
+
\& url: http://module\-build.sourceforge.net/META\-spec\-v1.3.html
|
| 262 |
+
.Ve
|
| 263 |
+
.PP
|
| 264 |
+
(Spec 1.1) [required] {\s-1URL\s0} This field indicates the location of the
|
| 265 |
+
version of the \s-1META\s0.yml specification used.
|
| 266 |
+
.SS "name"
|
| 267 |
+
.IX Subsection "name"
|
| 268 |
+
Example:
|
| 269 |
+
.PP
|
| 270 |
+
.Vb 1
|
| 271 |
+
\& name: Module\-Build
|
| 272 |
+
.Ve
|
| 273 |
+
.PP
|
| 274 |
+
(Spec 1.0) [required] {string} The name of the distribution which is often
|
| 275 |
+
created by taking the \*(L"main module\*(R" in the distribution and changing
|
| 276 |
+
\&\*(L"::\*(R" to \*(L"\-\*(R". Sometimes it's completely different, however, as in the
|
| 277 |
+
case of the libwww-perl distribution (see
|
| 278 |
+
<http://search.cpan.org/dist/libwww\-perl/>).
|
| 279 |
+
.SS "version"
|
| 280 |
+
.IX Subsection "version"
|
| 281 |
+
Example:
|
| 282 |
+
.PP
|
| 283 |
+
.Vb 1
|
| 284 |
+
\& version: 0.20
|
| 285 |
+
.Ve
|
| 286 |
+
.PP
|
| 287 |
+
(Spec 1.0) [required] {version} The version of the distribution to which the
|
| 288 |
+
\&\fI\s-1META\s0.yml\fR file refers.
|
| 289 |
+
.SS "abstract"
|
| 290 |
+
.IX Subsection "abstract"
|
| 291 |
+
Example:
|
| 292 |
+
.PP
|
| 293 |
+
.Vb 1
|
| 294 |
+
\& abstract: Build and install Perl modules.
|
| 295 |
+
.Ve
|
| 296 |
+
.PP
|
| 297 |
+
(Spec 1.1) [required] {string} A short description of the purpose of the
|
| 298 |
+
distribution.
|
| 299 |
+
.SS "author"
|
| 300 |
+
.IX Subsection "author"
|
| 301 |
+
Example:
|
| 302 |
+
.PP
|
| 303 |
+
.Vb 2
|
| 304 |
+
\& author:
|
| 305 |
+
\& \- Ken Williams <kwilliams@cpan.org>
|
| 306 |
+
.Ve
|
| 307 |
+
.PP
|
| 308 |
+
(Spec 1.1) [required] {list of strings} A \s-1YAML\s0 sequence indicating the author(s) of the
|
| 309 |
+
distribution. The preferred form is author-name <email\-address>.
|
| 310 |
+
.SS "license"
|
| 311 |
+
.IX Subsection "license"
|
| 312 |
+
Example:
|
| 313 |
+
.PP
|
| 314 |
+
.Vb 1
|
| 315 |
+
\& license: perl
|
| 316 |
+
.Ve
|
| 317 |
+
.PP
|
| 318 |
+
(Spec 1.0) [required] {string} The license under which this distribution may be
|
| 319 |
+
used and redistributed.
|
| 320 |
+
.PP
|
| 321 |
+
Must be one of the following licenses:
|
| 322 |
+
.IP "apache" 4
|
| 323 |
+
.IX Item "apache"
|
| 324 |
+
The distribution is licensed under the Apache Software License version 1.1
|
| 325 |
+
(<http://opensource.org/licenses/Apache\-1.1>).
|
| 326 |
+
.IP "artistic" 4
|
| 327 |
+
.IX Item "artistic"
|
| 328 |
+
The distribution is licensed under the Artistic License version 1, as specified
|
| 329 |
+
by the Artistic file in the standard perl distribution
|
| 330 |
+
(<http://opensource.org/licenses/Artistic\-Perl\-1.0>).
|
| 331 |
+
.IP "bsd" 4
|
| 332 |
+
.IX Item "bsd"
|
| 333 |
+
The distribution is licensed under the \s-1BSD\s0 3\-Clause License
|
| 334 |
+
(<http://opensource.org/licenses/BSD\-3\-Clause>).
|
| 335 |
+
.IP "gpl" 4
|
| 336 |
+
.IX Item "gpl"
|
| 337 |
+
The distribution is distributed under the terms of the \s-1GNU\s0 General Public
|
| 338 |
+
License version 2 (<http://opensource.org/licenses/GPL\-2.0>).
|
| 339 |
+
.IP "lgpl" 4
|
| 340 |
+
.IX Item "lgpl"
|
| 341 |
+
The distribution is distributed under the terms of the \s-1GNU\s0 Lesser General
|
| 342 |
+
Public License version 2 (<http://opensource.org/licenses/LGPL\-2.1>).
|
| 343 |
+
.IP "mit" 4
|
| 344 |
+
.IX Item "mit"
|
| 345 |
+
The distribution is licensed under the \s-1MIT\s0 License
|
| 346 |
+
(<http://opensource.org/licenses/MIT>).
|
| 347 |
+
.IP "mozilla" 4
|
| 348 |
+
.IX Item "mozilla"
|
| 349 |
+
The distribution is licensed under the Mozilla Public License.
|
| 350 |
+
(<http://opensource.org/licenses/MPL\-1.0> or
|
| 351 |
+
<http://opensource.org/licenses/MPL\-1.1>)
|
| 352 |
+
.IP "open_source" 4
|
| 353 |
+
.IX Item "open_source"
|
| 354 |
+
The distribution is licensed under some other Open Source Initiative-approved
|
| 355 |
+
license listed at <http://www.opensource.org/licenses/>.
|
| 356 |
+
.IP "perl" 4
|
| 357 |
+
.IX Item "perl"
|
| 358 |
+
The distribution may be copied and redistributed under the same terms as perl
|
| 359 |
+
itself (this is by far the most common licensing option for modules on \s-1CPAN\s0).
|
| 360 |
+
This is a dual license, in which the user may choose between either the \s-1GPL\s0
|
| 361 |
+
version 1 or the Artistic version 1 license.
|
| 362 |
+
.IP "restrictive" 4
|
| 363 |
+
.IX Item "restrictive"
|
| 364 |
+
The distribution may not be redistributed without special permission from the
|
| 365 |
+
author and/or copyright holder.
|
| 366 |
+
.IP "unrestricted" 4
|
| 367 |
+
.IX Item "unrestricted"
|
| 368 |
+
The distribution is licensed under a license that is not approved by
|
| 369 |
+
www.opensource.org <http://www.opensource.org/> but that allows distribution
|
| 370 |
+
without restrictions.
|
| 371 |
+
.SS "distribution_type"
|
| 372 |
+
.IX Subsection "distribution_type"
|
| 373 |
+
Example:
|
| 374 |
+
.PP
|
| 375 |
+
.Vb 1
|
| 376 |
+
\& distribution_type: module
|
| 377 |
+
.Ve
|
| 378 |
+
.PP
|
| 379 |
+
(Spec 1.0) [optional] {string} What kind of stuff is contained in this
|
| 380 |
+
distribution. Most things on \s-1CPAN\s0 are \f(CW\*(C`module\*(C'\fRs (which can also mean
|
| 381 |
+
a collection of modules), but some things are \f(CW\*(C`script\*(C'\fRs.
|
| 382 |
+
.PP
|
| 383 |
+
Unfortunately this field is basically meaningless, since many
|
| 384 |
+
distributions are hybrids of several kinds of things, or some new
|
| 385 |
+
thing, or subjectively different in focus depending on who's using
|
| 386 |
+
them. Tools like Module::Build and MakeMaker will likely stop
|
| 387 |
+
generating this field.
|
| 388 |
+
.SS "requires"
|
| 389 |
+
.IX Subsection "requires"
|
| 390 |
+
Example:
|
| 391 |
+
.PP
|
| 392 |
+
.Vb 3
|
| 393 |
+
\& requires:
|
| 394 |
+
\& Data::Dumper: 0
|
| 395 |
+
\& File::Find: 1.03
|
| 396 |
+
.Ve
|
| 397 |
+
.PP
|
| 398 |
+
(Spec 1.0) [optional] {map} A \s-1YAML\s0 mapping indicating the Perl modules this
|
| 399 |
+
distribution requires for proper operation. The keys are the module
|
| 400 |
+
names, and the values are version specifications as described in
|
| 401 |
+
\&\*(L"\s-1VERSION SPECIFICATIONS\*(R"\s0.
|
| 402 |
+
.SS "recommends"
|
| 403 |
+
.IX Subsection "recommends"
|
| 404 |
+
Example:
|
| 405 |
+
.PP
|
| 406 |
+
.Vb 3
|
| 407 |
+
\& recommends:
|
| 408 |
+
\& Data::Dumper: 0
|
| 409 |
+
\& File::Find: 1.03
|
| 410 |
+
.Ve
|
| 411 |
+
.PP
|
| 412 |
+
(Spec 1.0) [optional] {map} A \s-1YAML\s0 mapping indicating the Perl modules
|
| 413 |
+
this distribution recommends for enhanced operation. The keys are the
|
| 414 |
+
module names, and the values are version specifications as described
|
| 415 |
+
in \*(L"\s-1VERSION SPECIFICATIONS\*(R"\s0.
|
| 416 |
+
.PP
|
| 417 |
+
\&\fI\s-1ALTERNATIVE:\s0 It may be desirable to present to the user which
|
| 418 |
+
features depend on which modules so they can make an informed decision
|
| 419 |
+
about which recommended modules to install.\fR
|
| 420 |
+
.PP
|
| 421 |
+
Example:
|
| 422 |
+
.PP
|
| 423 |
+
.Vb 9
|
| 424 |
+
\& optional_features:
|
| 425 |
+
\& \- foo:
|
| 426 |
+
\& description: Provides the ability to blah.
|
| 427 |
+
\& requires:
|
| 428 |
+
\& Data::Dumper: 0
|
| 429 |
+
\& File::Find: 1.03
|
| 430 |
+
\& \- bar:
|
| 431 |
+
\& description: This feature is not available on this platform.
|
| 432 |
+
\& excludes_os: MSWin32
|
| 433 |
+
.Ve
|
| 434 |
+
.PP
|
| 435 |
+
\&\fI(Spec 1.1) [optional] {map} A \s-1YAML\s0 sequence of names for optional features
|
| 436 |
+
which are made available when its requirements are met. For each
|
| 437 |
+
feature a description is provided along with any of \*(L"requires\*(R",
|
| 438 |
+
\&\*(L"build_requires\*(R", \*(L"conflicts\*(R", \f(CI\*(C`requires_packages\*(C'\fI,
|
| 439 |
+
\&\f(CI\*(C`requires_os\*(C'\fI, and \f(CI\*(C`excludes_os\*(C'\fI which have the same meaning in
|
| 440 |
+
this subcontext as described elsewhere in this document.\fR
|
| 441 |
+
.SS "build_requires"
|
| 442 |
+
.IX Subsection "build_requires"
|
| 443 |
+
Example:
|
| 444 |
+
.PP
|
| 445 |
+
.Vb 3
|
| 446 |
+
\& build_requires:
|
| 447 |
+
\& Data::Dumper: 0
|
| 448 |
+
\& File::Find: 1.03
|
| 449 |
+
.Ve
|
| 450 |
+
.PP
|
| 451 |
+
(Spec 1.0) [optional] {map} A \s-1YAML\s0 mapping indicating the Perl modules
|
| 452 |
+
required for building and/or testing of this distribution. The keys
|
| 453 |
+
are the module names, and the values are version specifications as
|
| 454 |
+
described in \*(L"\s-1VERSION SPECIFICATIONS\*(R"\s0. These dependencies are not
|
| 455 |
+
required after the module is installed.
|
| 456 |
+
.SS "conflicts"
|
| 457 |
+
.IX Subsection "conflicts"
|
| 458 |
+
Example:
|
| 459 |
+
.PP
|
| 460 |
+
.Vb 3
|
| 461 |
+
\& conflicts:
|
| 462 |
+
\& Data::Dumper: 0
|
| 463 |
+
\& File::Find: 1.03
|
| 464 |
+
.Ve
|
| 465 |
+
.PP
|
| 466 |
+
(Spec 1.0) [optional] {map} A \s-1YAML\s0 mapping indicating the Perl modules that
|
| 467 |
+
cannot be installed while this distribution is installed. This is a
|
| 468 |
+
pretty uncommon situation. The keys for \f(CW\*(C`conflicts\*(C'\fR are the module
|
| 469 |
+
names, and the values are version specifications as described in
|
| 470 |
+
\&\*(L"\s-1VERSION SPECIFICATIONS\*(R"\s0.
|
| 471 |
+
.SS "dynamic_config"
|
| 472 |
+
.IX Subsection "dynamic_config"
|
| 473 |
+
Example:
|
| 474 |
+
.PP
|
| 475 |
+
.Vb 1
|
| 476 |
+
\& dynamic_config: 0
|
| 477 |
+
.Ve
|
| 478 |
+
.PP
|
| 479 |
+
(Spec 1.0) [optional] {boolean} A boolean flag indicating whether a \fIBuild.PL\fR
|
| 480 |
+
or \fIMakefile.PL\fR (or similar) must be executed when building this
|
| 481 |
+
distribution, or whether it can be built, tested and installed solely
|
| 482 |
+
from consulting its
|
| 483 |
+
metadata file. The main reason to set this to a true value is that
|
| 484 |
+
your module performs some dynamic configuration (asking questions,
|
| 485 |
+
sensing the environment, etc.) as part of its build/install process.
|
| 486 |
+
.PP
|
| 487 |
+
Currently Module::Build doesn't actually do anything with this flag
|
| 488 |
+
\&\- it's probably going to be up to higher-level tools like \s-1CPAN\s0
|
| 489 |
+
to do something useful with it. It can potentially bring lots of
|
| 490 |
+
security, packaging, and convenience improvements.
|
| 491 |
+
.PP
|
| 492 |
+
If this field is omitted, it defaults to 1 (true).
|
| 493 |
+
.SS "private"
|
| 494 |
+
.IX Subsection "private"
|
| 495 |
+
\&\fI(Deprecated)\fR (Spec 1.0) [optional] {map} This field has been renamed to
|
| 496 |
+
\&\*(L"no_index\*(R". See below.
|
| 497 |
+
.SS "provides"
|
| 498 |
+
.IX Subsection "provides"
|
| 499 |
+
Example:
|
| 500 |
+
.PP
|
| 501 |
+
.Vb 9
|
| 502 |
+
\& provides:
|
| 503 |
+
\& Foo::Bar:
|
| 504 |
+
\& file: lib/Foo/Bar.pm
|
| 505 |
+
\& version: 0.27_02
|
| 506 |
+
\& Foo::Bar::Blah:
|
| 507 |
+
\& file: lib/Foo/Bar/Blah.pm
|
| 508 |
+
\& Foo::Bar::Baz:
|
| 509 |
+
\& file: lib/Foo/Bar/Baz.pm
|
| 510 |
+
\& version: 0.3
|
| 511 |
+
.Ve
|
| 512 |
+
.PP
|
| 513 |
+
(Spec 1.1) [optional] {map} A \s-1YAML\s0 mapping that describes all packages
|
| 514 |
+
provided by this distribution. This information can be (and, in some
|
| 515 |
+
cases, is) used by distribution and automation mechanisms like \s-1PAUSE,
|
| 516 |
+
CPAN,\s0 and search.cpan.org to build indexes saying in which
|
| 517 |
+
distribution various packages can be found.
|
| 518 |
+
.PP
|
| 519 |
+
When using tools like Module::Build that can generate the
|
| 520 |
+
\&\f(CW\*(C`provides\*(C'\fR mapping for your distribution automatically, make sure you
|
| 521 |
+
examine what it generates to make sure it makes sense \- indexers will
|
| 522 |
+
usually trust the \f(CW\*(C`provides\*(C'\fR field if it's present, rather than
|
| 523 |
+
scanning through the distribution files themselves to figure out
|
| 524 |
+
packages and versions. This is a good thing, because it means you can
|
| 525 |
+
use the \f(CW\*(C`provides\*(C'\fR field to tell the indexers precisely what you want
|
| 526 |
+
indexed about your distribution, rather than relying on them to
|
| 527 |
+
essentially guess what you want indexed.
|
| 528 |
+
.SS "no_index"
|
| 529 |
+
.IX Subsection "no_index"
|
| 530 |
+
Example:
|
| 531 |
+
.PP
|
| 532 |
+
.Vb 9
|
| 533 |
+
\& no_index:
|
| 534 |
+
\& file:
|
| 535 |
+
\& \- My/Module.pm
|
| 536 |
+
\& directory:
|
| 537 |
+
\& \- My/Private
|
| 538 |
+
\& package:
|
| 539 |
+
\& \- My::Module::Stuff
|
| 540 |
+
\& namespace:
|
| 541 |
+
\& \- My::Module::Stuff
|
| 542 |
+
.Ve
|
| 543 |
+
.PP
|
| 544 |
+
(Spec 1.1) [optional] {map} A \s-1YAML\s0 mapping that describes any files,
|
| 545 |
+
directories, packages, and namespaces that are private
|
| 546 |
+
(i.e. implementation artifacts) that are not of interest to searching
|
| 547 |
+
and indexing tools. This is useful when no \f(CW\*(C`provides\*(C'\fR field is
|
| 548 |
+
present.
|
| 549 |
+
.PP
|
| 550 |
+
For example, <http://search.cpan.org/> excludes items listed in \f(CW\*(C`no_index\*(C'\fR
|
| 551 |
+
when searching for \s-1POD,\s0 meaning files in these directories will not
|
| 552 |
+
converted to \s-1HTML\s0 and made public \- which is useful if you have
|
| 553 |
+
example or test PODs that you don't want the search engine to go
|
| 554 |
+
through.
|
| 555 |
+
.PP
|
| 556 |
+
\fIfile\fR
|
| 557 |
+
.IX Subsection "file"
|
| 558 |
+
.PP
|
| 559 |
+
(Spec 1.1) [optional] Exclude any listed file(s).
|
| 560 |
+
.PP
|
| 561 |
+
\fIdirectory\fR
|
| 562 |
+
.IX Subsection "directory"
|
| 563 |
+
.PP
|
| 564 |
+
(Spec 1.1) [optional] Exclude anything below the listed
|
| 565 |
+
directory(ies).
|
| 566 |
+
.PP
|
| 567 |
+
[Note: previous editions of the spec had \f(CW\*(C`dir\*(C'\fR instead of
|
| 568 |
+
\&\f(CW\*(C`directory\*(C'\fR, but I think MakeMaker and various users started using
|
| 569 |
+
\&\f(CW\*(C`directory\*(C'\fR, so in deference we switched to that.]
|
| 570 |
+
.PP
|
| 571 |
+
\fIpackage\fR
|
| 572 |
+
.IX Subsection "package"
|
| 573 |
+
.PP
|
| 574 |
+
(Spec 1.1) [optional] Exclude the listed package(s).
|
| 575 |
+
.PP
|
| 576 |
+
\fInamespace\fR
|
| 577 |
+
.IX Subsection "namespace"
|
| 578 |
+
.PP
|
| 579 |
+
(Spec 1.1) [optional] Excludes anything below the listed namespace(s),
|
| 580 |
+
but \fInot\fR the listed namespace(s) its self.
|
| 581 |
+
.SS "keywords"
|
| 582 |
+
.IX Subsection "keywords"
|
| 583 |
+
Example:
|
| 584 |
+
.PP
|
| 585 |
+
.Vb 4
|
| 586 |
+
\& keywords:
|
| 587 |
+
\& \- make
|
| 588 |
+
\& \- build
|
| 589 |
+
\& \- install
|
| 590 |
+
.Ve
|
| 591 |
+
.PP
|
| 592 |
+
(Spec 1.1) [optional] {list} A sequence of keywords/phrases that describe
|
| 593 |
+
this distribution.
|
| 594 |
+
.SS "resources"
|
| 595 |
+
.IX Subsection "resources"
|
| 596 |
+
Example:
|
| 597 |
+
.PP
|
| 598 |
+
.Vb 6
|
| 599 |
+
\& resources:
|
| 600 |
+
\& license: http://dev.perl.org/licenses/
|
| 601 |
+
\& homepage: http://sourceforge.net/projects/module\-build
|
| 602 |
+
\& bugtracker: http://rt.cpan.org/NoAuth/Bugs.html?Dist=Module\-Build
|
| 603 |
+
\& repository: http://sourceforge.net/cvs/?group_id=45731
|
| 604 |
+
\& MailingList: http://lists.sourceforge.net/lists/listinfo/module\-build\-general
|
| 605 |
+
.Ve
|
| 606 |
+
.PP
|
| 607 |
+
(Spec 1.1) [optional] {map} A mapping of any \s-1URL\s0 resources related to
|
| 608 |
+
this distribution. All-lower-case keys, such as \f(CW\*(C`homepage\*(C'\fR,
|
| 609 |
+
\&\f(CW\*(C`license\*(C'\fR, and \f(CW\*(C`bugtracker\*(C'\fR, are reserved by this specification, as
|
| 610 |
+
they have \*(L"official\*(R" meanings defined here in this specification. If
|
| 611 |
+
you'd like to add your own \*(L"special\*(R" entries (like the \*(L"MailingList\*(R"
|
| 612 |
+
entry above), use at least one upper-case letter.
|
| 613 |
+
.PP
|
| 614 |
+
The current set of official keys is:
|
| 615 |
+
.IP "homepage" 2
|
| 616 |
+
.IX Item "homepage"
|
| 617 |
+
The official home of this project on the web.
|
| 618 |
+
.IP "license" 2
|
| 619 |
+
.IX Item "license"
|
| 620 |
+
An \s-1URL\s0 for an official statement of this distribution's license.
|
| 621 |
+
.IP "bugtracker" 2
|
| 622 |
+
.IX Item "bugtracker"
|
| 623 |
+
An \s-1URL\s0 for a bug tracker (e.g. Bugzilla or \s-1RT\s0 queue) for this project.
|
| 624 |
+
.SS "generated_by"
|
| 625 |
+
.IX Subsection "generated_by"
|
| 626 |
+
Example:
|
| 627 |
+
.PP
|
| 628 |
+
.Vb 1
|
| 629 |
+
\& generated_by: Module::Build version 0.20
|
| 630 |
+
.Ve
|
| 631 |
+
.PP
|
| 632 |
+
(Spec 1.0) [required] {string} Indicates the tool that was used to create this
|
| 633 |
+
\&\fI\s-1META\s0.yml\fR file. It's good form to include both the name of the tool
|
| 634 |
+
and its version, but this field is essentially opaque, at least for
|
| 635 |
+
the moment. If \fI\s-1META\s0.yml\fR was generated by hand, it is suggested that
|
| 636 |
+
the author be specified here.
|
| 637 |
+
.PP
|
| 638 |
+
[Note: My \fImeta_stats.pl\fR script which I use to gather statistics
|
| 639 |
+
regarding \fI\s-1META\s0.yml\fR usage prefers the form listed above, i.e. it
|
| 640 |
+
splits on /\es+version\es+/ taking the first field as the name of the
|
| 641 |
+
tool that generated the file and the second field as version of that
|
| 642 |
+
tool. \s-1RWS\s0]
|
| 643 |
+
.SH "VERSION SPECIFICATIONS"
|
| 644 |
+
.IX Header "VERSION SPECIFICATIONS"
|
| 645 |
+
Some fields require a version specification (ex. \*(L"requires\*(R",
|
| 646 |
+
\&\*(L"recommends\*(R", \*(L"build_requires\*(R", etc.) to indicate the particular
|
| 647 |
+
version(s) of some other module that may be required as a
|
| 648 |
+
prerequisite. This section details the version specification formats
|
| 649 |
+
that are currently supported.
|
| 650 |
+
.PP
|
| 651 |
+
The simplest format for a version specification is just the version
|
| 652 |
+
number itself, e.g. \f(CW2.4\fR. This means that \fBat least\fR version 2.4
|
| 653 |
+
must be present. To indicate that \fBany\fR version of a prerequisite is
|
| 654 |
+
okay, even if the prerequisite doesn't define a version at all, use
|
| 655 |
+
the version \f(CW0\fR.
|
| 656 |
+
.PP
|
| 657 |
+
You may also use the operators < (less than), <= (less than or
|
| 658 |
+
equal), > (greater than), >= (greater than or equal), ==
|
| 659 |
+
(equal), and != (not equal). For example, the specification \f(CW\*(C`<
|
| 660 |
+
2.0\*(C'\fR means that any version of the prerequisite less than 2.0 is
|
| 661 |
+
suitable.
|
| 662 |
+
.PP
|
| 663 |
+
For more complicated situations, version specifications may be AND-ed
|
| 664 |
+
together using commas. The specification \f(CW\*(C`>= 1.2, != 1.5, <
|
| 665 |
+
2.0\*(C'\fR indicates a version that must be \fBat least\fR 1.2, \fBless than\fR
|
| 666 |
+
2.0, and \fBnot equal to\fR 1.5.
|
| 667 |
+
.SH "SEE ALSO"
|
| 668 |
+
.IX Header "SEE ALSO"
|
| 669 |
+
\&\s-1CPAN\s0 <http://www.cpan.org/>
|
| 670 |
+
.PP
|
| 671 |
+
\&\s-1CPAN\s0.pm
|
| 672 |
+
.PP
|
| 673 |
+
\&\s-1CPANPLUS\s0
|
| 674 |
+
.PP
|
| 675 |
+
Data::Dumper
|
| 676 |
+
.PP
|
| 677 |
+
ExtUtils::MakeMaker
|
| 678 |
+
.PP
|
| 679 |
+
Module::Build
|
| 680 |
+
.PP
|
| 681 |
+
Module::Install
|
| 682 |
+
.PP
|
| 683 |
+
\&\s-1XML\s0 <http://www.w3.org/XML/>
|
| 684 |
+
.PP
|
| 685 |
+
\&\s-1YAML\s0 <http://www.yaml.org/>
|
| 686 |
+
.SH "HISTORY"
|
| 687 |
+
.IX Header "HISTORY"
|
| 688 |
+
.IP "March 14, 2003 (Pi day)" 4
|
| 689 |
+
.IX Item "March 14, 2003 (Pi day)"
|
| 690 |
+
.RS 4
|
| 691 |
+
.PD 0
|
| 692 |
+
.IP "\(bu" 2
|
| 693 |
+
.PD
|
| 694 |
+
Created version 1.0 of this document.
|
| 695 |
+
.RE
|
| 696 |
+
.RS 4
|
| 697 |
+
.RE
|
| 698 |
+
.IP "May 8, 2003" 4
|
| 699 |
+
.IX Item "May 8, 2003"
|
| 700 |
+
.RS 4
|
| 701 |
+
.PD 0
|
| 702 |
+
.IP "\(bu" 2
|
| 703 |
+
.PD
|
| 704 |
+
Added the \*(L"dynamic_config\*(R" field, which was missing from the initial
|
| 705 |
+
version.
|
| 706 |
+
.RE
|
| 707 |
+
.RS 4
|
| 708 |
+
.RE
|
| 709 |
+
.IP "November 13, 2003" 4
|
| 710 |
+
.IX Item "November 13, 2003"
|
| 711 |
+
.RS 4
|
| 712 |
+
.PD 0
|
| 713 |
+
.IP "\(bu" 2
|
| 714 |
+
.PD
|
| 715 |
+
Added more \s-1YAML\s0 rationale articles.
|
| 716 |
+
.IP "\(bu" 2
|
| 717 |
+
Fixed existing link to \s-1YAML\s0 discussion thread to point to new
|
| 718 |
+
<http://nntp.x.perl.org/group/> site.
|
| 719 |
+
.IP "\(bu" 2
|
| 720 |
+
Added and deprecated the \*(L"private\*(R" field.
|
| 721 |
+
.IP "\(bu" 2
|
| 722 |
+
Added \*(L"abstract\*(R", \f(CW\*(C`configure\*(C'\fR, \f(CW\*(C`requires_packages\*(C'\fR,
|
| 723 |
+
\&\f(CW\*(C`requires_os\*(C'\fR, \f(CW\*(C`excludes_os\*(C'\fR, and \*(L"no_index\*(R" fields.
|
| 724 |
+
.IP "\(bu" 2
|
| 725 |
+
Bumped version.
|
| 726 |
+
.RE
|
| 727 |
+
.RS 4
|
| 728 |
+
.RE
|
| 729 |
+
.IP "November 16, 2003" 4
|
| 730 |
+
.IX Item "November 16, 2003"
|
| 731 |
+
.RS 4
|
| 732 |
+
.PD 0
|
| 733 |
+
.IP "\(bu" 2
|
| 734 |
+
.PD
|
| 735 |
+
Added \f(CW\*(C`generation\*(C'\fR, \f(CW\*(C`authored_by\*(C'\fR fields.
|
| 736 |
+
.IP "\(bu" 2
|
| 737 |
+
Add alternative proposal to the \*(L"recommends\*(R" field.
|
| 738 |
+
.IP "\(bu" 2
|
| 739 |
+
Add proposal for a \f(CW\*(C`requires_build_tools\*(C'\fR field.
|
| 740 |
+
.RE
|
| 741 |
+
.RS 4
|
| 742 |
+
.RE
|
| 743 |
+
.IP "December 9, 2003" 4
|
| 744 |
+
.IX Item "December 9, 2003"
|
| 745 |
+
.RS 4
|
| 746 |
+
.PD 0
|
| 747 |
+
.IP "\(bu" 2
|
| 748 |
+
.PD
|
| 749 |
+
Added link to latest version of this specification on \s-1CPAN.\s0
|
| 750 |
+
.IP "\(bu" 2
|
| 751 |
+
Added section \*(L"\s-1VERSION SPECIFICATIONS\*(R"\s0.
|
| 752 |
+
.IP "\(bu" 2
|
| 753 |
+
Chang name from Module::Build::META\-spec to CPAN::META::Specification.
|
| 754 |
+
.IP "\(bu" 2
|
| 755 |
+
Add proposal for \f(CW\*(C`auto_regenerate\*(C'\fR field.
|
| 756 |
+
.RE
|
| 757 |
+
.RS 4
|
| 758 |
+
.RE
|
| 759 |
+
.IP "December 15, 2003" 4
|
| 760 |
+
.IX Item "December 15, 2003"
|
| 761 |
+
.RS 4
|
| 762 |
+
.PD 0
|
| 763 |
+
.IP "\(bu" 2
|
| 764 |
+
.PD
|
| 765 |
+
Add \f(CW\*(C`index\*(C'\fR field as a compliment to \*(L"no_index\*(R"
|
| 766 |
+
.IP "\(bu" 2
|
| 767 |
+
Add \*(L"keywords\*(R" field as a means to aid searching distributions.
|
| 768 |
+
.IP "\(bu" 2
|
| 769 |
+
Add \*(L"\s-1TERMINOLOGY\*(R"\s0 section to explain certain terms that may be
|
| 770 |
+
ambiguous.
|
| 771 |
+
.RE
|
| 772 |
+
.RS 4
|
| 773 |
+
.RE
|
| 774 |
+
.IP "July 26, 2005" 4
|
| 775 |
+
.IX Item "July 26, 2005"
|
| 776 |
+
.RS 4
|
| 777 |
+
.PD 0
|
| 778 |
+
.IP "\(bu" 2
|
| 779 |
+
.PD
|
| 780 |
+
Removed a bunch of items (generation, requires_build_tools,
|
| 781 |
+
requires_packages, configure, requires_os, excludes_os,
|
| 782 |
+
auto_regenerate) that have never actually been supported, but were
|
| 783 |
+
more like records of brainstorming.
|
| 784 |
+
.IP "\(bu" 2
|
| 785 |
+
Changed \f(CW\*(C`authored_by\*(C'\fR to \*(L"author\*(R", since that's always been what
|
| 786 |
+
it's actually called in actual \fI\s-1META\s0.yml\fR files.
|
| 787 |
+
.IP "\(bu" 2
|
| 788 |
+
Added the \*(L"==\*(R" operator to the list of supported version-checking
|
| 789 |
+
operators.
|
| 790 |
+
.IP "\(bu" 2
|
| 791 |
+
Noted that the \*(L"distribution_type\*(R" field is basically meaningless,
|
| 792 |
+
and shouldn't really be used.
|
| 793 |
+
.IP "\(bu" 2
|
| 794 |
+
Clarified \*(L"dynamic_config\*(R" a bit.
|
| 795 |
+
.RE
|
| 796 |
+
.RS 4
|
| 797 |
+
.RE
|
| 798 |
+
.IP "August 23, 2005" 4
|
| 799 |
+
.IX Item "August 23, 2005"
|
| 800 |
+
.RS 4
|
| 801 |
+
.PD 0
|
| 802 |
+
.IP "\(bu" 2
|
| 803 |
+
.PD
|
| 804 |
+
Removed the name \f(CW\*(C`CPAN::META::Specification\*(C'\fR, since that implies a
|
| 805 |
+
module that doesn't actually exist.
|
| 806 |
+
.RE
|
| 807 |
+
.RS 4
|
| 808 |
+
.RE
|
data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AHistory%3A%3AMeta_1_4.3
ADDED
|
@@ -0,0 +1,833 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "CPAN::Meta::History::Meta_1_4 3"
|
| 136 |
+
.TH CPAN::Meta::History::Meta_1_4 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
CPAN::Meta::History::Meta_1_4 \- Version 1.4 metadata specification for META.yml
|
| 143 |
+
.SH "PREFACE"
|
| 144 |
+
.IX Header "PREFACE"
|
| 145 |
+
This is a historical copy of the version 1.4 specification for \fI\s-1META\s0.yml\fR
|
| 146 |
+
files, copyright by Ken Williams and licensed under the same terms as Perl
|
| 147 |
+
itself.
|
| 148 |
+
.PP
|
| 149 |
+
Modifications from the original:
|
| 150 |
+
.IP "\(bu" 4
|
| 151 |
+
Various spelling corrections
|
| 152 |
+
.IP "\(bu" 4
|
| 153 |
+
Include list of valid licenses from Module::Build 0.2807 rather than
|
| 154 |
+
linking to the module, with minor updates to text and links to reflect
|
| 155 |
+
versions at the time of publication.
|
| 156 |
+
.IP "\(bu" 4
|
| 157 |
+
Fixed some dead links to point to active resources.
|
| 158 |
+
.SH "SYNOPSIS"
|
| 159 |
+
.IX Header "SYNOPSIS"
|
| 160 |
+
.Vb 10
|
| 161 |
+
\& \-\-\- #YAML:1.0
|
| 162 |
+
\& name: Module\-Build
|
| 163 |
+
\& abstract: Build and install Perl modules
|
| 164 |
+
\& version: 0.20
|
| 165 |
+
\& author:
|
| 166 |
+
\& \- Ken Williams <kwilliams@cpan.org>
|
| 167 |
+
\& license: perl
|
| 168 |
+
\& distribution_type: module
|
| 169 |
+
\& requires:
|
| 170 |
+
\& Config: 0
|
| 171 |
+
\& Cwd: 0
|
| 172 |
+
\& Data::Dumper: 0
|
| 173 |
+
\& ExtUtils::Install: 0
|
| 174 |
+
\& File::Basename: 0
|
| 175 |
+
\& File::Compare: 0
|
| 176 |
+
\& File::Copy: 0
|
| 177 |
+
\& File::Find: 0
|
| 178 |
+
\& File::Path: 0
|
| 179 |
+
\& File::Spec: 0
|
| 180 |
+
\& IO::File: 0
|
| 181 |
+
\& perl: 5.005_03
|
| 182 |
+
\& recommends:
|
| 183 |
+
\& Archive::Tar: 1.00
|
| 184 |
+
\& ExtUtils::Install: 0.3
|
| 185 |
+
\& ExtUtils::ParseXS: 2.02
|
| 186 |
+
\& Pod::Text: 0
|
| 187 |
+
\& YAML: 0.35
|
| 188 |
+
\& build_requires:
|
| 189 |
+
\& Test: 0
|
| 190 |
+
\& resources:
|
| 191 |
+
\& license: http://dev.perl.org/licenses/
|
| 192 |
+
\& meta\-spec:
|
| 193 |
+
\& version: 1.4
|
| 194 |
+
\& url: http://module\-build.sourceforge.net/META\-spec\-v1.3.html
|
| 195 |
+
\& generated_by: Module::Build version 0.20
|
| 196 |
+
.Ve
|
| 197 |
+
.SH "DESCRIPTION"
|
| 198 |
+
.IX Header "DESCRIPTION"
|
| 199 |
+
This document describes version 1.4 of the \fI\s-1META\s0.yml\fR specification.
|
| 200 |
+
.PP
|
| 201 |
+
The \fI\s-1META\s0.yml\fR file describes important properties of contributed
|
| 202 |
+
Perl distributions such as the ones found on \s-1CPAN.\s0 It is typically
|
| 203 |
+
created by tools like Module::Build, Module::Install, and
|
| 204 |
+
ExtUtils::MakeMaker.
|
| 205 |
+
.PP
|
| 206 |
+
The fields in the \fI\s-1META\s0.yml\fR file are meant to be helpful for people
|
| 207 |
+
maintaining module collections (like \s-1CPAN\s0), for people writing
|
| 208 |
+
installation tools (like \s-1CPAN\s0.pm or \s-1CPANPLUS\s0), or just for people who
|
| 209 |
+
want to know some stuff about a distribution before downloading it and
|
| 210 |
+
starting to install it.
|
| 211 |
+
.PP
|
| 212 |
+
\&\fINote: The latest stable version of this specification can always be
|
| 213 |
+
found at <http://module\-build.sourceforge.net/META\-spec\-current.html>,
|
| 214 |
+
and the latest development version (which may include things that
|
| 215 |
+
won't make it into the stable version) can always be found at
|
| 216 |
+
<http://module\-build.sourceforge.net/META\-spec\-blead.html>.\fR
|
| 217 |
+
.SH "FORMAT"
|
| 218 |
+
.IX Header "FORMAT"
|
| 219 |
+
\&\fI\s-1META\s0.yml\fR files are written in the \s-1YAML\s0 format (see
|
| 220 |
+
<http://www.yaml.org/>).
|
| 221 |
+
.PP
|
| 222 |
+
See the following links to learn why we chose \s-1YAML\s0 instead of, say,
|
| 223 |
+
\&\s-1XML\s0 or Data::Dumper:
|
| 224 |
+
.IP "\(bu" 4
|
| 225 |
+
Module::Build design plans <http://www.nntp.perl.org/group/perl.makemaker/2002/04/msg407.html>
|
| 226 |
+
.IP "\(bu" 4
|
| 227 |
+
Not keen on \s-1YAML\s0 <http://www.nntp.perl.org/group/perl.module-authors/2003/11/msg1353.html>
|
| 228 |
+
.IP "\(bu" 4
|
| 229 |
+
\&\s-1META\s0 Concerns <http://www.nntp.perl.org/group/perl.module-authors/2003/11/msg1385.html>
|
| 230 |
+
.SH "TERMINOLOGY"
|
| 231 |
+
.IX Header "TERMINOLOGY"
|
| 232 |
+
.IP "distribution" 4
|
| 233 |
+
.IX Item "distribution"
|
| 234 |
+
This is the primary object described by the \fI\s-1META\s0.yml\fR
|
| 235 |
+
specification. In the context of this document it usually refers to a
|
| 236 |
+
collection of modules, scripts, and/or documents that are distributed
|
| 237 |
+
together for other developers to use. Examples of distributions are
|
| 238 |
+
\&\f(CW\*(C`Class\-Container\*(C'\fR, \f(CW\*(C`libwww\-perl\*(C'\fR, or \f(CW\*(C`DBI\*(C'\fR.
|
| 239 |
+
.IP "module" 4
|
| 240 |
+
.IX Item "module"
|
| 241 |
+
This refers to a reusable library of code typically contained in a
|
| 242 |
+
single file. Currently, we primarily talk of perl modules, but this
|
| 243 |
+
specification should be open enough to apply to other languages as
|
| 244 |
+
well (ex. python, ruby). Examples of modules are \f(CW\*(C`Class::Container\*(C'\fR,
|
| 245 |
+
\&\f(CW\*(C`LWP::Simple\*(C'\fR, or \f(CW\*(C`DBD::File\*(C'\fR.
|
| 246 |
+
.SH "HEADER"
|
| 247 |
+
.IX Header "HEADER"
|
| 248 |
+
The first line of a \fI\s-1META\s0.yml\fR file should be a valid \s-1YAML\s0 document
|
| 249 |
+
header like \f(CW"\-\-\- #YAML:1.0"\fR.
|
| 250 |
+
.SH "FIELDS"
|
| 251 |
+
.IX Header "FIELDS"
|
| 252 |
+
The rest of the \fI\s-1META\s0.yml\fR file is one big \s-1YAML\s0 mapping whose keys
|
| 253 |
+
are described here.
|
| 254 |
+
.SS "meta-spec"
|
| 255 |
+
.IX Subsection "meta-spec"
|
| 256 |
+
Example:
|
| 257 |
+
.PP
|
| 258 |
+
.Vb 3
|
| 259 |
+
\& meta\-spec:
|
| 260 |
+
\& version: 1.4
|
| 261 |
+
\& url: http://module\-build.sourceforge.net/META\-spec\-v1.3.html
|
| 262 |
+
.Ve
|
| 263 |
+
.PP
|
| 264 |
+
(Spec 1.1) [required] {\s-1URL\s0} This field indicates the location of the
|
| 265 |
+
version of the \s-1META\s0.yml specification used.
|
| 266 |
+
.SS "name"
|
| 267 |
+
.IX Subsection "name"
|
| 268 |
+
Example:
|
| 269 |
+
.PP
|
| 270 |
+
.Vb 1
|
| 271 |
+
\& name: Module\-Build
|
| 272 |
+
.Ve
|
| 273 |
+
.PP
|
| 274 |
+
(Spec 1.0) [required] {string} The name of the distribution which is often
|
| 275 |
+
created by taking the \*(L"main module\*(R" in the distribution and changing
|
| 276 |
+
\&\*(L"::\*(R" to \*(L"\-\*(R". Sometimes it's completely different, however, as in the
|
| 277 |
+
case of the libwww-perl distribution (see
|
| 278 |
+
<http://search.cpan.org/dist/libwww\-perl/>).
|
| 279 |
+
.SS "version"
|
| 280 |
+
.IX Subsection "version"
|
| 281 |
+
Example:
|
| 282 |
+
.PP
|
| 283 |
+
.Vb 1
|
| 284 |
+
\& version: 0.20
|
| 285 |
+
.Ve
|
| 286 |
+
.PP
|
| 287 |
+
(Spec 1.0) [required] {version} The version of the distribution to which the
|
| 288 |
+
\&\fI\s-1META\s0.yml\fR file refers.
|
| 289 |
+
.SS "abstract"
|
| 290 |
+
.IX Subsection "abstract"
|
| 291 |
+
Example:
|
| 292 |
+
.PP
|
| 293 |
+
.Vb 1
|
| 294 |
+
\& abstract: Build and install Perl modules.
|
| 295 |
+
.Ve
|
| 296 |
+
.PP
|
| 297 |
+
(Spec 1.1) [required] {string} A short description of the purpose of the
|
| 298 |
+
distribution.
|
| 299 |
+
.SS "author"
|
| 300 |
+
.IX Subsection "author"
|
| 301 |
+
Example:
|
| 302 |
+
.PP
|
| 303 |
+
.Vb 2
|
| 304 |
+
\& author:
|
| 305 |
+
\& \- Ken Williams <kwilliams@cpan.org>
|
| 306 |
+
.Ve
|
| 307 |
+
.PP
|
| 308 |
+
(Spec 1.1) [required] {list of strings} A \s-1YAML\s0 sequence indicating the author(s) of the
|
| 309 |
+
distribution. The preferred form is author-name <email\-address>.
|
| 310 |
+
.SS "license"
|
| 311 |
+
.IX Subsection "license"
|
| 312 |
+
Example:
|
| 313 |
+
.PP
|
| 314 |
+
.Vb 1
|
| 315 |
+
\& license: perl
|
| 316 |
+
.Ve
|
| 317 |
+
.PP
|
| 318 |
+
(Spec 1.0) [required] {string} The license under which this
|
| 319 |
+
distribution may be used and redistributed.
|
| 320 |
+
.PP
|
| 321 |
+
Must be one of the following licenses:
|
| 322 |
+
.IP "apache" 4
|
| 323 |
+
.IX Item "apache"
|
| 324 |
+
The distribution is licensed under the Apache Software License version 1.1
|
| 325 |
+
(<http://opensource.org/licenses/Apache\-1.1>).
|
| 326 |
+
.IP "artistic" 4
|
| 327 |
+
.IX Item "artistic"
|
| 328 |
+
The distribution is licensed under the Artistic License version 1, as specified
|
| 329 |
+
by the Artistic file in the standard perl distribution
|
| 330 |
+
(<http://opensource.org/licenses/Artistic\-Perl\-1.0>).
|
| 331 |
+
.IP "bsd" 4
|
| 332 |
+
.IX Item "bsd"
|
| 333 |
+
The distribution is licensed under the \s-1BSD\s0 3\-Clause License
|
| 334 |
+
(<http://opensource.org/licenses/BSD\-3\-Clause>).
|
| 335 |
+
.IP "gpl" 4
|
| 336 |
+
.IX Item "gpl"
|
| 337 |
+
The distribution is distributed under the terms of the \s-1GNU\s0 General Public
|
| 338 |
+
License version 2 (<http://opensource.org/licenses/GPL\-2.0>).
|
| 339 |
+
.IP "lgpl" 4
|
| 340 |
+
.IX Item "lgpl"
|
| 341 |
+
The distribution is distributed under the terms of the \s-1GNU\s0 Lesser General
|
| 342 |
+
Public License version 2 (<http://opensource.org/licenses/LGPL\-2.1>).
|
| 343 |
+
.IP "mit" 4
|
| 344 |
+
.IX Item "mit"
|
| 345 |
+
The distribution is licensed under the \s-1MIT\s0 License
|
| 346 |
+
(<http://opensource.org/licenses/MIT>).
|
| 347 |
+
.IP "mozilla" 4
|
| 348 |
+
.IX Item "mozilla"
|
| 349 |
+
The distribution is licensed under the Mozilla Public License.
|
| 350 |
+
(<http://opensource.org/licenses/MPL\-1.0> or
|
| 351 |
+
<http://opensource.org/licenses/MPL\-1.1>)
|
| 352 |
+
.IP "open_source" 4
|
| 353 |
+
.IX Item "open_source"
|
| 354 |
+
The distribution is licensed under some other Open Source Initiative-approved
|
| 355 |
+
license listed at <http://www.opensource.org/licenses/>.
|
| 356 |
+
.IP "perl" 4
|
| 357 |
+
.IX Item "perl"
|
| 358 |
+
The distribution may be copied and redistributed under the same terms as perl
|
| 359 |
+
itself (this is by far the most common licensing option for modules on \s-1CPAN\s0).
|
| 360 |
+
This is a dual license, in which the user may choose between either the \s-1GPL\s0 or
|
| 361 |
+
the Artistic license.
|
| 362 |
+
.IP "restrictive" 4
|
| 363 |
+
.IX Item "restrictive"
|
| 364 |
+
The distribution may not be redistributed without special permission from the
|
| 365 |
+
author and/or copyright holder.
|
| 366 |
+
.IP "unrestricted" 4
|
| 367 |
+
.IX Item "unrestricted"
|
| 368 |
+
The distribution is licensed under a license that is not approved by
|
| 369 |
+
www.opensource.org <http://www.opensource.org/> but that allows distribution
|
| 370 |
+
without restrictions.
|
| 371 |
+
.SS "distribution_type"
|
| 372 |
+
.IX Subsection "distribution_type"
|
| 373 |
+
Example:
|
| 374 |
+
.PP
|
| 375 |
+
.Vb 1
|
| 376 |
+
\& distribution_type: module
|
| 377 |
+
.Ve
|
| 378 |
+
.PP
|
| 379 |
+
(Spec 1.0) [optional] {string} What kind of stuff is contained in this
|
| 380 |
+
distribution. Most things on \s-1CPAN\s0 are \f(CW\*(C`module\*(C'\fRs (which can also mean
|
| 381 |
+
a collection of modules), but some things are \f(CW\*(C`script\*(C'\fRs.
|
| 382 |
+
.PP
|
| 383 |
+
Unfortunately this field is basically meaningless, since many
|
| 384 |
+
distributions are hybrids of several kinds of things, or some new
|
| 385 |
+
thing, or subjectively different in focus depending on who's using
|
| 386 |
+
them. Tools like Module::Build and MakeMaker will likely stop
|
| 387 |
+
generating this field.
|
| 388 |
+
.SS "requires"
|
| 389 |
+
.IX Subsection "requires"
|
| 390 |
+
Example:
|
| 391 |
+
.PP
|
| 392 |
+
.Vb 3
|
| 393 |
+
\& requires:
|
| 394 |
+
\& Data::Dumper: 0
|
| 395 |
+
\& File::Find: 1.03
|
| 396 |
+
.Ve
|
| 397 |
+
.PP
|
| 398 |
+
(Spec 1.0) [optional] {map} A \s-1YAML\s0 mapping indicating the Perl
|
| 399 |
+
prerequisites this distribution requires for proper operation. The
|
| 400 |
+
keys are the names of the prerequisites (module names or 'perl'), and
|
| 401 |
+
the values are version specifications as described in \s-1VERSION
|
| 402 |
+
SPECIFICATIONS\s0.
|
| 403 |
+
.SS "recommends"
|
| 404 |
+
.IX Subsection "recommends"
|
| 405 |
+
Example:
|
| 406 |
+
.PP
|
| 407 |
+
.Vb 3
|
| 408 |
+
\& recommends:
|
| 409 |
+
\& Data::Dumper: 0
|
| 410 |
+
\& File::Find: 1.03
|
| 411 |
+
.Ve
|
| 412 |
+
.PP
|
| 413 |
+
(Spec 1.0) [optional] {map} A \s-1YAML\s0 mapping indicating the Perl
|
| 414 |
+
prerequisites this distribution recommends for enhanced operation.
|
| 415 |
+
The keys are the names of the prerequisites (module names or 'perl'),
|
| 416 |
+
and the values are version specifications as described in \s-1VERSION
|
| 417 |
+
SPECIFICATIONS\s0.
|
| 418 |
+
.PP
|
| 419 |
+
\&\fI\s-1ALTERNATIVE:\s0 It may be desirable to present to the user which
|
| 420 |
+
features depend on which modules so they can make an informed decision
|
| 421 |
+
about which recommended modules to install.\fR
|
| 422 |
+
.PP
|
| 423 |
+
Example:
|
| 424 |
+
.PP
|
| 425 |
+
.Vb 6
|
| 426 |
+
\& optional_features:
|
| 427 |
+
\& foo:
|
| 428 |
+
\& description: Provides the ability to blah.
|
| 429 |
+
\& requires:
|
| 430 |
+
\& Data::Dumper: 0
|
| 431 |
+
\& File::Find: 1.03
|
| 432 |
+
.Ve
|
| 433 |
+
.PP
|
| 434 |
+
\&\fI(Spec 1.1) [optional] {map} A \s-1YAML\s0 mapping of names for optional features
|
| 435 |
+
which are made available when its requirements are met. For each
|
| 436 |
+
feature a description is provided along with any of \*(L"requires\*(R",
|
| 437 |
+
\&\*(L"build_requires\*(R", and \*(L"conflicts\*(R", which have the same meaning in
|
| 438 |
+
this subcontext as described elsewhere in this document.\fR
|
| 439 |
+
.SS "build_requires"
|
| 440 |
+
.IX Subsection "build_requires"
|
| 441 |
+
Example:
|
| 442 |
+
.PP
|
| 443 |
+
.Vb 3
|
| 444 |
+
\& build_requires:
|
| 445 |
+
\& Data::Dumper: 0
|
| 446 |
+
\& File::Find: 1.03
|
| 447 |
+
.Ve
|
| 448 |
+
.PP
|
| 449 |
+
(Spec 1.0) [optional] {map} A \s-1YAML\s0 mapping indicating the Perl
|
| 450 |
+
prerequisites required for building and/or testing of this
|
| 451 |
+
distribution. The keys are the names of the prerequisites (module
|
| 452 |
+
names or 'perl'), and the values are version specifications as
|
| 453 |
+
described in \*(L"\s-1VERSION SPECIFICATIONS\*(R"\s0. These dependencies are not
|
| 454 |
+
required after the distribution is installed.
|
| 455 |
+
.SS "configure_requires"
|
| 456 |
+
.IX Subsection "configure_requires"
|
| 457 |
+
Example:
|
| 458 |
+
.PP
|
| 459 |
+
.Vb 4
|
| 460 |
+
\& configure_requires:
|
| 461 |
+
\& Module::Build: 0.2809
|
| 462 |
+
\& Data::Dumper: 0
|
| 463 |
+
\& File::Find: 1.03
|
| 464 |
+
.Ve
|
| 465 |
+
.PP
|
| 466 |
+
(Spec 1.4) [optional] {map} A \s-1YAML\s0 mapping indicating the Perl prerequisites
|
| 467 |
+
required before configuring this distribution. The keys are the
|
| 468 |
+
names of the prerequisites (module names or 'perl'), and the values are version
|
| 469 |
+
specifications as described in \*(L"\s-1VERSION SPECIFICATIONS\*(R"\s0. These
|
| 470 |
+
dependencies are not required after the distribution is installed.
|
| 471 |
+
.SS "conflicts"
|
| 472 |
+
.IX Subsection "conflicts"
|
| 473 |
+
Example:
|
| 474 |
+
.PP
|
| 475 |
+
.Vb 3
|
| 476 |
+
\& conflicts:
|
| 477 |
+
\& Data::Dumper: 0
|
| 478 |
+
\& File::Find: 1.03
|
| 479 |
+
.Ve
|
| 480 |
+
.PP
|
| 481 |
+
(Spec 1.0) [optional] {map} A \s-1YAML\s0 mapping indicating any items that
|
| 482 |
+
cannot be installed while this distribution is installed. This is a
|
| 483 |
+
pretty uncommon situation. The keys for \f(CW\*(C`conflicts\*(C'\fR are the item
|
| 484 |
+
names (module names or 'perl'), and the values are version
|
| 485 |
+
specifications as described in \*(L"\s-1VERSION SPECIFICATIONS\*(R"\s0.
|
| 486 |
+
.SS "dynamic_config"
|
| 487 |
+
.IX Subsection "dynamic_config"
|
| 488 |
+
Example:
|
| 489 |
+
.PP
|
| 490 |
+
.Vb 1
|
| 491 |
+
\& dynamic_config: 0
|
| 492 |
+
.Ve
|
| 493 |
+
.PP
|
| 494 |
+
(Spec 1.0) [optional] {boolean} A boolean flag indicating whether a \fIBuild.PL\fR
|
| 495 |
+
or \fIMakefile.PL\fR (or similar) must be executed when building this
|
| 496 |
+
distribution, or whether it can be built, tested and installed solely
|
| 497 |
+
from consulting its
|
| 498 |
+
metadata file. The main reason to set this to a true value is that
|
| 499 |
+
your module performs some dynamic configuration (asking questions,
|
| 500 |
+
sensing the environment, etc.) as part of its build/install process.
|
| 501 |
+
.PP
|
| 502 |
+
Currently Module::Build doesn't actually do anything with this flag
|
| 503 |
+
\&\- it's probably going to be up to higher-level tools like \s-1CPAN\s0
|
| 504 |
+
to do something useful with it. It can potentially bring lots of
|
| 505 |
+
security, packaging, and convenience improvements.
|
| 506 |
+
.PP
|
| 507 |
+
If this field is omitted, it defaults to 1 (true).
|
| 508 |
+
.SS "private"
|
| 509 |
+
.IX Subsection "private"
|
| 510 |
+
\&\fI(Deprecated)\fR (Spec 1.0) [optional] {map} This field has been renamed to
|
| 511 |
+
\&\*(L"no_index\*(R". See below.
|
| 512 |
+
.SS "provides"
|
| 513 |
+
.IX Subsection "provides"
|
| 514 |
+
Example:
|
| 515 |
+
.PP
|
| 516 |
+
.Vb 9
|
| 517 |
+
\& provides:
|
| 518 |
+
\& Foo::Bar:
|
| 519 |
+
\& file: lib/Foo/Bar.pm
|
| 520 |
+
\& version: 0.27_02
|
| 521 |
+
\& Foo::Bar::Blah:
|
| 522 |
+
\& file: lib/Foo/Bar/Blah.pm
|
| 523 |
+
\& Foo::Bar::Baz:
|
| 524 |
+
\& file: lib/Foo/Bar/Baz.pm
|
| 525 |
+
\& version: 0.3
|
| 526 |
+
.Ve
|
| 527 |
+
.PP
|
| 528 |
+
(Spec 1.1) [optional] {map} A \s-1YAML\s0 mapping that describes all packages
|
| 529 |
+
provided by this distribution. This information can be (and, in some
|
| 530 |
+
cases, is) used by distribution and automation mechanisms like \s-1PAUSE,
|
| 531 |
+
CPAN,\s0 and search.cpan.org to build indexes saying in which
|
| 532 |
+
distribution various packages can be found.
|
| 533 |
+
.PP
|
| 534 |
+
When using tools like Module::Build that can generate the
|
| 535 |
+
\&\f(CW\*(C`provides\*(C'\fR mapping for your distribution automatically, make sure you
|
| 536 |
+
examine what it generates to make sure it makes sense \- indexers will
|
| 537 |
+
usually trust the \f(CW\*(C`provides\*(C'\fR field if it's present, rather than
|
| 538 |
+
scanning through the distribution files themselves to figure out
|
| 539 |
+
packages and versions. This is a good thing, because it means you can
|
| 540 |
+
use the \f(CW\*(C`provides\*(C'\fR field to tell the indexers precisely what you want
|
| 541 |
+
indexed about your distribution, rather than relying on them to
|
| 542 |
+
essentially guess what you want indexed.
|
| 543 |
+
.SS "no_index"
|
| 544 |
+
.IX Subsection "no_index"
|
| 545 |
+
Example:
|
| 546 |
+
.PP
|
| 547 |
+
.Vb 9
|
| 548 |
+
\& no_index:
|
| 549 |
+
\& file:
|
| 550 |
+
\& \- My/Module.pm
|
| 551 |
+
\& directory:
|
| 552 |
+
\& \- My/Private
|
| 553 |
+
\& package:
|
| 554 |
+
\& \- My::Module::Stuff
|
| 555 |
+
\& namespace:
|
| 556 |
+
\& \- My::Module::Stuff
|
| 557 |
+
.Ve
|
| 558 |
+
.PP
|
| 559 |
+
(Spec 1.1) [optional] {map} A \s-1YAML\s0 mapping that describes any files,
|
| 560 |
+
directories, packages, and namespaces that are private
|
| 561 |
+
(i.e. implementation artifacts) that are not of interest to searching
|
| 562 |
+
and indexing tools. This is useful when no \f(CW\*(C`provides\*(C'\fR field is
|
| 563 |
+
present.
|
| 564 |
+
.PP
|
| 565 |
+
For example, <http://search.cpan.org/> excludes items listed in \f(CW\*(C`no_index\*(C'\fR
|
| 566 |
+
when searching for \s-1POD,\s0 meaning files in these directories will not
|
| 567 |
+
converted to \s-1HTML\s0 and made public \- which is useful if you have
|
| 568 |
+
example or test PODs that you don't want the search engine to go
|
| 569 |
+
through.
|
| 570 |
+
.PP
|
| 571 |
+
\fIfile\fR
|
| 572 |
+
.IX Subsection "file"
|
| 573 |
+
.PP
|
| 574 |
+
(Spec 1.1) [optional] Exclude any listed file(s).
|
| 575 |
+
.PP
|
| 576 |
+
\fIdirectory\fR
|
| 577 |
+
.IX Subsection "directory"
|
| 578 |
+
.PP
|
| 579 |
+
(Spec 1.1) [optional] Exclude anything below the listed
|
| 580 |
+
directory(ies).
|
| 581 |
+
.PP
|
| 582 |
+
[Note: previous editions of the spec had \f(CW\*(C`dir\*(C'\fR instead of
|
| 583 |
+
\&\f(CW\*(C`directory\*(C'\fR, but I think MakeMaker and various users started using
|
| 584 |
+
\&\f(CW\*(C`directory\*(C'\fR, so in deference we switched to that.]
|
| 585 |
+
.PP
|
| 586 |
+
\fIpackage\fR
|
| 587 |
+
.IX Subsection "package"
|
| 588 |
+
.PP
|
| 589 |
+
(Spec 1.1) [optional] Exclude the listed package(s).
|
| 590 |
+
.PP
|
| 591 |
+
\fInamespace\fR
|
| 592 |
+
.IX Subsection "namespace"
|
| 593 |
+
.PP
|
| 594 |
+
(Spec 1.1) [optional] Excludes anything below the listed namespace(s),
|
| 595 |
+
but \fInot\fR the listed namespace(s) its self.
|
| 596 |
+
.SS "keywords"
|
| 597 |
+
.IX Subsection "keywords"
|
| 598 |
+
Example:
|
| 599 |
+
.PP
|
| 600 |
+
.Vb 4
|
| 601 |
+
\& keywords:
|
| 602 |
+
\& \- make
|
| 603 |
+
\& \- build
|
| 604 |
+
\& \- install
|
| 605 |
+
.Ve
|
| 606 |
+
.PP
|
| 607 |
+
(Spec 1.1) [optional] {list} A sequence of keywords/phrases that describe
|
| 608 |
+
this distribution.
|
| 609 |
+
.SS "resources"
|
| 610 |
+
.IX Subsection "resources"
|
| 611 |
+
Example:
|
| 612 |
+
.PP
|
| 613 |
+
.Vb 6
|
| 614 |
+
\& resources:
|
| 615 |
+
\& license: http://dev.perl.org/licenses/
|
| 616 |
+
\& homepage: http://sourceforge.net/projects/module\-build
|
| 617 |
+
\& bugtracker: http://rt.cpan.org/NoAuth/Bugs.html?Dist=Module\-Build
|
| 618 |
+
\& repository: http://sourceforge.net/cvs/?group_id=45731
|
| 619 |
+
\& MailingList: http://lists.sourceforge.net/lists/listinfo/module\-build\-general
|
| 620 |
+
.Ve
|
| 621 |
+
.PP
|
| 622 |
+
(Spec 1.1) [optional] {map} A mapping of any \s-1URL\s0 resources related to
|
| 623 |
+
this distribution. All-lower-case keys, such as \f(CW\*(C`homepage\*(C'\fR,
|
| 624 |
+
\&\f(CW\*(C`license\*(C'\fR, and \f(CW\*(C`bugtracker\*(C'\fR, are reserved by this specification, as
|
| 625 |
+
they have \*(L"official\*(R" meanings defined here in this specification. If
|
| 626 |
+
you'd like to add your own \*(L"special\*(R" entries (like the \*(L"MailingList\*(R"
|
| 627 |
+
entry above), use at least one upper-case letter.
|
| 628 |
+
.PP
|
| 629 |
+
The current set of official keys is:
|
| 630 |
+
.IP "homepage" 2
|
| 631 |
+
.IX Item "homepage"
|
| 632 |
+
The official home of this project on the web.
|
| 633 |
+
.IP "license" 2
|
| 634 |
+
.IX Item "license"
|
| 635 |
+
An \s-1URL\s0 for an official statement of this distribution's license.
|
| 636 |
+
.IP "bugtracker" 2
|
| 637 |
+
.IX Item "bugtracker"
|
| 638 |
+
An \s-1URL\s0 for a bug tracker (e.g. Bugzilla or \s-1RT\s0 queue) for this project.
|
| 639 |
+
.SS "generated_by"
|
| 640 |
+
.IX Subsection "generated_by"
|
| 641 |
+
Example:
|
| 642 |
+
.PP
|
| 643 |
+
.Vb 1
|
| 644 |
+
\& generated_by: Module::Build version 0.20
|
| 645 |
+
.Ve
|
| 646 |
+
.PP
|
| 647 |
+
(Spec 1.0) [required] {string} Indicates the tool that was used to create this
|
| 648 |
+
\&\fI\s-1META\s0.yml\fR file. It's good form to include both the name of the tool
|
| 649 |
+
and its version, but this field is essentially opaque, at least for
|
| 650 |
+
the moment. If \fI\s-1META\s0.yml\fR was generated by hand, it is suggested that
|
| 651 |
+
the author be specified here.
|
| 652 |
+
.PP
|
| 653 |
+
[Note: My \fImeta_stats.pl\fR script which I use to gather statistics
|
| 654 |
+
regarding \fI\s-1META\s0.yml\fR usage prefers the form listed above, i.e. it
|
| 655 |
+
splits on /\es+version\es+/ taking the first field as the name of the
|
| 656 |
+
tool that generated the file and the second field as version of that
|
| 657 |
+
tool. \s-1RWS\s0]
|
| 658 |
+
.SH "VERSION SPECIFICATIONS"
|
| 659 |
+
.IX Header "VERSION SPECIFICATIONS"
|
| 660 |
+
Some fields require a version specification (ex. \*(L"requires\*(R",
|
| 661 |
+
\&\*(L"recommends\*(R", \*(L"build_requires\*(R", etc.) to indicate the particular
|
| 662 |
+
version(s) of some other module that may be required as a
|
| 663 |
+
prerequisite. This section details the version specification formats
|
| 664 |
+
that are currently supported.
|
| 665 |
+
.PP
|
| 666 |
+
The simplest format for a version specification is just the version
|
| 667 |
+
number itself, e.g. \f(CW2.4\fR. This means that \fBat least\fR version 2.4
|
| 668 |
+
must be present. To indicate that \fBany\fR version of a prerequisite is
|
| 669 |
+
okay, even if the prerequisite doesn't define a version at all, use
|
| 670 |
+
the version \f(CW0\fR.
|
| 671 |
+
.PP
|
| 672 |
+
You may also use the operators < (less than), <= (less than or
|
| 673 |
+
equal), > (greater than), >= (greater than or equal), ==
|
| 674 |
+
(equal), and != (not equal). For example, the specification \f(CW\*(C`<
|
| 675 |
+
2.0\*(C'\fR means that any version of the prerequisite less than 2.0 is
|
| 676 |
+
suitable.
|
| 677 |
+
.PP
|
| 678 |
+
For more complicated situations, version specifications may be AND-ed
|
| 679 |
+
together using commas. The specification \f(CW\*(C`>= 1.2, != 1.5, <
|
| 680 |
+
2.0\*(C'\fR indicates a version that must be \fBat least\fR 1.2, \fBless than\fR
|
| 681 |
+
2.0, and \fBnot equal to\fR 1.5.
|
| 682 |
+
.SH "SEE ALSO"
|
| 683 |
+
.IX Header "SEE ALSO"
|
| 684 |
+
\&\s-1CPAN\s0 <http://www.cpan.org/>
|
| 685 |
+
.PP
|
| 686 |
+
\&\s-1CPAN\s0.pm
|
| 687 |
+
.PP
|
| 688 |
+
\&\s-1CPANPLUS\s0
|
| 689 |
+
.PP
|
| 690 |
+
Data::Dumper
|
| 691 |
+
.PP
|
| 692 |
+
ExtUtils::MakeMaker
|
| 693 |
+
.PP
|
| 694 |
+
Module::Build
|
| 695 |
+
.PP
|
| 696 |
+
Module::Install
|
| 697 |
+
.PP
|
| 698 |
+
\&\s-1XML\s0 <http://www.w3.org/XML/>
|
| 699 |
+
.PP
|
| 700 |
+
\&\s-1YAML\s0 <http://www.yaml.org/>
|
| 701 |
+
.SH "HISTORY"
|
| 702 |
+
.IX Header "HISTORY"
|
| 703 |
+
.IP "March 14, 2003 (Pi day)" 4
|
| 704 |
+
.IX Item "March 14, 2003 (Pi day)"
|
| 705 |
+
.RS 4
|
| 706 |
+
.PD 0
|
| 707 |
+
.IP "\(bu" 2
|
| 708 |
+
.PD
|
| 709 |
+
Created version 1.0 of this document.
|
| 710 |
+
.RE
|
| 711 |
+
.RS 4
|
| 712 |
+
.RE
|
| 713 |
+
.IP "May 8, 2003" 4
|
| 714 |
+
.IX Item "May 8, 2003"
|
| 715 |
+
.RS 4
|
| 716 |
+
.PD 0
|
| 717 |
+
.IP "\(bu" 2
|
| 718 |
+
.PD
|
| 719 |
+
Added the \*(L"dynamic_config\*(R" field, which was missing from the initial
|
| 720 |
+
version.
|
| 721 |
+
.RE
|
| 722 |
+
.RS 4
|
| 723 |
+
.RE
|
| 724 |
+
.IP "November 13, 2003" 4
|
| 725 |
+
.IX Item "November 13, 2003"
|
| 726 |
+
.RS 4
|
| 727 |
+
.PD 0
|
| 728 |
+
.IP "\(bu" 2
|
| 729 |
+
.PD
|
| 730 |
+
Added more \s-1YAML\s0 rationale articles.
|
| 731 |
+
.IP "\(bu" 2
|
| 732 |
+
Fixed existing link to \s-1YAML\s0 discussion thread to point to new
|
| 733 |
+
<http://nntp.x.perl.org/group/> site.
|
| 734 |
+
.IP "\(bu" 2
|
| 735 |
+
Added and deprecated the \*(L"private\*(R" field.
|
| 736 |
+
.IP "\(bu" 2
|
| 737 |
+
Added \*(L"abstract\*(R", \f(CW\*(C`configure\*(C'\fR, \f(CW\*(C`requires_packages\*(C'\fR,
|
| 738 |
+
\&\f(CW\*(C`requires_os\*(C'\fR, \f(CW\*(C`excludes_os\*(C'\fR, and \*(L"no_index\*(R" fields.
|
| 739 |
+
.IP "\(bu" 2
|
| 740 |
+
Bumped version.
|
| 741 |
+
.RE
|
| 742 |
+
.RS 4
|
| 743 |
+
.RE
|
| 744 |
+
.IP "November 16, 2003" 4
|
| 745 |
+
.IX Item "November 16, 2003"
|
| 746 |
+
.RS 4
|
| 747 |
+
.PD 0
|
| 748 |
+
.IP "\(bu" 2
|
| 749 |
+
.PD
|
| 750 |
+
Added \f(CW\*(C`generation\*(C'\fR, \f(CW\*(C`authored_by\*(C'\fR fields.
|
| 751 |
+
.IP "\(bu" 2
|
| 752 |
+
Add alternative proposal to the \*(L"recommends\*(R" field.
|
| 753 |
+
.IP "\(bu" 2
|
| 754 |
+
Add proposal for a \f(CW\*(C`requires_build_tools\*(C'\fR field.
|
| 755 |
+
.RE
|
| 756 |
+
.RS 4
|
| 757 |
+
.RE
|
| 758 |
+
.IP "December 9, 2003" 4
|
| 759 |
+
.IX Item "December 9, 2003"
|
| 760 |
+
.RS 4
|
| 761 |
+
.PD 0
|
| 762 |
+
.IP "\(bu" 2
|
| 763 |
+
.PD
|
| 764 |
+
Added link to latest version of this specification on \s-1CPAN.\s0
|
| 765 |
+
.IP "\(bu" 2
|
| 766 |
+
Added section \*(L"\s-1VERSION SPECIFICATIONS\*(R"\s0.
|
| 767 |
+
.IP "\(bu" 2
|
| 768 |
+
Chang name from Module::Build::META\-spec to CPAN::META::Specification.
|
| 769 |
+
.IP "\(bu" 2
|
| 770 |
+
Add proposal for \f(CW\*(C`auto_regenerate\*(C'\fR field.
|
| 771 |
+
.RE
|
| 772 |
+
.RS 4
|
| 773 |
+
.RE
|
| 774 |
+
.IP "December 15, 2003" 4
|
| 775 |
+
.IX Item "December 15, 2003"
|
| 776 |
+
.RS 4
|
| 777 |
+
.PD 0
|
| 778 |
+
.IP "\(bu" 2
|
| 779 |
+
.PD
|
| 780 |
+
Add \f(CW\*(C`index\*(C'\fR field as a compliment to \*(L"no_index\*(R"
|
| 781 |
+
.IP "\(bu" 2
|
| 782 |
+
Add \*(L"keywords\*(R" field as a means to aid searching distributions.
|
| 783 |
+
.IP "\(bu" 2
|
| 784 |
+
Add \*(L"\s-1TERMINOLOGY\*(R"\s0 section to explain certain terms that may be
|
| 785 |
+
ambiguous.
|
| 786 |
+
.RE
|
| 787 |
+
.RS 4
|
| 788 |
+
.RE
|
| 789 |
+
.IP "July 26, 2005" 4
|
| 790 |
+
.IX Item "July 26, 2005"
|
| 791 |
+
.RS 4
|
| 792 |
+
.PD 0
|
| 793 |
+
.IP "\(bu" 2
|
| 794 |
+
.PD
|
| 795 |
+
Removed a bunch of items (generation, requires_build_tools,
|
| 796 |
+
requires_packages, configure, requires_os, excludes_os,
|
| 797 |
+
auto_regenerate) that have never actually been supported, but were
|
| 798 |
+
more like records of brainstorming.
|
| 799 |
+
.IP "\(bu" 2
|
| 800 |
+
Changed \f(CW\*(C`authored_by\*(C'\fR to \*(L"author\*(R", since that's always been what
|
| 801 |
+
it's actually called in actual \fI\s-1META\s0.yml\fR files.
|
| 802 |
+
.IP "\(bu" 2
|
| 803 |
+
Added the \*(L"==\*(R" operator to the list of supported version-checking
|
| 804 |
+
operators.
|
| 805 |
+
.IP "\(bu" 2
|
| 806 |
+
Noted that the \*(L"distribution_type\*(R" field is basically meaningless,
|
| 807 |
+
and shouldn't really be used.
|
| 808 |
+
.IP "\(bu" 2
|
| 809 |
+
Clarified \*(L"dynamic_config\*(R" a bit.
|
| 810 |
+
.RE
|
| 811 |
+
.RS 4
|
| 812 |
+
.RE
|
| 813 |
+
.IP "August 23, 2005" 4
|
| 814 |
+
.IX Item "August 23, 2005"
|
| 815 |
+
.RS 4
|
| 816 |
+
.PD 0
|
| 817 |
+
.IP "\(bu" 2
|
| 818 |
+
.PD
|
| 819 |
+
Removed the name \f(CW\*(C`CPAN::META::Specification\*(C'\fR, since that implies a
|
| 820 |
+
module that doesn't actually exist.
|
| 821 |
+
.RE
|
| 822 |
+
.RS 4
|
| 823 |
+
.RE
|
| 824 |
+
.IP "June 12, 2007" 4
|
| 825 |
+
.IX Item "June 12, 2007"
|
| 826 |
+
.RS 4
|
| 827 |
+
.PD 0
|
| 828 |
+
.IP "\(bu" 2
|
| 829 |
+
.PD
|
| 830 |
+
Added \*(L"configure_requires\*(R".
|
| 831 |
+
.RE
|
| 832 |
+
.RS 4
|
| 833 |
+
.RE
|
data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AHistory.3
ADDED
|
@@ -0,0 +1,312 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "CPAN::Meta::History 3"
|
| 136 |
+
.TH CPAN::Meta::History 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
CPAN::Meta::History \- history of CPAN Meta Spec changes
|
| 143 |
+
.SH "VERSION"
|
| 144 |
+
.IX Header "VERSION"
|
| 145 |
+
version 2.150010
|
| 146 |
+
.SH "DESCRIPTION"
|
| 147 |
+
.IX Header "DESCRIPTION"
|
| 148 |
+
The \s-1CPAN\s0 Meta Spec has gone through several iterations. It was
|
| 149 |
+
originally written in \s-1HTML\s0 and later revised into \s-1POD\s0 (though published
|
| 150 |
+
in \s-1HTML\s0 generated from the \s-1POD\s0). Fields were added, removed or changed,
|
| 151 |
+
sometimes by design and sometimes to reflect real-world usage after the
|
| 152 |
+
fact.
|
| 153 |
+
.PP
|
| 154 |
+
This document reconstructs the history of the \s-1CPAN\s0 Meta Spec based on
|
| 155 |
+
change logs, repository commit messages and the published \s-1HTML\s0 files.
|
| 156 |
+
In some cases, particularly prior to version 1.2, the exact version
|
| 157 |
+
when certain fields were introduced or changed is inconsistent between
|
| 158 |
+
sources. When in doubt, the published \s-1HTML\s0 files for versions 1.0 to
|
| 159 |
+
1.4 as they existed when version 2 was developed are used as the
|
| 160 |
+
definitive source.
|
| 161 |
+
.PP
|
| 162 |
+
Starting with version 2, the specification document is part of the
|
| 163 |
+
CPAN-Meta distribution and will be published on \s-1CPAN\s0 as
|
| 164 |
+
CPAN::Meta::Spec.
|
| 165 |
+
.PP
|
| 166 |
+
Going forward, specification version numbers will be integers and
|
| 167 |
+
decimal portions will correspond to a release date for the CPAN::Meta
|
| 168 |
+
library.
|
| 169 |
+
.SH "HISTORY"
|
| 170 |
+
.IX Header "HISTORY"
|
| 171 |
+
.SS "Version 2"
|
| 172 |
+
.IX Subsection "Version 2"
|
| 173 |
+
April 2010
|
| 174 |
+
.IP "\(bu" 4
|
| 175 |
+
Revised spec examples as perl data structures rather than \s-1YAML\s0
|
| 176 |
+
.IP "\(bu" 4
|
| 177 |
+
Switched to \s-1JSON\s0 serialization from \s-1YAML\s0
|
| 178 |
+
.IP "\(bu" 4
|
| 179 |
+
Specified allowed version number formats
|
| 180 |
+
.IP "\(bu" 4
|
| 181 |
+
Replaced 'requires', 'build_requires', 'configure_requires',
|
| 182 |
+
\&'recommends' and 'conflicts' with new 'prereqs' data structure divided
|
| 183 |
+
by \fIphase\fR (configure, build, test, runtime, etc.) and \fIrelationship\fR
|
| 184 |
+
(requires, recommends, suggests, conflicts)
|
| 185 |
+
.IP "\(bu" 4
|
| 186 |
+
Added support for 'develop' phase for requirements for maintaining
|
| 187 |
+
a list of authoring tools
|
| 188 |
+
.IP "\(bu" 4
|
| 189 |
+
Changed 'license' to a list and revised the set of valid licenses
|
| 190 |
+
.IP "\(bu" 4
|
| 191 |
+
Made 'dynamic_config' mandatory to reduce confusion
|
| 192 |
+
.IP "\(bu" 4
|
| 193 |
+
Changed 'resources' subkey 'repository' to a hash that clarifies
|
| 194 |
+
repository type, url for browsing and url for checkout
|
| 195 |
+
.IP "\(bu" 4
|
| 196 |
+
Changed 'resources' subkey 'bugtracker' to a hash for either web
|
| 197 |
+
or mailto resource
|
| 198 |
+
.IP "\(bu" 4
|
| 199 |
+
Changed specification of 'optional_features':
|
| 200 |
+
.RS 4
|
| 201 |
+
.IP "\(bu" 4
|
| 202 |
+
Added formal specification and usage guide instead of just example
|
| 203 |
+
.IP "\(bu" 4
|
| 204 |
+
Changed to use new prereqs data structure instead of individual keys
|
| 205 |
+
.RE
|
| 206 |
+
.RS 4
|
| 207 |
+
.RE
|
| 208 |
+
.IP "\(bu" 4
|
| 209 |
+
Clarified intended use of 'author' as generalized contact list
|
| 210 |
+
.IP "\(bu" 4
|
| 211 |
+
Added 'release_status' field to indicate stable, testing or unstable
|
| 212 |
+
status to provide hints to indexers
|
| 213 |
+
.IP "\(bu" 4
|
| 214 |
+
Added 'description' field for a longer description of the distribution
|
| 215 |
+
.IP "\(bu" 4
|
| 216 |
+
Formalized use of \*(L"x_\*(R" or \*(L"X_\*(R" for all custom keys not listed in the
|
| 217 |
+
official spec
|
| 218 |
+
.SS "Version 1.4"
|
| 219 |
+
.IX Subsection "Version 1.4"
|
| 220 |
+
June 2008
|
| 221 |
+
.IP "\(bu" 4
|
| 222 |
+
Noted explicit support for 'perl' in prerequisites
|
| 223 |
+
.IP "\(bu" 4
|
| 224 |
+
Added 'configure_requires' prerequisite type
|
| 225 |
+
.IP "\(bu" 4
|
| 226 |
+
Changed 'optional_features'
|
| 227 |
+
.RS 4
|
| 228 |
+
.IP "\(bu" 4
|
| 229 |
+
Example corrected to show map of maps instead of list of maps
|
| 230 |
+
(though descriptive text said 'map' even in v1.3)
|
| 231 |
+
.IP "\(bu" 4
|
| 232 |
+
Removed 'requires_packages', 'requires_os' and 'excluded_os'
|
| 233 |
+
as valid subkeys
|
| 234 |
+
.RE
|
| 235 |
+
.RS 4
|
| 236 |
+
.RE
|
| 237 |
+
.SS "Version 1.3"
|
| 238 |
+
.IX Subsection "Version 1.3"
|
| 239 |
+
November 2006
|
| 240 |
+
.IP "\(bu" 4
|
| 241 |
+
Added 'no_index' subkey 'directory' and removed 'dir' to match actual
|
| 242 |
+
usage in the wild
|
| 243 |
+
.IP "\(bu" 4
|
| 244 |
+
Added a 'repository' subkey to 'resources'
|
| 245 |
+
.SS "Version 1.2"
|
| 246 |
+
.IX Subsection "Version 1.2"
|
| 247 |
+
August 2005
|
| 248 |
+
.IP "\(bu" 4
|
| 249 |
+
Re-wrote and restructured spec in \s-1POD\s0 syntax
|
| 250 |
+
.IP "\(bu" 4
|
| 251 |
+
Changed 'name' to be mandatory
|
| 252 |
+
.IP "\(bu" 4
|
| 253 |
+
Changed 'generated_by' to be mandatory
|
| 254 |
+
.IP "\(bu" 4
|
| 255 |
+
Changed 'license' to be mandatory
|
| 256 |
+
.IP "\(bu" 4
|
| 257 |
+
Added version range specifications for prerequisites
|
| 258 |
+
.IP "\(bu" 4
|
| 259 |
+
Added required 'abstract' field
|
| 260 |
+
.IP "\(bu" 4
|
| 261 |
+
Added required 'author' field
|
| 262 |
+
.IP "\(bu" 4
|
| 263 |
+
Added required 'meta\-spec' field to define 'version' (and 'url') of the
|
| 264 |
+
\&\s-1CPAN\s0 Meta Spec used for metadata
|
| 265 |
+
.IP "\(bu" 4
|
| 266 |
+
Added 'provides' field
|
| 267 |
+
.IP "\(bu" 4
|
| 268 |
+
Added 'no_index' field and deprecated 'private' field. 'no_index'
|
| 269 |
+
subkeys include 'file', 'dir', 'package' and 'namespace'
|
| 270 |
+
.IP "\(bu" 4
|
| 271 |
+
Added 'keywords' field
|
| 272 |
+
.IP "\(bu" 4
|
| 273 |
+
Added 'resources' field with subkeys 'homepage', 'license', and
|
| 274 |
+
\&'bugtracker'
|
| 275 |
+
.IP "\(bu" 4
|
| 276 |
+
Added 'optional_features' field as an alternate under 'recommends'.
|
| 277 |
+
Includes 'description', 'requires', 'build_requires', 'conflicts',
|
| 278 |
+
\&'requires_packages', 'requires_os' and 'excluded_os' as valid subkeys
|
| 279 |
+
.IP "\(bu" 4
|
| 280 |
+
Removed 'license_uri' field
|
| 281 |
+
.SS "Version 1.1"
|
| 282 |
+
.IX Subsection "Version 1.1"
|
| 283 |
+
May 2003
|
| 284 |
+
.IP "\(bu" 4
|
| 285 |
+
Changed 'version' to be mandatory
|
| 286 |
+
.IP "\(bu" 4
|
| 287 |
+
Added 'private' field
|
| 288 |
+
.IP "\(bu" 4
|
| 289 |
+
Added 'license_uri' field
|
| 290 |
+
.SS "Version 1.0"
|
| 291 |
+
.IX Subsection "Version 1.0"
|
| 292 |
+
March 2003
|
| 293 |
+
.IP "\(bu" 4
|
| 294 |
+
Original release (in \s-1HTML\s0 format only)
|
| 295 |
+
.IP "\(bu" 4
|
| 296 |
+
Included 'name', 'version', 'license', 'distribution_type', 'requires',
|
| 297 |
+
\&'recommends', 'build_requires', 'conflicts', 'dynamic_config',
|
| 298 |
+
\&'generated_by'
|
| 299 |
+
.SH "AUTHORS"
|
| 300 |
+
.IX Header "AUTHORS"
|
| 301 |
+
.IP "\(bu" 4
|
| 302 |
+
David Golden <dagolden@cpan.org>
|
| 303 |
+
.IP "\(bu" 4
|
| 304 |
+
Ricardo Signes <rjbs@cpan.org>
|
| 305 |
+
.IP "\(bu" 4
|
| 306 |
+
Adam Kennedy <adamk@cpan.org>
|
| 307 |
+
.SH "COPYRIGHT AND LICENSE"
|
| 308 |
+
.IX Header "COPYRIGHT AND LICENSE"
|
| 309 |
+
This software is copyright (c) 2010 by David Golden, Ricardo Signes, Adam Kennedy and Contributors.
|
| 310 |
+
.PP
|
| 311 |
+
This is free software; you can redistribute it and/or modify it under
|
| 312 |
+
the same terms as the Perl 5 programming language system itself.
|
data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AMerge.3
ADDED
|
@@ -0,0 +1,223 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "CPAN::Meta::Merge 3"
|
| 136 |
+
.TH CPAN::Meta::Merge 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
CPAN::Meta::Merge \- Merging CPAN Meta fragments
|
| 143 |
+
.SH "VERSION"
|
| 144 |
+
.IX Header "VERSION"
|
| 145 |
+
version 2.150010
|
| 146 |
+
.SH "SYNOPSIS"
|
| 147 |
+
.IX Header "SYNOPSIS"
|
| 148 |
+
.Vb 2
|
| 149 |
+
\& my $merger = CPAN::Meta::Merge\->new(default_version => "2");
|
| 150 |
+
\& my $meta = $merger\->merge($base, @additional);
|
| 151 |
+
.Ve
|
| 152 |
+
.SH "DESCRIPTION"
|
| 153 |
+
.IX Header "DESCRIPTION"
|
| 154 |
+
.SH "METHODS"
|
| 155 |
+
.IX Header "METHODS"
|
| 156 |
+
.SS "new"
|
| 157 |
+
.IX Subsection "new"
|
| 158 |
+
This creates a CPAN::Meta::Merge object. It takes one mandatory named
|
| 159 |
+
argument, \f(CW\*(C`version\*(C'\fR, declaring the version of the meta-spec that must be
|
| 160 |
+
used for the merge. It can optionally take an \f(CW\*(C`extra_mappings\*(C'\fR argument
|
| 161 |
+
that allows one to add additional merging functions for specific elements.
|
| 162 |
+
.PP
|
| 163 |
+
The \f(CW\*(C`extra_mappings\*(C'\fR arguments takes a hash ref with the same type of
|
| 164 |
+
structure as described in CPAN::Meta::Spec, except with its values as
|
| 165 |
+
one of the defined merge strategies or a code ref
|
| 166 |
+
to a merging function.
|
| 167 |
+
.PP
|
| 168 |
+
.Vb 11
|
| 169 |
+
\& my $merger = CPAN::Meta::Merge\->new(
|
| 170 |
+
\& default_version => \*(Aq2\*(Aq,
|
| 171 |
+
\& extra_mappings => {
|
| 172 |
+
\& \*(Aqoptional_features\*(Aq => \e&custom_merge_function,
|
| 173 |
+
\& \*(Aqx_custom\*(Aq => \*(Aqset_addition\*(Aq,
|
| 174 |
+
\& \*(Aqx_meta_meta\*(Aq => {
|
| 175 |
+
\& name => \*(Aqidentical\*(Aq,
|
| 176 |
+
\& tags => \*(Aqset_addition\*(Aq,
|
| 177 |
+
\& }
|
| 178 |
+
\& }
|
| 179 |
+
\& );
|
| 180 |
+
.Ve
|
| 181 |
+
.SS "merge(@fragments)"
|
| 182 |
+
.IX Subsection "merge(@fragments)"
|
| 183 |
+
Merge all \f(CW@fragments\fR together. It will accept both CPAN::Meta objects and
|
| 184 |
+
(possibly incomplete) hashrefs of metadata.
|
| 185 |
+
.SH "MERGE STRATEGIES"
|
| 186 |
+
.IX Header "MERGE STRATEGIES"
|
| 187 |
+
\&\f(CW\*(C`merge\*(C'\fR uses various strategies to combine different elements of the CPAN::Meta objects. The following strategies can be used with the extra_mappings argument of \f(CW\*(C`new\*(C'\fR:
|
| 188 |
+
.IP "identical" 4
|
| 189 |
+
.IX Item "identical"
|
| 190 |
+
The elements must be identical
|
| 191 |
+
.IP "set_addition" 4
|
| 192 |
+
.IX Item "set_addition"
|
| 193 |
+
The union of two array refs
|
| 194 |
+
.Sp
|
| 195 |
+
.Vb 1
|
| 196 |
+
\& [ a, b ] U [ a, c] = [ a, b, c ]
|
| 197 |
+
.Ve
|
| 198 |
+
.IP "uniq_map" 4
|
| 199 |
+
.IX Item "uniq_map"
|
| 200 |
+
Key value pairs from the right hash are merged to the left hash. Key
|
| 201 |
+
collisions are only allowed if their values are the same. This merge
|
| 202 |
+
function will recurse into nested hash refs following the same merge
|
| 203 |
+
rules.
|
| 204 |
+
.IP "improvise" 4
|
| 205 |
+
.IX Item "improvise"
|
| 206 |
+
This merge strategy will try to pick the appropriate predefined strategy
|
| 207 |
+
based on what element type. Array refs will try to use the
|
| 208 |
+
\&\f(CW\*(C`set_addition\*(C'\fR strategy, Hash refs will try to use the \f(CW\*(C`uniq_map\*(C'\fR
|
| 209 |
+
strategy, and everything else will try the \f(CW\*(C`identical\*(C'\fR strategy.
|
| 210 |
+
.SH "AUTHORS"
|
| 211 |
+
.IX Header "AUTHORS"
|
| 212 |
+
.IP "\(bu" 4
|
| 213 |
+
David Golden <dagolden@cpan.org>
|
| 214 |
+
.IP "\(bu" 4
|
| 215 |
+
Ricardo Signes <rjbs@cpan.org>
|
| 216 |
+
.IP "\(bu" 4
|
| 217 |
+
Adam Kennedy <adamk@cpan.org>
|
| 218 |
+
.SH "COPYRIGHT AND LICENSE"
|
| 219 |
+
.IX Header "COPYRIGHT AND LICENSE"
|
| 220 |
+
This software is copyright (c) 2010 by David Golden, Ricardo Signes, Adam Kennedy and Contributors.
|
| 221 |
+
.PP
|
| 222 |
+
This is free software; you can redistribute it and/or modify it under
|
| 223 |
+
the same terms as the Perl 5 programming language system itself.
|
data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3APrereqs.3
ADDED
|
@@ -0,0 +1,285 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "CPAN::Meta::Prereqs 3"
|
| 136 |
+
.TH CPAN::Meta::Prereqs 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
CPAN::Meta::Prereqs \- a set of distribution prerequisites by phase and type
|
| 143 |
+
.SH "VERSION"
|
| 144 |
+
.IX Header "VERSION"
|
| 145 |
+
version 2.150010
|
| 146 |
+
.SH "DESCRIPTION"
|
| 147 |
+
.IX Header "DESCRIPTION"
|
| 148 |
+
A CPAN::Meta::Prereqs object represents the prerequisites for a \s-1CPAN\s0
|
| 149 |
+
distribution or one of its optional features. Each set of prereqs is
|
| 150 |
+
organized by phase and type, as described in CPAN::Meta::Prereqs.
|
| 151 |
+
.SH "METHODS"
|
| 152 |
+
.IX Header "METHODS"
|
| 153 |
+
.SS "new"
|
| 154 |
+
.IX Subsection "new"
|
| 155 |
+
.Vb 1
|
| 156 |
+
\& my $prereq = CPAN::Meta::Prereqs\->new( \e%prereq_spec );
|
| 157 |
+
.Ve
|
| 158 |
+
.PP
|
| 159 |
+
This method returns a new set of Prereqs. The input should look like the
|
| 160 |
+
contents of the \f(CW\*(C`prereqs\*(C'\fR field described in CPAN::Meta::Spec, meaning
|
| 161 |
+
something more or less like this:
|
| 162 |
+
.PP
|
| 163 |
+
.Vb 10
|
| 164 |
+
\& my $prereq = CPAN::Meta::Prereqs\->new({
|
| 165 |
+
\& runtime => {
|
| 166 |
+
\& requires => {
|
| 167 |
+
\& \*(AqSome::Module\*(Aq => \*(Aq1.234\*(Aq,
|
| 168 |
+
\& ...,
|
| 169 |
+
\& },
|
| 170 |
+
\& ...,
|
| 171 |
+
\& },
|
| 172 |
+
\& ...,
|
| 173 |
+
\& });
|
| 174 |
+
.Ve
|
| 175 |
+
.PP
|
| 176 |
+
You can also construct an empty set of prereqs with:
|
| 177 |
+
.PP
|
| 178 |
+
.Vb 1
|
| 179 |
+
\& my $prereqs = CPAN::Meta::Prereqs\->new;
|
| 180 |
+
.Ve
|
| 181 |
+
.PP
|
| 182 |
+
This empty set of prereqs is useful for accumulating new prereqs before finally
|
| 183 |
+
dumping the whole set into a structure or string.
|
| 184 |
+
.SS "requirements_for"
|
| 185 |
+
.IX Subsection "requirements_for"
|
| 186 |
+
.Vb 1
|
| 187 |
+
\& my $requirements = $prereqs\->requirements_for( $phase, $type );
|
| 188 |
+
.Ve
|
| 189 |
+
.PP
|
| 190 |
+
This method returns a CPAN::Meta::Requirements object for the given
|
| 191 |
+
phase/type combination. If no prerequisites are registered for that
|
| 192 |
+
combination, a new CPAN::Meta::Requirements object will be returned, and it may
|
| 193 |
+
be added to as needed.
|
| 194 |
+
.PP
|
| 195 |
+
If \f(CW$phase\fR or \f(CW$type\fR are undefined or otherwise invalid, an exception will
|
| 196 |
+
be raised.
|
| 197 |
+
.SS "phases"
|
| 198 |
+
.IX Subsection "phases"
|
| 199 |
+
.Vb 1
|
| 200 |
+
\& my @phases = $prereqs\->phases;
|
| 201 |
+
.Ve
|
| 202 |
+
.PP
|
| 203 |
+
This method returns the list of all phases currently populated in the prereqs
|
| 204 |
+
object, suitable for iterating.
|
| 205 |
+
.SS "types_in"
|
| 206 |
+
.IX Subsection "types_in"
|
| 207 |
+
.Vb 1
|
| 208 |
+
\& my @runtime_types = $prereqs\->types_in(\*(Aqruntime\*(Aq);
|
| 209 |
+
.Ve
|
| 210 |
+
.PP
|
| 211 |
+
This method returns the list of all types currently populated in the prereqs
|
| 212 |
+
object for the provided phase, suitable for iterating.
|
| 213 |
+
.SS "with_merged_prereqs"
|
| 214 |
+
.IX Subsection "with_merged_prereqs"
|
| 215 |
+
.Vb 1
|
| 216 |
+
\& my $new_prereqs = $prereqs\->with_merged_prereqs( $other_prereqs );
|
| 217 |
+
\&
|
| 218 |
+
\& my $new_prereqs = $prereqs\->with_merged_prereqs( \e@other_prereqs );
|
| 219 |
+
.Ve
|
| 220 |
+
.PP
|
| 221 |
+
This method returns a new CPAN::Meta::Prereqs objects in which all the
|
| 222 |
+
other prerequisites given are merged into the current set. This is primarily
|
| 223 |
+
provided for combining a distribution's core prereqs with the prereqs of one of
|
| 224 |
+
its optional features.
|
| 225 |
+
.PP
|
| 226 |
+
The new prereqs object has no ties to the originals, and altering it further
|
| 227 |
+
will not alter them.
|
| 228 |
+
.SS "merged_requirements"
|
| 229 |
+
.IX Subsection "merged_requirements"
|
| 230 |
+
.Vb 3
|
| 231 |
+
\& my $new_reqs = $prereqs\->merged_requirements( \e@phases, \e@types );
|
| 232 |
+
\& my $new_reqs = $prereqs\->merged_requirements( \e@phases );
|
| 233 |
+
\& my $new_reqs = $prereqs\->merged_requirements();
|
| 234 |
+
.Ve
|
| 235 |
+
.PP
|
| 236 |
+
This method joins together all requirements across a number of phases
|
| 237 |
+
and types into a new CPAN::Meta::Requirements object. If arguments
|
| 238 |
+
are omitted, it defaults to \*(L"runtime\*(R", \*(L"build\*(R" and \*(L"test\*(R" for phases
|
| 239 |
+
and \*(L"requires\*(R" and \*(L"recommends\*(R" for types.
|
| 240 |
+
.SS "as_string_hash"
|
| 241 |
+
.IX Subsection "as_string_hash"
|
| 242 |
+
This method returns a hashref containing structures suitable for dumping into a
|
| 243 |
+
distmeta data structure. It is made up of hashes and strings, only; there will
|
| 244 |
+
be no Prereqs, CPAN::Meta::Requirements, or \f(CW\*(C`version\*(C'\fR objects inside it.
|
| 245 |
+
.SS "is_finalized"
|
| 246 |
+
.IX Subsection "is_finalized"
|
| 247 |
+
This method returns true if the set of prereqs has been marked \*(L"finalized,\*(R" and
|
| 248 |
+
cannot be altered.
|
| 249 |
+
.SS "finalize"
|
| 250 |
+
.IX Subsection "finalize"
|
| 251 |
+
Calling \f(CW\*(C`finalize\*(C'\fR on a Prereqs object will close it for further modification.
|
| 252 |
+
Attempting to make any changes that would actually alter the prereqs will
|
| 253 |
+
result in an exception being thrown.
|
| 254 |
+
.SS "clone"
|
| 255 |
+
.IX Subsection "clone"
|
| 256 |
+
.Vb 1
|
| 257 |
+
\& my $cloned_prereqs = $prereqs\->clone;
|
| 258 |
+
.Ve
|
| 259 |
+
.PP
|
| 260 |
+
This method returns a Prereqs object that is identical to the original object,
|
| 261 |
+
but can be altered without affecting the original object. Finalization does
|
| 262 |
+
not survive cloning, meaning that you may clone a finalized set of prereqs and
|
| 263 |
+
then modify the clone.
|
| 264 |
+
.SH "BUGS"
|
| 265 |
+
.IX Header "BUGS"
|
| 266 |
+
Please report any bugs or feature using the \s-1CPAN\s0 Request Tracker.
|
| 267 |
+
Bugs can be submitted through the web interface at
|
| 268 |
+
<http://rt.cpan.org/Dist/Display.html?Queue=CPAN\-Meta>
|
| 269 |
+
.PP
|
| 270 |
+
When submitting a bug or request, please include a test-file or a patch to an
|
| 271 |
+
existing test-file that illustrates the bug or desired feature.
|
| 272 |
+
.SH "AUTHORS"
|
| 273 |
+
.IX Header "AUTHORS"
|
| 274 |
+
.IP "\(bu" 4
|
| 275 |
+
David Golden <dagolden@cpan.org>
|
| 276 |
+
.IP "\(bu" 4
|
| 277 |
+
Ricardo Signes <rjbs@cpan.org>
|
| 278 |
+
.IP "\(bu" 4
|
| 279 |
+
Adam Kennedy <adamk@cpan.org>
|
| 280 |
+
.SH "COPYRIGHT AND LICENSE"
|
| 281 |
+
.IX Header "COPYRIGHT AND LICENSE"
|
| 282 |
+
This software is copyright (c) 2010 by David Golden, Ricardo Signes, Adam Kennedy and Contributors.
|
| 283 |
+
.PP
|
| 284 |
+
This is free software; you can redistribute it and/or modify it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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "CPAN::Meta::Requirements 3"
|
| 136 |
+
.TH CPAN::Meta::Requirements 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
CPAN::Meta::Requirements \- a set of version requirements for a CPAN dist
|
| 143 |
+
.SH "VERSION"
|
| 144 |
+
.IX Header "VERSION"
|
| 145 |
+
version 2.140
|
| 146 |
+
.SH "SYNOPSIS"
|
| 147 |
+
.IX Header "SYNOPSIS"
|
| 148 |
+
.Vb 1
|
| 149 |
+
\& use CPAN::Meta::Requirements;
|
| 150 |
+
\&
|
| 151 |
+
\& my $build_requires = CPAN::Meta::Requirements\->new;
|
| 152 |
+
\&
|
| 153 |
+
\& $build_requires\->add_minimum(\*(AqLibrary::Foo\*(Aq => 1.208);
|
| 154 |
+
\&
|
| 155 |
+
\& $build_requires\->add_minimum(\*(AqLibrary::Foo\*(Aq => 2.602);
|
| 156 |
+
\&
|
| 157 |
+
\& $build_requires\->add_minimum(\*(AqModule::Bar\*(Aq => \*(Aqv1.2.3\*(Aq);
|
| 158 |
+
\&
|
| 159 |
+
\& $METAyml\->{build_requires} = $build_requires\->as_string_hash;
|
| 160 |
+
.Ve
|
| 161 |
+
.SH "DESCRIPTION"
|
| 162 |
+
.IX Header "DESCRIPTION"
|
| 163 |
+
A CPAN::Meta::Requirements object models a set of version constraints like
|
| 164 |
+
those specified in the \fI\s-1META\s0.yml\fR or \fI\s-1META\s0.json\fR files in \s-1CPAN\s0 distributions,
|
| 165 |
+
and as defined by CPAN::Meta::Spec;
|
| 166 |
+
It can be built up by adding more and more constraints, and it will reduce them
|
| 167 |
+
to the simplest representation.
|
| 168 |
+
.PP
|
| 169 |
+
Logically impossible constraints will be identified immediately by thrown
|
| 170 |
+
exceptions.
|
| 171 |
+
.SH "METHODS"
|
| 172 |
+
.IX Header "METHODS"
|
| 173 |
+
.SS "new"
|
| 174 |
+
.IX Subsection "new"
|
| 175 |
+
.Vb 1
|
| 176 |
+
\& my $req = CPAN::Meta::Requirements\->new;
|
| 177 |
+
.Ve
|
| 178 |
+
.PP
|
| 179 |
+
This returns a new CPAN::Meta::Requirements object. It takes an optional
|
| 180 |
+
hash reference argument. Currently, only one key is supported:
|
| 181 |
+
.IP "\(bu" 4
|
| 182 |
+
\&\f(CW\*(C`bad_version_hook\*(C'\fR \*(-- if provided, when a version cannot be parsed into a version object, this code reference will be called with the invalid version string as first argument, and the module name as second argument. It must return a valid version object.
|
| 183 |
+
.PP
|
| 184 |
+
All other keys are ignored.
|
| 185 |
+
.SS "add_minimum"
|
| 186 |
+
.IX Subsection "add_minimum"
|
| 187 |
+
.Vb 1
|
| 188 |
+
\& $req\->add_minimum( $module => $version );
|
| 189 |
+
.Ve
|
| 190 |
+
.PP
|
| 191 |
+
This adds a new minimum version requirement. If the new requirement is
|
| 192 |
+
redundant to the existing specification, this has no effect.
|
| 193 |
+
.PP
|
| 194 |
+
Minimum requirements are inclusive. \f(CW$version\fR is required, along with any
|
| 195 |
+
greater version number.
|
| 196 |
+
.PP
|
| 197 |
+
This method returns the requirements object.
|
| 198 |
+
.SS "add_maximum"
|
| 199 |
+
.IX Subsection "add_maximum"
|
| 200 |
+
.Vb 1
|
| 201 |
+
\& $req\->add_maximum( $module => $version );
|
| 202 |
+
.Ve
|
| 203 |
+
.PP
|
| 204 |
+
This adds a new maximum version requirement. If the new requirement is
|
| 205 |
+
redundant to the existing specification, this has no effect.
|
| 206 |
+
.PP
|
| 207 |
+
Maximum requirements are inclusive. No version strictly greater than the given
|
| 208 |
+
version is allowed.
|
| 209 |
+
.PP
|
| 210 |
+
This method returns the requirements object.
|
| 211 |
+
.SS "add_exclusion"
|
| 212 |
+
.IX Subsection "add_exclusion"
|
| 213 |
+
.Vb 1
|
| 214 |
+
\& $req\->add_exclusion( $module => $version );
|
| 215 |
+
.Ve
|
| 216 |
+
.PP
|
| 217 |
+
This adds a new excluded version. For example, you might use these three
|
| 218 |
+
method calls:
|
| 219 |
+
.PP
|
| 220 |
+
.Vb 2
|
| 221 |
+
\& $req\->add_minimum( $module => \*(Aq1.00\*(Aq );
|
| 222 |
+
\& $req\->add_maximum( $module => \*(Aq1.82\*(Aq );
|
| 223 |
+
\&
|
| 224 |
+
\& $req\->add_exclusion( $module => \*(Aq1.75\*(Aq );
|
| 225 |
+
.Ve
|
| 226 |
+
.PP
|
| 227 |
+
Any version between 1.00 and 1.82 inclusive would be acceptable, except for
|
| 228 |
+
1.75.
|
| 229 |
+
.PP
|
| 230 |
+
This method returns the requirements object.
|
| 231 |
+
.SS "exact_version"
|
| 232 |
+
.IX Subsection "exact_version"
|
| 233 |
+
.Vb 1
|
| 234 |
+
\& $req\->exact_version( $module => $version );
|
| 235 |
+
.Ve
|
| 236 |
+
.PP
|
| 237 |
+
This sets the version required for the given module to \fIexactly\fR the given
|
| 238 |
+
version. No other version would be considered acceptable.
|
| 239 |
+
.PP
|
| 240 |
+
This method returns the requirements object.
|
| 241 |
+
.SS "add_requirements"
|
| 242 |
+
.IX Subsection "add_requirements"
|
| 243 |
+
.Vb 1
|
| 244 |
+
\& $req\->add_requirements( $another_req_object );
|
| 245 |
+
.Ve
|
| 246 |
+
.PP
|
| 247 |
+
This method adds all the requirements in the given CPAN::Meta::Requirements
|
| 248 |
+
object to the requirements object on which it was called. If there are any
|
| 249 |
+
conflicts, an exception is thrown.
|
| 250 |
+
.PP
|
| 251 |
+
This method returns the requirements object.
|
| 252 |
+
.SS "accepts_module"
|
| 253 |
+
.IX Subsection "accepts_module"
|
| 254 |
+
.Vb 1
|
| 255 |
+
\& my $bool = $req\->accepts_module($module => $version);
|
| 256 |
+
.Ve
|
| 257 |
+
.PP
|
| 258 |
+
Given an module and version, this method returns true if the version
|
| 259 |
+
specification for the module accepts the provided version. In other words,
|
| 260 |
+
given:
|
| 261 |
+
.PP
|
| 262 |
+
.Vb 1
|
| 263 |
+
\& Module => \*(Aq>= 1.00, < 2.00\*(Aq
|
| 264 |
+
.Ve
|
| 265 |
+
.PP
|
| 266 |
+
We will accept 1.00 and 1.75 but not 0.50 or 2.00.
|
| 267 |
+
.PP
|
| 268 |
+
For modules that do not appear in the requirements, this method will return
|
| 269 |
+
true.
|
| 270 |
+
.SS "clear_requirement"
|
| 271 |
+
.IX Subsection "clear_requirement"
|
| 272 |
+
.Vb 1
|
| 273 |
+
\& $req\->clear_requirement( $module );
|
| 274 |
+
.Ve
|
| 275 |
+
.PP
|
| 276 |
+
This removes the requirement for a given module from the object.
|
| 277 |
+
.PP
|
| 278 |
+
This method returns the requirements object.
|
| 279 |
+
.SS "requirements_for_module"
|
| 280 |
+
.IX Subsection "requirements_for_module"
|
| 281 |
+
.Vb 1
|
| 282 |
+
\& $req\->requirements_for_module( $module );
|
| 283 |
+
.Ve
|
| 284 |
+
.PP
|
| 285 |
+
This returns a string containing the version requirements for a given module in
|
| 286 |
+
the format described in CPAN::Meta::Spec or undef if the given module has no
|
| 287 |
+
requirements. This should only be used for informational purposes such as error
|
| 288 |
+
messages and should not be interpreted or used for comparison (see
|
| 289 |
+
\&\*(L"accepts_module\*(R" instead).
|
| 290 |
+
.SS "structured_requirements_for_module"
|
| 291 |
+
.IX Subsection "structured_requirements_for_module"
|
| 292 |
+
.Vb 1
|
| 293 |
+
\& $req\->structured_requirements_for_module( $module );
|
| 294 |
+
.Ve
|
| 295 |
+
.PP
|
| 296 |
+
This returns a data structure containing the version requirements for a given
|
| 297 |
+
module or undef if the given module has no requirements. This should
|
| 298 |
+
not be used for version checks (see \*(L"accepts_module\*(R" instead).
|
| 299 |
+
.PP
|
| 300 |
+
Added in version 2.134.
|
| 301 |
+
.SS "required_modules"
|
| 302 |
+
.IX Subsection "required_modules"
|
| 303 |
+
This method returns a list of all the modules for which requirements have been
|
| 304 |
+
specified.
|
| 305 |
+
.SS "clone"
|
| 306 |
+
.IX Subsection "clone"
|
| 307 |
+
.Vb 1
|
| 308 |
+
\& $req\->clone;
|
| 309 |
+
.Ve
|
| 310 |
+
.PP
|
| 311 |
+
This method returns a clone of the invocant. The clone and the original object
|
| 312 |
+
can then be changed independent of one another.
|
| 313 |
+
.SS "is_simple"
|
| 314 |
+
.IX Subsection "is_simple"
|
| 315 |
+
This method returns true if and only if all requirements are inclusive minimums
|
| 316 |
+
\&\*(-- that is, if their string expression is just the version number.
|
| 317 |
+
.SS "is_finalized"
|
| 318 |
+
.IX Subsection "is_finalized"
|
| 319 |
+
This method returns true if the requirements have been finalized by having the
|
| 320 |
+
\&\f(CW\*(C`finalize\*(C'\fR method called on them.
|
| 321 |
+
.SS "finalize"
|
| 322 |
+
.IX Subsection "finalize"
|
| 323 |
+
This method marks the requirements finalized. Subsequent attempts to change
|
| 324 |
+
the requirements will be fatal, \fIif\fR they would result in a change. If they
|
| 325 |
+
would not alter the requirements, they have no effect.
|
| 326 |
+
.PP
|
| 327 |
+
If a finalized set of requirements is cloned, the cloned requirements are not
|
| 328 |
+
also finalized.
|
| 329 |
+
.SS "as_string_hash"
|
| 330 |
+
.IX Subsection "as_string_hash"
|
| 331 |
+
This returns a reference to a hash describing the requirements using the
|
| 332 |
+
strings in the CPAN::Meta::Spec specification.
|
| 333 |
+
.PP
|
| 334 |
+
For example after the following program:
|
| 335 |
+
.PP
|
| 336 |
+
.Vb 1
|
| 337 |
+
\& my $req = CPAN::Meta::Requirements\->new;
|
| 338 |
+
\&
|
| 339 |
+
\& $req\->add_minimum(\*(AqCPAN::Meta::Requirements\*(Aq => 0.102);
|
| 340 |
+
\&
|
| 341 |
+
\& $req\->add_minimum(\*(AqLibrary::Foo\*(Aq => 1.208);
|
| 342 |
+
\&
|
| 343 |
+
\& $req\->add_maximum(\*(AqLibrary::Foo\*(Aq => 2.602);
|
| 344 |
+
\&
|
| 345 |
+
\& $req\->add_minimum(\*(AqModule::Bar\*(Aq => \*(Aqv1.2.3\*(Aq);
|
| 346 |
+
\&
|
| 347 |
+
\& $req\->add_exclusion(\*(AqModule::Bar\*(Aq => \*(Aqv1.2.8\*(Aq);
|
| 348 |
+
\&
|
| 349 |
+
\& $req\->exact_version(\*(AqXyzzy\*(Aq => \*(Aq6.01\*(Aq);
|
| 350 |
+
\&
|
| 351 |
+
\& my $hashref = $req\->as_string_hash;
|
| 352 |
+
.Ve
|
| 353 |
+
.PP
|
| 354 |
+
\&\f(CW$hashref\fR would contain:
|
| 355 |
+
.PP
|
| 356 |
+
.Vb 6
|
| 357 |
+
\& {
|
| 358 |
+
\& \*(AqCPAN::Meta::Requirements\*(Aq => \*(Aq0.102\*(Aq,
|
| 359 |
+
\& \*(AqLibrary::Foo\*(Aq => \*(Aq>= 1.208, <= 2.206\*(Aq,
|
| 360 |
+
\& \*(AqModule::Bar\*(Aq => \*(Aq>= v1.2.3, != v1.2.8\*(Aq,
|
| 361 |
+
\& \*(AqXyzzy\*(Aq => \*(Aq== 6.01\*(Aq,
|
| 362 |
+
\& }
|
| 363 |
+
.Ve
|
| 364 |
+
.SS "add_string_requirement"
|
| 365 |
+
.IX Subsection "add_string_requirement"
|
| 366 |
+
.Vb 2
|
| 367 |
+
\& $req\->add_string_requirement(\*(AqLibrary::Foo\*(Aq => \*(Aq>= 1.208, <= 2.206\*(Aq);
|
| 368 |
+
\& $req\->add_string_requirement(\*(AqLibrary::Foo\*(Aq => v1.208);
|
| 369 |
+
.Ve
|
| 370 |
+
.PP
|
| 371 |
+
This method parses the passed in string and adds the appropriate requirement
|
| 372 |
+
for the given module. A version can be a Perl \*(L"v\-string\*(R". It understands
|
| 373 |
+
version ranges as described in the \*(L"Version Ranges\*(R" in CPAN::Meta::Spec. For
|
| 374 |
+
example:
|
| 375 |
+
.IP "1.3" 4
|
| 376 |
+
.IX Item "1.3"
|
| 377 |
+
.PD 0
|
| 378 |
+
.IP ">= 1.3" 4
|
| 379 |
+
.IX Item ">= 1.3"
|
| 380 |
+
.IP "<= 1.3" 4
|
| 381 |
+
.IX Item "<= 1.3"
|
| 382 |
+
.IP "== 1.3" 4
|
| 383 |
+
.IX Item "== 1.3"
|
| 384 |
+
.IP "!= 1.3" 4
|
| 385 |
+
.IX Item "!= 1.3"
|
| 386 |
+
.IP "> 1.3" 4
|
| 387 |
+
.IX Item "> 1.3"
|
| 388 |
+
.IP "< 1.3" 4
|
| 389 |
+
.IX Item "< 1.3"
|
| 390 |
+
.IP ">= 1.3, != 1.5, <= 2.0" 4
|
| 391 |
+
.IX Item ">= 1.3, != 1.5, <= 2.0"
|
| 392 |
+
.PD
|
| 393 |
+
A version number without an operator is equivalent to specifying a minimum
|
| 394 |
+
(\f(CW\*(C`>=\*(C'\fR). Extra whitespace is allowed.
|
| 395 |
+
.SS "from_string_hash"
|
| 396 |
+
.IX Subsection "from_string_hash"
|
| 397 |
+
.Vb 2
|
| 398 |
+
\& my $req = CPAN::Meta::Requirements\->from_string_hash( \e%hash );
|
| 399 |
+
\& my $req = CPAN::Meta::Requirements\->from_string_hash( \e%hash, \e%opts );
|
| 400 |
+
.Ve
|
| 401 |
+
.PP
|
| 402 |
+
This is an alternate constructor for a CPAN::Meta::Requirements
|
| 403 |
+
object. It takes a hash of module names and version requirement
|
| 404 |
+
strings and returns a new CPAN::Meta::Requirements object. As with
|
| 405 |
+
add_string_requirement, a version can be a Perl \*(L"v\-string\*(R". Optionally,
|
| 406 |
+
you can supply a hash-reference of options, exactly as with the \*(L"new\*(R"
|
| 407 |
+
method.
|
| 408 |
+
.SH "SUPPORT"
|
| 409 |
+
.IX Header "SUPPORT"
|
| 410 |
+
.SS "Bugs / Feature Requests"
|
| 411 |
+
.IX Subsection "Bugs / Feature Requests"
|
| 412 |
+
Please report any bugs or feature requests through the issue tracker
|
| 413 |
+
at <https://github.com/Perl\-Toolchain\-Gang/CPAN\-Meta\-Requirements/issues>.
|
| 414 |
+
You will be notified automatically of any progress on your issue.
|
| 415 |
+
.SS "Source Code"
|
| 416 |
+
.IX Subsection "Source Code"
|
| 417 |
+
This is open source software. The code repository is available for
|
| 418 |
+
public review and contribution under the terms of the license.
|
| 419 |
+
.PP
|
| 420 |
+
<https://github.com/Perl\-Toolchain\-Gang/CPAN\-Meta\-Requirements>
|
| 421 |
+
.PP
|
| 422 |
+
.Vb 1
|
| 423 |
+
\& git clone https://github.com/Perl\-Toolchain\-Gang/CPAN\-Meta\-Requirements.git
|
| 424 |
+
.Ve
|
| 425 |
+
.SH "AUTHORS"
|
| 426 |
+
.IX Header "AUTHORS"
|
| 427 |
+
.IP "\(bu" 4
|
| 428 |
+
David Golden <dagolden@cpan.org>
|
| 429 |
+
.IP "\(bu" 4
|
| 430 |
+
Ricardo Signes <rjbs@cpan.org>
|
| 431 |
+
.SH "CONTRIBUTORS"
|
| 432 |
+
.IX Header "CONTRIBUTORS"
|
| 433 |
+
.IP "\(bu" 4
|
| 434 |
+
Ed J <mohawk2@users.noreply.github.com>
|
| 435 |
+
.IP "\(bu" 4
|
| 436 |
+
Karen Etheridge <ether@cpan.org>
|
| 437 |
+
.IP "\(bu" 4
|
| 438 |
+
Leon Timmermans <fawaka@gmail.com>
|
| 439 |
+
.IP "\(bu" 4
|
| 440 |
+
robario <webmaster@robario.com>
|
| 441 |
+
.SH "COPYRIGHT AND LICENSE"
|
| 442 |
+
.IX Header "COPYRIGHT AND LICENSE"
|
| 443 |
+
This software is copyright (c) 2010 by David Golden and Ricardo Signes.
|
| 444 |
+
.PP
|
| 445 |
+
This is free software; you can redistribute it and/or modify it under
|
| 446 |
+
the same terms as the Perl 5 programming language system itself.
|
data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3ASpec.3
ADDED
|
@@ -0,0 +1,1303 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "CPAN::Meta::Spec 3"
|
| 136 |
+
.TH CPAN::Meta::Spec 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
CPAN::Meta::Spec \- specification for CPAN distribution metadata
|
| 143 |
+
.SH "VERSION"
|
| 144 |
+
.IX Header "VERSION"
|
| 145 |
+
version 2.150010
|
| 146 |
+
.SH "SYNOPSIS"
|
| 147 |
+
.IX Header "SYNOPSIS"
|
| 148 |
+
.Vb 10
|
| 149 |
+
\& my $distmeta = {
|
| 150 |
+
\& name => \*(AqModule\-Build\*(Aq,
|
| 151 |
+
\& abstract => \*(AqBuild and install Perl modules\*(Aq,
|
| 152 |
+
\& description => "Module::Build is a system for "
|
| 153 |
+
\& . "building, testing, and installing Perl modules. "
|
| 154 |
+
\& . "It is meant to ... blah blah blah ...",
|
| 155 |
+
\& version => \*(Aq0.36\*(Aq,
|
| 156 |
+
\& release_status => \*(Aqstable\*(Aq,
|
| 157 |
+
\& author => [
|
| 158 |
+
\& \*(AqKen Williams <kwilliams@cpan.org>\*(Aq,
|
| 159 |
+
\& \*(AqModule\-Build List <module\-build@perl.org>\*(Aq, # additional contact
|
| 160 |
+
\& ],
|
| 161 |
+
\& license => [ \*(Aqperl_5\*(Aq ],
|
| 162 |
+
\& prereqs => {
|
| 163 |
+
\& runtime => {
|
| 164 |
+
\& requires => {
|
| 165 |
+
\& \*(Aqperl\*(Aq => \*(Aq5.006\*(Aq,
|
| 166 |
+
\& \*(AqExtUtils::Install\*(Aq => \*(Aq0\*(Aq,
|
| 167 |
+
\& \*(AqFile::Basename\*(Aq => \*(Aq0\*(Aq,
|
| 168 |
+
\& \*(AqFile::Compare\*(Aq => \*(Aq0\*(Aq,
|
| 169 |
+
\& \*(AqIO::File\*(Aq => \*(Aq0\*(Aq,
|
| 170 |
+
\& },
|
| 171 |
+
\& recommends => {
|
| 172 |
+
\& \*(AqArchive::Tar\*(Aq => \*(Aq1.00\*(Aq,
|
| 173 |
+
\& \*(AqExtUtils::Install\*(Aq => \*(Aq0.3\*(Aq,
|
| 174 |
+
\& \*(AqExtUtils::ParseXS\*(Aq => \*(Aq2.02\*(Aq,
|
| 175 |
+
\& },
|
| 176 |
+
\& },
|
| 177 |
+
\& build => {
|
| 178 |
+
\& requires => {
|
| 179 |
+
\& \*(AqTest::More\*(Aq => \*(Aq0\*(Aq,
|
| 180 |
+
\& },
|
| 181 |
+
\& }
|
| 182 |
+
\& },
|
| 183 |
+
\& resources => {
|
| 184 |
+
\& license => [\*(Aqhttp://dev.perl.org/licenses/\*(Aq],
|
| 185 |
+
\& },
|
| 186 |
+
\& optional_features => {
|
| 187 |
+
\& domination => {
|
| 188 |
+
\& description => \*(AqTake over the world\*(Aq,
|
| 189 |
+
\& prereqs => {
|
| 190 |
+
\& develop => { requires => { \*(AqGenius::Evil\*(Aq => \*(Aq1.234\*(Aq } },
|
| 191 |
+
\& runtime => { requires => { \*(AqMachine::Weather\*(Aq => \*(Aq2.0\*(Aq } },
|
| 192 |
+
\& },
|
| 193 |
+
\& },
|
| 194 |
+
\& },
|
| 195 |
+
\& dynamic_config => 1,
|
| 196 |
+
\& keywords => [ qw/ toolchain cpan dual\-life / ],
|
| 197 |
+
\& \*(Aqmeta\-spec\*(Aq => {
|
| 198 |
+
\& version => \*(Aq2\*(Aq,
|
| 199 |
+
\& url => \*(Aqhttps://metacpan.org/pod/CPAN::Meta::Spec\*(Aq,
|
| 200 |
+
\& },
|
| 201 |
+
\& generated_by => \*(AqModule::Build version 0.36\*(Aq,
|
| 202 |
+
\& };
|
| 203 |
+
.Ve
|
| 204 |
+
.SH "DESCRIPTION"
|
| 205 |
+
.IX Header "DESCRIPTION"
|
| 206 |
+
This document describes version 2 of the \s-1CPAN\s0 distribution metadata
|
| 207 |
+
specification, also known as the \*(L"\s-1CPAN\s0 Meta Spec\*(R".
|
| 208 |
+
.PP
|
| 209 |
+
Revisions of this specification for typo corrections and prose
|
| 210 |
+
clarifications may be issued as CPAN::Meta::Spec 2.\fIx\fR. These
|
| 211 |
+
revisions will never change semantics or add or remove specified
|
| 212 |
+
behavior.
|
| 213 |
+
.PP
|
| 214 |
+
Distribution metadata describe important properties of Perl
|
| 215 |
+
distributions. Distribution building tools like Module::Build,
|
| 216 |
+
Module::Install, ExtUtils::MakeMaker or Dist::Zilla should create a
|
| 217 |
+
metadata file in accordance with this specification and include it with
|
| 218 |
+
the distribution for use by automated tools that index, examine, package
|
| 219 |
+
or install Perl distributions.
|
| 220 |
+
.SH "TERMINOLOGY"
|
| 221 |
+
.IX Header "TERMINOLOGY"
|
| 222 |
+
.IP "distribution" 4
|
| 223 |
+
.IX Item "distribution"
|
| 224 |
+
This is the primary object described by the metadata. In the context of
|
| 225 |
+
this document it usually refers to a collection of modules, scripts,
|
| 226 |
+
and/or documents that are distributed together for other developers to
|
| 227 |
+
use. Examples of distributions are \f(CW\*(C`Class\-Container\*(C'\fR, \f(CW\*(C`libwww\-perl\*(C'\fR,
|
| 228 |
+
or \f(CW\*(C`DBI\*(C'\fR.
|
| 229 |
+
.IP "module" 4
|
| 230 |
+
.IX Item "module"
|
| 231 |
+
This refers to a reusable library of code contained in a single file.
|
| 232 |
+
Modules usually contain one or more packages and are often referred
|
| 233 |
+
to by the name of a primary package that can be mapped to the file
|
| 234 |
+
name. For example, one might refer to \f(CW\*(C`File::Spec\*(C'\fR instead of
|
| 235 |
+
\&\fIFile/Spec.pm\fR
|
| 236 |
+
.IP "package" 4
|
| 237 |
+
.IX Item "package"
|
| 238 |
+
This refers to a namespace declared with the Perl \f(CW\*(C`package\*(C'\fR statement.
|
| 239 |
+
In Perl, packages often have a version number property given by the
|
| 240 |
+
\&\f(CW$VERSION\fR variable in the namespace.
|
| 241 |
+
.IP "consumer" 4
|
| 242 |
+
.IX Item "consumer"
|
| 243 |
+
This refers to code that reads a metadata file, deserializes it into a
|
| 244 |
+
data structure in memory, or interprets a data structure of metadata
|
| 245 |
+
elements.
|
| 246 |
+
.IP "producer" 4
|
| 247 |
+
.IX Item "producer"
|
| 248 |
+
This refers to code that constructs a metadata data structure,
|
| 249 |
+
serializes into a bytestream and/or writes it to disk.
|
| 250 |
+
.IP "must, should, may, etc." 4
|
| 251 |
+
.IX Item "must, should, may, etc."
|
| 252 |
+
These terms are interpreted as described in \s-1IETF RFC 2119.\s0
|
| 253 |
+
.SH "DATA TYPES"
|
| 254 |
+
.IX Header "DATA TYPES"
|
| 255 |
+
Fields in the \*(L"\s-1STRUCTURE\*(R"\s0 section describe data elements, each of
|
| 256 |
+
which has an associated data type as described herein. There are four
|
| 257 |
+
primitive types: Boolean, String, List and Map. Other types are
|
| 258 |
+
subtypes of primitives and define compound data structures or define
|
| 259 |
+
constraints on the values of a data element.
|
| 260 |
+
.SS "Boolean"
|
| 261 |
+
.IX Subsection "Boolean"
|
| 262 |
+
A \fIBoolean\fR is used to provide a true or false value. It \fBmust\fR be
|
| 263 |
+
represented as a defined value that is either \*(L"1\*(R" or \*(L"0\*(R" or stringifies
|
| 264 |
+
to those values.
|
| 265 |
+
.SS "String"
|
| 266 |
+
.IX Subsection "String"
|
| 267 |
+
A \fIString\fR is data element containing a non-zero length sequence of
|
| 268 |
+
Unicode characters, such as an ordinary Perl scalar that is not a
|
| 269 |
+
reference.
|
| 270 |
+
.SS "List"
|
| 271 |
+
.IX Subsection "List"
|
| 272 |
+
A \fIList\fR is an ordered collection of zero or more data elements.
|
| 273 |
+
Elements of a List may be of mixed types.
|
| 274 |
+
.PP
|
| 275 |
+
Producers \fBmust\fR represent List elements using a data structure which
|
| 276 |
+
unambiguously indicates that multiple values are possible, such as a
|
| 277 |
+
reference to a Perl array (an \*(L"arrayref\*(R").
|
| 278 |
+
.PP
|
| 279 |
+
Consumers expecting a List \fBmust\fR consider a String as equivalent to a
|
| 280 |
+
List of length 1.
|
| 281 |
+
.SS "Map"
|
| 282 |
+
.IX Subsection "Map"
|
| 283 |
+
A \fIMap\fR is an unordered collection of zero or more data elements
|
| 284 |
+
(\*(L"values\*(R"), indexed by associated String elements (\*(L"keys\*(R"). The Map's
|
| 285 |
+
value elements may be of mixed types.
|
| 286 |
+
.SS "License String"
|
| 287 |
+
.IX Subsection "License String"
|
| 288 |
+
A \fILicense String\fR is a subtype of String with a restricted set of
|
| 289 |
+
values. Valid values are described in detail in the description of
|
| 290 |
+
the \*(L"license\*(R" field.
|
| 291 |
+
.SS "\s-1URL\s0"
|
| 292 |
+
.IX Subsection "URL"
|
| 293 |
+
\&\fI\s-1URL\s0\fR is a subtype of String containing a Uniform Resource Locator or
|
| 294 |
+
Identifier. [ This type is called \s-1URL\s0 and not \s-1URI\s0 for historical reasons. ]
|
| 295 |
+
.SS "Version"
|
| 296 |
+
.IX Subsection "Version"
|
| 297 |
+
A \fIVersion\fR is a subtype of String containing a value that describes
|
| 298 |
+
the version number of packages or distributions. Restrictions on format
|
| 299 |
+
are described in detail in the \*(L"Version Formats\*(R" section.
|
| 300 |
+
.SS "Version Range"
|
| 301 |
+
.IX Subsection "Version Range"
|
| 302 |
+
The \fIVersion Range\fR type is a subtype of String. It describes a range
|
| 303 |
+
of Versions that may be present or installed to fulfill prerequisites.
|
| 304 |
+
It is specified in detail in the \*(L"Version Ranges\*(R" section.
|
| 305 |
+
.SH "STRUCTURE"
|
| 306 |
+
.IX Header "STRUCTURE"
|
| 307 |
+
The metadata structure is a data element of type Map. This section
|
| 308 |
+
describes valid keys within the Map.
|
| 309 |
+
.PP
|
| 310 |
+
Any keys not described in this specification document (whether top-level
|
| 311 |
+
or within compound data structures described herein) are considered
|
| 312 |
+
\&\fIcustom keys\fR and \fBmust\fR begin with an \*(L"x\*(R" or \*(L"X\*(R" and be followed by an
|
| 313 |
+
underscore; i.e. they must match the pattern: \f(CW\*(C`qr{\eAx_}i\*(C'\fR. If a
|
| 314 |
+
custom key refers to a compound data structure, subkeys within it do not
|
| 315 |
+
need an \*(L"x_\*(R" or \*(L"X_\*(R" prefix.
|
| 316 |
+
.PP
|
| 317 |
+
Consumers of metadata may ignore any or all custom keys. All other keys
|
| 318 |
+
not described herein are invalid and should be ignored by consumers.
|
| 319 |
+
Producers must not generate or output invalid keys.
|
| 320 |
+
.PP
|
| 321 |
+
For each key, an example is provided followed by a description. The
|
| 322 |
+
description begins with the version of spec in which the key was added
|
| 323 |
+
or in which the definition was modified, whether the key is \fIrequired\fR
|
| 324 |
+
or \fIoptional\fR and the data type of the corresponding data element.
|
| 325 |
+
These items are in parentheses, brackets and braces, respectively.
|
| 326 |
+
.PP
|
| 327 |
+
If a data type is a Map or Map subtype, valid subkeys will be described
|
| 328 |
+
as well.
|
| 329 |
+
.PP
|
| 330 |
+
Some fields are marked \fIDeprecated\fR. These are shown for historical
|
| 331 |
+
context and must not be produced in or consumed from any metadata structure
|
| 332 |
+
of version 2 or higher.
|
| 333 |
+
.SS "\s-1REQUIRED FIELDS\s0"
|
| 334 |
+
.IX Subsection "REQUIRED FIELDS"
|
| 335 |
+
\fIabstract\fR
|
| 336 |
+
.IX Subsection "abstract"
|
| 337 |
+
.PP
|
| 338 |
+
Example:
|
| 339 |
+
.PP
|
| 340 |
+
.Vb 1
|
| 341 |
+
\& abstract => \*(AqBuild and install Perl modules\*(Aq
|
| 342 |
+
.Ve
|
| 343 |
+
.PP
|
| 344 |
+
(Spec 1.2) [required] {String}
|
| 345 |
+
.PP
|
| 346 |
+
This is a short description of the purpose of the distribution.
|
| 347 |
+
.PP
|
| 348 |
+
\fIauthor\fR
|
| 349 |
+
.IX Subsection "author"
|
| 350 |
+
.PP
|
| 351 |
+
Example:
|
| 352 |
+
.PP
|
| 353 |
+
.Vb 1
|
| 354 |
+
\& author => [ \*(AqKen Williams <kwilliams@cpan.org>\*(Aq ]
|
| 355 |
+
.Ve
|
| 356 |
+
.PP
|
| 357 |
+
(Spec 1.2) [required] {List of one or more Strings}
|
| 358 |
+
.PP
|
| 359 |
+
This List indicates the person(s) to contact concerning the
|
| 360 |
+
distribution. The preferred form of the contact string is:
|
| 361 |
+
.PP
|
| 362 |
+
.Vb 1
|
| 363 |
+
\& contact\-name <email\-address>
|
| 364 |
+
.Ve
|
| 365 |
+
.PP
|
| 366 |
+
This field provides a general contact list independent of other
|
| 367 |
+
structured fields provided within the \*(L"resources\*(R" field, such as
|
| 368 |
+
\&\f(CW\*(C`bugtracker\*(C'\fR. The addressee(s) can be contacted for any purpose
|
| 369 |
+
including but not limited to (security) problems with the distribution,
|
| 370 |
+
questions about the distribution or bugs in the distribution.
|
| 371 |
+
.PP
|
| 372 |
+
A distribution's original author is usually the contact listed within
|
| 373 |
+
this field. Co-maintainers, successor maintainers or mailing lists
|
| 374 |
+
devoted to the distribution may also be listed in addition to or instead
|
| 375 |
+
of the original author.
|
| 376 |
+
.PP
|
| 377 |
+
\fIdynamic_config\fR
|
| 378 |
+
.IX Subsection "dynamic_config"
|
| 379 |
+
.PP
|
| 380 |
+
Example:
|
| 381 |
+
.PP
|
| 382 |
+
.Vb 1
|
| 383 |
+
\& dynamic_config => 1
|
| 384 |
+
.Ve
|
| 385 |
+
.PP
|
| 386 |
+
(Spec 2) [required] {Boolean}
|
| 387 |
+
.PP
|
| 388 |
+
A boolean flag indicating whether a \fIBuild.PL\fR or \fIMakefile.PL\fR (or
|
| 389 |
+
similar) must be executed to determine prerequisites.
|
| 390 |
+
.PP
|
| 391 |
+
This field should be set to a true value if the distribution performs
|
| 392 |
+
some dynamic configuration (asking questions, sensing the environment,
|
| 393 |
+
etc.) as part of its configuration. This field should be set to a false
|
| 394 |
+
value to indicate that prerequisites included in metadata may be
|
| 395 |
+
considered final and valid for static analysis.
|
| 396 |
+
.PP
|
| 397 |
+
Note: when this field is true, post-configuration prerequisites are not
|
| 398 |
+
guaranteed to bear any relation whatsoever to those stated in the metadata,
|
| 399 |
+
and relying on them doing so is an error. See also
|
| 400 |
+
\&\*(L"Prerequisites for dynamically configured distributions\*(R" in the implementors'
|
| 401 |
+
notes.
|
| 402 |
+
.PP
|
| 403 |
+
This field explicitly \fBdoes not\fR indicate whether installation may be
|
| 404 |
+
safely performed without using a Makefile or Build file, as there may be
|
| 405 |
+
special files to install or custom installation targets (e.g. for
|
| 406 |
+
dual-life modules that exist on \s-1CPAN\s0 as well as in the Perl core). This
|
| 407 |
+
field only defines whether or not prerequisites are exactly as given in the
|
| 408 |
+
metadata.
|
| 409 |
+
.PP
|
| 410 |
+
\fIgenerated_by\fR
|
| 411 |
+
.IX Subsection "generated_by"
|
| 412 |
+
.PP
|
| 413 |
+
Example:
|
| 414 |
+
.PP
|
| 415 |
+
.Vb 1
|
| 416 |
+
\& generated_by => \*(AqModule::Build version 0.36\*(Aq
|
| 417 |
+
.Ve
|
| 418 |
+
.PP
|
| 419 |
+
(Spec 1.0) [required] {String}
|
| 420 |
+
.PP
|
| 421 |
+
This field indicates the tool that was used to create this metadata.
|
| 422 |
+
There are no defined semantics for this field, but it is traditional to
|
| 423 |
+
use a string in the form \*(L"Generating::Package version 1.23\*(R" or the
|
| 424 |
+
author's name, if the file was generated by hand.
|
| 425 |
+
.PP
|
| 426 |
+
\fIlicense\fR
|
| 427 |
+
.IX Subsection "license"
|
| 428 |
+
.PP
|
| 429 |
+
Example:
|
| 430 |
+
.PP
|
| 431 |
+
.Vb 1
|
| 432 |
+
\& license => [ \*(Aqperl_5\*(Aq ]
|
| 433 |
+
\&
|
| 434 |
+
\& license => [ \*(Aqapache_2_0\*(Aq, \*(Aqmozilla_1_0\*(Aq ]
|
| 435 |
+
.Ve
|
| 436 |
+
.PP
|
| 437 |
+
(Spec 2) [required] {List of one or more License Strings}
|
| 438 |
+
.PP
|
| 439 |
+
One or more licenses that apply to some or all of the files in the
|
| 440 |
+
distribution. If multiple licenses are listed, the distribution
|
| 441 |
+
documentation should be consulted to clarify the interpretation of
|
| 442 |
+
multiple licenses.
|
| 443 |
+
.PP
|
| 444 |
+
The following list of license strings are valid:
|
| 445 |
+
.PP
|
| 446 |
+
.Vb 10
|
| 447 |
+
\& string description
|
| 448 |
+
\& \-\-\-\-\-\-\-\-\-\-\-\-\- \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
|
| 449 |
+
\& agpl_3 GNU Affero General Public License, Version 3
|
| 450 |
+
\& apache_1_1 Apache Software License, Version 1.1
|
| 451 |
+
\& apache_2_0 Apache License, Version 2.0
|
| 452 |
+
\& artistic_1 Artistic License, (Version 1)
|
| 453 |
+
\& artistic_2 Artistic License, Version 2.0
|
| 454 |
+
\& bsd BSD License (three\-clause)
|
| 455 |
+
\& freebsd FreeBSD License (two\-clause)
|
| 456 |
+
\& gfdl_1_2 GNU Free Documentation License, Version 1.2
|
| 457 |
+
\& gfdl_1_3 GNU Free Documentation License, Version 1.3
|
| 458 |
+
\& gpl_1 GNU General Public License, Version 1
|
| 459 |
+
\& gpl_2 GNU General Public License, Version 2
|
| 460 |
+
\& gpl_3 GNU General Public License, Version 3
|
| 461 |
+
\& lgpl_2_1 GNU Lesser General Public License, Version 2.1
|
| 462 |
+
\& lgpl_3_0 GNU Lesser General Public License, Version 3.0
|
| 463 |
+
\& mit MIT (aka X11) License
|
| 464 |
+
\& mozilla_1_0 Mozilla Public License, Version 1.0
|
| 465 |
+
\& mozilla_1_1 Mozilla Public License, Version 1.1
|
| 466 |
+
\& openssl OpenSSL License
|
| 467 |
+
\& perl_5 The Perl 5 License (Artistic 1 & GPL 1 or later)
|
| 468 |
+
\& qpl_1_0 Q Public License, Version 1.0
|
| 469 |
+
\& ssleay Original SSLeay License
|
| 470 |
+
\& sun Sun Internet Standards Source License (SISSL)
|
| 471 |
+
\& zlib zlib License
|
| 472 |
+
.Ve
|
| 473 |
+
.PP
|
| 474 |
+
The following license strings are also valid and indicate other
|
| 475 |
+
licensing not described above:
|
| 476 |
+
.PP
|
| 477 |
+
.Vb 6
|
| 478 |
+
\& string description
|
| 479 |
+
\& \-\-\-\-\-\-\-\-\-\-\-\-\- \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
|
| 480 |
+
\& open_source Other Open Source Initiative (OSI) approved license
|
| 481 |
+
\& restricted Requires special permission from copyright holder
|
| 482 |
+
\& unrestricted Not an OSI approved license, but not restricted
|
| 483 |
+
\& unknown License not provided in metadata
|
| 484 |
+
.Ve
|
| 485 |
+
.PP
|
| 486 |
+
All other strings are invalid in the license field.
|
| 487 |
+
.PP
|
| 488 |
+
\fImeta-spec\fR
|
| 489 |
+
.IX Subsection "meta-spec"
|
| 490 |
+
.PP
|
| 491 |
+
Example:
|
| 492 |
+
.PP
|
| 493 |
+
.Vb 4
|
| 494 |
+
\& \*(Aqmeta\-spec\*(Aq => {
|
| 495 |
+
\& version => \*(Aq2\*(Aq,
|
| 496 |
+
\& url => \*(Aqhttp://search.cpan.org/perldoc?CPAN::Meta::Spec\*(Aq,
|
| 497 |
+
\& }
|
| 498 |
+
.Ve
|
| 499 |
+
.PP
|
| 500 |
+
(Spec 1.2) [required] {Map}
|
| 501 |
+
.PP
|
| 502 |
+
This field indicates the version of the \s-1CPAN\s0 Meta Spec that should be
|
| 503 |
+
used to interpret the metadata. Consumers must check this key as soon
|
| 504 |
+
as possible and abort further metadata processing if the meta-spec
|
| 505 |
+
version is not supported by the consumer.
|
| 506 |
+
.PP
|
| 507 |
+
The following keys are valid, but only \f(CW\*(C`version\*(C'\fR is required.
|
| 508 |
+
.IP "version" 4
|
| 509 |
+
.IX Item "version"
|
| 510 |
+
This subkey gives the integer \fIVersion\fR of the \s-1CPAN\s0 Meta Spec against
|
| 511 |
+
which the document was generated.
|
| 512 |
+
.IP "url" 4
|
| 513 |
+
.IX Item "url"
|
| 514 |
+
This is a \fI\s-1URL\s0\fR of the metadata specification document corresponding to
|
| 515 |
+
the given version. This is strictly for human-consumption and should
|
| 516 |
+
not impact the interpretation of the document.
|
| 517 |
+
.Sp
|
| 518 |
+
For the version 2 spec, either of these are recommended:
|
| 519 |
+
.RS 4
|
| 520 |
+
.IP "\(bu" 4
|
| 521 |
+
\&\f(CW\*(C`https://metacpan.org/pod/CPAN::Meta::Spec\*(C'\fR
|
| 522 |
+
.IP "\(bu" 4
|
| 523 |
+
\&\f(CW\*(C`http://search.cpan.org/perldoc?CPAN::Meta::Spec\*(C'\fR
|
| 524 |
+
.RE
|
| 525 |
+
.RS 4
|
| 526 |
+
.RE
|
| 527 |
+
.PP
|
| 528 |
+
\fIname\fR
|
| 529 |
+
.IX Subsection "name"
|
| 530 |
+
.PP
|
| 531 |
+
Example:
|
| 532 |
+
.PP
|
| 533 |
+
.Vb 1
|
| 534 |
+
\& name => \*(AqModule\-Build\*(Aq
|
| 535 |
+
.Ve
|
| 536 |
+
.PP
|
| 537 |
+
(Spec 1.0) [required] {String}
|
| 538 |
+
.PP
|
| 539 |
+
This field is the name of the distribution. This is often created by
|
| 540 |
+
taking the \*(L"main package\*(R" in the distribution and changing \f(CW\*(C`::\*(C'\fR to
|
| 541 |
+
\&\f(CW\*(C`\-\*(C'\fR, but the name may be completely unrelated to the packages within
|
| 542 |
+
the distribution. For example, LWP::UserAgent is distributed as part
|
| 543 |
+
of the distribution name \*(L"libwww-perl\*(R".
|
| 544 |
+
.PP
|
| 545 |
+
\fIrelease_status\fR
|
| 546 |
+
.IX Subsection "release_status"
|
| 547 |
+
.PP
|
| 548 |
+
Example:
|
| 549 |
+
.PP
|
| 550 |
+
.Vb 1
|
| 551 |
+
\& release_status => \*(Aqstable\*(Aq
|
| 552 |
+
.Ve
|
| 553 |
+
.PP
|
| 554 |
+
(Spec 2) [required] {String}
|
| 555 |
+
.PP
|
| 556 |
+
This field provides the release status of this distribution. If the
|
| 557 |
+
\&\f(CW\*(C`version\*(C'\fR field contains an underscore character, then
|
| 558 |
+
\&\f(CW\*(C`release_status\*(C'\fR \fBmust not\fR be \*(L"stable.\*(R"
|
| 559 |
+
.PP
|
| 560 |
+
The \f(CW\*(C`release_status\*(C'\fR field \fBmust\fR have one of the following values:
|
| 561 |
+
.IP "stable" 4
|
| 562 |
+
.IX Item "stable"
|
| 563 |
+
This indicates an ordinary, \*(L"final\*(R" release that should be indexed by \s-1PAUSE\s0
|
| 564 |
+
or other indexers.
|
| 565 |
+
.IP "testing" 4
|
| 566 |
+
.IX Item "testing"
|
| 567 |
+
This indicates a \*(L"beta\*(R" release that is substantially complete, but has an
|
| 568 |
+
elevated risk of bugs and requires additional testing. The distribution
|
| 569 |
+
should not be installed over a stable release without an explicit request
|
| 570 |
+
or other confirmation from a user. This release status may also be used
|
| 571 |
+
for \*(L"release candidate\*(R" versions of a distribution.
|
| 572 |
+
.IP "unstable" 4
|
| 573 |
+
.IX Item "unstable"
|
| 574 |
+
This indicates an \*(L"alpha\*(R" release that is under active development, but has
|
| 575 |
+
been released for early feedback or testing and may be missing features or
|
| 576 |
+
may have serious bugs. The distribution should not be installed over a
|
| 577 |
+
stable release without an explicit request or other confirmation from a
|
| 578 |
+
user.
|
| 579 |
+
.PP
|
| 580 |
+
Consumers \fBmay\fR use this field to determine how to index the
|
| 581 |
+
distribution for \s-1CPAN\s0 or other repositories in addition to or in
|
| 582 |
+
replacement of heuristics based on version number or file name.
|
| 583 |
+
.PP
|
| 584 |
+
\fIversion\fR
|
| 585 |
+
.IX Subsection "version"
|
| 586 |
+
.PP
|
| 587 |
+
Example:
|
| 588 |
+
.PP
|
| 589 |
+
.Vb 1
|
| 590 |
+
\& version => \*(Aq0.36\*(Aq
|
| 591 |
+
.Ve
|
| 592 |
+
.PP
|
| 593 |
+
(Spec 1.0) [required] {Version}
|
| 594 |
+
.PP
|
| 595 |
+
This field gives the version of the distribution to which the metadata
|
| 596 |
+
structure refers.
|
| 597 |
+
.SS "\s-1OPTIONAL FIELDS\s0"
|
| 598 |
+
.IX Subsection "OPTIONAL FIELDS"
|
| 599 |
+
\fIdescription\fR
|
| 600 |
+
.IX Subsection "description"
|
| 601 |
+
.PP
|
| 602 |
+
Example:
|
| 603 |
+
.PP
|
| 604 |
+
.Vb 3
|
| 605 |
+
\& description => "Module::Build is a system for "
|
| 606 |
+
\& . "building, testing, and installing Perl modules. "
|
| 607 |
+
\& . "It is meant to ... blah blah blah ...",
|
| 608 |
+
.Ve
|
| 609 |
+
.PP
|
| 610 |
+
(Spec 2) [optional] {String}
|
| 611 |
+
.PP
|
| 612 |
+
A longer, more complete description of the purpose or intended use of
|
| 613 |
+
the distribution than the one provided by the \f(CW\*(C`abstract\*(C'\fR key.
|
| 614 |
+
.PP
|
| 615 |
+
\fIkeywords\fR
|
| 616 |
+
.IX Subsection "keywords"
|
| 617 |
+
.PP
|
| 618 |
+
Example:
|
| 619 |
+
.PP
|
| 620 |
+
.Vb 1
|
| 621 |
+
\& keywords => [ qw/ toolchain cpan dual\-life / ]
|
| 622 |
+
.Ve
|
| 623 |
+
.PP
|
| 624 |
+
(Spec 1.1) [optional] {List of zero or more Strings}
|
| 625 |
+
.PP
|
| 626 |
+
A List of keywords that describe this distribution. Keywords
|
| 627 |
+
\&\fBmust not\fR include whitespace.
|
| 628 |
+
.PP
|
| 629 |
+
\fIno_index\fR
|
| 630 |
+
.IX Subsection "no_index"
|
| 631 |
+
.PP
|
| 632 |
+
Example:
|
| 633 |
+
.PP
|
| 634 |
+
.Vb 6
|
| 635 |
+
\& no_index => {
|
| 636 |
+
\& file => [ \*(AqMy/Module.pm\*(Aq ],
|
| 637 |
+
\& directory => [ \*(AqMy/Private\*(Aq ],
|
| 638 |
+
\& package => [ \*(AqMy::Module::Secret\*(Aq ],
|
| 639 |
+
\& namespace => [ \*(AqMy::Module::Sample\*(Aq ],
|
| 640 |
+
\& }
|
| 641 |
+
.Ve
|
| 642 |
+
.PP
|
| 643 |
+
(Spec 1.2) [optional] {Map}
|
| 644 |
+
.PP
|
| 645 |
+
This Map describes any files, directories, packages, and namespaces that
|
| 646 |
+
are private to the packaging or implementation of the distribution and
|
| 647 |
+
should be ignored by indexing or search tools. Note that this is a list of
|
| 648 |
+
exclusions, and the spec does not define what to \fIinclude\fR \- see
|
| 649 |
+
\&\*(L"Indexing distributions a la \s-1PAUSE\*(R"\s0 in the implementors notes for more
|
| 650 |
+
information.
|
| 651 |
+
.PP
|
| 652 |
+
Valid subkeys are as follows:
|
| 653 |
+
.IP "file" 4
|
| 654 |
+
.IX Item "file"
|
| 655 |
+
A \fIList\fR of relative paths to files. Paths \fBmust be\fR specified with
|
| 656 |
+
unix conventions.
|
| 657 |
+
.IP "directory" 4
|
| 658 |
+
.IX Item "directory"
|
| 659 |
+
A \fIList\fR of relative paths to directories. Paths \fBmust be\fR specified
|
| 660 |
+
with unix conventions.
|
| 661 |
+
.Sp
|
| 662 |
+
[ Note: previous editions of the spec had \f(CW\*(C`dir\*(C'\fR instead of \f(CW\*(C`directory\*(C'\fR ]
|
| 663 |
+
.IP "package" 4
|
| 664 |
+
.IX Item "package"
|
| 665 |
+
A \fIList\fR of package names.
|
| 666 |
+
.IP "namespace" 4
|
| 667 |
+
.IX Item "namespace"
|
| 668 |
+
A \fIList\fR of package namespaces, where anything below the namespace
|
| 669 |
+
must be ignored, but \fInot\fR the namespace itself.
|
| 670 |
+
.Sp
|
| 671 |
+
In the example above for \f(CW\*(C`no_index\*(C'\fR, \f(CW\*(C`My::Module::Sample::Foo\*(C'\fR would
|
| 672 |
+
be ignored, but \f(CW\*(C`My::Module::Sample\*(C'\fR would not.
|
| 673 |
+
.PP
|
| 674 |
+
\fIoptional_features\fR
|
| 675 |
+
.IX Subsection "optional_features"
|
| 676 |
+
.PP
|
| 677 |
+
Example:
|
| 678 |
+
.PP
|
| 679 |
+
.Vb 12
|
| 680 |
+
\& optional_features => {
|
| 681 |
+
\& sqlite => {
|
| 682 |
+
\& description => \*(AqProvides SQLite support\*(Aq,
|
| 683 |
+
\& prereqs => {
|
| 684 |
+
\& runtime => {
|
| 685 |
+
\& requires => {
|
| 686 |
+
\& \*(AqDBD::SQLite\*(Aq => \*(Aq1.25\*(Aq
|
| 687 |
+
\& }
|
| 688 |
+
\& }
|
| 689 |
+
\& }
|
| 690 |
+
\& }
|
| 691 |
+
\& }
|
| 692 |
+
.Ve
|
| 693 |
+
.PP
|
| 694 |
+
(Spec 2) [optional] {Map}
|
| 695 |
+
.PP
|
| 696 |
+
This Map describes optional features with incremental prerequisites.
|
| 697 |
+
Each key of the \f(CW\*(C`optional_features\*(C'\fR Map is a String used to identify
|
| 698 |
+
the feature and each value is a Map with additional information about
|
| 699 |
+
the feature. Valid subkeys include:
|
| 700 |
+
.IP "description" 4
|
| 701 |
+
.IX Item "description"
|
| 702 |
+
This is a String describing the feature. Every optional feature
|
| 703 |
+
should provide a description
|
| 704 |
+
.IP "prereqs" 4
|
| 705 |
+
.IX Item "prereqs"
|
| 706 |
+
This entry is required and has the same structure as that of the
|
| 707 |
+
\&\f(CW"prereqs"\fR key. It provides a list of package requirements
|
| 708 |
+
that must be satisfied for the feature to be supported or enabled.
|
| 709 |
+
.Sp
|
| 710 |
+
There is one crucial restriction: the prereqs of an optional feature
|
| 711 |
+
\&\fBmust not\fR include \f(CW\*(C`configure\*(C'\fR phase prereqs.
|
| 712 |
+
.PP
|
| 713 |
+
Consumers \fBmust not\fR include optional features as prerequisites without
|
| 714 |
+
explicit instruction from users (whether via interactive prompting,
|
| 715 |
+
a function parameter or a configuration value, etc. ).
|
| 716 |
+
.PP
|
| 717 |
+
If an optional feature is used by a consumer to add additional
|
| 718 |
+
prerequisites, the consumer should merge the optional feature
|
| 719 |
+
prerequisites into those given by the \f(CW\*(C`prereqs\*(C'\fR key using the same
|
| 720 |
+
semantics. See \*(L"Merging and Resolving Prerequisites\*(R" for details on
|
| 721 |
+
merging prerequisites.
|
| 722 |
+
.PP
|
| 723 |
+
\&\fISuggestion for disuse:\fR Because there is currently no way for a
|
| 724 |
+
distribution to specify a dependency on an optional feature of another
|
| 725 |
+
dependency, the use of \f(CW\*(C`optional_feature\*(C'\fR is discouraged. Instead,
|
| 726 |
+
create a separate, installable distribution that ensures the desired
|
| 727 |
+
feature is available. For example, if \f(CW\*(C`Foo::Bar\*(C'\fR has a \f(CW\*(C`Baz\*(C'\fR feature,
|
| 728 |
+
release a separate \f(CW\*(C`Foo\-Bar\-Baz\*(C'\fR distribution that satisfies
|
| 729 |
+
requirements for the feature.
|
| 730 |
+
.PP
|
| 731 |
+
\fIprereqs\fR
|
| 732 |
+
.IX Subsection "prereqs"
|
| 733 |
+
.PP
|
| 734 |
+
Example:
|
| 735 |
+
.PP
|
| 736 |
+
.Vb 10
|
| 737 |
+
\& prereqs => {
|
| 738 |
+
\& runtime => {
|
| 739 |
+
\& requires => {
|
| 740 |
+
\& \*(Aqperl\*(Aq => \*(Aq5.006\*(Aq,
|
| 741 |
+
\& \*(AqFile::Spec\*(Aq => \*(Aq0.86\*(Aq,
|
| 742 |
+
\& \*(AqJSON\*(Aq => \*(Aq2.16\*(Aq,
|
| 743 |
+
\& },
|
| 744 |
+
\& recommends => {
|
| 745 |
+
\& \*(AqJSON::XS\*(Aq => \*(Aq2.26\*(Aq,
|
| 746 |
+
\& },
|
| 747 |
+
\& suggests => {
|
| 748 |
+
\& \*(AqArchive::Tar\*(Aq => \*(Aq0\*(Aq,
|
| 749 |
+
\& },
|
| 750 |
+
\& },
|
| 751 |
+
\& build => {
|
| 752 |
+
\& requires => {
|
| 753 |
+
\& \*(AqAlien::SDL\*(Aq => \*(Aq1.00\*(Aq,
|
| 754 |
+
\& },
|
| 755 |
+
\& },
|
| 756 |
+
\& test => {
|
| 757 |
+
\& recommends => {
|
| 758 |
+
\& \*(AqTest::Deep\*(Aq => \*(Aq0.10\*(Aq,
|
| 759 |
+
\& },
|
| 760 |
+
\& }
|
| 761 |
+
\& }
|
| 762 |
+
.Ve
|
| 763 |
+
.PP
|
| 764 |
+
(Spec 2) [optional] {Map}
|
| 765 |
+
.PP
|
| 766 |
+
This is a Map that describes all the prerequisites of the distribution.
|
| 767 |
+
The keys are phases of activity, such as \f(CW\*(C`configure\*(C'\fR, \f(CW\*(C`build\*(C'\fR, \f(CW\*(C`test\*(C'\fR
|
| 768 |
+
or \f(CW\*(C`runtime\*(C'\fR. Values are Maps in which the keys name the type of
|
| 769 |
+
prerequisite relationship such as \f(CW\*(C`requires\*(C'\fR, \f(CW\*(C`recommends\*(C'\fR, or
|
| 770 |
+
\&\f(CW\*(C`suggests\*(C'\fR and the value provides a set of prerequisite relations. The
|
| 771 |
+
set of relations \fBmust\fR be specified as a Map of package names to
|
| 772 |
+
version ranges.
|
| 773 |
+
.PP
|
| 774 |
+
The full definition for this field is given in the \*(L"Prereq Spec\*(R"
|
| 775 |
+
section.
|
| 776 |
+
.PP
|
| 777 |
+
\fIprovides\fR
|
| 778 |
+
.IX Subsection "provides"
|
| 779 |
+
.PP
|
| 780 |
+
Example:
|
| 781 |
+
.PP
|
| 782 |
+
.Vb 10
|
| 783 |
+
\& provides => {
|
| 784 |
+
\& \*(AqFoo::Bar\*(Aq => {
|
| 785 |
+
\& file => \*(Aqlib/Foo/Bar.pm\*(Aq,
|
| 786 |
+
\& version => \*(Aq0.27_02\*(Aq,
|
| 787 |
+
\& },
|
| 788 |
+
\& \*(AqFoo::Bar::Blah\*(Aq => {
|
| 789 |
+
\& file => \*(Aqlib/Foo/Bar/Blah.pm\*(Aq,
|
| 790 |
+
\& },
|
| 791 |
+
\& \*(AqFoo::Bar::Baz\*(Aq => {
|
| 792 |
+
\& file => \*(Aqlib/Foo/Bar/Baz.pm\*(Aq,
|
| 793 |
+
\& version => \*(Aq0.3\*(Aq,
|
| 794 |
+
\& },
|
| 795 |
+
\& }
|
| 796 |
+
.Ve
|
| 797 |
+
.PP
|
| 798 |
+
(Spec 1.2) [optional] {Map}
|
| 799 |
+
.PP
|
| 800 |
+
This describes all packages provided by this distribution. This
|
| 801 |
+
information is used by distribution and automation mechanisms like
|
| 802 |
+
\&\s-1PAUSE, CPAN,\s0 metacpan.org and search.cpan.org to build indexes saying in
|
| 803 |
+
which distribution various packages can be found.
|
| 804 |
+
.PP
|
| 805 |
+
The keys of \f(CW\*(C`provides\*(C'\fR are package names that can be found within
|
| 806 |
+
the distribution. If a package name key is provided, it must
|
| 807 |
+
have a Map with the following valid subkeys:
|
| 808 |
+
.IP "file" 4
|
| 809 |
+
.IX Item "file"
|
| 810 |
+
This field is required. It must contain a Unix-style relative file path
|
| 811 |
+
from the root of the distribution directory to a file that contains or
|
| 812 |
+
generates the package. It may be given as \f(CW\*(C`META.yml\*(C'\fR or \f(CW\*(C`META.json\*(C'\fR
|
| 813 |
+
to claim a package for indexing without needing a \f(CW\*(C`*.pm\*(C'\fR.
|
| 814 |
+
.IP "version" 4
|
| 815 |
+
.IX Item "version"
|
| 816 |
+
If it exists, this field must contains a \fIVersion\fR String for the
|
| 817 |
+
package. If the package does not have a \f(CW$VERSION\fR, this field must
|
| 818 |
+
be omitted.
|
| 819 |
+
.PP
|
| 820 |
+
\fIresources\fR
|
| 821 |
+
.IX Subsection "resources"
|
| 822 |
+
.PP
|
| 823 |
+
Example:
|
| 824 |
+
.PP
|
| 825 |
+
.Vb 10
|
| 826 |
+
\& resources => {
|
| 827 |
+
\& license => [ \*(Aqhttp://dev.perl.org/licenses/\*(Aq ],
|
| 828 |
+
\& homepage => \*(Aqhttp://sourceforge.net/projects/module\-build\*(Aq,
|
| 829 |
+
\& bugtracker => {
|
| 830 |
+
\& web => \*(Aqhttp://rt.cpan.org/Public/Dist/Display.html?Name=CPAN\-Meta\*(Aq,
|
| 831 |
+
\& mailto => \*(Aqmeta\-bugs@example.com\*(Aq,
|
| 832 |
+
\& },
|
| 833 |
+
\& repository => {
|
| 834 |
+
\& url => \*(Aqgit://github.com/dagolden/cpan\-meta.git\*(Aq,
|
| 835 |
+
\& web => \*(Aqhttp://github.com/dagolden/cpan\-meta\*(Aq,
|
| 836 |
+
\& type => \*(Aqgit\*(Aq,
|
| 837 |
+
\& },
|
| 838 |
+
\& x_twitter => \*(Aqhttp://twitter.com/cpan_linked/\*(Aq,
|
| 839 |
+
\& }
|
| 840 |
+
.Ve
|
| 841 |
+
.PP
|
| 842 |
+
(Spec 2) [optional] {Map}
|
| 843 |
+
.PP
|
| 844 |
+
This field describes resources related to this distribution.
|
| 845 |
+
.PP
|
| 846 |
+
Valid subkeys include:
|
| 847 |
+
.IP "homepage" 4
|
| 848 |
+
.IX Item "homepage"
|
| 849 |
+
The official home of this project on the web.
|
| 850 |
+
.IP "license" 4
|
| 851 |
+
.IX Item "license"
|
| 852 |
+
A List of \fI\s-1URL\s0\fR's that relate to this distribution's license. As with the
|
| 853 |
+
top-level \f(CW\*(C`license\*(C'\fR field, distribution documentation should be consulted
|
| 854 |
+
to clarify the interpretation of multiple licenses provided here.
|
| 855 |
+
.IP "bugtracker" 4
|
| 856 |
+
.IX Item "bugtracker"
|
| 857 |
+
This entry describes the bug tracking system for this distribution. It
|
| 858 |
+
is a Map with the following valid keys:
|
| 859 |
+
.Sp
|
| 860 |
+
.Vb 2
|
| 861 |
+
\& web \- a URL pointing to a web front\-end for the bug tracker
|
| 862 |
+
\& mailto \- an email address to which bugs can be sent
|
| 863 |
+
.Ve
|
| 864 |
+
.IP "repository" 4
|
| 865 |
+
.IX Item "repository"
|
| 866 |
+
This entry describes the source control repository for this distribution. It
|
| 867 |
+
is a Map with the following valid keys:
|
| 868 |
+
.Sp
|
| 869 |
+
.Vb 3
|
| 870 |
+
\& url \- a URL pointing to the repository itself
|
| 871 |
+
\& web \- a URL pointing to a web front\-end for the repository
|
| 872 |
+
\& type \- a lowercase string indicating the VCS used
|
| 873 |
+
.Ve
|
| 874 |
+
.Sp
|
| 875 |
+
Because a url like \f(CW\*(C`http://myrepo.example.com/\*(C'\fR is ambiguous as to
|
| 876 |
+
type, producers should provide a \f(CW\*(C`type\*(C'\fR whenever a \f(CW\*(C`url\*(C'\fR key is given.
|
| 877 |
+
The \f(CW\*(C`type\*(C'\fR field should be the name of the most common program used
|
| 878 |
+
to work with the repository, e.g. \f(CW\*(C`git\*(C'\fR, \f(CW\*(C`svn\*(C'\fR, \f(CW\*(C`cvs\*(C'\fR, \f(CW\*(C`darcs\*(C'\fR,
|
| 879 |
+
\&\f(CW\*(C`bzr\*(C'\fR or \f(CW\*(C`hg\*(C'\fR.
|
| 880 |
+
.SS "\s-1DEPRECATED FIELDS\s0"
|
| 881 |
+
.IX Subsection "DEPRECATED FIELDS"
|
| 882 |
+
\fIbuild_requires\fR
|
| 883 |
+
.IX Subsection "build_requires"
|
| 884 |
+
.PP
|
| 885 |
+
\&\fI(Deprecated in Spec 2)\fR [optional] {String}
|
| 886 |
+
.PP
|
| 887 |
+
Replaced by \f(CW\*(C`prereqs\*(C'\fR
|
| 888 |
+
.PP
|
| 889 |
+
\fIconfigure_requires\fR
|
| 890 |
+
.IX Subsection "configure_requires"
|
| 891 |
+
.PP
|
| 892 |
+
\&\fI(Deprecated in Spec 2)\fR [optional] {String}
|
| 893 |
+
.PP
|
| 894 |
+
Replaced by \f(CW\*(C`prereqs\*(C'\fR
|
| 895 |
+
.PP
|
| 896 |
+
\fIconflicts\fR
|
| 897 |
+
.IX Subsection "conflicts"
|
| 898 |
+
.PP
|
| 899 |
+
\&\fI(Deprecated in Spec 2)\fR [optional] {String}
|
| 900 |
+
.PP
|
| 901 |
+
Replaced by \f(CW\*(C`prereqs\*(C'\fR
|
| 902 |
+
.PP
|
| 903 |
+
\fIdistribution_type\fR
|
| 904 |
+
.IX Subsection "distribution_type"
|
| 905 |
+
.PP
|
| 906 |
+
\&\fI(Deprecated in Spec 2)\fR [optional] {String}
|
| 907 |
+
.PP
|
| 908 |
+
This field indicated 'module' or 'script' but was considered
|
| 909 |
+
meaningless, since many distributions are hybrids of several kinds of
|
| 910 |
+
things.
|
| 911 |
+
.PP
|
| 912 |
+
\fIlicense_uri\fR
|
| 913 |
+
.IX Subsection "license_uri"
|
| 914 |
+
.PP
|
| 915 |
+
\&\fI(Deprecated in Spec 1.2)\fR [optional] {\s-1URL\s0}
|
| 916 |
+
.PP
|
| 917 |
+
Replaced by \f(CW\*(C`license\*(C'\fR in \f(CW\*(C`resources\*(C'\fR
|
| 918 |
+
.PP
|
| 919 |
+
\fIprivate\fR
|
| 920 |
+
.IX Subsection "private"
|
| 921 |
+
.PP
|
| 922 |
+
\&\fI(Deprecated in Spec 1.2)\fR [optional] {Map}
|
| 923 |
+
.PP
|
| 924 |
+
This field has been renamed to \*(L"no_index\*(R".
|
| 925 |
+
.PP
|
| 926 |
+
\fIrecommends\fR
|
| 927 |
+
.IX Subsection "recommends"
|
| 928 |
+
.PP
|
| 929 |
+
\&\fI(Deprecated in Spec 2)\fR [optional] {String}
|
| 930 |
+
.PP
|
| 931 |
+
Replaced by \f(CW\*(C`prereqs\*(C'\fR
|
| 932 |
+
.PP
|
| 933 |
+
\fIrequires\fR
|
| 934 |
+
.IX Subsection "requires"
|
| 935 |
+
.PP
|
| 936 |
+
\&\fI(Deprecated in Spec 2)\fR [optional] {String}
|
| 937 |
+
.PP
|
| 938 |
+
Replaced by \f(CW\*(C`prereqs\*(C'\fR
|
| 939 |
+
.SH "VERSION NUMBERS"
|
| 940 |
+
.IX Header "VERSION NUMBERS"
|
| 941 |
+
.SS "Version Formats"
|
| 942 |
+
.IX Subsection "Version Formats"
|
| 943 |
+
This section defines the Version type, used by several fields in the
|
| 944 |
+
\&\s-1CPAN\s0 Meta Spec.
|
| 945 |
+
.PP
|
| 946 |
+
Version numbers must be treated as strings, not numbers. For
|
| 947 |
+
example, \f(CW1.200\fR \fBmust not\fR be serialized as \f(CW1.2\fR. Version
|
| 948 |
+
comparison should be delegated to the Perl version module, version
|
| 949 |
+
0.80 or newer.
|
| 950 |
+
.PP
|
| 951 |
+
Unless otherwise specified, version numbers \fBmust\fR appear in one of two
|
| 952 |
+
formats:
|
| 953 |
+
.IP "Decimal versions" 4
|
| 954 |
+
.IX Item "Decimal versions"
|
| 955 |
+
Decimal versions are regular \*(L"decimal numbers\*(R", with some limitations.
|
| 956 |
+
They \fBmust\fR be non-negative and \fBmust\fR begin and end with a digit. A
|
| 957 |
+
single underscore \fBmay\fR be included, but \fBmust\fR be between two digits.
|
| 958 |
+
They \fBmust not\fR use exponential notation (\*(L"1.23e\-2\*(R").
|
| 959 |
+
.Sp
|
| 960 |
+
.Vb 2
|
| 961 |
+
\& version => \*(Aq1.234\*(Aq # OK
|
| 962 |
+
\& version => \*(Aq1.23_04\*(Aq # OK
|
| 963 |
+
\&
|
| 964 |
+
\& version => \*(Aq1.23_04_05\*(Aq # Illegal
|
| 965 |
+
\& version => \*(Aq1.\*(Aq # Illegal
|
| 966 |
+
\& version => \*(Aq.1\*(Aq # Illegal
|
| 967 |
+
.Ve
|
| 968 |
+
.IP "Dotted-integer versions" 4
|
| 969 |
+
.IX Item "Dotted-integer versions"
|
| 970 |
+
Dotted-integer (also known as dotted-decimal) versions consist of
|
| 971 |
+
positive integers separated by full stop characters (i.e. \*(L"dots\*(R",
|
| 972 |
+
\&\*(L"periods\*(R" or \*(L"decimal points\*(R"). This are equivalent in format to Perl
|
| 973 |
+
\&\*(L"v\-strings\*(R", with some additional restrictions on form. They must be
|
| 974 |
+
given in \*(L"normal\*(R" form, which has a leading \*(L"v\*(R" character and at least
|
| 975 |
+
three integer components. To retain a one-to-one mapping with decimal
|
| 976 |
+
versions, all components after the first \fBshould\fR be restricted to the
|
| 977 |
+
range 0 to 999. The final component \fBmay\fR be separated by an
|
| 978 |
+
underscore character instead of a period.
|
| 979 |
+
.Sp
|
| 980 |
+
.Vb 5
|
| 981 |
+
\& version => \*(Aqv1.2.3\*(Aq # OK
|
| 982 |
+
\& version => \*(Aqv1.2_3\*(Aq # OK
|
| 983 |
+
\& version => \*(Aqv1.2.3.4\*(Aq # OK
|
| 984 |
+
\& version => \*(Aqv1.2.3_4\*(Aq # OK
|
| 985 |
+
\& version => \*(Aqv2009.10.31\*(Aq # OK
|
| 986 |
+
\&
|
| 987 |
+
\& version => \*(Aqv1.2\*(Aq # Illegal
|
| 988 |
+
\& version => \*(Aq1.2.3\*(Aq # Illegal
|
| 989 |
+
\& version => \*(Aqv1.2_3_4\*(Aq # Illegal
|
| 990 |
+
\& version => \*(Aqv1.2009.10.31\*(Aq # Not recommended
|
| 991 |
+
.Ve
|
| 992 |
+
.SS "Version Ranges"
|
| 993 |
+
.IX Subsection "Version Ranges"
|
| 994 |
+
Some fields (prereq, optional_features) indicate the particular
|
| 995 |
+
version(s) of some other module that may be required as a prerequisite.
|
| 996 |
+
This section details the Version Range type used to provide this
|
| 997 |
+
information.
|
| 998 |
+
.PP
|
| 999 |
+
The simplest format for a Version Range is just the version
|
| 1000 |
+
number itself, e.g. \f(CW2.4\fR. This means that \fBat least\fR version 2.4
|
| 1001 |
+
must be present. To indicate that \fBany\fR version of a prerequisite is
|
| 1002 |
+
okay, even if the prerequisite doesn't define a version at all, use
|
| 1003 |
+
the version \f(CW0\fR.
|
| 1004 |
+
.PP
|
| 1005 |
+
Alternatively, a version range \fBmay\fR use the operators < (less than),
|
| 1006 |
+
<= (less than or equal), > (greater than), >= (greater than
|
| 1007 |
+
or equal), == (equal), and != (not equal). For example, the
|
| 1008 |
+
specification \f(CW\*(C`< 2.0\*(C'\fR means that any version of the prerequisite
|
| 1009 |
+
less than 2.0 is suitable.
|
| 1010 |
+
.PP
|
| 1011 |
+
For more complicated situations, version specifications \fBmay\fR be AND-ed
|
| 1012 |
+
together using commas. The specification \f(CW\*(C`>= 1.2, != 1.5, <
|
| 1013 |
+
2.0\*(C'\fR indicates a version that must be \fBat least\fR 1.2, \fBless than\fR 2.0,
|
| 1014 |
+
and \fBnot equal to\fR 1.5.
|
| 1015 |
+
.SH "PREREQUISITES"
|
| 1016 |
+
.IX Header "PREREQUISITES"
|
| 1017 |
+
.SS "Prereq Spec"
|
| 1018 |
+
.IX Subsection "Prereq Spec"
|
| 1019 |
+
The \f(CW\*(C`prereqs\*(C'\fR key in the top-level metadata and within
|
| 1020 |
+
\&\f(CW\*(C`optional_features\*(C'\fR define the relationship between a distribution and
|
| 1021 |
+
other packages. The prereq spec structure is a hierarchical data
|
| 1022 |
+
structure which divides prerequisites into \fIPhases\fR of activity in the
|
| 1023 |
+
installation process and \fIRelationships\fR that indicate how
|
| 1024 |
+
prerequisites should be resolved.
|
| 1025 |
+
.PP
|
| 1026 |
+
For example, to specify that \f(CW\*(C`Data::Dumper\*(C'\fR is \f(CW\*(C`required\*(C'\fR during the
|
| 1027 |
+
\&\f(CW\*(C`test\*(C'\fR phase, this entry would appear in the distribution metadata:
|
| 1028 |
+
.PP
|
| 1029 |
+
.Vb 7
|
| 1030 |
+
\& prereqs => {
|
| 1031 |
+
\& test => {
|
| 1032 |
+
\& requires => {
|
| 1033 |
+
\& \*(AqData::Dumper\*(Aq => \*(Aq2.00\*(Aq
|
| 1034 |
+
\& }
|
| 1035 |
+
\& }
|
| 1036 |
+
\& }
|
| 1037 |
+
.Ve
|
| 1038 |
+
.PP
|
| 1039 |
+
\fIPhases\fR
|
| 1040 |
+
.IX Subsection "Phases"
|
| 1041 |
+
.PP
|
| 1042 |
+
Requirements for regular use must be listed in the \f(CW\*(C`runtime\*(C'\fR phase.
|
| 1043 |
+
Other requirements should be listed in the earliest stage in which they
|
| 1044 |
+
are required and consumers must accumulate and satisfy requirements
|
| 1045 |
+
across phases before executing the activity. For example, \f(CW\*(C`build\*(C'\fR
|
| 1046 |
+
requirements must also be available during the \f(CW\*(C`test\*(C'\fR phase.
|
| 1047 |
+
.PP
|
| 1048 |
+
.Vb 4
|
| 1049 |
+
\& before action requirements that must be met
|
| 1050 |
+
\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
|
| 1051 |
+
\& perl Build.PL configure
|
| 1052 |
+
\& perl Makefile.PL
|
| 1053 |
+
\&
|
| 1054 |
+
\& make configure, runtime, build
|
| 1055 |
+
\& Build
|
| 1056 |
+
\&
|
| 1057 |
+
\& make test configure, runtime, build, test
|
| 1058 |
+
\& Build test
|
| 1059 |
+
.Ve
|
| 1060 |
+
.PP
|
| 1061 |
+
Consumers that install the distribution must ensure that
|
| 1062 |
+
\&\fIruntime\fR requirements are also installed and may install
|
| 1063 |
+
dependencies from other phases.
|
| 1064 |
+
.PP
|
| 1065 |
+
.Vb 4
|
| 1066 |
+
\& after action requirements that must be met
|
| 1067 |
+
\& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
|
| 1068 |
+
\& make install runtime
|
| 1069 |
+
\& Build install
|
| 1070 |
+
.Ve
|
| 1071 |
+
.IP "configure" 4
|
| 1072 |
+
.IX Item "configure"
|
| 1073 |
+
The configure phase occurs before any dynamic configuration has been
|
| 1074 |
+
attempted. Libraries required by the configure phase \fBmust\fR be
|
| 1075 |
+
available for use before the distribution building tool has been
|
| 1076 |
+
executed.
|
| 1077 |
+
.IP "build" 4
|
| 1078 |
+
.IX Item "build"
|
| 1079 |
+
The build phase is when the distribution's source code is compiled (if
|
| 1080 |
+
necessary) and otherwise made ready for installation.
|
| 1081 |
+
.IP "test" 4
|
| 1082 |
+
.IX Item "test"
|
| 1083 |
+
The test phase is when the distribution's automated test suite is run.
|
| 1084 |
+
Any library that is needed only for testing and not for subsequent use
|
| 1085 |
+
should be listed here.
|
| 1086 |
+
.IP "runtime" 4
|
| 1087 |
+
.IX Item "runtime"
|
| 1088 |
+
The runtime phase refers not only to when the distribution's contents
|
| 1089 |
+
are installed, but also to its continued use. Any library that is a
|
| 1090 |
+
prerequisite for regular use of this distribution should be indicated
|
| 1091 |
+
here.
|
| 1092 |
+
.IP "develop" 4
|
| 1093 |
+
.IX Item "develop"
|
| 1094 |
+
The develop phase's prereqs are libraries needed to work on the
|
| 1095 |
+
distribution's source code as its author does. These tools might be
|
| 1096 |
+
needed to build a release tarball, to run author-only tests, or to
|
| 1097 |
+
perform other tasks related to developing new versions of the
|
| 1098 |
+
distribution.
|
| 1099 |
+
.PP
|
| 1100 |
+
\fIRelationships\fR
|
| 1101 |
+
.IX Subsection "Relationships"
|
| 1102 |
+
.IP "requires" 4
|
| 1103 |
+
.IX Item "requires"
|
| 1104 |
+
These dependencies \fBmust\fR be installed for proper completion of the
|
| 1105 |
+
phase.
|
| 1106 |
+
.IP "recommends" 4
|
| 1107 |
+
.IX Item "recommends"
|
| 1108 |
+
Recommended dependencies are \fIstrongly\fR encouraged and should be
|
| 1109 |
+
satisfied except in resource constrained environments.
|
| 1110 |
+
.IP "suggests" 4
|
| 1111 |
+
.IX Item "suggests"
|
| 1112 |
+
These dependencies are optional, but are suggested for enhanced operation
|
| 1113 |
+
of the described distribution.
|
| 1114 |
+
.IP "conflicts" 4
|
| 1115 |
+
.IX Item "conflicts"
|
| 1116 |
+
These libraries cannot be installed when the phase is in operation.
|
| 1117 |
+
This is a very rare situation, and the \f(CW\*(C`conflicts\*(C'\fR relationship should
|
| 1118 |
+
be used with great caution, or not at all.
|
| 1119 |
+
.SS "Merging and Resolving Prerequisites"
|
| 1120 |
+
.IX Subsection "Merging and Resolving Prerequisites"
|
| 1121 |
+
Whenever metadata consumers merge prerequisites, either from different
|
| 1122 |
+
phases or from \f(CW\*(C`optional_features\*(C'\fR, they should merged in a way which
|
| 1123 |
+
preserves the intended semantics of the prerequisite structure. Generally,
|
| 1124 |
+
this means concatenating the version specifications using commas, as
|
| 1125 |
+
described in the \*(L"Version Ranges\*(R" section.
|
| 1126 |
+
.PP
|
| 1127 |
+
Another subtle error that can occur in resolving prerequisites comes from
|
| 1128 |
+
the way that modules in prerequisites are indexed to distribution files on
|
| 1129 |
+
\&\s-1CPAN.\s0 When a module is deleted from a distribution, prerequisites calling
|
| 1130 |
+
for that module could indicate an older distribution should be installed,
|
| 1131 |
+
potentially overwriting files from a newer distribution.
|
| 1132 |
+
.PP
|
| 1133 |
+
For example, as of Oct 31, 2009, the \s-1CPAN\s0 index file contained these
|
| 1134 |
+
module-distribution mappings:
|
| 1135 |
+
.PP
|
| 1136 |
+
.Vb 3
|
| 1137 |
+
\& Class::MOP 0.94 D/DR/DROLSKY/Class\-MOP\-0.94.tar.gz
|
| 1138 |
+
\& Class::MOP::Class 0.94 D/DR/DROLSKY/Class\-MOP\-0.94.tar.gz
|
| 1139 |
+
\& Class::MOP::Class::Immutable 0.04 S/ST/STEVAN/Class\-MOP\-0.36.tar.gz
|
| 1140 |
+
.Ve
|
| 1141 |
+
.PP
|
| 1142 |
+
Consider the case where \*(L"Class::MOP\*(R" 0.94 is installed. If a
|
| 1143 |
+
distribution specified \*(L"Class::MOP::Class::Immutable\*(R" as a prerequisite,
|
| 1144 |
+
it could result in Class\-MOP\-0.36.tar.gz being installed, overwriting
|
| 1145 |
+
any files from Class\-MOP\-0.94.tar.gz.
|
| 1146 |
+
.PP
|
| 1147 |
+
Consumers of metadata \fBshould\fR test whether prerequisites would result
|
| 1148 |
+
in installed module files being \*(L"downgraded\*(R" to an older version and
|
| 1149 |
+
\&\fBmay\fR warn users or ignore the prerequisite that would cause such a
|
| 1150 |
+
result.
|
| 1151 |
+
.SH "SERIALIZATION"
|
| 1152 |
+
.IX Header "SERIALIZATION"
|
| 1153 |
+
Distribution metadata should be serialized (as a hashref) as
|
| 1154 |
+
JSON-encoded data and packaged with distributions as the file
|
| 1155 |
+
\&\fI\s-1META\s0.json\fR.
|
| 1156 |
+
.PP
|
| 1157 |
+
In the past, the distribution metadata structure had been packed with
|
| 1158 |
+
distributions as \fI\s-1META\s0.yml\fR, a file in the \s-1YAML\s0 Tiny format (for which,
|
| 1159 |
+
see YAML::Tiny). Tools that consume distribution metadata from disk
|
| 1160 |
+
should be capable of loading \fI\s-1META\s0.yml\fR, but should prefer \fI\s-1META\s0.json\fR
|
| 1161 |
+
if both are found.
|
| 1162 |
+
.SH "NOTES FOR IMPLEMENTORS"
|
| 1163 |
+
.IX Header "NOTES FOR IMPLEMENTORS"
|
| 1164 |
+
.SS "Extracting Version Numbers from Perl Modules"
|
| 1165 |
+
.IX Subsection "Extracting Version Numbers from Perl Modules"
|
| 1166 |
+
To get the version number from a Perl module, consumers should use the
|
| 1167 |
+
\&\f(CW\*(C`MM\->parse_version($file)\*(C'\fR method provided by
|
| 1168 |
+
ExtUtils::MakeMaker or Module::Metadata. For example, for the
|
| 1169 |
+
module given by \f(CW$mod\fR, the version may be retrieved in one of the
|
| 1170 |
+
following ways:
|
| 1171 |
+
.PP
|
| 1172 |
+
.Vb 3
|
| 1173 |
+
\& # via ExtUtils::MakeMaker
|
| 1174 |
+
\& my $file = MM\->_installed_file_for_module($mod);
|
| 1175 |
+
\& my $version = MM\->parse_version($file)
|
| 1176 |
+
.Ve
|
| 1177 |
+
.PP
|
| 1178 |
+
The private \f(CW\*(C`_installed_file_for_module\*(C'\fR method may be replaced with
|
| 1179 |
+
other methods for locating a module in \f(CW@INC\fR.
|
| 1180 |
+
.PP
|
| 1181 |
+
.Vb 3
|
| 1182 |
+
\& # via Module::Metadata
|
| 1183 |
+
\& my $info = Module::Metadata\->new_from_module($mod);
|
| 1184 |
+
\& my $version = $info\->version;
|
| 1185 |
+
.Ve
|
| 1186 |
+
.PP
|
| 1187 |
+
If only a filename is available, the following approach may be used:
|
| 1188 |
+
.PP
|
| 1189 |
+
.Vb 3
|
| 1190 |
+
\& # via Module::Build
|
| 1191 |
+
\& my $info = Module::Metadata\->new_from_file($file);
|
| 1192 |
+
\& my $version = $info\->version;
|
| 1193 |
+
.Ve
|
| 1194 |
+
.SS "Comparing Version Numbers"
|
| 1195 |
+
.IX Subsection "Comparing Version Numbers"
|
| 1196 |
+
The version module provides the most reliable way to compare version
|
| 1197 |
+
numbers in all the various ways they might be provided or might exist
|
| 1198 |
+
within modules. Given two strings containing version numbers, \f(CW$v1\fR and
|
| 1199 |
+
\&\f(CW$v2\fR, they should be converted to \f(CW\*(C`version\*(C'\fR objects before using
|
| 1200 |
+
ordinary comparison operators. For example:
|
| 1201 |
+
.PP
|
| 1202 |
+
.Vb 4
|
| 1203 |
+
\& use version;
|
| 1204 |
+
\& if ( version\->new($v1) <=> version\->new($v2) ) {
|
| 1205 |
+
\& print "Versions are not equal\en";
|
| 1206 |
+
\& }
|
| 1207 |
+
.Ve
|
| 1208 |
+
.PP
|
| 1209 |
+
If the only comparison needed is whether an installed module is of a
|
| 1210 |
+
sufficiently high version, a direct test may be done using the string
|
| 1211 |
+
form of \f(CW\*(C`eval\*(C'\fR and the \f(CW\*(C`use\*(C'\fR function. For example, for module \f(CW$mod\fR
|
| 1212 |
+
and version prerequisite \f(CW$prereq\fR:
|
| 1213 |
+
.PP
|
| 1214 |
+
.Vb 3
|
| 1215 |
+
\& if ( eval "use $mod $prereq (); 1" ) {
|
| 1216 |
+
\& print "Module $mod version is OK.\en";
|
| 1217 |
+
\& }
|
| 1218 |
+
.Ve
|
| 1219 |
+
.PP
|
| 1220 |
+
If the values of \f(CW$mod\fR and \f(CW$prereq\fR have not been scrubbed, however,
|
| 1221 |
+
this presents security implications.
|
| 1222 |
+
.SS "Prerequisites for dynamically configured distributions"
|
| 1223 |
+
.IX Subsection "Prerequisites for dynamically configured distributions"
|
| 1224 |
+
When \f(CW\*(C`dynamic_config\*(C'\fR is true, it is an error to presume that the
|
| 1225 |
+
prerequisites given in distribution metadata will have any relationship
|
| 1226 |
+
whatsoever to the actual prerequisites of the distribution.
|
| 1227 |
+
.PP
|
| 1228 |
+
In practice, however, one can generally expect such prerequisites to be
|
| 1229 |
+
one of two things:
|
| 1230 |
+
.IP "\(bu" 4
|
| 1231 |
+
The minimum prerequisites for the distribution, to which dynamic configuration will only add items
|
| 1232 |
+
.IP "\(bu" 4
|
| 1233 |
+
Whatever the distribution configured with on the releaser's machine at release time
|
| 1234 |
+
.PP
|
| 1235 |
+
The second case often turns out to have identical results to the first case,
|
| 1236 |
+
albeit only by accident.
|
| 1237 |
+
.PP
|
| 1238 |
+
As such, consumers may use this data for informational analysis, but
|
| 1239 |
+
presenting it to the user as canonical or relying on it as such is
|
| 1240 |
+
invariably the height of folly.
|
| 1241 |
+
.SS "Indexing distributions a la \s-1PAUSE\s0"
|
| 1242 |
+
.IX Subsection "Indexing distributions a la PAUSE"
|
| 1243 |
+
While no_index tells you what must be ignored when indexing, this spec holds
|
| 1244 |
+
no opinion on how you should get your initial candidate list of things to
|
| 1245 |
+
possibly index. For \*(L"normal\*(R" distributions you might consider simply indexing
|
| 1246 |
+
the contents of lib/, but there are many fascinating oddities on \s-1CPAN\s0 and
|
| 1247 |
+
many dists from the days when it was normal to put the main .pm file in the
|
| 1248 |
+
root of the distribution archive \- so \s-1PAUSE\s0 currently indexes all .pm and .PL
|
| 1249 |
+
files that are not either (a) specifically excluded by no_index (b) in
|
| 1250 |
+
\&\f(CW\*(C`inc\*(C'\fR, \f(CW\*(C`xt\*(C'\fR, or \f(CW\*(C`t\*(C'\fR directories, or common 'mistake' directories such as
|
| 1251 |
+
\&\f(CW\*(C`perl5\*(C'\fR.
|
| 1252 |
+
.PP
|
| 1253 |
+
Or: If you're trying to be PAUSE-like, make sure you skip \f(CW\*(C`inc\*(C'\fR, \f(CW\*(C`xt\*(C'\fR and
|
| 1254 |
+
\&\f(CW\*(C`t\*(C'\fR as well as anything marked as no_index.
|
| 1255 |
+
.PP
|
| 1256 |
+
Also remember: If the \s-1META\s0 file contains a provides field, you shouldn't be
|
| 1257 |
+
indexing anything in the first place \- just use that.
|
| 1258 |
+
.SH "SEE ALSO"
|
| 1259 |
+
.IX Header "SEE ALSO"
|
| 1260 |
+
.IP "\(bu" 4
|
| 1261 |
+
\&\s-1CPAN,\s0 <http://www.cpan.org/>
|
| 1262 |
+
.IP "\(bu" 4
|
| 1263 |
+
\&\s-1JSON,\s0 <http://json.org/>
|
| 1264 |
+
.IP "\(bu" 4
|
| 1265 |
+
\&\s-1YAML,\s0 <http://www.yaml.org/>
|
| 1266 |
+
.IP "\(bu" 4
|
| 1267 |
+
\&\s-1CPAN\s0
|
| 1268 |
+
.IP "\(bu" 4
|
| 1269 |
+
\&\s-1CPANPLUS\s0
|
| 1270 |
+
.IP "\(bu" 4
|
| 1271 |
+
ExtUtils::MakeMaker
|
| 1272 |
+
.IP "\(bu" 4
|
| 1273 |
+
Module::Build
|
| 1274 |
+
.IP "\(bu" 4
|
| 1275 |
+
Module::Install
|
| 1276 |
+
.IP "\(bu" 4
|
| 1277 |
+
CPAN::Meta::History::Meta_1_4
|
| 1278 |
+
.SH "HISTORY"
|
| 1279 |
+
.IX Header "HISTORY"
|
| 1280 |
+
Ken Williams wrote the original \s-1CPAN\s0 Meta Spec (also known as the
|
| 1281 |
+
\&\*(L"\s-1META\s0.yml spec\*(R") in 2003 and maintained it through several revisions
|
| 1282 |
+
with input from various members of the community. In 2005, Randy
|
| 1283 |
+
Sims redrafted it from \s-1HTML\s0 to \s-1POD\s0 for the version 1.2 release. Ken
|
| 1284 |
+
continued to maintain the spec through version 1.4.
|
| 1285 |
+
.PP
|
| 1286 |
+
In late 2009, David Golden organized the version 2 proposal review
|
| 1287 |
+
process. David and Ricardo Signes drafted the final version 2 spec
|
| 1288 |
+
in April 2010 based on the version 1.4 spec and patches contributed
|
| 1289 |
+
during the proposal process.
|
| 1290 |
+
.SH "AUTHORS"
|
| 1291 |
+
.IX Header "AUTHORS"
|
| 1292 |
+
.IP "\(bu" 4
|
| 1293 |
+
David Golden <dagolden@cpan.org>
|
| 1294 |
+
.IP "\(bu" 4
|
| 1295 |
+
Ricardo Signes <rjbs@cpan.org>
|
| 1296 |
+
.IP "\(bu" 4
|
| 1297 |
+
Adam Kennedy <adamk@cpan.org>
|
| 1298 |
+
.SH "COPYRIGHT AND LICENSE"
|
| 1299 |
+
.IX Header "COPYRIGHT AND LICENSE"
|
| 1300 |
+
This software is copyright (c) 2010 by David Golden, Ricardo Signes, Adam Kennedy and Contributors.
|
| 1301 |
+
.PP
|
| 1302 |
+
This is free software; you can redistribute it and/or modify it under
|
| 1303 |
+
the same terms as the Perl 5 programming language system itself.
|
data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AValidator.3
ADDED
|
@@ -0,0 +1,210 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "CPAN::Meta::Validator 3"
|
| 136 |
+
.TH CPAN::Meta::Validator 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
CPAN::Meta::Validator \- validate CPAN distribution metadata structures
|
| 143 |
+
.SH "VERSION"
|
| 144 |
+
.IX Header "VERSION"
|
| 145 |
+
version 2.150010
|
| 146 |
+
.SH "SYNOPSIS"
|
| 147 |
+
.IX Header "SYNOPSIS"
|
| 148 |
+
.Vb 1
|
| 149 |
+
\& my $struct = decode_json_file(\*(AqMETA.json\*(Aq);
|
| 150 |
+
\&
|
| 151 |
+
\& my $cmv = CPAN::Meta::Validator\->new( $struct );
|
| 152 |
+
\&
|
| 153 |
+
\& unless ( $cmv\->is_valid ) {
|
| 154 |
+
\& my $msg = "Invalid META structure. Errors found:\en";
|
| 155 |
+
\& $msg .= join( "\en", $cmv\->errors );
|
| 156 |
+
\& die $msg;
|
| 157 |
+
\& }
|
| 158 |
+
.Ve
|
| 159 |
+
.SH "DESCRIPTION"
|
| 160 |
+
.IX Header "DESCRIPTION"
|
| 161 |
+
This module validates a \s-1CPAN\s0 Meta structure against the version of the
|
| 162 |
+
the specification claimed in the \f(CW\*(C`meta\-spec\*(C'\fR field of the structure.
|
| 163 |
+
.SH "METHODS"
|
| 164 |
+
.IX Header "METHODS"
|
| 165 |
+
.SS "new"
|
| 166 |
+
.IX Subsection "new"
|
| 167 |
+
.Vb 1
|
| 168 |
+
\& my $cmv = CPAN::Meta::Validator\->new( $struct )
|
| 169 |
+
.Ve
|
| 170 |
+
.PP
|
| 171 |
+
The constructor must be passed a metadata structure.
|
| 172 |
+
.SS "is_valid"
|
| 173 |
+
.IX Subsection "is_valid"
|
| 174 |
+
.Vb 3
|
| 175 |
+
\& if ( $cmv\->is_valid ) {
|
| 176 |
+
\& ...
|
| 177 |
+
\& }
|
| 178 |
+
.Ve
|
| 179 |
+
.PP
|
| 180 |
+
Returns a boolean value indicating whether the metadata provided
|
| 181 |
+
is valid.
|
| 182 |
+
.SS "errors"
|
| 183 |
+
.IX Subsection "errors"
|
| 184 |
+
.Vb 1
|
| 185 |
+
\& warn( join "\en", $cmv\->errors );
|
| 186 |
+
.Ve
|
| 187 |
+
.PP
|
| 188 |
+
Returns a list of errors seen during validation.
|
| 189 |
+
.SH "BUGS"
|
| 190 |
+
.IX Header "BUGS"
|
| 191 |
+
Please report any bugs or feature using the \s-1CPAN\s0 Request Tracker.
|
| 192 |
+
Bugs can be submitted through the web interface at
|
| 193 |
+
<http://rt.cpan.org/Dist/Display.html?Queue=CPAN\-Meta>
|
| 194 |
+
.PP
|
| 195 |
+
When submitting a bug or request, please include a test-file or a patch to an
|
| 196 |
+
existing test-file that illustrates the bug or desired feature.
|
| 197 |
+
.SH "AUTHORS"
|
| 198 |
+
.IX Header "AUTHORS"
|
| 199 |
+
.IP "\(bu" 4
|
| 200 |
+
David Golden <dagolden@cpan.org>
|
| 201 |
+
.IP "\(bu" 4
|
| 202 |
+
Ricardo Signes <rjbs@cpan.org>
|
| 203 |
+
.IP "\(bu" 4
|
| 204 |
+
Adam Kennedy <adamk@cpan.org>
|
| 205 |
+
.SH "COPYRIGHT AND LICENSE"
|
| 206 |
+
.IX Header "COPYRIGHT AND LICENSE"
|
| 207 |
+
This software is copyright (c) 2010 by David Golden, Ricardo Signes, Adam Kennedy and Contributors.
|
| 208 |
+
.PP
|
| 209 |
+
This is free software; you can redistribute it and/or modify it under
|
| 210 |
+
the same terms as the Perl 5 programming language system itself.
|
data/miniconda3/man/man3/CPAN%3A%3AMeta%3A%3AYAML.3
ADDED
|
@@ -0,0 +1,195 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "CPAN::Meta::YAML 3"
|
| 136 |
+
.TH CPAN::Meta::YAML 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
CPAN::Meta::YAML \- Read and write a subset of YAML for CPAN Meta files
|
| 143 |
+
.SH "VERSION"
|
| 144 |
+
.IX Header "VERSION"
|
| 145 |
+
version 0.018
|
| 146 |
+
.SH "SYNOPSIS"
|
| 147 |
+
.IX Header "SYNOPSIS"
|
| 148 |
+
.Vb 1
|
| 149 |
+
\& use CPAN::Meta::YAML;
|
| 150 |
+
\&
|
| 151 |
+
\& # reading a META file
|
| 152 |
+
\& open $fh, "<:utf8", "META.yml";
|
| 153 |
+
\& $yaml_text = do { local $/; <$fh> };
|
| 154 |
+
\& $yaml = CPAN::Meta::YAML\->read_string($yaml_text)
|
| 155 |
+
\& or die CPAN::Meta::YAML\->errstr;
|
| 156 |
+
\&
|
| 157 |
+
\& # finding the metadata
|
| 158 |
+
\& $meta = $yaml\->[0];
|
| 159 |
+
\&
|
| 160 |
+
\& # writing a META file
|
| 161 |
+
\& $yaml_text = $yaml\->write_string
|
| 162 |
+
\& or die CPAN::Meta::YAML\->errstr;
|
| 163 |
+
\& open $fh, ">:utf8", "META.yml";
|
| 164 |
+
\& print $fh $yaml_text;
|
| 165 |
+
.Ve
|
| 166 |
+
.SH "DESCRIPTION"
|
| 167 |
+
.IX Header "DESCRIPTION"
|
| 168 |
+
This module implements a subset of the \s-1YAML\s0 specification for use in reading
|
| 169 |
+
and writing \s-1CPAN\s0 metadata files like \fI\s-1META\s0.yml\fR and \fI\s-1MYMETA\s0.yml\fR. It should
|
| 170 |
+
not be used for any other general \s-1YAML\s0 parsing or generation task.
|
| 171 |
+
.PP
|
| 172 |
+
\&\s-1NOTE:\s0 \fI\s-1META\s0.yml\fR (and \fI\s-1MYMETA\s0.yml\fR) files should be \s-1UTF\-8\s0 encoded. Users are
|
| 173 |
+
responsible for proper encoding and decoding. In particular, the \f(CW\*(C`read\*(C'\fR and
|
| 174 |
+
\&\f(CW\*(C`write\*(C'\fR methods do \fBnot\fR support \s-1UTF\-8\s0 and should not be used.
|
| 175 |
+
.SH "SUPPORT"
|
| 176 |
+
.IX Header "SUPPORT"
|
| 177 |
+
This module is currently derived from YAML::Tiny by Adam Kennedy. If
|
| 178 |
+
there are bugs in how it parses a particular \s-1META\s0.yml file, please file
|
| 179 |
+
a bug report in the YAML::Tiny bugtracker:
|
| 180 |
+
<https://github.com/Perl\-Toolchain\-Gang/YAML\-Tiny/issues>
|
| 181 |
+
.SH "SEE ALSO"
|
| 182 |
+
.IX Header "SEE ALSO"
|
| 183 |
+
YAML::Tiny, \s-1YAML\s0, \s-1YAML::XS\s0
|
| 184 |
+
.SH "AUTHORS"
|
| 185 |
+
.IX Header "AUTHORS"
|
| 186 |
+
.IP "\(bu" 4
|
| 187 |
+
Adam Kennedy <adamk@cpan.org>
|
| 188 |
+
.IP "\(bu" 4
|
| 189 |
+
David Golden <dagolden@cpan.org>
|
| 190 |
+
.SH "COPYRIGHT AND LICENSE"
|
| 191 |
+
.IX Header "COPYRIGHT AND LICENSE"
|
| 192 |
+
This software is copyright (c) 2010 by Adam Kennedy.
|
| 193 |
+
.PP
|
| 194 |
+
This is free software; you can redistribute it and/or modify it under
|
| 195 |
+
the same terms as the Perl 5 programming language system itself.
|
data/miniconda3/man/man3/CPAN%3A%3AMeta.3
ADDED
|
@@ -0,0 +1,538 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "CPAN::Meta 3"
|
| 136 |
+
.TH CPAN::Meta 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
CPAN::Meta \- the distribution metadata for a CPAN dist
|
| 143 |
+
.SH "VERSION"
|
| 144 |
+
.IX Header "VERSION"
|
| 145 |
+
version 2.150010
|
| 146 |
+
.SH "SYNOPSIS"
|
| 147 |
+
.IX Header "SYNOPSIS"
|
| 148 |
+
.Vb 5
|
| 149 |
+
\& use v5.10;
|
| 150 |
+
\& use strict;
|
| 151 |
+
\& use warnings;
|
| 152 |
+
\& use CPAN::Meta;
|
| 153 |
+
\& use Module::Load;
|
| 154 |
+
\&
|
| 155 |
+
\& my $meta = CPAN::Meta\->load_file(\*(AqMETA.json\*(Aq);
|
| 156 |
+
\&
|
| 157 |
+
\& printf "testing requirements for %s version %s\en",
|
| 158 |
+
\& $meta\->name,
|
| 159 |
+
\& $meta\->version;
|
| 160 |
+
\&
|
| 161 |
+
\& my $prereqs = $meta\->effective_prereqs;
|
| 162 |
+
\&
|
| 163 |
+
\& for my $phase ( qw/configure runtime build test/ ) {
|
| 164 |
+
\& say "Requirements for $phase:";
|
| 165 |
+
\& my $reqs = $prereqs\->requirements_for($phase, "requires");
|
| 166 |
+
\& for my $module ( sort $reqs\->required_modules ) {
|
| 167 |
+
\& my $status;
|
| 168 |
+
\& if ( eval { load $module unless $module eq \*(Aqperl\*(Aq; 1 } ) {
|
| 169 |
+
\& my $version = $module eq \*(Aqperl\*(Aq ? $] : $module\->VERSION;
|
| 170 |
+
\& $status = $reqs\->accepts_module($module, $version)
|
| 171 |
+
\& ? "$version ok" : "$version not ok";
|
| 172 |
+
\& } else {
|
| 173 |
+
\& $status = "missing"
|
| 174 |
+
\& };
|
| 175 |
+
\& say " $module ($status)";
|
| 176 |
+
\& }
|
| 177 |
+
\& }
|
| 178 |
+
.Ve
|
| 179 |
+
.SH "DESCRIPTION"
|
| 180 |
+
.IX Header "DESCRIPTION"
|
| 181 |
+
Software distributions released to the \s-1CPAN\s0 include a \fI\s-1META\s0.json\fR or, for
|
| 182 |
+
older distributions, \fI\s-1META\s0.yml\fR, which describes the distribution, its
|
| 183 |
+
contents, and the requirements for building and installing the distribution.
|
| 184 |
+
The data structure stored in the \fI\s-1META\s0.json\fR file is described in
|
| 185 |
+
CPAN::Meta::Spec.
|
| 186 |
+
.PP
|
| 187 |
+
CPAN::Meta provides a simple class to represent this distribution metadata (or
|
| 188 |
+
\&\fIdistmeta\fR), along with some helpful methods for interrogating that data.
|
| 189 |
+
.PP
|
| 190 |
+
The documentation below is only for the methods of the CPAN::Meta object. For
|
| 191 |
+
information on the meaning of individual fields, consult the spec.
|
| 192 |
+
.SH "METHODS"
|
| 193 |
+
.IX Header "METHODS"
|
| 194 |
+
.SS "new"
|
| 195 |
+
.IX Subsection "new"
|
| 196 |
+
.Vb 1
|
| 197 |
+
\& my $meta = CPAN::Meta\->new($distmeta_struct, \e%options);
|
| 198 |
+
.Ve
|
| 199 |
+
.PP
|
| 200 |
+
Returns a valid CPAN::Meta object or dies if the supplied metadata hash
|
| 201 |
+
reference fails to validate. Older-format metadata will be up-converted to
|
| 202 |
+
version 2 if they validate against the original stated specification.
|
| 203 |
+
.PP
|
| 204 |
+
It takes an optional hashref of options. Valid options include:
|
| 205 |
+
.IP "\(bu" 4
|
| 206 |
+
lazy_validation \*(-- if true, new will attempt to convert the given metadata
|
| 207 |
+
to version 2 before attempting to validate it. This means than any
|
| 208 |
+
fixable errors will be handled by CPAN::Meta::Converter before validation.
|
| 209 |
+
(Note that this might result in invalid optional data being silently
|
| 210 |
+
dropped.) The default is false.
|
| 211 |
+
.SS "create"
|
| 212 |
+
.IX Subsection "create"
|
| 213 |
+
.Vb 1
|
| 214 |
+
\& my $meta = CPAN::Meta\->create($distmeta_struct, \e%options);
|
| 215 |
+
.Ve
|
| 216 |
+
.PP
|
| 217 |
+
This is same as \f(CW\*(C`new()\*(C'\fR, except that \f(CW\*(C`generated_by\*(C'\fR and \f(CW\*(C`meta\-spec\*(C'\fR fields
|
| 218 |
+
will be generated if not provided. This means the metadata structure is
|
| 219 |
+
assumed to otherwise follow the latest CPAN::Meta::Spec.
|
| 220 |
+
.SS "load_file"
|
| 221 |
+
.IX Subsection "load_file"
|
| 222 |
+
.Vb 1
|
| 223 |
+
\& my $meta = CPAN::Meta\->load_file($distmeta_file, \e%options);
|
| 224 |
+
.Ve
|
| 225 |
+
.PP
|
| 226 |
+
Given a pathname to a file containing metadata, this deserializes the file
|
| 227 |
+
according to its file suffix and constructs a new \f(CW\*(C`CPAN::Meta\*(C'\fR object, just
|
| 228 |
+
like \f(CW\*(C`new()\*(C'\fR. It will die if the deserialized version fails to validate
|
| 229 |
+
against its stated specification version.
|
| 230 |
+
.PP
|
| 231 |
+
It takes the same options as \f(CW\*(C`new()\*(C'\fR but \f(CW\*(C`lazy_validation\*(C'\fR defaults to
|
| 232 |
+
true.
|
| 233 |
+
.SS "load_yaml_string"
|
| 234 |
+
.IX Subsection "load_yaml_string"
|
| 235 |
+
.Vb 1
|
| 236 |
+
\& my $meta = CPAN::Meta\->load_yaml_string($yaml, \e%options);
|
| 237 |
+
.Ve
|
| 238 |
+
.PP
|
| 239 |
+
This method returns a new CPAN::Meta object using the first document in the
|
| 240 |
+
given \s-1YAML\s0 string. In other respects it is identical to \f(CW\*(C`load_file()\*(C'\fR.
|
| 241 |
+
.SS "load_json_string"
|
| 242 |
+
.IX Subsection "load_json_string"
|
| 243 |
+
.Vb 1
|
| 244 |
+
\& my $meta = CPAN::Meta\->load_json_string($json, \e%options);
|
| 245 |
+
.Ve
|
| 246 |
+
.PP
|
| 247 |
+
This method returns a new CPAN::Meta object using the structure represented by
|
| 248 |
+
the given \s-1JSON\s0 string. In other respects it is identical to \f(CW\*(C`load_file()\*(C'\fR.
|
| 249 |
+
.SS "load_string"
|
| 250 |
+
.IX Subsection "load_string"
|
| 251 |
+
.Vb 1
|
| 252 |
+
\& my $meta = CPAN::Meta\->load_string($string, \e%options);
|
| 253 |
+
.Ve
|
| 254 |
+
.PP
|
| 255 |
+
If you don't know if a string contains \s-1YAML\s0 or \s-1JSON,\s0 this method will use
|
| 256 |
+
Parse::CPAN::Meta to guess. In other respects it is identical to
|
| 257 |
+
\&\f(CW\*(C`load_file()\*(C'\fR.
|
| 258 |
+
.SS "save"
|
| 259 |
+
.IX Subsection "save"
|
| 260 |
+
.Vb 1
|
| 261 |
+
\& $meta\->save($distmeta_file, \e%options);
|
| 262 |
+
.Ve
|
| 263 |
+
.PP
|
| 264 |
+
Serializes the object as \s-1JSON\s0 and writes it to the given file. The only valid
|
| 265 |
+
option is \f(CW\*(C`version\*(C'\fR, which defaults to '2'. On Perl 5.8.1 or later, the file
|
| 266 |
+
is saved with \s-1UTF\-8\s0 encoding.
|
| 267 |
+
.PP
|
| 268 |
+
For \f(CW\*(C`version\*(C'\fR 2 (or higher), the filename should end in '.json'. \s-1JSON::PP\s0
|
| 269 |
+
is the default \s-1JSON\s0 backend. Using another \s-1JSON\s0 backend requires \s-1JSON\s0 2.5 or
|
| 270 |
+
later and you must set the \f(CW$ENV{PERL_JSON_BACKEND}\fR to a supported alternate
|
| 271 |
+
backend like \s-1JSON::XS\s0.
|
| 272 |
+
.PP
|
| 273 |
+
For \f(CW\*(C`version\*(C'\fR less than 2, the filename should end in '.yml'.
|
| 274 |
+
CPAN::Meta::Converter is used to generate an older metadata structure, which
|
| 275 |
+
is serialized to \s-1YAML.\s0 CPAN::Meta::YAML is the default \s-1YAML\s0 backend. You may
|
| 276 |
+
set the \f(CW$ENV{PERL_YAML_BACKEND}\fR to a supported alternative backend, though
|
| 277 |
+
this is not recommended due to subtle incompatibilities between \s-1YAML\s0 parsers on
|
| 278 |
+
\&\s-1CPAN.\s0
|
| 279 |
+
.SS "meta_spec_version"
|
| 280 |
+
.IX Subsection "meta_spec_version"
|
| 281 |
+
This method returns the version part of the \f(CW\*(C`meta_spec\*(C'\fR entry in the distmeta
|
| 282 |
+
structure. It is equivalent to:
|
| 283 |
+
.PP
|
| 284 |
+
.Vb 1
|
| 285 |
+
\& $meta\->meta_spec\->{version};
|
| 286 |
+
.Ve
|
| 287 |
+
.SS "effective_prereqs"
|
| 288 |
+
.IX Subsection "effective_prereqs"
|
| 289 |
+
.Vb 1
|
| 290 |
+
\& my $prereqs = $meta\->effective_prereqs;
|
| 291 |
+
\&
|
| 292 |
+
\& my $prereqs = $meta\->effective_prereqs( \e@feature_identifiers );
|
| 293 |
+
.Ve
|
| 294 |
+
.PP
|
| 295 |
+
This method returns a CPAN::Meta::Prereqs object describing all the
|
| 296 |
+
prereqs for the distribution. If an arrayref of feature identifiers is given,
|
| 297 |
+
the prereqs for the identified features are merged together with the
|
| 298 |
+
distribution's core prereqs before the CPAN::Meta::Prereqs object is returned.
|
| 299 |
+
.SS "should_index_file"
|
| 300 |
+
.IX Subsection "should_index_file"
|
| 301 |
+
.Vb 1
|
| 302 |
+
\& ... if $meta\->should_index_file( $filename );
|
| 303 |
+
.Ve
|
| 304 |
+
.PP
|
| 305 |
+
This method returns true if the given file should be indexed. It decides this
|
| 306 |
+
by checking the \f(CW\*(C`file\*(C'\fR and \f(CW\*(C`directory\*(C'\fR keys in the \f(CW\*(C`no_index\*(C'\fR property of
|
| 307 |
+
the distmeta structure. Note that neither the version format nor
|
| 308 |
+
\&\f(CW\*(C`release_status\*(C'\fR are considered.
|
| 309 |
+
.PP
|
| 310 |
+
\&\f(CW$filename\fR should be given in unix format.
|
| 311 |
+
.SS "should_index_package"
|
| 312 |
+
.IX Subsection "should_index_package"
|
| 313 |
+
.Vb 1
|
| 314 |
+
\& ... if $meta\->should_index_package( $package );
|
| 315 |
+
.Ve
|
| 316 |
+
.PP
|
| 317 |
+
This method returns true if the given package should be indexed. It decides
|
| 318 |
+
this by checking the \f(CW\*(C`package\*(C'\fR and \f(CW\*(C`namespace\*(C'\fR keys in the \f(CW\*(C`no_index\*(C'\fR
|
| 319 |
+
property of the distmeta structure. Note that neither the version format nor
|
| 320 |
+
\&\f(CW\*(C`release_status\*(C'\fR are considered.
|
| 321 |
+
.SS "features"
|
| 322 |
+
.IX Subsection "features"
|
| 323 |
+
.Vb 1
|
| 324 |
+
\& my @feature_objects = $meta\->features;
|
| 325 |
+
.Ve
|
| 326 |
+
.PP
|
| 327 |
+
This method returns a list of CPAN::Meta::Feature objects, one for each
|
| 328 |
+
optional feature described by the distribution's metadata.
|
| 329 |
+
.SS "feature"
|
| 330 |
+
.IX Subsection "feature"
|
| 331 |
+
.Vb 1
|
| 332 |
+
\& my $feature_object = $meta\->feature( $identifier );
|
| 333 |
+
.Ve
|
| 334 |
+
.PP
|
| 335 |
+
This method returns a CPAN::Meta::Feature object for the optional feature
|
| 336 |
+
with the given identifier. If no feature with that identifier exists, an
|
| 337 |
+
exception will be raised.
|
| 338 |
+
.SS "as_struct"
|
| 339 |
+
.IX Subsection "as_struct"
|
| 340 |
+
.Vb 1
|
| 341 |
+
\& my $copy = $meta\->as_struct( \e%options );
|
| 342 |
+
.Ve
|
| 343 |
+
.PP
|
| 344 |
+
This method returns a deep copy of the object's metadata as an unblessed hash
|
| 345 |
+
reference. It takes an optional hashref of options. If the hashref contains
|
| 346 |
+
a \f(CW\*(C`version\*(C'\fR argument, the copied metadata will be converted to the version
|
| 347 |
+
of the specification and returned. For example:
|
| 348 |
+
.PP
|
| 349 |
+
.Vb 1
|
| 350 |
+
\& my $old_spec = $meta\->as_struct( {version => "1.4"} );
|
| 351 |
+
.Ve
|
| 352 |
+
.SS "as_string"
|
| 353 |
+
.IX Subsection "as_string"
|
| 354 |
+
.Vb 1
|
| 355 |
+
\& my $string = $meta\->as_string( \e%options );
|
| 356 |
+
.Ve
|
| 357 |
+
.PP
|
| 358 |
+
This method returns a serialized copy of the object's metadata as a character
|
| 359 |
+
string. (The strings are \fBnot\fR \s-1UTF\-8\s0 encoded.) It takes an optional hashref
|
| 360 |
+
of options. If the hashref contains a \f(CW\*(C`version\*(C'\fR argument, the copied metadata
|
| 361 |
+
will be converted to the version of the specification and returned. For
|
| 362 |
+
example:
|
| 363 |
+
.PP
|
| 364 |
+
.Vb 1
|
| 365 |
+
\& my $string = $meta\->as_string( {version => "1.4"} );
|
| 366 |
+
.Ve
|
| 367 |
+
.PP
|
| 368 |
+
For \f(CW\*(C`version\*(C'\fR greater than or equal to 2, the string will be serialized as
|
| 369 |
+
\&\s-1JSON.\s0 For \f(CW\*(C`version\*(C'\fR less than 2, the string will be serialized as \s-1YAML.\s0 In
|
| 370 |
+
both cases, the same rules are followed as in the \f(CW\*(C`save()\*(C'\fR method for choosing
|
| 371 |
+
a serialization backend.
|
| 372 |
+
.PP
|
| 373 |
+
The serialized structure will include a \f(CW\*(C`x_serialization_backend\*(C'\fR entry giving
|
| 374 |
+
the package and version used to serialize. Any existing key in the given
|
| 375 |
+
\&\f(CW$meta\fR object will be clobbered.
|
| 376 |
+
.SH "STRING DATA"
|
| 377 |
+
.IX Header "STRING DATA"
|
| 378 |
+
The following methods return a single value, which is the value for the
|
| 379 |
+
corresponding entry in the distmeta structure. Values should be either undef
|
| 380 |
+
or strings.
|
| 381 |
+
.IP "\(bu" 4
|
| 382 |
+
abstract
|
| 383 |
+
.IP "\(bu" 4
|
| 384 |
+
description
|
| 385 |
+
.IP "\(bu" 4
|
| 386 |
+
dynamic_config
|
| 387 |
+
.IP "\(bu" 4
|
| 388 |
+
generated_by
|
| 389 |
+
.IP "\(bu" 4
|
| 390 |
+
name
|
| 391 |
+
.IP "\(bu" 4
|
| 392 |
+
release_status
|
| 393 |
+
.IP "\(bu" 4
|
| 394 |
+
version
|
| 395 |
+
.SH "LIST DATA"
|
| 396 |
+
.IX Header "LIST DATA"
|
| 397 |
+
These methods return lists of string values, which might be represented in the
|
| 398 |
+
distmeta structure as arrayrefs or scalars:
|
| 399 |
+
.IP "\(bu" 4
|
| 400 |
+
authors
|
| 401 |
+
.IP "\(bu" 4
|
| 402 |
+
keywords
|
| 403 |
+
.IP "\(bu" 4
|
| 404 |
+
licenses
|
| 405 |
+
.PP
|
| 406 |
+
The \f(CW\*(C`authors\*(C'\fR and \f(CW\*(C`licenses\*(C'\fR methods may also be called as \f(CW\*(C`author\*(C'\fR and
|
| 407 |
+
\&\f(CW\*(C`license\*(C'\fR, respectively, to match the field name in the distmeta structure.
|
| 408 |
+
.SH "MAP DATA"
|
| 409 |
+
.IX Header "MAP DATA"
|
| 410 |
+
These readers return hashrefs of arbitrary unblessed data structures, each
|
| 411 |
+
described more fully in the specification:
|
| 412 |
+
.IP "\(bu" 4
|
| 413 |
+
meta_spec
|
| 414 |
+
.IP "\(bu" 4
|
| 415 |
+
resources
|
| 416 |
+
.IP "\(bu" 4
|
| 417 |
+
provides
|
| 418 |
+
.IP "\(bu" 4
|
| 419 |
+
no_index
|
| 420 |
+
.IP "\(bu" 4
|
| 421 |
+
prereqs
|
| 422 |
+
.IP "\(bu" 4
|
| 423 |
+
optional_features
|
| 424 |
+
.SH "CUSTOM DATA"
|
| 425 |
+
.IX Header "CUSTOM DATA"
|
| 426 |
+
A list of custom keys are available from the \f(CW\*(C`custom_keys\*(C'\fR method and
|
| 427 |
+
particular keys may be retrieved with the \f(CW\*(C`custom\*(C'\fR method.
|
| 428 |
+
.PP
|
| 429 |
+
.Vb 1
|
| 430 |
+
\& say $meta\->custom($_) for $meta\->custom_keys;
|
| 431 |
+
.Ve
|
| 432 |
+
.PP
|
| 433 |
+
If a custom key refers to a data structure, a deep clone is returned.
|
| 434 |
+
.SH "BUGS"
|
| 435 |
+
.IX Header "BUGS"
|
| 436 |
+
Please report any bugs or feature using the \s-1CPAN\s0 Request Tracker.
|
| 437 |
+
Bugs can be submitted through the web interface at
|
| 438 |
+
<http://rt.cpan.org/Dist/Display.html?Queue=CPAN\-Meta>
|
| 439 |
+
.PP
|
| 440 |
+
When submitting a bug or request, please include a test-file or a patch to an
|
| 441 |
+
existing test-file that illustrates the bug or desired feature.
|
| 442 |
+
.SH "SEE ALSO"
|
| 443 |
+
.IX Header "SEE ALSO"
|
| 444 |
+
.IP "\(bu" 4
|
| 445 |
+
CPAN::Meta::Converter
|
| 446 |
+
.IP "\(bu" 4
|
| 447 |
+
CPAN::Meta::Validator
|
| 448 |
+
.SH "SUPPORT"
|
| 449 |
+
.IX Header "SUPPORT"
|
| 450 |
+
.SS "Bugs / Feature Requests"
|
| 451 |
+
.IX Subsection "Bugs / Feature Requests"
|
| 452 |
+
Please report any bugs or feature requests through the issue tracker
|
| 453 |
+
at <https://github.com/Perl\-Toolchain\-Gang/CPAN\-Meta/issues>.
|
| 454 |
+
You will be notified automatically of any progress on your issue.
|
| 455 |
+
.SS "Source Code"
|
| 456 |
+
.IX Subsection "Source Code"
|
| 457 |
+
This is open source software. The code repository is available for
|
| 458 |
+
public review and contribution under the terms of the license.
|
| 459 |
+
.PP
|
| 460 |
+
<https://github.com/Perl\-Toolchain\-Gang/CPAN\-Meta>
|
| 461 |
+
.PP
|
| 462 |
+
.Vb 1
|
| 463 |
+
\& git clone https://github.com/Perl\-Toolchain\-Gang/CPAN\-Meta.git
|
| 464 |
+
.Ve
|
| 465 |
+
.SH "AUTHORS"
|
| 466 |
+
.IX Header "AUTHORS"
|
| 467 |
+
.IP "\(bu" 4
|
| 468 |
+
David Golden <dagolden@cpan.org>
|
| 469 |
+
.IP "\(bu" 4
|
| 470 |
+
Ricardo Signes <rjbs@cpan.org>
|
| 471 |
+
.IP "\(bu" 4
|
| 472 |
+
Adam Kennedy <adamk@cpan.org>
|
| 473 |
+
.SH "CONTRIBUTORS"
|
| 474 |
+
.IX Header "CONTRIBUTORS"
|
| 475 |
+
.IP "\(bu" 4
|
| 476 |
+
Ansgar Burchardt <ansgar@cpan.org>
|
| 477 |
+
.IP "\(bu" 4
|
| 478 |
+
Avar Arnfjord Bjarmason <avar@cpan.org>
|
| 479 |
+
.IP "\(bu" 4
|
| 480 |
+
Benjamin Noggle <agwind@users.noreply.github.com>
|
| 481 |
+
.IP "\(bu" 4
|
| 482 |
+
Christopher J. Madsen <cjm@cpan.org>
|
| 483 |
+
.IP "\(bu" 4
|
| 484 |
+
Chuck Adams <cja987@gmail.com>
|
| 485 |
+
.IP "\(bu" 4
|
| 486 |
+
Cory G Watson <gphat@cpan.org>
|
| 487 |
+
.IP "\(bu" 4
|
| 488 |
+
Damyan Ivanov <dam@cpan.org>
|
| 489 |
+
.IP "\(bu" 4
|
| 490 |
+
David Golden <xdg@xdg.me>
|
| 491 |
+
.IP "\(bu" 4
|
| 492 |
+
Eric Wilhelm <ewilhelm@cpan.org>
|
| 493 |
+
.IP "\(bu" 4
|
| 494 |
+
Graham Knop <haarg@haarg.org>
|
| 495 |
+
.IP "\(bu" 4
|
| 496 |
+
Gregor Hermann <gregoa@debian.org>
|
| 497 |
+
.IP "\(bu" 4
|
| 498 |
+
Karen Etheridge <ether@cpan.org>
|
| 499 |
+
.IP "\(bu" 4
|
| 500 |
+
Kenichi Ishigaki <ishigaki@cpan.org>
|
| 501 |
+
.IP "\(bu" 4
|
| 502 |
+
Kent Fredric <kentfredric@gmail.com>
|
| 503 |
+
.IP "\(bu" 4
|
| 504 |
+
Ken Williams <kwilliams@cpan.org>
|
| 505 |
+
.IP "\(bu" 4
|
| 506 |
+
Lars Dieckow <daxim@cpan.org>
|
| 507 |
+
.IP "\(bu" 4
|
| 508 |
+
Leon Timmermans <leont@cpan.org>
|
| 509 |
+
.IP "\(bu" 4
|
| 510 |
+
majensen <maj@fortinbras.us>
|
| 511 |
+
.IP "\(bu" 4
|
| 512 |
+
Mark Fowler <markf@cpan.org>
|
| 513 |
+
.IP "\(bu" 4
|
| 514 |
+
Matt S Trout <mst@shadowcat.co.uk>
|
| 515 |
+
.IP "\(bu" 4
|
| 516 |
+
Michael G. Schwern <mschwern@cpan.org>
|
| 517 |
+
.IP "\(bu" 4
|
| 518 |
+
Mohammad S Anwar <mohammad.anwar@yahoo.com>
|
| 519 |
+
.IP "\(bu" 4
|
| 520 |
+
mohawk2 <mohawk2@users.noreply.github.com>
|
| 521 |
+
.IP "\(bu" 4
|
| 522 |
+
moznion <moznion@gmail.com>
|
| 523 |
+
.IP "\(bu" 4
|
| 524 |
+
Niko Tyni <ntyni@debian.org>
|
| 525 |
+
.IP "\(bu" 4
|
| 526 |
+
Olaf Alders <olaf@wundersolutions.com>
|
| 527 |
+
.IP "\(bu" 4
|
| 528 |
+
Olivier Mengue\*' <dolmen@cpan.org>
|
| 529 |
+
.IP "\(bu" 4
|
| 530 |
+
Randy Sims <randys@thepierianspring.org>
|
| 531 |
+
.IP "\(bu" 4
|
| 532 |
+
Tomohiro Hosaka <bokutin@bokut.in>
|
| 533 |
+
.SH "COPYRIGHT AND LICENSE"
|
| 534 |
+
.IX Header "COPYRIGHT AND LICENSE"
|
| 535 |
+
This software is copyright (c) 2010 by David Golden, Ricardo Signes, Adam Kennedy and Contributors.
|
| 536 |
+
.PP
|
| 537 |
+
This is free software; you can redistribute it and/or modify it under
|
| 538 |
+
the same terms as the Perl 5 programming language system itself.
|
data/miniconda3/man/man3/CPAN%3A%3AMirrors.3
ADDED
|
@@ -0,0 +1,287 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "CPAN::Mirrors 3"
|
| 136 |
+
.TH CPAN::Mirrors 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
CPAN::Mirrors \- Get CPAN mirror information and select a fast one
|
| 143 |
+
.SH "SYNOPSIS"
|
| 144 |
+
.IX Header "SYNOPSIS"
|
| 145 |
+
.Vb 1
|
| 146 |
+
\& use CPAN::Mirrors;
|
| 147 |
+
\&
|
| 148 |
+
\& my $mirrors = CPAN::Mirrors\->new( $mirrored_by_file );
|
| 149 |
+
\&
|
| 150 |
+
\& my $seen = {};
|
| 151 |
+
\&
|
| 152 |
+
\& my $best_continent = $mirrors\->find_best_continents( { seen => $seen } );
|
| 153 |
+
\& my @mirrors = $mirrors\->get_mirrors_by_continents( $best_continent );
|
| 154 |
+
\&
|
| 155 |
+
\& my $callback = sub {
|
| 156 |
+
\& my( $m ) = @_;
|
| 157 |
+
\& printf "%s = %s\en", $m\->hostname, $m\->rtt
|
| 158 |
+
\& };
|
| 159 |
+
\& $mirrors\->get_mirrors_timings( \e@mirrors, $seen, $callback, %args );
|
| 160 |
+
\&
|
| 161 |
+
\& @mirrors = sort { $a\->rtt <=> $b\->rtt } @mirrors;
|
| 162 |
+
\&
|
| 163 |
+
\& print "Best mirrors are ", map( { $_\->rtt } @mirrors[0..3] ), "\en";
|
| 164 |
+
.Ve
|
| 165 |
+
.SH "DESCRIPTION"
|
| 166 |
+
.IX Header "DESCRIPTION"
|
| 167 |
+
.IP "new( \s-1LOCAL_FILE_NAME\s0 )" 4
|
| 168 |
+
.IX Item "new( LOCAL_FILE_NAME )"
|
| 169 |
+
Create a new CPAN::Mirrors object from \s-1LOCAL_FILE_NAME.\s0 This file
|
| 170 |
+
should look like that in http://www.cpan.org/MIRRORED.BY .
|
| 171 |
+
.IP "\fBcontinents()\fR" 4
|
| 172 |
+
.IX Item "continents()"
|
| 173 |
+
Return a list of continents based on those defined in \fI\s-1MIRRORED.BY\s0\fR.
|
| 174 |
+
.IP "countries( [\s-1CONTINENTS\s0] )" 4
|
| 175 |
+
.IX Item "countries( [CONTINENTS] )"
|
| 176 |
+
Return a list of countries based on those defined in \fI\s-1MIRRORED.BY\s0\fR.
|
| 177 |
+
It only returns countries for the continents you specify (as defined
|
| 178 |
+
in \f(CW\*(C`continents\*(C'\fR). If you don't specify any continents, it returns all
|
| 179 |
+
of the countries listed in \fI\s-1MIRRORED.BY\s0\fR.
|
| 180 |
+
.IP "mirrors( [\s-1COUNTRIES\s0] )" 4
|
| 181 |
+
.IX Item "mirrors( [COUNTRIES] )"
|
| 182 |
+
Return a list of mirrors based on those defined in \fI\s-1MIRRORED.BY\s0\fR.
|
| 183 |
+
It only returns mirrors for the countries you specify (as defined
|
| 184 |
+
in \f(CW\*(C`countries\*(C'\fR). If you don't specify any countries, it returns all
|
| 185 |
+
of the mirrors listed in \fI\s-1MIRRORED.BY\s0\fR.
|
| 186 |
+
.IP "get_mirrors_by_countries( [\s-1COUNTRIES\s0] )" 4
|
| 187 |
+
.IX Item "get_mirrors_by_countries( [COUNTRIES] )"
|
| 188 |
+
A more sensible synonym for mirrors.
|
| 189 |
+
.IP "get_mirrors_by_continents( [\s-1CONTINENTS\s0] )" 4
|
| 190 |
+
.IX Item "get_mirrors_by_continents( [CONTINENTS] )"
|
| 191 |
+
Return a list of mirrors for all of continents you specify. If you don't
|
| 192 |
+
specify any continents, it returns all of the mirrors.
|
| 193 |
+
.Sp
|
| 194 |
+
You can specify a single continent or an array reference of continents.
|
| 195 |
+
.IP "get_countries_by_continents( [\s-1CONTINENTS\s0] )" 4
|
| 196 |
+
.IX Item "get_countries_by_continents( [CONTINENTS] )"
|
| 197 |
+
A more sensible synonym for countries.
|
| 198 |
+
.IP "default_mirror" 4
|
| 199 |
+
.IX Item "default_mirror"
|
| 200 |
+
Returns the default mirror, http://www.cpan.org/ . This mirror uses
|
| 201 |
+
dynamic \s-1DNS\s0 to give a close mirror.
|
| 202 |
+
.IP "best_mirrors" 4
|
| 203 |
+
.IX Item "best_mirrors"
|
| 204 |
+
\&\f(CW\*(C`best_mirrors\*(C'\fR checks for the best mirrors based on the list of
|
| 205 |
+
continents you pass, or, without that, all continents, as defined
|
| 206 |
+
by \f(CW\*(C`CPAN::Mirrored::By\*(C'\fR. It pings each mirror, up to the value of
|
| 207 |
+
\&\f(CW\*(C`how_many\*(C'\fR. In list context, it returns up to \f(CW\*(C`how_many\*(C'\fR mirrors.
|
| 208 |
+
In scalar context, it returns the single best mirror.
|
| 209 |
+
.Sp
|
| 210 |
+
Arguments
|
| 211 |
+
.Sp
|
| 212 |
+
.Vb 5
|
| 213 |
+
\& how_many \- the number of mirrors to return. Default: 1
|
| 214 |
+
\& callback \- a callback for find_best_continents
|
| 215 |
+
\& verbose \- true or false on all the whining and moaning. Default: false
|
| 216 |
+
\& continents \- an array ref of the continents to check
|
| 217 |
+
\& external_ping \- if true, use external ping via Net::Ping::External. Default: false
|
| 218 |
+
.Ve
|
| 219 |
+
.Sp
|
| 220 |
+
If you don't specify the continents, \f(CW\*(C`best_mirrors\*(C'\fR calls
|
| 221 |
+
\&\f(CW\*(C`find_best_continents\*(C'\fR to get the list of continents to check.
|
| 222 |
+
.Sp
|
| 223 |
+
If you don't have Net::Ping v2.13 or later, needed for timings,
|
| 224 |
+
this returns the default mirror.
|
| 225 |
+
.Sp
|
| 226 |
+
\&\f(CW\*(C`external_ping\*(C'\fR should be set and then \f(CW\*(C`Net::Ping::External\*(C'\fR needs
|
| 227 |
+
to be installed, if the local network has a transparent proxy.
|
| 228 |
+
.IP "get_n_random_mirrors_by_continents( N, [\s-1CONTINENTS\s0] )" 4
|
| 229 |
+
.IX Item "get_n_random_mirrors_by_continents( N, [CONTINENTS] )"
|
| 230 |
+
Returns up to N random mirrors for the specified continents. Specify the
|
| 231 |
+
continents as an array reference.
|
| 232 |
+
.ie n .IP "get_mirrors_timings( \s-1MIRROR_LIST, SEEN, CALLBACK,\s0 %ARGS );" 4
|
| 233 |
+
.el .IP "get_mirrors_timings( \s-1MIRROR_LIST, SEEN, CALLBACK,\s0 \f(CW%ARGS\fR );" 4
|
| 234 |
+
.IX Item "get_mirrors_timings( MIRROR_LIST, SEEN, CALLBACK, %ARGS );"
|
| 235 |
+
Pings the listed mirrors and returns a list of mirrors sorted in
|
| 236 |
+
ascending ping times.
|
| 237 |
+
.Sp
|
| 238 |
+
\&\f(CW\*(C`MIRROR_LIST\*(C'\fR is an anonymous array of \f(CW\*(C`CPAN::Mirrored::By\*(C'\fR objects to
|
| 239 |
+
ping.
|
| 240 |
+
.Sp
|
| 241 |
+
The optional argument \f(CW\*(C`SEEN\*(C'\fR is a hash reference used to track the
|
| 242 |
+
mirrors you've already pinged.
|
| 243 |
+
.Sp
|
| 244 |
+
The optional argument \f(CW\*(C`CALLBACK\*(C'\fR is a subroutine reference to call
|
| 245 |
+
after each ping. It gets the \f(CW\*(C`CPAN::Mirrored::By\*(C'\fR object after each
|
| 246 |
+
ping.
|
| 247 |
+
.IP "find_best_continents( \s-1HASH_REF\s0 );" 4
|
| 248 |
+
.IX Item "find_best_continents( HASH_REF );"
|
| 249 |
+
\&\f(CW\*(C`find_best_continents\*(C'\fR goes through each continent and pings \f(CW\*(C`N\*(C'\fR
|
| 250 |
+
random mirrors on that continent. It then orders the continents by
|
| 251 |
+
ascending median ping time. In list context, it returns the ordered list
|
| 252 |
+
of continent. In scalar context, it returns the same list as an
|
| 253 |
+
anonymous array.
|
| 254 |
+
.Sp
|
| 255 |
+
Arguments:
|
| 256 |
+
.Sp
|
| 257 |
+
.Vb 6
|
| 258 |
+
\& n \- the number of hosts to ping for each continent. Default: 3
|
| 259 |
+
\& seen \- a hashref of cached hostname ping times
|
| 260 |
+
\& verbose \- true or false for noisy or quiet. Default: false
|
| 261 |
+
\& callback \- a subroutine to run after each ping.
|
| 262 |
+
\& ping_cache_limit \- how long, in seconds, to reuse previous ping times.
|
| 263 |
+
\& Default: 1 day
|
| 264 |
+
.Ve
|
| 265 |
+
.Sp
|
| 266 |
+
The \f(CW\*(C`seen\*(C'\fR hash has hostnames as keys and anonymous arrays as values.
|
| 267 |
+
The anonymous array is a triplet of a \f(CW\*(C`CPAN::Mirrored::By\*(C'\fR object, a
|
| 268 |
+
ping time, and the epoch time for the measurement.
|
| 269 |
+
.Sp
|
| 270 |
+
The callback subroutine gets the \f(CW\*(C`CPAN::Mirrored::By\*(C'\fR object, the ping
|
| 271 |
+
time, and measurement time (the same things in the \f(CW\*(C`seen\*(C'\fR hashref) as
|
| 272 |
+
arguments. \f(CW\*(C`find_best_continents\*(C'\fR doesn't care what the callback does
|
| 273 |
+
and ignores the return value.
|
| 274 |
+
.Sp
|
| 275 |
+
With a low value for \f(CW\*(C`N\*(C'\fR, a single mirror might skew the results enough
|
| 276 |
+
to choose a worse continent. If you have that problem, try a larger
|
| 277 |
+
value.
|
| 278 |
+
.SH "AUTHOR"
|
| 279 |
+
.IX Header "AUTHOR"
|
| 280 |
+
Andreas Koenig \f(CW\*(C`<andk@cpan.org>\*(C'\fR, David Golden \f(CW\*(C`<dagolden@cpan.org>\*(C'\fR,
|
| 281 |
+
brian d foy \f(CW\*(C`<bdfoy@cpan.org>\*(C'\fR
|
| 282 |
+
.SH "LICENSE"
|
| 283 |
+
.IX Header "LICENSE"
|
| 284 |
+
This program is free software; you can redistribute it and/or
|
| 285 |
+
modify it under the same terms as Perl itself.
|
| 286 |
+
.PP
|
| 287 |
+
See <http://www.perl.com/perl/misc/Artistic.html>
|
data/miniconda3/man/man3/CPAN%3A%3ANox.3
ADDED
|
@@ -0,0 +1,162 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "CPAN::Nox 3"
|
| 136 |
+
.TH CPAN::Nox 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
CPAN::Nox \- Wrapper around CPAN.pm without using any XS module
|
| 143 |
+
.SH "SYNOPSIS"
|
| 144 |
+
.IX Header "SYNOPSIS"
|
| 145 |
+
Interactive mode:
|
| 146 |
+
.PP
|
| 147 |
+
.Vb 1
|
| 148 |
+
\& perl \-MCPAN::Nox \-e shell;
|
| 149 |
+
.Ve
|
| 150 |
+
.SH "DESCRIPTION"
|
| 151 |
+
.IX Header "DESCRIPTION"
|
| 152 |
+
This package has the same functionality as \s-1CPAN\s0.pm, but tries to
|
| 153 |
+
prevent the usage of compiled extensions during its own
|
| 154 |
+
execution. Its primary purpose is a rescue in case you upgraded perl
|
| 155 |
+
and broke binary compatibility somehow.
|
| 156 |
+
.SH "LICENSE"
|
| 157 |
+
.IX Header "LICENSE"
|
| 158 |
+
This program is free software; you can redistribute it and/or
|
| 159 |
+
modify it under the same terms as Perl itself.
|
| 160 |
+
.SH "SEE ALSO"
|
| 161 |
+
.IX Header "SEE ALSO"
|
| 162 |
+
\&\s-1CPAN\s0
|
data/miniconda3/man/man3/CPAN%3A%3APlugin.3
ADDED
|
@@ -0,0 +1,185 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "CPAN::Plugin 3"
|
| 136 |
+
.TH CPAN::Plugin 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
CPAN::Plugin \- Base class for CPAN shell extensions
|
| 143 |
+
.SH "SYNOPSIS"
|
| 144 |
+
.IX Header "SYNOPSIS"
|
| 145 |
+
.Vb 2
|
| 146 |
+
\& package CPAN::Plugin::Flurb;
|
| 147 |
+
\& use parent \*(AqCPAN::Plugin\*(Aq;
|
| 148 |
+
\&
|
| 149 |
+
\& sub post_test {
|
| 150 |
+
\& my ($self, $distribution_object) = @_;
|
| 151 |
+
\& $self = $self\->new (distribution_object => $distribution_object);
|
| 152 |
+
\& ...;
|
| 153 |
+
\& }
|
| 154 |
+
.Ve
|
| 155 |
+
.SH "DESCRIPTION"
|
| 156 |
+
.IX Header "DESCRIPTION"
|
| 157 |
+
.SS "Alpha Status"
|
| 158 |
+
.IX Subsection "Alpha Status"
|
| 159 |
+
The plugin system in the \s-1CPAN\s0 shell was introduced in version 2.07 and
|
| 160 |
+
is still considered experimental.
|
| 161 |
+
.SS "How Plugins work?"
|
| 162 |
+
.IX Subsection "How Plugins work?"
|
| 163 |
+
See \*(L"Plugin support\*(R" in \s-1CPAN\s0.
|
| 164 |
+
.SH "METHODS"
|
| 165 |
+
.IX Header "METHODS"
|
| 166 |
+
.SS "plugin_requires"
|
| 167 |
+
.IX Subsection "plugin_requires"
|
| 168 |
+
returns list of packages given plugin requires for functionality.
|
| 169 |
+
This list is evaluated using \f(CW\*(C`CPAN\->use_inst\*(C'\fR method.
|
| 170 |
+
.SS "distribution_object"
|
| 171 |
+
.IX Subsection "distribution_object"
|
| 172 |
+
Get current distribution object.
|
| 173 |
+
.SS "distribution"
|
| 174 |
+
.IX Subsection "distribution"
|
| 175 |
+
.SS "distribution_info"
|
| 176 |
+
.IX Subsection "distribution_info"
|
| 177 |
+
.SS "build_dir"
|
| 178 |
+
.IX Subsection "build_dir"
|
| 179 |
+
Simple delegatees for misc parameters derived from distribution
|
| 180 |
+
.SS "is_xs"
|
| 181 |
+
.IX Subsection "is_xs"
|
| 182 |
+
Predicate to detect whether package contains \s-1XS.\s0
|
| 183 |
+
.SH "AUTHOR"
|
| 184 |
+
.IX Header "AUTHOR"
|
| 185 |
+
Branislav Zahradnik <barney@cpan.org>
|
data/miniconda3/man/man3/CPAN%3A%3AQueue.3
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "CPAN::Queue 3"
|
| 136 |
+
.TH CPAN::Queue 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
CPAN::Queue \- internal queue support for CPAN.pm
|
| 143 |
+
.SH "LICENSE"
|
| 144 |
+
.IX Header "LICENSE"
|
| 145 |
+
This program is free software; you can redistribute it and/or
|
| 146 |
+
modify it under the same terms as Perl itself.
|
data/miniconda3/man/man3/CPAN%3A%3ATarzip.3
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "CPAN::Tarzip 3"
|
| 136 |
+
.TH CPAN::Tarzip 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
CPAN::Tarzip \- internal handling of tar archives for CPAN.pm
|
| 143 |
+
.SH "LICENSE"
|
| 144 |
+
.IX Header "LICENSE"
|
| 145 |
+
This program is free software; you can redistribute it and/or
|
| 146 |
+
modify it under the same terms as Perl itself.
|
data/miniconda3/man/man3/CPAN%3A%3AVersion.3
ADDED
|
@@ -0,0 +1,174 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "CPAN::Version 3"
|
| 136 |
+
.TH CPAN::Version 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
CPAN::Version \- utility functions to compare CPAN versions
|
| 143 |
+
.SH "SYNOPSIS"
|
| 144 |
+
.IX Header "SYNOPSIS"
|
| 145 |
+
.Vb 1
|
| 146 |
+
\& use CPAN::Version;
|
| 147 |
+
\&
|
| 148 |
+
\& CPAN::Version\->vgt("1.1","1.1.1"); # 1 bc. 1.1 > 1.001001
|
| 149 |
+
\&
|
| 150 |
+
\& CPAN::Version\->vlt("1.1","1.1"); # 0 bc. 1.1 not < 1.1
|
| 151 |
+
\&
|
| 152 |
+
\& CPAN::Version\->vcmp("1.1","1.1.1"); # 1 bc. first is larger
|
| 153 |
+
\&
|
| 154 |
+
\& CPAN::Version\->vcmp("1.1.1","1.1"); # \-1 bc. first is smaller
|
| 155 |
+
\&
|
| 156 |
+
\& CPAN::Version\->readable(v1.2.3); # "v1.2.3"
|
| 157 |
+
\&
|
| 158 |
+
\& CPAN::Version\->vstring("v1.2.3"); # v1.2.3
|
| 159 |
+
\&
|
| 160 |
+
\& CPAN::Version\->float2vv(1.002003); # "v1.2.3"
|
| 161 |
+
.Ve
|
| 162 |
+
.SH "DESCRIPTION"
|
| 163 |
+
.IX Header "DESCRIPTION"
|
| 164 |
+
This module mediates between some version that perl sees in a package
|
| 165 |
+
and the version that is published by the \s-1CPAN\s0 indexer.
|
| 166 |
+
.PP
|
| 167 |
+
It's only written as a helper module for both \s-1CPAN\s0.pm and \s-1CPANPLUS\s0.pm.
|
| 168 |
+
.PP
|
| 169 |
+
As it stands it predates version.pm but has the same goal: make
|
| 170 |
+
version strings visible and comparable.
|
| 171 |
+
.SH "LICENSE"
|
| 172 |
+
.IX Header "LICENSE"
|
| 173 |
+
This program is free software; you can redistribute it and/or
|
| 174 |
+
modify it under the same terms as Perl itself.
|
data/miniconda3/man/man3/CPAN.3
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/miniconda3/man/man3/Carp.3
ADDED
|
@@ -0,0 +1,427 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "Carp 3"
|
| 136 |
+
.TH Carp 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
Carp \- alternative warn and die for modules
|
| 143 |
+
.SH "SYNOPSIS"
|
| 144 |
+
.IX Header "SYNOPSIS"
|
| 145 |
+
.Vb 1
|
| 146 |
+
\& use Carp;
|
| 147 |
+
\&
|
| 148 |
+
\& # warn user (from perspective of caller)
|
| 149 |
+
\& carp "string trimmed to 80 chars";
|
| 150 |
+
\&
|
| 151 |
+
\& # die of errors (from perspective of caller)
|
| 152 |
+
\& croak "We\*(Aqre outta here!";
|
| 153 |
+
\&
|
| 154 |
+
\& # die of errors with stack backtrace
|
| 155 |
+
\& confess "not implemented";
|
| 156 |
+
\&
|
| 157 |
+
\& # cluck, longmess and shortmess not exported by default
|
| 158 |
+
\& use Carp qw(cluck longmess shortmess);
|
| 159 |
+
\& cluck "This is how we got here!"; # warn with stack backtrace
|
| 160 |
+
\& $long_message = longmess( "message from cluck() or confess()" );
|
| 161 |
+
\& $short_message = shortmess( "message from carp() or croak()" );
|
| 162 |
+
.Ve
|
| 163 |
+
.SH "DESCRIPTION"
|
| 164 |
+
.IX Header "DESCRIPTION"
|
| 165 |
+
The Carp routines are useful in your own modules because
|
| 166 |
+
they act like \f(CW\*(C`die()\*(C'\fR or \f(CW\*(C`warn()\*(C'\fR, but with a message which is more
|
| 167 |
+
likely to be useful to a user of your module. In the case of
|
| 168 |
+
\&\f(CW\*(C`cluck()\*(C'\fR and \f(CW\*(C`confess()\*(C'\fR, that context is a summary of every
|
| 169 |
+
call in the call-stack; \f(CW\*(C`longmess()\*(C'\fR returns the contents of the error
|
| 170 |
+
message.
|
| 171 |
+
.PP
|
| 172 |
+
For a shorter message you can use \f(CW\*(C`carp()\*(C'\fR or \f(CW\*(C`croak()\*(C'\fR which report the
|
| 173 |
+
error as being from where your module was called. \f(CW\*(C`shortmess()\*(C'\fR returns the
|
| 174 |
+
contents of this error message. There is no guarantee that that is where the
|
| 175 |
+
error was, but it is a good educated guess.
|
| 176 |
+
.PP
|
| 177 |
+
\&\f(CW\*(C`Carp\*(C'\fR takes care not to clobber the status variables \f(CW$!\fR and \f(CW$^E\fR
|
| 178 |
+
in the course of assembling its error messages. This means that a
|
| 179 |
+
\&\f(CW$SIG{_\|_DIE_\|_}\fR or \f(CW$SIG{_\|_WARN_\|_}\fR handler can capture the error
|
| 180 |
+
information held in those variables, if it is required to augment the
|
| 181 |
+
error message, and if the code calling \f(CW\*(C`Carp\*(C'\fR left useful values there.
|
| 182 |
+
Of course, \f(CW\*(C`Carp\*(C'\fR can't guarantee the latter.
|
| 183 |
+
.PP
|
| 184 |
+
You can also alter the way the output and logic of \f(CW\*(C`Carp\*(C'\fR works, by
|
| 185 |
+
changing some global variables in the \f(CW\*(C`Carp\*(C'\fR namespace. See the
|
| 186 |
+
section on \f(CW\*(C`GLOBAL VARIABLES\*(C'\fR below.
|
| 187 |
+
.PP
|
| 188 |
+
Here is a more complete description of how \f(CW\*(C`carp\*(C'\fR and \f(CW\*(C`croak\*(C'\fR work.
|
| 189 |
+
What they do is search the call-stack for a function call stack where
|
| 190 |
+
they have not been told that there shouldn't be an error. If every
|
| 191 |
+
call is marked safe, they give up and give a full stack backtrace
|
| 192 |
+
instead. In other words they presume that the first likely looking
|
| 193 |
+
potential suspect is guilty. Their rules for telling whether
|
| 194 |
+
a call shouldn't generate errors work as follows:
|
| 195 |
+
.IP "1." 4
|
| 196 |
+
Any call from a package to itself is safe.
|
| 197 |
+
.IP "2." 4
|
| 198 |
+
Packages claim that there won't be errors on calls to or from
|
| 199 |
+
packages explicitly marked as safe by inclusion in \f(CW@CARP_NOT\fR, or
|
| 200 |
+
(if that array is empty) \f(CW@ISA\fR. The ability to override what
|
| 201 |
+
\&\f(CW@ISA\fR says is new in 5.8.
|
| 202 |
+
.IP "3." 4
|
| 203 |
+
The trust in item 2 is transitive. If A trusts B, and B
|
| 204 |
+
trusts C, then A trusts C. So if you do not override \f(CW@ISA\fR
|
| 205 |
+
with \f(CW@CARP_NOT\fR, then this trust relationship is identical to,
|
| 206 |
+
\&\*(L"inherits from\*(R".
|
| 207 |
+
.IP "4." 4
|
| 208 |
+
Any call from an internal Perl module is safe. (Nothing keeps
|
| 209 |
+
user modules from marking themselves as internal to Perl, but
|
| 210 |
+
this practice is discouraged.)
|
| 211 |
+
.IP "5." 4
|
| 212 |
+
Any call to Perl's warning system (eg Carp itself) is safe.
|
| 213 |
+
(This rule is what keeps it from reporting the error at the
|
| 214 |
+
point where you call \f(CW\*(C`carp\*(C'\fR or \f(CW\*(C`croak\*(C'\fR.)
|
| 215 |
+
.IP "6." 4
|
| 216 |
+
\&\f(CW$Carp::CarpLevel\fR can be set to skip a fixed number of additional
|
| 217 |
+
call levels. Using this is not recommended because it is very
|
| 218 |
+
difficult to get it to behave correctly.
|
| 219 |
+
.SS "Forcing a Stack Trace"
|
| 220 |
+
.IX Subsection "Forcing a Stack Trace"
|
| 221 |
+
As a debugging aid, you can force Carp to treat a croak as a confess
|
| 222 |
+
and a carp as a cluck across \fIall\fR modules. In other words, force a
|
| 223 |
+
detailed stack trace to be given. This can be very helpful when trying
|
| 224 |
+
to understand why, or from where, a warning or error is being generated.
|
| 225 |
+
.PP
|
| 226 |
+
This feature is enabled by 'importing' the non-existent symbol
|
| 227 |
+
\&'verbose'. You would typically enable it by saying
|
| 228 |
+
.PP
|
| 229 |
+
.Vb 1
|
| 230 |
+
\& perl \-MCarp=verbose script.pl
|
| 231 |
+
.Ve
|
| 232 |
+
.PP
|
| 233 |
+
or by including the string \f(CW\*(C`\-MCarp=verbose\*(C'\fR in the \s-1PERL5OPT\s0
|
| 234 |
+
environment variable.
|
| 235 |
+
.PP
|
| 236 |
+
Alternately, you can set the global variable \f(CW$Carp::Verbose\fR to true.
|
| 237 |
+
See the \f(CW\*(C`GLOBAL VARIABLES\*(C'\fR section below.
|
| 238 |
+
.SS "Stack Trace formatting"
|
| 239 |
+
.IX Subsection "Stack Trace formatting"
|
| 240 |
+
At each stack level, the subroutine's name is displayed along with
|
| 241 |
+
its parameters. For simple scalars, this is sufficient. For complex
|
| 242 |
+
data types, such as objects and other references, this can simply
|
| 243 |
+
display \f(CW\*(AqHASH(0x1ab36d8)\*(Aq\fR.
|
| 244 |
+
.PP
|
| 245 |
+
Carp gives two ways to control this.
|
| 246 |
+
.IP "1." 4
|
| 247 |
+
For objects, a method, \f(CW\*(C`CARP_TRACE\*(C'\fR, will be called, if it exists. If
|
| 248 |
+
this method doesn't exist, or it recurses into \f(CW\*(C`Carp\*(C'\fR, or it otherwise
|
| 249 |
+
throws an exception, this is skipped, and Carp moves on to the next option,
|
| 250 |
+
otherwise checking stops and the string returned is used. It is recommended
|
| 251 |
+
that the object's type is part of the string to make debugging easier.
|
| 252 |
+
.IP "2." 4
|
| 253 |
+
For any type of reference, \f(CW$Carp::RefArgFormatter\fR is checked (see below).
|
| 254 |
+
This variable is expected to be a code reference, and the current parameter
|
| 255 |
+
is passed in. If this function doesn't exist (the variable is undef), or
|
| 256 |
+
it recurses into \f(CW\*(C`Carp\*(C'\fR, or it otherwise throws an exception, this is
|
| 257 |
+
skipped, and Carp moves on to the next option, otherwise checking stops
|
| 258 |
+
and the string returned is used.
|
| 259 |
+
.IP "3." 4
|
| 260 |
+
Otherwise, if neither \f(CW\*(C`CARP_TRACE\*(C'\fR nor \f(CW$Carp::RefArgFormatter\fR is
|
| 261 |
+
available, stringify the value ignoring any overloading.
|
| 262 |
+
.SH "GLOBAL VARIABLES"
|
| 263 |
+
.IX Header "GLOBAL VARIABLES"
|
| 264 |
+
.ie n .SS "$Carp::MaxEvalLen"
|
| 265 |
+
.el .SS "\f(CW$Carp::MaxEvalLen\fP"
|
| 266 |
+
.IX Subsection "$Carp::MaxEvalLen"
|
| 267 |
+
This variable determines how many characters of a string-eval are to
|
| 268 |
+
be shown in the output. Use a value of \f(CW0\fR to show all text.
|
| 269 |
+
.PP
|
| 270 |
+
Defaults to \f(CW0\fR.
|
| 271 |
+
.ie n .SS "$Carp::MaxArgLen"
|
| 272 |
+
.el .SS "\f(CW$Carp::MaxArgLen\fP"
|
| 273 |
+
.IX Subsection "$Carp::MaxArgLen"
|
| 274 |
+
This variable determines how many characters of each argument to a
|
| 275 |
+
function to print. Use a value of \f(CW0\fR to show the full length of the
|
| 276 |
+
argument.
|
| 277 |
+
.PP
|
| 278 |
+
Defaults to \f(CW64\fR.
|
| 279 |
+
.ie n .SS "$Carp::MaxArgNums"
|
| 280 |
+
.el .SS "\f(CW$Carp::MaxArgNums\fP"
|
| 281 |
+
.IX Subsection "$Carp::MaxArgNums"
|
| 282 |
+
This variable determines how many arguments to each function to show.
|
| 283 |
+
Use a false value to show all arguments to a function call. To suppress all
|
| 284 |
+
arguments, use \f(CW\*(C`\-1\*(C'\fR or \f(CW\*(Aq0 but true\*(Aq\fR.
|
| 285 |
+
.PP
|
| 286 |
+
Defaults to \f(CW8\fR.
|
| 287 |
+
.ie n .SS "$Carp::Verbose"
|
| 288 |
+
.el .SS "\f(CW$Carp::Verbose\fP"
|
| 289 |
+
.IX Subsection "$Carp::Verbose"
|
| 290 |
+
This variable makes \f(CW\*(C`carp()\*(C'\fR and \f(CW\*(C`croak()\*(C'\fR generate stack backtraces
|
| 291 |
+
just like \f(CW\*(C`cluck()\*(C'\fR and \f(CW\*(C`confess()\*(C'\fR. This is how \f(CW\*(C`use Carp \*(Aqverbose\*(Aq\*(C'\fR
|
| 292 |
+
is implemented internally.
|
| 293 |
+
.PP
|
| 294 |
+
Defaults to \f(CW0\fR.
|
| 295 |
+
.ie n .SS "$Carp::RefArgFormatter"
|
| 296 |
+
.el .SS "\f(CW$Carp::RefArgFormatter\fP"
|
| 297 |
+
.IX Subsection "$Carp::RefArgFormatter"
|
| 298 |
+
This variable sets a general argument formatter to display references.
|
| 299 |
+
Plain scalars and objects that implement \f(CW\*(C`CARP_TRACE\*(C'\fR will not go through
|
| 300 |
+
this formatter. Calling \f(CW\*(C`Carp\*(C'\fR from within this function is not supported.
|
| 301 |
+
.PP
|
| 302 |
+
local \f(CW$Carp::RefArgFormatter\fR = sub {
|
| 303 |
+
require Data::Dumper;
|
| 304 |
+
Data::Dumper::Dump($_[0]); # not necessarily safe
|
| 305 |
+
};
|
| 306 |
+
.ie n .SS "@CARP_NOT"
|
| 307 |
+
.el .SS "\f(CW@CARP_NOT\fP"
|
| 308 |
+
.IX Subsection "@CARP_NOT"
|
| 309 |
+
This variable, \fIin your package\fR, says which packages are \fInot\fR to be
|
| 310 |
+
considered as the location of an error. The \f(CW\*(C`carp()\*(C'\fR and \f(CW\*(C`cluck()\*(C'\fR
|
| 311 |
+
functions will skip over callers when reporting where an error occurred.
|
| 312 |
+
.PP
|
| 313 |
+
\&\s-1NB:\s0 This variable must be in the package's symbol table, thus:
|
| 314 |
+
.PP
|
| 315 |
+
.Vb 4
|
| 316 |
+
\& # These work
|
| 317 |
+
\& our @CARP_NOT; # file scope
|
| 318 |
+
\& use vars qw(@CARP_NOT); # package scope
|
| 319 |
+
\& @My::Package::CARP_NOT = ... ; # explicit package variable
|
| 320 |
+
\&
|
| 321 |
+
\& # These don\*(Aqt work
|
| 322 |
+
\& sub xyz { ... @CARP_NOT = ... } # w/o declarations above
|
| 323 |
+
\& my @CARP_NOT; # even at top\-level
|
| 324 |
+
.Ve
|
| 325 |
+
.PP
|
| 326 |
+
Example of use:
|
| 327 |
+
.PP
|
| 328 |
+
.Vb 9
|
| 329 |
+
\& package My::Carping::Package;
|
| 330 |
+
\& use Carp;
|
| 331 |
+
\& our @CARP_NOT;
|
| 332 |
+
\& sub bar { .... or _error(\*(AqWrong input\*(Aq) }
|
| 333 |
+
\& sub _error {
|
| 334 |
+
\& # temporary control of where\*(Aqness, _\|_PACKAGE_\|_ is implicit
|
| 335 |
+
\& local @CARP_NOT = qw(My::Friendly::Caller);
|
| 336 |
+
\& carp(@_)
|
| 337 |
+
\& }
|
| 338 |
+
.Ve
|
| 339 |
+
.PP
|
| 340 |
+
This would make \f(CW\*(C`Carp\*(C'\fR report the error as coming from a caller not
|
| 341 |
+
in \f(CW\*(C`My::Carping::Package\*(C'\fR, nor from \f(CW\*(C`My::Friendly::Caller\*(C'\fR.
|
| 342 |
+
.PP
|
| 343 |
+
Also read the \*(L"\s-1DESCRIPTION\*(R"\s0 section above, about how \f(CW\*(C`Carp\*(C'\fR decides
|
| 344 |
+
where the error is reported from.
|
| 345 |
+
.PP
|
| 346 |
+
Use \f(CW@CARP_NOT\fR, instead of \f(CW$Carp::CarpLevel\fR.
|
| 347 |
+
.PP
|
| 348 |
+
Overrides \f(CW\*(C`Carp\*(C'\fR's use of \f(CW@ISA\fR.
|
| 349 |
+
.ie n .SS "%Carp::Internal"
|
| 350 |
+
.el .SS "\f(CW%Carp::Internal\fP"
|
| 351 |
+
.IX Subsection "%Carp::Internal"
|
| 352 |
+
This says what packages are internal to Perl. \f(CW\*(C`Carp\*(C'\fR will never
|
| 353 |
+
report an error as being from a line in a package that is internal to
|
| 354 |
+
Perl. For example:
|
| 355 |
+
.PP
|
| 356 |
+
.Vb 3
|
| 357 |
+
\& $Carp::Internal{ (_\|_PACKAGE_\|_) }++;
|
| 358 |
+
\& # time passes...
|
| 359 |
+
\& sub foo { ... or confess("whatever") };
|
| 360 |
+
.Ve
|
| 361 |
+
.PP
|
| 362 |
+
would give a full stack backtrace starting from the first caller
|
| 363 |
+
outside of _\|_PACKAGE_\|_. (Unless that package was also internal to
|
| 364 |
+
Perl.)
|
| 365 |
+
.ie n .SS "%Carp::CarpInternal"
|
| 366 |
+
.el .SS "\f(CW%Carp::CarpInternal\fP"
|
| 367 |
+
.IX Subsection "%Carp::CarpInternal"
|
| 368 |
+
This says which packages are internal to Perl's warning system. For
|
| 369 |
+
generating a full stack backtrace this is the same as being internal
|
| 370 |
+
to Perl, the stack backtrace will not start inside packages that are
|
| 371 |
+
listed in \f(CW%Carp::CarpInternal\fR. But it is slightly different for
|
| 372 |
+
the summary message generated by \f(CW\*(C`carp\*(C'\fR or \f(CW\*(C`croak\*(C'\fR. There errors
|
| 373 |
+
will not be reported on any lines that are calling packages in
|
| 374 |
+
\&\f(CW%Carp::CarpInternal\fR.
|
| 375 |
+
.PP
|
| 376 |
+
For example \f(CW\*(C`Carp\*(C'\fR itself is listed in \f(CW%Carp::CarpInternal\fR.
|
| 377 |
+
Therefore the full stack backtrace from \f(CW\*(C`confess\*(C'\fR will not start
|
| 378 |
+
inside of \f(CW\*(C`Carp\*(C'\fR, and the short message from calling \f(CW\*(C`croak\*(C'\fR is
|
| 379 |
+
not placed on the line where \f(CW\*(C`croak\*(C'\fR was called.
|
| 380 |
+
.ie n .SS "$Carp::CarpLevel"
|
| 381 |
+
.el .SS "\f(CW$Carp::CarpLevel\fP"
|
| 382 |
+
.IX Subsection "$Carp::CarpLevel"
|
| 383 |
+
This variable determines how many additional call frames are to be
|
| 384 |
+
skipped that would not otherwise be when reporting where an error
|
| 385 |
+
occurred on a call to one of \f(CW\*(C`Carp\*(C'\fR's functions. It is fairly easy
|
| 386 |
+
to count these call frames on calls that generate a full stack
|
| 387 |
+
backtrace. However it is much harder to do this accounting for calls
|
| 388 |
+
that generate a short message. Usually people skip too many call
|
| 389 |
+
frames. If they are lucky they skip enough that \f(CW\*(C`Carp\*(C'\fR goes all of
|
| 390 |
+
the way through the call stack, realizes that something is wrong, and
|
| 391 |
+
then generates a full stack backtrace. If they are unlucky then the
|
| 392 |
+
error is reported from somewhere misleading very high in the call
|
| 393 |
+
stack.
|
| 394 |
+
.PP
|
| 395 |
+
Therefore it is best to avoid \f(CW$Carp::CarpLevel\fR. Instead use
|
| 396 |
+
\&\f(CW@CARP_NOT\fR, \f(CW%Carp::Internal\fR and \f(CW%Carp::CarpInternal\fR.
|
| 397 |
+
.PP
|
| 398 |
+
Defaults to \f(CW0\fR.
|
| 399 |
+
.SH "BUGS"
|
| 400 |
+
.IX Header "BUGS"
|
| 401 |
+
The Carp routines don't handle exception objects currently.
|
| 402 |
+
If called with a first argument that is a reference, they simply
|
| 403 |
+
call \fBdie()\fR or \fBwarn()\fR, as appropriate.
|
| 404 |
+
.SH "SEE ALSO"
|
| 405 |
+
.IX Header "SEE ALSO"
|
| 406 |
+
Carp::Always,
|
| 407 |
+
Carp::Clan
|
| 408 |
+
.SH "CONTRIBUTING"
|
| 409 |
+
.IX Header "CONTRIBUTING"
|
| 410 |
+
Carp is maintained by the perl 5 porters as part of the core perl 5
|
| 411 |
+
version control repository. Please see the perlhack perldoc for how to
|
| 412 |
+
submit patches and contribute to it.
|
| 413 |
+
.SH "AUTHOR"
|
| 414 |
+
.IX Header "AUTHOR"
|
| 415 |
+
The Carp module first appeared in Larry Wall's perl 5.000 distribution.
|
| 416 |
+
Since then it has been modified by several of the perl 5 porters.
|
| 417 |
+
Andrew Main (Zefram) <zefram@fysh.org> divested Carp into an independent
|
| 418 |
+
distribution.
|
| 419 |
+
.SH "COPYRIGHT"
|
| 420 |
+
.IX Header "COPYRIGHT"
|
| 421 |
+
Copyright (C) 1994\-2013 Larry Wall
|
| 422 |
+
.PP
|
| 423 |
+
Copyright (C) 2011, 2012, 2013 Andrew Main (Zefram) <zefram@fysh.org>
|
| 424 |
+
.SH "LICENSE"
|
| 425 |
+
.IX Header "LICENSE"
|
| 426 |
+
This module is free software; you can redistribute it and/or modify it
|
| 427 |
+
under the same terms as Perl itself.
|
data/miniconda3/man/man3/Compress%3A%3ARaw%3A%3ABzip2.3
ADDED
|
@@ -0,0 +1,394 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "Compress::Raw::Bzip2 3"
|
| 136 |
+
.TH Compress::Raw::Bzip2 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
Compress::Raw::Bzip2 \- Low\-Level Interface to bzip2 compression library
|
| 143 |
+
.SH "SYNOPSIS"
|
| 144 |
+
.IX Header "SYNOPSIS"
|
| 145 |
+
.Vb 1
|
| 146 |
+
\& use Compress::Raw::Bzip2 ;
|
| 147 |
+
\&
|
| 148 |
+
\& my ($bz, $status) = new Compress::Raw::Bzip2 [OPTS]
|
| 149 |
+
\& or die "Cannot create bzip2 object: $bzerno\en";
|
| 150 |
+
\&
|
| 151 |
+
\& $status = $bz\->bzdeflate($input, $output);
|
| 152 |
+
\& $status = $bz\->bzflush($output);
|
| 153 |
+
\& $status = $bz\->bzclose($output);
|
| 154 |
+
\&
|
| 155 |
+
\& my ($bz, $status) = new Compress::Raw::Bunzip2 [OPTS]
|
| 156 |
+
\& or die "Cannot create bunzip2 object: $bzerno\en";
|
| 157 |
+
\&
|
| 158 |
+
\& $status = $bz\->bzinflate($input, $output);
|
| 159 |
+
\&
|
| 160 |
+
\& my $version = Compress::Raw::Bzip2::bzlibversion();
|
| 161 |
+
.Ve
|
| 162 |
+
.SH "DESCRIPTION"
|
| 163 |
+
.IX Header "DESCRIPTION"
|
| 164 |
+
\&\f(CW\*(C`Compress::Raw::Bzip2\*(C'\fR provides an interface to the in-memory
|
| 165 |
+
compression/uncompression functions from the bzip2 compression library.
|
| 166 |
+
.PP
|
| 167 |
+
Although the primary purpose for the existence of \f(CW\*(C`Compress::Raw::Bzip2\*(C'\fR
|
| 168 |
+
is for use by the \f(CW\*(C`IO::Compress::Bzip2\*(C'\fR and \f(CW\*(C`IO::Compress::Bunzip2\*(C'\fR
|
| 169 |
+
modules, it can be used on its own for simple compression/uncompression
|
| 170 |
+
tasks.
|
| 171 |
+
.SH "Compression"
|
| 172 |
+
.IX Header "Compression"
|
| 173 |
+
.ie n .SS "($z, $status) = new Compress::Raw::Bzip2 $appendOutput, $blockSize100k, $workfactor;"
|
| 174 |
+
.el .SS "($z, \f(CW$status\fP) = new Compress::Raw::Bzip2 \f(CW$appendOutput\fP, \f(CW$blockSize100k\fP, \f(CW$workfactor\fP;"
|
| 175 |
+
.IX Subsection "($z, $status) = new Compress::Raw::Bzip2 $appendOutput, $blockSize100k, $workfactor;"
|
| 176 |
+
Creates a new compression object.
|
| 177 |
+
.PP
|
| 178 |
+
If successful, it will return the initialised compression object, \f(CW$z\fR
|
| 179 |
+
and a \f(CW$status\fR of \f(CW\*(C`BZ_OK\*(C'\fR in a list context. In scalar context it
|
| 180 |
+
returns the deflation object, \f(CW$z\fR, only.
|
| 181 |
+
.PP
|
| 182 |
+
If not successful, the returned compression object, \f(CW$z\fR, will be
|
| 183 |
+
\&\fIundef\fR and \f(CW$status\fR will hold the a \fIbzip2\fR error code.
|
| 184 |
+
.PP
|
| 185 |
+
Below is a list of the valid options:
|
| 186 |
+
.IP "\fB\f(CB$appendOutput\fB\fR" 5
|
| 187 |
+
.IX Item "$appendOutput"
|
| 188 |
+
Controls whether the compressed data is appended to the output buffer in
|
| 189 |
+
the \f(CW\*(C`bzdeflate\*(C'\fR, \f(CW\*(C`bzflush\*(C'\fR and \f(CW\*(C`bzclose\*(C'\fR methods.
|
| 190 |
+
.Sp
|
| 191 |
+
Defaults to 1.
|
| 192 |
+
.IP "\fB\f(CB$blockSize100k\fB\fR" 5
|
| 193 |
+
.IX Item "$blockSize100k"
|
| 194 |
+
To quote the bzip2 documentation
|
| 195 |
+
.Sp
|
| 196 |
+
.Vb 4
|
| 197 |
+
\& blockSize100k specifies the block size to be used for compression. It
|
| 198 |
+
\& should be a value between 1 and 9 inclusive, and the actual block size
|
| 199 |
+
\& used is 100000 x this figure. 9 gives the best compression but takes
|
| 200 |
+
\& most memory.
|
| 201 |
+
.Ve
|
| 202 |
+
.Sp
|
| 203 |
+
Defaults to 1.
|
| 204 |
+
.IP "\fB\f(CB$workfactor\fB\fR" 5
|
| 205 |
+
.IX Item "$workfactor"
|
| 206 |
+
To quote the bzip2 documentation
|
| 207 |
+
.Sp
|
| 208 |
+
.Vb 7
|
| 209 |
+
\& This parameter controls how the compression phase behaves when
|
| 210 |
+
\& presented with worst case, highly repetitive, input data. If
|
| 211 |
+
\& compression runs into difficulties caused by repetitive data, the
|
| 212 |
+
\& library switches from the standard sorting algorithm to a fallback
|
| 213 |
+
\& algorithm. The fallback is slower than the standard algorithm by
|
| 214 |
+
\& perhaps a factor of three, but always behaves reasonably, no matter how
|
| 215 |
+
\& bad the input.
|
| 216 |
+
\&
|
| 217 |
+
\& Lower values of workFactor reduce the amount of effort the standard
|
| 218 |
+
\& algorithm will expend before resorting to the fallback. You should set
|
| 219 |
+
\& this parameter carefully; too low, and many inputs will be handled by
|
| 220 |
+
\& the fallback algorithm and so compress rather slowly, too high, and
|
| 221 |
+
\& your average\-to\-worst case compression times can become very large. The
|
| 222 |
+
\& default value of 30 gives reasonable behaviour over a wide range of
|
| 223 |
+
\& circumstances.
|
| 224 |
+
\&
|
| 225 |
+
\& Allowable values range from 0 to 250 inclusive. 0 is a special case,
|
| 226 |
+
\& equivalent to using the default value of 30.
|
| 227 |
+
.Ve
|
| 228 |
+
.Sp
|
| 229 |
+
Defaults to 0.
|
| 230 |
+
.ie n .SS "$status = $bz\->bzdeflate($input, $output);"
|
| 231 |
+
.el .SS "\f(CW$status\fP = \f(CW$bz\fP\->bzdeflate($input, \f(CW$output\fP);"
|
| 232 |
+
.IX Subsection "$status = $bz->bzdeflate($input, $output);"
|
| 233 |
+
Reads the contents of \f(CW$input\fR, compresses it and writes the compressed
|
| 234 |
+
data to \f(CW$output\fR.
|
| 235 |
+
.PP
|
| 236 |
+
Returns \f(CW\*(C`BZ_RUN_OK\*(C'\fR on success and a \f(CW\*(C`bzip2\*(C'\fR error code on failure.
|
| 237 |
+
.PP
|
| 238 |
+
If \f(CW\*(C`appendOutput\*(C'\fR is enabled in the constructor for the bzip2 object, the
|
| 239 |
+
compressed data will be appended to \f(CW$output\fR. If not enabled, \f(CW$output\fR
|
| 240 |
+
will be truncated before the compressed data is written to it.
|
| 241 |
+
.ie n .SS "$status = $bz\->bzflush($output);"
|
| 242 |
+
.el .SS "\f(CW$status\fP = \f(CW$bz\fP\->bzflush($output);"
|
| 243 |
+
.IX Subsection "$status = $bz->bzflush($output);"
|
| 244 |
+
Flushes any pending compressed data to \f(CW$output\fR.
|
| 245 |
+
.PP
|
| 246 |
+
Returns \f(CW\*(C`BZ_RUN_OK\*(C'\fR on success and a \f(CW\*(C`bzip2\*(C'\fR error code on failure.
|
| 247 |
+
.ie n .SS "$status = $bz\->bzclose($output);"
|
| 248 |
+
.el .SS "\f(CW$status\fP = \f(CW$bz\fP\->bzclose($output);"
|
| 249 |
+
.IX Subsection "$status = $bz->bzclose($output);"
|
| 250 |
+
Terminates the compressed data stream and flushes any pending compressed
|
| 251 |
+
data to \f(CW$output\fR.
|
| 252 |
+
.PP
|
| 253 |
+
Returns \f(CW\*(C`BZ_STREAM_END\*(C'\fR on success and a \f(CW\*(C`bzip2\*(C'\fR error code on failure.
|
| 254 |
+
.SS "Example"
|
| 255 |
+
.IX Subsection "Example"
|
| 256 |
+
.SH "Uncompression"
|
| 257 |
+
.IX Header "Uncompression"
|
| 258 |
+
.ie n .SS "($z, $status) = new Compress::Raw::Bunzip2 $appendOutput, $consumeInput, $small, $verbosity, $limitOutput;"
|
| 259 |
+
.el .SS "($z, \f(CW$status\fP) = new Compress::Raw::Bunzip2 \f(CW$appendOutput\fP, \f(CW$consumeInput\fP, \f(CW$small\fP, \f(CW$verbosity\fP, \f(CW$limitOutput\fP;"
|
| 260 |
+
.IX Subsection "($z, $status) = new Compress::Raw::Bunzip2 $appendOutput, $consumeInput, $small, $verbosity, $limitOutput;"
|
| 261 |
+
If successful, it will return the initialised uncompression object, \f(CW$z\fR
|
| 262 |
+
and a \f(CW$status\fR of \f(CW\*(C`BZ_OK\*(C'\fR in a list context. In scalar context it
|
| 263 |
+
returns the deflation object, \f(CW$z\fR, only.
|
| 264 |
+
.PP
|
| 265 |
+
If not successful, the returned uncompression object, \f(CW$z\fR, will be
|
| 266 |
+
\&\fIundef\fR and \f(CW$status\fR will hold the a \fIbzip2\fR error code.
|
| 267 |
+
.PP
|
| 268 |
+
Below is a list of the valid options:
|
| 269 |
+
.IP "\fB\f(CB$appendOutput\fB\fR" 5
|
| 270 |
+
.IX Item "$appendOutput"
|
| 271 |
+
Controls whether the compressed data is appended to the output buffer in the
|
| 272 |
+
\&\f(CW\*(C`bzinflate\*(C'\fR, \f(CW\*(C`bzflush\*(C'\fR and \f(CW\*(C`bzclose\*(C'\fR methods.
|
| 273 |
+
.Sp
|
| 274 |
+
Defaults to 1.
|
| 275 |
+
.IP "\fB\f(CB$consumeInput\fB\fR" 5
|
| 276 |
+
.IX Item "$consumeInput"
|
| 277 |
+
.PD 0
|
| 278 |
+
.IP "\fB\f(CB$small\fB\fR" 5
|
| 279 |
+
.IX Item "$small"
|
| 280 |
+
.PD
|
| 281 |
+
To quote the bzip2 documentation
|
| 282 |
+
.Sp
|
| 283 |
+
.Vb 4
|
| 284 |
+
\& If small is nonzero, the library will use an alternative decompression
|
| 285 |
+
\& algorithm which uses less memory but at the cost of decompressing more
|
| 286 |
+
\& slowly (roughly speaking, half the speed, but the maximum memory
|
| 287 |
+
\& requirement drops to around 2300k).
|
| 288 |
+
.Ve
|
| 289 |
+
.Sp
|
| 290 |
+
Defaults to 0.
|
| 291 |
+
.IP "\fB\f(CB$limitOutput\fB\fR" 5
|
| 292 |
+
.IX Item "$limitOutput"
|
| 293 |
+
The \f(CW\*(C`LimitOutput\*(C'\fR option changes the behavior of the \f(CW\*(C`$i\->bzinflate\*(C'\fR
|
| 294 |
+
method so that the amount of memory used by the output buffer can be
|
| 295 |
+
limited.
|
| 296 |
+
.Sp
|
| 297 |
+
When \f(CW\*(C`LimitOutput\*(C'\fR is used the size of the output buffer used will either
|
| 298 |
+
be the 16k or the amount of memory already allocated to \f(CW$output\fR,
|
| 299 |
+
whichever is larger. Predicting the output size available is tricky, so
|
| 300 |
+
don't rely on getting an exact output buffer size.
|
| 301 |
+
.Sp
|
| 302 |
+
When \f(CW\*(C`LimitOutout\*(C'\fR is not specified \f(CW\*(C`$i\->bzinflate\*(C'\fR will use as much
|
| 303 |
+
memory as it takes to write all the uncompressed data it creates by
|
| 304 |
+
uncompressing the input buffer.
|
| 305 |
+
.Sp
|
| 306 |
+
If \f(CW\*(C`LimitOutput\*(C'\fR is enabled, the \f(CW\*(C`ConsumeInput\*(C'\fR option will also be
|
| 307 |
+
enabled.
|
| 308 |
+
.Sp
|
| 309 |
+
This option defaults to false.
|
| 310 |
+
.IP "\fB\f(CB$verbosity\fB\fR" 5
|
| 311 |
+
.IX Item "$verbosity"
|
| 312 |
+
This parameter is ignored.
|
| 313 |
+
.Sp
|
| 314 |
+
Defaults to 0.
|
| 315 |
+
.ie n .SS "$status = $z\->bzinflate($input, $output);"
|
| 316 |
+
.el .SS "\f(CW$status\fP = \f(CW$z\fP\->bzinflate($input, \f(CW$output\fP);"
|
| 317 |
+
.IX Subsection "$status = $z->bzinflate($input, $output);"
|
| 318 |
+
Uncompresses \f(CW$input\fR and writes the uncompressed data to \f(CW$output\fR.
|
| 319 |
+
.PP
|
| 320 |
+
Returns \f(CW\*(C`BZ_OK\*(C'\fR if the uncompression was successful, but the end of the
|
| 321 |
+
compressed data stream has not been reached. Returns \f(CW\*(C`BZ_STREAM_END\*(C'\fR on
|
| 322 |
+
successful uncompression and the end of the compression stream has been
|
| 323 |
+
reached.
|
| 324 |
+
.PP
|
| 325 |
+
If \f(CW\*(C`consumeInput\*(C'\fR is enabled in the constructor for the bunzip2 object,
|
| 326 |
+
\&\f(CW$input\fR will have all compressed data removed from it after
|
| 327 |
+
uncompression. On \f(CW\*(C`BZ_OK\*(C'\fR return this will mean that \f(CW$input\fR will be an
|
| 328 |
+
empty string; when \f(CW\*(C`BZ_STREAM_END\*(C'\fR \f(CW$input\fR will either be an empty
|
| 329 |
+
string or will contain whatever data immediately followed the compressed
|
| 330 |
+
data stream.
|
| 331 |
+
.PP
|
| 332 |
+
If \f(CW\*(C`appendOutput\*(C'\fR is enabled in the constructor for the bunzip2 object,
|
| 333 |
+
the uncompressed data will be appended to \f(CW$output\fR. If not enabled,
|
| 334 |
+
\&\f(CW$output\fR will be truncated before the uncompressed data is written to it.
|
| 335 |
+
.SH "Misc"
|
| 336 |
+
.IX Header "Misc"
|
| 337 |
+
.ie n .SS "my $version = \fBCompress::Raw::Bzip2::bzlibversion()\fP;"
|
| 338 |
+
.el .SS "my \f(CW$version\fP = \fBCompress::Raw::Bzip2::bzlibversion()\fP;"
|
| 339 |
+
.IX Subsection "my $version = Compress::Raw::Bzip2::bzlibversion();"
|
| 340 |
+
Returns the version of the underlying bzip2 library.
|
| 341 |
+
.SH "Constants"
|
| 342 |
+
.IX Header "Constants"
|
| 343 |
+
The following bzip2 constants are exported by this module
|
| 344 |
+
.PP
|
| 345 |
+
.Vb 3
|
| 346 |
+
\& BZ_RUN
|
| 347 |
+
\& BZ_FLUSH
|
| 348 |
+
\& BZ_FINISH
|
| 349 |
+
\&
|
| 350 |
+
\& BZ_OK
|
| 351 |
+
\& BZ_RUN_OK
|
| 352 |
+
\& BZ_FLUSH_OK
|
| 353 |
+
\& BZ_FINISH_OK
|
| 354 |
+
\& BZ_STREAM_END
|
| 355 |
+
\& BZ_SEQUENCE_ERROR
|
| 356 |
+
\& BZ_PARAM_ERROR
|
| 357 |
+
\& BZ_MEM_ERROR
|
| 358 |
+
\& BZ_DATA_ERROR
|
| 359 |
+
\& BZ_DATA_ERROR_MAGIC
|
| 360 |
+
\& BZ_IO_ERROR
|
| 361 |
+
\& BZ_UNEXPECTED_EOF
|
| 362 |
+
\& BZ_OUTBUFF_FULL
|
| 363 |
+
\& BZ_CONFIG_ERROR
|
| 364 |
+
.Ve
|
| 365 |
+
.SH "SUPPORT"
|
| 366 |
+
.IX Header "SUPPORT"
|
| 367 |
+
General feedback/questions/bug reports should be sent to
|
| 368 |
+
<https://github.com/pmqs/Compress\-Raw\-Bzip2/issues> (preferred) or
|
| 369 |
+
<https://rt.cpan.org/Public/Dist/Display.html?Name=Compress\-Raw\-Bzip2>.
|
| 370 |
+
.SH "SEE ALSO"
|
| 371 |
+
.IX Header "SEE ALSO"
|
| 372 |
+
Compress::Zlib, IO::Compress::Gzip, IO::Uncompress::Gunzip, IO::Compress::Deflate, IO::Uncompress::Inflate, IO::Compress::RawDeflate, IO::Uncompress::RawInflate, IO::Compress::Bzip2, IO::Uncompress::Bunzip2, IO::Compress::Lzma, IO::Uncompress::UnLzma, IO::Compress::Xz, IO::Uncompress::UnXz, IO::Compress::Lzip, IO::Uncompress::UnLzip, IO::Compress::Lzop, IO::Uncompress::UnLzop, IO::Compress::Lzf, IO::Uncompress::UnLzf, IO::Compress::Zstd, IO::Uncompress::UnZstd, IO::Uncompress::AnyInflate, IO::Uncompress::AnyUncompress
|
| 373 |
+
.PP
|
| 374 |
+
IO::Compress::FAQ
|
| 375 |
+
.PP
|
| 376 |
+
File::GlobMapper, Archive::Zip,
|
| 377 |
+
Archive::Tar,
|
| 378 |
+
IO::Zlib
|
| 379 |
+
.PP
|
| 380 |
+
The primary site for the bzip2 program is <https://sourceware.org/bzip2/>.
|
| 381 |
+
.PP
|
| 382 |
+
See the module Compress::Bzip2
|
| 383 |
+
.SH "AUTHOR"
|
| 384 |
+
.IX Header "AUTHOR"
|
| 385 |
+
This module was written by Paul Marquess, \f(CW\*(C`pmqs@cpan.org\*(C'\fR.
|
| 386 |
+
.SH "MODIFICATION HISTORY"
|
| 387 |
+
.IX Header "MODIFICATION HISTORY"
|
| 388 |
+
See the Changes file.
|
| 389 |
+
.SH "COPYRIGHT AND LICENSE"
|
| 390 |
+
.IX Header "COPYRIGHT AND LICENSE"
|
| 391 |
+
Copyright (c) 2005\-2019 Paul Marquess. All rights reserved.
|
| 392 |
+
.PP
|
| 393 |
+
This program is free software; you can redistribute it and/or
|
| 394 |
+
modify it under the same terms as Perl itself.
|
data/miniconda3/man/man3/Compress%3A%3ARaw%3A%3AZlib.3
ADDED
|
@@ -0,0 +1,1062 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "Compress::Raw::Zlib 3"
|
| 136 |
+
.TH Compress::Raw::Zlib 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
Compress::Raw::Zlib \- Low\-Level Interface to zlib compression library
|
| 143 |
+
.SH "SYNOPSIS"
|
| 144 |
+
.IX Header "SYNOPSIS"
|
| 145 |
+
.Vb 1
|
| 146 |
+
\& use Compress::Raw::Zlib ;
|
| 147 |
+
\&
|
| 148 |
+
\& ($d, $status) = new Compress::Raw::Zlib::Deflate( [OPT] ) ;
|
| 149 |
+
\& $status = $d\->deflate($input, $output) ;
|
| 150 |
+
\& $status = $d\->flush($output [, $flush_type]) ;
|
| 151 |
+
\& $d\->deflateReset() ;
|
| 152 |
+
\& $d\->deflateParams(OPTS) ;
|
| 153 |
+
\& $d\->deflateTune(OPTS) ;
|
| 154 |
+
\& $d\->dict_adler() ;
|
| 155 |
+
\& $d\->crc32() ;
|
| 156 |
+
\& $d\->adler32() ;
|
| 157 |
+
\& $d\->total_in() ;
|
| 158 |
+
\& $d\->total_out() ;
|
| 159 |
+
\& $d\->msg() ;
|
| 160 |
+
\& $d\->get_Strategy();
|
| 161 |
+
\& $d\->get_Level();
|
| 162 |
+
\& $d\->get_BufSize();
|
| 163 |
+
\&
|
| 164 |
+
\& ($i, $status) = new Compress::Raw::Zlib::Inflate( [OPT] ) ;
|
| 165 |
+
\& $status = $i\->inflate($input, $output [, $eof]) ;
|
| 166 |
+
\& $status = $i\->inflateSync($input) ;
|
| 167 |
+
\& $i\->inflateReset() ;
|
| 168 |
+
\& $i\->dict_adler() ;
|
| 169 |
+
\& $d\->crc32() ;
|
| 170 |
+
\& $d\->adler32() ;
|
| 171 |
+
\& $i\->total_in() ;
|
| 172 |
+
\& $i\->total_out() ;
|
| 173 |
+
\& $i\->msg() ;
|
| 174 |
+
\& $d\->get_BufSize();
|
| 175 |
+
\&
|
| 176 |
+
\& $crc = adler32($buffer [,$crc]) ;
|
| 177 |
+
\& $crc = crc32($buffer [,$crc]) ;
|
| 178 |
+
\&
|
| 179 |
+
\& $crc = crc32_combine($crc1, $crc2, $len2);
|
| 180 |
+
\& $adler = adler32_combine($adler1, $adler2, $len2);
|
| 181 |
+
\&
|
| 182 |
+
\& my $version = Compress::Raw::Zlib::zlib_version();
|
| 183 |
+
\& my $flags = Compress::Raw::Zlib::zlibCompileFlags();
|
| 184 |
+
.Ve
|
| 185 |
+
.SH "DESCRIPTION"
|
| 186 |
+
.IX Header "DESCRIPTION"
|
| 187 |
+
The \fICompress::Raw::Zlib\fR module provides a Perl interface to the \fIzlib\fR
|
| 188 |
+
compression library (see \*(L"\s-1AUTHOR\*(R"\s0 for details about where to get
|
| 189 |
+
\&\fIzlib\fR).
|
| 190 |
+
.SH "Compress::Raw::Zlib::Deflate"
|
| 191 |
+
.IX Header "Compress::Raw::Zlib::Deflate"
|
| 192 |
+
This section defines an interface that allows in-memory compression using
|
| 193 |
+
the \fIdeflate\fR interface provided by zlib.
|
| 194 |
+
.PP
|
| 195 |
+
Here is a definition of the interface available:
|
| 196 |
+
.SS "\fB($d, \fP\f(CB$status\fP\fB) = new Compress::Raw::Zlib::Deflate( [\s-1OPT\s0] ) \fP"
|
| 197 |
+
.IX Subsection "($d, $status) = new Compress::Raw::Zlib::Deflate( [OPT] ) "
|
| 198 |
+
Initialises a deflation object.
|
| 199 |
+
.PP
|
| 200 |
+
If you are familiar with the \fIzlib\fR library, it combines the
|
| 201 |
+
features of the \fIzlib\fR functions \f(CW\*(C`deflateInit\*(C'\fR, \f(CW\*(C`deflateInit2\*(C'\fR
|
| 202 |
+
and \f(CW\*(C`deflateSetDictionary\*(C'\fR.
|
| 203 |
+
.PP
|
| 204 |
+
If successful, it will return the initialised deflation object, \f(CW$d\fR
|
| 205 |
+
and a \f(CW$status\fR of \f(CW\*(C`Z_OK\*(C'\fR in a list context. In scalar context it
|
| 206 |
+
returns the deflation object, \f(CW$d\fR, only.
|
| 207 |
+
.PP
|
| 208 |
+
If not successful, the returned deflation object, \f(CW$d\fR, will be
|
| 209 |
+
\&\fIundef\fR and \f(CW$status\fR will hold the a \fIzlib\fR error code.
|
| 210 |
+
.PP
|
| 211 |
+
The function optionally takes a number of named options specified as
|
| 212 |
+
\&\f(CW\*(C`Name => value\*(C'\fR pairs. This allows individual options to be
|
| 213 |
+
tailored without having to specify them all in the parameter list.
|
| 214 |
+
.PP
|
| 215 |
+
For backward compatibility, it is also possible to pass the parameters
|
| 216 |
+
as a reference to a hash containing the name=>value pairs.
|
| 217 |
+
.PP
|
| 218 |
+
Below is a list of the valid options:
|
| 219 |
+
.IP "\fB\-Level\fR" 5
|
| 220 |
+
.IX Item "-Level"
|
| 221 |
+
Defines the compression level. Valid values are 0 through 9,
|
| 222 |
+
\&\f(CW\*(C`Z_NO_COMPRESSION\*(C'\fR, \f(CW\*(C`Z_BEST_SPEED\*(C'\fR, \f(CW\*(C`Z_BEST_COMPRESSION\*(C'\fR, and
|
| 223 |
+
\&\f(CW\*(C`Z_DEFAULT_COMPRESSION\*(C'\fR.
|
| 224 |
+
.Sp
|
| 225 |
+
The default is \f(CW\*(C`Z_DEFAULT_COMPRESSION\*(C'\fR.
|
| 226 |
+
.IP "\fB\-Method\fR" 5
|
| 227 |
+
.IX Item "-Method"
|
| 228 |
+
Defines the compression method. The only valid value at present (and
|
| 229 |
+
the default) is \f(CW\*(C`Z_DEFLATED\*(C'\fR.
|
| 230 |
+
.IP "\fB\-WindowBits\fR" 5
|
| 231 |
+
.IX Item "-WindowBits"
|
| 232 |
+
To compress an \s-1RFC 1950\s0 data stream, set \f(CW\*(C`WindowBits\*(C'\fR to a positive
|
| 233 |
+
number between 8 and 15.
|
| 234 |
+
.Sp
|
| 235 |
+
To compress an \s-1RFC 1951\s0 data stream, set \f(CW\*(C`WindowBits\*(C'\fR to \f(CW\*(C`\-MAX_WBITS\*(C'\fR.
|
| 236 |
+
.Sp
|
| 237 |
+
To compress an \s-1RFC 1952\s0 data stream (i.e. gzip), set \f(CW\*(C`WindowBits\*(C'\fR to
|
| 238 |
+
\&\f(CW\*(C`WANT_GZIP\*(C'\fR.
|
| 239 |
+
.Sp
|
| 240 |
+
For a definition of the meaning and valid values for \f(CW\*(C`WindowBits\*(C'\fR
|
| 241 |
+
refer to the \fIzlib\fR documentation for \fIdeflateInit2\fR.
|
| 242 |
+
.Sp
|
| 243 |
+
Defaults to \f(CW\*(C`MAX_WBITS\*(C'\fR.
|
| 244 |
+
.IP "\fB\-MemLevel\fR" 5
|
| 245 |
+
.IX Item "-MemLevel"
|
| 246 |
+
For a definition of the meaning and valid values for \f(CW\*(C`MemLevel\*(C'\fR
|
| 247 |
+
refer to the \fIzlib\fR documentation for \fIdeflateInit2\fR.
|
| 248 |
+
.Sp
|
| 249 |
+
Defaults to \s-1MAX_MEM_LEVEL.\s0
|
| 250 |
+
.IP "\fB\-Strategy\fR" 5
|
| 251 |
+
.IX Item "-Strategy"
|
| 252 |
+
Defines the strategy used to tune the compression. The valid values are
|
| 253 |
+
\&\f(CW\*(C`Z_DEFAULT_STRATEGY\*(C'\fR, \f(CW\*(C`Z_FILTERED\*(C'\fR, \f(CW\*(C`Z_RLE\*(C'\fR, \f(CW\*(C`Z_FIXED\*(C'\fR and
|
| 254 |
+
\&\f(CW\*(C`Z_HUFFMAN_ONLY\*(C'\fR.
|
| 255 |
+
.Sp
|
| 256 |
+
The default is \f(CW\*(C`Z_DEFAULT_STRATEGY\*(C'\fR.
|
| 257 |
+
.IP "\fB\-Dictionary\fR" 5
|
| 258 |
+
.IX Item "-Dictionary"
|
| 259 |
+
When a dictionary is specified \fICompress::Raw::Zlib\fR will automatically
|
| 260 |
+
call \f(CW\*(C`deflateSetDictionary\*(C'\fR directly after calling \f(CW\*(C`deflateInit\*(C'\fR. The
|
| 261 |
+
Adler32 value for the dictionary can be obtained by calling the method
|
| 262 |
+
\&\f(CW\*(C`$d\->dict_adler()\*(C'\fR.
|
| 263 |
+
.Sp
|
| 264 |
+
The default is no dictionary.
|
| 265 |
+
.IP "\fB\-Bufsize\fR" 5
|
| 266 |
+
.IX Item "-Bufsize"
|
| 267 |
+
Sets the initial size for the output buffer used by the \f(CW\*(C`$d\->deflate\*(C'\fR
|
| 268 |
+
and \f(CW\*(C`$d\->flush\*(C'\fR methods. If the buffer has to be
|
| 269 |
+
reallocated to increase the size, it will grow in increments of
|
| 270 |
+
\&\f(CW\*(C`Bufsize\*(C'\fR.
|
| 271 |
+
.Sp
|
| 272 |
+
The default buffer size is 4096.
|
| 273 |
+
.IP "\fB\-AppendOutput\fR" 5
|
| 274 |
+
.IX Item "-AppendOutput"
|
| 275 |
+
This option controls how data is written to the output buffer by the
|
| 276 |
+
\&\f(CW\*(C`$d\->deflate\*(C'\fR and \f(CW\*(C`$d\->flush\*(C'\fR methods.
|
| 277 |
+
.Sp
|
| 278 |
+
If the \f(CW\*(C`AppendOutput\*(C'\fR option is set to false, the output buffers in the
|
| 279 |
+
\&\f(CW\*(C`$d\->deflate\*(C'\fR and \f(CW\*(C`$d\->flush\*(C'\fR methods will be truncated before
|
| 280 |
+
uncompressed data is written to them.
|
| 281 |
+
.Sp
|
| 282 |
+
If the option is set to true, uncompressed data will be appended to the
|
| 283 |
+
output buffer in the \f(CW\*(C`$d\->deflate\*(C'\fR and \f(CW\*(C`$d\->flush\*(C'\fR methods.
|
| 284 |
+
.Sp
|
| 285 |
+
This option defaults to false.
|
| 286 |
+
.IP "\fB\-CRC32\fR" 5
|
| 287 |
+
.IX Item "-CRC32"
|
| 288 |
+
If set to true, a crc32 checksum of the uncompressed data will be
|
| 289 |
+
calculated. Use the \f(CW\*(C`$d\->crc32\*(C'\fR method to retrieve this value.
|
| 290 |
+
.Sp
|
| 291 |
+
This option defaults to false.
|
| 292 |
+
.IP "\fB\-ADLER32\fR" 5
|
| 293 |
+
.IX Item "-ADLER32"
|
| 294 |
+
If set to true, an adler32 checksum of the uncompressed data will be
|
| 295 |
+
calculated. Use the \f(CW\*(C`$d\->adler32\*(C'\fR method to retrieve this value.
|
| 296 |
+
.Sp
|
| 297 |
+
This option defaults to false.
|
| 298 |
+
.PP
|
| 299 |
+
Here is an example of using the \f(CW\*(C`Compress::Raw::Zlib::Deflate\*(C'\fR optional
|
| 300 |
+
parameter list to override the default buffer size and compression
|
| 301 |
+
level. All other options will take their default values.
|
| 302 |
+
.PP
|
| 303 |
+
.Vb 2
|
| 304 |
+
\& my $d = new Compress::Raw::Zlib::Deflate ( \-Bufsize => 300,
|
| 305 |
+
\& \-Level => Z_BEST_SPEED ) ;
|
| 306 |
+
.Ve
|
| 307 |
+
.SS "\fB\fP\f(CB$status\fP\fB = \fP\f(CB$d\fP\fB\->deflate($input, \fP\f(CB$output\fP\fB)\fP"
|
| 308 |
+
.IX Subsection "$status = $d->deflate($input, $output)"
|
| 309 |
+
Deflates the contents of \f(CW$input\fR and writes the compressed data to
|
| 310 |
+
\&\f(CW$output\fR.
|
| 311 |
+
.PP
|
| 312 |
+
The \f(CW$input\fR and \f(CW$output\fR parameters can be either scalars or scalar
|
| 313 |
+
references.
|
| 314 |
+
.PP
|
| 315 |
+
When finished, \f(CW$input\fR will be completely processed (assuming there
|
| 316 |
+
were no errors). If the deflation was successful it writes the deflated
|
| 317 |
+
data to \f(CW$output\fR and returns a status value of \f(CW\*(C`Z_OK\*(C'\fR.
|
| 318 |
+
.PP
|
| 319 |
+
On error, it returns a \fIzlib\fR error code.
|
| 320 |
+
.PP
|
| 321 |
+
If the \f(CW\*(C`AppendOutput\*(C'\fR option is set to true in the constructor for
|
| 322 |
+
the \f(CW$d\fR object, the compressed data will be appended to \f(CW$output\fR. If
|
| 323 |
+
it is false, \f(CW$output\fR will be truncated before any compressed data is
|
| 324 |
+
written to it.
|
| 325 |
+
.PP
|
| 326 |
+
\&\fBNote\fR: This method will not necessarily write compressed data to
|
| 327 |
+
\&\f(CW$output\fR every time it is called. So do not assume that there has been
|
| 328 |
+
an error if the contents of \f(CW$output\fR is empty on returning from
|
| 329 |
+
this method. As long as the return code from the method is \f(CW\*(C`Z_OK\*(C'\fR,
|
| 330 |
+
the deflate has succeeded.
|
| 331 |
+
.SS "\fB\fP\f(CB$status\fP\fB = \fP\f(CB$d\fP\fB\->flush($output [, \fP\f(CB$flush_type\fP\fB]) \fP"
|
| 332 |
+
.IX Subsection "$status = $d->flush($output [, $flush_type]) "
|
| 333 |
+
Typically used to finish the deflation. Any pending output will be
|
| 334 |
+
written to \f(CW$output\fR.
|
| 335 |
+
.PP
|
| 336 |
+
Returns \f(CW\*(C`Z_OK\*(C'\fR if successful.
|
| 337 |
+
.PP
|
| 338 |
+
Note that flushing can seriously degrade the compression ratio, so it
|
| 339 |
+
should only be used to terminate a decompression (using \f(CW\*(C`Z_FINISH\*(C'\fR) or
|
| 340 |
+
when you want to create a \fIfull flush point\fR (using \f(CW\*(C`Z_FULL_FLUSH\*(C'\fR).
|
| 341 |
+
.PP
|
| 342 |
+
By default the \f(CW\*(C`flush_type\*(C'\fR used is \f(CW\*(C`Z_FINISH\*(C'\fR. Other valid values
|
| 343 |
+
for \f(CW\*(C`flush_type\*(C'\fR are \f(CW\*(C`Z_NO_FLUSH\*(C'\fR, \f(CW\*(C`Z_PARTIAL_FLUSH\*(C'\fR, \f(CW\*(C`Z_SYNC_FLUSH\*(C'\fR
|
| 344 |
+
and \f(CW\*(C`Z_FULL_FLUSH\*(C'\fR. It is strongly recommended that you only set the
|
| 345 |
+
\&\f(CW\*(C`flush_type\*(C'\fR parameter if you fully understand the implications of
|
| 346 |
+
what it does. See the \f(CW\*(C`zlib\*(C'\fR documentation for details.
|
| 347 |
+
.PP
|
| 348 |
+
If the \f(CW\*(C`AppendOutput\*(C'\fR option is set to true in the constructor for
|
| 349 |
+
the \f(CW$d\fR object, the compressed data will be appended to \f(CW$output\fR. If
|
| 350 |
+
it is false, \f(CW$output\fR will be truncated before any compressed data is
|
| 351 |
+
written to it.
|
| 352 |
+
.SS "\fB\fP\f(CB$status\fP\fB = \fP\f(CB$d\fP\fB\->deflateReset() \fP"
|
| 353 |
+
.IX Subsection "$status = $d->deflateReset() "
|
| 354 |
+
This method will reset the deflation object \f(CW$d\fR. It can be used when you
|
| 355 |
+
are compressing multiple data streams and want to use the same object to
|
| 356 |
+
compress each of them. It should only be used once the previous data stream
|
| 357 |
+
has been flushed successfully, i.e. a call to \f(CW\*(C`$d\->flush(Z_FINISH)\*(C'\fR has
|
| 358 |
+
returned \f(CW\*(C`Z_OK\*(C'\fR.
|
| 359 |
+
.PP
|
| 360 |
+
Returns \f(CW\*(C`Z_OK\*(C'\fR if successful.
|
| 361 |
+
.SS "\fB\fP\f(CB$status\fP\fB = \fP\f(CB$d\fP\fB\->deflateParams([\s-1OPT\s0])\fP"
|
| 362 |
+
.IX Subsection "$status = $d->deflateParams([OPT])"
|
| 363 |
+
Change settings for the deflate object \f(CW$d\fR.
|
| 364 |
+
.PP
|
| 365 |
+
The list of the valid options is shown below. Options not specified
|
| 366 |
+
will remain unchanged.
|
| 367 |
+
.IP "\fB\-Level\fR" 5
|
| 368 |
+
.IX Item "-Level"
|
| 369 |
+
Defines the compression level. Valid values are 0 through 9,
|
| 370 |
+
\&\f(CW\*(C`Z_NO_COMPRESSION\*(C'\fR, \f(CW\*(C`Z_BEST_SPEED\*(C'\fR, \f(CW\*(C`Z_BEST_COMPRESSION\*(C'\fR, and
|
| 371 |
+
\&\f(CW\*(C`Z_DEFAULT_COMPRESSION\*(C'\fR.
|
| 372 |
+
.IP "\fB\-Strategy\fR" 5
|
| 373 |
+
.IX Item "-Strategy"
|
| 374 |
+
Defines the strategy used to tune the compression. The valid values are
|
| 375 |
+
\&\f(CW\*(C`Z_DEFAULT_STRATEGY\*(C'\fR, \f(CW\*(C`Z_FILTERED\*(C'\fR and \f(CW\*(C`Z_HUFFMAN_ONLY\*(C'\fR.
|
| 376 |
+
.IP "\fB\-BufSize\fR" 5
|
| 377 |
+
.IX Item "-BufSize"
|
| 378 |
+
Sets the initial size for the output buffer used by the \f(CW\*(C`$d\->deflate\*(C'\fR
|
| 379 |
+
and \f(CW\*(C`$d\->flush\*(C'\fR methods. If the buffer has to be
|
| 380 |
+
reallocated to increase the size, it will grow in increments of
|
| 381 |
+
\&\f(CW\*(C`Bufsize\*(C'\fR.
|
| 382 |
+
.SS "\fB\fP\f(CB$status\fP\fB = \fP\f(CB$d\fP\fB\->deflateTune($good_length, \fP\f(CB$max_lazy\fP\fB, \fP\f(CB$nice_length\fP\fB, \fP\f(CB$max_chain\fP\fB)\fP"
|
| 383 |
+
.IX Subsection "$status = $d->deflateTune($good_length, $max_lazy, $nice_length, $max_chain)"
|
| 384 |
+
Tune the internal settings for the deflate object \f(CW$d\fR. This option is
|
| 385 |
+
only available if you are running zlib 1.2.2.3 or better.
|
| 386 |
+
.PP
|
| 387 |
+
Refer to the documentation in zlib.h for instructions on how to fly
|
| 388 |
+
\&\f(CW\*(C`deflateTune\*(C'\fR.
|
| 389 |
+
.SS "\fB\fP\f(CB$d\fP\fB\->dict_adler()\fP"
|
| 390 |
+
.IX Subsection "$d->dict_adler()"
|
| 391 |
+
Returns the adler32 value for the dictionary.
|
| 392 |
+
.SS "\fB\fP\f(CB$d\fP\fB\->crc32()\fP"
|
| 393 |
+
.IX Subsection "$d->crc32()"
|
| 394 |
+
Returns the crc32 value for the uncompressed data to date.
|
| 395 |
+
.PP
|
| 396 |
+
If the \f(CW\*(C`CRC32\*(C'\fR option is not enabled in the constructor for this object,
|
| 397 |
+
this method will always return 0;
|
| 398 |
+
.SS "\fB\fP\f(CB$d\fP\fB\->adler32()\fP"
|
| 399 |
+
.IX Subsection "$d->adler32()"
|
| 400 |
+
Returns the adler32 value for the uncompressed data to date.
|
| 401 |
+
.SS "\fB\fP\f(CB$d\fP\fB\->msg()\fP"
|
| 402 |
+
.IX Subsection "$d->msg()"
|
| 403 |
+
Returns the last error message generated by zlib.
|
| 404 |
+
.SS "\fB\fP\f(CB$d\fP\fB\->total_in()\fP"
|
| 405 |
+
.IX Subsection "$d->total_in()"
|
| 406 |
+
Returns the total number of bytes uncompressed bytes input to deflate.
|
| 407 |
+
.SS "\fB\fP\f(CB$d\fP\fB\->total_out()\fP"
|
| 408 |
+
.IX Subsection "$d->total_out()"
|
| 409 |
+
Returns the total number of compressed bytes output from deflate.
|
| 410 |
+
.SS "\fB\fP\f(CB$d\fP\fB\->get_Strategy()\fP"
|
| 411 |
+
.IX Subsection "$d->get_Strategy()"
|
| 412 |
+
Returns the deflation strategy currently used. Valid values are
|
| 413 |
+
\&\f(CW\*(C`Z_DEFAULT_STRATEGY\*(C'\fR, \f(CW\*(C`Z_FILTERED\*(C'\fR and \f(CW\*(C`Z_HUFFMAN_ONLY\*(C'\fR.
|
| 414 |
+
.SS "\fB\fP\f(CB$d\fP\fB\->get_Level()\fP"
|
| 415 |
+
.IX Subsection "$d->get_Level()"
|
| 416 |
+
Returns the compression level being used.
|
| 417 |
+
.SS "\fB\fP\f(CB$d\fP\fB\->get_BufSize()\fP"
|
| 418 |
+
.IX Subsection "$d->get_BufSize()"
|
| 419 |
+
Returns the buffer size used to carry out the compression.
|
| 420 |
+
.SS "Example"
|
| 421 |
+
.IX Subsection "Example"
|
| 422 |
+
Here is a trivial example of using \f(CW\*(C`deflate\*(C'\fR. It simply reads standard
|
| 423 |
+
input, deflates it and writes it to standard output.
|
| 424 |
+
.PP
|
| 425 |
+
.Vb 2
|
| 426 |
+
\& use strict ;
|
| 427 |
+
\& use warnings ;
|
| 428 |
+
\&
|
| 429 |
+
\& use Compress::Raw::Zlib ;
|
| 430 |
+
\&
|
| 431 |
+
\& binmode STDIN;
|
| 432 |
+
\& binmode STDOUT;
|
| 433 |
+
\& my $x = new Compress::Raw::Zlib::Deflate
|
| 434 |
+
\& or die "Cannot create a deflation stream\en" ;
|
| 435 |
+
\&
|
| 436 |
+
\& my ($output, $status) ;
|
| 437 |
+
\& while (<>)
|
| 438 |
+
\& {
|
| 439 |
+
\& $status = $x\->deflate($_, $output) ;
|
| 440 |
+
\&
|
| 441 |
+
\& $status == Z_OK
|
| 442 |
+
\& or die "deflation failed\en" ;
|
| 443 |
+
\&
|
| 444 |
+
\& print $output ;
|
| 445 |
+
\& }
|
| 446 |
+
\&
|
| 447 |
+
\& $status = $x\->flush($output) ;
|
| 448 |
+
\&
|
| 449 |
+
\& $status == Z_OK
|
| 450 |
+
\& or die "deflation failed\en" ;
|
| 451 |
+
\&
|
| 452 |
+
\& print $output ;
|
| 453 |
+
.Ve
|
| 454 |
+
.SH "Compress::Raw::Zlib::Inflate"
|
| 455 |
+
.IX Header "Compress::Raw::Zlib::Inflate"
|
| 456 |
+
This section defines an interface that allows in-memory uncompression using
|
| 457 |
+
the \fIinflate\fR interface provided by zlib.
|
| 458 |
+
.PP
|
| 459 |
+
Here is a definition of the interface:
|
| 460 |
+
.SS "\fB ($i, \fP\f(CB$status\fP\fB) = new Compress::Raw::Zlib::Inflate( [\s-1OPT\s0] ) \fP"
|
| 461 |
+
.IX Subsection " ($i, $status) = new Compress::Raw::Zlib::Inflate( [OPT] ) "
|
| 462 |
+
Initialises an inflation object.
|
| 463 |
+
.PP
|
| 464 |
+
In a list context it returns the inflation object, \f(CW$i\fR, and the
|
| 465 |
+
\&\fIzlib\fR status code (\f(CW$status\fR). In a scalar context it returns the
|
| 466 |
+
inflation object only.
|
| 467 |
+
.PP
|
| 468 |
+
If successful, \f(CW$i\fR will hold the inflation object and \f(CW$status\fR will
|
| 469 |
+
be \f(CW\*(C`Z_OK\*(C'\fR.
|
| 470 |
+
.PP
|
| 471 |
+
If not successful, \f(CW$i\fR will be \fIundef\fR and \f(CW$status\fR will hold the
|
| 472 |
+
\&\fIzlib\fR error code.
|
| 473 |
+
.PP
|
| 474 |
+
The function optionally takes a number of named options specified as
|
| 475 |
+
\&\f(CW\*(C`\-Name => value\*(C'\fR pairs. This allows individual options to be
|
| 476 |
+
tailored without having to specify them all in the parameter list.
|
| 477 |
+
.PP
|
| 478 |
+
For backward compatibility, it is also possible to pass the parameters
|
| 479 |
+
as a reference to a hash containing the \f(CW\*(C`name=>value\*(C'\fR pairs.
|
| 480 |
+
.PP
|
| 481 |
+
Here is a list of the valid options:
|
| 482 |
+
.IP "\fB\-WindowBits\fR" 5
|
| 483 |
+
.IX Item "-WindowBits"
|
| 484 |
+
To uncompress an \s-1RFC 1950\s0 data stream, set \f(CW\*(C`WindowBits\*(C'\fR to a positive
|
| 485 |
+
number between 8 and 15.
|
| 486 |
+
.Sp
|
| 487 |
+
To uncompress an \s-1RFC 1951\s0 data stream, set \f(CW\*(C`WindowBits\*(C'\fR to \f(CW\*(C`\-MAX_WBITS\*(C'\fR.
|
| 488 |
+
.Sp
|
| 489 |
+
To uncompress an \s-1RFC 1952\s0 data stream (i.e. gzip), set \f(CW\*(C`WindowBits\*(C'\fR to
|
| 490 |
+
\&\f(CW\*(C`WANT_GZIP\*(C'\fR.
|
| 491 |
+
.Sp
|
| 492 |
+
To auto-detect and uncompress an \s-1RFC 1950\s0 or \s-1RFC 1952\s0 data stream (i.e.
|
| 493 |
+
gzip), set \f(CW\*(C`WindowBits\*(C'\fR to \f(CW\*(C`WANT_GZIP_OR_ZLIB\*(C'\fR.
|
| 494 |
+
.Sp
|
| 495 |
+
For a full definition of the meaning and valid values for \f(CW\*(C`WindowBits\*(C'\fR
|
| 496 |
+
refer to the \fIzlib\fR documentation for \fIinflateInit2\fR.
|
| 497 |
+
.Sp
|
| 498 |
+
Defaults to \f(CW\*(C`MAX_WBITS\*(C'\fR.
|
| 499 |
+
.IP "\fB\-Bufsize\fR" 5
|
| 500 |
+
.IX Item "-Bufsize"
|
| 501 |
+
Sets the initial size for the output buffer used by the \f(CW\*(C`$i\->inflate\*(C'\fR
|
| 502 |
+
method. If the output buffer in this method has to be reallocated to
|
| 503 |
+
increase the size, it will grow in increments of \f(CW\*(C`Bufsize\*(C'\fR.
|
| 504 |
+
.Sp
|
| 505 |
+
Default is 4096.
|
| 506 |
+
.IP "\fB\-Dictionary\fR" 5
|
| 507 |
+
.IX Item "-Dictionary"
|
| 508 |
+
The default is no dictionary.
|
| 509 |
+
.IP "\fB\-AppendOutput\fR" 5
|
| 510 |
+
.IX Item "-AppendOutput"
|
| 511 |
+
This option controls how data is written to the output buffer by the
|
| 512 |
+
\&\f(CW\*(C`$i\->inflate\*(C'\fR method.
|
| 513 |
+
.Sp
|
| 514 |
+
If the option is set to false, the output buffer in the \f(CW\*(C`$i\->inflate\*(C'\fR
|
| 515 |
+
method will be truncated before uncompressed data is written to it.
|
| 516 |
+
.Sp
|
| 517 |
+
If the option is set to true, uncompressed data will be appended to the
|
| 518 |
+
output buffer by the \f(CW\*(C`$i\->inflate\*(C'\fR method.
|
| 519 |
+
.Sp
|
| 520 |
+
This option defaults to false.
|
| 521 |
+
.IP "\fB\-CRC32\fR" 5
|
| 522 |
+
.IX Item "-CRC32"
|
| 523 |
+
If set to true, a crc32 checksum of the uncompressed data will be
|
| 524 |
+
calculated. Use the \f(CW\*(C`$i\->crc32\*(C'\fR method to retrieve this value.
|
| 525 |
+
.Sp
|
| 526 |
+
This option defaults to false.
|
| 527 |
+
.IP "\fB\-ADLER32\fR" 5
|
| 528 |
+
.IX Item "-ADLER32"
|
| 529 |
+
If set to true, an adler32 checksum of the uncompressed data will be
|
| 530 |
+
calculated. Use the \f(CW\*(C`$i\->adler32\*(C'\fR method to retrieve this value.
|
| 531 |
+
.Sp
|
| 532 |
+
This option defaults to false.
|
| 533 |
+
.IP "\fB\-ConsumeInput\fR" 5
|
| 534 |
+
.IX Item "-ConsumeInput"
|
| 535 |
+
If set to true, this option will remove compressed data from the input
|
| 536 |
+
buffer of the \f(CW\*(C`$i\->inflate\*(C'\fR method as the inflate progresses.
|
| 537 |
+
.Sp
|
| 538 |
+
This option can be useful when you are processing compressed data that is
|
| 539 |
+
embedded in another file/buffer. In this case the data that immediately
|
| 540 |
+
follows the compressed stream will be left in the input buffer.
|
| 541 |
+
.Sp
|
| 542 |
+
This option defaults to true.
|
| 543 |
+
.IP "\fB\-LimitOutput\fR" 5
|
| 544 |
+
.IX Item "-LimitOutput"
|
| 545 |
+
The \f(CW\*(C`LimitOutput\*(C'\fR option changes the behavior of the \f(CW\*(C`$i\->inflate\*(C'\fR
|
| 546 |
+
method so that the amount of memory used by the output buffer can be
|
| 547 |
+
limited.
|
| 548 |
+
.Sp
|
| 549 |
+
When \f(CW\*(C`LimitOutput\*(C'\fR is used the size of the output buffer used will either
|
| 550 |
+
be the value of the \f(CW\*(C`Bufsize\*(C'\fR option or the amount of memory already
|
| 551 |
+
allocated to \f(CW$output\fR, whichever is larger. Predicting the output size
|
| 552 |
+
available is tricky, so don't rely on getting an exact output buffer size.
|
| 553 |
+
.Sp
|
| 554 |
+
When \f(CW\*(C`LimitOutout\*(C'\fR is not specified \f(CW\*(C`$i\->inflate\*(C'\fR will use as much
|
| 555 |
+
memory as it takes to write all the uncompressed data it creates by
|
| 556 |
+
uncompressing the input buffer.
|
| 557 |
+
.Sp
|
| 558 |
+
If \f(CW\*(C`LimitOutput\*(C'\fR is enabled, the \f(CW\*(C`ConsumeInput\*(C'\fR option will also be
|
| 559 |
+
enabled.
|
| 560 |
+
.Sp
|
| 561 |
+
This option defaults to false.
|
| 562 |
+
.Sp
|
| 563 |
+
See \*(L"The LimitOutput option\*(R" for a discussion on why \f(CW\*(C`LimitOutput\*(C'\fR is
|
| 564 |
+
needed and how to use it.
|
| 565 |
+
.PP
|
| 566 |
+
Here is an example of using an optional parameter to override the default
|
| 567 |
+
buffer size.
|
| 568 |
+
.PP
|
| 569 |
+
.Vb 1
|
| 570 |
+
\& my ($i, $status) = new Compress::Raw::Zlib::Inflate( \-Bufsize => 300 ) ;
|
| 571 |
+
.Ve
|
| 572 |
+
.SS "\fB \fP\f(CB$status\fP\fB = \fP\f(CB$i\fP\fB\->inflate($input, \fP\f(CB$output\fP\fB [,$eof]) \fP"
|
| 573 |
+
.IX Subsection " $status = $i->inflate($input, $output [,$eof]) "
|
| 574 |
+
Inflates the complete contents of \f(CW$input\fR and writes the uncompressed
|
| 575 |
+
data to \f(CW$output\fR. The \f(CW$input\fR and \f(CW$output\fR parameters can either be
|
| 576 |
+
scalars or scalar references.
|
| 577 |
+
.PP
|
| 578 |
+
Returns \f(CW\*(C`Z_OK\*(C'\fR if successful and \f(CW\*(C`Z_STREAM_END\*(C'\fR if the end of the
|
| 579 |
+
compressed data has been successfully reached.
|
| 580 |
+
.PP
|
| 581 |
+
If not successful \f(CW$status\fR will hold the \fIzlib\fR error code.
|
| 582 |
+
.PP
|
| 583 |
+
If the \f(CW\*(C`ConsumeInput\*(C'\fR option has been set to true when the
|
| 584 |
+
\&\f(CW\*(C`Compress::Raw::Zlib::Inflate\*(C'\fR object is created, the \f(CW$input\fR parameter
|
| 585 |
+
is modified by \f(CW\*(C`inflate\*(C'\fR. On completion it will contain what remains
|
| 586 |
+
of the input buffer after inflation. In practice, this means that when
|
| 587 |
+
the return status is \f(CW\*(C`Z_OK\*(C'\fR the \f(CW$input\fR parameter will contain an
|
| 588 |
+
empty string, and when the return status is \f(CW\*(C`Z_STREAM_END\*(C'\fR the \f(CW$input\fR
|
| 589 |
+
parameter will contains what (if anything) was stored in the input buffer
|
| 590 |
+
after the deflated data stream.
|
| 591 |
+
.PP
|
| 592 |
+
This feature is useful when processing a file format that encapsulates
|
| 593 |
+
a compressed data stream (e.g. gzip, zip) and there is useful data
|
| 594 |
+
immediately after the deflation stream.
|
| 595 |
+
.PP
|
| 596 |
+
If the \f(CW\*(C`AppendOutput\*(C'\fR option is set to true in the constructor for
|
| 597 |
+
this object, the uncompressed data will be appended to \f(CW$output\fR. If
|
| 598 |
+
it is false, \f(CW$output\fR will be truncated before any uncompressed data
|
| 599 |
+
is written to it.
|
| 600 |
+
.PP
|
| 601 |
+
The \f(CW$eof\fR parameter needs a bit of explanation.
|
| 602 |
+
.PP
|
| 603 |
+
Prior to version 1.2.0, zlib assumed that there was at least one trailing
|
| 604 |
+
byte immediately after the compressed data stream when it was carrying out
|
| 605 |
+
decompression. This normally isn't a problem because the majority of zlib
|
| 606 |
+
applications guarantee that there will be data directly after the
|
| 607 |
+
compressed data stream. For example, both gzip (\s-1RFC 1950\s0) and zip both
|
| 608 |
+
define trailing data that follows the compressed data stream.
|
| 609 |
+
.PP
|
| 610 |
+
The \f(CW$eof\fR parameter only needs to be used if \fBall\fR of the following
|
| 611 |
+
conditions apply
|
| 612 |
+
.IP "1." 5
|
| 613 |
+
You are either using a copy of zlib that is older than version 1.2.0 or you
|
| 614 |
+
want your application code to be able to run with as many different
|
| 615 |
+
versions of zlib as possible.
|
| 616 |
+
.IP "2." 5
|
| 617 |
+
You have set the \f(CW\*(C`WindowBits\*(C'\fR parameter to \f(CW\*(C`\-MAX_WBITS\*(C'\fR in the constructor
|
| 618 |
+
for this object, i.e. you are uncompressing a raw deflated data stream
|
| 619 |
+
(\s-1RFC 1951\s0).
|
| 620 |
+
.IP "3." 5
|
| 621 |
+
There is no data immediately after the compressed data stream.
|
| 622 |
+
.PP
|
| 623 |
+
If \fBall\fR of these are the case, then you need to set the \f(CW$eof\fR parameter
|
| 624 |
+
to true on the final call (and only the final call) to \f(CW\*(C`$i\->inflate\*(C'\fR.
|
| 625 |
+
.PP
|
| 626 |
+
If you have built this module with zlib >= 1.2.0, the \f(CW$eof\fR parameter is
|
| 627 |
+
ignored. You can still set it if you want, but it won't be used behind the
|
| 628 |
+
scenes.
|
| 629 |
+
.SS "\fB\fP\f(CB$status\fP\fB = \fP\f(CB$i\fP\fB\->inflateSync($input)\fP"
|
| 630 |
+
.IX Subsection "$status = $i->inflateSync($input)"
|
| 631 |
+
This method can be used to attempt to recover good data from a compressed
|
| 632 |
+
data stream that is partially corrupt.
|
| 633 |
+
It scans \f(CW$input\fR until it reaches either a \fIfull flush point\fR or the
|
| 634 |
+
end of the buffer.
|
| 635 |
+
.PP
|
| 636 |
+
If a \fIfull flush point\fR is found, \f(CW\*(C`Z_OK\*(C'\fR is returned and \f(CW$input\fR
|
| 637 |
+
will be have all data up to the flush point removed. This data can then be
|
| 638 |
+
passed to the \f(CW\*(C`$i\->inflate\*(C'\fR method to be uncompressed.
|
| 639 |
+
.PP
|
| 640 |
+
Any other return code means that a flush point was not found. If more
|
| 641 |
+
data is available, \f(CW\*(C`inflateSync\*(C'\fR can be called repeatedly with more
|
| 642 |
+
compressed data until the flush point is found.
|
| 643 |
+
.PP
|
| 644 |
+
Note \fIfull flush points\fR are not present by default in compressed
|
| 645 |
+
data streams. They must have been added explicitly when the data stream
|
| 646 |
+
was created by calling \f(CW\*(C`Compress::Deflate::flush\*(C'\fR with \f(CW\*(C`Z_FULL_FLUSH\*(C'\fR.
|
| 647 |
+
.SS "\fB\fP\f(CB$status\fP\fB = \fP\f(CB$i\fP\fB\->inflateReset() \fP"
|
| 648 |
+
.IX Subsection "$status = $i->inflateReset() "
|
| 649 |
+
This method will reset the inflation object \f(CW$i\fR. It can be used when you
|
| 650 |
+
are uncompressing multiple data streams and want to use the same object to
|
| 651 |
+
uncompress each of them.
|
| 652 |
+
.PP
|
| 653 |
+
Returns \f(CW\*(C`Z_OK\*(C'\fR if successful.
|
| 654 |
+
.SS "\fB\fP\f(CB$i\fP\fB\->dict_adler()\fP"
|
| 655 |
+
.IX Subsection "$i->dict_adler()"
|
| 656 |
+
Returns the adler32 value for the dictionary.
|
| 657 |
+
.SS "\fB\fP\f(CB$i\fP\fB\->crc32()\fP"
|
| 658 |
+
.IX Subsection "$i->crc32()"
|
| 659 |
+
Returns the crc32 value for the uncompressed data to date.
|
| 660 |
+
.PP
|
| 661 |
+
If the \f(CW\*(C`CRC32\*(C'\fR option is not enabled in the constructor for this object,
|
| 662 |
+
this method will always return 0;
|
| 663 |
+
.SS "\fB\fP\f(CB$i\fP\fB\->adler32()\fP"
|
| 664 |
+
.IX Subsection "$i->adler32()"
|
| 665 |
+
Returns the adler32 value for the uncompressed data to date.
|
| 666 |
+
.PP
|
| 667 |
+
If the \f(CW\*(C`ADLER32\*(C'\fR option is not enabled in the constructor for this object,
|
| 668 |
+
this method will always return 0;
|
| 669 |
+
.SS "\fB\fP\f(CB$i\fP\fB\->msg()\fP"
|
| 670 |
+
.IX Subsection "$i->msg()"
|
| 671 |
+
Returns the last error message generated by zlib.
|
| 672 |
+
.SS "\fB\fP\f(CB$i\fP\fB\->total_in()\fP"
|
| 673 |
+
.IX Subsection "$i->total_in()"
|
| 674 |
+
Returns the total number of bytes compressed bytes input to inflate.
|
| 675 |
+
.SS "\fB\fP\f(CB$i\fP\fB\->total_out()\fP"
|
| 676 |
+
.IX Subsection "$i->total_out()"
|
| 677 |
+
Returns the total number of uncompressed bytes output from inflate.
|
| 678 |
+
.SS "\fB\fP\f(CB$d\fP\fB\->get_BufSize()\fP"
|
| 679 |
+
.IX Subsection "$d->get_BufSize()"
|
| 680 |
+
Returns the buffer size used to carry out the decompression.
|
| 681 |
+
.SS "Examples"
|
| 682 |
+
.IX Subsection "Examples"
|
| 683 |
+
Here is an example of using \f(CW\*(C`inflate\*(C'\fR.
|
| 684 |
+
.PP
|
| 685 |
+
.Vb 2
|
| 686 |
+
\& use strict ;
|
| 687 |
+
\& use warnings ;
|
| 688 |
+
\&
|
| 689 |
+
\& use Compress::Raw::Zlib;
|
| 690 |
+
\&
|
| 691 |
+
\& my $x = new Compress::Raw::Zlib::Inflate()
|
| 692 |
+
\& or die "Cannot create a inflation stream\en" ;
|
| 693 |
+
\&
|
| 694 |
+
\& my $input = \*(Aq\*(Aq ;
|
| 695 |
+
\& binmode STDIN;
|
| 696 |
+
\& binmode STDOUT;
|
| 697 |
+
\&
|
| 698 |
+
\& my ($output, $status) ;
|
| 699 |
+
\& while (read(STDIN, $input, 4096))
|
| 700 |
+
\& {
|
| 701 |
+
\& $status = $x\->inflate($input, $output) ;
|
| 702 |
+
\&
|
| 703 |
+
\& print $output ;
|
| 704 |
+
\&
|
| 705 |
+
\& last if $status != Z_OK ;
|
| 706 |
+
\& }
|
| 707 |
+
\&
|
| 708 |
+
\& die "inflation failed\en"
|
| 709 |
+
\& unless $status == Z_STREAM_END ;
|
| 710 |
+
.Ve
|
| 711 |
+
.PP
|
| 712 |
+
The next example show how to use the \f(CW\*(C`LimitOutput\*(C'\fR option. Notice the use
|
| 713 |
+
of two nested loops in this case. The outer loop reads the data from the
|
| 714 |
+
input source \- \s-1STDIN\s0 and the inner loop repeatedly calls \f(CW\*(C`inflate\*(C'\fR until
|
| 715 |
+
\&\f(CW$input\fR is exhausted, we get an error, or the end of the stream is
|
| 716 |
+
reached. One point worth remembering is by using the \f(CW\*(C`LimitOutput\*(C'\fR option
|
| 717 |
+
you also get \f(CW\*(C`ConsumeInput\*(C'\fR set as well \- this makes the code below much
|
| 718 |
+
simpler.
|
| 719 |
+
.PP
|
| 720 |
+
.Vb 2
|
| 721 |
+
\& use strict ;
|
| 722 |
+
\& use warnings ;
|
| 723 |
+
\&
|
| 724 |
+
\& use Compress::Raw::Zlib;
|
| 725 |
+
\&
|
| 726 |
+
\& my $x = new Compress::Raw::Zlib::Inflate(LimitOutput => 1)
|
| 727 |
+
\& or die "Cannot create a inflation stream\en" ;
|
| 728 |
+
\&
|
| 729 |
+
\& my $input = \*(Aq\*(Aq ;
|
| 730 |
+
\& binmode STDIN;
|
| 731 |
+
\& binmode STDOUT;
|
| 732 |
+
\&
|
| 733 |
+
\& my ($output, $status) ;
|
| 734 |
+
\&
|
| 735 |
+
\& OUTER:
|
| 736 |
+
\& while (read(STDIN, $input, 4096))
|
| 737 |
+
\& {
|
| 738 |
+
\& do
|
| 739 |
+
\& {
|
| 740 |
+
\& $status = $x\->inflate($input, $output) ;
|
| 741 |
+
\&
|
| 742 |
+
\& print $output ;
|
| 743 |
+
\&
|
| 744 |
+
\& last OUTER
|
| 745 |
+
\& unless $status == Z_OK || $status == Z_BUF_ERROR ;
|
| 746 |
+
\& }
|
| 747 |
+
\& while ($status == Z_OK && length $input);
|
| 748 |
+
\& }
|
| 749 |
+
\&
|
| 750 |
+
\& die "inflation failed\en"
|
| 751 |
+
\& unless $status == Z_STREAM_END ;
|
| 752 |
+
.Ve
|
| 753 |
+
.SH "CHECKSUM FUNCTIONS"
|
| 754 |
+
.IX Header "CHECKSUM FUNCTIONS"
|
| 755 |
+
Two functions are provided by \fIzlib\fR to calculate checksums. For the
|
| 756 |
+
Perl interface, the order of the two parameters in both functions has
|
| 757 |
+
been reversed. This allows both running checksums and one off
|
| 758 |
+
calculations to be done.
|
| 759 |
+
.PP
|
| 760 |
+
.Vb 2
|
| 761 |
+
\& $crc = adler32($buffer [,$crc]) ;
|
| 762 |
+
\& $crc = crc32($buffer [,$crc]) ;
|
| 763 |
+
.Ve
|
| 764 |
+
.PP
|
| 765 |
+
The buffer parameters can either be a scalar or a scalar reference.
|
| 766 |
+
.PP
|
| 767 |
+
If the \f(CW$crc\fR parameters is \f(CW\*(C`undef\*(C'\fR, the crc value will be reset.
|
| 768 |
+
.PP
|
| 769 |
+
If you have built this module with zlib 1.2.3 or better, two more
|
| 770 |
+
CRC-related functions are available.
|
| 771 |
+
.PP
|
| 772 |
+
.Vb 2
|
| 773 |
+
\& $crc = crc32_combine($crc1, $crc2, $len2);
|
| 774 |
+
\& $adler = adler32_combine($adler1, $adler2, $len2);
|
| 775 |
+
.Ve
|
| 776 |
+
.PP
|
| 777 |
+
These functions allow checksums to be merged.
|
| 778 |
+
Refer to the \fIzlib\fR documentation for more details.
|
| 779 |
+
.SH "Misc"
|
| 780 |
+
.IX Header "Misc"
|
| 781 |
+
.ie n .SS "my $version = \fBCompress::Raw::Zlib::zlib_version()\fP;"
|
| 782 |
+
.el .SS "my \f(CW$version\fP = \fBCompress::Raw::Zlib::zlib_version()\fP;"
|
| 783 |
+
.IX Subsection "my $version = Compress::Raw::Zlib::zlib_version();"
|
| 784 |
+
Returns the version of the zlib library.
|
| 785 |
+
.ie n .SS "my $flags = \fBCompress::Raw::Zlib::zlibCompileFlags()\fP;"
|
| 786 |
+
.el .SS "my \f(CW$flags\fP = \fBCompress::Raw::Zlib::zlibCompileFlags()\fP;"
|
| 787 |
+
.IX Subsection "my $flags = Compress::Raw::Zlib::zlibCompileFlags();"
|
| 788 |
+
Returns the flags indicating compile-time options that were used to build
|
| 789 |
+
the zlib library. See the zlib documentation for a description of the flags
|
| 790 |
+
returned by \f(CW\*(C`zlibCompileFlags\*(C'\fR.
|
| 791 |
+
.PP
|
| 792 |
+
Note that when the zlib sources are built along with this module the
|
| 793 |
+
\&\f(CW\*(C`sprintf\*(C'\fR flags (bits 24, 25 and 26) should be ignored.
|
| 794 |
+
.PP
|
| 795 |
+
If you are using zlib 1.2.0 or older, \f(CW\*(C`zlibCompileFlags\*(C'\fR will return 0.
|
| 796 |
+
.SH "The LimitOutput option."
|
| 797 |
+
.IX Header "The LimitOutput option."
|
| 798 |
+
By default \f(CW\*(C`$i\->inflate($input, $output)\*(C'\fR will uncompress \fIall\fR data
|
| 799 |
+
in \f(CW$input\fR and write \fIall\fR of the uncompressed data it has generated to
|
| 800 |
+
\&\f(CW$output\fR. This makes the interface to \f(CW\*(C`inflate\*(C'\fR much simpler \- if the
|
| 801 |
+
method has uncompressed \f(CW$input\fR successfully \fIall\fR compressed data in
|
| 802 |
+
\&\f(CW$input\fR will have been dealt with. So if you are reading from an input
|
| 803 |
+
source and uncompressing as you go the code will look something like this
|
| 804 |
+
.PP
|
| 805 |
+
.Vb 2
|
| 806 |
+
\& use strict ;
|
| 807 |
+
\& use warnings ;
|
| 808 |
+
\&
|
| 809 |
+
\& use Compress::Raw::Zlib;
|
| 810 |
+
\&
|
| 811 |
+
\& my $x = new Compress::Raw::Zlib::Inflate()
|
| 812 |
+
\& or die "Cannot create a inflation stream\en" ;
|
| 813 |
+
\&
|
| 814 |
+
\& my $input = \*(Aq\*(Aq ;
|
| 815 |
+
\&
|
| 816 |
+
\& my ($output, $status) ;
|
| 817 |
+
\& while (read(STDIN, $input, 4096))
|
| 818 |
+
\& {
|
| 819 |
+
\& $status = $x\->inflate($input, $output) ;
|
| 820 |
+
\&
|
| 821 |
+
\& print $output ;
|
| 822 |
+
\&
|
| 823 |
+
\& last if $status != Z_OK ;
|
| 824 |
+
\& }
|
| 825 |
+
\&
|
| 826 |
+
\& die "inflation failed\en"
|
| 827 |
+
\& unless $status == Z_STREAM_END ;
|
| 828 |
+
.Ve
|
| 829 |
+
.PP
|
| 830 |
+
The points to note are
|
| 831 |
+
.IP "\(bu" 5
|
| 832 |
+
The main processing loop in the code handles reading of compressed data
|
| 833 |
+
from \s-1STDIN.\s0
|
| 834 |
+
.IP "\(bu" 5
|
| 835 |
+
The status code returned from \f(CW\*(C`inflate\*(C'\fR will only trigger termination of
|
| 836 |
+
the main processing loop if it isn't \f(CW\*(C`Z_OK\*(C'\fR. When \f(CW\*(C`LimitOutput\*(C'\fR has not
|
| 837 |
+
been used the \f(CW\*(C`Z_OK\*(C'\fR status means that the end of the compressed
|
| 838 |
+
data stream has been reached or there has been an error in uncompression.
|
| 839 |
+
.IP "\(bu" 5
|
| 840 |
+
After the call to \f(CW\*(C`inflate\*(C'\fR \fIall\fR of the uncompressed data in \f(CW$input\fR
|
| 841 |
+
will have been processed. This means the subsequent call to \f(CW\*(C`read\*(C'\fR can
|
| 842 |
+
overwrite it's contents without any problem.
|
| 843 |
+
.PP
|
| 844 |
+
For most use-cases the behavior described above is acceptable (this module
|
| 845 |
+
and it's predecessor, \f(CW\*(C`Compress::Zlib\*(C'\fR, have used it for over 10 years
|
| 846 |
+
without an issue), but in a few very specific use-cases the amount of
|
| 847 |
+
memory required for \f(CW$output\fR can prohibitively large. For example, if the
|
| 848 |
+
compressed data stream contains the same pattern repeated thousands of
|
| 849 |
+
times, a relatively small compressed data stream can uncompress into
|
| 850 |
+
hundreds of megabytes. Remember \f(CW\*(C`inflate\*(C'\fR will keep allocating memory
|
| 851 |
+
until \fIall\fR the uncompressed data has been written to the output buffer \-
|
| 852 |
+
the size of \f(CW$output\fR is unbounded.
|
| 853 |
+
.PP
|
| 854 |
+
The \f(CW\*(C`LimitOutput\*(C'\fR option is designed to help with this use-case.
|
| 855 |
+
.PP
|
| 856 |
+
The main difference in your code when using \f(CW\*(C`LimitOutput\*(C'\fR is having to
|
| 857 |
+
deal with cases where the \f(CW$input\fR parameter still contains some
|
| 858 |
+
uncompressed data that \f(CW\*(C`inflate\*(C'\fR hasn't processed yet. The status code
|
| 859 |
+
returned from \f(CW\*(C`inflate\*(C'\fR will be \f(CW\*(C`Z_OK\*(C'\fR if uncompression took place and
|
| 860 |
+
\&\f(CW\*(C`Z_BUF_ERROR\*(C'\fR if the output buffer is full.
|
| 861 |
+
.PP
|
| 862 |
+
Below is typical code that shows how to use \f(CW\*(C`LimitOutput\*(C'\fR.
|
| 863 |
+
.PP
|
| 864 |
+
.Vb 2
|
| 865 |
+
\& use strict ;
|
| 866 |
+
\& use warnings ;
|
| 867 |
+
\&
|
| 868 |
+
\& use Compress::Raw::Zlib;
|
| 869 |
+
\&
|
| 870 |
+
\& my $x = new Compress::Raw::Zlib::Inflate(LimitOutput => 1)
|
| 871 |
+
\& or die "Cannot create a inflation stream\en" ;
|
| 872 |
+
\&
|
| 873 |
+
\& my $input = \*(Aq\*(Aq ;
|
| 874 |
+
\& binmode STDIN;
|
| 875 |
+
\& binmode STDOUT;
|
| 876 |
+
\&
|
| 877 |
+
\& my ($output, $status) ;
|
| 878 |
+
\&
|
| 879 |
+
\& OUTER:
|
| 880 |
+
\& while (read(STDIN, $input, 4096))
|
| 881 |
+
\& {
|
| 882 |
+
\& do
|
| 883 |
+
\& {
|
| 884 |
+
\& $status = $x\->inflate($input, $output) ;
|
| 885 |
+
\&
|
| 886 |
+
\& print $output ;
|
| 887 |
+
\&
|
| 888 |
+
\& last OUTER
|
| 889 |
+
\& unless $status == Z_OK || $status == Z_BUF_ERROR ;
|
| 890 |
+
\& }
|
| 891 |
+
\& while ($status == Z_OK && length $input);
|
| 892 |
+
\& }
|
| 893 |
+
\&
|
| 894 |
+
\& die "inflation failed\en"
|
| 895 |
+
\& unless $status == Z_STREAM_END ;
|
| 896 |
+
.Ve
|
| 897 |
+
.PP
|
| 898 |
+
Points to note this time:
|
| 899 |
+
.IP "\(bu" 5
|
| 900 |
+
There are now two nested loops in the code: the outer loop for reading the
|
| 901 |
+
compressed data from \s-1STDIN,\s0 as before; and the inner loop to carry out the
|
| 902 |
+
uncompression.
|
| 903 |
+
.IP "\(bu" 5
|
| 904 |
+
There are two exit points from the inner uncompression loop.
|
| 905 |
+
.Sp
|
| 906 |
+
Firstly when \f(CW\*(C`inflate\*(C'\fR has returned a status other than \f(CW\*(C`Z_OK\*(C'\fR or
|
| 907 |
+
\&\f(CW\*(C`Z_BUF_ERROR\*(C'\fR. This means that either the end of the compressed data
|
| 908 |
+
stream has been reached (\f(CW\*(C`Z_STREAM_END\*(C'\fR) or there is an error in the
|
| 909 |
+
compressed data. In either of these cases there is no point in continuing
|
| 910 |
+
with reading the compressed data, so both loops are terminated.
|
| 911 |
+
.Sp
|
| 912 |
+
The second exit point tests if there is any data left in the input buffer,
|
| 913 |
+
\&\f(CW$input\fR \- remember that the \f(CW\*(C`ConsumeInput\*(C'\fR option is automatically
|
| 914 |
+
enabled when \f(CW\*(C`LimitOutput\*(C'\fR is used. When the input buffer has been
|
| 915 |
+
exhausted, the outer loop can run again and overwrite a now empty
|
| 916 |
+
\&\f(CW$input\fR.
|
| 917 |
+
.SH "ACCESSING ZIP FILES"
|
| 918 |
+
.IX Header "ACCESSING ZIP FILES"
|
| 919 |
+
Although it is possible (with some effort on your part) to use this module
|
| 920 |
+
to access .zip files, there are other perl modules available that will do
|
| 921 |
+
all the hard work for you. Check out \f(CW\*(C`Archive::Zip\*(C'\fR,
|
| 922 |
+
\&\f(CW\*(C`Archive::Zip::SimpleZip\*(C'\fR, \f(CW\*(C`IO::Compress::Zip\*(C'\fR and
|
| 923 |
+
\&\f(CW\*(C`IO::Uncompress::Unzip\*(C'\fR.
|
| 924 |
+
.SH "FAQ"
|
| 925 |
+
.IX Header "FAQ"
|
| 926 |
+
.SS "Compatibility with Unix compress/uncompress."
|
| 927 |
+
.IX Subsection "Compatibility with Unix compress/uncompress."
|
| 928 |
+
This module is not compatible with Unix \f(CW\*(C`compress\*(C'\fR.
|
| 929 |
+
.PP
|
| 930 |
+
If you have the \f(CW\*(C`uncompress\*(C'\fR program available, you can use this to read
|
| 931 |
+
compressed files
|
| 932 |
+
.PP
|
| 933 |
+
.Vb 4
|
| 934 |
+
\& open F, "uncompress \-c $filename |";
|
| 935 |
+
\& while (<F>)
|
| 936 |
+
\& {
|
| 937 |
+
\& ...
|
| 938 |
+
.Ve
|
| 939 |
+
.PP
|
| 940 |
+
Alternatively, if you have the \f(CW\*(C`gunzip\*(C'\fR program available, you can use
|
| 941 |
+
this to read compressed files
|
| 942 |
+
.PP
|
| 943 |
+
.Vb 4
|
| 944 |
+
\& open F, "gunzip \-c $filename |";
|
| 945 |
+
\& while (<F>)
|
| 946 |
+
\& {
|
| 947 |
+
\& ...
|
| 948 |
+
.Ve
|
| 949 |
+
.PP
|
| 950 |
+
and this to write compress files, if you have the \f(CW\*(C`compress\*(C'\fR program
|
| 951 |
+
available
|
| 952 |
+
.PP
|
| 953 |
+
.Vb 4
|
| 954 |
+
\& open F, "| compress \-c $filename ";
|
| 955 |
+
\& print F "data";
|
| 956 |
+
\& ...
|
| 957 |
+
\& close F ;
|
| 958 |
+
.Ve
|
| 959 |
+
.SS "Accessing .tar.Z files"
|
| 960 |
+
.IX Subsection "Accessing .tar.Z files"
|
| 961 |
+
See previous \s-1FAQ\s0 item.
|
| 962 |
+
.PP
|
| 963 |
+
If the \f(CW\*(C`Archive::Tar\*(C'\fR module is installed and either the \f(CW\*(C`uncompress\*(C'\fR or
|
| 964 |
+
\&\f(CW\*(C`gunzip\*(C'\fR programs are available, you can use one of these workarounds to
|
| 965 |
+
read \f(CW\*(C`.tar.Z\*(C'\fR files.
|
| 966 |
+
.PP
|
| 967 |
+
Firstly with \f(CW\*(C`uncompress\*(C'\fR
|
| 968 |
+
.PP
|
| 969 |
+
.Vb 3
|
| 970 |
+
\& use strict;
|
| 971 |
+
\& use warnings;
|
| 972 |
+
\& use Archive::Tar;
|
| 973 |
+
\&
|
| 974 |
+
\& open F, "uncompress \-c $filename |";
|
| 975 |
+
\& my $tar = Archive::Tar\->new(*F);
|
| 976 |
+
\& ...
|
| 977 |
+
.Ve
|
| 978 |
+
.PP
|
| 979 |
+
and this with \f(CW\*(C`gunzip\*(C'\fR
|
| 980 |
+
.PP
|
| 981 |
+
.Vb 3
|
| 982 |
+
\& use strict;
|
| 983 |
+
\& use warnings;
|
| 984 |
+
\& use Archive::Tar;
|
| 985 |
+
\&
|
| 986 |
+
\& open F, "gunzip \-c $filename |";
|
| 987 |
+
\& my $tar = Archive::Tar\->new(*F);
|
| 988 |
+
\& ...
|
| 989 |
+
.Ve
|
| 990 |
+
.PP
|
| 991 |
+
Similarly, if the \f(CW\*(C`compress\*(C'\fR program is available, you can use this to
|
| 992 |
+
write a \f(CW\*(C`.tar.Z\*(C'\fR file
|
| 993 |
+
.PP
|
| 994 |
+
.Vb 4
|
| 995 |
+
\& use strict;
|
| 996 |
+
\& use warnings;
|
| 997 |
+
\& use Archive::Tar;
|
| 998 |
+
\& use IO::File;
|
| 999 |
+
\&
|
| 1000 |
+
\& my $fh = new IO::File "| compress \-c >$filename";
|
| 1001 |
+
\& my $tar = Archive::Tar\->new();
|
| 1002 |
+
\& ...
|
| 1003 |
+
\& $tar\->write($fh);
|
| 1004 |
+
\& $fh\->close ;
|
| 1005 |
+
.Ve
|
| 1006 |
+
.SS "Zlib Library Version Support"
|
| 1007 |
+
.IX Subsection "Zlib Library Version Support"
|
| 1008 |
+
By default \f(CW\*(C`Compress::Raw::Zlib\*(C'\fR will build with a private copy of version
|
| 1009 |
+
1.2.5 of the zlib library. (See the \fI\s-1README\s0\fR file for details of
|
| 1010 |
+
how to override this behaviour)
|
| 1011 |
+
.PP
|
| 1012 |
+
If you decide to use a different version of the zlib library, you need to be
|
| 1013 |
+
aware of the following issues
|
| 1014 |
+
.IP "\(bu" 5
|
| 1015 |
+
First off, you must have zlib 1.0.5 or better.
|
| 1016 |
+
.IP "\(bu" 5
|
| 1017 |
+
You need to have zlib 1.2.1 or better if you want to use the \f(CW\*(C`\-Merge\*(C'\fR
|
| 1018 |
+
option with \f(CW\*(C`IO::Compress::Gzip\*(C'\fR, \f(CW\*(C`IO::Compress::Deflate\*(C'\fR and
|
| 1019 |
+
\&\f(CW\*(C`IO::Compress::RawDeflate\*(C'\fR.
|
| 1020 |
+
.SH "CONSTANTS"
|
| 1021 |
+
.IX Header "CONSTANTS"
|
| 1022 |
+
All the \fIzlib\fR constants are automatically imported when you make use
|
| 1023 |
+
of \fICompress::Raw::Zlib\fR.
|
| 1024 |
+
.SH "SUPPORT"
|
| 1025 |
+
.IX Header "SUPPORT"
|
| 1026 |
+
General feedback/questions/bug reports should be sent to
|
| 1027 |
+
<https://github.com/pmqs/Compress\-Raw\-Zlib/issues> (preferred) or
|
| 1028 |
+
<https://rt.cpan.org/Public/Dist/Display.html?Name=Compress\-Raw\-Zlib>.
|
| 1029 |
+
.SH "SEE ALSO"
|
| 1030 |
+
.IX Header "SEE ALSO"
|
| 1031 |
+
Compress::Zlib, IO::Compress::Gzip, IO::Uncompress::Gunzip, IO::Compress::Deflate, IO::Uncompress::Inflate, IO::Compress::RawDeflate, IO::Uncompress::RawInflate, IO::Compress::Bzip2, IO::Uncompress::Bunzip2, IO::Compress::Lzma, IO::Uncompress::UnLzma, IO::Compress::Xz, IO::Uncompress::UnXz, IO::Compress::Lzip, IO::Uncompress::UnLzip, IO::Compress::Lzop, IO::Uncompress::UnLzop, IO::Compress::Lzf, IO::Uncompress::UnLzf, IO::Compress::Zstd, IO::Uncompress::UnZstd, IO::Uncompress::AnyInflate, IO::Uncompress::AnyUncompress
|
| 1032 |
+
.PP
|
| 1033 |
+
IO::Compress::FAQ
|
| 1034 |
+
.PP
|
| 1035 |
+
File::GlobMapper, Archive::Zip,
|
| 1036 |
+
Archive::Tar,
|
| 1037 |
+
IO::Zlib
|
| 1038 |
+
.PP
|
| 1039 |
+
For \s-1RFC 1950, 1951\s0 and 1952 see
|
| 1040 |
+
<http://www.faqs.org/rfcs/rfc1950.html>,
|
| 1041 |
+
<http://www.faqs.org/rfcs/rfc1951.html> and
|
| 1042 |
+
<http://www.faqs.org/rfcs/rfc1952.html>
|
| 1043 |
+
.PP
|
| 1044 |
+
The \fIzlib\fR compression library was written by Jean-loup Gailly
|
| 1045 |
+
\&\f(CW\*(C`gzip@prep.ai.mit.edu\*(C'\fR and Mark Adler \f(CW\*(C`madler@alumni.caltech.edu\*(C'\fR.
|
| 1046 |
+
.PP
|
| 1047 |
+
The primary site for the \fIzlib\fR compression library is
|
| 1048 |
+
<http://www.zlib.org>.
|
| 1049 |
+
.PP
|
| 1050 |
+
The primary site for gzip is <http://www.gzip.org>.
|
| 1051 |
+
.SH "AUTHOR"
|
| 1052 |
+
.IX Header "AUTHOR"
|
| 1053 |
+
This module was written by Paul Marquess, \f(CW\*(C`pmqs@cpan.org\*(C'\fR.
|
| 1054 |
+
.SH "MODIFICATION HISTORY"
|
| 1055 |
+
.IX Header "MODIFICATION HISTORY"
|
| 1056 |
+
See the Changes file.
|
| 1057 |
+
.SH "COPYRIGHT AND LICENSE"
|
| 1058 |
+
.IX Header "COPYRIGHT AND LICENSE"
|
| 1059 |
+
Copyright (c) 2005\-2019 Paul Marquess. All rights reserved.
|
| 1060 |
+
.PP
|
| 1061 |
+
This program is free software; you can redistribute it and/or
|
| 1062 |
+
modify it under the same terms as Perl itself.
|
data/miniconda3/man/man3/Compress%3A%3AZlib.3
ADDED
|
@@ -0,0 +1,968 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "Compress::Zlib 3"
|
| 136 |
+
.TH Compress::Zlib 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
Compress::Zlib \- Interface to zlib compression library
|
| 143 |
+
.SH "SYNOPSIS"
|
| 144 |
+
.IX Header "SYNOPSIS"
|
| 145 |
+
.Vb 1
|
| 146 |
+
\& use Compress::Zlib ;
|
| 147 |
+
\&
|
| 148 |
+
\& ($d, $status) = deflateInit( [OPT] ) ;
|
| 149 |
+
\& $status = $d\->deflate($input, $output) ;
|
| 150 |
+
\& $status = $d\->flush([$flush_type]) ;
|
| 151 |
+
\& $d\->deflateParams(OPTS) ;
|
| 152 |
+
\& $d\->deflateTune(OPTS) ;
|
| 153 |
+
\& $d\->dict_adler() ;
|
| 154 |
+
\& $d\->crc32() ;
|
| 155 |
+
\& $d\->adler32() ;
|
| 156 |
+
\& $d\->total_in() ;
|
| 157 |
+
\& $d\->total_out() ;
|
| 158 |
+
\& $d\->msg() ;
|
| 159 |
+
\& $d\->get_Strategy();
|
| 160 |
+
\& $d\->get_Level();
|
| 161 |
+
\& $d\->get_BufSize();
|
| 162 |
+
\&
|
| 163 |
+
\& ($i, $status) = inflateInit( [OPT] ) ;
|
| 164 |
+
\& $status = $i\->inflate($input, $output [, $eof]) ;
|
| 165 |
+
\& $status = $i\->inflateSync($input) ;
|
| 166 |
+
\& $i\->dict_adler() ;
|
| 167 |
+
\& $d\->crc32() ;
|
| 168 |
+
\& $d\->adler32() ;
|
| 169 |
+
\& $i\->total_in() ;
|
| 170 |
+
\& $i\->total_out() ;
|
| 171 |
+
\& $i\->msg() ;
|
| 172 |
+
\& $d\->get_BufSize();
|
| 173 |
+
\&
|
| 174 |
+
\& $dest = compress($source) ;
|
| 175 |
+
\& $dest = uncompress($source) ;
|
| 176 |
+
\&
|
| 177 |
+
\& $gz = gzopen($filename or filehandle, $mode) ;
|
| 178 |
+
\& $bytesread = $gz\->gzread($buffer [,$size]) ;
|
| 179 |
+
\& $bytesread = $gz\->gzreadline($line) ;
|
| 180 |
+
\& $byteswritten = $gz\->gzwrite($buffer) ;
|
| 181 |
+
\& $status = $gz\->gzflush($flush) ;
|
| 182 |
+
\& $offset = $gz\->gztell() ;
|
| 183 |
+
\& $status = $gz\->gzseek($offset, $whence) ;
|
| 184 |
+
\& $status = $gz\->gzclose() ;
|
| 185 |
+
\& $status = $gz\->gzeof() ;
|
| 186 |
+
\& $status = $gz\->gzsetparams($level, $strategy) ;
|
| 187 |
+
\& $errstring = $gz\->gzerror() ;
|
| 188 |
+
\& $gzerrno
|
| 189 |
+
\&
|
| 190 |
+
\& $dest = Compress::Zlib::memGzip($buffer) ;
|
| 191 |
+
\& $dest = Compress::Zlib::memGunzip($buffer) ;
|
| 192 |
+
\&
|
| 193 |
+
\& $crc = adler32($buffer [,$crc]) ;
|
| 194 |
+
\& $crc = crc32($buffer [,$crc]) ;
|
| 195 |
+
\&
|
| 196 |
+
\& $crc = crc32_combine($crc1, $crc2, $len2);
|
| 197 |
+
\& $adler = adler32_combine($adler1, $adler2, $len2);
|
| 198 |
+
\&
|
| 199 |
+
\& my $version = Compress::Raw::Zlib::zlib_version();
|
| 200 |
+
.Ve
|
| 201 |
+
.SH "DESCRIPTION"
|
| 202 |
+
.IX Header "DESCRIPTION"
|
| 203 |
+
The \fICompress::Zlib\fR module provides a Perl interface to the \fIzlib\fR
|
| 204 |
+
compression library (see \*(L"\s-1AUTHOR\*(R"\s0 for details about where to get
|
| 205 |
+
\&\fIzlib\fR).
|
| 206 |
+
.PP
|
| 207 |
+
The \f(CW\*(C`Compress::Zlib\*(C'\fR module can be split into two general areas of
|
| 208 |
+
functionality, namely a simple read/write interface to \fIgzip\fR files
|
| 209 |
+
and a low-level in-memory compression/decompression interface.
|
| 210 |
+
.PP
|
| 211 |
+
Each of these areas will be discussed in the following sections.
|
| 212 |
+
.SS "Notes for users of Compress::Zlib version 1"
|
| 213 |
+
.IX Subsection "Notes for users of Compress::Zlib version 1"
|
| 214 |
+
The main change in \f(CW\*(C`Compress::Zlib\*(C'\fR version 2.x is that it does not now
|
| 215 |
+
interface directly to the zlib library. Instead it uses the
|
| 216 |
+
\&\f(CW\*(C`IO::Compress::Gzip\*(C'\fR and \f(CW\*(C`IO::Uncompress::Gunzip\*(C'\fR modules for
|
| 217 |
+
reading/writing gzip files, and the \f(CW\*(C`Compress::Raw::Zlib\*(C'\fR module for some
|
| 218 |
+
low-level zlib access.
|
| 219 |
+
.PP
|
| 220 |
+
The interface provided by version 2 of this module should be 100% backward
|
| 221 |
+
compatible with version 1. If you find a difference in the expected
|
| 222 |
+
behaviour please contact the author (See \*(L"\s-1AUTHOR\*(R"\s0). See \*(L"\s-1GZIP INTERFACE\*(R"\s0
|
| 223 |
+
.PP
|
| 224 |
+
With the creation of the \f(CW\*(C`IO::Compress\*(C'\fR and \f(CW\*(C`IO::Uncompress\*(C'\fR modules no
|
| 225 |
+
new features are planned for \f(CW\*(C`Compress::Zlib\*(C'\fR \- the new modules do
|
| 226 |
+
everything that \f(CW\*(C`Compress::Zlib\*(C'\fR does and then some. Development on
|
| 227 |
+
\&\f(CW\*(C`Compress::Zlib\*(C'\fR will be limited to bug fixes only.
|
| 228 |
+
.PP
|
| 229 |
+
If you are writing new code, your first port of call should be one of the
|
| 230 |
+
new \f(CW\*(C`IO::Compress\*(C'\fR or \f(CW\*(C`IO::Uncompress\*(C'\fR modules.
|
| 231 |
+
.SH "GZIP INTERFACE"
|
| 232 |
+
.IX Header "GZIP INTERFACE"
|
| 233 |
+
A number of functions are supplied in \fIzlib\fR for reading and writing
|
| 234 |
+
\&\fIgzip\fR files that conform to \s-1RFC 1952.\s0 This module provides an interface
|
| 235 |
+
to most of them.
|
| 236 |
+
.PP
|
| 237 |
+
If you have previously used \f(CW\*(C`Compress::Zlib\*(C'\fR 1.x, the following
|
| 238 |
+
enhancements/changes have been made to the \f(CW\*(C`gzopen\*(C'\fR interface:
|
| 239 |
+
.IP "1." 5
|
| 240 |
+
If you want to open either \s-1STDIN\s0 or \s-1STDOUT\s0 with \f(CW\*(C`gzopen\*(C'\fR, you can now
|
| 241 |
+
optionally use the special filename "\f(CW\*(C`\-\*(C'\fR" as a synonym for \f(CW\*(C`\e*STDIN\*(C'\fR and
|
| 242 |
+
\&\f(CW\*(C`\e*STDOUT\*(C'\fR.
|
| 243 |
+
.IP "2." 5
|
| 244 |
+
In \f(CW\*(C`Compress::Zlib\*(C'\fR version 1.x, \f(CW\*(C`gzopen\*(C'\fR used the zlib library to open
|
| 245 |
+
the underlying file. This made things especially tricky when a Perl
|
| 246 |
+
filehandle was passed to \f(CW\*(C`gzopen\*(C'\fR. Behind the scenes the numeric C file
|
| 247 |
+
descriptor had to be extracted from the Perl filehandle and this passed to
|
| 248 |
+
the zlib library.
|
| 249 |
+
.Sp
|
| 250 |
+
Apart from being non-portable to some operating systems, this made it
|
| 251 |
+
difficult to use \f(CW\*(C`gzopen\*(C'\fR in situations where you wanted to extract/create
|
| 252 |
+
a gzip data stream that is embedded in a larger file, without having to
|
| 253 |
+
resort to opening and closing the file multiple times.
|
| 254 |
+
.Sp
|
| 255 |
+
It also made it impossible to pass a perl filehandle that wasn't associated
|
| 256 |
+
with a real filesystem file, like, say, an \f(CW\*(C`IO::String\*(C'\fR.
|
| 257 |
+
.Sp
|
| 258 |
+
In \f(CW\*(C`Compress::Zlib\*(C'\fR version 2.x, the \f(CW\*(C`gzopen\*(C'\fR interface has been
|
| 259 |
+
completely rewritten to use the IO::Compress::Gzip
|
| 260 |
+
for writing gzip files and IO::Uncompress::Gunzip
|
| 261 |
+
for reading gzip files. None of the limitations mentioned above apply.
|
| 262 |
+
.IP "3." 5
|
| 263 |
+
Addition of \f(CW\*(C`gzseek\*(C'\fR to provide a restricted \f(CW\*(C`seek\*(C'\fR interface.
|
| 264 |
+
.IP "4." 5
|
| 265 |
+
Added \f(CW\*(C`gztell\*(C'\fR.
|
| 266 |
+
.PP
|
| 267 |
+
A more complete and flexible interface for reading/writing gzip
|
| 268 |
+
files/buffers is included with the module \f(CW\*(C`IO\-Compress\-Zlib\*(C'\fR. See
|
| 269 |
+
IO::Compress::Gzip and
|
| 270 |
+
IO::Uncompress::Gunzip for more details.
|
| 271 |
+
.IP "\fB\f(CB$gz\fB = gzopen($filename, \f(CB$mode\fB)\fR" 5
|
| 272 |
+
.IX Item "$gz = gzopen($filename, $mode)"
|
| 273 |
+
.PD 0
|
| 274 |
+
.IP "\fB\f(CB$gz\fB = gzopen($filehandle, \f(CB$mode\fB)\fR" 5
|
| 275 |
+
.IX Item "$gz = gzopen($filehandle, $mode)"
|
| 276 |
+
.PD
|
| 277 |
+
This function opens either the \fIgzip\fR file \f(CW$filename\fR for reading or
|
| 278 |
+
writing or attaches to the opened filehandle, \f(CW$filehandle\fR.
|
| 279 |
+
It returns an object on success and \f(CW\*(C`undef\*(C'\fR on failure.
|
| 280 |
+
.Sp
|
| 281 |
+
When writing a gzip file this interface will \fIalways\fR create the smallest
|
| 282 |
+
possible gzip header (exactly 10 bytes). If you want greater control over
|
| 283 |
+
what gets stored in the gzip header (like the original filename or a
|
| 284 |
+
comment) use IO::Compress::Gzip instead. Similarly if
|
| 285 |
+
you want to read the contents of the gzip header use
|
| 286 |
+
IO::Uncompress::Gunzip.
|
| 287 |
+
.Sp
|
| 288 |
+
The second parameter, \f(CW$mode\fR, is used to specify whether the file is
|
| 289 |
+
opened for reading or writing and to optionally specify a compression
|
| 290 |
+
level and compression strategy when writing. The format of the \f(CW$mode\fR
|
| 291 |
+
parameter is similar to the mode parameter to the 'C' function \f(CW\*(C`fopen\*(C'\fR,
|
| 292 |
+
so \*(L"rb\*(R" is used to open for reading, \*(L"wb\*(R" for writing and \*(L"ab\*(R" for
|
| 293 |
+
appending (writing at the end of the file).
|
| 294 |
+
.Sp
|
| 295 |
+
To specify a compression level when writing, append a digit between 0
|
| 296 |
+
and 9 to the mode string \*(-- 0 means no compression and 9 means maximum
|
| 297 |
+
compression.
|
| 298 |
+
If no compression level is specified Z_DEFAULT_COMPRESSION is used.
|
| 299 |
+
.Sp
|
| 300 |
+
To specify the compression strategy when writing, append 'f' for filtered
|
| 301 |
+
data, 'h' for Huffman only compression, or 'R' for run-length encoding.
|
| 302 |
+
If no strategy is specified Z_DEFAULT_STRATEGY is used.
|
| 303 |
+
.Sp
|
| 304 |
+
So, for example, \*(L"wb9\*(R" means open for writing with the maximum compression
|
| 305 |
+
using the default strategy and \*(L"wb4R\*(R" means open for writing with compression
|
| 306 |
+
level 4 and run-length encoding.
|
| 307 |
+
.Sp
|
| 308 |
+
Refer to the \fIzlib\fR documentation for the exact format of the \f(CW$mode\fR
|
| 309 |
+
parameter.
|
| 310 |
+
.IP "\fB\f(CB$bytesread\fB = \f(CB$gz\fB\->gzread($buffer [, \f(CB$size\fB]) ;\fR" 5
|
| 311 |
+
.IX Item "$bytesread = $gz->gzread($buffer [, $size]) ;"
|
| 312 |
+
Reads \f(CW$size\fR bytes from the compressed file into \f(CW$buffer\fR. If
|
| 313 |
+
\&\f(CW$size\fR is not specified, it will default to 4096. If the scalar
|
| 314 |
+
\&\f(CW$buffer\fR is not large enough, it will be extended automatically.
|
| 315 |
+
.Sp
|
| 316 |
+
Returns the number of bytes actually read. On \s-1EOF\s0 it returns 0 and in
|
| 317 |
+
the case of an error, \-1.
|
| 318 |
+
.IP "\fB\f(CB$bytesread\fB = \f(CB$gz\fB\->gzreadline($line) ;\fR" 5
|
| 319 |
+
.IX Item "$bytesread = $gz->gzreadline($line) ;"
|
| 320 |
+
Reads the next line from the compressed file into \f(CW$line\fR.
|
| 321 |
+
.Sp
|
| 322 |
+
Returns the number of bytes actually read. On \s-1EOF\s0 it returns 0 and in
|
| 323 |
+
the case of an error, \-1.
|
| 324 |
+
.Sp
|
| 325 |
+
It is legal to intermix calls to \f(CW\*(C`gzread\*(C'\fR and \f(CW\*(C`gzreadline\*(C'\fR.
|
| 326 |
+
.Sp
|
| 327 |
+
To maintain backward compatibility with version 1.x of this module
|
| 328 |
+
\&\f(CW\*(C`gzreadline\*(C'\fR ignores the \f(CW$/\fR variable \- it \fIalways\fR uses the string
|
| 329 |
+
\&\f(CW"\en"\fR as the line delimiter.
|
| 330 |
+
.Sp
|
| 331 |
+
If you want to read a gzip file a line at a time and have it respect the
|
| 332 |
+
\&\f(CW$/\fR variable (or \f(CW$INPUT_RECORD_SEPARATOR\fR, or \f(CW$RS\fR when \f(CW\*(C`English\*(C'\fR is
|
| 333 |
+
in use) see IO::Uncompress::Gunzip.
|
| 334 |
+
.IP "\fB\f(CB$byteswritten\fB = \f(CB$gz\fB\->gzwrite($buffer) ;\fR" 5
|
| 335 |
+
.IX Item "$byteswritten = $gz->gzwrite($buffer) ;"
|
| 336 |
+
Writes the contents of \f(CW$buffer\fR to the compressed file. Returns the
|
| 337 |
+
number of bytes actually written, or 0 on error.
|
| 338 |
+
.IP "\fB\f(CB$status\fB = \f(CB$gz\fB\->gzflush($flush_type) ;\fR" 5
|
| 339 |
+
.IX Item "$status = $gz->gzflush($flush_type) ;"
|
| 340 |
+
Flushes all pending output into the compressed file.
|
| 341 |
+
.Sp
|
| 342 |
+
This method takes an optional parameter, \f(CW$flush_type\fR, that controls
|
| 343 |
+
how the flushing will be carried out. By default the \f(CW$flush_type\fR
|
| 344 |
+
used is \f(CW\*(C`Z_FINISH\*(C'\fR. Other valid values for \f(CW$flush_type\fR are
|
| 345 |
+
\&\f(CW\*(C`Z_NO_FLUSH\*(C'\fR, \f(CW\*(C`Z_SYNC_FLUSH\*(C'\fR, \f(CW\*(C`Z_FULL_FLUSH\*(C'\fR and \f(CW\*(C`Z_BLOCK\*(C'\fR. It is
|
| 346 |
+
strongly recommended that you only set the \f(CW\*(C`flush_type\*(C'\fR parameter if
|
| 347 |
+
you fully understand the implications of what it does \- overuse of \f(CW\*(C`flush\*(C'\fR
|
| 348 |
+
can seriously degrade the level of compression achieved. See the \f(CW\*(C`zlib\*(C'\fR
|
| 349 |
+
documentation for details.
|
| 350 |
+
.Sp
|
| 351 |
+
Returns 0 on success.
|
| 352 |
+
.IP "\fB\f(CB$offset\fB = \f(CB$gz\fB\->\fBgztell()\fB ;\fR" 5
|
| 353 |
+
.IX Item "$offset = $gz->gztell() ;"
|
| 354 |
+
Returns the uncompressed file offset.
|
| 355 |
+
.IP "\fB\f(CB$status\fB = \f(CB$gz\fB\->gzseek($offset, \f(CB$whence\fB) ;\fR" 5
|
| 356 |
+
.IX Item "$status = $gz->gzseek($offset, $whence) ;"
|
| 357 |
+
Provides a sub-set of the \f(CW\*(C`seek\*(C'\fR functionality, with the restriction
|
| 358 |
+
that it is only legal to seek forward in the compressed file.
|
| 359 |
+
It is a fatal error to attempt to seek backward.
|
| 360 |
+
.Sp
|
| 361 |
+
When opened for writing, empty parts of the file will have \s-1NULL\s0 (0x00)
|
| 362 |
+
bytes written to them.
|
| 363 |
+
.Sp
|
| 364 |
+
The \f(CW$whence\fR parameter should be one of \s-1SEEK_SET, SEEK_CUR\s0 or \s-1SEEK_END.\s0
|
| 365 |
+
.Sp
|
| 366 |
+
Returns 1 on success, 0 on failure.
|
| 367 |
+
.IP "\fB\f(CB$gz\fB\->gzclose\fR" 5
|
| 368 |
+
.IX Item "$gz->gzclose"
|
| 369 |
+
Closes the compressed file. Any pending data is flushed to the file
|
| 370 |
+
before it is closed.
|
| 371 |
+
.Sp
|
| 372 |
+
Returns 0 on success.
|
| 373 |
+
.IP "\fB\f(CB$gz\fB\->gzsetparams($level, \f(CB$strategy\fB\fR" 5
|
| 374 |
+
.IX Item "$gz->gzsetparams($level, $strategy"
|
| 375 |
+
Change settings for the deflate stream \f(CW$gz\fR.
|
| 376 |
+
.Sp
|
| 377 |
+
The list of the valid options is shown below. Options not specified
|
| 378 |
+
will remain unchanged.
|
| 379 |
+
.Sp
|
| 380 |
+
Note: This method is only available if you are running zlib 1.0.6 or better.
|
| 381 |
+
.RS 5
|
| 382 |
+
.IP "\fB\f(CB$level\fB\fR" 5
|
| 383 |
+
.IX Item "$level"
|
| 384 |
+
Defines the compression level. Valid values are 0 through 9,
|
| 385 |
+
\&\f(CW\*(C`Z_NO_COMPRESSION\*(C'\fR, \f(CW\*(C`Z_BEST_SPEED\*(C'\fR, \f(CW\*(C`Z_BEST_COMPRESSION\*(C'\fR, and
|
| 386 |
+
\&\f(CW\*(C`Z_DEFAULT_COMPRESSION\*(C'\fR.
|
| 387 |
+
.IP "\fB\f(CB$strategy\fB\fR" 5
|
| 388 |
+
.IX Item "$strategy"
|
| 389 |
+
Defines the strategy used to tune the compression. The valid values are
|
| 390 |
+
\&\f(CW\*(C`Z_DEFAULT_STRATEGY\*(C'\fR, \f(CW\*(C`Z_FILTERED\*(C'\fR and \f(CW\*(C`Z_HUFFMAN_ONLY\*(C'\fR.
|
| 391 |
+
.RE
|
| 392 |
+
.RS 5
|
| 393 |
+
.RE
|
| 394 |
+
.IP "\fB\f(CB$gz\fB\->gzerror\fR" 5
|
| 395 |
+
.IX Item "$gz->gzerror"
|
| 396 |
+
Returns the \fIzlib\fR error message or number for the last operation
|
| 397 |
+
associated with \f(CW$gz\fR. The return value will be the \fIzlib\fR error
|
| 398 |
+
number when used in a numeric context and the \fIzlib\fR error message
|
| 399 |
+
when used in a string context. The \fIzlib\fR error number constants,
|
| 400 |
+
shown below, are available for use.
|
| 401 |
+
.Sp
|
| 402 |
+
.Vb 7
|
| 403 |
+
\& Z_OK
|
| 404 |
+
\& Z_STREAM_END
|
| 405 |
+
\& Z_ERRNO
|
| 406 |
+
\& Z_STREAM_ERROR
|
| 407 |
+
\& Z_DATA_ERROR
|
| 408 |
+
\& Z_MEM_ERROR
|
| 409 |
+
\& Z_BUF_ERROR
|
| 410 |
+
.Ve
|
| 411 |
+
.IP "\fB\f(CB$gzerrno\fB\fR" 5
|
| 412 |
+
.IX Item "$gzerrno"
|
| 413 |
+
The \f(CW$gzerrno\fR scalar holds the error code associated with the most
|
| 414 |
+
recent \fIgzip\fR routine. Note that unlike \f(CW\*(C`gzerror()\*(C'\fR, the error is
|
| 415 |
+
\&\fInot\fR associated with a particular file.
|
| 416 |
+
.Sp
|
| 417 |
+
As with \f(CW\*(C`gzerror()\*(C'\fR it returns an error number in numeric context and
|
| 418 |
+
an error message in string context. Unlike \f(CW\*(C`gzerror()\*(C'\fR though, the
|
| 419 |
+
error message will correspond to the \fIzlib\fR message when the error is
|
| 420 |
+
associated with \fIzlib\fR itself, or the \s-1UNIX\s0 error message when it is
|
| 421 |
+
not (i.e. \fIzlib\fR returned \f(CW\*(C`Z_ERRORNO\*(C'\fR).
|
| 422 |
+
.Sp
|
| 423 |
+
As there is an overlap between the error numbers used by \fIzlib\fR and
|
| 424 |
+
\&\s-1UNIX,\s0 \f(CW$gzerrno\fR should only be used to check for the presence of
|
| 425 |
+
\&\fIan\fR error in numeric context. Use \f(CW\*(C`gzerror()\*(C'\fR to check for specific
|
| 426 |
+
\&\fIzlib\fR errors. The \fIgzcat\fR example below shows how the variable can
|
| 427 |
+
be used safely.
|
| 428 |
+
.SS "Examples"
|
| 429 |
+
.IX Subsection "Examples"
|
| 430 |
+
Here is an example script which uses the interface. It implements a
|
| 431 |
+
\&\fIgzcat\fR function.
|
| 432 |
+
.PP
|
| 433 |
+
.Vb 2
|
| 434 |
+
\& use strict ;
|
| 435 |
+
\& use warnings ;
|
| 436 |
+
\&
|
| 437 |
+
\& use Compress::Zlib ;
|
| 438 |
+
\&
|
| 439 |
+
\& # use stdin if no files supplied
|
| 440 |
+
\& @ARGV = \*(Aq\-\*(Aq unless @ARGV ;
|
| 441 |
+
\&
|
| 442 |
+
\& foreach my $file (@ARGV) {
|
| 443 |
+
\& my $buffer ;
|
| 444 |
+
\&
|
| 445 |
+
\& my $gz = gzopen($file, "rb")
|
| 446 |
+
\& or die "Cannot open $file: $gzerrno\en" ;
|
| 447 |
+
\&
|
| 448 |
+
\& print $buffer while $gz\->gzread($buffer) > 0 ;
|
| 449 |
+
\&
|
| 450 |
+
\& die "Error reading from $file: $gzerrno" . ($gzerrno+0) . "\en"
|
| 451 |
+
\& if $gzerrno != Z_STREAM_END ;
|
| 452 |
+
\&
|
| 453 |
+
\& $gz\->gzclose() ;
|
| 454 |
+
\& }
|
| 455 |
+
.Ve
|
| 456 |
+
.PP
|
| 457 |
+
Below is a script which makes use of \f(CW\*(C`gzreadline\*(C'\fR. It implements a
|
| 458 |
+
very simple \fIgrep\fR like script.
|
| 459 |
+
.PP
|
| 460 |
+
.Vb 2
|
| 461 |
+
\& use strict ;
|
| 462 |
+
\& use warnings ;
|
| 463 |
+
\&
|
| 464 |
+
\& use Compress::Zlib ;
|
| 465 |
+
\&
|
| 466 |
+
\& die "Usage: gzgrep pattern [file...]\en"
|
| 467 |
+
\& unless @ARGV >= 1;
|
| 468 |
+
\&
|
| 469 |
+
\& my $pattern = shift ;
|
| 470 |
+
\&
|
| 471 |
+
\& # use stdin if no files supplied
|
| 472 |
+
\& @ARGV = \*(Aq\-\*(Aq unless @ARGV ;
|
| 473 |
+
\&
|
| 474 |
+
\& foreach my $file (@ARGV) {
|
| 475 |
+
\& my $gz = gzopen($file, "rb")
|
| 476 |
+
\& or die "Cannot open $file: $gzerrno\en" ;
|
| 477 |
+
\&
|
| 478 |
+
\& while ($gz\->gzreadline($_) > 0) {
|
| 479 |
+
\& print if /$pattern/ ;
|
| 480 |
+
\& }
|
| 481 |
+
\&
|
| 482 |
+
\& die "Error reading from $file: $gzerrno\en"
|
| 483 |
+
\& if $gzerrno != Z_STREAM_END ;
|
| 484 |
+
\&
|
| 485 |
+
\& $gz\->gzclose() ;
|
| 486 |
+
\& }
|
| 487 |
+
.Ve
|
| 488 |
+
.PP
|
| 489 |
+
This script, \fIgzstream\fR, does the opposite of the \fIgzcat\fR script
|
| 490 |
+
above. It reads from standard input and writes a gzip data stream to
|
| 491 |
+
standard output.
|
| 492 |
+
.PP
|
| 493 |
+
.Vb 2
|
| 494 |
+
\& use strict ;
|
| 495 |
+
\& use warnings ;
|
| 496 |
+
\&
|
| 497 |
+
\& use Compress::Zlib ;
|
| 498 |
+
\&
|
| 499 |
+
\& binmode STDOUT; # gzopen only sets it on the fd
|
| 500 |
+
\&
|
| 501 |
+
\& my $gz = gzopen(\e*STDOUT, "wb")
|
| 502 |
+
\& or die "Cannot open stdout: $gzerrno\en" ;
|
| 503 |
+
\&
|
| 504 |
+
\& while (<>) {
|
| 505 |
+
\& $gz\->gzwrite($_)
|
| 506 |
+
\& or die "error writing: $gzerrno\en" ;
|
| 507 |
+
\& }
|
| 508 |
+
\&
|
| 509 |
+
\& $gz\->gzclose ;
|
| 510 |
+
.Ve
|
| 511 |
+
.SS "Compress::Zlib::memGzip"
|
| 512 |
+
.IX Subsection "Compress::Zlib::memGzip"
|
| 513 |
+
This function is used to create an in-memory gzip file with the minimum
|
| 514 |
+
possible gzip header (exactly 10 bytes).
|
| 515 |
+
.PP
|
| 516 |
+
.Vb 2
|
| 517 |
+
\& $dest = Compress::Zlib::memGzip($buffer)
|
| 518 |
+
\& or die "Cannot compress: $gzerrno\en";
|
| 519 |
+
.Ve
|
| 520 |
+
.PP
|
| 521 |
+
If successful, it returns the in-memory gzip file. Otherwise it returns
|
| 522 |
+
\&\f(CW\*(C`undef\*(C'\fR and the \f(CW$gzerrno\fR variable will store the zlib error code.
|
| 523 |
+
.PP
|
| 524 |
+
The \f(CW$buffer\fR parameter can either be a scalar or a scalar reference.
|
| 525 |
+
.PP
|
| 526 |
+
See IO::Compress::Gzip for an alternative way to
|
| 527 |
+
carry out in-memory gzip compression.
|
| 528 |
+
.SS "Compress::Zlib::memGunzip"
|
| 529 |
+
.IX Subsection "Compress::Zlib::memGunzip"
|
| 530 |
+
This function is used to uncompress an in-memory gzip file.
|
| 531 |
+
.PP
|
| 532 |
+
.Vb 2
|
| 533 |
+
\& $dest = Compress::Zlib::memGunzip($buffer)
|
| 534 |
+
\& or die "Cannot uncompress: $gzerrno\en";
|
| 535 |
+
.Ve
|
| 536 |
+
.PP
|
| 537 |
+
If successful, it returns the uncompressed gzip file. Otherwise it
|
| 538 |
+
returns \f(CW\*(C`undef\*(C'\fR and the \f(CW$gzerrno\fR variable will store the zlib error
|
| 539 |
+
code.
|
| 540 |
+
.PP
|
| 541 |
+
The \f(CW$buffer\fR parameter can either be a scalar or a scalar reference. The
|
| 542 |
+
contents of the \f(CW$buffer\fR parameter are destroyed after calling this function.
|
| 543 |
+
.PP
|
| 544 |
+
If \f(CW$buffer\fR consists of multiple concatenated gzip data streams only the
|
| 545 |
+
first will be uncompressed. Use \f(CW\*(C`gunzip\*(C'\fR with the \f(CW\*(C`MultiStream\*(C'\fR option in
|
| 546 |
+
the \f(CW\*(C`IO::Uncompress::Gunzip\*(C'\fR module if you need to deal with concatenated
|
| 547 |
+
data streams.
|
| 548 |
+
.PP
|
| 549 |
+
See IO::Uncompress::Gunzip for an alternative way
|
| 550 |
+
to carry out in-memory gzip uncompression.
|
| 551 |
+
.SH "COMPRESS/UNCOMPRESS"
|
| 552 |
+
.IX Header "COMPRESS/UNCOMPRESS"
|
| 553 |
+
Two functions are provided to perform in-memory compression/uncompression of
|
| 554 |
+
\&\s-1RFC 1950\s0 data streams. They are called \f(CW\*(C`compress\*(C'\fR and \f(CW\*(C`uncompress\*(C'\fR.
|
| 555 |
+
.IP "\fB\f(CB$dest\fB = compress($source [, \f(CB$level\fB] ) ;\fR" 5
|
| 556 |
+
.IX Item "$dest = compress($source [, $level] ) ;"
|
| 557 |
+
Compresses \f(CW$source\fR. If successful it returns the compressed
|
| 558 |
+
data. Otherwise it returns \fIundef\fR.
|
| 559 |
+
.Sp
|
| 560 |
+
The source buffer, \f(CW$source\fR, can either be a scalar or a scalar
|
| 561 |
+
reference.
|
| 562 |
+
.Sp
|
| 563 |
+
The \f(CW$level\fR parameter defines the compression level. Valid values are
|
| 564 |
+
0 through 9, \f(CW\*(C`Z_NO_COMPRESSION\*(C'\fR, \f(CW\*(C`Z_BEST_SPEED\*(C'\fR,
|
| 565 |
+
\&\f(CW\*(C`Z_BEST_COMPRESSION\*(C'\fR, and \f(CW\*(C`Z_DEFAULT_COMPRESSION\*(C'\fR.
|
| 566 |
+
If \f(CW$level\fR is not specified \f(CW\*(C`Z_DEFAULT_COMPRESSION\*(C'\fR will be used.
|
| 567 |
+
.IP "\fB\f(CB$dest\fB = uncompress($source) ;\fR" 5
|
| 568 |
+
.IX Item "$dest = uncompress($source) ;"
|
| 569 |
+
Uncompresses \f(CW$source\fR. If successful it returns the uncompressed
|
| 570 |
+
data. Otherwise it returns \fIundef\fR.
|
| 571 |
+
.Sp
|
| 572 |
+
The source buffer can either be a scalar or a scalar reference.
|
| 573 |
+
.PP
|
| 574 |
+
Please note: the two functions defined above are \fInot\fR compatible with
|
| 575 |
+
the Unix commands of the same name.
|
| 576 |
+
.PP
|
| 577 |
+
See IO::Deflate and IO::Inflate included with
|
| 578 |
+
this distribution for an alternative interface for reading/writing \s-1RFC 1950\s0
|
| 579 |
+
files/buffers.
|
| 580 |
+
.SH "Deflate Interface"
|
| 581 |
+
.IX Header "Deflate Interface"
|
| 582 |
+
This section defines an interface that allows in-memory compression using
|
| 583 |
+
the \fIdeflate\fR interface provided by zlib.
|
| 584 |
+
.PP
|
| 585 |
+
Here is a definition of the interface available:
|
| 586 |
+
.SS "\fB($d, \fP\f(CB$status\fP\fB) = deflateInit( [\s-1OPT\s0] )\fP"
|
| 587 |
+
.IX Subsection "($d, $status) = deflateInit( [OPT] )"
|
| 588 |
+
Initialises a deflation stream.
|
| 589 |
+
.PP
|
| 590 |
+
It combines the features of the \fIzlib\fR functions \f(CW\*(C`deflateInit\*(C'\fR,
|
| 591 |
+
\&\f(CW\*(C`deflateInit2\*(C'\fR and \f(CW\*(C`deflateSetDictionary\*(C'\fR.
|
| 592 |
+
.PP
|
| 593 |
+
If successful, it will return the initialised deflation stream, \f(CW$d\fR
|
| 594 |
+
and \f(CW$status\fR of \f(CW\*(C`Z_OK\*(C'\fR in a list context. In scalar context it
|
| 595 |
+
returns the deflation stream, \f(CW$d\fR, only.
|
| 596 |
+
.PP
|
| 597 |
+
If not successful, the returned deflation stream (\f(CW$d\fR) will be
|
| 598 |
+
\&\fIundef\fR and \f(CW$status\fR will hold the exact \fIzlib\fR error code.
|
| 599 |
+
.PP
|
| 600 |
+
The function optionally takes a number of named options specified as
|
| 601 |
+
\&\f(CW\*(C`\-Name=>value\*(C'\fR pairs. This allows individual options to be
|
| 602 |
+
tailored without having to specify them all in the parameter list.
|
| 603 |
+
.PP
|
| 604 |
+
For backward compatibility, it is also possible to pass the parameters
|
| 605 |
+
as a reference to a hash containing the name=>value pairs.
|
| 606 |
+
.PP
|
| 607 |
+
The function takes one optional parameter, a reference to a hash. The
|
| 608 |
+
contents of the hash allow the deflation interface to be tailored.
|
| 609 |
+
.PP
|
| 610 |
+
Here is a list of the valid options:
|
| 611 |
+
.IP "\fB\-Level\fR" 5
|
| 612 |
+
.IX Item "-Level"
|
| 613 |
+
Defines the compression level. Valid values are 0 through 9,
|
| 614 |
+
\&\f(CW\*(C`Z_NO_COMPRESSION\*(C'\fR, \f(CW\*(C`Z_BEST_SPEED\*(C'\fR, \f(CW\*(C`Z_BEST_COMPRESSION\*(C'\fR, and
|
| 615 |
+
\&\f(CW\*(C`Z_DEFAULT_COMPRESSION\*(C'\fR.
|
| 616 |
+
.Sp
|
| 617 |
+
The default is Z_DEFAULT_COMPRESSION.
|
| 618 |
+
.IP "\fB\-Method\fR" 5
|
| 619 |
+
.IX Item "-Method"
|
| 620 |
+
Defines the compression method. The only valid value at present (and
|
| 621 |
+
the default) is Z_DEFLATED.
|
| 622 |
+
.IP "\fB\-WindowBits\fR" 5
|
| 623 |
+
.IX Item "-WindowBits"
|
| 624 |
+
To create an \s-1RFC 1950\s0 data stream, set \f(CW\*(C`WindowBits\*(C'\fR to a positive number.
|
| 625 |
+
.Sp
|
| 626 |
+
To create an \s-1RFC 1951\s0 data stream, set \f(CW\*(C`WindowBits\*(C'\fR to \f(CW\*(C`\-MAX_WBITS\*(C'\fR.
|
| 627 |
+
.Sp
|
| 628 |
+
For a full definition of the meaning and valid values for \f(CW\*(C`WindowBits\*(C'\fR refer
|
| 629 |
+
to the \fIzlib\fR documentation for \fIdeflateInit2\fR.
|
| 630 |
+
.Sp
|
| 631 |
+
Defaults to \s-1MAX_WBITS.\s0
|
| 632 |
+
.IP "\fB\-MemLevel\fR" 5
|
| 633 |
+
.IX Item "-MemLevel"
|
| 634 |
+
For a definition of the meaning and valid values for \f(CW\*(C`MemLevel\*(C'\fR
|
| 635 |
+
refer to the \fIzlib\fR documentation for \fIdeflateInit2\fR.
|
| 636 |
+
.Sp
|
| 637 |
+
Defaults to \s-1MAX_MEM_LEVEL.\s0
|
| 638 |
+
.IP "\fB\-Strategy\fR" 5
|
| 639 |
+
.IX Item "-Strategy"
|
| 640 |
+
Defines the strategy used to tune the compression. The valid values are
|
| 641 |
+
\&\f(CW\*(C`Z_DEFAULT_STRATEGY\*(C'\fR, \f(CW\*(C`Z_FILTERED\*(C'\fR and \f(CW\*(C`Z_HUFFMAN_ONLY\*(C'\fR.
|
| 642 |
+
.Sp
|
| 643 |
+
The default is Z_DEFAULT_STRATEGY.
|
| 644 |
+
.IP "\fB\-Dictionary\fR" 5
|
| 645 |
+
.IX Item "-Dictionary"
|
| 646 |
+
When a dictionary is specified \fICompress::Zlib\fR will automatically
|
| 647 |
+
call \f(CW\*(C`deflateSetDictionary\*(C'\fR directly after calling \f(CW\*(C`deflateInit\*(C'\fR. The
|
| 648 |
+
Adler32 value for the dictionary can be obtained by calling the method
|
| 649 |
+
\&\f(CW\*(C`$d\->dict_adler()\*(C'\fR.
|
| 650 |
+
.Sp
|
| 651 |
+
The default is no dictionary.
|
| 652 |
+
.IP "\fB\-Bufsize\fR" 5
|
| 653 |
+
.IX Item "-Bufsize"
|
| 654 |
+
Sets the initial size for the deflation buffer. If the buffer has to be
|
| 655 |
+
reallocated to increase the size, it will grow in increments of
|
| 656 |
+
\&\f(CW\*(C`Bufsize\*(C'\fR.
|
| 657 |
+
.Sp
|
| 658 |
+
The default is 4096.
|
| 659 |
+
.PP
|
| 660 |
+
Here is an example of using the \f(CW\*(C`deflateInit\*(C'\fR optional parameter list
|
| 661 |
+
to override the default buffer size and compression level. All other
|
| 662 |
+
options will take their default values.
|
| 663 |
+
.PP
|
| 664 |
+
.Vb 2
|
| 665 |
+
\& deflateInit( \-Bufsize => 300,
|
| 666 |
+
\& \-Level => Z_BEST_SPEED ) ;
|
| 667 |
+
.Ve
|
| 668 |
+
.SS "\fB($out, \fP\f(CB$status\fP\fB) = \fP\f(CB$d\fP\fB\->deflate($buffer)\fP"
|
| 669 |
+
.IX Subsection "($out, $status) = $d->deflate($buffer)"
|
| 670 |
+
Deflates the contents of \f(CW$buffer\fR. The buffer can either be a scalar
|
| 671 |
+
or a scalar reference. When finished, \f(CW$buffer\fR will be
|
| 672 |
+
completely processed (assuming there were no errors). If the deflation
|
| 673 |
+
was successful it returns the deflated output, \f(CW$out\fR, and a status
|
| 674 |
+
value, \f(CW$status\fR, of \f(CW\*(C`Z_OK\*(C'\fR.
|
| 675 |
+
.PP
|
| 676 |
+
On error, \f(CW$out\fR will be \fIundef\fR and \f(CW$status\fR will contain the
|
| 677 |
+
\&\fIzlib\fR error code.
|
| 678 |
+
.PP
|
| 679 |
+
In a scalar context \f(CW\*(C`deflate\*(C'\fR will return \f(CW$out\fR only.
|
| 680 |
+
.PP
|
| 681 |
+
As with the \fIdeflate\fR function in \fIzlib\fR, it is not necessarily the
|
| 682 |
+
case that any output will be produced by this method. So don't rely on
|
| 683 |
+
the fact that \f(CW$out\fR is empty for an error test.
|
| 684 |
+
.SS "\fB($out, \fP\f(CB$status\fP\fB) = \fP\f(CB$d\fP\fB\->flush()\fP =head2 \fB($out, \fP\f(CB$status\fP\fB) = \fP\f(CB$d\fP\fB\->flush($flush_type)\fP"
|
| 685 |
+
.IX Subsection "($out, $status) = $d->flush() =head2 ($out, $status) = $d->flush($flush_type)"
|
| 686 |
+
Typically used to finish the deflation. Any pending output will be
|
| 687 |
+
returned via \f(CW$out\fR.
|
| 688 |
+
\&\f(CW$status\fR will have a value \f(CW\*(C`Z_OK\*(C'\fR if successful.
|
| 689 |
+
.PP
|
| 690 |
+
In a scalar context \f(CW\*(C`flush\*(C'\fR will return \f(CW$out\fR only.
|
| 691 |
+
.PP
|
| 692 |
+
Note that flushing can seriously degrade the compression ratio, so it
|
| 693 |
+
should only be used to terminate a decompression (using \f(CW\*(C`Z_FINISH\*(C'\fR) or
|
| 694 |
+
when you want to create a \fIfull flush point\fR (using \f(CW\*(C`Z_FULL_FLUSH\*(C'\fR).
|
| 695 |
+
.PP
|
| 696 |
+
By default the \f(CW\*(C`flush_type\*(C'\fR used is \f(CW\*(C`Z_FINISH\*(C'\fR. Other valid values
|
| 697 |
+
for \f(CW\*(C`flush_type\*(C'\fR are \f(CW\*(C`Z_NO_FLUSH\*(C'\fR, \f(CW\*(C`Z_PARTIAL_FLUSH\*(C'\fR, \f(CW\*(C`Z_SYNC_FLUSH\*(C'\fR
|
| 698 |
+
and \f(CW\*(C`Z_FULL_FLUSH\*(C'\fR. It is strongly recommended that you only set the
|
| 699 |
+
\&\f(CW\*(C`flush_type\*(C'\fR parameter if you fully understand the implications of
|
| 700 |
+
what it does. See the \f(CW\*(C`zlib\*(C'\fR documentation for details.
|
| 701 |
+
.SS "\fB\fP\f(CB$status\fP\fB = \fP\f(CB$d\fP\fB\->deflateParams([\s-1OPT\s0])\fP"
|
| 702 |
+
.IX Subsection "$status = $d->deflateParams([OPT])"
|
| 703 |
+
Change settings for the deflate stream \f(CW$d\fR.
|
| 704 |
+
.PP
|
| 705 |
+
The list of the valid options is shown below. Options not specified
|
| 706 |
+
will remain unchanged.
|
| 707 |
+
.IP "\fB\-Level\fR" 5
|
| 708 |
+
.IX Item "-Level"
|
| 709 |
+
Defines the compression level. Valid values are 0 through 9,
|
| 710 |
+
\&\f(CW\*(C`Z_NO_COMPRESSION\*(C'\fR, \f(CW\*(C`Z_BEST_SPEED\*(C'\fR, \f(CW\*(C`Z_BEST_COMPRESSION\*(C'\fR, and
|
| 711 |
+
\&\f(CW\*(C`Z_DEFAULT_COMPRESSION\*(C'\fR.
|
| 712 |
+
.IP "\fB\-Strategy\fR" 5
|
| 713 |
+
.IX Item "-Strategy"
|
| 714 |
+
Defines the strategy used to tune the compression. The valid values are
|
| 715 |
+
\&\f(CW\*(C`Z_DEFAULT_STRATEGY\*(C'\fR, \f(CW\*(C`Z_FILTERED\*(C'\fR and \f(CW\*(C`Z_HUFFMAN_ONLY\*(C'\fR.
|
| 716 |
+
.SS "\fB\fP\f(CB$d\fP\fB\->dict_adler()\fP"
|
| 717 |
+
.IX Subsection "$d->dict_adler()"
|
| 718 |
+
Returns the adler32 value for the dictionary.
|
| 719 |
+
.SS "\fB\fP\f(CB$d\fP\fB\->msg()\fP"
|
| 720 |
+
.IX Subsection "$d->msg()"
|
| 721 |
+
Returns the last error message generated by zlib.
|
| 722 |
+
.SS "\fB\fP\f(CB$d\fP\fB\->total_in()\fP"
|
| 723 |
+
.IX Subsection "$d->total_in()"
|
| 724 |
+
Returns the total number of bytes uncompressed bytes input to deflate.
|
| 725 |
+
.SS "\fB\fP\f(CB$d\fP\fB\->total_out()\fP"
|
| 726 |
+
.IX Subsection "$d->total_out()"
|
| 727 |
+
Returns the total number of compressed bytes output from deflate.
|
| 728 |
+
.SS "Example"
|
| 729 |
+
.IX Subsection "Example"
|
| 730 |
+
Here is a trivial example of using \f(CW\*(C`deflate\*(C'\fR. It simply reads standard
|
| 731 |
+
input, deflates it and writes it to standard output.
|
| 732 |
+
.PP
|
| 733 |
+
.Vb 2
|
| 734 |
+
\& use strict ;
|
| 735 |
+
\& use warnings ;
|
| 736 |
+
\&
|
| 737 |
+
\& use Compress::Zlib ;
|
| 738 |
+
\&
|
| 739 |
+
\& binmode STDIN;
|
| 740 |
+
\& binmode STDOUT;
|
| 741 |
+
\& my $x = deflateInit()
|
| 742 |
+
\& or die "Cannot create a deflation stream\en" ;
|
| 743 |
+
\&
|
| 744 |
+
\& my ($output, $status) ;
|
| 745 |
+
\& while (<>)
|
| 746 |
+
\& {
|
| 747 |
+
\& ($output, $status) = $x\->deflate($_) ;
|
| 748 |
+
\&
|
| 749 |
+
\& $status == Z_OK
|
| 750 |
+
\& or die "deflation failed\en" ;
|
| 751 |
+
\&
|
| 752 |
+
\& print $output ;
|
| 753 |
+
\& }
|
| 754 |
+
\&
|
| 755 |
+
\& ($output, $status) = $x\->flush() ;
|
| 756 |
+
\&
|
| 757 |
+
\& $status == Z_OK
|
| 758 |
+
\& or die "deflation failed\en" ;
|
| 759 |
+
\&
|
| 760 |
+
\& print $output ;
|
| 761 |
+
.Ve
|
| 762 |
+
.SH "Inflate Interface"
|
| 763 |
+
.IX Header "Inflate Interface"
|
| 764 |
+
This section defines the interface available that allows in-memory
|
| 765 |
+
uncompression using the \fIdeflate\fR interface provided by zlib.
|
| 766 |
+
.PP
|
| 767 |
+
Here is a definition of the interface:
|
| 768 |
+
.SS "\fB($i, \fP\f(CB$status\fP\fB) = inflateInit()\fP"
|
| 769 |
+
.IX Subsection "($i, $status) = inflateInit()"
|
| 770 |
+
Initialises an inflation stream.
|
| 771 |
+
.PP
|
| 772 |
+
In a list context it returns the inflation stream, \f(CW$i\fR, and the
|
| 773 |
+
\&\fIzlib\fR status code in \f(CW$status\fR. In a scalar context it returns the
|
| 774 |
+
inflation stream only.
|
| 775 |
+
.PP
|
| 776 |
+
If successful, \f(CW$i\fR will hold the inflation stream and \f(CW$status\fR will
|
| 777 |
+
be \f(CW\*(C`Z_OK\*(C'\fR.
|
| 778 |
+
.PP
|
| 779 |
+
If not successful, \f(CW$i\fR will be \fIundef\fR and \f(CW$status\fR will hold the
|
| 780 |
+
\&\fIzlib\fR error code.
|
| 781 |
+
.PP
|
| 782 |
+
The function optionally takes a number of named options specified as
|
| 783 |
+
\&\f(CW\*(C`\-Name=>value\*(C'\fR pairs. This allows individual options to be
|
| 784 |
+
tailored without having to specify them all in the parameter list.
|
| 785 |
+
.PP
|
| 786 |
+
For backward compatibility, it is also possible to pass the parameters
|
| 787 |
+
as a reference to a hash containing the name=>value pairs.
|
| 788 |
+
.PP
|
| 789 |
+
The function takes one optional parameter, a reference to a hash. The
|
| 790 |
+
contents of the hash allow the deflation interface to be tailored.
|
| 791 |
+
.PP
|
| 792 |
+
Here is a list of the valid options:
|
| 793 |
+
.IP "\fB\-WindowBits\fR" 5
|
| 794 |
+
.IX Item "-WindowBits"
|
| 795 |
+
To uncompress an \s-1RFC 1950\s0 data stream, set \f(CW\*(C`WindowBits\*(C'\fR to a positive number.
|
| 796 |
+
.Sp
|
| 797 |
+
To uncompress an \s-1RFC 1951\s0 data stream, set \f(CW\*(C`WindowBits\*(C'\fR to \f(CW\*(C`\-MAX_WBITS\*(C'\fR.
|
| 798 |
+
.Sp
|
| 799 |
+
For a full definition of the meaning and valid values for \f(CW\*(C`WindowBits\*(C'\fR refer
|
| 800 |
+
to the \fIzlib\fR documentation for \fIinflateInit2\fR.
|
| 801 |
+
.Sp
|
| 802 |
+
Defaults to \s-1MAX_WBITS.\s0
|
| 803 |
+
.IP "\fB\-Bufsize\fR" 5
|
| 804 |
+
.IX Item "-Bufsize"
|
| 805 |
+
Sets the initial size for the inflation buffer. If the buffer has to be
|
| 806 |
+
reallocated to increase the size, it will grow in increments of
|
| 807 |
+
\&\f(CW\*(C`Bufsize\*(C'\fR.
|
| 808 |
+
.Sp
|
| 809 |
+
Default is 4096.
|
| 810 |
+
.IP "\fB\-Dictionary\fR" 5
|
| 811 |
+
.IX Item "-Dictionary"
|
| 812 |
+
The default is no dictionary.
|
| 813 |
+
.PP
|
| 814 |
+
Here is an example of using the \f(CW\*(C`inflateInit\*(C'\fR optional parameter to
|
| 815 |
+
override the default buffer size.
|
| 816 |
+
.PP
|
| 817 |
+
.Vb 1
|
| 818 |
+
\& inflateInit( \-Bufsize => 300 ) ;
|
| 819 |
+
.Ve
|
| 820 |
+
.SS "\fB($out, \fP\f(CB$status\fP\fB) = \fP\f(CB$i\fP\fB\->inflate($buffer)\fP"
|
| 821 |
+
.IX Subsection "($out, $status) = $i->inflate($buffer)"
|
| 822 |
+
Inflates the complete contents of \f(CW$buffer\fR. The buffer can either be
|
| 823 |
+
a scalar or a scalar reference.
|
| 824 |
+
.PP
|
| 825 |
+
Returns \f(CW\*(C`Z_OK\*(C'\fR if successful and \f(CW\*(C`Z_STREAM_END\*(C'\fR if the end of the
|
| 826 |
+
compressed data has been successfully reached.
|
| 827 |
+
If not successful, \f(CW$out\fR will be \fIundef\fR and \f(CW$status\fR will hold
|
| 828 |
+
the \fIzlib\fR error code.
|
| 829 |
+
.PP
|
| 830 |
+
The \f(CW$buffer\fR parameter is modified by \f(CW\*(C`inflate\*(C'\fR. On completion it
|
| 831 |
+
will contain what remains of the input buffer after inflation. This
|
| 832 |
+
means that \f(CW$buffer\fR will be an empty string when the return status is
|
| 833 |
+
\&\f(CW\*(C`Z_OK\*(C'\fR. When the return status is \f(CW\*(C`Z_STREAM_END\*(C'\fR the \f(CW$buffer\fR
|
| 834 |
+
parameter will contains what (if anything) was stored in the input
|
| 835 |
+
buffer after the deflated data stream.
|
| 836 |
+
.PP
|
| 837 |
+
This feature is useful when processing a file format that encapsulates
|
| 838 |
+
a compressed data stream (e.g. gzip, zip).
|
| 839 |
+
.SS "\fB\fP\f(CB$status\fP\fB = \fP\f(CB$i\fP\fB\->inflateSync($buffer)\fP"
|
| 840 |
+
.IX Subsection "$status = $i->inflateSync($buffer)"
|
| 841 |
+
Scans \f(CW$buffer\fR until it reaches either a \fIfull flush point\fR or the
|
| 842 |
+
end of the buffer.
|
| 843 |
+
.PP
|
| 844 |
+
If a \fIfull flush point\fR is found, \f(CW\*(C`Z_OK\*(C'\fR is returned and \f(CW$buffer\fR
|
| 845 |
+
will be have all data up to the flush point removed. This can then be
|
| 846 |
+
passed to the \f(CW\*(C`deflate\*(C'\fR method.
|
| 847 |
+
.PP
|
| 848 |
+
Any other return code means that a flush point was not found. If more
|
| 849 |
+
data is available, \f(CW\*(C`inflateSync\*(C'\fR can be called repeatedly with more
|
| 850 |
+
compressed data until the flush point is found.
|
| 851 |
+
.SS "\fB\fP\f(CB$i\fP\fB\->dict_adler()\fP"
|
| 852 |
+
.IX Subsection "$i->dict_adler()"
|
| 853 |
+
Returns the adler32 value for the dictionary.
|
| 854 |
+
.SS "\fB\fP\f(CB$i\fP\fB\->msg()\fP"
|
| 855 |
+
.IX Subsection "$i->msg()"
|
| 856 |
+
Returns the last error message generated by zlib.
|
| 857 |
+
.SS "\fB\fP\f(CB$i\fP\fB\->total_in()\fP"
|
| 858 |
+
.IX Subsection "$i->total_in()"
|
| 859 |
+
Returns the total number of bytes compressed bytes input to inflate.
|
| 860 |
+
.SS "\fB\fP\f(CB$i\fP\fB\->total_out()\fP"
|
| 861 |
+
.IX Subsection "$i->total_out()"
|
| 862 |
+
Returns the total number of uncompressed bytes output from inflate.
|
| 863 |
+
.SS "Example"
|
| 864 |
+
.IX Subsection "Example"
|
| 865 |
+
Here is an example of using \f(CW\*(C`inflate\*(C'\fR.
|
| 866 |
+
.PP
|
| 867 |
+
.Vb 2
|
| 868 |
+
\& use strict ;
|
| 869 |
+
\& use warnings ;
|
| 870 |
+
\&
|
| 871 |
+
\& use Compress::Zlib ;
|
| 872 |
+
\&
|
| 873 |
+
\& my $x = inflateInit()
|
| 874 |
+
\& or die "Cannot create a inflation stream\en" ;
|
| 875 |
+
\&
|
| 876 |
+
\& my $input = \*(Aq\*(Aq ;
|
| 877 |
+
\& binmode STDIN;
|
| 878 |
+
\& binmode STDOUT;
|
| 879 |
+
\&
|
| 880 |
+
\& my ($output, $status) ;
|
| 881 |
+
\& while (read(STDIN, $input, 4096))
|
| 882 |
+
\& {
|
| 883 |
+
\& ($output, $status) = $x\->inflate(\e$input) ;
|
| 884 |
+
\&
|
| 885 |
+
\& print $output
|
| 886 |
+
\& if $status == Z_OK or $status == Z_STREAM_END ;
|
| 887 |
+
\&
|
| 888 |
+
\& last if $status != Z_OK ;
|
| 889 |
+
\& }
|
| 890 |
+
\&
|
| 891 |
+
\& die "inflation failed\en"
|
| 892 |
+
\& unless $status == Z_STREAM_END ;
|
| 893 |
+
.Ve
|
| 894 |
+
.SH "CHECKSUM FUNCTIONS"
|
| 895 |
+
.IX Header "CHECKSUM FUNCTIONS"
|
| 896 |
+
Two functions are provided by \fIzlib\fR to calculate checksums. For the
|
| 897 |
+
Perl interface, the order of the two parameters in both functions has
|
| 898 |
+
been reversed. This allows both running checksums and one off
|
| 899 |
+
calculations to be done.
|
| 900 |
+
.PP
|
| 901 |
+
.Vb 2
|
| 902 |
+
\& $crc = adler32($buffer [,$crc]) ;
|
| 903 |
+
\& $crc = crc32($buffer [,$crc]) ;
|
| 904 |
+
.Ve
|
| 905 |
+
.PP
|
| 906 |
+
The buffer parameters can either be a scalar or a scalar reference.
|
| 907 |
+
.PP
|
| 908 |
+
If the \f(CW$crc\fR parameters is \f(CW\*(C`undef\*(C'\fR, the crc value will be reset.
|
| 909 |
+
.PP
|
| 910 |
+
If you have built this module with zlib 1.2.3 or better, two more
|
| 911 |
+
CRC-related functions are available.
|
| 912 |
+
.PP
|
| 913 |
+
.Vb 2
|
| 914 |
+
\& $crc = crc32_combine($crc1, $crc2, $len2);
|
| 915 |
+
\& $adler = adler32_combine($adler1, $adler2, $len2);
|
| 916 |
+
.Ve
|
| 917 |
+
.PP
|
| 918 |
+
These functions allow checksums to be merged.
|
| 919 |
+
Refer to the \fIzlib\fR documentation for more details.
|
| 920 |
+
.SH "Misc"
|
| 921 |
+
.IX Header "Misc"
|
| 922 |
+
.ie n .SS "my $version = \fBCompress::Zlib::zlib_version()\fP;"
|
| 923 |
+
.el .SS "my \f(CW$version\fP = \fBCompress::Zlib::zlib_version()\fP;"
|
| 924 |
+
.IX Subsection "my $version = Compress::Zlib::zlib_version();"
|
| 925 |
+
Returns the version of the zlib library.
|
| 926 |
+
.SH "CONSTANTS"
|
| 927 |
+
.IX Header "CONSTANTS"
|
| 928 |
+
All the \fIzlib\fR constants are automatically imported when you make use
|
| 929 |
+
of \fICompress::Zlib\fR.
|
| 930 |
+
.SH "SUPPORT"
|
| 931 |
+
.IX Header "SUPPORT"
|
| 932 |
+
General feedback/questions/bug reports should be sent to
|
| 933 |
+
<https://github.com/pmqs/IO\-Compress/issues> (preferred) or
|
| 934 |
+
<https://rt.cpan.org/Public/Dist/Display.html?Name=IO\-Compress>.
|
| 935 |
+
.SH "SEE ALSO"
|
| 936 |
+
.IX Header "SEE ALSO"
|
| 937 |
+
IO::Compress::Gzip, IO::Uncompress::Gunzip, IO::Compress::Deflate, IO::Uncompress::Inflate, IO::Compress::RawDeflate, IO::Uncompress::RawInflate, IO::Compress::Bzip2, IO::Uncompress::Bunzip2, IO::Compress::Lzma, IO::Uncompress::UnLzma, IO::Compress::Xz, IO::Uncompress::UnXz, IO::Compress::Lzip, IO::Uncompress::UnLzip, IO::Compress::Lzop, IO::Uncompress::UnLzop, IO::Compress::Lzf, IO::Uncompress::UnLzf, IO::Compress::Zstd, IO::Uncompress::UnZstd, IO::Uncompress::AnyInflate, IO::Uncompress::AnyUncompress
|
| 938 |
+
.PP
|
| 939 |
+
IO::Compress::FAQ
|
| 940 |
+
.PP
|
| 941 |
+
File::GlobMapper, Archive::Zip,
|
| 942 |
+
Archive::Tar,
|
| 943 |
+
IO::Zlib
|
| 944 |
+
.PP
|
| 945 |
+
For \s-1RFC 1950, 1951\s0 and 1952 see
|
| 946 |
+
<http://www.faqs.org/rfcs/rfc1950.html>,
|
| 947 |
+
<http://www.faqs.org/rfcs/rfc1951.html> and
|
| 948 |
+
<http://www.faqs.org/rfcs/rfc1952.html>
|
| 949 |
+
.PP
|
| 950 |
+
The \fIzlib\fR compression library was written by Jean-loup Gailly
|
| 951 |
+
\&\f(CW\*(C`gzip@prep.ai.mit.edu\*(C'\fR and Mark Adler \f(CW\*(C`madler@alumni.caltech.edu\*(C'\fR.
|
| 952 |
+
.PP
|
| 953 |
+
The primary site for the \fIzlib\fR compression library is
|
| 954 |
+
<http://www.zlib.org>.
|
| 955 |
+
.PP
|
| 956 |
+
The primary site for gzip is <http://www.gzip.org>.
|
| 957 |
+
.SH "AUTHOR"
|
| 958 |
+
.IX Header "AUTHOR"
|
| 959 |
+
This module was written by Paul Marquess, \f(CW\*(C`pmqs@cpan.org\*(C'\fR.
|
| 960 |
+
.SH "MODIFICATION HISTORY"
|
| 961 |
+
.IX Header "MODIFICATION HISTORY"
|
| 962 |
+
See the Changes file.
|
| 963 |
+
.SH "COPYRIGHT AND LICENSE"
|
| 964 |
+
.IX Header "COPYRIGHT AND LICENSE"
|
| 965 |
+
Copyright (c) 1995\-2019 Paul Marquess. All rights reserved.
|
| 966 |
+
.PP
|
| 967 |
+
This program is free software; you can redistribute it and/or
|
| 968 |
+
modify it under the same terms as Perl itself.
|
data/miniconda3/man/man3/Config%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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40)
|
| 2 |
+
.\"
|
| 3 |
+
.\" Standard preamble:
|
| 4 |
+
.\" ========================================================================
|
| 5 |
+
.de Sp \" Vertical space (when we can't use .PP)
|
| 6 |
+
.if t .sp .5v
|
| 7 |
+
.if n .sp
|
| 8 |
+
..
|
| 9 |
+
.de Vb \" Begin verbatim text
|
| 10 |
+
.ft CW
|
| 11 |
+
.nf
|
| 12 |
+
.ne \\$1
|
| 13 |
+
..
|
| 14 |
+
.de Ve \" End verbatim text
|
| 15 |
+
.ft R
|
| 16 |
+
.fi
|
| 17 |
+
..
|
| 18 |
+
.\" Set up some character translations and predefined strings. \*(-- will
|
| 19 |
+
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
| 20 |
+
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
| 21 |
+
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
| 22 |
+
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
| 23 |
+
.\" nothing in troff, for use with C<>.
|
| 24 |
+
.tr \(*W-
|
| 25 |
+
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
| 26 |
+
.ie n \{\
|
| 27 |
+
. ds -- \(*W-
|
| 28 |
+
. ds PI pi
|
| 29 |
+
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
| 30 |
+
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
| 31 |
+
. ds L" ""
|
| 32 |
+
. ds R" ""
|
| 33 |
+
. ds C` ""
|
| 34 |
+
. ds C' ""
|
| 35 |
+
'br\}
|
| 36 |
+
.el\{\
|
| 37 |
+
. ds -- \|\(em\|
|
| 38 |
+
. ds PI \(*p
|
| 39 |
+
. ds L" ``
|
| 40 |
+
. ds R" ''
|
| 41 |
+
. ds C`
|
| 42 |
+
. ds C'
|
| 43 |
+
'br\}
|
| 44 |
+
.\"
|
| 45 |
+
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
| 46 |
+
.ie \n(.g .ds Aq \(aq
|
| 47 |
+
.el .ds Aq '
|
| 48 |
+
.\"
|
| 49 |
+
.\" If the F register is >0, we'll generate index entries on stderr for
|
| 50 |
+
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
|
| 51 |
+
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
| 52 |
+
.\" output yourself in some meaningful fashion.
|
| 53 |
+
.\"
|
| 54 |
+
.\" Avoid warning from groff about undefined register 'F'.
|
| 55 |
+
.de IX
|
| 56 |
+
..
|
| 57 |
+
.nr rF 0
|
| 58 |
+
.if \n(.g .if rF .nr rF 1
|
| 59 |
+
.if (\n(rF:(\n(.g==0)) \{\
|
| 60 |
+
. if \nF \{\
|
| 61 |
+
. de IX
|
| 62 |
+
. tm Index:\\$1\t\\n%\t"\\$2"
|
| 63 |
+
..
|
| 64 |
+
. if !\nF==2 \{\
|
| 65 |
+
. nr % 0
|
| 66 |
+
. nr F 2
|
| 67 |
+
. \}
|
| 68 |
+
. \}
|
| 69 |
+
.\}
|
| 70 |
+
.rr rF
|
| 71 |
+
.\"
|
| 72 |
+
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
| 73 |
+
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
| 74 |
+
. \" fudge factors for nroff and troff
|
| 75 |
+
.if n \{\
|
| 76 |
+
. ds #H 0
|
| 77 |
+
. ds #V .8m
|
| 78 |
+
. ds #F .3m
|
| 79 |
+
. ds #[ \f1
|
| 80 |
+
. ds #] \fP
|
| 81 |
+
.\}
|
| 82 |
+
.if t \{\
|
| 83 |
+
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
| 84 |
+
. ds #V .6m
|
| 85 |
+
. ds #F 0
|
| 86 |
+
. ds #[ \&
|
| 87 |
+
. ds #] \&
|
| 88 |
+
.\}
|
| 89 |
+
. \" simple accents for nroff and troff
|
| 90 |
+
.if n \{\
|
| 91 |
+
. ds ' \&
|
| 92 |
+
. ds ` \&
|
| 93 |
+
. ds ^ \&
|
| 94 |
+
. ds , \&
|
| 95 |
+
. ds ~ ~
|
| 96 |
+
. ds /
|
| 97 |
+
.\}
|
| 98 |
+
.if t \{\
|
| 99 |
+
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
| 100 |
+
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
| 101 |
+
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
| 102 |
+
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
| 103 |
+
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
| 104 |
+
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
| 105 |
+
.\}
|
| 106 |
+
. \" troff and (daisy-wheel) nroff accents
|
| 107 |
+
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
| 108 |
+
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
| 109 |
+
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
| 110 |
+
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
| 111 |
+
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
| 112 |
+
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
| 113 |
+
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
| 114 |
+
.ds ae a\h'-(\w'a'u*4/10)'e
|
| 115 |
+
.ds Ae A\h'-(\w'A'u*4/10)'E
|
| 116 |
+
. \" corrections for vroff
|
| 117 |
+
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
| 118 |
+
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
| 119 |
+
. \" for low resolution devices (crt and lpr)
|
| 120 |
+
.if \n(.H>23 .if \n(.V>19 \
|
| 121 |
+
\{\
|
| 122 |
+
. ds : e
|
| 123 |
+
. ds 8 ss
|
| 124 |
+
. ds o a
|
| 125 |
+
. ds d- d\h'-1'\(ga
|
| 126 |
+
. ds D- D\h'-1'\(hy
|
| 127 |
+
. ds th \o'bp'
|
| 128 |
+
. ds Th \o'LP'
|
| 129 |
+
. ds ae ae
|
| 130 |
+
. ds Ae AE
|
| 131 |
+
.\}
|
| 132 |
+
.rm #[ #] #H #V #F C
|
| 133 |
+
.\" ========================================================================
|
| 134 |
+
.\"
|
| 135 |
+
.IX Title "Config::Extensions 3"
|
| 136 |
+
.TH Config::Extensions 3 "2020-12-18" "perl v5.32.1" "Perl Programmers Reference Guide"
|
| 137 |
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
| 138 |
+
.\" way too many mistakes in technical documents.
|
| 139 |
+
.if n .ad l
|
| 140 |
+
.nh
|
| 141 |
+
.SH "NAME"
|
| 142 |
+
Config::Extensions \- hash lookup of which core extensions were built.
|
| 143 |
+
.SH "SYNOPSIS"
|
| 144 |
+
.IX Header "SYNOPSIS"
|
| 145 |
+
.Vb 4
|
| 146 |
+
\& use Config::Extensions \*(Aq%Extensions\*(Aq;
|
| 147 |
+
\& if ($Extensions{PerlIO::via}) {
|
| 148 |
+
\& # This perl has PerlIO::via built
|
| 149 |
+
\& }
|
| 150 |
+
.Ve
|
| 151 |
+
.SH "DESCRIPTION"
|
| 152 |
+
.IX Header "DESCRIPTION"
|
| 153 |
+
The Config::Extensions module provides a hash \f(CW%Extensions\fR containing all
|
| 154 |
+
the core extensions that were enabled for this perl. The hash is keyed by
|
| 155 |
+
extension name, with each entry having one of 3 possible values:
|
| 156 |
+
.IP "dynamic" 4
|
| 157 |
+
.IX Item "dynamic"
|
| 158 |
+
The extension is dynamically linked
|
| 159 |
+
.IP "nonxs" 4
|
| 160 |
+
.IX Item "nonxs"
|
| 161 |
+
The extension is pure perl, so doesn't need linking to the perl executable
|
| 162 |
+
.IP "static" 4
|
| 163 |
+
.IX Item "static"
|
| 164 |
+
The extension is statically linked to the perl binary
|
| 165 |
+
.PP
|
| 166 |
+
As all values evaluate to true, a simple \f(CW\*(C`if\*(C'\fR test is good enough to determine
|
| 167 |
+
whether an extension is present.
|
| 168 |
+
.PP
|
| 169 |
+
All the data uses to generate the \f(CW%Extensions\fR hash is already present in
|
| 170 |
+
the \f(CW\*(C`Config\*(C'\fR module, but not in such a convenient format to quickly reference.
|
| 171 |
+
.SH "AUTHOR"
|
| 172 |
+
.IX Header "AUTHOR"
|
| 173 |
+
Nicholas Clark <nick@ccl4.org>
|