assassinlike commited on
Commit
af0981c
·
verified ·
1 Parent(s): 4eef0ab

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. data/miniconda3/man/man3/App%3A%3ACpan.3 +446 -0
  2. data/miniconda3/man/man3/Attribute%3A%3AHandlers.3 +836 -0
  3. data/miniconda3/man/man3/B%3A%3AOp_private.3 +250 -0
  4. data/miniconda3/man/man3/Benchmark.3 +585 -0
  5. data/miniconda3/man/man3/CORE.3 +236 -0
  6. data/miniconda3/man/man3/CPAN%3A%3APlugin%3A%3ASpecfile.3 +189 -0
  7. data/miniconda3/man/man3/Class%3A%3AStruct.3 +533 -0
  8. data/miniconda3/man/man3/Encode.3 +937 -0
  9. data/miniconda3/man/man3/ExtUtils%3A%3ACommand%3A%3AMM.3 +255 -0
  10. data/miniconda3/man/man3/ExtUtils%3A%3ACommand.3 +283 -0
  11. data/miniconda3/man/man3/ExtUtils%3A%3APacklist.3 +253 -0
  12. data/miniconda3/man/man3/Fcntl.3 +189 -0
  13. data/miniconda3/man/man3/File%3A%3ACompare.3 +183 -0
  14. data/miniconda3/man/man3/File%3A%3AFetch.3 +468 -0
  15. data/miniconda3/man/man3/File%3A%3AGlob.3 +435 -0
  16. data/miniconda3/man/man3/File%3A%3ASpec%3A%3AEpoc.3 +171 -0
  17. data/miniconda3/man/man3/File%3A%3ASpec%3A%3AVMS.3 +243 -0
  18. data/miniconda3/man/man3/Hash%3A%3AUtil.3 +686 -0
  19. data/miniconda3/man/man3/I18N%3A%3ACollate.3 +197 -0
  20. data/miniconda3/man/man3/IO%3A%3ADir.3 +223 -0
  21. data/miniconda3/man/man3/IO%3A%3APipe.3 +219 -0
  22. data/miniconda3/man/man3/IO%3A%3ASelect.3 +268 -0
  23. data/miniconda3/man/man3/IO%3A%3ASocket.3 +679 -0
  24. data/miniconda3/man/man3/IO%3A%3AUncompress%3A%3AGunzip.3 +953 -0
  25. data/miniconda3/man/man3/IO.3 +179 -0
  26. data/miniconda3/man/man3/Math%3A%3ABigInt.3 +0 -0
  27. data/miniconda3/man/man3/Memoize.3 +919 -0
  28. data/miniconda3/man/man3/Net%3A%3ANNTP.3 +598 -0
  29. data/miniconda3/man/man3/POSIX.3 +0 -0
  30. data/miniconda3/man/man3/Parse%3A%3ACPAN%3A%3AMeta.3 +327 -0
  31. data/miniconda3/man/man3/PerlIO%3A%3Ascalar.3 +172 -0
  32. data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3AToANSI.3 +185 -0
  33. data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3AToMan.3 +189 -0
  34. data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3AToTerm.3 +186 -0
  35. data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3ARTF.3 +266 -0
  36. data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3ASubclassing.3 +1290 -0
  37. data/miniconda3/man/man3/Safe.3 +465 -0
  38. data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AGrammar.3 +339 -0
  39. data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AResult%3A%3ABailout.3 +176 -0
  40. data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AResult%3A%3AComment.3 +174 -0
  41. data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AResult.3 +359 -0
  42. data/miniconda3/man/man3/TAP%3A%3AParser%3A%3ASourceHandler.3 +296 -0
  43. data/miniconda3/man/man3/Test%3A%3ABuilder%3A%3ATodoDiag.3 +170 -0
  44. data/miniconda3/man/man3/Test2%3A%3AAPI%3A%3AInstance.3 +389 -0
  45. data/miniconda3/man/man3/Test2%3A%3AAPI%3A%3AStack.3 +244 -0
  46. data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3AFail.3 +179 -0
  47. data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3AGeneric.3 +291 -0
  48. data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3APass.3 +179 -0
  49. data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3AAssert.3 +212 -0
  50. data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3AError.3 +205 -0
data/miniconda3/man/man3/App%3A%3ACpan.3 ADDED
@@ -0,0 +1,446 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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::Cpan 3"
136
+ .TH App::Cpan 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::Cpan \- easily interact with CPAN from the command line
143
+ .SH "SYNOPSIS"
144
+ .IX Header "SYNOPSIS"
145
+ .Vb 2
146
+ \& # with arguments and no switches, installs specified modules
147
+ \& cpan module_name [ module_name ... ]
148
+ \&
149
+ \& # with switches, installs modules with extra behavior
150
+ \& cpan [\-cfFimtTw] module_name [ module_name ... ]
151
+ \&
152
+ \& # use local::lib
153
+ \& cpan \-I module_name [ module_name ... ]
154
+ \&
155
+ \& # one time mirror override for faster mirrors
156
+ \& cpan \-p ...
157
+ \&
158
+ \& # with just the dot, install from the distribution in the
159
+ \& # current directory
160
+ \& cpan .
161
+ \&
162
+ \& # without arguments, starts CPAN.pm shell
163
+ \& cpan
164
+ \&
165
+ \& # without arguments, but some switches
166
+ \& cpan [\-ahpruvACDLOPX]
167
+ .Ve
168
+ .SH "DESCRIPTION"
169
+ .IX Header "DESCRIPTION"
170
+ This script provides a command interface (not a shell) to \s-1CPAN.\s0 At the
171
+ moment it uses \s-1CPAN\s0.pm to do the work, but it is not a one-shot command
172
+ runner for \s-1CPAN\s0.pm.
173
+ .SS "Options"
174
+ .IX Subsection "Options"
175
+ .IP "\-a" 4
176
+ .IX Item "-a"
177
+ Creates a \s-1CPAN\s0.pm autobundle with CPAN::Shell\->autobundle.
178
+ .IP "\-A module [ module ... ]" 4
179
+ .IX Item "-A module [ module ... ]"
180
+ Shows the primary maintainers for the specified modules.
181
+ .IP "\-c module" 4
182
+ .IX Item "-c module"
183
+ Runs a `make clean` in the specified module's directories.
184
+ .IP "\-C module [ module ... ]" 4
185
+ .IX Item "-C module [ module ... ]"
186
+ Show the \fIChanges\fR files for the specified modules
187
+ .IP "\-D module [ module ... ]" 4
188
+ .IX Item "-D module [ module ... ]"
189
+ Show the module details. This prints one line for each out-of-date module
190
+ (meaning, modules locally installed but have newer versions on \s-1CPAN\s0).
191
+ Each line has three columns: module name, local version, and \s-1CPAN\s0
192
+ version.
193
+ .IP "\-f" 4
194
+ .IX Item "-f"
195
+ Force the specified action, when it normally would have failed. Use this
196
+ to install a module even if its tests fail. When you use this option,
197
+ \&\-i is not optional for installing a module when you need to force it:
198
+ .Sp
199
+ .Vb 1
200
+ \& % cpan \-f \-i Module::Foo
201
+ .Ve
202
+ .IP "\-F" 4
203
+ .IX Item "-F"
204
+ Turn off \s-1CPAN\s0.pm's attempts to lock anything. You should be careful with
205
+ this since you might end up with multiple scripts trying to muck in the
206
+ same directory. This isn't so much of a concern if you're loading a special
207
+ config with \f(CW\*(C`\-j\*(C'\fR, and that config sets up its own work directories.
208
+ .IP "\-g module [ module ... ]" 4
209
+ .IX Item "-g module [ module ... ]"
210
+ Downloads to the current directory the latest distribution of the module.
211
+ .IP "\-G module [ module ... ]" 4
212
+ .IX Item "-G module [ module ... ]"
213
+ \&\s-1UNIMPLEMENTED\s0
214
+ .Sp
215
+ Download to the current directory the latest distribution of the
216
+ modules, unpack each distribution, and create a git repository for each
217
+ distribution.
218
+ .Sp
219
+ If you want this feature, check out Yanick Champoux's \f(CW\*(C`Git::CPAN::Patch\*(C'\fR
220
+ distribution.
221
+ .IP "\-h" 4
222
+ .IX Item "-h"
223
+ Print a help message and exit. When you specify \f(CW\*(C`\-h\*(C'\fR, it ignores all
224
+ of the other options and arguments.
225
+ .IP "\-i module [ module ... ]" 4
226
+ .IX Item "-i module [ module ... ]"
227
+ Install the specified modules. With no other switches, this switch
228
+ is implied.
229
+ .IP "\-I" 4
230
+ .IX Item "-I"
231
+ Load \f(CW\*(C`local::lib\*(C'\fR (think like \f(CW\*(C`\-I\*(C'\fR for loading lib paths). Too bad
232
+ \&\f(CW\*(C`\-l\*(C'\fR was already taken.
233
+ .IP "\-j Config.pm" 4
234
+ .IX Item "-j Config.pm"
235
+ Load the file that has the \s-1CPAN\s0 configuration data. This should have the
236
+ same format as the standard \fICPAN/Config.pm\fR file, which defines
237
+ \&\f(CW$CPAN::Config\fR as an anonymous hash.
238
+ .Sp
239
+ If the file does not exist, \f(CW\*(C`cpan\*(C'\fR dies.
240
+ .IP "\-J" 4
241
+ .IX Item "-J"
242
+ Dump the configuration in the same format that \s-1CPAN\s0.pm uses. This is useful
243
+ for checking the configuration as well as using the dump as a starting point
244
+ for a new, custom configuration.
245
+ .IP "\-l" 4
246
+ .IX Item "-l"
247
+ List all installed modules with their versions
248
+ .IP "\-L author [ author ... ]" 4
249
+ .IX Item "-L author [ author ... ]"
250
+ List the modules by the specified authors.
251
+ .IP "\-m" 4
252
+ .IX Item "-m"
253
+ Make the specified modules.
254
+ .IP "\-M mirror1,mirror2,..." 4
255
+ .IX Item "-M mirror1,mirror2,..."
256
+ A comma-separated list of mirrors to use for just this run. The \f(CW\*(C`\-P\*(C'\fR
257
+ option can find them for you automatically.
258
+ .IP "\-n" 4
259
+ .IX Item "-n"
260
+ Do a dry run, but don't actually install anything. (unimplemented)
261
+ .IP "\-O" 4
262
+ .IX Item "-O"
263
+ Show the out-of-date modules.
264
+ .IP "\-p" 4
265
+ .IX Item "-p"
266
+ Ping the configured mirrors and print a report
267
+ .IP "\-P" 4
268
+ .IX Item "-P"
269
+ Find the best mirrors you could be using and use them for the current
270
+ session.
271
+ .IP "\-r" 4
272
+ .IX Item "-r"
273
+ Recompiles dynamically loaded modules with CPAN::Shell\->recompile.
274
+ .IP "\-s" 4
275
+ .IX Item "-s"
276
+ Drop in the \s-1CPAN\s0.pm shell. This command does this automatically if you don't
277
+ specify any arguments.
278
+ .IP "\-t module [ module ... ]" 4
279
+ .IX Item "-t module [ module ... ]"
280
+ Run a `make test` on the specified modules.
281
+ .IP "\-T" 4
282
+ .IX Item "-T"
283
+ Do not test modules. Simply install them.
284
+ .IP "\-u" 4
285
+ .IX Item "-u"
286
+ Upgrade all installed modules. Blindly doing this can really break things,
287
+ so keep a backup.
288
+ .IP "\-v" 4
289
+ .IX Item "-v"
290
+ Print the script version and \s-1CPAN\s0.pm version then exit.
291
+ .IP "\-V" 4
292
+ .IX Item "-V"
293
+ Print detailed information about the cpan client.
294
+ .IP "\-w" 4
295
+ .IX Item "-w"
296
+ \&\s-1UNIMPLEMENTED\s0
297
+ .Sp
298
+ Turn on cpan warnings. This checks various things, like directory permissions,
299
+ and tells you about problems you might have.
300
+ .IP "\-x module [ module ... ]" 4
301
+ .IX Item "-x module [ module ... ]"
302
+ Find close matches to the named modules that you think you might have
303
+ mistyped. This requires the optional installation of Text::Levenshtein or
304
+ Text::Levenshtein::Damerau.
305
+ .IP "\-X" 4
306
+ .IX Item "-X"
307
+ Dump all the namespaces to standard output.
308
+ .SS "Examples"
309
+ .IX Subsection "Examples"
310
+ .Vb 2
311
+ \& # print a help message
312
+ \& cpan \-h
313
+ \&
314
+ \& # print the version numbers
315
+ \& cpan \-v
316
+ \&
317
+ \& # create an autobundle
318
+ \& cpan \-a
319
+ \&
320
+ \& # recompile modules
321
+ \& cpan \-r
322
+ \&
323
+ \& # upgrade all installed modules
324
+ \& cpan \-u
325
+ \&
326
+ \& # install modules ( sole \-i is optional )
327
+ \& cpan \-i Netscape::Booksmarks Business::ISBN
328
+ \&
329
+ \& # force install modules ( must use \-i )
330
+ \& cpan \-fi CGI::Minimal URI
331
+ \&
332
+ \& # install modules but without testing them
333
+ \& cpan \-Ti CGI::Minimal URI
334
+ .Ve
335
+ .SS "Environment variables"
336
+ .IX Subsection "Environment variables"
337
+ There are several components in \s-1CPAN\s0.pm that use environment variables.
338
+ The build tools, ExtUtils::MakeMaker and Module::Build use some,
339
+ while others matter to the levels above them. Some of these are specified
340
+ by the Perl Toolchain Gang:
341
+ .PP
342
+ Lancaster Concensus: <https://github.com/Perl\-Toolchain\-Gang/toolchain\-site/blob/master/lancaster\-consensus.md>
343
+ .PP
344
+ Oslo Concensus: <https://github.com/Perl\-Toolchain\-Gang/toolchain\-site/blob/master/oslo\-consensus.md>
345
+ .IP "\s-1NONINTERACTIVE_TESTING\s0" 4
346
+ .IX Item "NONINTERACTIVE_TESTING"
347
+ Assume no one is paying attention and skips prompts for distributions
348
+ that do that correctly. \f(CWcpan(1)\fR sets this to \f(CW1\fR unless it already
349
+ has a value (even if that value is false).
350
+ .IP "\s-1PERL_MM_USE_DEFAULT\s0" 4
351
+ .IX Item "PERL_MM_USE_DEFAULT"
352
+ Use the default answer for a prompted questions. \f(CWcpan(1)\fR sets this
353
+ to \f(CW1\fR unless it already has a value (even if that value is false).
354
+ .IP "\s-1CPAN_OPTS\s0" 4
355
+ .IX Item "CPAN_OPTS"
356
+ As with \f(CW\*(C`PERL5OPT\*(C'\fR, a string of additional \f(CWcpan(1)\fR options to
357
+ add to those you specify on the command line.
358
+ .IP "\s-1CPANSCRIPT_LOGLEVEL\s0" 4
359
+ .IX Item "CPANSCRIPT_LOGLEVEL"
360
+ The log level to use, with either the embedded, minimal logger or
361
+ Log::Log4perl if it is installed. Possible values are the same as
362
+ the \f(CW\*(C`Log::Log4perl\*(C'\fR levels: \f(CW\*(C`TRACE\*(C'\fR, \f(CW\*(C`DEBUG\*(C'\fR, \f(CW\*(C`INFO\*(C'\fR, \f(CW\*(C`WARN\*(C'\fR,
363
+ \&\f(CW\*(C`ERROR\*(C'\fR, and \f(CW\*(C`FATAL\*(C'\fR. The default is \f(CW\*(C`INFO\*(C'\fR.
364
+ .IP "\s-1GIT_COMMAND\s0" 4
365
+ .IX Item "GIT_COMMAND"
366
+ The path to the \f(CW\*(C`git\*(C'\fR binary to use for the Git features. The default
367
+ is \f(CW\*(C`/usr/local/bin/git\*(C'\fR.
368
+ .SS "Methods"
369
+ .IX Subsection "Methods"
370
+ .IP "\fBrun()\fR" 4
371
+ .IX Item "run()"
372
+ Just do it.
373
+ .Sp
374
+ The \f(CW\*(C`run\*(C'\fR method returns 0 on success and a positive number on
375
+ failure. See the section on \s-1EXIT CODES\s0 for details on the values.
376
+ .Sp
377
+ \&\s-1CPAN\s0.pm sends all the good stuff either to \s-1STDOUT,\s0 or to a temp
378
+ file if \f(CW$CPAN::Be_Silent\fR is set. I have to intercept that output
379
+ so I can find out what happened.
380
+ .Sp
381
+ Stolen from File::Path::Expand
382
+ .SH "EXIT VALUES"
383
+ .IX Header "EXIT VALUES"
384
+ The script exits with zero if it thinks that everything worked, or a
385
+ positive number if it thinks that something failed. Note, however, that
386
+ in some cases it has to divine a failure by the output of things it does
387
+ not control. For now, the exit codes are vague:
388
+ .PP
389
+ .Vb 1
390
+ \& 1 An unknown error
391
+ \&
392
+ \& 2 The was an external problem
393
+ \&
394
+ \& 4 There was an internal problem with the script
395
+ \&
396
+ \& 8 A module failed to install
397
+ .Ve
398
+ .SH "TO DO"
399
+ .IX Header "TO DO"
400
+ * There is initial support for Log4perl if it is available, but I
401
+ haven't gone through everything to make the NullLogger work out
402
+ correctly if Log4perl is not installed.
403
+ .PP
404
+ * When I capture \s-1CPAN\s0.pm output, I need to check for errors and
405
+ report them to the user.
406
+ .PP
407
+ * Warnings switch
408
+ .PP
409
+ * Check then exit
410
+ .SH "BUGS"
411
+ .IX Header "BUGS"
412
+ * none noted
413
+ .SH "SEE ALSO"
414
+ .IX Header "SEE ALSO"
415
+ \&\s-1CPAN\s0, App::cpanminus
416
+ .SH "SOURCE AVAILABILITY"
417
+ .IX Header "SOURCE AVAILABILITY"
418
+ This code is in Github in the \s-1CPAN\s0.pm repository:
419
+ .PP
420
+ .Vb 1
421
+ \& https://github.com/andk/cpanpm
422
+ .Ve
423
+ .PP
424
+ The source used to be tracked separately in another GitHub repo,
425
+ but the canonical source is now in the above repo.
426
+ .SH "CREDITS"
427
+ .IX Header "CREDITS"
428
+ Japheth Cleaver added the bits to allow a forced install (\f(CW\*(C`\-f\*(C'\fR).
429
+ .PP
430
+ Jim Brandt suggest and provided the initial implementation for the
431
+ up-to-date and Changes features.
432
+ .PP
433
+ Adam Kennedy pointed out that \f(CW\*(C`exit()\*(C'\fR causes problems on Windows
434
+ where this script ends up with a .bat extension
435
+ .PP
436
+ David Golden helps integrate this into the \f(CW\*(C`CPAN.pm\*(C'\fR repos.
437
+ .PP
438
+ Jim Keenan fixed up various issues with _download
439
+ .SH "AUTHOR"
440
+ .IX Header "AUTHOR"
441
+ brian d foy, \f(CW\*(C`<bdfoy@cpan.org>\*(C'\fR
442
+ .SH "COPYRIGHT"
443
+ .IX Header "COPYRIGHT"
444
+ Copyright (c) 2001\-2018, brian d foy, All Rights Reserved.
445
+ .PP
446
+ You may redistribute this under the same terms as Perl itself.
data/miniconda3/man/man3/Attribute%3A%3AHandlers.3 ADDED
@@ -0,0 +1,836 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "Attribute::Handlers 3"
136
+ .TH Attribute::Handlers 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
+ Attribute::Handlers \- Simpler definition of attribute handlers
143
+ .SH "VERSION"
144
+ .IX Header "VERSION"
145
+ This document describes version 1.01 of Attribute::Handlers.
146
+ .SH "SYNOPSIS"
147
+ .IX Header "SYNOPSIS"
148
+ .Vb 4
149
+ \& package MyClass;
150
+ \& require 5.006;
151
+ \& use Attribute::Handlers;
152
+ \& no warnings \*(Aqredefine\*(Aq;
153
+ \&
154
+ \&
155
+ \& sub Good : ATTR(SCALAR) {
156
+ \& my ($package, $symbol, $referent, $attr, $data) = @_;
157
+ \&
158
+ \& # Invoked for any scalar variable with a :Good attribute,
159
+ \& # provided the variable was declared in MyClass (or
160
+ \& # a derived class) or typed to MyClass.
161
+ \&
162
+ \& # Do whatever to $referent here (executed in CHECK phase).
163
+ \& ...
164
+ \& }
165
+ \&
166
+ \& sub Bad : ATTR(SCALAR) {
167
+ \& # Invoked for any scalar variable with a :Bad attribute,
168
+ \& # provided the variable was declared in MyClass (or
169
+ \& # a derived class) or typed to MyClass.
170
+ \& ...
171
+ \& }
172
+ \&
173
+ \& sub Good : ATTR(ARRAY) {
174
+ \& # Invoked for any array variable with a :Good attribute,
175
+ \& # provided the variable was declared in MyClass (or
176
+ \& # a derived class) or typed to MyClass.
177
+ \& ...
178
+ \& }
179
+ \&
180
+ \& sub Good : ATTR(HASH) {
181
+ \& # Invoked for any hash variable with a :Good attribute,
182
+ \& # provided the variable was declared in MyClass (or
183
+ \& # a derived class) or typed to MyClass.
184
+ \& ...
185
+ \& }
186
+ \&
187
+ \& sub Ugly : ATTR(CODE) {
188
+ \& # Invoked for any subroutine declared in MyClass (or a
189
+ \& # derived class) with an :Ugly attribute.
190
+ \& ...
191
+ \& }
192
+ \&
193
+ \& sub Omni : ATTR {
194
+ \& # Invoked for any scalar, array, hash, or subroutine
195
+ \& # with an :Omni attribute, provided the variable or
196
+ \& # subroutine was declared in MyClass (or a derived class)
197
+ \& # or the variable was typed to MyClass.
198
+ \& # Use ref($_[2]) to determine what kind of referent it was.
199
+ \& ...
200
+ \& }
201
+ \&
202
+ \&
203
+ \& use Attribute::Handlers autotie => { Cycle => Tie::Cycle };
204
+ \&
205
+ \& my $next : Cycle([\*(AqA\*(Aq..\*(AqZ\*(Aq]);
206
+ .Ve
207
+ .SH "DESCRIPTION"
208
+ .IX Header "DESCRIPTION"
209
+ This module, when inherited by a package, allows that package's class to
210
+ define attribute handler subroutines for specific attributes. Variables
211
+ and subroutines subsequently defined in that package, or in packages
212
+ derived from that package may be given attributes with the same names as
213
+ the attribute handler subroutines, which will then be called in one of
214
+ the compilation phases (i.e. in a \f(CW\*(C`BEGIN\*(C'\fR, \f(CW\*(C`CHECK\*(C'\fR, \f(CW\*(C`INIT\*(C'\fR, or \f(CW\*(C`END\*(C'\fR
215
+ block). (\f(CW\*(C`UNITCHECK\*(C'\fR blocks don't correspond to a global compilation
216
+ phase, so they can't be specified here.)
217
+ .PP
218
+ To create a handler, define it as a subroutine with the same name as
219
+ the desired attribute, and declare the subroutine itself with the
220
+ attribute \f(CW\*(C`:ATTR\*(C'\fR. For example:
221
+ .PP
222
+ .Vb 2
223
+ \& package LoudDecl;
224
+ \& use Attribute::Handlers;
225
+ \&
226
+ \& sub Loud :ATTR {
227
+ \& my ($package, $symbol, $referent, $attr, $data, $phase,
228
+ \& $filename, $linenum) = @_;
229
+ \& print STDERR
230
+ \& ref($referent), " ",
231
+ \& *{$symbol}{NAME}, " ",
232
+ \& "($referent) ", "was just declared ",
233
+ \& "and ascribed the ${attr} attribute ",
234
+ \& "with data ($data)\en",
235
+ \& "in phase $phase\en",
236
+ \& "in file $filename at line $linenum\en";
237
+ \& }
238
+ .Ve
239
+ .PP
240
+ This creates a handler for the attribute \f(CW\*(C`:Loud\*(C'\fR in the class LoudDecl.
241
+ Thereafter, any subroutine declared with a \f(CW\*(C`:Loud\*(C'\fR attribute in the class
242
+ LoudDecl:
243
+ .PP
244
+ .Vb 1
245
+ \& package LoudDecl;
246
+ \&
247
+ \& sub foo: Loud {...}
248
+ .Ve
249
+ .PP
250
+ causes the above handler to be invoked, and passed:
251
+ .IP "[0]" 4
252
+ .IX Item "[0]"
253
+ the name of the package into which it was declared;
254
+ .IP "[1]" 4
255
+ .IX Item "[1]"
256
+ a reference to the symbol table entry (typeglob) containing the subroutine;
257
+ .IP "[2]" 4
258
+ .IX Item "[2]"
259
+ a reference to the subroutine;
260
+ .IP "[3]" 4
261
+ .IX Item "[3]"
262
+ the name of the attribute;
263
+ .IP "[4]" 4
264
+ .IX Item "[4]"
265
+ any data associated with that attribute;
266
+ .IP "[5]" 4
267
+ .IX Item "[5]"
268
+ the name of the phase in which the handler is being invoked;
269
+ .IP "[6]" 4
270
+ .IX Item "[6]"
271
+ the filename in which the handler is being invoked;
272
+ .IP "[7]" 4
273
+ .IX Item "[7]"
274
+ the line number in this file.
275
+ .PP
276
+ Likewise, declaring any variables with the \f(CW\*(C`:Loud\*(C'\fR attribute within the
277
+ package:
278
+ .PP
279
+ .Vb 1
280
+ \& package LoudDecl;
281
+ \&
282
+ \& my $foo :Loud;
283
+ \& my @foo :Loud;
284
+ \& my %foo :Loud;
285
+ .Ve
286
+ .PP
287
+ will cause the handler to be called with a similar argument list (except,
288
+ of course, that \f(CW$_[2]\fR will be a reference to the variable).
289
+ .PP
290
+ The package name argument will typically be the name of the class into
291
+ which the subroutine was declared, but it may also be the name of a derived
292
+ class (since handlers are inherited).
293
+ .PP
294
+ If a lexical variable is given an attribute, there is no symbol table to
295
+ which it belongs, so the symbol table argument (\f(CW$_[1]\fR) is set to the
296
+ string \f(CW\*(AqLEXICAL\*(Aq\fR in that case. Likewise, ascribing an attribute to
297
+ an anonymous subroutine results in a symbol table argument of \f(CW\*(AqANON\*(Aq\fR.
298
+ .PP
299
+ The data argument passes in the value (if any) associated with the
300
+ attribute. For example, if \f(CW&foo\fR had been declared:
301
+ .PP
302
+ .Vb 1
303
+ \& sub foo :Loud("turn it up to 11, man!") {...}
304
+ .Ve
305
+ .PP
306
+ then a reference to an array containing the string
307
+ \&\f(CW"turn it up to 11, man!"\fR would be passed as the last argument.
308
+ .PP
309
+ Attribute::Handlers makes strenuous efforts to convert
310
+ the data argument (\f(CW$_[4]\fR) to a usable form before passing it to
311
+ the handler (but see \*(L"Non-interpretive attribute handlers\*(R").
312
+ If those efforts succeed, the interpreted data is passed in an array
313
+ reference; if they fail, the raw data is passed as a string.
314
+ For example, all of these:
315
+ .PP
316
+ .Vb 4
317
+ \& sub foo :Loud(till=>ears=>are=>bleeding) {...}
318
+ \& sub foo :Loud(qw/till ears are bleeding/) {...}
319
+ \& sub foo :Loud(qw/till, ears, are, bleeding/) {...}
320
+ \& sub foo :Loud(till,ears,are,bleeding) {...}
321
+ .Ve
322
+ .PP
323
+ causes it to pass \f(CW\*(C`[\*(Aqtill\*(Aq,\*(Aqears\*(Aq,\*(Aqare\*(Aq,\*(Aqbleeding\*(Aq]\*(C'\fR as the handler's
324
+ data argument. While:
325
+ .PP
326
+ .Vb 1
327
+ \& sub foo :Loud([\*(Aqtill\*(Aq,\*(Aqears\*(Aq,\*(Aqare\*(Aq,\*(Aqbleeding\*(Aq]) {...}
328
+ .Ve
329
+ .PP
330
+ causes it to pass \f(CW\*(C`[ [\*(Aqtill\*(Aq,\*(Aqears\*(Aq,\*(Aqare\*(Aq,\*(Aqbleeding\*(Aq] ]\*(C'\fR; the array
331
+ reference specified in the data being passed inside the standard
332
+ array reference indicating successful interpretation.
333
+ .PP
334
+ However, if the data can't be parsed as valid Perl, then
335
+ it is passed as an uninterpreted string. For example:
336
+ .PP
337
+ .Vb 2
338
+ \& sub foo :Loud(my,ears,are,bleeding) {...}
339
+ \& sub foo :Loud(qw/my ears are bleeding) {...}
340
+ .Ve
341
+ .PP
342
+ cause the strings \f(CW\*(Aqmy,ears,are,bleeding\*(Aq\fR and
343
+ \&\f(CW\*(Aqqw/my ears are bleeding\*(Aq\fR respectively to be passed as the
344
+ data argument.
345
+ .PP
346
+ If no value is associated with the attribute, \f(CW\*(C`undef\*(C'\fR is passed.
347
+ .SS "Typed lexicals"
348
+ .IX Subsection "Typed lexicals"
349
+ Regardless of the package in which it is declared, if a lexical variable is
350
+ ascribed an attribute, the handler that is invoked is the one belonging to
351
+ the package to which it is typed. For example, the following declarations:
352
+ .PP
353
+ .Vb 1
354
+ \& package OtherClass;
355
+ \&
356
+ \& my LoudDecl $loudobj : Loud;
357
+ \& my LoudDecl @loudobjs : Loud;
358
+ \& my LoudDecl %loudobjex : Loud;
359
+ .Ve
360
+ .PP
361
+ causes the LoudDecl::Loud handler to be invoked (even if OtherClass also
362
+ defines a handler for \f(CW\*(C`:Loud\*(C'\fR attributes).
363
+ .SS "Type-specific attribute handlers"
364
+ .IX Subsection "Type-specific attribute handlers"
365
+ If an attribute handler is declared and the \f(CW\*(C`:ATTR\*(C'\fR specifier is
366
+ given the name of a built-in type (\f(CW\*(C`SCALAR\*(C'\fR, \f(CW\*(C`ARRAY\*(C'\fR, \f(CW\*(C`HASH\*(C'\fR, or \f(CW\*(C`CODE\*(C'\fR),
367
+ the handler is only applied to declarations of that type. For example,
368
+ the following definition:
369
+ .PP
370
+ .Vb 1
371
+ \& package LoudDecl;
372
+ \&
373
+ \& sub RealLoud :ATTR(SCALAR) { print "Yeeeeow!" }
374
+ .Ve
375
+ .PP
376
+ creates an attribute handler that applies only to scalars:
377
+ .PP
378
+ .Vb 2
379
+ \& package Painful;
380
+ \& use base LoudDecl;
381
+ \&
382
+ \& my $metal : RealLoud; # invokes &LoudDecl::RealLoud
383
+ \& my @metal : RealLoud; # error: unknown attribute
384
+ \& my %metal : RealLoud; # error: unknown attribute
385
+ \& sub metal : RealLoud {...} # error: unknown attribute
386
+ .Ve
387
+ .PP
388
+ You can, of course, declare separate handlers for these types as well
389
+ (but you'll need to specify \f(CW\*(C`no warnings \*(Aqredefine\*(Aq\*(C'\fR to do it quietly):
390
+ .PP
391
+ .Vb 3
392
+ \& package LoudDecl;
393
+ \& use Attribute::Handlers;
394
+ \& no warnings \*(Aqredefine\*(Aq;
395
+ \&
396
+ \& sub RealLoud :ATTR(SCALAR) { print "Yeeeeow!" }
397
+ \& sub RealLoud :ATTR(ARRAY) { print "Urrrrrrrrrr!" }
398
+ \& sub RealLoud :ATTR(HASH) { print "Arrrrrgggghhhhhh!" }
399
+ \& sub RealLoud :ATTR(CODE) { croak "Real loud sub torpedoed" }
400
+ .Ve
401
+ .PP
402
+ You can also explicitly indicate that a single handler is meant to be
403
+ used for all types of referents like so:
404
+ .PP
405
+ .Vb 2
406
+ \& package LoudDecl;
407
+ \& use Attribute::Handlers;
408
+ \&
409
+ \& sub SeriousLoud :ATTR(ANY) { warn "Hearing loss imminent" }
410
+ .Ve
411
+ .PP
412
+ (I.e. \f(CW\*(C`ATTR(ANY)\*(C'\fR is a synonym for \f(CW\*(C`:ATTR\*(C'\fR).
413
+ .SS "Non-interpretive attribute handlers"
414
+ .IX Subsection "Non-interpretive attribute handlers"
415
+ Occasionally the strenuous efforts Attribute::Handlers makes to convert
416
+ the data argument (\f(CW$_[4]\fR) to a usable form before passing it to
417
+ the handler get in the way.
418
+ .PP
419
+ You can turn off that eagerness-to-help by declaring
420
+ an attribute handler with the keyword \f(CW\*(C`RAWDATA\*(C'\fR. For example:
421
+ .PP
422
+ .Vb 3
423
+ \& sub Raw : ATTR(RAWDATA) {...}
424
+ \& sub Nekkid : ATTR(SCALAR,RAWDATA) {...}
425
+ \& sub Au::Naturale : ATTR(RAWDATA,ANY) {...}
426
+ .Ve
427
+ .PP
428
+ Then the handler makes absolutely no attempt to interpret the data it
429
+ receives and simply passes it as a string:
430
+ .PP
431
+ .Vb 1
432
+ \& my $power : Raw(1..100); # handlers receives "1..100"
433
+ .Ve
434
+ .SS "Phase-specific attribute handlers"
435
+ .IX Subsection "Phase-specific attribute handlers"
436
+ By default, attribute handlers are called at the end of the compilation
437
+ phase (in a \f(CW\*(C`CHECK\*(C'\fR block). This seems to be optimal in most cases because
438
+ most things that can be defined are defined by that point but nothing has
439
+ been executed.
440
+ .PP
441
+ However, it is possible to set up attribute handlers that are called at
442
+ other points in the program's compilation or execution, by explicitly
443
+ stating the phase (or phases) in which you wish the attribute handler to
444
+ be called. For example:
445
+ .PP
446
+ .Vb 5
447
+ \& sub Early :ATTR(SCALAR,BEGIN) {...}
448
+ \& sub Normal :ATTR(SCALAR,CHECK) {...}
449
+ \& sub Late :ATTR(SCALAR,INIT) {...}
450
+ \& sub Final :ATTR(SCALAR,END) {...}
451
+ \& sub Bookends :ATTR(SCALAR,BEGIN,END) {...}
452
+ .Ve
453
+ .PP
454
+ As the last example indicates, a handler may be set up to be (re)called in
455
+ two or more phases. The phase name is passed as the handler's final argument.
456
+ .PP
457
+ Note that attribute handlers that are scheduled for the \f(CW\*(C`BEGIN\*(C'\fR phase
458
+ are handled as soon as the attribute is detected (i.e. before any
459
+ subsequently defined \f(CW\*(C`BEGIN\*(C'\fR blocks are executed).
460
+ .ie n .SS "Attributes as ""tie"" interfaces"
461
+ .el .SS "Attributes as \f(CWtie\fP interfaces"
462
+ .IX Subsection "Attributes as tie interfaces"
463
+ Attributes make an excellent and intuitive interface through which to tie
464
+ variables. For example:
465
+ .PP
466
+ .Vb 2
467
+ \& use Attribute::Handlers;
468
+ \& use Tie::Cycle;
469
+ \&
470
+ \& sub UNIVERSAL::Cycle : ATTR(SCALAR) {
471
+ \& my ($package, $symbol, $referent, $attr, $data, $phase) = @_;
472
+ \& $data = [ $data ] unless ref $data eq \*(AqARRAY\*(Aq;
473
+ \& tie $$referent, \*(AqTie::Cycle\*(Aq, $data;
474
+ \& }
475
+ \&
476
+ \& # and thereafter...
477
+ \&
478
+ \& package main;
479
+ \&
480
+ \& my $next : Cycle(\*(AqA\*(Aq..\*(AqZ\*(Aq); # $next is now a tied variable
481
+ \&
482
+ \& while (<>) {
483
+ \& print $next;
484
+ \& }
485
+ .Ve
486
+ .PP
487
+ Note that, because the \f(CW\*(C`Cycle\*(C'\fR attribute receives its arguments in the
488
+ \&\f(CW$data\fR variable, if the attribute is given a list of arguments, \f(CW$data\fR
489
+ will consist of a single array reference; otherwise, it will consist of the
490
+ single argument directly. Since Tie::Cycle requires its cycling values to
491
+ be passed as an array reference, this means that we need to wrap
492
+ non-array-reference arguments in an array constructor:
493
+ .PP
494
+ .Vb 1
495
+ \& $data = [ $data ] unless ref $data eq \*(AqARRAY\*(Aq;
496
+ .Ve
497
+ .PP
498
+ Typically, however, things are the other way around: the tieable class expects
499
+ its arguments as a flattened list, so the attribute looks like:
500
+ .PP
501
+ .Vb 5
502
+ \& sub UNIVERSAL::Cycle : ATTR(SCALAR) {
503
+ \& my ($package, $symbol, $referent, $attr, $data, $phase) = @_;
504
+ \& my @data = ref $data eq \*(AqARRAY\*(Aq ? @$data : $data;
505
+ \& tie $$referent, \*(AqTie::Whatever\*(Aq, @data;
506
+ \& }
507
+ .Ve
508
+ .PP
509
+ This software pattern is so widely applicable that Attribute::Handlers
510
+ provides a way to automate it: specifying \f(CW\*(Aqautotie\*(Aq\fR in the
511
+ \&\f(CW\*(C`use Attribute::Handlers\*(C'\fR statement. So, the cycling example,
512
+ could also be written:
513
+ .PP
514
+ .Vb 1
515
+ \& use Attribute::Handlers autotie => { Cycle => \*(AqTie::Cycle\*(Aq };
516
+ \&
517
+ \& # and thereafter...
518
+ \&
519
+ \& package main;
520
+ \&
521
+ \& my $next : Cycle([\*(AqA\*(Aq..\*(AqZ\*(Aq]); # $next is now a tied variable
522
+ \&
523
+ \& while (<>) {
524
+ \& print $next;
525
+ \& }
526
+ .Ve
527
+ .PP
528
+ Note that we now have to pass the cycling values as an array reference,
529
+ since the \f(CW\*(C`autotie\*(C'\fR mechanism passes \f(CW\*(C`tie\*(C'\fR a list of arguments as a list
530
+ (as in the Tie::Whatever example), \fInot\fR as an array reference (as in
531
+ the original Tie::Cycle example at the start of this section).
532
+ .PP
533
+ The argument after \f(CW\*(Aqautotie\*(Aq\fR is a reference to a hash in which each key is
534
+ the name of an attribute to be created, and each value is the class to which
535
+ variables ascribed that attribute should be tied.
536
+ .PP
537
+ Note that there is no longer any need to import the Tie::Cycle module \*(--
538
+ Attribute::Handlers takes care of that automagically. You can even pass
539
+ arguments to the module's \f(CW\*(C`import\*(C'\fR subroutine, by appending them to the
540
+ class name. For example:
541
+ .PP
542
+ .Vb 2
543
+ \& use Attribute::Handlers
544
+ \& autotie => { Dir => \*(AqTie::Dir qw(DIR_UNLINK)\*(Aq };
545
+ .Ve
546
+ .PP
547
+ If the attribute name is unqualified, the attribute is installed in the
548
+ current package. Otherwise it is installed in the qualifier's package:
549
+ .PP
550
+ .Vb 1
551
+ \& package Here;
552
+ \&
553
+ \& use Attribute::Handlers autotie => {
554
+ \& Other::Good => Tie::SecureHash, # tie attr installed in Other::
555
+ \& Bad => Tie::Taxes, # tie attr installed in Here::
556
+ \& UNIVERSAL::Ugly => Software::Patent # tie attr installed everywhere
557
+ \& };
558
+ .Ve
559
+ .PP
560
+ Autoties are most commonly used in the module to which they actually tie,
561
+ and need to export their attributes to any module that calls them. To
562
+ facilitate this, Attribute::Handlers recognizes a special \*(L"pseudo-class\*(R" \*(--
563
+ \&\f(CW\*(C`_\|_CALLER_\|_\*(C'\fR, which may be specified as the qualifier of an attribute:
564
+ .PP
565
+ .Vb 1
566
+ \& package Tie::Me::Kangaroo:Down::Sport;
567
+ \&
568
+ \& use Attribute::Handlers autotie =>
569
+ \& { \*(Aq_\|_CALLER_\|_::Roo\*(Aq => _\|_PACKAGE_\|_ };
570
+ .Ve
571
+ .PP
572
+ This causes Attribute::Handlers to define the \f(CW\*(C`Roo\*(C'\fR attribute in the package
573
+ that imports the Tie::Me::Kangaroo:Down::Sport module.
574
+ .PP
575
+ Note that it is important to quote the _\|_CALLER_\|_::Roo identifier because
576
+ a bug in perl 5.8 will refuse to parse it and cause an unknown error.
577
+ .PP
578
+ \fIPassing the tied object to \f(CI\*(C`tie\*(C'\fI\fR
579
+ .IX Subsection "Passing the tied object to tie"
580
+ .PP
581
+ Occasionally it is important to pass a reference to the object being tied
582
+ to the \s-1TIESCALAR, TIEHASH,\s0 etc. that ties it.
583
+ .PP
584
+ The \f(CW\*(C`autotie\*(C'\fR mechanism supports this too. The following code:
585
+ .PP
586
+ .Vb 2
587
+ \& use Attribute::Handlers autotieref => { Selfish => Tie::Selfish };
588
+ \& my $var : Selfish(@args);
589
+ .Ve
590
+ .PP
591
+ has the same effect as:
592
+ .PP
593
+ .Vb 1
594
+ \& tie my $var, \*(AqTie::Selfish\*(Aq, @args;
595
+ .Ve
596
+ .PP
597
+ But when \f(CW"autotieref"\fR is used instead of \f(CW"autotie"\fR:
598
+ .PP
599
+ .Vb 2
600
+ \& use Attribute::Handlers autotieref => { Selfish => Tie::Selfish };
601
+ \& my $var : Selfish(@args);
602
+ .Ve
603
+ .PP
604
+ the effect is to pass the \f(CW\*(C`tie\*(C'\fR call an extra reference to the variable
605
+ being tied:
606
+ .PP
607
+ .Vb 1
608
+ \& tie my $var, \*(AqTie::Selfish\*(Aq, \e$var, @args;
609
+ .Ve
610
+ .SH "EXAMPLES"
611
+ .IX Header "EXAMPLES"
612
+ If the class shown in \*(L"\s-1SYNOPSIS\*(R"\s0 were placed in the MyClass.pm
613
+ module, then the following code:
614
+ .PP
615
+ .Vb 2
616
+ \& package main;
617
+ \& use MyClass;
618
+ \&
619
+ \& my MyClass $slr :Good :Bad(1**1\-1) :Omni(\-vorous);
620
+ \&
621
+ \& package SomeOtherClass;
622
+ \& use base MyClass;
623
+ \&
624
+ \& sub tent { \*(Aqacle\*(Aq }
625
+ \&
626
+ \& sub fn :Ugly(sister) :Omni(\*(Aqpo\*(Aq,tent()) {...}
627
+ \& my @arr :Good :Omni(s/cie/nt/);
628
+ \& my %hsh :Good(q/bye/) :Omni(q/bus/);
629
+ .Ve
630
+ .PP
631
+ would cause the following handlers to be invoked:
632
+ .PP
633
+ .Vb 1
634
+ \& # my MyClass $slr :Good :Bad(1**1\-1) :Omni(\-vorous);
635
+ \&
636
+ \& MyClass::Good:ATTR(SCALAR)( \*(AqMyClass\*(Aq, # class
637
+ \& \*(AqLEXICAL\*(Aq, # no typeglob
638
+ \& \e$slr, # referent
639
+ \& \*(AqGood\*(Aq, # attr name
640
+ \& undef # no attr data
641
+ \& \*(AqCHECK\*(Aq, # compiler phase
642
+ \& );
643
+ \&
644
+ \& MyClass::Bad:ATTR(SCALAR)( \*(AqMyClass\*(Aq, # class
645
+ \& \*(AqLEXICAL\*(Aq, # no typeglob
646
+ \& \e$slr, # referent
647
+ \& \*(AqBad\*(Aq, # attr name
648
+ \& 0 # eval\*(Aqd attr data
649
+ \& \*(AqCHECK\*(Aq, # compiler phase
650
+ \& );
651
+ \&
652
+ \& MyClass::Omni:ATTR(SCALAR)( \*(AqMyClass\*(Aq, # class
653
+ \& \*(AqLEXICAL\*(Aq, # no typeglob
654
+ \& \e$slr, # referent
655
+ \& \*(AqOmni\*(Aq, # attr name
656
+ \& \*(Aq\-vorous\*(Aq # eval\*(Aqd attr data
657
+ \& \*(AqCHECK\*(Aq, # compiler phase
658
+ \& );
659
+ \&
660
+ \&
661
+ \& # sub fn :Ugly(sister) :Omni(\*(Aqpo\*(Aq,tent()) {...}
662
+ \&
663
+ \& MyClass::UGLY:ATTR(CODE)( \*(AqSomeOtherClass\*(Aq, # class
664
+ \& \e*SomeOtherClass::fn, # typeglob
665
+ \& \e&SomeOtherClass::fn, # referent
666
+ \& \*(AqUgly\*(Aq, # attr name
667
+ \& \*(Aqsister\*(Aq # eval\*(Aqd attr data
668
+ \& \*(AqCHECK\*(Aq, # compiler phase
669
+ \& );
670
+ \&
671
+ \& MyClass::Omni:ATTR(CODE)( \*(AqSomeOtherClass\*(Aq, # class
672
+ \& \e*SomeOtherClass::fn, # typeglob
673
+ \& \e&SomeOtherClass::fn, # referent
674
+ \& \*(AqOmni\*(Aq, # attr name
675
+ \& [\*(Aqpo\*(Aq,\*(Aqacle\*(Aq] # eval\*(Aqd attr data
676
+ \& \*(AqCHECK\*(Aq, # compiler phase
677
+ \& );
678
+ \&
679
+ \&
680
+ \& # my @arr :Good :Omni(s/cie/nt/);
681
+ \&
682
+ \& MyClass::Good:ATTR(ARRAY)( \*(AqSomeOtherClass\*(Aq, # class
683
+ \& \*(AqLEXICAL\*(Aq, # no typeglob
684
+ \& \e@arr, # referent
685
+ \& \*(AqGood\*(Aq, # attr name
686
+ \& undef # no attr data
687
+ \& \*(AqCHECK\*(Aq, # compiler phase
688
+ \& );
689
+ \&
690
+ \& MyClass::Omni:ATTR(ARRAY)( \*(AqSomeOtherClass\*(Aq, # class
691
+ \& \*(AqLEXICAL\*(Aq, # no typeglob
692
+ \& \e@arr, # referent
693
+ \& \*(AqOmni\*(Aq, # attr name
694
+ \& "" # eval\*(Aqd attr data
695
+ \& \*(AqCHECK\*(Aq, # compiler phase
696
+ \& );
697
+ \&
698
+ \&
699
+ \& # my %hsh :Good(q/bye) :Omni(q/bus/);
700
+ \&
701
+ \& MyClass::Good:ATTR(HASH)( \*(AqSomeOtherClass\*(Aq, # class
702
+ \& \*(AqLEXICAL\*(Aq, # no typeglob
703
+ \& \e%hsh, # referent
704
+ \& \*(AqGood\*(Aq, # attr name
705
+ \& \*(Aqq/bye\*(Aq # raw attr data
706
+ \& \*(AqCHECK\*(Aq, # compiler phase
707
+ \& );
708
+ \&
709
+ \& MyClass::Omni:ATTR(HASH)( \*(AqSomeOtherClass\*(Aq, # class
710
+ \& \*(AqLEXICAL\*(Aq, # no typeglob
711
+ \& \e%hsh, # referent
712
+ \& \*(AqOmni\*(Aq, # attr name
713
+ \& \*(Aqbus\*(Aq # eval\*(Aqd attr data
714
+ \& \*(AqCHECK\*(Aq, # compiler phase
715
+ \& );
716
+ .Ve
717
+ .PP
718
+ Installing handlers into \s-1UNIVERSAL,\s0 makes them...err..universal.
719
+ For example:
720
+ .PP
721
+ .Vb 2
722
+ \& package Descriptions;
723
+ \& use Attribute::Handlers;
724
+ \&
725
+ \& my %name;
726
+ \& sub name { return $name{$_[2]}||*{$_[1]}{NAME} }
727
+ \&
728
+ \& sub UNIVERSAL::Name :ATTR {
729
+ \& $name{$_[2]} = $_[4];
730
+ \& }
731
+ \&
732
+ \& sub UNIVERSAL::Purpose :ATTR {
733
+ \& print STDERR "Purpose of ", &name, " is $_[4]\en";
734
+ \& }
735
+ \&
736
+ \& sub UNIVERSAL::Unit :ATTR {
737
+ \& print STDERR &name, " measured in $_[4]\en";
738
+ \& }
739
+ .Ve
740
+ .PP
741
+ Let's you write:
742
+ .PP
743
+ .Vb 1
744
+ \& use Descriptions;
745
+ \&
746
+ \& my $capacity : Name(capacity)
747
+ \& : Purpose(to store max storage capacity for files)
748
+ \& : Unit(Gb);
749
+ \&
750
+ \&
751
+ \& package Other;
752
+ \&
753
+ \& sub foo : Purpose(to foo all data before barring it) { }
754
+ \&
755
+ \& # etc.
756
+ .Ve
757
+ .SH "UTILITY FUNCTIONS"
758
+ .IX Header "UTILITY FUNCTIONS"
759
+ This module offers a single utility function, \f(CW\*(C`findsym()\*(C'\fR.
760
+ .IP "findsym" 4
761
+ .IX Item "findsym"
762
+ .Vb 1
763
+ \& my $symbol = Attribute::Handlers::findsym($package, $referent);
764
+ .Ve
765
+ .Sp
766
+ The function looks in the symbol table of \f(CW$package\fR for the typeglob for
767
+ \&\f(CW$referent\fR, which is a reference to a variable or subroutine (\s-1SCALAR, ARRAY,
768
+ HASH,\s0 or \s-1CODE\s0). If it finds the typeglob, it returns it. Otherwise, it returns
769
+ undef. Note that \f(CW\*(C`findsym\*(C'\fR memoizes the typeglobs it has previously
770
+ successfully found, so subsequent calls with the same arguments should be
771
+ much faster.
772
+ .SH "DIAGNOSTICS"
773
+ .IX Header "DIAGNOSTICS"
774
+ .ie n .IP """Bad attribute type: ATTR(%s)""" 4
775
+ .el .IP "\f(CWBad attribute type: ATTR(%s)\fR" 4
776
+ .IX Item "Bad attribute type: ATTR(%s)"
777
+ An attribute handler was specified with an \f(CW\*(C`:ATTR(\f(CIref_type\f(CW)\*(C'\fR, but the
778
+ type of referent it was defined to handle wasn't one of the five permitted:
779
+ \&\f(CW\*(C`SCALAR\*(C'\fR, \f(CW\*(C`ARRAY\*(C'\fR, \f(CW\*(C`HASH\*(C'\fR, \f(CW\*(C`CODE\*(C'\fR, or \f(CW\*(C`ANY\*(C'\fR.
780
+ .ie n .IP """Attribute handler %s doesn\*(Aqt handle %s attributes""" 4
781
+ .el .IP "\f(CWAttribute handler %s doesn\*(Aqt handle %s attributes\fR" 4
782
+ .IX Item "Attribute handler %s doesnt handle %s attributes"
783
+ A handler for attributes of the specified name \fIwas\fR defined, but not
784
+ for the specified type of declaration. Typically encountered when trying
785
+ to apply a \f(CW\*(C`VAR\*(C'\fR attribute handler to a subroutine, or a \f(CW\*(C`SCALAR\*(C'\fR
786
+ attribute handler to some other type of variable.
787
+ .ie n .IP """Declaration of %s attribute in package %s may clash with future reserved word""" 4
788
+ .el .IP "\f(CWDeclaration of %s attribute in package %s may clash with future reserved word\fR" 4
789
+ .IX Item "Declaration of %s attribute in package %s may clash with future reserved word"
790
+ A handler for an attributes with an all-lowercase name was declared. An
791
+ attribute with an all-lowercase name might have a meaning to Perl
792
+ itself some day, even though most don't yet. Use a mixed-case attribute
793
+ name, instead.
794
+ .ie n .IP """Can\*(Aqt have two ATTR specifiers on one subroutine""" 4
795
+ .el .IP "\f(CWCan\*(Aqt have two ATTR specifiers on one subroutine\fR" 4
796
+ .IX Item "Cant have two ATTR specifiers on one subroutine"
797
+ You just can't, okay?
798
+ Instead, put all the specifications together with commas between them
799
+ in a single \f(CW\*(C`ATTR(\f(CIspecification\f(CW)\*(C'\fR.
800
+ .ie n .IP """Can\*(Aqt autotie a %s""" 4
801
+ .el .IP "\f(CWCan\*(Aqt autotie a %s\fR" 4
802
+ .IX Item "Cant autotie a %s"
803
+ You can only declare autoties for types \f(CW"SCALAR"\fR, \f(CW"ARRAY"\fR, and
804
+ \&\f(CW"HASH"\fR. They're the only things (apart from typeglobs \*(-- which are
805
+ not declarable) that Perl can tie.
806
+ .ie n .IP """Internal error: %s symbol went missing""" 4
807
+ .el .IP "\f(CWInternal error: %s symbol went missing\fR" 4
808
+ .IX Item "Internal error: %s symbol went missing"
809
+ Something is rotten in the state of the program. An attributed
810
+ subroutine ceased to exist between the point it was declared and the point
811
+ at which its attribute handler(s) would have been called.
812
+ .ie n .IP """Won\*(Aqt be able to apply END handler""" 4
813
+ .el .IP "\f(CWWon\*(Aqt be able to apply END handler\fR" 4
814
+ .IX Item "Wont be able to apply END handler"
815
+ You have defined an \s-1END\s0 handler for an attribute that is being applied
816
+ to a lexical variable. Since the variable may not be available during \s-1END\s0
817
+ this won't happen.
818
+ .SH "AUTHOR"
819
+ .IX Header "AUTHOR"
820
+ Damian Conway (damian@conway.org). The maintainer of this module is now Rafael
821
+ Garcia-Suarez (rgarciasuarez@gmail.com).
822
+ .PP
823
+ Maintainer of the \s-1CPAN\s0 release is Steffen Mueller (smueller@cpan.org).
824
+ Contact him with technical difficulties with respect to the packaging of the
825
+ \&\s-1CPAN\s0 module.
826
+ .SH "BUGS"
827
+ .IX Header "BUGS"
828
+ There are undoubtedly serious bugs lurking somewhere in code this funky :\-)
829
+ Bug reports and other feedback are most welcome.
830
+ .SH "COPYRIGHT AND LICENSE"
831
+ .IX Header "COPYRIGHT AND LICENSE"
832
+ .Vb 3
833
+ \& Copyright (c) 2001\-2014, Damian Conway. All Rights Reserved.
834
+ \& This module is free software. It may be used, redistributed
835
+ \& and/or modified under the same terms as Perl itself.
836
+ .Ve
data/miniconda3/man/man3/B%3A%3AOp_private.3 ADDED
@@ -0,0 +1,250 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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::Op_private 3"
136
+ .TH B::Op_private 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::Op_private \- OP op_private flag definitions
143
+ .SH "SYNOPSIS"
144
+ .IX Header "SYNOPSIS"
145
+ .Vb 1
146
+ \& use B::Op_private;
147
+ \&
148
+ \& # flag details for bit 7 of OP_AELEM\*(Aqs op_private:
149
+ \& my $name = $B::Op_private::bits{aelem}{7}; # OPpLVAL_INTRO
150
+ \& my $value = $B::Op_private::defines{$name}; # 128
151
+ \& my $label = $B::Op_private::labels{$name}; # LVINTRO
152
+ \&
153
+ \& # the bit field at bits 5..6 of OP_AELEM\*(Aqs op_private:
154
+ \& my $bf = $B::Op_private::bits{aelem}{6};
155
+ \& my $mask = $bf\->{bitmask}; # etc
156
+ .Ve
157
+ .SH "DESCRIPTION"
158
+ .IX Header "DESCRIPTION"
159
+ This module provides four global hashes:
160
+ .PP
161
+ .Vb 4
162
+ \& %B::Op_private::bits
163
+ \& %B::Op_private::defines
164
+ \& %B::Op_private::labels
165
+ \& %B::Op_private::ops_using
166
+ .Ve
167
+ .PP
168
+ which contain information about the per-op meanings of the bits in the
169
+ op_private field.
170
+ .ie n .SS "%bits"
171
+ .el .SS "\f(CW%bits\fP"
172
+ .IX Subsection "%bits"
173
+ This is indexed by op name and then bit number (0..7). For single bit flags,
174
+ it returns the name of the define (if any) for that bit:
175
+ .PP
176
+ .Vb 1
177
+ \& $B::Op_private::bits{aelem}{7} eq \*(AqOPpLVAL_INTRO\*(Aq;
178
+ .Ve
179
+ .PP
180
+ For bit fields, it returns a hash ref containing details about the field.
181
+ The same reference will be returned for all bit positions that make
182
+ up the bit field; so for example these both return the same hash ref:
183
+ .PP
184
+ .Vb 2
185
+ \& $bitfield = $B::Op_private::bits{aelem}{5};
186
+ \& $bitfield = $B::Op_private::bits{aelem}{6};
187
+ .Ve
188
+ .PP
189
+ The general format of this hash ref is
190
+ .PP
191
+ .Vb 5
192
+ \& {
193
+ \& # The bit range and mask; these are always present.
194
+ \& bitmin => 5,
195
+ \& bitmax => 6,
196
+ \& bitmask => 0x60,
197
+ \&
198
+ \& # (The remaining keys are optional)
199
+ \&
200
+ \& # The names of any defines that were requested:
201
+ \& mask_def => \*(AqOPpFOO_MASK\*(Aq,
202
+ \& baseshift_def => \*(AqOPpFOO_SHIFT\*(Aq,
203
+ \& bitcount_def => \*(AqOPpFOO_BITS\*(Aq,
204
+ \&
205
+ \& # If present, Concise etc will display the value with a \*(AqFOO=\*(Aq
206
+ \& # prefix. If it equals \*(Aq\-\*(Aq, then Concise will treat the bit
207
+ \& # field as raw bits and not try to interpret it.
208
+ \& label => \*(AqFOO\*(Aq,
209
+ \&
210
+ \& # If present, specifies the names of some defines and the
211
+ \& # display labels that are used to assign meaning to particu\-
212
+ \& # lar integer values within the bit field; e.g. 3 is dis\-
213
+ \& # played as \*(AqC\*(Aq.
214
+ \& enum => [ qw(
215
+ \& 1 OPpFOO_A A
216
+ \& 2 OPpFOO_B B
217
+ \& 3 OPpFOO_C C
218
+ \& )],
219
+ \&
220
+ \& };
221
+ .Ve
222
+ .ie n .SS "%defines"
223
+ .el .SS "\f(CW%defines\fP"
224
+ .IX Subsection "%defines"
225
+ This gives the value of every \f(CW\*(C`OPp\*(C'\fR define, e.g.
226
+ .PP
227
+ .Vb 1
228
+ \& $B::Op_private::defines{OPpLVAL_INTRO} == 128;
229
+ .Ve
230
+ .ie n .SS "%labels"
231
+ .el .SS "\f(CW%labels\fP"
232
+ .IX Subsection "%labels"
233
+ This gives the short display label for each define, as used by \f(CW\*(C`B::Concise\*(C'\fR
234
+ and \f(CW\*(C`perl \-Dx\*(C'\fR, e.g.
235
+ .PP
236
+ .Vb 1
237
+ \& $B::Op_private::labels{OPpLVAL_INTRO} eq \*(AqLVINTRO\*(Aq;
238
+ .Ve
239
+ .PP
240
+ If the label equals '\-', then Concise will treat the bit as a raw bit and
241
+ not try to display it symbolically.
242
+ .ie n .SS "%ops_using"
243
+ .el .SS "\f(CW%ops_using\fP"
244
+ .IX Subsection "%ops_using"
245
+ For each define, this gives a reference to an array of op names that use
246
+ the flag.
247
+ .PP
248
+ .Vb 1
249
+ \& @ops_using_lvintro = @{ $B::Op_private::ops_using{OPp_LVAL_INTRO} };
250
+ .Ve
data/miniconda3/man/man3/Benchmark.3 ADDED
@@ -0,0 +1,585 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "Benchmark 3"
136
+ .TH Benchmark 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
+ Benchmark \- benchmark running times of Perl code
143
+ .SH "SYNOPSIS"
144
+ .IX Header "SYNOPSIS"
145
+ .Vb 1
146
+ \& use Benchmark qw(:all) ;
147
+ \&
148
+ \& timethis ($count, "code");
149
+ \&
150
+ \& # Use Perl code in strings...
151
+ \& timethese($count, {
152
+ \& \*(AqName1\*(Aq => \*(Aq...code1...\*(Aq,
153
+ \& \*(AqName2\*(Aq => \*(Aq...code2...\*(Aq,
154
+ \& });
155
+ \&
156
+ \& # ... or use subroutine references.
157
+ \& timethese($count, {
158
+ \& \*(AqName1\*(Aq => sub { ...code1... },
159
+ \& \*(AqName2\*(Aq => sub { ...code2... },
160
+ \& });
161
+ \&
162
+ \& # cmpthese can be used both ways as well
163
+ \& cmpthese($count, {
164
+ \& \*(AqName1\*(Aq => \*(Aq...code1...\*(Aq,
165
+ \& \*(AqName2\*(Aq => \*(Aq...code2...\*(Aq,
166
+ \& });
167
+ \&
168
+ \& cmpthese($count, {
169
+ \& \*(AqName1\*(Aq => sub { ...code1... },
170
+ \& \*(AqName2\*(Aq => sub { ...code2... },
171
+ \& });
172
+ \&
173
+ \& # ...or in two stages
174
+ \& $results = timethese($count,
175
+ \& {
176
+ \& \*(AqName1\*(Aq => sub { ...code1... },
177
+ \& \*(AqName2\*(Aq => sub { ...code2... },
178
+ \& },
179
+ \& \*(Aqnone\*(Aq
180
+ \& );
181
+ \& cmpthese( $results ) ;
182
+ \&
183
+ \& $t = timeit($count, \*(Aq...other code...\*(Aq)
184
+ \& print "$count loops of other code took:",timestr($t),"\en";
185
+ \&
186
+ \& $t = countit($time, \*(Aq...other code...\*(Aq)
187
+ \& $count = $t\->iters ;
188
+ \& print "$count loops of other code took:",timestr($t),"\en";
189
+ \&
190
+ \& # enable hires wallclock timing if possible
191
+ \& use Benchmark \*(Aq:hireswallclock\*(Aq;
192
+ .Ve
193
+ .SH "DESCRIPTION"
194
+ .IX Header "DESCRIPTION"
195
+ The Benchmark module encapsulates a number of routines to help you
196
+ figure out how long it takes to execute some code.
197
+ .PP
198
+ timethis \- run a chunk of code several times
199
+ .PP
200
+ timethese \- run several chunks of code several times
201
+ .PP
202
+ cmpthese \- print results of timethese as a comparison chart
203
+ .PP
204
+ timeit \- run a chunk of code and see how long it goes
205
+ .PP
206
+ countit \- see how many times a chunk of code runs in a given time
207
+ .SS "Methods"
208
+ .IX Subsection "Methods"
209
+ .IP "new" 10
210
+ .IX Item "new"
211
+ Returns the current time. Example:
212
+ .Sp
213
+ .Vb 6
214
+ \& use Benchmark;
215
+ \& $t0 = Benchmark\->new;
216
+ \& # ... your code here ...
217
+ \& $t1 = Benchmark\->new;
218
+ \& $td = timediff($t1, $t0);
219
+ \& print "the code took:",timestr($td),"\en";
220
+ .Ve
221
+ .IP "debug" 10
222
+ .IX Item "debug"
223
+ Enables or disable debugging by setting the \f(CW$Benchmark::Debug\fR flag:
224
+ .Sp
225
+ .Vb 3
226
+ \& Benchmark\->debug(1);
227
+ \& $t = timeit(10, \*(Aq 5 ** $Global \*(Aq);
228
+ \& Benchmark\->debug(0);
229
+ .Ve
230
+ .IP "iters" 10
231
+ .IX Item "iters"
232
+ Returns the number of iterations.
233
+ .SS "Standard Exports"
234
+ .IX Subsection "Standard Exports"
235
+ The following routines will be exported into your namespace
236
+ if you use the Benchmark module:
237
+ .IP "timeit(\s-1COUNT, CODE\s0)" 10
238
+ .IX Item "timeit(COUNT, CODE)"
239
+ Arguments: \s-1COUNT\s0 is the number of times to run the loop, and \s-1CODE\s0 is
240
+ the code to run. \s-1CODE\s0 may be either a code reference or a string to
241
+ be eval'd; either way it will be run in the caller's package.
242
+ .Sp
243
+ Returns: a Benchmark object.
244
+ .IP "timethis ( \s-1COUNT, CODE,\s0 [ \s-1TITLE,\s0 [ \s-1STYLE\s0 ]] )" 10
245
+ .IX Item "timethis ( COUNT, CODE, [ TITLE, [ STYLE ]] )"
246
+ Time \s-1COUNT\s0 iterations of \s-1CODE. CODE\s0 may be a string to eval or a
247
+ code reference; either way the \s-1CODE\s0 will run in the caller's package.
248
+ Results will be printed to \s-1STDOUT\s0 as \s-1TITLE\s0 followed by the times.
249
+ \&\s-1TITLE\s0 defaults to \*(L"timethis \s-1COUNT\*(R"\s0 if none is provided. \s-1STYLE\s0
250
+ determines the format of the output, as described for \fBtimestr()\fR below.
251
+ .Sp
252
+ The \s-1COUNT\s0 can be zero or negative: this means the \fIminimum number of
253
+ \&\s-1CPU\s0 seconds\fR to run. A zero signifies the default of 3 seconds. For
254
+ example to run at least for 10 seconds:
255
+ .Sp
256
+ .Vb 1
257
+ \& timethis(\-10, $code)
258
+ .Ve
259
+ .Sp
260
+ or to run two pieces of code tests for at least 3 seconds:
261
+ .Sp
262
+ .Vb 1
263
+ \& timethese(0, { test1 => \*(Aq...\*(Aq, test2 => \*(Aq...\*(Aq})
264
+ .Ve
265
+ .Sp
266
+ \&\s-1CPU\s0 seconds is, in \s-1UNIX\s0 terms, the user time plus the system time of
267
+ the process itself, as opposed to the real (wallclock) time and the
268
+ time spent by the child processes. Less than 0.1 seconds is not
269
+ accepted (\-0.01 as the count, for example, will cause a fatal runtime
270
+ exception).
271
+ .Sp
272
+ Note that the \s-1CPU\s0 seconds is the \fBminimum\fR time: \s-1CPU\s0 scheduling and
273
+ other operating system factors may complicate the attempt so that a
274
+ little bit more time is spent. The benchmark output will, however,
275
+ also tell the number of \f(CW$code\fR runs/second, which should be a more
276
+ interesting number than the actually spent seconds.
277
+ .Sp
278
+ Returns a Benchmark object.
279
+ .IP "timethese ( \s-1COUNT, CODEHASHREF,\s0 [ \s-1STYLE\s0 ] )" 10
280
+ .IX Item "timethese ( COUNT, CODEHASHREF, [ STYLE ] )"
281
+ The \s-1CODEHASHREF\s0 is a reference to a hash containing names as keys
282
+ and either a string to eval or a code reference for each value.
283
+ For each (\s-1KEY, VALUE\s0) pair in the \s-1CODEHASHREF,\s0 this routine will
284
+ call
285
+ .Sp
286
+ .Vb 1
287
+ \& timethis(COUNT, VALUE, KEY, STYLE)
288
+ .Ve
289
+ .Sp
290
+ The routines are called in string comparison order of \s-1KEY.\s0
291
+ .Sp
292
+ The \s-1COUNT\s0 can be zero or negative, see \fBtimethis()\fR.
293
+ .Sp
294
+ Returns a hash reference of Benchmark objects, keyed by name.
295
+ .IP "timediff ( T1, T2 )" 10
296
+ .IX Item "timediff ( T1, T2 )"
297
+ Returns the difference between two Benchmark times as a Benchmark
298
+ object suitable for passing to \fBtimestr()\fR.
299
+ .IP "timestr ( \s-1TIMEDIFF,\s0 [ \s-1STYLE,\s0 [ \s-1FORMAT\s0 ] ] )" 10
300
+ .IX Item "timestr ( TIMEDIFF, [ STYLE, [ FORMAT ] ] )"
301
+ Returns a string that formats the times in the \s-1TIMEDIFF\s0 object in
302
+ the requested \s-1STYLE. TIMEDIFF\s0 is expected to be a Benchmark object
303
+ similar to that returned by \fBtimediff()\fR.
304
+ .Sp
305
+ \&\s-1STYLE\s0 can be any of 'all', 'none', 'noc', 'nop' or 'auto'. 'all' shows
306
+ each of the 5 times available ('wallclock' time, user time, system time,
307
+ user time of children, and system time of children). 'noc' shows all
308
+ except the two children times. 'nop' shows only wallclock and the
309
+ two children times. 'auto' (the default) will act as 'all' unless
310
+ the children times are both zero, in which case it acts as 'noc'.
311
+ \&'none' prevents output.
312
+ .Sp
313
+ \&\s-1FORMAT\s0 is the \fBprintf\fR\|(3)\-style format specifier (without the
314
+ leading '%') to use to print the times. It defaults to '5.2f'.
315
+ .SS "Optional Exports"
316
+ .IX Subsection "Optional Exports"
317
+ The following routines will be exported into your namespace
318
+ if you specifically ask that they be imported:
319
+ .IP "clearcache ( \s-1COUNT\s0 )" 10
320
+ .IX Item "clearcache ( COUNT )"
321
+ Clear the cached time for \s-1COUNT\s0 rounds of the null loop.
322
+ .IP "clearallcache ( )" 10
323
+ .IX Item "clearallcache ( )"
324
+ Clear all cached times.
325
+ .IP "cmpthese ( \s-1COUNT, CODEHASHREF,\s0 [ \s-1STYLE\s0 ] )" 10
326
+ .IX Item "cmpthese ( COUNT, CODEHASHREF, [ STYLE ] )"
327
+ .PD 0
328
+ .IP "cmpthese ( \s-1RESULTSHASHREF,\s0 [ \s-1STYLE\s0 ] )" 10
329
+ .IX Item "cmpthese ( RESULTSHASHREF, [ STYLE ] )"
330
+ .PD
331
+ Optionally calls \fBtimethese()\fR, then outputs comparison chart. This:
332
+ .Sp
333
+ .Vb 1
334
+ \& cmpthese( \-1, { a => "++\e$i", b => "\e$i *= 2" } ) ;
335
+ .Ve
336
+ .Sp
337
+ outputs a chart like:
338
+ .Sp
339
+ .Vb 3
340
+ \& Rate b a
341
+ \& b 2831802/s \-\- \-61%
342
+ \& a 7208959/s 155% \-\-
343
+ .Ve
344
+ .Sp
345
+ This chart is sorted from slowest to fastest, and shows the percent speed
346
+ difference between each pair of tests.
347
+ .Sp
348
+ \&\f(CW\*(C`cmpthese\*(C'\fR can also be passed the data structure that \fBtimethese()\fR returns:
349
+ .Sp
350
+ .Vb 3
351
+ \& $results = timethese( \-1,
352
+ \& { a => "++\e$i", b => "\e$i *= 2" } ) ;
353
+ \& cmpthese( $results );
354
+ .Ve
355
+ .Sp
356
+ in case you want to see both sets of results.
357
+ If the first argument is an unblessed hash reference,
358
+ that is \s-1RESULTSHASHREF\s0; otherwise that is \s-1COUNT.\s0
359
+ .Sp
360
+ Returns a reference to an \s-1ARRAY\s0 of rows, each row is an \s-1ARRAY\s0 of cells from the
361
+ above chart, including labels. This:
362
+ .Sp
363
+ .Vb 2
364
+ \& my $rows = cmpthese( \-1,
365
+ \& { a => \*(Aq++$i\*(Aq, b => \*(Aq$i *= 2\*(Aq }, "none" );
366
+ .Ve
367
+ .Sp
368
+ returns a data structure like:
369
+ .Sp
370
+ .Vb 5
371
+ \& [
372
+ \& [ \*(Aq\*(Aq, \*(AqRate\*(Aq, \*(Aqb\*(Aq, \*(Aqa\*(Aq ],
373
+ \& [ \*(Aqb\*(Aq, \*(Aq2885232/s\*(Aq, \*(Aq\-\-\*(Aq, \*(Aq\-59%\*(Aq ],
374
+ \& [ \*(Aqa\*(Aq, \*(Aq7099126/s\*(Aq, \*(Aq146%\*(Aq, \*(Aq\-\-\*(Aq ],
375
+ \& ]
376
+ .Ve
377
+ .Sp
378
+ \&\fB\s-1NOTE\s0\fR: This result value differs from previous versions, which returned
379
+ the \f(CW\*(C`timethese()\*(C'\fR result structure. If you want that, just use the two
380
+ statement \f(CW\*(C`timethese\*(C'\fR...\f(CW\*(C`cmpthese\*(C'\fR idiom shown above.
381
+ .Sp
382
+ Incidentally, note the variance in the result values between the two examples;
383
+ this is typical of benchmarking. If this were a real benchmark, you would
384
+ probably want to run a lot more iterations.
385
+ .IP "countit(\s-1TIME, CODE\s0)" 10
386
+ .IX Item "countit(TIME, CODE)"
387
+ Arguments: \s-1TIME\s0 is the minimum length of time to run \s-1CODE\s0 for, and \s-1CODE\s0 is
388
+ the code to run. \s-1CODE\s0 may be either a code reference or a string to
389
+ be eval'd; either way it will be run in the caller's package.
390
+ .Sp
391
+ \&\s-1TIME\s0 is \fInot\fR negative. \fBcountit()\fR will run the loop many times to
392
+ calculate the speed of \s-1CODE\s0 before running it for \s-1TIME.\s0 The actual
393
+ time run for will usually be greater than \s-1TIME\s0 due to system clock
394
+ resolution, so it's best to look at the number of iterations divided
395
+ by the times that you are concerned with, not just the iterations.
396
+ .Sp
397
+ Returns: a Benchmark object.
398
+ .IP "disablecache ( )" 10
399
+ .IX Item "disablecache ( )"
400
+ Disable caching of timings for the null loop. This will force Benchmark
401
+ to recalculate these timings for each new piece of code timed.
402
+ .IP "enablecache ( )" 10
403
+ .IX Item "enablecache ( )"
404
+ Enable caching of timings for the null loop. The time taken for \s-1COUNT\s0
405
+ rounds of the null loop will be calculated only once for each
406
+ different \s-1COUNT\s0 used.
407
+ .IP "timesum ( T1, T2 )" 10
408
+ .IX Item "timesum ( T1, T2 )"
409
+ Returns the sum of two Benchmark times as a Benchmark object suitable
410
+ for passing to \fBtimestr()\fR.
411
+ .SS ":hireswallclock"
412
+ .IX Subsection ":hireswallclock"
413
+ If the Time::HiRes module has been installed, you can specify the
414
+ special tag \f(CW\*(C`:hireswallclock\*(C'\fR for Benchmark (if Time::HiRes is not
415
+ available, the tag will be silently ignored). This tag will cause the
416
+ wallclock time to be measured in microseconds, instead of integer
417
+ seconds. Note though that the speed computations are still conducted
418
+ in \s-1CPU\s0 time, not wallclock time.
419
+ .SH "Benchmark Object"
420
+ .IX Header "Benchmark Object"
421
+ Many of the functions in this module return a Benchmark object,
422
+ or in the case of \f(CW\*(C`timethese()\*(C'\fR, a reference to a hash, the values of
423
+ which are Benchmark objects. This is useful if you want to store or
424
+ further process results from Benchmark functions.
425
+ .PP
426
+ Internally the Benchmark object holds timing values,
427
+ described in \*(L"\s-1NOTES\*(R"\s0 below.
428
+ The following methods can be used to access them:
429
+ .IP "cpu_p" 4
430
+ .IX Item "cpu_p"
431
+ Total \s-1CPU\s0 (User + System) of the main (parent) process.
432
+ .IP "cpu_c" 4
433
+ .IX Item "cpu_c"
434
+ Total \s-1CPU\s0 (User + System) of any children processes.
435
+ .IP "cpu_a" 4
436
+ .IX Item "cpu_a"
437
+ Total \s-1CPU\s0 of parent and any children processes.
438
+ .IP "real" 4
439
+ .IX Item "real"
440
+ Real elapsed time \*(L"wallclock seconds\*(R".
441
+ .IP "iters" 4
442
+ .IX Item "iters"
443
+ Number of iterations run.
444
+ .PP
445
+ The following illustrates use of the Benchmark object:
446
+ .PP
447
+ .Vb 2
448
+ \& $result = timethis(100000, sub { ... });
449
+ \& print "total CPU = ", $result\->cpu_a, "\en";
450
+ .Ve
451
+ .SH "NOTES"
452
+ .IX Header "NOTES"
453
+ The data is stored as a list of values from the time and times
454
+ functions:
455
+ .PP
456
+ .Vb 1
457
+ \& ($real, $user, $system, $children_user, $children_system, $iters)
458
+ .Ve
459
+ .PP
460
+ in seconds for the whole loop (not divided by the number of rounds).
461
+ .PP
462
+ The timing is done using \fBtime\fR\|(3) and \fBtimes\fR\|(3).
463
+ .PP
464
+ Code is executed in the caller's package.
465
+ .PP
466
+ The time of the null loop (a loop with the same
467
+ number of rounds but empty loop body) is subtracted
468
+ from the time of the real loop.
469
+ .PP
470
+ The null loop times can be cached, the key being the
471
+ number of rounds. The caching can be controlled using
472
+ calls like these:
473
+ .PP
474
+ .Vb 2
475
+ \& clearcache($key);
476
+ \& clearallcache();
477
+ \&
478
+ \& disablecache();
479
+ \& enablecache();
480
+ .Ve
481
+ .PP
482
+ Caching is off by default, as it can (usually slightly) decrease
483
+ accuracy and does not usually noticeably affect runtimes.
484
+ .SH "EXAMPLES"
485
+ .IX Header "EXAMPLES"
486
+ For example,
487
+ .PP
488
+ .Vb 6
489
+ \& use Benchmark qw( cmpthese ) ;
490
+ \& $x = 3;
491
+ \& cmpthese( \-5, {
492
+ \& a => sub{$x*$x},
493
+ \& b => sub{$x**2},
494
+ \& } );
495
+ .Ve
496
+ .PP
497
+ outputs something like this:
498
+ .PP
499
+ .Vb 4
500
+ \& Benchmark: running a, b, each for at least 5 CPU seconds...
501
+ \& Rate b a
502
+ \& b 1559428/s \-\- \-62%
503
+ \& a 4152037/s 166% \-\-
504
+ .Ve
505
+ .PP
506
+ while
507
+ .PP
508
+ .Vb 7
509
+ \& use Benchmark qw( timethese cmpthese ) ;
510
+ \& $x = 3;
511
+ \& $r = timethese( \-5, {
512
+ \& a => sub{$x*$x},
513
+ \& b => sub{$x**2},
514
+ \& } );
515
+ \& cmpthese $r;
516
+ .Ve
517
+ .PP
518
+ outputs something like this:
519
+ .PP
520
+ .Vb 6
521
+ \& Benchmark: running a, b, each for at least 5 CPU seconds...
522
+ \& a: 10 wallclock secs ( 5.14 usr + 0.13 sys = 5.27 CPU) @ 3835055.60/s (n=20210743)
523
+ \& b: 5 wallclock secs ( 5.41 usr + 0.00 sys = 5.41 CPU) @ 1574944.92/s (n=8520452)
524
+ \& Rate b a
525
+ \& b 1574945/s \-\- \-59%
526
+ \& a 3835056/s 144% \-\-
527
+ .Ve
528
+ .SH "INHERITANCE"
529
+ .IX Header "INHERITANCE"
530
+ Benchmark inherits from no other class, except of course
531
+ from Exporter.
532
+ .SH "CAVEATS"
533
+ .IX Header "CAVEATS"
534
+ Comparing eval'd strings with code references will give you
535
+ inaccurate results: a code reference will show a slightly slower
536
+ execution time than the equivalent eval'd string.
537
+ .PP
538
+ The real time timing is done using \fBtime\fR\|(2) and
539
+ the granularity is therefore only one second.
540
+ .PP
541
+ Short tests may produce negative figures because perl
542
+ can appear to take longer to execute the empty loop
543
+ than a short test; try:
544
+ .PP
545
+ .Vb 1
546
+ \& timethis(100,\*(Aq1\*(Aq);
547
+ .Ve
548
+ .PP
549
+ The system time of the null loop might be slightly
550
+ more than the system time of the loop with the actual
551
+ code and therefore the difference might end up being < 0.
552
+ .SH "SEE ALSO"
553
+ .IX Header "SEE ALSO"
554
+ Devel::NYTProf \- a Perl code profiler
555
+ .SH "AUTHORS"
556
+ .IX Header "AUTHORS"
557
+ Jarkko Hietaniemi <\fIjhi@iki.fi\fR>, Tim Bunce <\fITim.Bunce@ig.co.uk\fR>
558
+ .SH "MODIFICATION HISTORY"
559
+ .IX Header "MODIFICATION HISTORY"
560
+ September 8th, 1994; by Tim Bunce.
561
+ .PP
562
+ March 28th, 1997; by Hugo van der Sanden: added support for code
563
+ references and the already documented 'debug' method; revamped
564
+ documentation.
565
+ .PP
566
+ April 04\-07th, 1997: by Jarkko Hietaniemi, added the run-for-some-time
567
+ functionality.
568
+ .PP
569
+ September, 1999; by Barrie Slaymaker: math fixes and accuracy and
570
+ efficiency tweaks. Added \fBcmpthese()\fR. A result is now returned from
571
+ \&\fBtimethese()\fR. Exposed \fBcountit()\fR (was \fBrunfor()\fR).
572
+ .PP
573
+ December, 2001; by Nicholas Clark: make \fBtimestr()\fR recognise the style 'none'
574
+ and return an empty string. If cmpthese is calling timethese, make it pass the
575
+ style in. (so that 'none' will suppress output). Make sub new dump its
576
+ debugging output to \s-1STDERR,\s0 to be consistent with everything else.
577
+ All bugs found while writing a regression test.
578
+ .PP
579
+ September, 2002; by Jarkko Hietaniemi: add ':hireswallclock' special tag.
580
+ .PP
581
+ February, 2004; by Chia-liang Kao: make cmpthese and timestr use time
582
+ statistics for children instead of parent when the style is 'nop'.
583
+ .PP
584
+ November, 2007; by Christophe Grosjean: make cmpthese and timestr compute
585
+ time consistently with style argument, default is 'all' not 'noc' any more.
data/miniconda3/man/man3/CORE.3 ADDED
@@ -0,0 +1,236 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "CORE 3"
136
+ .TH CORE 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
+ CORE \- Namespace for Perl's core routines
143
+ .SH "SYNOPSIS"
144
+ .IX Header "SYNOPSIS"
145
+ .Vb 3
146
+ \& BEGIN {
147
+ \& *CORE::GLOBAL::hex = sub { 1; };
148
+ \& }
149
+ \&
150
+ \& print hex("0x50"),"\en"; # prints 1
151
+ \& print CORE::hex("0x50"),"\en"; # prints 80
152
+ \& CORE::say "yes"; # prints yes
153
+ \&
154
+ \& BEGIN { *shove = \e&CORE::push; }
155
+ \& shove @array, 1,2,3; # pushes on to @array
156
+ .Ve
157
+ .SH "DESCRIPTION"
158
+ .IX Header "DESCRIPTION"
159
+ The \f(CW\*(C`CORE\*(C'\fR namespace gives access to the original built-in functions of
160
+ Perl. The \f(CW\*(C`CORE\*(C'\fR package is built into
161
+ Perl, and therefore you do not need to use or
162
+ require a hypothetical \*(L"\s-1CORE\*(R"\s0 module prior to accessing routines in this
163
+ namespace.
164
+ .PP
165
+ A list of the built-in functions in Perl can be found in perlfunc.
166
+ .PP
167
+ For all Perl keywords, a \f(CW\*(C`CORE::\*(C'\fR prefix will force the built-in function
168
+ to be used, even if it has been overridden or would normally require the
169
+ feature pragma. Despite appearances, this has nothing to do with the
170
+ \&\s-1CORE\s0 package, but is part of Perl's syntax.
171
+ .PP
172
+ For many Perl functions, the \s-1CORE\s0 package contains real subroutines. This
173
+ feature is new in Perl 5.16. You can take references to these and make
174
+ aliases. However, some can only be called as barewords; i.e., you cannot
175
+ use ampersand syntax (\f(CW&foo\fR) or call them through references. See the
176
+ \&\f(CW\*(C`shove\*(C'\fR example above. These subroutines exist for all keywords except the following:
177
+ .PP
178
+ \&\f(CW\*(C`_\|_DATA_\|_\*(C'\fR, \f(CW\*(C`_\|_END_\|_\*(C'\fR, \f(CW\*(C`and\*(C'\fR, \f(CW\*(C`cmp\*(C'\fR, \f(CW\*(C`default\*(C'\fR, \f(CW\*(C`do\*(C'\fR, \f(CW\*(C`dump\*(C'\fR,
179
+ \&\f(CW\*(C`else\*(C'\fR, \f(CW\*(C`elsif\*(C'\fR, \f(CW\*(C`eq\*(C'\fR, \f(CW\*(C`eval\*(C'\fR, \f(CW\*(C`for\*(C'\fR, \f(CW\*(C`foreach\*(C'\fR, \f(CW\*(C`format\*(C'\fR, \f(CW\*(C`ge\*(C'\fR,
180
+ \&\f(CW\*(C`given\*(C'\fR, \f(CW\*(C`goto\*(C'\fR, \f(CW\*(C`grep\*(C'\fR, \f(CW\*(C`gt\*(C'\fR, \f(CW\*(C`if\*(C'\fR, \f(CW\*(C`last\*(C'\fR, \f(CW\*(C`le\*(C'\fR, \f(CW\*(C`local\*(C'\fR, \f(CW\*(C`lt\*(C'\fR,
181
+ \&\f(CW\*(C`m\*(C'\fR, \f(CW\*(C`map\*(C'\fR, \f(CW\*(C`my\*(C'\fR, \f(CW\*(C`ne\*(C'\fR, \f(CW\*(C`next\*(C'\fR, \f(CW\*(C`no\*(C'\fR, \f(CW\*(C`or\*(C'\fR, \f(CW\*(C`our\*(C'\fR, \f(CW\*(C`package\*(C'\fR,
182
+ \&\f(CW\*(C`print\*(C'\fR, \f(CW\*(C`printf\*(C'\fR, \f(CW\*(C`q\*(C'\fR, \f(CW\*(C`qq\*(C'\fR, \f(CW\*(C`qr\*(C'\fR, \f(CW\*(C`qw\*(C'\fR, \f(CW\*(C`qx\*(C'\fR, \f(CW\*(C`redo\*(C'\fR, \f(CW\*(C`require\*(C'\fR,
183
+ \&\f(CW\*(C`return\*(C'\fR, \f(CW\*(C`s\*(C'\fR, \f(CW\*(C`say\*(C'\fR, \f(CW\*(C`sort\*(C'\fR, \f(CW\*(C`state\*(C'\fR, \f(CW\*(C`sub\*(C'\fR, \f(CW\*(C`tr\*(C'\fR, \f(CW\*(C`unless\*(C'\fR,
184
+ \&\f(CW\*(C`until\*(C'\fR, \f(CW\*(C`use\*(C'\fR, \f(CW\*(C`when\*(C'\fR, \f(CW\*(C`while\*(C'\fR, \f(CW\*(C`x\*(C'\fR, \f(CW\*(C`xor\*(C'\fR, \f(CW\*(C`y\*(C'\fR
185
+ .PP
186
+ Calling with
187
+ ampersand syntax and through references does not work for the following
188
+ functions, as they have special syntax that cannot always be translated
189
+ into a simple list (e.g., \f(CW\*(C`eof\*(C'\fR vs \f(CW\*(C`eof()\*(C'\fR):
190
+ .PP
191
+ \&\f(CW\*(C`chdir\*(C'\fR, \f(CW\*(C`chomp\*(C'\fR, \f(CW\*(C`chop\*(C'\fR, \f(CW\*(C`defined\*(C'\fR, \f(CW\*(C`delete\*(C'\fR, \f(CW\*(C`eof\*(C'\fR, \f(CW\*(C`exec\*(C'\fR,
192
+ \&\f(CW\*(C`exists\*(C'\fR, \f(CW\*(C`lstat\*(C'\fR, \f(CW\*(C`split\*(C'\fR, \f(CW\*(C`stat\*(C'\fR, \f(CW\*(C`system\*(C'\fR, \f(CW\*(C`truncate\*(C'\fR, \f(CW\*(C`unlink\*(C'\fR
193
+ .SH "OVERRIDING CORE FUNCTIONS"
194
+ .IX Header "OVERRIDING CORE FUNCTIONS"
195
+ To override a Perl built-in routine with your own version, you need to
196
+ import it at compile-time. This can be conveniently achieved with the
197
+ \&\f(CW\*(C`subs\*(C'\fR pragma. This will affect only the package in which you've imported
198
+ the said subroutine:
199
+ .PP
200
+ .Vb 3
201
+ \& use subs \*(Aqchdir\*(Aq;
202
+ \& sub chdir { ... }
203
+ \& chdir $somewhere;
204
+ .Ve
205
+ .PP
206
+ To override a built-in globally (that is, in all namespaces), you need to
207
+ import your function into the \f(CW\*(C`CORE::GLOBAL\*(C'\fR pseudo-namespace at compile
208
+ time:
209
+ .PP
210
+ .Vb 5
211
+ \& BEGIN {
212
+ \& *CORE::GLOBAL::hex = sub {
213
+ \& # ... your code here
214
+ \& };
215
+ \& }
216
+ .Ve
217
+ .PP
218
+ The new routine will be called whenever a built-in function is called
219
+ without a qualifying package:
220
+ .PP
221
+ .Vb 1
222
+ \& print hex("0x50"),"\en"; # prints 1
223
+ .Ve
224
+ .PP
225
+ In both cases, if you want access to the original, unaltered routine, use
226
+ the \f(CW\*(C`CORE::\*(C'\fR prefix:
227
+ .PP
228
+ .Vb 1
229
+ \& print CORE::hex("0x50"),"\en"; # prints 80
230
+ .Ve
231
+ .SH "AUTHOR"
232
+ .IX Header "AUTHOR"
233
+ This documentation provided by Tels <nospam\-abuse@bloodgate.com> 2007.
234
+ .SH "SEE ALSO"
235
+ .IX Header "SEE ALSO"
236
+ perlsub, perlfunc.
data/miniconda3/man/man3/CPAN%3A%3APlugin%3A%3ASpecfile.3 ADDED
@@ -0,0 +1,189 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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::Plugin::Specfile 3"
136
+ .TH CPAN::Plugin::Specfile 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::Specfile \- Proof of concept implementation of a trivial CPAN::Plugin
143
+ .SH "SYNOPSIS"
144
+ .IX Header "SYNOPSIS"
145
+ .Vb 2
146
+ \& # once in the cpan shell
147
+ \& o conf plugin_list push CPAN::Plugin::Specfile
148
+ \&
149
+ \& # make permanent
150
+ \& o conf commit
151
+ \&
152
+ \& # any time in the cpan shell to write a spec file
153
+ \& test Acme::Meta
154
+ \&
155
+ \& # disable
156
+ \& # if it is the last in plugin_list:
157
+ \& o conf plugin_list pop
158
+ \& # otherwise, determine the index to splice:
159
+ \& o conf plugin_list
160
+ \& # and then use splice, e.g. to splice position 3:
161
+ \& o conf plugin_list splice 3 1
162
+ .Ve
163
+ .SH "DESCRIPTION"
164
+ .IX Header "DESCRIPTION"
165
+ Implemented as a post-test hook, this plugin writes a specfile after
166
+ every successful test run. The content is also written to the
167
+ terminal.
168
+ .PP
169
+ As a side effect, the timestamps of the written specfiles reflect the
170
+ linear order of all dependencies.
171
+ .PP
172
+ \&\fB\s-1WARNING:\s0\fR This code is just a small demo how to use the plugin
173
+ system of the \s-1CPAN\s0 shell, not a full fledged spec file writer. Do not
174
+ expect new features in this plugin.
175
+ .SS "\s-1OPTIONS\s0"
176
+ .IX Subsection "OPTIONS"
177
+ The target directory to store the spec files in can be set using \f(CW\*(C`dir\*(C'\fR
178
+ as in
179
+ .PP
180
+ .Vb 1
181
+ \& o conf plugin_list push CPAN::Plugin::Specfile=dir,/tmp/specfiles\-000042
182
+ .Ve
183
+ .PP
184
+ The default directory for this is the
185
+ \&\f(CW\*(C`plugins/CPAN::Plugin::Specfile\*(C'\fR directory in the \fIcpan_home\fR
186
+ directory.
187
+ .SH "AUTHOR"
188
+ .IX Header "AUTHOR"
189
+ Andreas Koenig <andk@cpan.org>, Branislav Zahradnik <barney@cpan.org>
data/miniconda3/man/man3/Class%3A%3AStruct.3 ADDED
@@ -0,0 +1,533 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "Class::Struct 3"
136
+ .TH Class::Struct 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
+ Class::Struct \- declare struct\-like datatypes as Perl classes
143
+ .SH "SYNOPSIS"
144
+ .IX Header "SYNOPSIS"
145
+ .Vb 5
146
+ \& use Class::Struct;
147
+ \& # declare struct, based on array:
148
+ \& struct( CLASS_NAME => [ ELEMENT_NAME => ELEMENT_TYPE, ... ]);
149
+ \& # declare struct, based on hash:
150
+ \& struct( CLASS_NAME => { ELEMENT_NAME => ELEMENT_TYPE, ... });
151
+ \&
152
+ \& package CLASS_NAME;
153
+ \& use Class::Struct;
154
+ \& # declare struct, based on array, implicit class name:
155
+ \& struct( ELEMENT_NAME => ELEMENT_TYPE, ... );
156
+ \&
157
+ \& # Declare struct at compile time
158
+ \& use Class::Struct CLASS_NAME => [ELEMENT_NAME => ELEMENT_TYPE, ...];
159
+ \& use Class::Struct CLASS_NAME => {ELEMENT_NAME => ELEMENT_TYPE, ...};
160
+ \&
161
+ \& # declare struct at compile time, based on array, implicit
162
+ \& # class name:
163
+ \& package CLASS_NAME;
164
+ \& use Class::Struct ELEMENT_NAME => ELEMENT_TYPE, ... ;
165
+ \&
166
+ \& package Myobj;
167
+ \& use Class::Struct;
168
+ \& # declare struct with four types of elements:
169
+ \& struct( s => \*(Aq$\*(Aq, a => \*(Aq@\*(Aq, h => \*(Aq%\*(Aq, c => \*(AqMy_Other_Class\*(Aq );
170
+ \&
171
+ \& $obj = new Myobj; # constructor
172
+ \&
173
+ \& # scalar type accessor:
174
+ \& $element_value = $obj\->s; # element value
175
+ \& $obj\->s(\*(Aqnew value\*(Aq); # assign to element
176
+ \&
177
+ \& # array type accessor:
178
+ \& $ary_ref = $obj\->a; # reference to whole array
179
+ \& $ary_element_value = $obj\->a(2); # array element value
180
+ \& $obj\->a(2, \*(Aqnew value\*(Aq); # assign to array element
181
+ \&
182
+ \& # hash type accessor:
183
+ \& $hash_ref = $obj\->h; # reference to whole hash
184
+ \& $hash_element_value = $obj\->h(\*(Aqx\*(Aq); # hash element value
185
+ \& $obj\->h(\*(Aqx\*(Aq, \*(Aqnew value\*(Aq); # assign to hash element
186
+ \&
187
+ \& # class type accessor:
188
+ \& $element_value = $obj\->c; # object reference
189
+ \& $obj\->c\->method(...); # call method of object
190
+ \& $obj\->c(new My_Other_Class); # assign a new object
191
+ .Ve
192
+ .SH "DESCRIPTION"
193
+ .IX Header "DESCRIPTION"
194
+ \&\f(CW\*(C`Class::Struct\*(C'\fR exports a single function, \f(CW\*(C`struct\*(C'\fR.
195
+ Given a list of element names and types, and optionally
196
+ a class name, \f(CW\*(C`struct\*(C'\fR creates a Perl 5 class that implements
197
+ a \*(L"struct-like\*(R" data structure.
198
+ .PP
199
+ The new class is given a constructor method, \f(CW\*(C`new\*(C'\fR, for creating
200
+ struct objects.
201
+ .PP
202
+ Each element in the struct data has an accessor method, which is
203
+ used to assign to the element and to fetch its value. The
204
+ default accessor can be overridden by declaring a \f(CW\*(C`sub\*(C'\fR of the
205
+ same name in the package. (See Example 2.)
206
+ .PP
207
+ Each element's type can be scalar, array, hash, or class.
208
+ .ie n .SS "The ""struct()"" function"
209
+ .el .SS "The \f(CWstruct()\fP function"
210
+ .IX Subsection "The struct() function"
211
+ The \f(CW\*(C`struct\*(C'\fR function has three forms of parameter-list.
212
+ .PP
213
+ .Vb 3
214
+ \& struct( CLASS_NAME => [ ELEMENT_LIST ]);
215
+ \& struct( CLASS_NAME => { ELEMENT_LIST });
216
+ \& struct( ELEMENT_LIST );
217
+ .Ve
218
+ .PP
219
+ The first and second forms explicitly identify the name of the
220
+ class being created. The third form assumes the current package
221
+ name as the class name.
222
+ .PP
223
+ An object of a class created by the first and third forms is
224
+ based on an array, whereas an object of a class created by the
225
+ second form is based on a hash. The array-based forms will be
226
+ somewhat faster and smaller; the hash-based forms are more
227
+ flexible.
228
+ .PP
229
+ The class created by \f(CW\*(C`struct\*(C'\fR must not be a subclass of another
230
+ class other than \f(CW\*(C`UNIVERSAL\*(C'\fR.
231
+ .PP
232
+ It can, however, be used as a superclass for other classes. To facilitate
233
+ this, the generated constructor method uses a two-argument blessing.
234
+ Furthermore, if the class is hash-based, the key of each element is
235
+ prefixed with the class name (see \fIPerl Cookbook\fR, Recipe 13.12).
236
+ .PP
237
+ A function named \f(CW\*(C`new\*(C'\fR must not be explicitly defined in a class
238
+ created by \f(CW\*(C`struct\*(C'\fR.
239
+ .PP
240
+ The \fI\s-1ELEMENT_LIST\s0\fR has the form
241
+ .PP
242
+ .Vb 1
243
+ \& NAME => TYPE, ...
244
+ .Ve
245
+ .PP
246
+ Each name-type pair declares one element of the struct. Each
247
+ element name will be defined as an accessor method unless a
248
+ method by that name is explicitly defined; in the latter case, a
249
+ warning is issued if the warning flag (\fB\-w\fR) is set.
250
+ .SS "Class Creation at Compile Time"
251
+ .IX Subsection "Class Creation at Compile Time"
252
+ \&\f(CW\*(C`Class::Struct\*(C'\fR can create your class at compile time. The main reason
253
+ for doing this is obvious, so your class acts like every other class in
254
+ Perl. Creating your class at compile time will make the order of events
255
+ similar to using any other class ( or Perl module ).
256
+ .PP
257
+ There is no significant speed gain between compile time and run time
258
+ class creation, there is just a new, more standard order of events.
259
+ .SS "Element Types and Accessor Methods"
260
+ .IX Subsection "Element Types and Accessor Methods"
261
+ The four element types \*(-- scalar, array, hash, and class \*(-- are
262
+ represented by strings \*(-- \f(CW\*(Aq$\*(Aq\fR, \f(CW\*(Aq@\*(Aq\fR, \f(CW\*(Aq%\*(Aq\fR, and a class name \*(--
263
+ optionally preceded by a \f(CW\*(Aq*\*(Aq\fR.
264
+ .PP
265
+ The accessor method provided by \f(CW\*(C`struct\*(C'\fR for an element depends
266
+ on the declared type of the element.
267
+ .ie n .IP "Scalar (\*(Aq$\*(Aq or \*(Aq*$\*(Aq)" 4
268
+ .el .IP "Scalar (\f(CW\*(Aq$\*(Aq\fR or \f(CW\*(Aq*$\*(Aq\fR)" 4
269
+ .IX Item "Scalar ($ or *$)"
270
+ The element is a scalar, and by default is initialized to \f(CW\*(C`undef\*(C'\fR
271
+ (but see \*(L"Initializing with new\*(R").
272
+ .Sp
273
+ The accessor's argument, if any, is assigned to the element.
274
+ .Sp
275
+ If the element type is \f(CW\*(Aq$\*(Aq\fR, the value of the element (after
276
+ assignment) is returned. If the element type is \f(CW\*(Aq*$\*(Aq\fR, a reference
277
+ to the element is returned.
278
+ .ie n .IP "Array (\*(Aq@\*(Aq or \*(Aq*@\*(Aq)" 4
279
+ .el .IP "Array (\f(CW\*(Aq@\*(Aq\fR or \f(CW\*(Aq*@\*(Aq\fR)" 4
280
+ .IX Item "Array (@ or *@)"
281
+ The element is an array, initialized by default to \f(CW\*(C`()\*(C'\fR.
282
+ .Sp
283
+ With no argument, the accessor returns a reference to the
284
+ element's whole array (whether or not the element was
285
+ specified as \f(CW\*(Aq@\*(Aq\fR or \f(CW\*(Aq*@\*(Aq\fR).
286
+ .Sp
287
+ With one or two arguments, the first argument is an index
288
+ specifying one element of the array; the second argument, if
289
+ present, is assigned to the array element. If the element type
290
+ is \f(CW\*(Aq@\*(Aq\fR, the accessor returns the array element value. If the
291
+ element type is \f(CW\*(Aq*@\*(Aq\fR, a reference to the array element is
292
+ returned.
293
+ .Sp
294
+ As a special case, when the accessor is called with an array reference
295
+ as the sole argument, this causes an assignment of the whole array element.
296
+ The object reference is returned.
297
+ .ie n .IP "Hash (\*(Aq%\*(Aq or \*(Aq*%\*(Aq)" 4
298
+ .el .IP "Hash (\f(CW\*(Aq%\*(Aq\fR or \f(CW\*(Aq*%\*(Aq\fR)" 4
299
+ .IX Item "Hash (% or *%)"
300
+ The element is a hash, initialized by default to \f(CW\*(C`()\*(C'\fR.
301
+ .Sp
302
+ With no argument, the accessor returns a reference to the
303
+ element's whole hash (whether or not the element was
304
+ specified as \f(CW\*(Aq%\*(Aq\fR or \f(CW\*(Aq*%\*(Aq\fR).
305
+ .Sp
306
+ With one or two arguments, the first argument is a key specifying
307
+ one element of the hash; the second argument, if present, is
308
+ assigned to the hash element. If the element type is \f(CW\*(Aq%\*(Aq\fR, the
309
+ accessor returns the hash element value. If the element type is
310
+ \&\f(CW\*(Aq*%\*(Aq\fR, a reference to the hash element is returned.
311
+ .Sp
312
+ As a special case, when the accessor is called with a hash reference
313
+ as the sole argument, this causes an assignment of the whole hash element.
314
+ The object reference is returned.
315
+ .ie n .IP "Class (\*(AqClass_Name\*(Aq or \*(Aq*Class_Name\*(Aq)" 4
316
+ .el .IP "Class (\f(CW\*(AqClass_Name\*(Aq\fR or \f(CW\*(Aq*Class_Name\*(Aq\fR)" 4
317
+ .IX Item "Class (Class_Name or *Class_Name)"
318
+ The element's value must be a reference blessed to the named
319
+ class or to one of its subclasses. The element is not initialized
320
+ by default.
321
+ .Sp
322
+ The accessor's argument, if any, is assigned to the element. The
323
+ accessor will \f(CW\*(C`croak\*(C'\fR if this is not an appropriate object
324
+ reference.
325
+ .Sp
326
+ If the element type does not start with a \f(CW\*(Aq*\*(Aq\fR, the accessor
327
+ returns the element value (after assignment). If the element type
328
+ starts with a \f(CW\*(Aq*\*(Aq\fR, a reference to the element itself is returned.
329
+ .ie n .SS "Initializing with ""new"""
330
+ .el .SS "Initializing with \f(CWnew\fP"
331
+ .IX Subsection "Initializing with new"
332
+ \&\f(CW\*(C`struct\*(C'\fR always creates a constructor called \f(CW\*(C`new\*(C'\fR. That constructor
333
+ may take a list of initializers for the various elements of the new
334
+ struct.
335
+ .PP
336
+ Each initializer is a pair of values: \fIelement name\fR\f(CW\*(C` => \*(C'\fR\fIvalue\fR.
337
+ The initializer value for a scalar element is just a scalar value. The
338
+ initializer for an array element is an array reference. The initializer
339
+ for a hash is a hash reference.
340
+ .PP
341
+ The initializer for a class element is an object of the corresponding class,
342
+ or of one of it's subclasses, or a reference to a hash containing named
343
+ arguments to be passed to the element's constructor.
344
+ .PP
345
+ See Example 3 below for an example of initialization.
346
+ .SH "EXAMPLES"
347
+ .IX Header "EXAMPLES"
348
+ .IP "Example 1" 4
349
+ .IX Item "Example 1"
350
+ Giving a struct element a class type that is also a struct is how
351
+ structs are nested. Here, \f(CW\*(C`Timeval\*(C'\fR represents a time (seconds and
352
+ microseconds), and \f(CW\*(C`Rusage\*(C'\fR has two elements, each of which is of
353
+ type \f(CW\*(C`Timeval\*(C'\fR.
354
+ .Sp
355
+ .Vb 1
356
+ \& use Class::Struct;
357
+ \&
358
+ \& struct( Rusage => {
359
+ \& ru_utime => \*(AqTimeval\*(Aq, # user time used
360
+ \& ru_stime => \*(AqTimeval\*(Aq, # system time used
361
+ \& });
362
+ \&
363
+ \& struct( Timeval => [
364
+ \& tv_secs => \*(Aq$\*(Aq, # seconds
365
+ \& tv_usecs => \*(Aq$\*(Aq, # microseconds
366
+ \& ]);
367
+ \&
368
+ \& # create an object:
369
+ \& my $t = Rusage\->new(ru_utime=>Timeval\->new(),
370
+ \& ru_stime=>Timeval\->new());
371
+ \&
372
+ \& # $t\->ru_utime and $t\->ru_stime are objects of type Timeval.
373
+ \& # set $t\->ru_utime to 100.0 sec and $t\->ru_stime to 5.0 sec.
374
+ \& $t\->ru_utime\->tv_secs(100);
375
+ \& $t\->ru_utime\->tv_usecs(0);
376
+ \& $t\->ru_stime\->tv_secs(5);
377
+ \& $t\->ru_stime\->tv_usecs(0);
378
+ .Ve
379
+ .IP "Example 2" 4
380
+ .IX Item "Example 2"
381
+ An accessor function can be redefined in order to provide
382
+ additional checking of values, etc. Here, we want the \f(CW\*(C`count\*(C'\fR
383
+ element always to be nonnegative, so we redefine the \f(CW\*(C`count\*(C'\fR
384
+ accessor accordingly.
385
+ .Sp
386
+ .Vb 2
387
+ \& package MyObj;
388
+ \& use Class::Struct;
389
+ \&
390
+ \& # declare the struct
391
+ \& struct ( \*(AqMyObj\*(Aq, { count => \*(Aq$\*(Aq, stuff => \*(Aq%\*(Aq } );
392
+ \&
393
+ \& # override the default accessor method for \*(Aqcount\*(Aq
394
+ \& sub count {
395
+ \& my $self = shift;
396
+ \& if ( @_ ) {
397
+ \& die \*(Aqcount must be nonnegative\*(Aq if $_[0] < 0;
398
+ \& $self\->{\*(AqMyObj::count\*(Aq} = shift;
399
+ \& warn "Too many args to count" if @_;
400
+ \& }
401
+ \& return $self\->{\*(AqMyObj::count\*(Aq};
402
+ \& }
403
+ \&
404
+ \& package main;
405
+ \& $x = new MyObj;
406
+ \& print "\e$x\->count(5) = ", $x\->count(5), "\en";
407
+ \& # prints \*(Aq$x\->count(5) = 5\*(Aq
408
+ \&
409
+ \& print "\e$x\->count = ", $x\->count, "\en";
410
+ \& # prints \*(Aq$x\->count = 5\*(Aq
411
+ \&
412
+ \& print "\e$x\->count(\-5) = ", $x\->count(\-5), "\en";
413
+ \& # dies due to negative argument!
414
+ .Ve
415
+ .IP "Example 3" 4
416
+ .IX Item "Example 3"
417
+ The constructor of a generated class can be passed a list
418
+ of \fIelement\fR=>\fIvalue\fR pairs, with which to initialize the struct.
419
+ If no initializer is specified for a particular element, its default
420
+ initialization is performed instead. Initializers for non-existent
421
+ elements are silently ignored.
422
+ .Sp
423
+ Note that the initializer for a nested class may be specified as
424
+ an object of that class, or as a reference to a hash of initializers
425
+ that are passed on to the nested struct's constructor.
426
+ .Sp
427
+ .Vb 1
428
+ \& use Class::Struct;
429
+ \&
430
+ \& struct Breed =>
431
+ \& {
432
+ \& name => \*(Aq$\*(Aq,
433
+ \& cross => \*(Aq$\*(Aq,
434
+ \& };
435
+ \&
436
+ \& struct Cat =>
437
+ \& [
438
+ \& name => \*(Aq$\*(Aq,
439
+ \& kittens => \*(Aq@\*(Aq,
440
+ \& markings => \*(Aq%\*(Aq,
441
+ \& breed => \*(AqBreed\*(Aq,
442
+ \& ];
443
+ \&
444
+ \&
445
+ \& my $cat = Cat\->new( name => \*(AqSocks\*(Aq,
446
+ \& kittens => [\*(AqMonica\*(Aq, \*(AqKenneth\*(Aq],
447
+ \& markings => { socks=>1, blaze=>"white" },
448
+ \& breed => Breed\->new(name=>\*(Aqshort\-hair\*(Aq, cross=>1),
449
+ \& or: breed => {name=>\*(Aqshort\-hair\*(Aq, cross=>1},
450
+ \& );
451
+ \&
452
+ \& print "Once a cat called ", $cat\->name, "\en";
453
+ \& print "(which was a ", $cat\->breed\->name, ")\en";
454
+ \& print "had 2 kittens: ", join(\*(Aq and \*(Aq, @{$cat\->kittens}), "\en";
455
+ .Ve
456
+ .SH "Author and Modification History"
457
+ .IX Header "Author and Modification History"
458
+ Modified by Damian Conway, 2001\-09\-10, v0.62.
459
+ .PP
460
+ .Vb 11
461
+ \& Modified implicit construction of nested objects.
462
+ \& Now will also take an object ref instead of requiring a hash ref.
463
+ \& Also default initializes nested object attributes to undef, rather
464
+ \& than calling object constructor without args
465
+ \& Original over\-helpfulness was fraught with problems:
466
+ \& * the class\*(Aqs constructor might not be called \*(Aqnew\*(Aq
467
+ \& * the class might not have a hash\-like\-arguments constructor
468
+ \& * the class might not have a no\-argument constructor
469
+ \& * "recursive" data structures didn\*(Aqt work well:
470
+ \& package Person;
471
+ \& struct { mother => \*(AqPerson\*(Aq, father => \*(AqPerson\*(Aq};
472
+ .Ve
473
+ .PP
474
+ Modified by Casey West, 2000\-11\-08, v0.59.
475
+ .PP
476
+ .Vb 1
477
+ \& Added the ability for compile time class creation.
478
+ .Ve
479
+ .PP
480
+ Modified by Damian Conway, 1999\-03\-05, v0.58.
481
+ .PP
482
+ .Vb 1
483
+ \& Added handling of hash\-like arg list to class ctor.
484
+ \&
485
+ \& Changed to two\-argument blessing in ctor to support
486
+ \& derivation from created classes.
487
+ \&
488
+ \& Added classname prefixes to keys in hash\-based classes
489
+ \& (refer to "Perl Cookbook", Recipe 13.12 for rationale).
490
+ \&
491
+ \& Corrected behaviour of accessors for \*(Aq*@\*(Aq and \*(Aq*%\*(Aq struct
492
+ \& elements. Package now implements documented behaviour when
493
+ \& returning a reference to an entire hash or array element.
494
+ \& Previously these were returned as a reference to a reference
495
+ \& to the element.
496
+ .Ve
497
+ .PP
498
+ Renamed to \f(CW\*(C`Class::Struct\*(C'\fR and modified by Jim Miner, 1997\-04\-02.
499
+ .PP
500
+ .Vb 8
501
+ \& members() function removed.
502
+ \& Documentation corrected and extended.
503
+ \& Use of struct() in a subclass prohibited.
504
+ \& User definition of accessor allowed.
505
+ \& Treatment of \*(Aq*\*(Aq in element types corrected.
506
+ \& Treatment of classes as element types corrected.
507
+ \& Class name to struct() made optional.
508
+ \& Diagnostic checks added.
509
+ .Ve
510
+ .PP
511
+ Originally \f(CW\*(C`Class::Template\*(C'\fR by Dean Roehrich.
512
+ .PP
513
+ .Vb 10
514
+ \& # Template.pm \-\-\- struct/member template builder
515
+ \& # 12mar95
516
+ \& # Dean Roehrich
517
+ \& #
518
+ \& # changes/bugs fixed since 28nov94 version:
519
+ \& # \- podified
520
+ \& # changes/bugs fixed since 21nov94 version:
521
+ \& # \- Fixed examples.
522
+ \& # changes/bugs fixed since 02sep94 version:
523
+ \& # \- Moved to Class::Template.
524
+ \& # changes/bugs fixed since 20feb94 version:
525
+ \& # \- Updated to be a more proper module.
526
+ \& # \- Added "use strict".
527
+ \& # \- Bug in build_methods, was using @var when @$var needed.
528
+ \& # \- Now using my() rather than local().
529
+ \& #
530
+ \& # Uses perl5 classes to create nested data types.
531
+ \& # This is offered as one implementation of Tom Christiansen\*(Aqs
532
+ \& # "structs.pl" idea.
533
+ .Ve
data/miniconda3/man/man3/Encode.3 ADDED
@@ -0,0 +1,937 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "Encode 3"
136
+ .TH Encode 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
+ Encode \- character encodings in Perl
143
+ .SH "SYNOPSIS"
144
+ .IX Header "SYNOPSIS"
145
+ .Vb 3
146
+ \& use Encode qw(decode encode);
147
+ \& $characters = decode(\*(AqUTF\-8\*(Aq, $octets, Encode::FB_CROAK);
148
+ \& $octets = encode(\*(AqUTF\-8\*(Aq, $characters, Encode::FB_CROAK);
149
+ .Ve
150
+ .SS "Table of Contents"
151
+ .IX Subsection "Table of Contents"
152
+ Encode consists of a collection of modules whose details are too extensive
153
+ to fit in one document. This one itself explains the top-level APIs
154
+ and general topics at a glance. For other topics and more details,
155
+ see the documentation for these modules:
156
+ .IP "Encode::Alias \- Alias definitions to encodings" 2
157
+ .IX Item "Encode::Alias - Alias definitions to encodings"
158
+ .PD 0
159
+ .IP "Encode::Encoding \- Encode Implementation Base Class" 2
160
+ .IX Item "Encode::Encoding - Encode Implementation Base Class"
161
+ .IP "Encode::Supported \- List of Supported Encodings" 2
162
+ .IX Item "Encode::Supported - List of Supported Encodings"
163
+ .IP "Encode::CN \- Simplified Chinese Encodings" 2
164
+ .IX Item "Encode::CN - Simplified Chinese Encodings"
165
+ .IP "Encode::JP \- Japanese Encodings" 2
166
+ .IX Item "Encode::JP - Japanese Encodings"
167
+ .IP "Encode::KR \- Korean Encodings" 2
168
+ .IX Item "Encode::KR - Korean Encodings"
169
+ .IP "Encode::TW \- Traditional Chinese Encodings" 2
170
+ .IX Item "Encode::TW - Traditional Chinese Encodings"
171
+ .PD
172
+ .SH "DESCRIPTION"
173
+ .IX Header "DESCRIPTION"
174
+ The \f(CW\*(C`Encode\*(C'\fR module provides the interface between Perl strings
175
+ and the rest of the system. Perl strings are sequences of
176
+ \&\fIcharacters\fR.
177
+ .PP
178
+ The repertoire of characters that Perl can represent is a superset of those
179
+ defined by the Unicode Consortium. On most platforms the ordinal
180
+ values of a character as returned by \f(CW\*(C`ord(\f(CIS\f(CW)\*(C'\fR is the \fIUnicode
181
+ codepoint\fR for that character. The exceptions are platforms where
182
+ the legacy encoding is some variant of \s-1EBCDIC\s0 rather than a superset
183
+ of \s-1ASCII\s0; see perlebcdic.
184
+ .PP
185
+ During recent history, data is moved around a computer in 8\-bit chunks,
186
+ often called \*(L"bytes\*(R" but also known as \*(L"octets\*(R" in standards documents.
187
+ Perl is widely used to manipulate data of many types: not only strings of
188
+ characters representing human or computer languages, but also \*(L"binary\*(R"
189
+ data, being the machine's representation of numbers, pixels in an image, or
190
+ just about anything.
191
+ .PP
192
+ When Perl is processing \*(L"binary data\*(R", the programmer wants Perl to
193
+ process \*(L"sequences of bytes\*(R". This is not a problem for Perl: because a
194
+ byte has 256 possible values, it easily fits in Perl's much larger
195
+ \&\*(L"logical character\*(R".
196
+ .PP
197
+ This document mostly explains the \fIhow\fR. perlunitut and perlunifaq
198
+ explain the \fIwhy\fR.
199
+ .SS "\s-1TERMINOLOGY\s0"
200
+ .IX Subsection "TERMINOLOGY"
201
+ \fIcharacter\fR
202
+ .IX Subsection "character"
203
+ .PP
204
+ A character in the range 0 .. 2**32\-1 (or more);
205
+ what Perl's strings are made of.
206
+ .PP
207
+ \fIbyte\fR
208
+ .IX Subsection "byte"
209
+ .PP
210
+ A character in the range 0..255;
211
+ a special case of a Perl character.
212
+ .PP
213
+ \fIoctet\fR
214
+ .IX Subsection "octet"
215
+ .PP
216
+ 8 bits of data, with ordinal values 0..255;
217
+ term for bytes passed to or from a non-Perl context, such as a disk file,
218
+ standard I/O stream, database, command-line argument, environment variable,
219
+ socket etc.
220
+ .SH "THE PERL ENCODING API"
221
+ .IX Header "THE PERL ENCODING API"
222
+ .SS "Basic methods"
223
+ .IX Subsection "Basic methods"
224
+ \fIencode\fR
225
+ .IX Subsection "encode"
226
+ .PP
227
+ .Vb 1
228
+ \& $octets = encode(ENCODING, STRING[, CHECK])
229
+ .Ve
230
+ .PP
231
+ Encodes the scalar value \fI\s-1STRING\s0\fR from Perl's internal form into
232
+ \&\fI\s-1ENCODING\s0\fR and returns a sequence of octets. \fI\s-1ENCODING\s0\fR can be either a
233
+ canonical name or an alias. For encoding names and aliases, see
234
+ \&\*(L"Defining Aliases\*(R". For \s-1CHECK,\s0 see \*(L"Handling Malformed Data\*(R".
235
+ .PP
236
+ \&\fB\s-1CAVEAT\s0\fR: the input scalar \fI\s-1STRING\s0\fR might be modified in-place depending
237
+ on what is set in \s-1CHECK.\s0 See \*(L"\s-1LEAVE_SRC\*(R"\s0 if you want your inputs to be
238
+ left unchanged.
239
+ .PP
240
+ For example, to convert a string from Perl's internal format into
241
+ \&\s-1ISO\-8859\-1,\s0 also known as Latin1:
242
+ .PP
243
+ .Vb 1
244
+ \& $octets = encode("iso\-8859\-1", $string);
245
+ .Ve
246
+ .PP
247
+ \&\fB\s-1CAVEAT\s0\fR: When you run \f(CW\*(C`$octets = encode("UTF\-8", $string)\*(C'\fR, then
248
+ \&\f(CW$octets\fR \fImight not be equal to\fR \f(CW$string\fR. Though both contain the
249
+ same data, the \s-1UTF8\s0 flag for \f(CW$octets\fR is \fIalways\fR off. When you
250
+ encode anything, the \s-1UTF8\s0 flag on the result is always off, even when it
251
+ contains a completely valid \s-1UTF\-8\s0 string. See \*(L"The \s-1UTF8\s0 flag\*(R" below.
252
+ .PP
253
+ If the \f(CW$string\fR is \f(CW\*(C`undef\*(C'\fR, then \f(CW\*(C`undef\*(C'\fR is returned.
254
+ .PP
255
+ \&\f(CW\*(C`str2bytes\*(C'\fR may be used as an alias for \f(CW\*(C`encode\*(C'\fR.
256
+ .PP
257
+ \fIdecode\fR
258
+ .IX Subsection "decode"
259
+ .PP
260
+ .Vb 1
261
+ \& $string = decode(ENCODING, OCTETS[, CHECK])
262
+ .Ve
263
+ .PP
264
+ This function returns the string that results from decoding the scalar
265
+ value \fI\s-1OCTETS\s0\fR, assumed to be a sequence of octets in \fI\s-1ENCODING\s0\fR, into
266
+ Perl's internal form. As with \fBencode()\fR,
267
+ \&\fI\s-1ENCODING\s0\fR can be either a canonical name or an alias. For encoding names
268
+ and aliases, see \*(L"Defining Aliases\*(R"; for \fI\s-1CHECK\s0\fR, see \*(L"Handling
269
+ Malformed Data\*(R".
270
+ .PP
271
+ \&\fB\s-1CAVEAT\s0\fR: the input scalar \fI\s-1OCTETS\s0\fR might be modified in-place depending
272
+ on what is set in \s-1CHECK.\s0 See \*(L"\s-1LEAVE_SRC\*(R"\s0 if you want your inputs to be
273
+ left unchanged.
274
+ .PP
275
+ For example, to convert \s-1ISO\-8859\-1\s0 data into a string in Perl's
276
+ internal format:
277
+ .PP
278
+ .Vb 1
279
+ \& $string = decode("iso\-8859\-1", $octets);
280
+ .Ve
281
+ .PP
282
+ \&\fB\s-1CAVEAT\s0\fR: When you run \f(CW\*(C`$string = decode("UTF\-8", $octets)\*(C'\fR, then \f(CW$string\fR
283
+ \&\fImight not be equal to\fR \f(CW$octets\fR. Though both contain the same data, the
284
+ \&\s-1UTF8\s0 flag for \f(CW$string\fR is on. See \*(L"The \s-1UTF8\s0 flag\*(R"
285
+ below.
286
+ .PP
287
+ If the \f(CW$string\fR is \f(CW\*(C`undef\*(C'\fR, then \f(CW\*(C`undef\*(C'\fR is returned.
288
+ .PP
289
+ \&\f(CW\*(C`bytes2str\*(C'\fR may be used as an alias for \f(CW\*(C`decode\*(C'\fR.
290
+ .PP
291
+ \fIfind_encoding\fR
292
+ .IX Subsection "find_encoding"
293
+ .PP
294
+ .Vb 1
295
+ \& [$obj =] find_encoding(ENCODING)
296
+ .Ve
297
+ .PP
298
+ Returns the \fIencoding object\fR corresponding to \fI\s-1ENCODING\s0\fR. Returns
299
+ \&\f(CW\*(C`undef\*(C'\fR if no matching \fI\s-1ENCODING\s0\fR is find. The returned object is
300
+ what does the actual encoding or decoding.
301
+ .PP
302
+ .Vb 1
303
+ \& $string = decode($name, $bytes);
304
+ .Ve
305
+ .PP
306
+ is in fact
307
+ .PP
308
+ .Vb 5
309
+ \& $string = do {
310
+ \& $obj = find_encoding($name);
311
+ \& croak qq(encoding "$name" not found) unless ref $obj;
312
+ \& $obj\->decode($bytes);
313
+ \& };
314
+ .Ve
315
+ .PP
316
+ with more error checking.
317
+ .PP
318
+ You can therefore save time by reusing this object as follows;
319
+ .PP
320
+ .Vb 5
321
+ \& my $enc = find_encoding("iso\-8859\-1");
322
+ \& while(<>) {
323
+ \& my $string = $enc\->decode($_);
324
+ \& ... # now do something with $string;
325
+ \& }
326
+ .Ve
327
+ .PP
328
+ Besides \*(L"decode\*(R" and \*(L"encode\*(R", other methods are
329
+ available as well. For instance, \f(CW\*(C`name()\*(C'\fR returns the canonical
330
+ name of the encoding object.
331
+ .PP
332
+ .Vb 1
333
+ \& find_encoding("latin1")\->name; # iso\-8859\-1
334
+ .Ve
335
+ .PP
336
+ See Encode::Encoding for details.
337
+ .PP
338
+ \fIfind_mime_encoding\fR
339
+ .IX Subsection "find_mime_encoding"
340
+ .PP
341
+ .Vb 1
342
+ \& [$obj =] find_mime_encoding(MIME_ENCODING)
343
+ .Ve
344
+ .PP
345
+ Returns the \fIencoding object\fR corresponding to \fI\s-1MIME_ENCODING\s0\fR. Acts
346
+ same as \f(CW\*(C`find_encoding()\*(C'\fR but \f(CW\*(C`mime_name()\*(C'\fR of returned object must
347
+ match to \fI\s-1MIME_ENCODING\s0\fR. So as opposite of \f(CW\*(C`find_encoding()\*(C'\fR
348
+ canonical names and aliases are not used when searching for object.
349
+ .PP
350
+ .Vb 4
351
+ \& find_mime_encoding("utf8"); # returns undef because "utf8" is not valid I<MIME_ENCODING>
352
+ \& find_mime_encoding("utf\-8"); # returns encode object "utf\-8\-strict"
353
+ \& find_mime_encoding("UTF\-8"); # same as "utf\-8" because I<MIME_ENCODING> is case insensitive
354
+ \& find_mime_encoding("utf\-8\-strict"); returns undef because "utf\-8\-strict" is not valid I<MIME_ENCODING>
355
+ .Ve
356
+ .PP
357
+ \fIfrom_to\fR
358
+ .IX Subsection "from_to"
359
+ .PP
360
+ .Vb 1
361
+ \& [$length =] from_to($octets, FROM_ENC, TO_ENC [, CHECK])
362
+ .Ve
363
+ .PP
364
+ Converts \fIin-place\fR data between two encodings. The data in \f(CW$octets\fR
365
+ must be encoded as octets and \fInot\fR as characters in Perl's internal
366
+ format. For example, to convert \s-1ISO\-8859\-1\s0 data into Microsoft's \s-1CP1250\s0
367
+ encoding:
368
+ .PP
369
+ .Vb 1
370
+ \& from_to($octets, "iso\-8859\-1", "cp1250");
371
+ .Ve
372
+ .PP
373
+ and to convert it back:
374
+ .PP
375
+ .Vb 1
376
+ \& from_to($octets, "cp1250", "iso\-8859\-1");
377
+ .Ve
378
+ .PP
379
+ Because the conversion happens in place, the data to be
380
+ converted cannot be a string constant: it must be a scalar variable.
381
+ .PP
382
+ \&\f(CW\*(C`from_to()\*(C'\fR returns the length of the converted string in octets on success,
383
+ and \f(CW\*(C`undef\*(C'\fR on error.
384
+ .PP
385
+ \&\fB\s-1CAVEAT\s0\fR: The following operations may look the same, but are not:
386
+ .PP
387
+ .Vb 2
388
+ \& from_to($data, "iso\-8859\-1", "UTF\-8"); #1
389
+ \& $data = decode("iso\-8859\-1", $data); #2
390
+ .Ve
391
+ .PP
392
+ Both #1 and #2 make \f(CW$data\fR consist of a completely valid \s-1UTF\-8\s0 string,
393
+ but only #2 turns the \s-1UTF8\s0 flag on. #1 is equivalent to:
394
+ .PP
395
+ .Vb 1
396
+ \& $data = encode("UTF\-8", decode("iso\-8859\-1", $data));
397
+ .Ve
398
+ .PP
399
+ See \*(L"The \s-1UTF8\s0 flag\*(R" below.
400
+ .PP
401
+ Also note that:
402
+ .PP
403
+ .Vb 1
404
+ \& from_to($octets, $from, $to, $check);
405
+ .Ve
406
+ .PP
407
+ is equivalent to:
408
+ .PP
409
+ .Vb 1
410
+ \& $octets = encode($to, decode($from, $octets), $check);
411
+ .Ve
412
+ .PP
413
+ Yes, it does \fInot\fR respect the \f(CW$check\fR during decoding. It is
414
+ deliberately done that way. If you need minute control, use \f(CW\*(C`decode\*(C'\fR
415
+ followed by \f(CW\*(C`encode\*(C'\fR as follows:
416
+ .PP
417
+ .Vb 1
418
+ \& $octets = encode($to, decode($from, $octets, $check_from), $check_to);
419
+ .Ve
420
+ .PP
421
+ \fIencode_utf8\fR
422
+ .IX Subsection "encode_utf8"
423
+ .PP
424
+ .Vb 1
425
+ \& $octets = encode_utf8($string);
426
+ .Ve
427
+ .PP
428
+ Equivalent to \f(CW\*(C`$octets = encode("utf8", $string)\*(C'\fR. The characters in
429
+ \&\f(CW$string\fR are encoded in Perl's internal format, and the result is returned
430
+ as a sequence of octets. Because all possible characters in Perl have a
431
+ (loose, not strict) utf8 representation, this function cannot fail.
432
+ .PP
433
+ \&\fB\s-1WARNING\s0\fR: do not use this function for data exchange as it can produce
434
+ not strict utf8 \f(CW$octets\fR! For strictly valid \s-1UTF\-8\s0 output use
435
+ \&\f(CW\*(C`$octets = encode("UTF\-8", $string)\*(C'\fR.
436
+ .PP
437
+ \fIdecode_utf8\fR
438
+ .IX Subsection "decode_utf8"
439
+ .PP
440
+ .Vb 1
441
+ \& $string = decode_utf8($octets [, CHECK]);
442
+ .Ve
443
+ .PP
444
+ Equivalent to \f(CW\*(C`$string = decode("utf8", $octets [, CHECK])\*(C'\fR.
445
+ The sequence of octets represented by \f(CW$octets\fR is decoded
446
+ from (loose, not strict) utf8 into a sequence of logical characters.
447
+ Because not all sequences of octets are valid not strict utf8,
448
+ it is quite possible for this function to fail.
449
+ For \s-1CHECK,\s0 see \*(L"Handling Malformed Data\*(R".
450
+ .PP
451
+ \&\fB\s-1WARNING\s0\fR: do not use this function for data exchange as it can produce
452
+ \&\f(CW$string\fR with not strict utf8 representation! For strictly valid \s-1UTF\-8\s0
453
+ \&\f(CW$string\fR representation use \f(CW\*(C`$string = decode("UTF\-8", $octets [, CHECK])\*(C'\fR.
454
+ .PP
455
+ \&\fB\s-1CAVEAT\s0\fR: the input \fI\f(CI$octets\fI\fR might be modified in-place depending on
456
+ what is set in \s-1CHECK.\s0 See \*(L"\s-1LEAVE_SRC\*(R"\s0 if you want your inputs to be
457
+ left unchanged.
458
+ .SS "Listing available encodings"
459
+ .IX Subsection "Listing available encodings"
460
+ .Vb 2
461
+ \& use Encode;
462
+ \& @list = Encode\->encodings();
463
+ .Ve
464
+ .PP
465
+ Returns a list of canonical names of available encodings that have already
466
+ been loaded. To get a list of all available encodings including those that
467
+ have not yet been loaded, say:
468
+ .PP
469
+ .Vb 1
470
+ \& @all_encodings = Encode\->encodings(":all");
471
+ .Ve
472
+ .PP
473
+ Or you can give the name of a specific module:
474
+ .PP
475
+ .Vb 1
476
+ \& @with_jp = Encode\->encodings("Encode::JP");
477
+ .Ve
478
+ .PP
479
+ When "\f(CW\*(C`::\*(C'\fR\*(L" is not in the name, \*(R"\f(CW\*(C`Encode::\*(C'\fR" is assumed.
480
+ .PP
481
+ .Vb 1
482
+ \& @ebcdic = Encode\->encodings("EBCDIC");
483
+ .Ve
484
+ .PP
485
+ To find out in detail which encodings are supported by this package,
486
+ see Encode::Supported.
487
+ .SS "Defining Aliases"
488
+ .IX Subsection "Defining Aliases"
489
+ To add a new alias to a given encoding, use:
490
+ .PP
491
+ .Vb 3
492
+ \& use Encode;
493
+ \& use Encode::Alias;
494
+ \& define_alias(NEWNAME => ENCODING);
495
+ .Ve
496
+ .PP
497
+ After that, \fI\s-1NEWNAME\s0\fR can be used as an alias for \fI\s-1ENCODING\s0\fR.
498
+ \&\fI\s-1ENCODING\s0\fR may be either the name of an encoding or an
499
+ \&\fIencoding object\fR.
500
+ .PP
501
+ Before you do that, first make sure the alias is nonexistent using
502
+ \&\f(CW\*(C`resolve_alias()\*(C'\fR, which returns the canonical name thereof.
503
+ For example:
504
+ .PP
505
+ .Vb 3
506
+ \& Encode::resolve_alias("latin1") eq "iso\-8859\-1" # true
507
+ \& Encode::resolve_alias("iso\-8859\-12") # false; nonexistent
508
+ \& Encode::resolve_alias($name) eq $name # true if $name is canonical
509
+ .Ve
510
+ .PP
511
+ \&\f(CW\*(C`resolve_alias()\*(C'\fR does not need \f(CW\*(C`use Encode::Alias\*(C'\fR; it can be
512
+ imported via \f(CW\*(C`use Encode qw(resolve_alias)\*(C'\fR.
513
+ .PP
514
+ See Encode::Alias for details.
515
+ .SS "Finding \s-1IANA\s0 Character Set Registry names"
516
+ .IX Subsection "Finding IANA Character Set Registry names"
517
+ The canonical name of a given encoding does not necessarily agree with
518
+ \&\s-1IANA\s0 Character Set Registry, commonly seen as \f(CW\*(C`Content\-Type:
519
+ text/plain; charset=\f(CIWHATEVER\f(CW\*(C'\fR. For most cases, the canonical name
520
+ works, but sometimes it does not, most notably with \*(L"utf\-8\-strict\*(R".
521
+ .PP
522
+ As of \f(CW\*(C`Encode\*(C'\fR version 2.21, a new method \f(CW\*(C`mime_name()\*(C'\fR is therefore added.
523
+ .PP
524
+ .Vb 4
525
+ \& use Encode;
526
+ \& my $enc = find_encoding("UTF\-8");
527
+ \& warn $enc\->name; # utf\-8\-strict
528
+ \& warn $enc\->mime_name; # UTF\-8
529
+ .Ve
530
+ .PP
531
+ See also: Encode::Encoding
532
+ .SH "Encoding via PerlIO"
533
+ .IX Header "Encoding via PerlIO"
534
+ If your perl supports \f(CW\*(C`PerlIO\*(C'\fR (which is the default), you can use a
535
+ \&\f(CW\*(C`PerlIO\*(C'\fR layer to decode and encode directly via a filehandle. The
536
+ following two examples are fully identical in functionality:
537
+ .PP
538
+ .Vb 10
539
+ \& ### Version 1 via PerlIO
540
+ \& open(INPUT, "< :encoding(shiftjis)", $infile)
541
+ \& || die "Can\*(Aqt open < $infile for reading: $!";
542
+ \& open(OUTPUT, "> :encoding(euc\-jp)", $outfile)
543
+ \& || die "Can\*(Aqt open > $output for writing: $!";
544
+ \& while (<INPUT>) { # auto decodes $_
545
+ \& print OUTPUT; # auto encodes $_
546
+ \& }
547
+ \& close(INPUT) || die "can\*(Aqt close $infile: $!";
548
+ \& close(OUTPUT) || die "can\*(Aqt close $outfile: $!";
549
+ \&
550
+ \& ### Version 2 via from_to()
551
+ \& open(INPUT, "< :raw", $infile)
552
+ \& || die "Can\*(Aqt open < $infile for reading: $!";
553
+ \& open(OUTPUT, "> :raw", $outfile)
554
+ \& || die "Can\*(Aqt open > $output for writing: $!";
555
+ \&
556
+ \& while (<INPUT>) {
557
+ \& from_to($_, "shiftjis", "euc\-jp", 1); # switch encoding
558
+ \& print OUTPUT; # emit raw (but properly encoded) data
559
+ \& }
560
+ \& close(INPUT) || die "can\*(Aqt close $infile: $!";
561
+ \& close(OUTPUT) || die "can\*(Aqt close $outfile: $!";
562
+ .Ve
563
+ .PP
564
+ In the first version above, you let the appropriate encoding layer
565
+ handle the conversion. In the second, you explicitly translate
566
+ from one encoding to the other.
567
+ .PP
568
+ Unfortunately, it may be that encodings are not \f(CW\*(C`PerlIO\*(C'\fR\-savvy. You can check
569
+ to see whether your encoding is supported by \f(CW\*(C`PerlIO\*(C'\fR by invoking the
570
+ \&\f(CW\*(C`perlio_ok\*(C'\fR method on it:
571
+ .PP
572
+ .Vb 2
573
+ \& Encode::perlio_ok("hz"); # false
574
+ \& find_encoding("euc\-cn")\->perlio_ok; # true wherever PerlIO is available
575
+ \&
576
+ \& use Encode qw(perlio_ok); # imported upon request
577
+ \& perlio_ok("euc\-jp")
578
+ .Ve
579
+ .PP
580
+ Fortunately, all encodings that come with \f(CW\*(C`Encode\*(C'\fR core are \f(CW\*(C`PerlIO\*(C'\fR\-savvy
581
+ except for \f(CW\*(C`hz\*(C'\fR and \f(CW\*(C`ISO\-2022\-kr\*(C'\fR. For the gory details, see
582
+ Encode::Encoding and Encode::PerlIO.
583
+ .SH "Handling Malformed Data"
584
+ .IX Header "Handling Malformed Data"
585
+ The optional \fI\s-1CHECK\s0\fR argument tells \f(CW\*(C`Encode\*(C'\fR what to do when
586
+ encountering malformed data. Without \fI\s-1CHECK\s0\fR, \f(CW\*(C`Encode::FB_DEFAULT\*(C'\fR
587
+ (== 0) is assumed.
588
+ .PP
589
+ As of version 2.12, \f(CW\*(C`Encode\*(C'\fR supports coderef values for \f(CW\*(C`CHECK\*(C'\fR;
590
+ see below.
591
+ .PP
592
+ \&\fB\s-1NOTE:\s0\fR Not all encodings support this feature.
593
+ Some encodings ignore the \fI\s-1CHECK\s0\fR argument. For example,
594
+ Encode::Unicode ignores \fI\s-1CHECK\s0\fR and it always croaks on error.
595
+ .SS "List of \fI\s-1CHECK\s0\fP values"
596
+ .IX Subsection "List of CHECK values"
597
+ \fI\s-1FB_DEFAULT\s0\fR
598
+ .IX Subsection "FB_DEFAULT"
599
+ .PP
600
+ .Vb 1
601
+ \& I<CHECK> = Encode::FB_DEFAULT ( == 0)
602
+ .Ve
603
+ .PP
604
+ If \fI\s-1CHECK\s0\fR is 0, encoding and decoding replace any malformed character
605
+ with a \fIsubstitution character\fR. When you encode, \fI\s-1SUBCHAR\s0\fR is used.
606
+ When you decode, the Unicode \s-1REPLACEMENT CHARACTER,\s0 code point U+FFFD, is
607
+ used. If the data is supposed to be \s-1UTF\-8,\s0 an optional lexical warning of
608
+ warning category \f(CW"utf8"\fR is given.
609
+ .PP
610
+ \fI\s-1FB_CROAK\s0\fR
611
+ .IX Subsection "FB_CROAK"
612
+ .PP
613
+ .Vb 1
614
+ \& I<CHECK> = Encode::FB_CROAK ( == 1)
615
+ .Ve
616
+ .PP
617
+ If \fI\s-1CHECK\s0\fR is 1, methods immediately die with an error
618
+ message. Therefore, when \fI\s-1CHECK\s0\fR is 1, you should trap
619
+ exceptions with \f(CW\*(C`eval{}\*(C'\fR, unless you really want to let it \f(CW\*(C`die\*(C'\fR.
620
+ .PP
621
+ \fI\s-1FB_QUIET\s0\fR
622
+ .IX Subsection "FB_QUIET"
623
+ .PP
624
+ .Vb 1
625
+ \& I<CHECK> = Encode::FB_QUIET
626
+ .Ve
627
+ .PP
628
+ If \fI\s-1CHECK\s0\fR is set to \f(CW\*(C`Encode::FB_QUIET\*(C'\fR, encoding and decoding immediately
629
+ return the portion of the data that has been processed so far when an
630
+ error occurs. The data argument is overwritten with everything
631
+ after that point; that is, the unprocessed portion of the data. This is
632
+ handy when you have to call \f(CW\*(C`decode\*(C'\fR repeatedly in the case where your
633
+ source data may contain partial multi-byte character sequences,
634
+ (that is, you are reading with a fixed-width buffer). Here's some sample
635
+ code to do exactly that:
636
+ .PP
637
+ .Vb 5
638
+ \& my($buffer, $string) = ("", "");
639
+ \& while (read($fh, $buffer, 256, length($buffer))) {
640
+ \& $string .= decode($encoding, $buffer, Encode::FB_QUIET);
641
+ \& # $buffer now contains the unprocessed partial character
642
+ \& }
643
+ .Ve
644
+ .PP
645
+ \fI\s-1FB_WARN\s0\fR
646
+ .IX Subsection "FB_WARN"
647
+ .PP
648
+ .Vb 1
649
+ \& I<CHECK> = Encode::FB_WARN
650
+ .Ve
651
+ .PP
652
+ This is the same as \f(CW\*(C`FB_QUIET\*(C'\fR above, except that instead of being silent
653
+ on errors, it issues a warning. This is handy for when you are debugging.
654
+ .PP
655
+ \&\fB\s-1CAVEAT\s0\fR: All warnings from Encode module are reported, independently of
656
+ pragma warnings settings. If you want to follow settings of
657
+ lexical warnings configured by pragma warnings then append
658
+ also check value \f(CW\*(C`ENCODE::ONLY_PRAGMA_WARNINGS\*(C'\fR. This value is available
659
+ since Encode version 2.99.
660
+ .PP
661
+ \fI\s-1FB_PERLQQ FB_HTMLCREF FB_XMLCREF\s0\fR
662
+ .IX Subsection "FB_PERLQQ FB_HTMLCREF FB_XMLCREF"
663
+ .IP "perlqq mode (\fI\s-1CHECK\s0\fR = Encode::FB_PERLQQ)" 2
664
+ .IX Item "perlqq mode (CHECK = Encode::FB_PERLQQ)"
665
+ .PD 0
666
+ .IP "\s-1HTML\s0 charref mode (\fI\s-1CHECK\s0\fR = Encode::FB_HTMLCREF)" 2
667
+ .IX Item "HTML charref mode (CHECK = Encode::FB_HTMLCREF)"
668
+ .IP "\s-1XML\s0 charref mode (\fI\s-1CHECK\s0\fR = Encode::FB_XMLCREF)" 2
669
+ .IX Item "XML charref mode (CHECK = Encode::FB_XMLCREF)"
670
+ .PD
671
+ .PP
672
+ For encodings that are implemented by the \f(CW\*(C`Encode::XS\*(C'\fR module, \f(CW\*(C`CHECK\*(C'\fR \f(CW\*(C`==\*(C'\fR
673
+ \&\f(CW\*(C`Encode::FB_PERLQQ\*(C'\fR puts \f(CW\*(C`encode\*(C'\fR and \f(CW\*(C`decode\*(C'\fR into \f(CW\*(C`perlqq\*(C'\fR fallback mode.
674
+ .PP
675
+ When you decode, \f(CW\*(C`\ex\f(CIHH\f(CW\*(C'\fR is inserted for a malformed character, where
676
+ \&\fI\s-1HH\s0\fR is the hex representation of the octet that could not be decoded to
677
+ utf8. When you encode, \f(CW\*(C`\ex{\f(CIHHHH\f(CW}\*(C'\fR will be inserted, where \fI\s-1HHHH\s0\fR is
678
+ the Unicode code point (in any number of hex digits) of the character that
679
+ cannot be found in the character repertoire of the encoding.
680
+ .PP
681
+ The \s-1HTML/XML\s0 character reference modes are about the same. In place of
682
+ \&\f(CW\*(C`\ex{\f(CIHHHH\f(CW}\*(C'\fR, \s-1HTML\s0 uses \f(CW\*(C`&#\f(CINNN\f(CW;\*(C'\fR where \fI\s-1NNN\s0\fR is a decimal number, and
683
+ \&\s-1XML\s0 uses \f(CW\*(C`&#x\f(CIHHHH\f(CW;\*(C'\fR where \fI\s-1HHHH\s0\fR is the hexadecimal number.
684
+ .PP
685
+ In \f(CW\*(C`Encode\*(C'\fR 2.10 or later, \f(CW\*(C`LEAVE_SRC\*(C'\fR is also implied.
686
+ .PP
687
+ \fIThe bitmask\fR
688
+ .IX Subsection "The bitmask"
689
+ .PP
690
+ These modes are all actually set via a bitmask. Here is how the \f(CW\*(C`FB_\f(CIXXX\f(CW\*(C'\fR
691
+ constants are laid out. You can import the \f(CW\*(C`FB_\f(CIXXX\f(CW\*(C'\fR constants via
692
+ \&\f(CW\*(C`use Encode qw(:fallbacks)\*(C'\fR, and you can import the generic bitmask
693
+ constants via \f(CW\*(C`use Encode qw(:fallback_all)\*(C'\fR.
694
+ .PP
695
+ .Vb 8
696
+ \& FB_DEFAULT FB_CROAK FB_QUIET FB_WARN FB_PERLQQ
697
+ \& DIE_ON_ERR 0x0001 X
698
+ \& WARN_ON_ERR 0x0002 X
699
+ \& RETURN_ON_ERR 0x0004 X X
700
+ \& LEAVE_SRC 0x0008 X
701
+ \& PERLQQ 0x0100 X
702
+ \& HTMLCREF 0x0200
703
+ \& XMLCREF 0x0400
704
+ .Ve
705
+ .PP
706
+ \fI\s-1LEAVE_SRC\s0\fR
707
+ .IX Subsection "LEAVE_SRC"
708
+ .PP
709
+ .Vb 1
710
+ \& Encode::LEAVE_SRC
711
+ .Ve
712
+ .PP
713
+ If the \f(CW\*(C`Encode::LEAVE_SRC\*(C'\fR bit is \fInot\fR set but \fI\s-1CHECK\s0\fR is set, then the
714
+ source string to \fBencode()\fR or \fBdecode()\fR will be overwritten in place.
715
+ If you're not interested in this, then bitwise-OR it with the bitmask.
716
+ .SS "coderef for \s-1CHECK\s0"
717
+ .IX Subsection "coderef for CHECK"
718
+ As of \f(CW\*(C`Encode\*(C'\fR 2.12, \f(CW\*(C`CHECK\*(C'\fR can also be a code reference which takes the
719
+ ordinal value of the unmapped character as an argument and returns
720
+ octets that represent the fallback character. For instance:
721
+ .PP
722
+ .Vb 1
723
+ \& $ascii = encode("ascii", $utf8, sub{ sprintf "<U+%04X>", shift });
724
+ .Ve
725
+ .PP
726
+ Acts like \f(CW\*(C`FB_PERLQQ\*(C'\fR but U+\fI\s-1XXXX\s0\fR is used instead of \f(CW\*(C`\ex{\f(CIXXXX\f(CW}\*(C'\fR.
727
+ .PP
728
+ Fallback for \f(CW\*(C`decode\*(C'\fR must return decoded string (sequence of characters)
729
+ and takes a list of ordinal values as its arguments. So for
730
+ example if you wish to decode octets as \s-1UTF\-8,\s0 and use \s-1ISO\-8859\-15\s0 as
731
+ a fallback for bytes that are not valid \s-1UTF\-8,\s0 you could write
732
+ .PP
733
+ .Vb 4
734
+ \& $str = decode \*(AqUTF\-8\*(Aq, $octets, sub {
735
+ \& my $tmp = join \*(Aq\*(Aq, map chr, @_;
736
+ \& return decode \*(AqISO\-8859\-15\*(Aq, $tmp;
737
+ \& };
738
+ .Ve
739
+ .SH "Defining Encodings"
740
+ .IX Header "Defining Encodings"
741
+ To define a new encoding, use:
742
+ .PP
743
+ .Vb 2
744
+ \& use Encode qw(define_encoding);
745
+ \& define_encoding($object, CANONICAL_NAME [, alias...]);
746
+ .Ve
747
+ .PP
748
+ \&\fI\s-1CANONICAL_NAME\s0\fR will be associated with \fI\f(CI$object\fI\fR. The object
749
+ should provide the interface described in Encode::Encoding.
750
+ If more than two arguments are provided, additional
751
+ arguments are considered aliases for \fI\f(CI$object\fI\fR.
752
+ .PP
753
+ See Encode::Encoding for details.
754
+ .SH "The UTF8 flag"
755
+ .IX Header "The UTF8 flag"
756
+ Before the introduction of Unicode support in Perl, The \f(CW\*(C`eq\*(C'\fR operator
757
+ just compared the strings represented by two scalars. Beginning with
758
+ Perl 5.8, \f(CW\*(C`eq\*(C'\fR compares two strings with simultaneous consideration of
759
+ \&\fIthe \s-1UTF8\s0 flag\fR. To explain why we made it so, I quote from page 402 of
760
+ \&\fIProgramming Perl, 3rd ed.\fR
761
+ .IP "Goal #1:" 2
762
+ .IX Item "Goal #1:"
763
+ Old byte-oriented programs should not spontaneously break on the old
764
+ byte-oriented data they used to work on.
765
+ .IP "Goal #2:" 2
766
+ .IX Item "Goal #2:"
767
+ Old byte-oriented programs should magically start working on the new
768
+ character-oriented data when appropriate.
769
+ .IP "Goal #3:" 2
770
+ .IX Item "Goal #3:"
771
+ Programs should run just as fast in the new character-oriented mode
772
+ as in the old byte-oriented mode.
773
+ .IP "Goal #4:" 2
774
+ .IX Item "Goal #4:"
775
+ Perl should remain one language, rather than forking into a
776
+ byte-oriented Perl and a character-oriented Perl.
777
+ .PP
778
+ When \fIProgramming Perl, 3rd ed.\fR was written, not even Perl 5.6.0 had been
779
+ born yet, many features documented in the book remained unimplemented for a
780
+ long time. Perl 5.8 corrected much of this, and the introduction of the
781
+ \&\s-1UTF8\s0 flag is one of them. You can think of there being two fundamentally
782
+ different kinds of strings and string-operations in Perl: one a
783
+ byte-oriented mode for when the internal \s-1UTF8\s0 flag is off, and the other a
784
+ character-oriented mode for when the internal \s-1UTF8\s0 flag is on.
785
+ .PP
786
+ This \s-1UTF8\s0 flag is not visible in Perl scripts, exactly for the same reason
787
+ you cannot (or rather, you \fIdon't have to\fR) see whether a scalar contains
788
+ a string, an integer, or a floating-point number. But you can still peek
789
+ and poke these if you will. See the next section.
790
+ .SS "Messing with Perl's Internals"
791
+ .IX Subsection "Messing with Perl's Internals"
792
+ The following \s-1API\s0 uses parts of Perl's internals in the current
793
+ implementation. As such, they are efficient but may change in a future
794
+ release.
795
+ .PP
796
+ \fIis_utf8\fR
797
+ .IX Subsection "is_utf8"
798
+ .PP
799
+ .Vb 1
800
+ \& is_utf8(STRING [, CHECK])
801
+ .Ve
802
+ .PP
803
+ [\s-1INTERNAL\s0] Tests whether the \s-1UTF8\s0 flag is turned on in the \fI\s-1STRING\s0\fR.
804
+ If \fI\s-1CHECK\s0\fR is true, also checks whether \fI\s-1STRING\s0\fR contains well-formed
805
+ \&\s-1UTF\-8.\s0 Returns true if successful, false otherwise.
806
+ .PP
807
+ Typically only necessary for debugging and testing. Don't use this flag as
808
+ a marker to distinguish character and binary data, that should be decided
809
+ for each variable when you write your code.
810
+ .PP
811
+ \&\fB\s-1CAVEAT\s0\fR: If \fI\s-1STRING\s0\fR has \s-1UTF8\s0 flag set, it does \fB\s-1NOT\s0\fR mean that
812
+ \&\fI\s-1STRING\s0\fR is \s-1UTF\-8\s0 encoded and vice-versa.
813
+ .PP
814
+ As of Perl 5.8.1, utf8 also has the \f(CW\*(C`utf8::is_utf8\*(C'\fR function.
815
+ .PP
816
+ \fI_utf8_on\fR
817
+ .IX Subsection "_utf8_on"
818
+ .PP
819
+ .Vb 1
820
+ \& _utf8_on(STRING)
821
+ .Ve
822
+ .PP
823
+ [\s-1INTERNAL\s0] Turns the \fI\s-1STRING\s0\fR's internal \s-1UTF8\s0 flag \fBon\fR. The \fI\s-1STRING\s0\fR
824
+ is \fInot\fR checked for containing only well-formed \s-1UTF\-8.\s0 Do not use this
825
+ unless you \fIknow with absolute certainty\fR that the \s-1STRING\s0 holds only
826
+ well-formed \s-1UTF\-8.\s0 Returns the previous state of the \s-1UTF8\s0 flag (so please
827
+ don't treat the return value as indicating success or failure), or \f(CW\*(C`undef\*(C'\fR
828
+ if \fI\s-1STRING\s0\fR is not a string.
829
+ .PP
830
+ \&\fB\s-1NOTE\s0\fR: For security reasons, this function does not work on tainted values.
831
+ .PP
832
+ \fI_utf8_off\fR
833
+ .IX Subsection "_utf8_off"
834
+ .PP
835
+ .Vb 1
836
+ \& _utf8_off(STRING)
837
+ .Ve
838
+ .PP
839
+ [\s-1INTERNAL\s0] Turns the \fI\s-1STRING\s0\fR's internal \s-1UTF8\s0 flag \fBoff\fR. Do not use
840
+ frivolously. Returns the previous state of the \s-1UTF8\s0 flag, or \f(CW\*(C`undef\*(C'\fR if
841
+ \&\fI\s-1STRING\s0\fR is not a string. Do not treat the return value as indicative of
842
+ success or failure, because that isn't what it means: it is only the
843
+ previous setting.
844
+ .PP
845
+ \&\fB\s-1NOTE\s0\fR: For security reasons, this function does not work on tainted values.
846
+ .SH "UTF\-8 vs. utf8 vs. UTF8"
847
+ .IX Header "UTF-8 vs. utf8 vs. UTF8"
848
+ .Vb 3
849
+ \& ....We now view strings not as sequences of bytes, but as sequences
850
+ \& of numbers in the range 0 .. 2**32\-1 (or in the case of 64\-bit
851
+ \& computers, 0 .. 2**64\-1) \-\- Programming Perl, 3rd ed.
852
+ .Ve
853
+ .PP
854
+ That has historically been Perl's notion of \s-1UTF\-8,\s0 as that is how \s-1UTF\-8\s0 was
855
+ first conceived by Ken Thompson when he invented it. However, thanks to
856
+ later revisions to the applicable standards, official \s-1UTF\-8\s0 is now rather
857
+ stricter than that. For example, its range is much narrower (0 .. 0x10_FFFF
858
+ to cover only 21 bits instead of 32 or 64 bits) and some sequences
859
+ are not allowed, like those used in surrogate pairs, the 31 non-character
860
+ code points 0xFDD0 .. 0xFDEF, the last two code points in \fIany\fR plane
861
+ (0x\fI\s-1XX\s0\fR_FFFE and 0x\fI\s-1XX\s0\fR_FFFF), all non-shortest encodings, etc.
862
+ .PP
863
+ The former default in which Perl would always use a loose interpretation of
864
+ \&\s-1UTF\-8\s0 has now been overruled:
865
+ .PP
866
+ .Vb 5
867
+ \& From: Larry Wall <larry@wall.org>
868
+ \& Date: December 04, 2004 11:51:58 JST
869
+ \& To: perl\-unicode@perl.org
870
+ \& Subject: Re: Make Encode.pm support the real UTF\-8
871
+ \& Message\-Id: <20041204025158.GA28754@wall.org>
872
+ \&
873
+ \& On Fri, Dec 03, 2004 at 10:12:12PM +0000, Tim Bunce wrote:
874
+ \& : I\*(Aqve no problem with \*(Aqutf8\*(Aq being perl\*(Aqs unrestricted uft8 encoding,
875
+ \& : but "UTF\-8" is the name of the standard and should give the
876
+ \& : corresponding behaviour.
877
+ \&
878
+ \& For what it\*(Aqs worth, that\*(Aqs how I\*(Aqve always kept them straight in my
879
+ \& head.
880
+ \&
881
+ \& Also for what it\*(Aqs worth, Perl 6 will mostly default to strict but
882
+ \& make it easy to switch back to lax.
883
+ \&
884
+ \& Larry
885
+ .Ve
886
+ .PP
887
+ Got that? As of Perl 5.8.7, \fB\*(L"\s-1UTF\-8\*(R"\s0\fR means \s-1UTF\-8\s0 in its current
888
+ sense, which is conservative and strict and security-conscious, whereas
889
+ \&\fB\*(L"utf8\*(R"\fR means \s-1UTF\-8\s0 in its former sense, which was liberal and loose and
890
+ lax. \f(CW\*(C`Encode\*(C'\fR version 2.10 or later thus groks this subtle but critically
891
+ important distinction between \f(CW"UTF\-8"\fR and \f(CW"utf8"\fR.
892
+ .PP
893
+ .Vb 2
894
+ \& encode("utf8", "\ex{FFFF_FFFF}", 1); # okay
895
+ \& encode("UTF\-8", "\ex{FFFF_FFFF}", 1); # croaks
896
+ .Ve
897
+ .PP
898
+ In the \f(CW\*(C`Encode\*(C'\fR module, \f(CW"UTF\-8"\fR is actually a canonical name for
899
+ \&\f(CW"utf\-8\-strict"\fR. That hyphen between the \f(CW"UTF"\fR and the \f(CW"8"\fR is
900
+ critical; without it, \f(CW\*(C`Encode\*(C'\fR goes \*(L"liberal\*(R" and (perhaps overly\-)permissive:
901
+ .PP
902
+ .Vb 4
903
+ \& find_encoding("UTF\-8")\->name # is \*(Aqutf\-8\-strict\*(Aq
904
+ \& find_encoding("utf\-8")\->name # ditto. names are case insensitive
905
+ \& find_encoding("utf_8")\->name # ditto. "_" are treated as "\-"
906
+ \& find_encoding("UTF8")\->name # is \*(Aqutf8\*(Aq.
907
+ .Ve
908
+ .PP
909
+ Perl's internal \s-1UTF8\s0 flag is called \*(L"\s-1UTF8\*(R",\s0 without a hyphen. It indicates
910
+ whether a string is internally encoded as \*(L"utf8\*(R", also without a hyphen.
911
+ .SH "SEE ALSO"
912
+ .IX Header "SEE ALSO"
913
+ Encode::Encoding,
914
+ Encode::Supported,
915
+ Encode::PerlIO,
916
+ encoding,
917
+ perlebcdic,
918
+ \&\*(L"open\*(R" in perlfunc,
919
+ perlunicode, perluniintro, perlunifaq, perlunitut
920
+ utf8,
921
+ the Perl Unicode Mailing List <http://lists.perl.org/list/perl\-unicode.html>
922
+ .SH "MAINTAINER"
923
+ .IX Header "MAINTAINER"
924
+ This project was originated by the late Nick Ing-Simmons and later
925
+ maintained by Dan Kogai \fI<dankogai@cpan.org>\fR. See \s-1AUTHORS\s0
926
+ for a full list of people involved. For any questions, send mail to
927
+ \&\fI<perl\-unicode@perl.org>\fR so that we can all share.
928
+ .PP
929
+ While Dan Kogai retains the copyright as a maintainer, credit
930
+ should go to all those involved. See \s-1AUTHORS\s0 for a list of those
931
+ who submitted code to the project.
932
+ .SH "COPYRIGHT"
933
+ .IX Header "COPYRIGHT"
934
+ Copyright 2002\-2014 Dan Kogai \fI<dankogai@cpan.org>\fR.
935
+ .PP
936
+ This library is free software; you can redistribute it and/or modify
937
+ it under the same terms as Perl itself.
data/miniconda3/man/man3/ExtUtils%3A%3ACommand%3A%3AMM.3 ADDED
@@ -0,0 +1,255 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "ExtUtils::Command::MM 3"
136
+ .TH ExtUtils::Command::MM 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
+ ExtUtils::Command::MM \- Commands for the MM's to use in Makefiles
143
+ .SH "SYNOPSIS"
144
+ .IX Header "SYNOPSIS"
145
+ .Vb 1
146
+ \& perl "\-MExtUtils::Command::MM" \-e "function" "\-\-" arguments...
147
+ .Ve
148
+ .SH "DESCRIPTION"
149
+ .IX Header "DESCRIPTION"
150
+ \&\fB\s-1FOR INTERNAL USE ONLY\s0!\fR The interface is not stable.
151
+ .PP
152
+ ExtUtils::Command::MM encapsulates code which would otherwise have to
153
+ be done with large \*(L"one\*(R" liners.
154
+ .PP
155
+ Any $(\s-1FOO\s0) used in the examples are make variables, not Perl.
156
+ .IP "\fBtest_harness\fR" 4
157
+ .IX Item "test_harness"
158
+ .Vb 1
159
+ \& test_harness($verbose, @test_libs);
160
+ .Ve
161
+ .Sp
162
+ Runs the tests on \f(CW@ARGV\fR via Test::Harness passing through the \f(CW$verbose\fR
163
+ flag. Any \f(CW@test_libs\fR will be unshifted onto the test's \f(CW@INC\fR.
164
+ .Sp
165
+ \&\f(CW@test_libs\fR are run in alphabetical order.
166
+ .IP "\fBpod2man\fR" 4
167
+ .IX Item "pod2man"
168
+ .Vb 5
169
+ \& pod2man( \*(Aq\-\-option=value\*(Aq,
170
+ \& $podfile1 => $manpage1,
171
+ \& $podfile2 => $manpage2,
172
+ \& ...
173
+ \& );
174
+ \&
175
+ \& # or args on @ARGV
176
+ .Ve
177
+ .Sp
178
+ \&\fBpod2man()\fR is a function performing most of the duties of the pod2man
179
+ program. Its arguments are exactly the same as pod2man as of 5.8.0
180
+ with the addition of:
181
+ .Sp
182
+ .Vb 1
183
+ \& \-\-perm_rw octal permission to set the resulting manpage to
184
+ .Ve
185
+ .Sp
186
+ And the removal of:
187
+ .Sp
188
+ .Vb 2
189
+ \& \-\-verbose/\-v
190
+ \& \-\-help/\-h
191
+ .Ve
192
+ .Sp
193
+ If no arguments are given to pod2man it will read from \f(CW@ARGV\fR.
194
+ .Sp
195
+ If Pod::Man is unavailable, this function will warn and return undef.
196
+ .IP "\fBwarn_if_old_packlist\fR" 4
197
+ .IX Item "warn_if_old_packlist"
198
+ .Vb 1
199
+ \& perl "\-MExtUtils::Command::MM" \-e warn_if_old_packlist <somefile>
200
+ .Ve
201
+ .Sp
202
+ Displays a warning that an old packlist file was found. Reads the
203
+ filename from \f(CW@ARGV\fR.
204
+ .IP "\fBperllocal_install\fR" 4
205
+ .IX Item "perllocal_install"
206
+ .Vb 2
207
+ \& perl "\-MExtUtils::Command::MM" \-e perllocal_install
208
+ \& <type> <module name> <key> <value> ...
209
+ \&
210
+ \& # VMS only, key|value pairs come on STDIN
211
+ \& perl "\-MExtUtils::Command::MM" \-e perllocal_install
212
+ \& <type> <module name> < <key>|<value> ...
213
+ .Ve
214
+ .Sp
215
+ Prints a fragment of \s-1POD\s0 suitable for appending to perllocal.pod.
216
+ Arguments are read from \f(CW@ARGV\fR.
217
+ .Sp
218
+ \&'type' is the type of what you're installing. Usually 'Module'.
219
+ .Sp
220
+ \&'module name' is simply the name of your module. (Foo::Bar)
221
+ .Sp
222
+ Key/value pairs are extra information about the module. Fields include:
223
+ .Sp
224
+ .Vb 5
225
+ \& installed into which directory your module was out into
226
+ \& LINKTYPE dynamic or static linking
227
+ \& VERSION module version number
228
+ \& EXE_FILES any executables installed in a space separated
229
+ \& list
230
+ .Ve
231
+ .IP "\fBuninstall\fR" 4
232
+ .IX Item "uninstall"
233
+ .Vb 1
234
+ \& perl "\-MExtUtils::Command::MM" \-e uninstall <packlist>
235
+ .Ve
236
+ .Sp
237
+ A wrapper around \fBExtUtils::Install::uninstall()\fR. Warns that
238
+ uninstallation is deprecated and doesn't actually perform the
239
+ uninstallation.
240
+ .IP "\fBtest_s\fR" 4
241
+ .IX Item "test_s"
242
+ .Vb 1
243
+ \& perl "\-MExtUtils::Command::MM" \-e test_s <file>
244
+ .Ve
245
+ .Sp
246
+ Tests if a file exists and is not empty (size > 0).
247
+ \&\fIExits\fR with 0 if it does, 1 if it does not.
248
+ .IP "\fBcp_nonempty\fR" 4
249
+ .IX Item "cp_nonempty"
250
+ .Vb 1
251
+ \& perl "\-MExtUtils::Command::MM" \-e cp_nonempty <srcfile> <dstfile> <perm>
252
+ .Ve
253
+ .Sp
254
+ Tests if the source file exists and is not empty (size > 0). If it is not empty
255
+ it copies it to the given destination with the given permissions.
data/miniconda3/man/man3/ExtUtils%3A%3ACommand.3 ADDED
@@ -0,0 +1,283 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "ExtUtils::Command 3"
136
+ .TH ExtUtils::Command 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
+ ExtUtils::Command \- utilities to replace common UNIX commands in Makefiles etc.
143
+ .SH "SYNOPSIS"
144
+ .IX Header "SYNOPSIS"
145
+ .Vb 12
146
+ \& perl \-MExtUtils::Command \-e cat files... > destination
147
+ \& perl \-MExtUtils::Command \-e mv source... destination
148
+ \& perl \-MExtUtils::Command \-e cp source... destination
149
+ \& perl \-MExtUtils::Command \-e touch files...
150
+ \& perl \-MExtUtils::Command \-e rm_f files...
151
+ \& perl \-MExtUtils::Command \-e rm_rf directories...
152
+ \& perl \-MExtUtils::Command \-e mkpath directories...
153
+ \& perl \-MExtUtils::Command \-e eqtime source destination
154
+ \& perl \-MExtUtils::Command \-e test_f file
155
+ \& perl \-MExtUtils::Command \-e test_d directory
156
+ \& perl \-MExtUtils::Command \-e chmod mode files...
157
+ \& ...
158
+ .Ve
159
+ .SH "DESCRIPTION"
160
+ .IX Header "DESCRIPTION"
161
+ The module is used to replace common \s-1UNIX\s0 commands. In all cases the
162
+ functions work from \f(CW@ARGV\fR rather than taking arguments. This makes
163
+ them easier to deal with in Makefiles. Call them like this:
164
+ .PP
165
+ .Vb 1
166
+ \& perl \-MExtUtils::Command \-e some_command some files to work on
167
+ .Ve
168
+ .PP
169
+ and \fI\s-1NOT\s0\fR like this:
170
+ .PP
171
+ .Vb 1
172
+ \& perl \-MExtUtils::Command \-e \*(Aqsome_command qw(some files to work on)\*(Aq
173
+ .Ve
174
+ .PP
175
+ For that use Shell::Command.
176
+ .PP
177
+ Filenames with * and ? will be glob expanded.
178
+ .SS "\s-1FUNCTIONS\s0"
179
+ .IX Subsection "FUNCTIONS"
180
+ .IP "cat" 4
181
+ .IX Item "cat"
182
+ .Vb 1
183
+ \& cat file ...
184
+ .Ve
185
+ .Sp
186
+ Concatenates all files mentioned on command line to \s-1STDOUT.\s0
187
+ .IP "eqtime" 4
188
+ .IX Item "eqtime"
189
+ .Vb 1
190
+ \& eqtime source destination
191
+ .Ve
192
+ .Sp
193
+ Sets modified time of destination to that of source.
194
+ .IP "rm_rf" 4
195
+ .IX Item "rm_rf"
196
+ .Vb 1
197
+ \& rm_rf files or directories ...
198
+ .Ve
199
+ .Sp
200
+ Removes files and directories \- recursively (even if readonly)
201
+ .IP "rm_f" 4
202
+ .IX Item "rm_f"
203
+ .Vb 1
204
+ \& rm_f file ...
205
+ .Ve
206
+ .Sp
207
+ Removes files (even if readonly)
208
+ .IP "touch" 4
209
+ .IX Item "touch"
210
+ .Vb 1
211
+ \& touch file ...
212
+ .Ve
213
+ .Sp
214
+ Makes files exist, with current timestamp
215
+ .IP "mv" 4
216
+ .IX Item "mv"
217
+ .Vb 2
218
+ \& mv source_file destination_file
219
+ \& mv source_file source_file destination_dir
220
+ .Ve
221
+ .Sp
222
+ Moves source to destination. Multiple sources are allowed if
223
+ destination is an existing directory.
224
+ .Sp
225
+ Returns true if all moves succeeded, false otherwise.
226
+ .IP "cp" 4
227
+ .IX Item "cp"
228
+ .Vb 2
229
+ \& cp source_file destination_file
230
+ \& cp source_file source_file destination_dir
231
+ .Ve
232
+ .Sp
233
+ Copies sources to the destination. Multiple sources are allowed if
234
+ destination is an existing directory.
235
+ .Sp
236
+ Returns true if all copies succeeded, false otherwise.
237
+ .IP "chmod" 4
238
+ .IX Item "chmod"
239
+ .Vb 1
240
+ \& chmod mode files ...
241
+ .Ve
242
+ .Sp
243
+ Sets \s-1UNIX\s0 like permissions 'mode' on all the files. e.g. 0666
244
+ .IP "mkpath" 4
245
+ .IX Item "mkpath"
246
+ .Vb 1
247
+ \& mkpath directory ...
248
+ .Ve
249
+ .Sp
250
+ Creates directories, including any parent directories.
251
+ .IP "test_f" 4
252
+ .IX Item "test_f"
253
+ .Vb 1
254
+ \& test_f file
255
+ .Ve
256
+ .Sp
257
+ Tests if a file exists. \fIExits\fR with 0 if it does, 1 if it does not (ie.
258
+ shell's idea of true and false).
259
+ .IP "test_d" 4
260
+ .IX Item "test_d"
261
+ .Vb 1
262
+ \& test_d directory
263
+ .Ve
264
+ .Sp
265
+ Tests if a directory exists. \fIExits\fR with 0 if it does, 1 if it does
266
+ not (ie. shell's idea of true and false).
267
+ .IP "dos2unix" 4
268
+ .IX Item "dos2unix"
269
+ .Vb 1
270
+ \& dos2unix files or dirs ...
271
+ .Ve
272
+ .Sp
273
+ Converts \s-1DOS\s0 and \s-1OS/2\s0 linefeeds to Unix style recursively.
274
+ .SH "SEE ALSO"
275
+ .IX Header "SEE ALSO"
276
+ Shell::Command which is these same functions but take arguments normally.
277
+ .SH "AUTHOR"
278
+ .IX Header "AUTHOR"
279
+ Nick Ing-Simmons \f(CW\*(C`ni\-s@cpan.org\*(C'\fR
280
+ .PP
281
+ Maintained by Michael G Schwern \f(CW\*(C`schwern@pobox.com\*(C'\fR within the
282
+ ExtUtils-MakeMaker package and, as a separate \s-1CPAN\s0 package, by
283
+ Randy Kobes \f(CW\*(C`r.kobes@uwinnipeg.ca\*(C'\fR.
data/miniconda3/man/man3/ExtUtils%3A%3APacklist.3 ADDED
@@ -0,0 +1,253 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "ExtUtils::Packlist 3"
136
+ .TH ExtUtils::Packlist 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
+ ExtUtils::Packlist \- manage .packlist files
143
+ .SH "SYNOPSIS"
144
+ .IX Header "SYNOPSIS"
145
+ .Vb 5
146
+ \& use ExtUtils::Packlist;
147
+ \& my ($pl) = ExtUtils::Packlist\->new(\*(Aq.packlist\*(Aq);
148
+ \& $pl\->read(\*(Aq/an/old/.packlist\*(Aq);
149
+ \& my @missing_files = $pl\->validate();
150
+ \& $pl\->write(\*(Aq/a/new/.packlist\*(Aq);
151
+ \&
152
+ \& $pl\->{\*(Aq/some/file/name\*(Aq}++;
153
+ \& or
154
+ \& $pl\->{\*(Aq/some/other/file/name\*(Aq} = { type => \*(Aqfile\*(Aq,
155
+ \& from => \*(Aq/some/file\*(Aq };
156
+ .Ve
157
+ .SH "DESCRIPTION"
158
+ .IX Header "DESCRIPTION"
159
+ ExtUtils::Packlist provides a standard way to manage .packlist files.
160
+ Functions are provided to read and write .packlist files. The original
161
+ \&.packlist format is a simple list of absolute pathnames, one per line. In
162
+ addition, this package supports an extended format, where as well as a filename
163
+ each line may contain a list of attributes in the form of a space separated
164
+ list of key=value pairs. This is used by the installperl script to
165
+ differentiate between files and links, for example.
166
+ .SH "USAGE"
167
+ .IX Header "USAGE"
168
+ The hash reference returned by the \fBnew()\fR function can be used to examine and
169
+ modify the contents of the .packlist. Items may be added/deleted from the
170
+ \&.packlist by modifying the hash. If the value associated with a hash key is a
171
+ scalar, the entry written to the .packlist by any subsequent \fBwrite()\fR will be a
172
+ simple filename. If the value is a hash, the entry written will be the
173
+ filename followed by the key=value pairs from the hash. Reading back the
174
+ \&.packlist will recreate the original entries.
175
+ .SH "FUNCTIONS"
176
+ .IX Header "FUNCTIONS"
177
+ .IP "\fBnew()\fR" 4
178
+ .IX Item "new()"
179
+ This takes an optional parameter, the name of a .packlist. If the file exists,
180
+ it will be opened and the contents of the file will be read. The \fBnew()\fR method
181
+ returns a reference to a hash. This hash holds an entry for each line in the
182
+ \&.packlist. In the case of old-style .packlists, the value associated with each
183
+ key is undef. In the case of new-style .packlists, the value associated with
184
+ each key is a hash containing the key=value pairs following the filename in the
185
+ \&.packlist.
186
+ .IP "\fBread()\fR" 4
187
+ .IX Item "read()"
188
+ This takes an optional parameter, the name of the .packlist to be read. If
189
+ no file is specified, the .packlist specified to \fBnew()\fR will be read. If the
190
+ \&.packlist does not exist, Carp::croak will be called.
191
+ .IP "\fBwrite()\fR" 4
192
+ .IX Item "write()"
193
+ This takes an optional parameter, the name of the .packlist to be written. If
194
+ no file is specified, the .packlist specified to \fBnew()\fR will be overwritten.
195
+ .IP "\fBvalidate()\fR" 4
196
+ .IX Item "validate()"
197
+ This checks that every file listed in the .packlist actually exists. If an
198
+ argument which evaluates to true is given, any missing files will be removed
199
+ from the internal hash. The return value is a list of the missing files, which
200
+ will be empty if they all exist.
201
+ .IP "\fBpacklist_file()\fR" 4
202
+ .IX Item "packlist_file()"
203
+ This returns the name of the associated .packlist file
204
+ .SH "EXAMPLE"
205
+ .IX Header "EXAMPLE"
206
+ Here's \f(CW\*(C`modrm\*(C'\fR, a little utility to cleanly remove an installed module.
207
+ .PP
208
+ .Vb 1
209
+ \& #!/usr/local/bin/perl \-w
210
+ \&
211
+ \& use strict;
212
+ \& use IO::Dir;
213
+ \& use ExtUtils::Packlist;
214
+ \& use ExtUtils::Installed;
215
+ \&
216
+ \& sub emptydir($) {
217
+ \& my ($dir) = @_;
218
+ \& my $dh = IO::Dir\->new($dir) || return(0);
219
+ \& my @count = $dh\->read();
220
+ \& $dh\->close();
221
+ \& return(@count == 2 ? 1 : 0);
222
+ \& }
223
+ \&
224
+ \& # Find all the installed packages
225
+ \& print("Finding all installed modules...\en");
226
+ \& my $installed = ExtUtils::Installed\->new();
227
+ \&
228
+ \& foreach my $module (grep(!/^Perl$/, $installed\->modules())) {
229
+ \& my $version = $installed\->version($module) || "???";
230
+ \& print("Found module $module Version $version\en");
231
+ \& print("Do you want to delete $module? [n] ");
232
+ \& my $r = <STDIN>; chomp($r);
233
+ \& if ($r && $r =~ /^y/i) {
234
+ \& # Remove all the files
235
+ \& foreach my $file (sort($installed\->files($module))) {
236
+ \& print("rm $file\en");
237
+ \& unlink($file);
238
+ \& }
239
+ \& my $pf = $installed\->packlist($module)\->packlist_file();
240
+ \& print("rm $pf\en");
241
+ \& unlink($pf);
242
+ \& foreach my $dir (sort($installed\->directory_tree($module))) {
243
+ \& if (emptydir($dir)) {
244
+ \& print("rmdir $dir\en");
245
+ \& rmdir($dir);
246
+ \& }
247
+ \& }
248
+ \& }
249
+ \& }
250
+ .Ve
251
+ .SH "AUTHOR"
252
+ .IX Header "AUTHOR"
253
+ Alan Burlison <Alan.Burlison@uk.sun.com>
data/miniconda3/man/man3/Fcntl.3 ADDED
@@ -0,0 +1,189 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "Fcntl 3"
136
+ .TH Fcntl 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
+ Fcntl \- load the C Fcntl.h defines
143
+ .SH "SYNOPSIS"
144
+ .IX Header "SYNOPSIS"
145
+ .Vb 2
146
+ \& use Fcntl;
147
+ \& use Fcntl qw(:DEFAULT :flock);
148
+ .Ve
149
+ .SH "DESCRIPTION"
150
+ .IX Header "DESCRIPTION"
151
+ This module is just a translation of the C \fIfcntl.h\fR file.
152
+ Unlike the old mechanism of requiring a translated \fIfcntl.ph\fR
153
+ file, this uses the \fBh2xs\fR program (see the Perl source distribution)
154
+ and your native C compiler. This means that it has a
155
+ far more likely chance of getting the numbers right.
156
+ .SH "NOTE"
157
+ .IX Header "NOTE"
158
+ Only \f(CW\*(C`#define\*(C'\fR symbols get translated; you must still correctly
159
+ pack up your own arguments to pass as args for locking functions, etc.
160
+ .SH "EXPORTED SYMBOLS"
161
+ .IX Header "EXPORTED SYMBOLS"
162
+ By default your system's F_* and O_* constants (eg, F_DUPFD and
163
+ O_CREAT) and the \s-1FD_CLOEXEC\s0 constant are exported into your namespace.
164
+ .PP
165
+ You can request that the \fBflock()\fR constants (\s-1LOCK_SH, LOCK_EX, LOCK_NB\s0
166
+ and \s-1LOCK_UN\s0) be provided by using the tag \f(CW\*(C`:flock\*(C'\fR. See Exporter.
167
+ .PP
168
+ You can request that the old constants (\s-1FAPPEND, FASYNC, FCREAT,
169
+ FDEFER, FEXCL, FNDELAY, FNONBLOCK, FSYNC, FTRUNC\s0) be provided for
170
+ compatibility reasons by using the tag \f(CW\*(C`:Fcompat\*(C'\fR. For new
171
+ applications the newer versions of these constants are suggested
172
+ (O_APPEND, O_ASYNC, O_CREAT, O_DEFER, O_EXCL, O_NDELAY, O_NONBLOCK,
173
+ O_SYNC, O_TRUNC).
174
+ .PP
175
+ For ease of use also the SEEK_* constants (for \fBseek()\fR and \fBsysseek()\fR,
176
+ e.g. \s-1SEEK_END\s0) and the S_I* constants (for \fBchmod()\fR and \fBstat()\fR) are
177
+ available for import. They can be imported either separately or using
178
+ the tags \f(CW\*(C`:seek\*(C'\fR and \f(CW\*(C`:mode\*(C'\fR.
179
+ .PP
180
+ Please refer to your native \fBfcntl\fR\|(2), \fBopen\fR\|(2), \fBfseek\fR\|(3), \fBlseek\fR\|(2)
181
+ (equal to Perl's \fBseek()\fR and \fBsysseek()\fR, respectively), and \fBchmod\fR\|(2)
182
+ documentation to see what constants are implemented in your system.
183
+ .PP
184
+ See perlopentut to learn about the uses of the O_* constants
185
+ with \fBsysopen()\fR.
186
+ .PP
187
+ See \*(L"seek\*(R" in perlfunc and \*(L"sysseek\*(R" in perlfunc about the SEEK_* constants.
188
+ .PP
189
+ See \*(L"stat\*(R" in perlfunc about the S_I* constants.
data/miniconda3/man/man3/File%3A%3ACompare.3 ADDED
@@ -0,0 +1,183 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "File::Compare 3"
136
+ .TH File::Compare 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
+ File::Compare \- Compare files or filehandles
143
+ .SH "SYNOPSIS"
144
+ .IX Header "SYNOPSIS"
145
+ .Vb 1
146
+ \& use File::Compare;
147
+ \&
148
+ \& if (compare("file1","file2") == 0) {
149
+ \& print "They\*(Aqre equal\en";
150
+ \& }
151
+ .Ve
152
+ .SH "DESCRIPTION"
153
+ .IX Header "DESCRIPTION"
154
+ The File::Compare::compare function compares the contents of two
155
+ sources, each of which can be a file or a file handle. It is exported
156
+ from File::Compare by default.
157
+ .PP
158
+ File::Compare::cmp is a synonym for File::Compare::compare. It is
159
+ exported from File::Compare only by request.
160
+ .PP
161
+ File::Compare::compare_text does a line by line comparison of the two
162
+ files. It stops as soon as a difference is detected. \fBcompare_text()\fR
163
+ accepts an optional third argument: This must be a \s-1CODE\s0 reference to
164
+ a line comparison function, which returns 0 when both lines are considered
165
+ equal. For example:
166
+ .PP
167
+ .Vb 1
168
+ \& compare_text($file1, $file2)
169
+ .Ve
170
+ .PP
171
+ is basically equivalent to
172
+ .PP
173
+ .Vb 1
174
+ \& compare_text($file1, $file2, sub {$_[0] ne $_[1]} )
175
+ .Ve
176
+ .SH "RETURN"
177
+ .IX Header "RETURN"
178
+ File::Compare::compare and its sibling functions return 0 if the files
179
+ are equal, 1 if the files are unequal, or \-1 if an error was encountered.
180
+ .SH "AUTHOR"
181
+ .IX Header "AUTHOR"
182
+ File::Compare was written by Nick Ing-Simmons.
183
+ Its original documentation was written by Chip Salzenberg.
data/miniconda3/man/man3/File%3A%3AFetch.3 ADDED
@@ -0,0 +1,468 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "File::Fetch 3"
136
+ .TH File::Fetch 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
+ File::Fetch \- A generic file fetching mechanism
143
+ .SH "SYNOPSIS"
144
+ .IX Header "SYNOPSIS"
145
+ .Vb 1
146
+ \& use File::Fetch;
147
+ \&
148
+ \& ### build a File::Fetch object ###
149
+ \& my $ff = File::Fetch\->new(uri => \*(Aqhttp://some.where.com/dir/a.txt\*(Aq);
150
+ \&
151
+ \& ### fetch the uri to cwd() ###
152
+ \& my $where = $ff\->fetch() or die $ff\->error;
153
+ \&
154
+ \& ### fetch the uri to /tmp ###
155
+ \& my $where = $ff\->fetch( to => \*(Aq/tmp\*(Aq );
156
+ \&
157
+ \& ### parsed bits from the uri ###
158
+ \& $ff\->uri;
159
+ \& $ff\->scheme;
160
+ \& $ff\->host;
161
+ \& $ff\->path;
162
+ \& $ff\->file;
163
+ .Ve
164
+ .SH "DESCRIPTION"
165
+ .IX Header "DESCRIPTION"
166
+ File::Fetch is a generic file fetching mechanism.
167
+ .PP
168
+ It allows you to fetch any file pointed to by a \f(CW\*(C`ftp\*(C'\fR, \f(CW\*(C`http\*(C'\fR,
169
+ \&\f(CW\*(C`file\*(C'\fR, \f(CW\*(C`git\*(C'\fR or \f(CW\*(C`rsync\*(C'\fR uri by a number of different means.
170
+ .PP
171
+ See the \f(CW\*(C`HOW IT WORKS\*(C'\fR section further down for details.
172
+ .SH "ACCESSORS"
173
+ .IX Header "ACCESSORS"
174
+ A \f(CW\*(C`File::Fetch\*(C'\fR object has the following accessors
175
+ .ie n .IP "$ff\->uri" 4
176
+ .el .IP "\f(CW$ff\fR\->uri" 4
177
+ .IX Item "$ff->uri"
178
+ The uri you passed to the constructor
179
+ .ie n .IP "$ff\->scheme" 4
180
+ .el .IP "\f(CW$ff\fR\->scheme" 4
181
+ .IX Item "$ff->scheme"
182
+ The scheme from the uri (like 'file', 'http', etc)
183
+ .ie n .IP "$ff\->host" 4
184
+ .el .IP "\f(CW$ff\fR\->host" 4
185
+ .IX Item "$ff->host"
186
+ The hostname in the uri. Will be empty if host was originally
187
+ \&'localhost' for a 'file://' url.
188
+ .ie n .IP "$ff\->vol" 4
189
+ .el .IP "\f(CW$ff\fR\->vol" 4
190
+ .IX Item "$ff->vol"
191
+ On operating systems with the concept of a volume the second element
192
+ of a file:// is considered to the be volume specification for the file.
193
+ Thus on Win32 this routine returns the volume, on other operating
194
+ systems this returns nothing.
195
+ .Sp
196
+ On Windows this value may be empty if the uri is to a network share, in
197
+ which case the 'share' property will be defined. Additionally, volume
198
+ specifications that use '|' as ':' will be converted on read to use ':'.
199
+ .Sp
200
+ On \s-1VMS,\s0 which has a volume concept, this field will be empty because \s-1VMS\s0
201
+ file specifications are converted to absolute \s-1UNIX\s0 format and the volume
202
+ information is transparently included.
203
+ .ie n .IP "$ff\->share" 4
204
+ .el .IP "\f(CW$ff\fR\->share" 4
205
+ .IX Item "$ff->share"
206
+ On systems with the concept of a network share (currently only Windows) returns
207
+ the sharename from a file://// url. On other operating systems returns empty.
208
+ .ie n .IP "$ff\->path" 4
209
+ .el .IP "\f(CW$ff\fR\->path" 4
210
+ .IX Item "$ff->path"
211
+ The path from the uri, will be at least a single '/'.
212
+ .ie n .IP "$ff\->file" 4
213
+ .el .IP "\f(CW$ff\fR\->file" 4
214
+ .IX Item "$ff->file"
215
+ The name of the remote file. For the local file name, the
216
+ result of \f(CW$ff\fR\->output_file will be used.
217
+ .ie n .IP "$ff\->file_default" 4
218
+ .el .IP "\f(CW$ff\fR\->file_default" 4
219
+ .IX Item "$ff->file_default"
220
+ The name of the default local file, that \f(CW$ff\fR\->output_file falls back to if
221
+ it would otherwise return no filename. For example when fetching a \s-1URI\s0 like
222
+ http://www.abc.net.au/ the contents retrieved may be from a remote file called
223
+ \&'index.html'. The default value of this attribute is literally 'file_default'.
224
+ .ie n .IP "$ff\->output_file" 4
225
+ .el .IP "\f(CW$ff\fR\->output_file" 4
226
+ .IX Item "$ff->output_file"
227
+ The name of the output file. This is the same as \f(CW$ff\fR\->file,
228
+ but any query parameters are stripped off. For example:
229
+ .Sp
230
+ .Vb 1
231
+ \& http://example.com/index.html?x=y
232
+ .Ve
233
+ .Sp
234
+ would make the output file be \f(CW\*(C`index.html\*(C'\fR rather than
235
+ \&\f(CW\*(C`index.html?x=y\*(C'\fR.
236
+ .SH "METHODS"
237
+ .IX Header "METHODS"
238
+ .ie n .SS "$ff = File::Fetch\->new( uri => 'http://some.where.com/dir/file.txt' );"
239
+ .el .SS "\f(CW$ff\fP = File::Fetch\->new( uri => 'http://some.where.com/dir/file.txt' );"
240
+ .IX Subsection "$ff = File::Fetch->new( uri => 'http://some.where.com/dir/file.txt' );"
241
+ Parses the uri and creates a corresponding File::Fetch::Item object,
242
+ that is ready to be \f(CW\*(C`fetch\*(C'\fRed and returns it.
243
+ .PP
244
+ Returns false on failure.
245
+ .ie n .SS "$where = $ff\->fetch( [to => /my/output/dir/ | \e$scalar] )"
246
+ .el .SS "\f(CW$where\fP = \f(CW$ff\fP\->fetch( [to => /my/output/dir/ | \e$scalar] )"
247
+ .IX Subsection "$where = $ff->fetch( [to => /my/output/dir/ | $scalar] )"
248
+ Fetches the file you requested and returns the full path to the file.
249
+ .PP
250
+ By default it writes to \f(CW\*(C`cwd()\*(C'\fR, but you can override that by specifying
251
+ the \f(CW\*(C`to\*(C'\fR argument:
252
+ .PP
253
+ .Vb 2
254
+ \& ### file fetch to /tmp, full path to the file in $where
255
+ \& $where = $ff\->fetch( to => \*(Aq/tmp\*(Aq );
256
+ \&
257
+ \& ### file slurped into $scalar, full path to the file in $where
258
+ \& ### file is downloaded to a temp directory and cleaned up at exit time
259
+ \& $where = $ff\->fetch( to => \e$scalar );
260
+ .Ve
261
+ .PP
262
+ Returns the full path to the downloaded file on success, and false
263
+ on failure.
264
+ .ie n .SS "$ff\->error([\s-1BOOL\s0])"
265
+ .el .SS "\f(CW$ff\fP\->error([\s-1BOOL\s0])"
266
+ .IX Subsection "$ff->error([BOOL])"
267
+ Returns the last encountered error as string.
268
+ Pass it a true value to get the \f(CW\*(C`Carp::longmess()\*(C'\fR output instead.
269
+ .SH "HOW IT WORKS"
270
+ .IX Header "HOW IT WORKS"
271
+ File::Fetch is able to fetch a variety of uris, by using several
272
+ external programs and modules.
273
+ .PP
274
+ Below is a mapping of what utilities will be used in what order
275
+ for what schemes, if available:
276
+ .PP
277
+ .Vb 5
278
+ \& file => LWP, lftp, file
279
+ \& http => LWP, HTTP::Tiny, wget, curl, lftp, fetch, HTTP::Lite, lynx, iosock
280
+ \& ftp => LWP, Net::FTP, wget, curl, lftp, fetch, ncftp, ftp
281
+ \& rsync => rsync
282
+ \& git => git
283
+ .Ve
284
+ .PP
285
+ If you'd like to disable the use of one or more of these utilities
286
+ and/or modules, see the \f(CW$BLACKLIST\fR variable further down.
287
+ .PP
288
+ If a utility or module isn't available, it will be marked in a cache
289
+ (see the \f(CW$METHOD_FAIL\fR variable further down), so it will not be
290
+ tried again. The \f(CW\*(C`fetch\*(C'\fR method will only fail when all options are
291
+ exhausted, and it was not able to retrieve the file.
292
+ .PP
293
+ The \f(CW\*(C`fetch\*(C'\fR utility is available on FreeBSD. NetBSD and Dragonfly \s-1BSD\s0
294
+ may also have it from \f(CW\*(C`pkgsrc\*(C'\fR. We only check for \f(CW\*(C`fetch\*(C'\fR on those
295
+ three platforms.
296
+ .PP
297
+ \&\f(CW\*(C`iosock\*(C'\fR is a very limited IO::Socket::INET based mechanism for
298
+ retrieving \f(CW\*(C`http\*(C'\fR schemed urls. It doesn't follow redirects for instance.
299
+ .PP
300
+ \&\f(CW\*(C`git\*(C'\fR only supports \f(CW\*(C`git://\*(C'\fR style urls.
301
+ .PP
302
+ A special note about fetching files from an ftp uri:
303
+ .PP
304
+ By default, all ftp connections are done in passive mode. To change
305
+ that, see the \f(CW$FTP_PASSIVE\fR variable further down.
306
+ .PP
307
+ Furthermore, ftp uris only support anonymous connections, so no
308
+ named user/password pair can be passed along.
309
+ .PP
310
+ \&\f(CW\*(C`/bin/ftp\*(C'\fR is blacklisted by default; see the \f(CW$BLACKLIST\fR variable
311
+ further down.
312
+ .SH "GLOBAL VARIABLES"
313
+ .IX Header "GLOBAL VARIABLES"
314
+ The behaviour of File::Fetch can be altered by changing the following
315
+ global variables:
316
+ .ie n .SS "$File::Fetch::FROM_EMAIL"
317
+ .el .SS "\f(CW$File::Fetch::FROM_EMAIL\fP"
318
+ .IX Subsection "$File::Fetch::FROM_EMAIL"
319
+ This is the email address that will be sent as your anonymous ftp
320
+ password.
321
+ .PP
322
+ Default is \f(CW\*(C`File\-Fetch@example.com\*(C'\fR.
323
+ .ie n .SS "$File::Fetch::USER_AGENT"
324
+ .el .SS "\f(CW$File::Fetch::USER_AGENT\fP"
325
+ .IX Subsection "$File::Fetch::USER_AGENT"
326
+ This is the useragent as \f(CW\*(C`LWP\*(C'\fR will report it.
327
+ .PP
328
+ Default is \f(CW\*(C`File::Fetch/$VERSION\*(C'\fR.
329
+ .ie n .SS "$File::Fetch::FTP_PASSIVE"
330
+ .el .SS "\f(CW$File::Fetch::FTP_PASSIVE\fP"
331
+ .IX Subsection "$File::Fetch::FTP_PASSIVE"
332
+ This variable controls whether the environment variable \f(CW\*(C`FTP_PASSIVE\*(C'\fR
333
+ and any passive switches to commandline tools will be set to true.
334
+ .PP
335
+ Default value is 1.
336
+ .PP
337
+ Note: When \f(CW$FTP_PASSIVE\fR is true, \f(CW\*(C`ncftp\*(C'\fR will not be used to fetch
338
+ files, since passive mode can only be set interactively for this binary
339
+ .ie n .SS "$File::Fetch::TIMEOUT"
340
+ .el .SS "\f(CW$File::Fetch::TIMEOUT\fP"
341
+ .IX Subsection "$File::Fetch::TIMEOUT"
342
+ When set, controls the network timeout (counted in seconds).
343
+ .PP
344
+ Default value is 0.
345
+ .ie n .SS "$File::Fetch::WARN"
346
+ .el .SS "\f(CW$File::Fetch::WARN\fP"
347
+ .IX Subsection "$File::Fetch::WARN"
348
+ This variable controls whether errors encountered internally by
349
+ \&\f(CW\*(C`File::Fetch\*(C'\fR should be \f(CW\*(C`carp\*(C'\fR'd or not.
350
+ .PP
351
+ Set to false to silence warnings. Inspect the output of the \f(CW\*(C`error()\*(C'\fR
352
+ method manually to see what went wrong.
353
+ .PP
354
+ Defaults to \f(CW\*(C`true\*(C'\fR.
355
+ .ie n .SS "$File::Fetch::DEBUG"
356
+ .el .SS "\f(CW$File::Fetch::DEBUG\fP"
357
+ .IX Subsection "$File::Fetch::DEBUG"
358
+ This enables debugging output when calling commandline utilities to
359
+ fetch files.
360
+ This also enables \f(CW\*(C`Carp::longmess\*(C'\fR errors, instead of the regular
361
+ \&\f(CW\*(C`carp\*(C'\fR errors.
362
+ .PP
363
+ Good for tracking down why things don't work with your particular
364
+ setup.
365
+ .PP
366
+ Default is 0.
367
+ .ie n .SS "$File::Fetch::BLACKLIST"
368
+ .el .SS "\f(CW$File::Fetch::BLACKLIST\fP"
369
+ .IX Subsection "$File::Fetch::BLACKLIST"
370
+ This is an array ref holding blacklisted modules/utilities for fetching
371
+ files with.
372
+ .PP
373
+ To disallow the use of, for example, \f(CW\*(C`LWP\*(C'\fR and \f(CW\*(C`Net::FTP\*(C'\fR, you could
374
+ set \f(CW$File::Fetch::BLACKLIST\fR to:
375
+ .PP
376
+ .Vb 1
377
+ \& $File::Fetch::BLACKLIST = [qw|lwp netftp|]
378
+ .Ve
379
+ .PP
380
+ The default blacklist is [qw|ftp|], as \f(CW\*(C`/bin/ftp\*(C'\fR is rather unreliable.
381
+ .PP
382
+ See the note on \f(CW\*(C`MAPPING\*(C'\fR below.
383
+ .ie n .SS "$File::Fetch::METHOD_FAIL"
384
+ .el .SS "\f(CW$File::Fetch::METHOD_FAIL\fP"
385
+ .IX Subsection "$File::Fetch::METHOD_FAIL"
386
+ This is a hashref registering what modules/utilities were known to fail
387
+ for fetching files (mostly because they weren't installed).
388
+ .PP
389
+ You can reset this cache by assigning an empty hashref to it, or
390
+ individually remove keys.
391
+ .PP
392
+ See the note on \f(CW\*(C`MAPPING\*(C'\fR below.
393
+ .SH "MAPPING"
394
+ .IX Header "MAPPING"
395
+ Here's a quick mapping for the utilities/modules, and their names for
396
+ the \f(CW$BLACKLIST\fR, \f(CW$METHOD_FAIL\fR and other internal functions.
397
+ .PP
398
+ .Vb 10
399
+ \& LWP => lwp
400
+ \& HTTP::Lite => httplite
401
+ \& HTTP::Tiny => httptiny
402
+ \& Net::FTP => netftp
403
+ \& wget => wget
404
+ \& lynx => lynx
405
+ \& ncftp => ncftp
406
+ \& ftp => ftp
407
+ \& curl => curl
408
+ \& rsync => rsync
409
+ \& lftp => lftp
410
+ \& fetch => fetch
411
+ \& IO::Socket => iosock
412
+ .Ve
413
+ .SH "FREQUENTLY ASKED QUESTIONS"
414
+ .IX Header "FREQUENTLY ASKED QUESTIONS"
415
+ .SS "So how do I use a proxy with File::Fetch?"
416
+ .IX Subsection "So how do I use a proxy with File::Fetch?"
417
+ \&\f(CW\*(C`File::Fetch\*(C'\fR currently only supports proxies with LWP::UserAgent.
418
+ You will need to set your environment variables accordingly. For
419
+ example, to use an ftp proxy:
420
+ .PP
421
+ .Vb 1
422
+ \& $ENV{ftp_proxy} = \*(Aqfoo.com\*(Aq;
423
+ .Ve
424
+ .PP
425
+ Refer to the LWP::UserAgent manpage for more details.
426
+ .SS "I used 'lynx' to fetch a file, but its contents is all wrong!"
427
+ .IX Subsection "I used 'lynx' to fetch a file, but its contents is all wrong!"
428
+ \&\f(CW\*(C`lynx\*(C'\fR can only fetch remote files by dumping its contents to \f(CW\*(C`STDOUT\*(C'\fR,
429
+ which we in turn capture. If that content is a 'custom' error file
430
+ (like, say, a \f(CW\*(C`404 handler\*(C'\fR), you will get that contents instead.
431
+ .PP
432
+ Sadly, \f(CW\*(C`lynx\*(C'\fR doesn't support any options to return a different exit
433
+ code on non\-\f(CW\*(C`200 OK\*(C'\fR status, giving us no way to tell the difference
434
+ between a 'successful' fetch and a custom error page.
435
+ .PP
436
+ Therefor, we recommend to only use \f(CW\*(C`lynx\*(C'\fR as a last resort. This is
437
+ why it is at the back of our list of methods to try as well.
438
+ .SS "Files I'm trying to fetch have reserved characters or non-ASCII characters in them. What do I do?"
439
+ .IX Subsection "Files I'm trying to fetch have reserved characters or non-ASCII characters in them. What do I do?"
440
+ \&\f(CW\*(C`File::Fetch\*(C'\fR is relatively smart about things. When trying to write
441
+ a file to disk, it removes the \f(CW\*(C`query parameters\*(C'\fR (see the
442
+ \&\f(CW\*(C`output_file\*(C'\fR method for details) from the file name before creating
443
+ it. In most cases this suffices.
444
+ .PP
445
+ If you have any other characters you need to escape, please install
446
+ the \f(CW\*(C`URI::Escape\*(C'\fR module from \s-1CPAN,\s0 and pre-encode your \s-1URI\s0 before
447
+ passing it to \f(CW\*(C`File::Fetch\*(C'\fR. You can read about the details of URIs
448
+ and \s-1URI\s0 encoding here:
449
+ .PP
450
+ .Vb 1
451
+ \& http://www.faqs.org/rfcs/rfc2396.html
452
+ .Ve
453
+ .SH "TODO"
454
+ .IX Header "TODO"
455
+ .ie n .IP "Implement $PREFER_BIN" 4
456
+ .el .IP "Implement \f(CW$PREFER_BIN\fR" 4
457
+ .IX Item "Implement $PREFER_BIN"
458
+ To indicate to rather use commandline tools than modules
459
+ .SH "BUG REPORTS"
460
+ .IX Header "BUG REPORTS"
461
+ Please report bugs or other issues to <bug\-file\-fetch@rt.cpan.org<gt>.
462
+ .SH "AUTHOR"
463
+ .IX Header "AUTHOR"
464
+ This module by Jos Boumans <kane@cpan.org>.
465
+ .SH "COPYRIGHT"
466
+ .IX Header "COPYRIGHT"
467
+ This library is free software; you may redistribute and/or modify it
468
+ under the same terms as Perl itself.
data/miniconda3/man/man3/File%3A%3AGlob.3 ADDED
@@ -0,0 +1,435 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "File::Glob 3"
136
+ .TH File::Glob 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
+ File::Glob \- Perl extension for BSD glob routine
143
+ .SH "SYNOPSIS"
144
+ .IX Header "SYNOPSIS"
145
+ .Vb 1
146
+ \& use File::Glob \*(Aq:bsd_glob\*(Aq;
147
+ \&
148
+ \& @list = bsd_glob(\*(Aq*.[ch]\*(Aq);
149
+ \& $homedir = bsd_glob(\*(Aq~gnat\*(Aq, GLOB_TILDE | GLOB_ERR);
150
+ \&
151
+ \& if (GLOB_ERROR) {
152
+ \& # an error occurred reading $homedir
153
+ \& }
154
+ \&
155
+ \& ## override the core glob (CORE::glob() does this automatically
156
+ \& ## by default anyway, since v5.6.0)
157
+ \& use File::Glob \*(Aq:globally\*(Aq;
158
+ \& my @sources = <*.{c,h,y}>;
159
+ \&
160
+ \& ## override the core glob, forcing case sensitivity
161
+ \& use File::Glob qw(:globally :case);
162
+ \& my @sources = <*.{c,h,y}>;
163
+ \&
164
+ \& ## override the core glob forcing case insensitivity
165
+ \& use File::Glob qw(:globally :nocase);
166
+ \& my @sources = <*.{c,h,y}>;
167
+ \&
168
+ \& ## glob on all files in home directory
169
+ \& use File::Glob \*(Aq:globally\*(Aq;
170
+ \& my @sources = <~gnat/*>;
171
+ .Ve
172
+ .SH "DESCRIPTION"
173
+ .IX Header "DESCRIPTION"
174
+ The glob angle-bracket operator \f(CW\*(C`<>\*(C'\fR is a pathname generator that
175
+ implements the rules for file name pattern matching used by Unix-like shells
176
+ such as the Bourne shell or C shell.
177
+ .PP
178
+ \&\fBFile::Glob::bsd_glob()\fR implements the FreeBSD \fBglob\fR\|(3) routine, which is
179
+ a superset of the \s-1POSIX\s0 \fBglob()\fR (described in \s-1IEEE\s0 Std 1003.2 \*(L"\s-1POSIX.2\*(R"\s0).
180
+ \&\fBbsd_glob()\fR takes a mandatory \f(CW\*(C`pattern\*(C'\fR argument, and an optional
181
+ \&\f(CW\*(C`flags\*(C'\fR argument, and returns a list of filenames matching the
182
+ pattern, with interpretation of the pattern modified by the \f(CW\*(C`flags\*(C'\fR
183
+ variable.
184
+ .PP
185
+ Since v5.6.0, Perl's \fBCORE::glob()\fR is implemented in terms of \fBbsd_glob()\fR.
186
+ Note that they don't share the same prototype\*(--\fBCORE::glob()\fR only accepts
187
+ a single argument. Due to historical reasons, \fBCORE::glob()\fR will also
188
+ split its argument on whitespace, treating it as multiple patterns,
189
+ whereas \fBbsd_glob()\fR considers them as one pattern. But see \f(CW\*(C`:bsd_glob\*(C'\fR
190
+ under \*(L"\s-1EXPORTS\*(R"\s0, below.
191
+ .SS "\s-1META CHARACTERS\s0"
192
+ .IX Subsection "META CHARACTERS"
193
+ .Vb 6
194
+ \& \e Quote the next metacharacter
195
+ \& [] Character class
196
+ \& {} Multiple pattern
197
+ \& * Match any string of characters
198
+ \& ? Match any single character
199
+ \& ~ User name home directory
200
+ .Ve
201
+ .PP
202
+ The metanotation \f(CW\*(C`a{b,c,d}e\*(C'\fR is a shorthand for \f(CW\*(C`abe ace ade\*(C'\fR. Left to
203
+ right order is preserved, with results of matches being sorted separately
204
+ at a low level to preserve this order. As a special case \f(CW\*(C`{\*(C'\fR, \f(CW\*(C`}\*(C'\fR, and
205
+ \&\f(CW\*(C`{}\*(C'\fR are passed undisturbed.
206
+ .SS "\s-1EXPORTS\s0"
207
+ .IX Subsection "EXPORTS"
208
+ See also the \*(L"\s-1POSIX FLAGS\*(R"\s0 below, which can be exported individually.
209
+ .PP
210
+ \fI\f(CI\*(C`:bsd_glob\*(C'\fI\fR
211
+ .IX Subsection ":bsd_glob"
212
+ .PP
213
+ The \f(CW\*(C`:bsd_glob\*(C'\fR export tag exports \fBbsd_glob()\fR and the constants listed
214
+ below. It also overrides \fBglob()\fR in the calling package with one that
215
+ behaves like \fBbsd_glob()\fR with regard to spaces (the space is treated as part
216
+ of a file name), but supports iteration in scalar context; i.e., it
217
+ preserves the core function's feature of returning the next item each time
218
+ it is called.
219
+ .PP
220
+ \fI\f(CI\*(C`:glob\*(C'\fI\fR
221
+ .IX Subsection ":glob"
222
+ .PP
223
+ The \f(CW\*(C`:glob\*(C'\fR tag, now discouraged, is the old version of \f(CW\*(C`:bsd_glob\*(C'\fR. It
224
+ exports the same constants and functions, but its \fBglob()\fR override does not
225
+ support iteration; it returns the last file name in scalar context. That
226
+ means this will loop forever:
227
+ .PP
228
+ .Vb 4
229
+ \& use File::Glob \*(Aq:glob\*(Aq;
230
+ \& while (my $file = <* copy.txt>) {
231
+ \& ...
232
+ \& }
233
+ .Ve
234
+ .PP
235
+ \fI\f(CI\*(C`bsd_glob\*(C'\fI\fR
236
+ .IX Subsection "bsd_glob"
237
+ .PP
238
+ This function, which is included in the two export tags listed above,
239
+ takes one or two arguments. The first is the glob pattern. The
240
+ second, if given, is a set of flags ORed together. The available
241
+ flags and the default set of flags are listed below under \*(L"\s-1POSIX FLAGS\*(R"\s0.
242
+ .PP
243
+ Remember that to use the named constants for flags you must import
244
+ them, for example with \f(CW\*(C`:bsd_glob\*(C'\fR described above. If not imported,
245
+ and \f(CW\*(C`use strict\*(C'\fR is not in effect, then the constants will be
246
+ treated as bareword strings, which won't do what you what.
247
+ .PP
248
+ \fI\f(CI\*(C`:nocase\*(C'\fI and \f(CI\*(C`:case\*(C'\fI\fR
249
+ .IX Subsection ":nocase and :case"
250
+ .PP
251
+ These two export tags globally modify the default flags that \fBbsd_glob()\fR
252
+ and, except on \s-1VMS,\s0 Perl's built-in \f(CW\*(C`glob\*(C'\fR operator use. \f(CW\*(C`GLOB_NOCASE\*(C'\fR
253
+ is turned on or off, respectively.
254
+ .PP
255
+ \fI\f(CI\*(C`csh_glob\*(C'\fI\fR
256
+ .IX Subsection "csh_glob"
257
+ .PP
258
+ The \fBcsh_glob()\fR function can also be exported, but you should not use it
259
+ directly unless you really know what you are doing. It splits the pattern
260
+ into words and feeds each one to \fBbsd_glob()\fR. Perl's own \fBglob()\fR function
261
+ uses this internally.
262
+ .SS "\s-1POSIX FLAGS\s0"
263
+ .IX Subsection "POSIX FLAGS"
264
+ If no flags argument is give then \f(CW\*(C`GLOB_CSH\*(C'\fR is set, and on \s-1VMS\s0 and
265
+ Windows systems, \f(CW\*(C`GLOB_NOCASE\*(C'\fR too. Otherwise the flags to use are
266
+ determined solely by the flags argument. The \s-1POSIX\s0 defined flags are:
267
+ .ie n .IP """GLOB_ERR""" 4
268
+ .el .IP "\f(CWGLOB_ERR\fR" 4
269
+ .IX Item "GLOB_ERR"
270
+ Force \fBbsd_glob()\fR to return an error when it encounters a directory it
271
+ cannot open or read. Ordinarily \fBbsd_glob()\fR continues to find matches.
272
+ .ie n .IP """GLOB_LIMIT""" 4
273
+ .el .IP "\f(CWGLOB_LIMIT\fR" 4
274
+ .IX Item "GLOB_LIMIT"
275
+ Make \fBbsd_glob()\fR return an error (\s-1GLOB_NOSPACE\s0) when the pattern expands
276
+ to a size bigger than the system constant \f(CW\*(C`ARG_MAX\*(C'\fR (usually found in
277
+ limits.h). If your system does not define this constant, \fBbsd_glob()\fR uses
278
+ \&\f(CW\*(C`sysconf(_SC_ARG_MAX)\*(C'\fR or \f(CW\*(C`_POSIX_ARG_MAX\*(C'\fR where available (in that
279
+ order). You can inspect these values using the standard \f(CW\*(C`POSIX\*(C'\fR
280
+ extension.
281
+ .ie n .IP """GLOB_MARK""" 4
282
+ .el .IP "\f(CWGLOB_MARK\fR" 4
283
+ .IX Item "GLOB_MARK"
284
+ Each pathname that is a directory that matches the pattern has a slash
285
+ appended.
286
+ .ie n .IP """GLOB_NOCASE""" 4
287
+ .el .IP "\f(CWGLOB_NOCASE\fR" 4
288
+ .IX Item "GLOB_NOCASE"
289
+ By default, file names are assumed to be case sensitive; this flag
290
+ makes \fBbsd_glob()\fR treat case differences as not significant.
291
+ .ie n .IP """GLOB_NOCHECK""" 4
292
+ .el .IP "\f(CWGLOB_NOCHECK\fR" 4
293
+ .IX Item "GLOB_NOCHECK"
294
+ If the pattern does not match any pathname, then \fBbsd_glob()\fR returns a list
295
+ consisting of only the pattern. If \f(CW\*(C`GLOB_QUOTE\*(C'\fR is set, its effect
296
+ is present in the pattern returned.
297
+ .ie n .IP """GLOB_NOSORT""" 4
298
+ .el .IP "\f(CWGLOB_NOSORT\fR" 4
299
+ .IX Item "GLOB_NOSORT"
300
+ By default, the pathnames are sorted in ascending \s-1ASCII\s0 order; this
301
+ flag prevents that sorting (speeding up \fBbsd_glob()\fR).
302
+ .PP
303
+ The FreeBSD extensions to the \s-1POSIX\s0 standard are the following flags:
304
+ .ie n .IP """GLOB_BRACE""" 4
305
+ .el .IP "\f(CWGLOB_BRACE\fR" 4
306
+ .IX Item "GLOB_BRACE"
307
+ Pre-process the string to expand \f(CW\*(C`{pat,pat,...}\*(C'\fR strings like \fBcsh\fR\|(1).
308
+ The pattern '{}' is left unexpanded for historical reasons (and \fBcsh\fR\|(1)
309
+ does the same thing to ease typing of \fBfind\fR\|(1) patterns).
310
+ .ie n .IP """GLOB_NOMAGIC""" 4
311
+ .el .IP "\f(CWGLOB_NOMAGIC\fR" 4
312
+ .IX Item "GLOB_NOMAGIC"
313
+ Same as \f(CW\*(C`GLOB_NOCHECK\*(C'\fR but it only returns the pattern if it does not
314
+ contain any of the special characters \*(L"*\*(R", \*(L"?\*(R" or \*(L"[\*(R". \f(CW\*(C`NOMAGIC\*(C'\fR is
315
+ provided to simplify implementing the historic \fBcsh\fR\|(1) globbing
316
+ behaviour and should probably not be used anywhere else.
317
+ .ie n .IP """GLOB_QUOTE""" 4
318
+ .el .IP "\f(CWGLOB_QUOTE\fR" 4
319
+ .IX Item "GLOB_QUOTE"
320
+ Use the backslash ('\e') character for quoting: every occurrence of a
321
+ backslash followed by a character in the pattern is replaced by that
322
+ character, avoiding any special interpretation of the character.
323
+ (But see below for exceptions on \s-1DOSISH\s0 systems).
324
+ .ie n .IP """GLOB_TILDE""" 4
325
+ .el .IP "\f(CWGLOB_TILDE\fR" 4
326
+ .IX Item "GLOB_TILDE"
327
+ Expand patterns that start with '~' to user name home directories.
328
+ .ie n .IP """GLOB_CSH""" 4
329
+ .el .IP "\f(CWGLOB_CSH\fR" 4
330
+ .IX Item "GLOB_CSH"
331
+ For convenience, \f(CW\*(C`GLOB_CSH\*(C'\fR is a synonym for
332
+ \&\f(CW\*(C`GLOB_BRACE | GLOB_NOMAGIC | GLOB_QUOTE | GLOB_TILDE | GLOB_ALPHASORT\*(C'\fR.
333
+ .PP
334
+ The \s-1POSIX\s0 provided \f(CW\*(C`GLOB_APPEND\*(C'\fR, \f(CW\*(C`GLOB_DOOFFS\*(C'\fR, and the FreeBSD
335
+ extensions \f(CW\*(C`GLOB_ALTDIRFUNC\*(C'\fR, and \f(CW\*(C`GLOB_MAGCHAR\*(C'\fR flags have not been
336
+ implemented in the Perl version because they involve more complex
337
+ interaction with the underlying C structures.
338
+ .PP
339
+ The following flag has been added in the Perl implementation for
340
+ csh compatibility:
341
+ .ie n .IP """GLOB_ALPHASORT""" 4
342
+ .el .IP "\f(CWGLOB_ALPHASORT\fR" 4
343
+ .IX Item "GLOB_ALPHASORT"
344
+ If \f(CW\*(C`GLOB_NOSORT\*(C'\fR is not in effect, sort filenames is alphabetical
345
+ order (case does not matter) rather than in \s-1ASCII\s0 order.
346
+ .SH "DIAGNOSTICS"
347
+ .IX Header "DIAGNOSTICS"
348
+ \&\fBbsd_glob()\fR returns a list of matching paths, possibly zero length. If an
349
+ error occurred, &File::Glob::GLOB_ERROR will be non-zero and \f(CW$!\fR will be
350
+ set. &File::Glob::GLOB_ERROR is guaranteed to be zero if no error occurred,
351
+ or one of the following values otherwise:
352
+ .ie n .IP """GLOB_NOSPACE""" 4
353
+ .el .IP "\f(CWGLOB_NOSPACE\fR" 4
354
+ .IX Item "GLOB_NOSPACE"
355
+ An attempt to allocate memory failed.
356
+ .ie n .IP """GLOB_ABEND""" 4
357
+ .el .IP "\f(CWGLOB_ABEND\fR" 4
358
+ .IX Item "GLOB_ABEND"
359
+ The glob was stopped because an error was encountered.
360
+ .PP
361
+ In the case where \fBbsd_glob()\fR has found some matching paths, but is
362
+ interrupted by an error, it will return a list of filenames \fBand\fR
363
+ set &File::Glob::ERROR.
364
+ .PP
365
+ Note that \fBbsd_glob()\fR deviates from \s-1POSIX\s0 and FreeBSD \fBglob\fR\|(3) behaviour
366
+ by not considering \f(CW\*(C`ENOENT\*(C'\fR and \f(CW\*(C`ENOTDIR\*(C'\fR as errors \- \fBbsd_glob()\fR will
367
+ continue processing despite those errors, unless the \f(CW\*(C`GLOB_ERR\*(C'\fR flag is
368
+ set.
369
+ .PP
370
+ Be aware that all filenames returned from File::Glob are tainted.
371
+ .SH "NOTES"
372
+ .IX Header "NOTES"
373
+ .IP "\(bu" 4
374
+ If you want to use multiple patterns, e.g. \f(CW\*(C`bsd_glob("a* b*")\*(C'\fR, you should
375
+ probably throw them in a set as in \f(CW\*(C`bsd_glob("{a*,b*}")\*(C'\fR. This is because
376
+ the argument to \fBbsd_glob()\fR isn't subjected to parsing by the C shell.
377
+ Remember that you can use a backslash to escape things.
378
+ .IP "\(bu" 4
379
+ On \s-1DOSISH\s0 systems, backslash is a valid directory separator character.
380
+ In this case, use of backslash as a quoting character (via \s-1GLOB_QUOTE\s0)
381
+ interferes with the use of backslash as a directory separator. The
382
+ best (simplest, most portable) solution is to use forward slashes for
383
+ directory separators, and backslashes for quoting. However, this does
384
+ not match \*(L"normal practice\*(R" on these systems. As a concession to user
385
+ expectation, therefore, backslashes (under \s-1GLOB_QUOTE\s0) only quote the
386
+ glob metacharacters '[', ']', '{', '}', '\-', '~', and backslash itself.
387
+ All other backslashes are passed through unchanged.
388
+ .IP "\(bu" 4
389
+ Win32 users should use the real slash. If you really want to use
390
+ backslashes, consider using Sarathy's File::DosGlob, which comes with
391
+ the standard Perl distribution.
392
+ .SH "SEE ALSO"
393
+ .IX Header "SEE ALSO"
394
+ \&\*(L"glob\*(R" in perlfunc, \fBglob\fR\|(3)
395
+ .SH "AUTHOR"
396
+ .IX Header "AUTHOR"
397
+ The Perl interface was written by Nathan Torkington <gnat@frii.com>,
398
+ and is released under the artistic license. Further modifications were
399
+ made by Greg Bacon <gbacon@cs.uah.edu>, Gurusamy Sarathy
400
+ <gsar@activestate.com>, and Thomas Wegner
401
+ <wegner_thomas@yahoo.com>. The C glob code has the
402
+ following copyright:
403
+ .PP
404
+ Copyright (c) 1989, 1993 The Regents of the University of California.
405
+ All rights reserved.
406
+ .PP
407
+ This code is derived from software contributed to Berkeley by
408
+ Guido van Rossum.
409
+ .PP
410
+ Redistribution and use in source and binary forms, with or without
411
+ modification, are permitted provided that the following conditions
412
+ are met:
413
+ .IP "1." 4
414
+ Redistributions of source code must retain the above copyright
415
+ notice, this list of conditions and the following disclaimer.
416
+ .IP "2." 4
417
+ Redistributions in binary form must reproduce the above copyright
418
+ notice, this list of conditions and the following disclaimer in the
419
+ documentation and/or other materials provided with the distribution.
420
+ .IP "3." 4
421
+ Neither the name of the University nor the names of its contributors
422
+ may be used to endorse or promote products derived from this software
423
+ without specific prior written permission.
424
+ .PP
425
+ \&\s-1THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS \*(L"AS IS\*(R" AND
426
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
427
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
428
+ ARE DISCLAIMED.\s0 \s-1IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
429
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
430
+ DAMAGES\s0 (\s-1INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
431
+ OR SERVICES\s0; \s-1LOSS OF USE, DATA, OR PROFITS\s0; \s-1OR BUSINESS INTERRUPTION\s0)
432
+ \&\s-1HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
433
+ LIABILITY, OR TORT\s0 (\s-1INCLUDING NEGLIGENCE OR OTHERWISE\s0) \s-1ARISING IN ANY WAY
434
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
435
+ SUCH DAMAGE.\s0
data/miniconda3/man/man3/File%3A%3ASpec%3A%3AEpoc.3 ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "File::Spec::Epoc 3"
136
+ .TH File::Spec::Epoc 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
+ File::Spec::Epoc \- methods for Epoc file specs
143
+ .SH "SYNOPSIS"
144
+ .IX Header "SYNOPSIS"
145
+ .Vb 1
146
+ \& require File::Spec::Epoc; # Done internally by File::Spec if needed
147
+ .Ve
148
+ .SH "DESCRIPTION"
149
+ .IX Header "DESCRIPTION"
150
+ See File::Spec::Unix for a documentation of the methods provided
151
+ there. This package overrides the implementation of these methods, not
152
+ the semantics.
153
+ .PP
154
+ This package is still a work in progress. ;\-)
155
+ .IP "\fBcanonpath()\fR" 4
156
+ .IX Item "canonpath()"
157
+ No physical check on the filesystem, but a logical cleanup of a
158
+ path. On \s-1UNIX\s0 eliminated successive slashes and successive \*(L"/.\*(R".
159
+ .SH "AUTHOR"
160
+ .IX Header "AUTHOR"
161
+ o.flebbe@gmx.de
162
+ .SH "COPYRIGHT"
163
+ .IX Header "COPYRIGHT"
164
+ Copyright (c) 2004 by the Perl 5 Porters. All rights reserved.
165
+ .PP
166
+ This program is free software; you can redistribute it and/or modify
167
+ it under the same terms as Perl itself.
168
+ .SH "SEE ALSO"
169
+ .IX Header "SEE ALSO"
170
+ See File::Spec and File::Spec::Unix. This package overrides the
171
+ implementation of these methods, not the semantics.
data/miniconda3/man/man3/File%3A%3ASpec%3A%3AVMS.3 ADDED
@@ -0,0 +1,243 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "File::Spec::VMS 3"
136
+ .TH File::Spec::VMS 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
+ File::Spec::VMS \- methods for VMS file specs
143
+ .SH "SYNOPSIS"
144
+ .IX Header "SYNOPSIS"
145
+ .Vb 1
146
+ \& require File::Spec::VMS; # Done internally by File::Spec if needed
147
+ .Ve
148
+ .SH "DESCRIPTION"
149
+ .IX Header "DESCRIPTION"
150
+ See File::Spec::Unix for a documentation of the methods provided
151
+ there. This package overrides the implementation of these methods, not
152
+ the semantics.
153
+ .PP
154
+ The default behavior is to allow either \s-1VMS\s0 or Unix syntax on input and to
155
+ return \s-1VMS\s0 syntax on output unless Unix syntax has been explicitly requested
156
+ via the \f(CW\*(C`DECC$FILENAME_UNIX_REPORT\*(C'\fR \s-1CRTL\s0 feature.
157
+ .IP "canonpath (override)" 4
158
+ .IX Item "canonpath (override)"
159
+ Removes redundant portions of file specifications and returns results
160
+ in native syntax unless Unix filename reporting has been enabled.
161
+ .IP "catdir (override)" 4
162
+ .IX Item "catdir (override)"
163
+ Concatenates a list of file specifications, and returns the result as a
164
+ native directory specification unless the Unix filename reporting feature
165
+ has been enabled. No check is made for \*(L"impossible\*(R" cases (e.g. elements
166
+ other than the first being absolute filespecs).
167
+ .IP "catfile (override)" 4
168
+ .IX Item "catfile (override)"
169
+ Concatenates a list of directory specifications with a filename specification
170
+ to build a path.
171
+ .IP "curdir (override)" 4
172
+ .IX Item "curdir (override)"
173
+ Returns a string representation of the current directory: '[]' or '.'
174
+ .IP "devnull (override)" 4
175
+ .IX Item "devnull (override)"
176
+ Returns a string representation of the null device: '_NLA0:' or '/dev/null'
177
+ .IP "rootdir (override)" 4
178
+ .IX Item "rootdir (override)"
179
+ Returns a string representation of the root directory: 'SYS$DISK:[000000]'
180
+ or '/'
181
+ .IP "tmpdir (override)" 4
182
+ .IX Item "tmpdir (override)"
183
+ Returns a string representation of the first writable directory
184
+ from the following list or '' if none are writable:
185
+ .Sp
186
+ .Vb 3
187
+ \& /tmp if C<DECC$FILENAME_UNIX_REPORT> is enabled.
188
+ \& sys$scratch:
189
+ \& $ENV{TMPDIR}
190
+ .Ve
191
+ .Sp
192
+ If running under taint mode, and if \f(CW$ENV\fR{\s-1TMPDIR\s0}
193
+ is tainted, it is not used.
194
+ .IP "updir (override)" 4
195
+ .IX Item "updir (override)"
196
+ Returns a string representation of the parent directory: '[\-]' or '..'
197
+ .IP "case_tolerant (override)" 4
198
+ .IX Item "case_tolerant (override)"
199
+ \&\s-1VMS\s0 file specification syntax is case-tolerant.
200
+ .IP "path (override)" 4
201
+ .IX Item "path (override)"
202
+ Translate logical name \s-1DCL$PATH\s0 as a searchlist, rather than trying
203
+ to \f(CW\*(C`split\*(C'\fR string value of \f(CW$ENV{\*(AqPATH\*(Aq}\fR.
204
+ .IP "file_name_is_absolute (override)" 4
205
+ .IX Item "file_name_is_absolute (override)"
206
+ Checks for \s-1VMS\s0 directory spec as well as Unix separators.
207
+ .IP "splitpath (override)" 4
208
+ .IX Item "splitpath (override)"
209
+ .Vb 3
210
+ \& ($volume,$directories,$file) = File::Spec\->splitpath( $path );
211
+ \& ($volume,$directories,$file) = File::Spec\->splitpath( $path,
212
+ \& $no_file );
213
+ .Ve
214
+ .Sp
215
+ Passing a true value for \f(CW$no_file\fR indicates that the path being
216
+ split only contains directory components, even on systems where you
217
+ can usually (when not supporting a foreign syntax) tell the difference
218
+ between directories and files at a glance.
219
+ .IP "splitdir (override)" 4
220
+ .IX Item "splitdir (override)"
221
+ Split a directory specification into the components.
222
+ .IP "catpath (override)" 4
223
+ .IX Item "catpath (override)"
224
+ Construct a complete filespec.
225
+ .IP "abs2rel (override)" 4
226
+ .IX Item "abs2rel (override)"
227
+ Attempt to convert an absolute file specification to a relative specification.
228
+ .IP "rel2abs (override)" 4
229
+ .IX Item "rel2abs (override)"
230
+ Return an absolute file specification from a relative one.
231
+ .SH "COPYRIGHT"
232
+ .IX Header "COPYRIGHT"
233
+ Copyright (c) 2004\-14 by the Perl 5 Porters. All rights reserved.
234
+ .PP
235
+ This program is free software; you can redistribute it and/or modify
236
+ it under the same terms as Perl itself.
237
+ .SH "SEE ALSO"
238
+ .IX Header "SEE ALSO"
239
+ See File::Spec and File::Spec::Unix. This package overrides the
240
+ implementation of these methods, not the semantics.
241
+ .PP
242
+ An explanation of \s-1VMS\s0 file specs can be found at
243
+ <http://h71000.www7.hp.com/doc/731FINAL/4506/4506pro_014.html#apps_locating_naming_files>.
data/miniconda3/man/man3/Hash%3A%3AUtil.3 ADDED
@@ -0,0 +1,686 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "Hash::Util 3"
136
+ .TH Hash::Util 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
+ Hash::Util \- A selection of general\-utility hash subroutines
143
+ .SH "SYNOPSIS"
144
+ .IX Header "SYNOPSIS"
145
+ .Vb 1
146
+ \& # Restricted hashes
147
+ \&
148
+ \& use Hash::Util qw(
149
+ \& fieldhash fieldhashes
150
+ \&
151
+ \& all_keys
152
+ \& lock_keys unlock_keys
153
+ \& lock_value unlock_value
154
+ \& lock_hash unlock_hash
155
+ \& lock_keys_plus
156
+ \& hash_locked hash_unlocked
157
+ \& hashref_locked hashref_unlocked
158
+ \& hidden_keys legal_keys
159
+ \&
160
+ \& lock_ref_keys unlock_ref_keys
161
+ \& lock_ref_value unlock_ref_value
162
+ \& lock_hashref unlock_hashref
163
+ \& lock_ref_keys_plus
164
+ \& hidden_ref_keys legal_ref_keys
165
+ \&
166
+ \& hash_seed hash_value hv_store
167
+ \& bucket_stats bucket_info bucket_array
168
+ \& lock_hash_recurse unlock_hash_recurse
169
+ \& lock_hashref_recurse unlock_hashref_recurse
170
+ \&
171
+ \& hash_traversal_mask
172
+ \& );
173
+ \&
174
+ \& %hash = (foo => 42, bar => 23);
175
+ \& # Ways to restrict a hash
176
+ \& lock_keys(%hash);
177
+ \& lock_keys(%hash, @keyset);
178
+ \& lock_keys_plus(%hash, @additional_keys);
179
+ \&
180
+ \& # Ways to inspect the properties of a restricted hash
181
+ \& my @legal = legal_keys(%hash);
182
+ \& my @hidden = hidden_keys(%hash);
183
+ \& my $ref = all_keys(%hash,@keys,@hidden);
184
+ \& my $is_locked = hash_locked(%hash);
185
+ \&
186
+ \& # Remove restrictions on the hash
187
+ \& unlock_keys(%hash);
188
+ \&
189
+ \& # Lock individual values in a hash
190
+ \& lock_value (%hash, \*(Aqfoo\*(Aq);
191
+ \& unlock_value(%hash, \*(Aqfoo\*(Aq);
192
+ \&
193
+ \& # Ways to change the restrictions on both keys and values
194
+ \& lock_hash (%hash);
195
+ \& unlock_hash(%hash);
196
+ \&
197
+ \& my $hashes_are_randomised = hash_seed() !~ /^\e0+$/;
198
+ \&
199
+ \& my $int_hash_value = hash_value( \*(Aqstring\*(Aq );
200
+ \&
201
+ \& my $mask= hash_traversal_mask(%hash);
202
+ \&
203
+ \& hash_traversal_mask(%hash,1234);
204
+ .Ve
205
+ .SH "DESCRIPTION"
206
+ .IX Header "DESCRIPTION"
207
+ \&\f(CW\*(C`Hash::Util\*(C'\fR and \f(CW\*(C`Hash::Util::FieldHash\*(C'\fR contain special functions
208
+ for manipulating hashes that don't really warrant a keyword.
209
+ .PP
210
+ \&\f(CW\*(C`Hash::Util\*(C'\fR contains a set of functions that support
211
+ restricted hashes. These are described in
212
+ this document. \f(CW\*(C`Hash::Util::FieldHash\*(C'\fR contains an (unrelated)
213
+ set of functions that support the use of hashes in
214
+ \&\fIinside-out classes\fR, described in Hash::Util::FieldHash.
215
+ .PP
216
+ By default \f(CW\*(C`Hash::Util\*(C'\fR does not export anything.
217
+ .SS "Restricted hashes"
218
+ .IX Subsection "Restricted hashes"
219
+ 5.8.0 introduces the ability to restrict a hash to a certain set of
220
+ keys. No keys outside of this set can be added. It also introduces
221
+ the ability to lock an individual key so it cannot be deleted and the
222
+ ability to ensure that an individual value cannot be changed.
223
+ .PP
224
+ This is intended to largely replace the deprecated pseudo-hashes.
225
+ .IP "\fBlock_keys\fR" 4
226
+ .IX Item "lock_keys"
227
+ .PD 0
228
+ .IP "\fBunlock_keys\fR" 4
229
+ .IX Item "unlock_keys"
230
+ .PD
231
+ .Vb 2
232
+ \& lock_keys(%hash);
233
+ \& lock_keys(%hash, @keys);
234
+ .Ve
235
+ .Sp
236
+ Restricts the given \f(CW%hash\fR's set of keys to \f(CW@keys\fR. If \f(CW@keys\fR is not
237
+ given it restricts it to its current keyset. No more keys can be
238
+ added. \fBdelete()\fR and \fBexists()\fR will still work, but will not alter
239
+ the set of allowed keys. \fBNote\fR: the current implementation prevents
240
+ the hash from being \fBbless()\fRed while it is in a locked state. Any attempt
241
+ to do so will raise an exception. Of course you can still \fBbless()\fR
242
+ the hash before you call \fBlock_keys()\fR so this shouldn't be a problem.
243
+ .Sp
244
+ .Vb 1
245
+ \& unlock_keys(%hash);
246
+ .Ve
247
+ .Sp
248
+ Removes the restriction on the \f(CW%hash\fR's keyset.
249
+ .Sp
250
+ \&\fBNote\fR that if any of the values of the hash have been locked they will not
251
+ be unlocked after this sub executes.
252
+ .Sp
253
+ Both routines return a reference to the hash operated on.
254
+ .IP "\fBlock_keys_plus\fR" 4
255
+ .IX Item "lock_keys_plus"
256
+ .Vb 1
257
+ \& lock_keys_plus(%hash,@additional_keys)
258
+ .Ve
259
+ .Sp
260
+ Similar to \f(CW\*(C`lock_keys()\*(C'\fR, with the difference being that the optional key list
261
+ specifies keys that may or may not be already in the hash. Essentially this is
262
+ an easier way to say
263
+ .Sp
264
+ .Vb 1
265
+ \& lock_keys(%hash,@additional_keys,keys %hash);
266
+ .Ve
267
+ .Sp
268
+ Returns a reference to \f(CW%hash\fR
269
+ .IP "\fBlock_value\fR" 4
270
+ .IX Item "lock_value"
271
+ .PD 0
272
+ .IP "\fBunlock_value\fR" 4
273
+ .IX Item "unlock_value"
274
+ .PD
275
+ .Vb 2
276
+ \& lock_value (%hash, $key);
277
+ \& unlock_value(%hash, $key);
278
+ .Ve
279
+ .Sp
280
+ Locks and unlocks the value for an individual key of a hash. The value of a
281
+ locked key cannot be changed.
282
+ .Sp
283
+ Unless \f(CW%hash\fR has already been locked the key/value could be deleted
284
+ regardless of this setting.
285
+ .Sp
286
+ Returns a reference to the \f(CW%hash\fR.
287
+ .IP "\fBlock_hash\fR" 4
288
+ .IX Item "lock_hash"
289
+ .PD 0
290
+ .IP "\fBunlock_hash\fR" 4
291
+ .IX Item "unlock_hash"
292
+ .PD
293
+ .Vb 1
294
+ \& lock_hash(%hash);
295
+ .Ve
296
+ .Sp
297
+ \&\fBlock_hash()\fR locks an entire hash, making all keys and values read-only.
298
+ No value can be changed, no keys can be added or deleted.
299
+ .Sp
300
+ .Vb 1
301
+ \& unlock_hash(%hash);
302
+ .Ve
303
+ .Sp
304
+ \&\fBunlock_hash()\fR does the opposite of \fBlock_hash()\fR. All keys and values
305
+ are made writable. All values can be changed and keys can be added
306
+ and deleted.
307
+ .Sp
308
+ Returns a reference to the \f(CW%hash\fR.
309
+ .IP "\fBlock_hash_recurse\fR" 4
310
+ .IX Item "lock_hash_recurse"
311
+ .PD 0
312
+ .IP "\fBunlock_hash_recurse\fR" 4
313
+ .IX Item "unlock_hash_recurse"
314
+ .PD
315
+ .Vb 1
316
+ \& lock_hash_recurse(%hash);
317
+ .Ve
318
+ .Sp
319
+ \&\fBlock_hash()\fR locks an entire hash and any hashes it references recursively,
320
+ making all keys and values read-only. No value can be changed, no keys can
321
+ be added or deleted.
322
+ .Sp
323
+ This method \fBonly\fR recurses into hashes that are referenced by another hash.
324
+ Thus a Hash of Hashes (HoH) will all be restricted, but a Hash of Arrays of
325
+ Hashes (HoAoH) will only have the top hash restricted.
326
+ .Sp
327
+ .Vb 1
328
+ \& unlock_hash_recurse(%hash);
329
+ .Ve
330
+ .Sp
331
+ \&\fBunlock_hash_recurse()\fR does the opposite of \fBlock_hash_recurse()\fR. All keys and
332
+ values are made writable. All values can be changed and keys can be added
333
+ and deleted. Identical recursion restrictions apply as to \fBlock_hash_recurse()\fR.
334
+ .Sp
335
+ Returns a reference to the \f(CW%hash\fR.
336
+ .IP "\fBhashref_locked\fR" 4
337
+ .IX Item "hashref_locked"
338
+ .PD 0
339
+ .IP "\fBhash_locked\fR" 4
340
+ .IX Item "hash_locked"
341
+ .PD
342
+ .Vb 2
343
+ \& hashref_locked(\e%hash) and print "Hash is locked!\en";
344
+ \& hash_locked(%hash) and print "Hash is locked!\en";
345
+ .Ve
346
+ .Sp
347
+ Returns true if the hash and its keys are locked.
348
+ .IP "\fBhashref_unlocked\fR" 4
349
+ .IX Item "hashref_unlocked"
350
+ .PD 0
351
+ .IP "\fBhash_unlocked\fR" 4
352
+ .IX Item "hash_unlocked"
353
+ .PD
354
+ .Vb 2
355
+ \& hashref_unlocked(\e%hash) and print "Hash is unlocked!\en";
356
+ \& hash_unlocked(%hash) and print "Hash is unlocked!\en";
357
+ .Ve
358
+ .Sp
359
+ Returns true if the hash and its keys are unlocked.
360
+ .IP "\fBlegal_keys\fR" 4
361
+ .IX Item "legal_keys"
362
+ .Vb 1
363
+ \& my @keys = legal_keys(%hash);
364
+ .Ve
365
+ .Sp
366
+ Returns the list of the keys that are legal in a restricted hash.
367
+ In the case of an unrestricted hash this is identical to calling
368
+ keys(%hash).
369
+ .IP "\fBhidden_keys\fR" 4
370
+ .IX Item "hidden_keys"
371
+ .Vb 1
372
+ \& my @keys = hidden_keys(%hash);
373
+ .Ve
374
+ .Sp
375
+ Returns the list of the keys that are legal in a restricted hash but
376
+ do not have a value associated to them. Thus if 'foo' is a
377
+ \&\*(L"hidden\*(R" key of the \f(CW%hash\fR it will return false for both \f(CW\*(C`defined\*(C'\fR
378
+ and \f(CW\*(C`exists\*(C'\fR tests.
379
+ .Sp
380
+ In the case of an unrestricted hash this will return an empty list.
381
+ .Sp
382
+ \&\fB\s-1NOTE\s0\fR this is an experimental feature that is heavily dependent
383
+ on the current implementation of restricted hashes. Should the
384
+ implementation change, this routine may become meaningless, in which
385
+ case it will return an empty list.
386
+ .IP "\fBall_keys\fR" 4
387
+ .IX Item "all_keys"
388
+ .Vb 1
389
+ \& all_keys(%hash,@keys,@hidden);
390
+ .Ve
391
+ .Sp
392
+ Populates the arrays \f(CW@keys\fR with the all the keys that would pass
393
+ an \f(CW\*(C`exists\*(C'\fR tests, and populates \f(CW@hidden\fR with the remaining legal
394
+ keys that have not been utilized.
395
+ .Sp
396
+ Returns a reference to the hash.
397
+ .Sp
398
+ In the case of an unrestricted hash this will be equivalent to
399
+ .Sp
400
+ .Vb 5
401
+ \& $ref = do {
402
+ \& @keys = keys %hash;
403
+ \& @hidden = ();
404
+ \& \e%hash
405
+ \& };
406
+ .Ve
407
+ .Sp
408
+ \&\fB\s-1NOTE\s0\fR this is an experimental feature that is heavily dependent
409
+ on the current implementation of restricted hashes. Should the
410
+ implementation change this routine may become meaningless in which
411
+ case it will behave identically to how it would behave on an
412
+ unrestricted hash.
413
+ .IP "\fBhash_seed\fR" 4
414
+ .IX Item "hash_seed"
415
+ .Vb 1
416
+ \& my $hash_seed = hash_seed();
417
+ .Ve
418
+ .Sp
419
+ \&\fBhash_seed()\fR returns the seed bytes used to randomise hash ordering.
420
+ .Sp
421
+ \&\fBNote that the hash seed is sensitive information\fR: by knowing it one
422
+ can craft a denial-of-service attack against Perl code, even remotely,
423
+ see \*(L"Algorithmic Complexity Attacks\*(R" in perlsec for more information.
424
+ \&\fBDo not disclose the hash seed\fR to people who don't need to know it.
425
+ See also \*(L"\s-1PERL_HASH_SEED_DEBUG\*(R"\s0 in perlrun.
426
+ .Sp
427
+ Prior to Perl 5.17.6 this function returned a \s-1UV,\s0 it now returns a string,
428
+ which may be of nearly any size as determined by the hash function your
429
+ Perl has been built with. Possible sizes may be but are not limited to
430
+ 4 bytes (for most hash algorithms) and 16 bytes (for siphash).
431
+ .IP "\fBhash_value\fR" 4
432
+ .IX Item "hash_value"
433
+ .Vb 1
434
+ \& my $hash_value = hash_value($string);
435
+ .Ve
436
+ .Sp
437
+ \&\fBhash_value()\fR returns the current perl's internal hash value for a given
438
+ string.
439
+ .Sp
440
+ Returns a 32 bit integer representing the hash value of the string passed
441
+ in. This value is only reliable for the lifetime of the process. It may
442
+ be different depending on invocation, environment variables, perl version,
443
+ architectures, and build options.
444
+ .Sp
445
+ \&\fBNote that the hash value of a given string is sensitive information\fR:
446
+ by knowing it one can deduce the hash seed which in turn can allow one to
447
+ craft a denial-of-service attack against Perl code, even remotely,
448
+ see \*(L"Algorithmic Complexity Attacks\*(R" in perlsec for more information.
449
+ \&\fBDo not disclose the hash value of a string\fR to people who don't need to
450
+ know it. See also \*(L"\s-1PERL_HASH_SEED_DEBUG\*(R"\s0 in perlrun.
451
+ .IP "\fBbucket_info\fR" 4
452
+ .IX Item "bucket_info"
453
+ Return a set of basic information about a hash.
454
+ .Sp
455
+ .Vb 1
456
+ \& my ($keys, $buckets, $used, @length_counts)= bucket_info($hash);
457
+ .Ve
458
+ .Sp
459
+ Fields are as follows:
460
+ .Sp
461
+ .Vb 5
462
+ \& 0: Number of keys in the hash
463
+ \& 1: Number of buckets in the hash
464
+ \& 2: Number of used buckets in the hash
465
+ \& rest : list of counts, Kth element is the number of buckets
466
+ \& with K keys in it.
467
+ .Ve
468
+ .Sp
469
+ See also \fBbucket_stats()\fR and \fBbucket_array()\fR.
470
+ .IP "\fBbucket_stats\fR" 4
471
+ .IX Item "bucket_stats"
472
+ Returns a list of statistics about a hash.
473
+ .Sp
474
+ .Vb 3
475
+ \& my ($keys, $buckets, $used, $quality, $utilization_ratio,
476
+ \& $collision_pct, $mean, $stddev, @length_counts)
477
+ \& = bucket_stats($hashref);
478
+ .Ve
479
+ .Sp
480
+ Fields are as follows:
481
+ .Sp
482
+ .Vb 10
483
+ \& 0: Number of keys in the hash
484
+ \& 1: Number of buckets in the hash
485
+ \& 2: Number of used buckets in the hash
486
+ \& 3: Hash Quality Score
487
+ \& 4: Percent of buckets used
488
+ \& 5: Percent of keys which are in collision
489
+ \& 6: Mean bucket length of occupied buckets
490
+ \& 7: Standard Deviation of bucket lengths of occupied buckets
491
+ \& rest : list of counts, Kth element is the number of buckets
492
+ \& with K keys in it.
493
+ .Ve
494
+ .Sp
495
+ See also \fBbucket_info()\fR and \fBbucket_array()\fR.
496
+ .Sp
497
+ Note that Hash Quality Score would be 1 for an ideal hash, numbers
498
+ close to and below 1 indicate good hashing, and number significantly
499
+ above indicate a poor score. In practice it should be around 0.95 to 1.05.
500
+ It is defined as:
501
+ .Sp
502
+ .Vb 4
503
+ \& $score= sum( $count[$length] * ($length * ($length + 1) / 2) )
504
+ \& /
505
+ \& ( ( $keys / 2 * $buckets ) *
506
+ \& ( $keys + ( 2 * $buckets ) \- 1 ) )
507
+ .Ve
508
+ .Sp
509
+ The formula is from the Red Dragon book (reformulated to use the data available)
510
+ and is documented at <http://www.strchr.com/hash_functions>
511
+ .IP "\fBbucket_array\fR" 4
512
+ .IX Item "bucket_array"
513
+ .Vb 1
514
+ \& my $array= bucket_array(\e%hash);
515
+ .Ve
516
+ .Sp
517
+ Returns a packed representation of the bucket array associated with a hash. Each element
518
+ of the array is either an integer K, in which case it represents K empty buckets, or
519
+ a reference to another array which contains the keys that are in that bucket.
520
+ .Sp
521
+ \&\fBNote that the information returned by bucket_array is sensitive information\fR:
522
+ by knowing it one can directly attack perl's hash function which in turn may allow
523
+ one to craft a denial-of-service attack against Perl code, even remotely,
524
+ see \*(L"Algorithmic Complexity Attacks\*(R" in perlsec for more information.
525
+ \&\fBDo not disclose the output of this function\fR to people who don't need to
526
+ know it. See also \*(L"\s-1PERL_HASH_SEED_DEBUG\*(R"\s0 in perlrun. This function is provided strictly
527
+ for debugging and diagnostics purposes only, it is hard to imagine a reason why it
528
+ would be used in production code.
529
+ .IP "\fBbucket_stats_formatted\fR" 4
530
+ .IX Item "bucket_stats_formatted"
531
+ .Vb 1
532
+ \& print bucket_stats_formatted($hashref);
533
+ .Ve
534
+ .Sp
535
+ Return a formatted report of the information returned by \fBbucket_stats()\fR.
536
+ An example report looks like this:
537
+ .Sp
538
+ .Vb 12
539
+ \& Keys: 50 Buckets: 33/64 Quality\-Score: 1.01 (Good)
540
+ \& Utilized Buckets: 51.56% Optimal: 78.12% Keys In Collision: 34.00%
541
+ \& Chain Length \- mean: 1.52 stddev: 0.66
542
+ \& Buckets 64 [0000000000000000000000000000000111111111111111111122222222222333]
543
+ \& Len 0 Pct: 48.44 [###############################]
544
+ \& Len 1 Pct: 29.69 [###################]
545
+ \& Len 2 Pct: 17.19 [###########]
546
+ \& Len 3 Pct: 4.69 [###]
547
+ \& Keys 50 [11111111111111111111111111111111122222222222222333]
548
+ \& Pos 1 Pct: 66.00 [#################################]
549
+ \& Pos 2 Pct: 28.00 [##############]
550
+ \& Pos 3 Pct: 6.00 [###]
551
+ .Ve
552
+ .Sp
553
+ The first set of stats gives some summary statistical information,
554
+ including the quality score translated into \*(L"Good\*(R", \*(L"Poor\*(R" and \*(L"Bad\*(R",
555
+ (score<=1.05, score<=1.2, score>1.2). See the documentation in
556
+ \&\fBbucket_stats()\fR for more details.
557
+ .Sp
558
+ The two sets of barcharts give stats and a visual indication of performance
559
+ of the hash.
560
+ .Sp
561
+ The first gives data on bucket chain lengths and provides insight on how
562
+ much work a fetch *miss* will take. In this case we have to inspect every item
563
+ in a bucket before we can be sure the item is not in the list. The performance
564
+ for an insert is equivalent to this case, as is a delete where the item
565
+ is not in the hash.
566
+ .Sp
567
+ The second gives data on how many keys are at each depth in the chain, and
568
+ gives an idea of how much work a fetch *hit* will take. The performance for
569
+ an update or delete of an item in the hash is equivalent to this case.
570
+ .Sp
571
+ Note that these statistics are summary only. Actual performance will depend
572
+ on real hit/miss ratios accessing the hash. If you are concerned by hit ratios
573
+ you are recommended to \*(L"oversize\*(R" your hash by using something like:
574
+ .Sp
575
+ .Vb 1
576
+ \& keys(%hash)= keys(%hash) << $k;
577
+ .Ve
578
+ .Sp
579
+ With \f(CW$k\fR chosen carefully, and likely to be a small number like 1 or 2. In
580
+ theory the larger the bucket array the less chance of collision.
581
+ .IP "\fBhv_store\fR" 4
582
+ .IX Item "hv_store"
583
+ .Vb 4
584
+ \& my $sv = 0;
585
+ \& hv_store(%hash,$key,$sv) or die "Failed to alias!";
586
+ \& $hash{$key} = 1;
587
+ \& print $sv; # prints 1
588
+ .Ve
589
+ .Sp
590
+ Stores an alias to a variable in a hash instead of copying the value.
591
+ .IP "\fBhash_traversal_mask\fR" 4
592
+ .IX Item "hash_traversal_mask"
593
+ As of Perl 5.18 every hash has its own hash traversal order, and this order
594
+ changes every time a new element is inserted into the hash. This functionality
595
+ is provided by maintaining an unsigned integer mask (U32) which is xor'ed
596
+ with the actual bucket id during a traversal of the hash buckets using \fBkeys()\fR,
597
+ \&\fBvalues()\fR or \fBeach()\fR.
598
+ .Sp
599
+ You can use this subroutine to get and set the traversal mask for a specific
600
+ hash. Setting the mask ensures that a given hash will produce the same key
601
+ order. \fBNote\fR that this does \fBnot\fR guarantee that \fBtwo\fR hashes will produce
602
+ the same key order for the same hash seed and traversal mask, items that
603
+ collide into one bucket may have different orders regardless of this setting.
604
+ .IP "\fBbucket_ratio\fR" 4
605
+ .IX Item "bucket_ratio"
606
+ This function behaves the same way that scalar(%hash) behaved prior to
607
+ Perl 5.25. Specifically if the hash is tied, then it calls the \s-1SCALAR\s0 tied
608
+ hash method, if untied then if the hash is empty it return 0, otherwise it
609
+ returns a string containing the number of used buckets in the hash,
610
+ followed by a slash, followed by the total number of buckets in the hash.
611
+ .Sp
612
+ .Vb 2
613
+ \& my %hash=("foo"=>1);
614
+ \& print Hash::Util::bucket_ratio(%hash); # prints "1/8"
615
+ .Ve
616
+ .IP "\fBused_buckets\fR" 4
617
+ .IX Item "used_buckets"
618
+ This function returns the count of used buckets in the hash. It is expensive
619
+ to calculate and the value is \s-1NOT\s0 cached, so avoid use of this function
620
+ in production code.
621
+ .IP "\fBnum_buckets\fR" 4
622
+ .IX Item "num_buckets"
623
+ This function returns the total number of buckets the hash holds, or would
624
+ hold if the array were created. (When a hash is freshly created the array
625
+ may not be allocated even though this value will be non-zero.)
626
+ .SS "Operating on references to hashes."
627
+ .IX Subsection "Operating on references to hashes."
628
+ Most subroutines documented in this module have equivalent versions
629
+ that operate on references to hashes instead of native hashes.
630
+ The following is a list of these subs. They are identical except
631
+ in name and in that instead of taking a \f(CW%hash\fR they take a \f(CW$hashref\fR,
632
+ and additionally are not prototyped.
633
+ .IP "lock_ref_keys" 4
634
+ .IX Item "lock_ref_keys"
635
+ .PD 0
636
+ .IP "unlock_ref_keys" 4
637
+ .IX Item "unlock_ref_keys"
638
+ .IP "lock_ref_keys_plus" 4
639
+ .IX Item "lock_ref_keys_plus"
640
+ .IP "lock_ref_value" 4
641
+ .IX Item "lock_ref_value"
642
+ .IP "unlock_ref_value" 4
643
+ .IX Item "unlock_ref_value"
644
+ .IP "lock_hashref" 4
645
+ .IX Item "lock_hashref"
646
+ .IP "unlock_hashref" 4
647
+ .IX Item "unlock_hashref"
648
+ .IP "lock_hashref_recurse" 4
649
+ .IX Item "lock_hashref_recurse"
650
+ .IP "unlock_hashref_recurse" 4
651
+ .IX Item "unlock_hashref_recurse"
652
+ .IP "hash_ref_unlocked" 4
653
+ .IX Item "hash_ref_unlocked"
654
+ .IP "legal_ref_keys" 4
655
+ .IX Item "legal_ref_keys"
656
+ .IP "hidden_ref_keys" 4
657
+ .IX Item "hidden_ref_keys"
658
+ .PD
659
+ .SH "CAVEATS"
660
+ .IX Header "CAVEATS"
661
+ Note that the trapping of the restricted operations is not atomic:
662
+ for example
663
+ .PP
664
+ .Vb 1
665
+ \& eval { %hash = (illegal_key => 1) }
666
+ .Ve
667
+ .PP
668
+ leaves the \f(CW%hash\fR empty rather than with its original contents.
669
+ .SH "BUGS"
670
+ .IX Header "BUGS"
671
+ The interface exposed by this module is very close to the current
672
+ implementation of restricted hashes. Over time it is expected that
673
+ this behavior will be extended and the interface abstracted further.
674
+ .SH "AUTHOR"
675
+ .IX Header "AUTHOR"
676
+ Michael G Schwern <schwern@pobox.com> on top of code by Nick
677
+ Ing-Simmons and Jeffrey Friedl.
678
+ .PP
679
+ \&\fBhv_store()\fR is from Array::RefElem, Copyright 2000 Gisle Aas.
680
+ .PP
681
+ Additional code by Yves Orton.
682
+ .SH "SEE ALSO"
683
+ .IX Header "SEE ALSO"
684
+ Scalar::Util, List::Util and \*(L"Algorithmic Complexity Attacks\*(R" in perlsec.
685
+ .PP
686
+ Hash::Util::FieldHash.
data/miniconda3/man/man3/I18N%3A%3ACollate.3 ADDED
@@ -0,0 +1,197 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "I18N::Collate 3"
136
+ .TH I18N::Collate 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
+ I18N::Collate \- compare 8\-bit scalar data according to the current locale
143
+ .SH "SYNOPSIS"
144
+ .IX Header "SYNOPSIS"
145
+ .Vb 4
146
+ \& use I18N::Collate;
147
+ \& setlocale(LC_COLLATE, \*(Aqlocale\-of\-your\-choice\*(Aq);
148
+ \& $s1 = I18N::Collate\->new("scalar_data_1");
149
+ \& $s2 = I18N::Collate\->new("scalar_data_2");
150
+ .Ve
151
+ .SH "DESCRIPTION"
152
+ .IX Header "DESCRIPTION"
153
+ .Vb 1
154
+ \& ***
155
+ \&
156
+ \& WARNING: starting from the Perl version 5.003_06
157
+ \& the I18N::Collate interface for comparing 8\-bit scalar data
158
+ \& according to the current locale
159
+ \&
160
+ \& HAS BEEN DEPRECATED
161
+ \&
162
+ \& That is, please do not use it anymore for any new applications
163
+ \& and please migrate the old applications away from it because its
164
+ \& functionality was integrated into the Perl core language in the
165
+ \& release 5.003_06.
166
+ \&
167
+ \& See the perllocale manual page for further information.
168
+ \&
169
+ \& ***
170
+ .Ve
171
+ .PP
172
+ This module provides you with objects that will collate
173
+ according to your national character set, provided that the
174
+ \&\s-1POSIX\s0 \fBsetlocale()\fR function is supported on your system.
175
+ .PP
176
+ You can compare \f(CW$s1\fR and \f(CW$s2\fR above with
177
+ .PP
178
+ .Vb 1
179
+ \& $s1 le $s2
180
+ .Ve
181
+ .PP
182
+ to extract the data itself, you'll need a dereference: $$s1
183
+ .PP
184
+ This module uses \fBPOSIX::setlocale()\fR. The basic collation conversion is
185
+ done by \fBstrxfrm()\fR which terminates at \s-1NUL\s0 characters being a decent C
186
+ routine. \fBcollate_xfrm()\fR handles embedded \s-1NUL\s0 characters gracefully.
187
+ .PP
188
+ The available locales depend on your operating system; try whether
189
+ \&\f(CW\*(C`locale \-a\*(C'\fR shows them or man pages for \*(L"locale\*(R" or \*(L"nlsinfo\*(R" or the
190
+ direct approach \f(CW\*(C`ls /usr/lib/nls/loc\*(C'\fR or \f(CW\*(C`ls /usr/lib/nls\*(C'\fR or
191
+ \&\f(CW\*(C`ls /usr/lib/locale\*(C'\fR. Not all the locales that your vendor supports
192
+ are necessarily installed: please consult your operating system's
193
+ documentation and possibly your local system administration. The
194
+ locale names are probably something like \f(CW\*(C`xx_XX.(ISO)?8859\-N\*(C'\fR or
195
+ \&\f(CW\*(C`xx_XX.(ISO)?8859N\*(C'\fR, for example \f(CW\*(C`fr_CH.ISO8859\-1\*(C'\fR is the Swiss (\s-1CH\s0)
196
+ variant of French (fr), \s-1ISO\s0 Latin (8859) 1 (\-1) which is the Western
197
+ European character set.
data/miniconda3/man/man3/IO%3A%3ADir.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 "IO::Dir 3"
136
+ .TH IO::Dir 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
+ IO::Dir \- supply object methods for directory handles
143
+ .SH "SYNOPSIS"
144
+ .IX Header "SYNOPSIS"
145
+ .Vb 8
146
+ \& use IO::Dir;
147
+ \& $d = IO::Dir\->new(".");
148
+ \& if (defined $d) {
149
+ \& while (defined($_ = $d\->read)) { something($_); }
150
+ \& $d\->rewind;
151
+ \& while (defined($_ = $d\->read)) { something_else($_); }
152
+ \& undef $d;
153
+ \& }
154
+ \&
155
+ \& tie %dir, \*(AqIO::Dir\*(Aq, ".";
156
+ \& foreach (keys %dir) {
157
+ \& print $_, " " , $dir{$_}\->size,"\en";
158
+ \& }
159
+ .Ve
160
+ .SH "DESCRIPTION"
161
+ .IX Header "DESCRIPTION"
162
+ The \f(CW\*(C`IO::Dir\*(C'\fR package provides two interfaces to perl's directory reading
163
+ routines.
164
+ .PP
165
+ The first interface is an object approach. \f(CW\*(C`IO::Dir\*(C'\fR provides an object
166
+ constructor and methods, which are just wrappers around perl's built in
167
+ directory reading routines.
168
+ .IP "new ( [ \s-1DIRNAME\s0 ] )" 4
169
+ .IX Item "new ( [ DIRNAME ] )"
170
+ \&\f(CW\*(C`new\*(C'\fR is the constructor for \f(CW\*(C`IO::Dir\*(C'\fR objects. It accepts one optional
171
+ argument which, if given, \f(CW\*(C`new\*(C'\fR will pass to \f(CW\*(C`open\*(C'\fR
172
+ .PP
173
+ The following methods are wrappers for the directory related functions built
174
+ into perl (the trailing 'dir' has been removed from the names). See perlfunc
175
+ for details of these functions.
176
+ .IP "open ( \s-1DIRNAME\s0 )" 4
177
+ .IX Item "open ( DIRNAME )"
178
+ .PD 0
179
+ .IP "read ()" 4
180
+ .IX Item "read ()"
181
+ .IP "seek ( \s-1POS\s0 )" 4
182
+ .IX Item "seek ( POS )"
183
+ .IP "tell ()" 4
184
+ .IX Item "tell ()"
185
+ .IP "rewind ()" 4
186
+ .IX Item "rewind ()"
187
+ .IP "close ()" 4
188
+ .IX Item "close ()"
189
+ .PD
190
+ .PP
191
+ \&\f(CW\*(C`IO::Dir\*(C'\fR also provides an interface to reading directories via a tied
192
+ hash. The tied hash extends the interface beyond just the directory
193
+ reading routines by the use of \f(CW\*(C`lstat\*(C'\fR, from the \f(CW\*(C`File::stat\*(C'\fR package,
194
+ \&\f(CW\*(C`unlink\*(C'\fR, \f(CW\*(C`rmdir\*(C'\fR and \f(CW\*(C`utime\*(C'\fR.
195
+ .ie n .IP "tie %hash, 'IO::Dir', \s-1DIRNAME\s0 [, \s-1OPTIONS\s0 ]" 4
196
+ .el .IP "tie \f(CW%hash\fR, 'IO::Dir', \s-1DIRNAME\s0 [, \s-1OPTIONS\s0 ]" 4
197
+ .IX Item "tie %hash, 'IO::Dir', DIRNAME [, OPTIONS ]"
198
+ .PP
199
+ The keys of the hash will be the names of the entries in the directory.
200
+ Reading a value from the hash will be the result of calling
201
+ \&\f(CW\*(C`File::stat::lstat\*(C'\fR. Deleting an element from the hash will
202
+ delete the corresponding file or subdirectory,
203
+ provided that \f(CW\*(C`DIR_UNLINK\*(C'\fR is included in the \f(CW\*(C`OPTIONS\*(C'\fR.
204
+ .PP
205
+ Assigning to an entry in the hash will cause the time stamps of the file
206
+ to be modified. If the file does not exist then it will be created. Assigning
207
+ a single integer to a hash element will cause both the access and
208
+ modification times to be changed to that value. Alternatively a reference to
209
+ an array of two values can be passed. The first array element will be used to
210
+ set the access time and the second element will be used to set the modification
211
+ time.
212
+ .SH "SEE ALSO"
213
+ .IX Header "SEE ALSO"
214
+ File::stat
215
+ .SH "AUTHOR"
216
+ .IX Header "AUTHOR"
217
+ Graham Barr. Currently maintained by the Perl Porters. Please report all
218
+ bugs to <perlbug@perl.org>.
219
+ .SH "COPYRIGHT"
220
+ .IX Header "COPYRIGHT"
221
+ Copyright (c) 1997\-2003 Graham Barr <gbarr@pobox.com>. All rights reserved.
222
+ This program is free software; you can redistribute it and/or
223
+ modify it under the same terms as Perl itself.
data/miniconda3/man/man3/IO%3A%3APipe.3 ADDED
@@ -0,0 +1,219 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "IO::Pipe 3"
136
+ .TH IO::Pipe 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
+ IO::Pipe \- supply object methods for pipes
143
+ .SH "SYNOPSIS"
144
+ .IX Header "SYNOPSIS"
145
+ .Vb 1
146
+ \& use IO::Pipe;
147
+ \&
148
+ \& $pipe = IO::Pipe\->new();
149
+ \&
150
+ \& if($pid = fork()) { # Parent
151
+ \& $pipe\->reader();
152
+ \&
153
+ \& while(<$pipe>) {
154
+ \& ...
155
+ \& }
156
+ \&
157
+ \& }
158
+ \& elsif(defined $pid) { # Child
159
+ \& $pipe\->writer();
160
+ \&
161
+ \& print $pipe ...
162
+ \& }
163
+ \&
164
+ \& or
165
+ \&
166
+ \& $pipe = IO::Pipe\->new();
167
+ \&
168
+ \& $pipe\->reader(qw(ls \-l));
169
+ \&
170
+ \& while(<$pipe>) {
171
+ \& ...
172
+ \& }
173
+ .Ve
174
+ .SH "DESCRIPTION"
175
+ .IX Header "DESCRIPTION"
176
+ \&\f(CW\*(C`IO::Pipe\*(C'\fR provides an interface to creating pipes between
177
+ processes.
178
+ .SH "CONSTRUCTOR"
179
+ .IX Header "CONSTRUCTOR"
180
+ .IP "new ( [\s-1READER, WRITER\s0] )" 4
181
+ .IX Item "new ( [READER, WRITER] )"
182
+ Creates an \f(CW\*(C`IO::Pipe\*(C'\fR, which is a reference to a newly created symbol
183
+ (see the \f(CW\*(C`Symbol\*(C'\fR package). \f(CW\*(C`IO::Pipe::new\*(C'\fR optionally takes two
184
+ arguments, which should be objects blessed into \f(CW\*(C`IO::Handle\*(C'\fR, or a
185
+ subclass thereof. These two objects will be used for the system call
186
+ to \f(CW\*(C`pipe\*(C'\fR. If no arguments are given then method \f(CW\*(C`handles\*(C'\fR is called
187
+ on the new \f(CW\*(C`IO::Pipe\*(C'\fR object.
188
+ .Sp
189
+ These two handles are held in the array part of the \s-1GLOB\s0 until either
190
+ \&\f(CW\*(C`reader\*(C'\fR or \f(CW\*(C`writer\*(C'\fR is called.
191
+ .SH "METHODS"
192
+ .IX Header "METHODS"
193
+ .IP "reader ([\s-1ARGS\s0])" 4
194
+ .IX Item "reader ([ARGS])"
195
+ The object is re-blessed into a sub-class of \f(CW\*(C`IO::Handle\*(C'\fR, and becomes a
196
+ handle at the reading end of the pipe. If \f(CW\*(C`ARGS\*(C'\fR are given then \f(CW\*(C`fork\*(C'\fR
197
+ is called and \f(CW\*(C`ARGS\*(C'\fR are passed to exec.
198
+ .IP "writer ([\s-1ARGS\s0])" 4
199
+ .IX Item "writer ([ARGS])"
200
+ The object is re-blessed into a sub-class of \f(CW\*(C`IO::Handle\*(C'\fR, and becomes a
201
+ handle at the writing end of the pipe. If \f(CW\*(C`ARGS\*(C'\fR are given then \f(CW\*(C`fork\*(C'\fR
202
+ is called and \f(CW\*(C`ARGS\*(C'\fR are passed to exec.
203
+ .IP "handles ()" 4
204
+ .IX Item "handles ()"
205
+ This method is called during construction by \f(CW\*(C`IO::Pipe::new\*(C'\fR
206
+ on the newly created \f(CW\*(C`IO::Pipe\*(C'\fR object. It returns an array of two objects
207
+ blessed into \f(CW\*(C`IO::Pipe::End\*(C'\fR, or a subclass thereof.
208
+ .SH "SEE ALSO"
209
+ .IX Header "SEE ALSO"
210
+ IO::Handle
211
+ .SH "AUTHOR"
212
+ .IX Header "AUTHOR"
213
+ Graham Barr. Currently maintained by the Perl Porters. Please report all
214
+ bugs to <perlbug@perl.org>.
215
+ .SH "COPYRIGHT"
216
+ .IX Header "COPYRIGHT"
217
+ Copyright (c) 1996\-8 Graham Barr <gbarr@pobox.com>. All rights reserved.
218
+ This program is free software; you can redistribute it and/or
219
+ modify it under the same terms as Perl itself.
data/miniconda3/man/man3/IO%3A%3ASelect.3 ADDED
@@ -0,0 +1,268 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "IO::Select 3"
136
+ .TH IO::Select 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
+ IO::Select \- OO interface to the select system call
143
+ .SH "SYNOPSIS"
144
+ .IX Header "SYNOPSIS"
145
+ .Vb 1
146
+ \& use IO::Select;
147
+ \&
148
+ \& $s = IO::Select\->new();
149
+ \&
150
+ \& $s\->add(\e*STDIN);
151
+ \& $s\->add($some_handle);
152
+ \&
153
+ \& @ready = $s\->can_read($timeout);
154
+ \&
155
+ \& @ready = IO::Select\->new(@handles)\->can_read(0);
156
+ .Ve
157
+ .SH "DESCRIPTION"
158
+ .IX Header "DESCRIPTION"
159
+ The \f(CW\*(C`IO::Select\*(C'\fR package implements an object approach to the system \f(CW\*(C`select\*(C'\fR
160
+ function call. It allows the user to see what \s-1IO\s0 handles, see IO::Handle,
161
+ are ready for reading, writing or have an exception pending.
162
+ .SH "CONSTRUCTOR"
163
+ .IX Header "CONSTRUCTOR"
164
+ .IP "new ( [ \s-1HANDLES\s0 ] )" 4
165
+ .IX Item "new ( [ HANDLES ] )"
166
+ The constructor creates a new object and optionally initialises it with a set
167
+ of handles.
168
+ .SH "METHODS"
169
+ .IX Header "METHODS"
170
+ .IP "add ( \s-1HANDLES\s0 )" 4
171
+ .IX Item "add ( HANDLES )"
172
+ Add the list of handles to the \f(CW\*(C`IO::Select\*(C'\fR object. It is these values that
173
+ will be returned when an event occurs. \f(CW\*(C`IO::Select\*(C'\fR keeps these values in a
174
+ cache which is indexed by the \f(CW\*(C`fileno\*(C'\fR of the handle, so if more than one
175
+ handle with the same \f(CW\*(C`fileno\*(C'\fR is specified then only the last one is cached.
176
+ .Sp
177
+ Each handle can be an \f(CW\*(C`IO::Handle\*(C'\fR object, an integer or an array
178
+ reference where the first element is an \f(CW\*(C`IO::Handle\*(C'\fR or an integer.
179
+ .IP "remove ( \s-1HANDLES\s0 )" 4
180
+ .IX Item "remove ( HANDLES )"
181
+ Remove all the given handles from the object. This method also works
182
+ by the \f(CW\*(C`fileno\*(C'\fR of the handles. So the exact handles that were added
183
+ need not be passed, just handles that have an equivalent \f(CW\*(C`fileno\*(C'\fR
184
+ .IP "exists ( \s-1HANDLE\s0 )" 4
185
+ .IX Item "exists ( HANDLE )"
186
+ Returns a true value (actually the handle itself) if it is present.
187
+ Returns undef otherwise.
188
+ .IP "handles" 4
189
+ .IX Item "handles"
190
+ Return an array of all registered handles.
191
+ .IP "can_read ( [ \s-1TIMEOUT\s0 ] )" 4
192
+ .IX Item "can_read ( [ TIMEOUT ] )"
193
+ Return an array of handles that are ready for reading. \f(CW\*(C`TIMEOUT\*(C'\fR is the
194
+ maximum amount of time to wait before returning an empty list (with \f(CW$!\fR
195
+ unchanged), in seconds, possibly fractional. If \f(CW\*(C`TIMEOUT\*(C'\fR is not given
196
+ and any handles are registered then the call will block indefinitely.
197
+ Upon error, an empty list is returned, with \f(CW$!\fR set to indicate the
198
+ error. To distinguish between timeout and error, set \f(CW$!\fR to zero
199
+ before calling this method, and check it after an empty list is returned.
200
+ .IP "can_write ( [ \s-1TIMEOUT\s0 ] )" 4
201
+ .IX Item "can_write ( [ TIMEOUT ] )"
202
+ Same as \f(CW\*(C`can_read\*(C'\fR except check for handles that can be written to.
203
+ .IP "has_exception ( [ \s-1TIMEOUT\s0 ] )" 4
204
+ .IX Item "has_exception ( [ TIMEOUT ] )"
205
+ Same as \f(CW\*(C`can_read\*(C'\fR except check for handles that have an exception
206
+ condition, for example pending out-of-band data.
207
+ .IP "count ()" 4
208
+ .IX Item "count ()"
209
+ Returns the number of handles that the object will check for when
210
+ one of the \f(CW\*(C`can_\*(C'\fR methods is called or the object is passed to
211
+ the \f(CW\*(C`select\*(C'\fR static method.
212
+ .IP "\fBbits()\fR" 4
213
+ .IX Item "bits()"
214
+ Return the bit string suitable as argument to the core \fBselect()\fR call.
215
+ .IP "select ( \s-1READ, WRITE, EXCEPTION\s0 [, \s-1TIMEOUT\s0 ] )" 4
216
+ .IX Item "select ( READ, WRITE, EXCEPTION [, TIMEOUT ] )"
217
+ \&\f(CW\*(C`select\*(C'\fR is a static method, that is you call it with the package name
218
+ like \f(CW\*(C`new\*(C'\fR. \f(CW\*(C`READ\*(C'\fR, \f(CW\*(C`WRITE\*(C'\fR and \f(CW\*(C`EXCEPTION\*(C'\fR are either \f(CW\*(C`undef\*(C'\fR or
219
+ \&\f(CW\*(C`IO::Select\*(C'\fR objects. \f(CW\*(C`TIMEOUT\*(C'\fR is optional and has the same effect as
220
+ for the core select call.
221
+ .Sp
222
+ If at least one handle is ready for the specified kind of operation,
223
+ the result will be an array of 3 elements, each a reference to an array
224
+ which will hold the handles that are ready for reading, writing and
225
+ have exceptions respectively. Upon timeout, an empty list is returned,
226
+ with \f(CW$!\fR unchanged. Upon error, an empty list is returned, with \f(CW$!\fR
227
+ set to indicate the error. To distinguish between timeout and error,
228
+ set \f(CW$!\fR to zero before calling this method, and check it after an
229
+ empty list is returned.
230
+ .SH "EXAMPLE"
231
+ .IX Header "EXAMPLE"
232
+ Here is a short example which shows how \f(CW\*(C`IO::Select\*(C'\fR could be used
233
+ to write a server which communicates with several sockets while also
234
+ listening for more connections on a listen socket
235
+ .PP
236
+ .Vb 2
237
+ \& use IO::Select;
238
+ \& use IO::Socket;
239
+ \&
240
+ \& $lsn = IO::Socket::INET\->new(Listen => 1, LocalPort => 8080);
241
+ \& $sel = IO::Select\->new( $lsn );
242
+ \&
243
+ \& while(@ready = $sel\->can_read) {
244
+ \& foreach $fh (@ready) {
245
+ \& if($fh == $lsn) {
246
+ \& # Create a new socket
247
+ \& $new = $lsn\->accept;
248
+ \& $sel\->add($new);
249
+ \& }
250
+ \& else {
251
+ \& # Process socket
252
+ \&
253
+ \& # Maybe we have finished with the socket
254
+ \& $sel\->remove($fh);
255
+ \& $fh\->close;
256
+ \& }
257
+ \& }
258
+ \& }
259
+ .Ve
260
+ .SH "AUTHOR"
261
+ .IX Header "AUTHOR"
262
+ Graham Barr. Currently maintained by the Perl Porters. Please report all
263
+ bugs to <perlbug@perl.org>.
264
+ .SH "COPYRIGHT"
265
+ .IX Header "COPYRIGHT"
266
+ Copyright (c) 1997\-8 Graham Barr <gbarr@pobox.com>. All rights reserved.
267
+ This program is free software; you can redistribute it and/or
268
+ modify it under the same terms as Perl itself.
data/miniconda3/man/man3/IO%3A%3ASocket.3 ADDED
@@ -0,0 +1,679 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "IO::Socket 3"
136
+ .TH IO::Socket 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
+ IO::Socket \- Object interface to socket communications
143
+ .SH "SYNOPSIS"
144
+ .IX Header "SYNOPSIS"
145
+ .Vb 2
146
+ \& use strict;
147
+ \& use warnings;
148
+ \&
149
+ \& use IO::Socket qw(AF_INET AF_UNIX);
150
+ \&
151
+ \& # create a new AF_INET socket
152
+ \& my $sock = IO::Socket\->new(Domain => AF_INET);
153
+ \& # which is the same as
154
+ \& $sock = IO::Socket::INET\->new();
155
+ \&
156
+ \& # create a new AF_UNIX socket
157
+ \& $sock = IO::Socket\->new(Domain => AF_UNIX);
158
+ \& # which is the same as
159
+ \& $sock = IO::Socket::UNIX\->new();
160
+ .Ve
161
+ .SH "DESCRIPTION"
162
+ .IX Header "DESCRIPTION"
163
+ \&\f(CW\*(C`IO::Socket\*(C'\fR provides an object-oriented, IO::Handle\-based interface to
164
+ creating and using sockets via Socket, which provides a near one-to-one
165
+ interface to the C socket library.
166
+ .PP
167
+ \&\f(CW\*(C`IO::Socket\*(C'\fR is a base class that really only defines methods for those
168
+ operations which are common to all types of sockets. Operations which are
169
+ specific to a particular socket domain have methods defined in subclasses of
170
+ \&\f(CW\*(C`IO::Socket\*(C'\fR. See IO::Socket::INET, IO::Socket::UNIX, and
171
+ IO::Socket::IP for examples of such a subclass.
172
+ .PP
173
+ \&\f(CW\*(C`IO::Socket\*(C'\fR will export all functions (and constants) defined by Socket.
174
+ .SH "CONSTRUCTOR ARGUMENTS"
175
+ .IX Header "CONSTRUCTOR ARGUMENTS"
176
+ Given that \f(CW\*(C`IO::Socket\*(C'\fR doesn't have attributes in the traditional sense, the
177
+ following arguments, rather than attributes, can be passed into the
178
+ constructor.
179
+ .PP
180
+ Constructor arguments should be passed in \f(CW\*(C`Key => \*(AqValue\*(Aq\*(C'\fR pairs.
181
+ .PP
182
+ The only required argument is \*(L"Domain\*(R" in IO::Socket.
183
+ .SS "Blocking"
184
+ .IX Subsection "Blocking"
185
+ .Vb 2
186
+ \& my $sock = IO::Socket\->new(..., Blocking => 1);
187
+ \& $sock = IO::Socket\->new(..., Blocking => 0);
188
+ .Ve
189
+ .PP
190
+ If defined but false, the socket will be set to non-blocking mode. If not
191
+ specified it defaults to \f(CW1\fR (blocking mode).
192
+ .SS "Domain"
193
+ .IX Subsection "Domain"
194
+ .Vb 2
195
+ \& my $sock = IO::Socket\->new(Domain => IO::Socket::AF_INET);
196
+ \& $sock = IO::Socket\->new(Domain => IO::Socket::AF_UNIX);
197
+ .Ve
198
+ .PP
199
+ The socket domain will define which subclass of \f(CW\*(C`IO::Socket\*(C'\fR to use. The two
200
+ options available along with this distribution are \f(CW\*(C`AF_INET\*(C'\fR and \f(CW\*(C`AF_UNIX\*(C'\fR.
201
+ .PP
202
+ \&\f(CW\*(C`AF_INET\*(C'\fR is for the internet address family of sockets and is handled via
203
+ IO::Socket::INET. \f(CW\*(C`AF_INET\*(C'\fR sockets are bound to an internet address and
204
+ port.
205
+ .PP
206
+ \&\f(CW\*(C`AF_UNIX\*(C'\fR is for the unix domain socket and is handled via
207
+ IO::Socket::UNIX. \f(CW\*(C`AF_UNIX\*(C'\fR sockets are bound to the file system as their
208
+ address name space.
209
+ .PP
210
+ This argument is \fBrequired\fR. All other arguments are optional.
211
+ .SS "Listen"
212
+ .IX Subsection "Listen"
213
+ .Vb 1
214
+ \& my $sock = IO::Socket\->new(..., Listen => 5);
215
+ .Ve
216
+ .PP
217
+ Listen should be an integer value or left unset.
218
+ .PP
219
+ If provided, this argument will place the socket into listening mode. New
220
+ connections can then be accepted using the \*(L"accept\*(R" in IO::Socket method. The
221
+ value given is used as the \f(CWlisten(2)\fR queue size.
222
+ .PP
223
+ If the \f(CW\*(C`Listen\*(C'\fR argument is given, but false, the queue size will be set to
224
+ 5.
225
+ .SS "Timeout"
226
+ .IX Subsection "Timeout"
227
+ .Vb 1
228
+ \& my $sock = IO::Socket\->new(..., Timeout => 5);
229
+ .Ve
230
+ .PP
231
+ The timeout value, in seconds, for this socket connection. How exactly this
232
+ value is utilized is defined in the socket domain subclasses that make use of
233
+ the value.
234
+ .SS "Type"
235
+ .IX Subsection "Type"
236
+ .Vb 1
237
+ \& my $sock = IO::Socket\->new(..., Type => IO::Socket::SOCK_STREAM);
238
+ .Ve
239
+ .PP
240
+ The socket type that will be used. These are usually \f(CW\*(C`SOCK_STREAM\*(C'\fR,
241
+ \&\f(CW\*(C`SOCK_DGRAM\*(C'\fR, or \f(CW\*(C`SOCK_RAW\*(C'\fR. If this argument is left undefined an attempt
242
+ will be made to infer the type from the service name.
243
+ .PP
244
+ For example, you'll usually use \f(CW\*(C`SOCK_STREAM\*(C'\fR with a \f(CW\*(C`tcp\*(C'\fR connection and
245
+ \&\f(CW\*(C`SOCK_DGRAM\*(C'\fR with a \f(CW\*(C`udp\*(C'\fR connection.
246
+ .SH "CONSTRUCTORS"
247
+ .IX Header "CONSTRUCTORS"
248
+ \&\f(CW\*(C`IO::Socket\*(C'\fR extends the IO::Handle constructor.
249
+ .SS "new"
250
+ .IX Subsection "new"
251
+ .Vb 1
252
+ \& my $sock = IO::Socket\->new();
253
+ \&
254
+ \& # get a new IO::Socket::INET instance
255
+ \& $sock = IO::Socket\->new(Domain => IO::Socket::AF_INET);
256
+ \& # get a new IO::Socket::UNIX instance
257
+ \& $sock = IO::Socket\->new(Domain => IO::Socket::AF_UNIX);
258
+ \&
259
+ \& # Domain is the only required argument
260
+ \& $sock = IO::Socket\->new(
261
+ \& Domain => IO::Socket::AF_INET, # AF_INET, AF_UNIX
262
+ \& Type => IO::Socket::SOCK_STREAM, # SOCK_STREAM, SOCK_DGRAM, ...
263
+ \& Proto => \*(Aqtcp\*(Aq, # \*(Aqtcp\*(Aq, \*(Aqudp\*(Aq, IPPROTO_TCP, IPPROTO_UDP
264
+ \& # and so on...
265
+ \& );
266
+ .Ve
267
+ .PP
268
+ Creates an \f(CW\*(C`IO::Socket\*(C'\fR, which is a reference to a newly created symbol (see
269
+ the Symbol package). \f(CW\*(C`new\*(C'\fR optionally takes arguments, these arguments
270
+ are defined in \*(L"\s-1CONSTRUCTOR ARGUMENTS\*(R"\s0 in IO::Socket.
271
+ .PP
272
+ Any of the \*(L"\s-1CONSTRUCTOR ARGUMENTS\*(R"\s0 in IO::Socket may be passed to the
273
+ constructor, but if any arguments are provided, then one of them must be
274
+ the \*(L"Domain\*(R" in IO::Socket argument. The \*(L"Domain\*(R" in IO::Socket argument can,
275
+ by default, be either \f(CW\*(C`AF_INET\*(C'\fR or \f(CW\*(C`AF_UNIX\*(C'\fR. Other domains can be used if a
276
+ proper subclass for the domain family is registered. All other arguments will
277
+ be passed to the \f(CW\*(C`configuration\*(C'\fR method of the package for that domain.
278
+ .SH "METHODS"
279
+ .IX Header "METHODS"
280
+ \&\f(CW\*(C`IO::Socket\*(C'\fR inherits all methods from IO::Handle and implements the
281
+ following new ones.
282
+ .SS "accept"
283
+ .IX Subsection "accept"
284
+ .Vb 2
285
+ \& my $client_sock = $sock\->accept();
286
+ \& my $inet_sock = $sock\->accept(\*(AqIO::Socket::INET\*(Aq);
287
+ .Ve
288
+ .PP
289
+ The accept method will perform the system call \f(CW\*(C`accept\*(C'\fR on the socket and
290
+ return a new object. The new object will be created in the same class as the
291
+ listen socket, unless a specific package name is specified. This object can be
292
+ used to communicate with the client that was trying to connect.
293
+ .PP
294
+ This differs slightly from the \f(CW\*(C`accept\*(C'\fR function in perlfunc.
295
+ .PP
296
+ In a scalar context the new socket is returned, or \f(CW\*(C`undef\*(C'\fR upon
297
+ failure. In a list context a two-element array is returned containing
298
+ the new socket and the peer address; the list will be empty upon failure.
299
+ .SS "atmark"
300
+ .IX Subsection "atmark"
301
+ .Vb 4
302
+ \& my $integer = $sock\->atmark();
303
+ \& # read in some data on a given socket
304
+ \& my $data;
305
+ \& $sock\->read($data, 1024) until $sock\->atmark;
306
+ \&
307
+ \& # or, export the function to use:
308
+ \& use IO::Socket \*(Aqsockatmark\*(Aq;
309
+ \& $sock\->read($data, 1024) until sockatmark($sock);
310
+ .Ve
311
+ .PP
312
+ True if the socket is currently positioned at the urgent data mark, false
313
+ otherwise. If your system doesn't yet implement \f(CW\*(C`sockatmark\*(C'\fR this will throw
314
+ an exception.
315
+ .PP
316
+ If your system does not support \f(CW\*(C`sockatmark\*(C'\fR, the \f(CW\*(C`use\*(C'\fR declaration will
317
+ fail at compile time.
318
+ .SS "autoflush"
319
+ .IX Subsection "autoflush"
320
+ .Vb 6
321
+ \& # by default, autoflush will be turned on when referenced
322
+ \& $sock\->autoflush(); # turns on autoflush
323
+ \& # turn off autoflush
324
+ \& $sock\->autoflush(0);
325
+ \& # turn on autoflush
326
+ \& $sock\->autoflush(1);
327
+ .Ve
328
+ .PP
329
+ This attribute isn't overridden from IO::Handle's implementation. However,
330
+ since we turn it on by default, it's worth mentioning here.
331
+ .SS "bind"
332
+ .IX Subsection "bind"
333
+ .Vb 5
334
+ \& use Socket qw(pack_sockaddr_in);
335
+ \& my $port = 3000;
336
+ \& my $ip_address = \*(Aq0.0.0.0\*(Aq;
337
+ \& my $packed_addr = pack_sockaddr_in($port, $ip_address);
338
+ \& $sock\->bind($packed_addr);
339
+ .Ve
340
+ .PP
341
+ Binds a network address to a socket, just as \f(CWbind(2)\fR does. Returns true if
342
+ it succeeded, false otherwise. You should provide a packed address of the
343
+ appropriate type for the socket.
344
+ .SS "connected"
345
+ .IX Subsection "connected"
346
+ .Vb 4
347
+ \& my $peer_addr = $sock\->connected();
348
+ \& if ($peer_addr) {
349
+ \& say "We\*(Aqre connected to $peer_addr";
350
+ \& }
351
+ .Ve
352
+ .PP
353
+ If the socket is in a connected state, the peer address is returned. If the
354
+ socket is not in a connected state, \f(CW\*(C`undef\*(C'\fR is returned.
355
+ .PP
356
+ Note that this method considers a half-open \s-1TCP\s0 socket to be \*(L"in a connected
357
+ state\*(R". Specifically, it does not distinguish between the
358
+ \&\fB\s-1ESTABLISHED\s0\fR and \fBCLOSE-WAIT\fR \s-1TCP\s0 states; it returns the peer address,
359
+ rather than \f(CW\*(C`undef\*(C'\fR, in either case. Thus, in general, it cannot
360
+ be used to reliably learn whether the peer has initiated a graceful shutdown
361
+ because in most cases (see below) the local \s-1TCP\s0 state machine remains in
362
+ \&\fBCLOSE-WAIT\fR until the local application calls \*(L"shutdown\*(R" in IO::Socket or
363
+ \&\f(CW\*(C`close\*(C'\fR. Only at that point does this function return \f(CW\*(C`undef\*(C'\fR.
364
+ .PP
365
+ The \*(L"in most cases\*(R" hedge is because local \s-1TCP\s0 state machine behavior may
366
+ depend on the peer's socket options. In particular, if the peer socket has
367
+ \&\f(CW\*(C`SO_LINGER\*(C'\fR enabled with a zero timeout, then the peer's \f(CW\*(C`close\*(C'\fR will
368
+ generate a \f(CW\*(C`RST\*(C'\fR segment. Upon receipt of that segment, the local \s-1TCP\s0
369
+ transitions immediately to \fB\s-1CLOSED\s0\fR, and in that state, this method \fIwill\fR
370
+ return \f(CW\*(C`undef\*(C'\fR.
371
+ .SS "getsockopt"
372
+ .IX Subsection "getsockopt"
373
+ .Vb 3
374
+ \& my $value = $sock\->getsockopt(SOL_SOCKET, SO_REUSEADDR);
375
+ \& my $buf = $socket\->getsockopt(SOL_SOCKET, SO_RCVBUF);
376
+ \& say "Receive buffer is $buf bytes";
377
+ .Ve
378
+ .PP
379
+ Get an option associated with the socket. Levels other than \f(CW\*(C`SOL_SOCKET\*(C'\fR
380
+ may be specified here. As a convenience, this method will unpack a byte buffer
381
+ of the correct size back into a number.
382
+ .SS "listen"
383
+ .IX Subsection "listen"
384
+ .Vb 1
385
+ \& $sock\->listen(5);
386
+ .Ve
387
+ .PP
388
+ Does the same thing that the \f(CWlisten(2)\fR system call does. Returns true if it
389
+ succeeded, false otherwise. Listens to a socket with a given queue size.
390
+ .SS "peername"
391
+ .IX Subsection "peername"
392
+ .Vb 1
393
+ \& my $sockaddr_in = $sock\->peername();
394
+ .Ve
395
+ .PP
396
+ Returns the packed \f(CW\*(C`sockaddr\*(C'\fR address of the other end of the socket
397
+ connection. It calls \f(CW\*(C`getpeername\*(C'\fR.
398
+ .SS "protocol"
399
+ .IX Subsection "protocol"
400
+ .Vb 1
401
+ \& my $proto = $sock\->protocol();
402
+ .Ve
403
+ .PP
404
+ Returns the number for the protocol being used on the socket, if
405
+ known. If the protocol is unknown, as with an \f(CW\*(C`AF_UNIX\*(C'\fR socket, zero
406
+ is returned.
407
+ .SS "recv"
408
+ .IX Subsection "recv"
409
+ .Vb 5
410
+ \& my $buffer = "";
411
+ \& my $length = 1024;
412
+ \& my $flags = 0; # default. optional
413
+ \& $sock\->recv($buffer, $length);
414
+ \& $sock\->recv($buffer, $length, $flags);
415
+ .Ve
416
+ .PP
417
+ Similar in functionality to \*(L"recv\*(R" in perlfunc.
418
+ .PP
419
+ Receives a message on a socket. Attempts to receive \f(CW$length\fR characters of
420
+ data into \f(CW$buffer\fR from the specified socket. \f(CW$buffer\fR will be grown or
421
+ shrunk to the length actually read. Takes the same flags as the system call of
422
+ the same name. Returns the address of the sender if socket's protocol supports
423
+ this; returns an empty string otherwise. If there's an error, returns
424
+ \&\f(CW\*(C`undef\*(C'\fR. This call is actually implemented in terms of the \f(CWrecvfrom(2)\fR
425
+ system call.
426
+ .PP
427
+ Flags are ORed together values, such as \f(CW\*(C`MSG_BCAST\*(C'\fR, \f(CW\*(C`MSG_OOB\*(C'\fR,
428
+ \&\f(CW\*(C`MSG_TRUNC\*(C'\fR. The default value for the flags is \f(CW0\fR.
429
+ .PP
430
+ The cached value of \*(L"peername\*(R" in IO::Socket is updated with the result of
431
+ \&\f(CW\*(C`recv\*(C'\fR.
432
+ .PP
433
+ \&\fBNote:\fR In Perl v5.30 and newer, if the socket has been marked as \f(CW\*(C`:utf8\*(C'\fR,
434
+ \&\f(CW\*(C`recv\*(C'\fR will throw an exception. The \f(CW\*(C`:encoding(...)\*(C'\fR layer implicitly
435
+ introduces the \f(CW\*(C`:utf8\*(C'\fR layer. See \*(L"binmode\*(R" in perlfunc.
436
+ .PP
437
+ \&\fBNote:\fR In Perl versions older than v5.30, depending on the status of the
438
+ socket, either (8\-bit) bytes or characters are received. By default all
439
+ sockets operate on bytes, but for example if the socket has been changed
440
+ using \*(L"binmode\*(R" in perlfunc to operate with the \f(CW\*(C`:encoding(UTF\-8)\*(C'\fR I/O layer
441
+ (see the \*(L"open\*(R" in perlfunc pragma), the I/O will operate on UTF8\-encoded
442
+ Unicode characters, not bytes. Similarly for the \f(CW\*(C`:encoding\*(C'\fR layer: in
443
+ that case pretty much any characters can be read.
444
+ .SS "send"
445
+ .IX Subsection "send"
446
+ .Vb 6
447
+ \& my $message = "Hello, world!";
448
+ \& my $flags = 0; # defaults to zero
449
+ \& my $to = \*(Aq0.0.0.0\*(Aq; # optional destination
450
+ \& my $sent = $sock\->send($message);
451
+ \& $sent = $sock\->send($message, $flags);
452
+ \& $sent = $sock\->send($message, $flags, $to);
453
+ .Ve
454
+ .PP
455
+ Similar in functionality to \*(L"send\*(R" in perlfunc.
456
+ .PP
457
+ Sends a message on a socket. Attempts to send the scalar message to the
458
+ socket. Takes the same flags as the system call of the same name. On
459
+ unconnected sockets, you must specify a destination to send to, in which case
460
+ it does a \f(CWsendto(2)\fR syscall. Returns the number of characters sent, or
461
+ \&\f(CW\*(C`undef\*(C'\fR on error. The \f(CWsendmsg(2)\fR syscall is currently unimplemented.
462
+ .PP
463
+ The \f(CW\*(C`flags\*(C'\fR option is optional and defaults to \f(CW0\fR.
464
+ .PP
465
+ After a successful send with \f(CW$to\fR, further calls to \f(CW\*(C`send\*(C'\fR on an
466
+ unconnected socket without \f(CW$to\fR will send to the same address, and \f(CW$to\fR
467
+ will be used as the result of \*(L"peername\*(R" in IO::Socket.
468
+ .PP
469
+ \&\fBNote:\fR In Perl v5.30 and newer, if the socket has been marked as \f(CW\*(C`:utf8\*(C'\fR,
470
+ \&\f(CW\*(C`send\*(C'\fR will throw an exception. The \f(CW\*(C`:encoding(...)\*(C'\fR layer implicitly
471
+ introduces the \f(CW\*(C`:utf8\*(C'\fR layer. See \*(L"binmode\*(R" in perlfunc.
472
+ .PP
473
+ \&\fBNote:\fR In Perl versions older than v5.30, depending on the status of the
474
+ socket, either (8\-bit) bytes or characters are sent. By default all
475
+ sockets operate on bytes, but for example if the socket has been changed
476
+ using \*(L"binmode\*(R" in perlfunc to operate with the \f(CW\*(C`:encoding(UTF\-8)\*(C'\fR I/O layer
477
+ (see the \*(L"open\*(R" in perlfunc pragma), the I/O will operate on UTF8\-encoded
478
+ Unicode characters, not bytes. Similarly for the \f(CW\*(C`:encoding\*(C'\fR layer: in
479
+ that case pretty much any characters can be sent.
480
+ .SS "setsockopt"
481
+ .IX Subsection "setsockopt"
482
+ .Vb 2
483
+ \& $sock\->setsockopt(SOL_SOCKET, SO_REUSEADDR, 1);
484
+ \& $sock\->setsockopt(SOL_SOCKET, SO_RCVBUF, 64*1024);
485
+ .Ve
486
+ .PP
487
+ Set option associated with the socket. Levels other than \f(CW\*(C`SOL_SOCKET\*(C'\fR
488
+ may be specified here. As a convenience, this method will convert a number
489
+ into a packed byte buffer.
490
+ .SS "shutdown"
491
+ .IX Subsection "shutdown"
492
+ .Vb 3
493
+ \& $sock\->shutdown(SHUT_RD); # we stopped reading data
494
+ \& $sock\->shutdown(SHUT_WR); # we stopped writing data
495
+ \& $sock\->shutdown(SHUT_RDWR); # we stopped using this socket
496
+ .Ve
497
+ .PP
498
+ Shuts down a socket connection in the manner indicated by the value passed in,
499
+ which has the same interpretation as in the syscall of the same name.
500
+ .PP
501
+ This is useful with sockets when you want to tell the other side you're done
502
+ writing but not done reading, or vice versa. It's also a more insistent form
503
+ of \f(CW\*(C`close\*(C'\fR because it also disables the file descriptor in any
504
+ forked copies in other processes.
505
+ .PP
506
+ Returns \f(CW1\fR for success; on error, returns \f(CW\*(C`undef\*(C'\fR if the socket is
507
+ not a valid filehandle, or returns \f(CW0\fR and sets \f(CW$!\fR for any other failure.
508
+ .SS "sockdomain"
509
+ .IX Subsection "sockdomain"
510
+ .Vb 1
511
+ \& my $domain = $sock\->sockdomain();
512
+ .Ve
513
+ .PP
514
+ Returns the number for the socket domain type. For example, for
515
+ an \f(CW\*(C`AF_INET\*(C'\fR socket the value of \f(CW&AF_INET\fR will be returned.
516
+ .SS "socket"
517
+ .IX Subsection "socket"
518
+ .Vb 4
519
+ \& my $sock = IO::Socket\->new(); # no values given
520
+ \& # now let\*(Aqs actually get a socket with the socket method
521
+ \& # domain, type, and protocol are required
522
+ \& $sock = $sock\->socket(AF_INET, SOCK_STREAM, \*(Aqtcp\*(Aq);
523
+ .Ve
524
+ .PP
525
+ Opens a socket of the specified kind and returns it. Domain, type, and
526
+ protocol are specified the same as for the syscall of the same name.
527
+ .SS "socketpair"
528
+ .IX Subsection "socketpair"
529
+ .Vb 3
530
+ \& my ($r, $w) = $sock\->socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC);
531
+ \& ($r, $w) = IO::Socket::UNIX
532
+ \& \->socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC);
533
+ .Ve
534
+ .PP
535
+ Will return a list of two sockets created (read and write), or an empty list
536
+ on failure.
537
+ .PP
538
+ Differs slightly from \f(CW\*(C`socketpair\*(C'\fR in perlfunc in that the argument list
539
+ is a bit simpler.
540
+ .SS "sockname"
541
+ .IX Subsection "sockname"
542
+ .Vb 1
543
+ \& my $packed_addr = $sock\->sockname();
544
+ .Ve
545
+ .PP
546
+ Returns the packed \f(CW\*(C`sockaddr\*(C'\fR address of this end of the connection. It's the
547
+ same as \f(CWgetsockname(2)\fR.
548
+ .SS "sockopt"
549
+ .IX Subsection "sockopt"
550
+ .Vb 2
551
+ \& my $value = $sock\->sockopt(SO_REUSEADDR);
552
+ \& $sock\->sockopt(SO_REUSEADDR, 1);
553
+ .Ve
554
+ .PP
555
+ Unified method to both set and get options in the \f(CW\*(C`SOL_SOCKET\*(C'\fR level. If
556
+ called with one argument then \*(L"getsockopt\*(R" in IO::Socket is called, otherwise
557
+ \&\*(L"setsockopt\*(R" in IO::Socket is called.
558
+ .SS "socktype"
559
+ .IX Subsection "socktype"
560
+ .Vb 1
561
+ \& my $type = $sock\->socktype();
562
+ .Ve
563
+ .PP
564
+ Returns the number for the socket type. For example, for
565
+ a \f(CW\*(C`SOCK_STREAM\*(C'\fR socket the value of \f(CW&SOCK_STREAM\fR will be returned.
566
+ .SS "timeout"
567
+ .IX Subsection "timeout"
568
+ .Vb 2
569
+ \& my $seconds = $sock\->timeout();
570
+ \& my $old_val = $sock\->timeout(5); # set new and return old value
571
+ .Ve
572
+ .PP
573
+ Set or get the timeout value (in seconds) associated with this socket.
574
+ If called without any arguments then the current setting is returned. If
575
+ called with an argument the current setting is changed and the previous
576
+ value returned.
577
+ .PP
578
+ This method is available to all \f(CW\*(C`IO::Socket\*(C'\fR implementations but may or may
579
+ not be used by the individual domain subclasses.
580
+ .SH "EXAMPLES"
581
+ .IX Header "EXAMPLES"
582
+ Let's create a \s-1TCP\s0 server on \f(CW\*(C`localhost:3333\*(C'\fR.
583
+ .PP
584
+ .Vb 3
585
+ \& use strict;
586
+ \& use warnings;
587
+ \& use feature \*(Aqsay\*(Aq;
588
+ \&
589
+ \& use IO::Socket qw(AF_INET AF_UNIX SOCK_STREAM SHUT_WR);
590
+ \&
591
+ \& my $server = IO::Socket\->new(
592
+ \& Domain => AF_INET,
593
+ \& Type => SOCK_STREAM,
594
+ \& Proto => \*(Aqtcp\*(Aq,
595
+ \& LocalHost => \*(Aq0.0.0.0\*(Aq,
596
+ \& LocalPort => 3333,
597
+ \& ReusePort => 1,
598
+ \& Listen => 5,
599
+ \& ) || die "Can\*(Aqt open socket: $@";
600
+ \& say "Waiting on 3333";
601
+ \&
602
+ \& while (1) {
603
+ \& # waiting for a new client connection
604
+ \& my $client = $server\->accept();
605
+ \&
606
+ \& # get information about a newly connected client
607
+ \& my $client_address = $client\->peerhost();
608
+ \& my $client_port = $client\->peerport();
609
+ \& say "Connection from $client_address:$client_port";
610
+ \&
611
+ \& # read up to 1024 characters from the connected client
612
+ \& my $data = "";
613
+ \& $client\->recv($data, 1024);
614
+ \& say "received data: $data";
615
+ \&
616
+ \& # write response data to the connected client
617
+ \& $data = "ok";
618
+ \& $client\->send($data);
619
+ \&
620
+ \& # notify client that response has been sent
621
+ \& $client\->shutdown(SHUT_WR);
622
+ \& }
623
+ \&
624
+ \& $server\->close();
625
+ .Ve
626
+ .PP
627
+ A client for such a server could be
628
+ .PP
629
+ .Vb 3
630
+ \& use strict;
631
+ \& use warnings;
632
+ \& use feature \*(Aqsay\*(Aq;
633
+ \&
634
+ \& use IO::Socket qw(AF_INET AF_UNIX SOCK_STREAM SHUT_WR);
635
+ \&
636
+ \& my $client = IO::Socket\->new(
637
+ \& Domain => AF_INET,
638
+ \& Type => SOCK_STREAM,
639
+ \& proto => \*(Aqtcp\*(Aq,
640
+ \& PeerPort => 3333,
641
+ \& PeerHost => \*(Aq0.0.0.0\*(Aq,
642
+ \& ) || die "Can\*(Aqt open socket: $@";
643
+ \&
644
+ \& say "Sending Hello World!";
645
+ \& my $size = $client\->send("Hello World!");
646
+ \& say "Sent data of length: $size";
647
+ \&
648
+ \& $client\->shutdown(SHUT_WR);
649
+ \&
650
+ \& my $buffer;
651
+ \& $client\->recv($buffer, 1024);
652
+ \& say "Got back $buffer";
653
+ \&
654
+ \& $client\->close();
655
+ .Ve
656
+ .SH "LIMITATIONS"
657
+ .IX Header "LIMITATIONS"
658
+ On some systems, for an IO::Socket object created with \f(CW\*(C`new_from_fd\*(C'\fR,
659
+ or created with \*(L"accept\*(R" in IO::Socket from such an object, the
660
+ \&\*(L"protocol\*(R" in IO::Socket, \*(L"sockdomain\*(R" in IO::Socket and
661
+ \&\*(L"socktype\*(R" in IO::Socket methods may return \f(CW\*(C`undef\*(C'\fR.
662
+ .SH "SEE ALSO"
663
+ .IX Header "SEE ALSO"
664
+ Socket, IO::Handle, IO::Socket::INET, IO::Socket::UNIX,
665
+ IO::Socket::IP
666
+ .SH "AUTHOR"
667
+ .IX Header "AUTHOR"
668
+ Graham Barr. \fBatmark()\fR by Lincoln Stein. Currently maintained by the
669
+ Perl Porters. Please report all bugs to <perlbug@perl.org>.
670
+ .SH "COPYRIGHT"
671
+ .IX Header "COPYRIGHT"
672
+ Copyright (c) 1997\-8 Graham Barr <gbarr@pobox.com>. All rights reserved.
673
+ This program is free software; you can redistribute it and/or
674
+ modify it under the same terms as Perl itself.
675
+ .PP
676
+ The \fBatmark()\fR implementation: Copyright 2001, Lincoln Stein <lstein@cshl.org>.
677
+ This module is distributed under the same terms as Perl itself.
678
+ Feel free to use, modify and redistribute it as long as you retain
679
+ the correct attribution.
data/miniconda3/man/man3/IO%3A%3AUncompress%3A%3AGunzip.3 ADDED
@@ -0,0 +1,953 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "IO::Uncompress::Gunzip 3"
136
+ .TH IO::Uncompress::Gunzip 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
+ IO::Uncompress::Gunzip \- Read RFC 1952 files/buffers
143
+ .SH "SYNOPSIS"
144
+ .IX Header "SYNOPSIS"
145
+ .Vb 1
146
+ \& use IO::Uncompress::Gunzip qw(gunzip $GunzipError) ;
147
+ \&
148
+ \& my $status = gunzip $input => $output [,OPTS]
149
+ \& or die "gunzip failed: $GunzipError\en";
150
+ \&
151
+ \& my $z = new IO::Uncompress::Gunzip $input [OPTS]
152
+ \& or die "gunzip failed: $GunzipError\en";
153
+ \&
154
+ \& $status = $z\->read($buffer)
155
+ \& $status = $z\->read($buffer, $length)
156
+ \& $status = $z\->read($buffer, $length, $offset)
157
+ \& $line = $z\->getline()
158
+ \& $char = $z\->getc()
159
+ \& $char = $z\->ungetc()
160
+ \& $char = $z\->opened()
161
+ \&
162
+ \& $status = $z\->inflateSync()
163
+ \&
164
+ \& $data = $z\->trailingData()
165
+ \& $status = $z\->nextStream()
166
+ \& $data = $z\->getHeaderInfo()
167
+ \& $z\->tell()
168
+ \& $z\->seek($position, $whence)
169
+ \& $z\->binmode()
170
+ \& $z\->fileno()
171
+ \& $z\->eof()
172
+ \& $z\->close()
173
+ \&
174
+ \& $GunzipError ;
175
+ \&
176
+ \& # IO::File mode
177
+ \&
178
+ \& <$z>
179
+ \& read($z, $buffer);
180
+ \& read($z, $buffer, $length);
181
+ \& read($z, $buffer, $length, $offset);
182
+ \& tell($z)
183
+ \& seek($z, $position, $whence)
184
+ \& binmode($z)
185
+ \& fileno($z)
186
+ \& eof($z)
187
+ \& close($z)
188
+ .Ve
189
+ .SH "DESCRIPTION"
190
+ .IX Header "DESCRIPTION"
191
+ This module provides a Perl interface that allows the reading of
192
+ files/buffers that conform to \s-1RFC 1952.\s0
193
+ .PP
194
+ For writing \s-1RFC 1952\s0 files/buffers, see the companion module IO::Compress::Gzip.
195
+ .SH "Functional Interface"
196
+ .IX Header "Functional Interface"
197
+ A top-level function, \f(CW\*(C`gunzip\*(C'\fR, is provided to carry out
198
+ \&\*(L"one-shot\*(R" uncompression between buffers and/or files. For finer
199
+ control over the uncompression process, see the \*(L"\s-1OO\s0 Interface\*(R"
200
+ section.
201
+ .PP
202
+ .Vb 1
203
+ \& use IO::Uncompress::Gunzip qw(gunzip $GunzipError) ;
204
+ \&
205
+ \& gunzip $input_filename_or_reference => $output_filename_or_reference [,OPTS]
206
+ \& or die "gunzip failed: $GunzipError\en";
207
+ .Ve
208
+ .PP
209
+ The functional interface needs Perl5.005 or better.
210
+ .ie n .SS "gunzip $input_filename_or_reference => $output_filename_or_reference [, \s-1OPTS\s0]"
211
+ .el .SS "gunzip \f(CW$input_filename_or_reference\fP => \f(CW$output_filename_or_reference\fP [, \s-1OPTS\s0]"
212
+ .IX Subsection "gunzip $input_filename_or_reference => $output_filename_or_reference [, OPTS]"
213
+ \&\f(CW\*(C`gunzip\*(C'\fR expects at least two parameters,
214
+ \&\f(CW$input_filename_or_reference\fR and \f(CW$output_filename_or_reference\fR
215
+ and zero or more optional parameters (see \*(L"Optional Parameters\*(R")
216
+ .PP
217
+ \fIThe \f(CI$input_filename_or_reference\fI parameter\fR
218
+ .IX Subsection "The $input_filename_or_reference parameter"
219
+ .PP
220
+ The parameter, \f(CW$input_filename_or_reference\fR, is used to define the
221
+ source of the compressed data.
222
+ .PP
223
+ It can take one of the following forms:
224
+ .IP "A filename" 5
225
+ .IX Item "A filename"
226
+ If the \f(CW$input_filename_or_reference\fR parameter is a simple scalar, it is
227
+ assumed to be a filename. This file will be opened for reading and the
228
+ input data will be read from it.
229
+ .IP "A filehandle" 5
230
+ .IX Item "A filehandle"
231
+ If the \f(CW$input_filename_or_reference\fR parameter is a filehandle, the input
232
+ data will be read from it. The string '\-' can be used as an alias for
233
+ standard input.
234
+ .IP "A scalar reference" 5
235
+ .IX Item "A scalar reference"
236
+ If \f(CW$input_filename_or_reference\fR is a scalar reference, the input data
237
+ will be read from \f(CW$$input_filename_or_reference\fR.
238
+ .IP "An array reference" 5
239
+ .IX Item "An array reference"
240
+ If \f(CW$input_filename_or_reference\fR is an array reference, each element in
241
+ the array must be a filename.
242
+ .Sp
243
+ The input data will be read from each file in turn.
244
+ .Sp
245
+ The complete array will be walked to ensure that it only
246
+ contains valid filenames before any data is uncompressed.
247
+ .IP "An Input FileGlob string" 5
248
+ .IX Item "An Input FileGlob string"
249
+ If \f(CW$input_filename_or_reference\fR is a string that is delimited by the
250
+ characters \*(L"<\*(R" and \*(L">\*(R" \f(CW\*(C`gunzip\*(C'\fR will assume that it is an
251
+ \&\fIinput fileglob string\fR. The input is the list of files that match the
252
+ fileglob.
253
+ .Sp
254
+ See File::GlobMapper for more details.
255
+ .PP
256
+ If the \f(CW$input_filename_or_reference\fR parameter is any other type,
257
+ \&\f(CW\*(C`undef\*(C'\fR will be returned.
258
+ .PP
259
+ \fIThe \f(CI$output_filename_or_reference\fI parameter\fR
260
+ .IX Subsection "The $output_filename_or_reference parameter"
261
+ .PP
262
+ The parameter \f(CW$output_filename_or_reference\fR is used to control the
263
+ destination of the uncompressed data. This parameter can take one of
264
+ these forms.
265
+ .IP "A filename" 5
266
+ .IX Item "A filename"
267
+ If the \f(CW$output_filename_or_reference\fR parameter is a simple scalar, it is
268
+ assumed to be a filename. This file will be opened for writing and the
269
+ uncompressed data will be written to it.
270
+ .IP "A filehandle" 5
271
+ .IX Item "A filehandle"
272
+ If the \f(CW$output_filename_or_reference\fR parameter is a filehandle, the
273
+ uncompressed data will be written to it. The string '\-' can be used as
274
+ an alias for standard output.
275
+ .IP "A scalar reference" 5
276
+ .IX Item "A scalar reference"
277
+ If \f(CW$output_filename_or_reference\fR is a scalar reference, the
278
+ uncompressed data will be stored in \f(CW$$output_filename_or_reference\fR.
279
+ .IP "An Array Reference" 5
280
+ .IX Item "An Array Reference"
281
+ If \f(CW$output_filename_or_reference\fR is an array reference,
282
+ the uncompressed data will be pushed onto the array.
283
+ .IP "An Output FileGlob" 5
284
+ .IX Item "An Output FileGlob"
285
+ If \f(CW$output_filename_or_reference\fR is a string that is delimited by the
286
+ characters \*(L"<\*(R" and \*(L">\*(R" \f(CW\*(C`gunzip\*(C'\fR will assume that it is an
287
+ \&\fIoutput fileglob string\fR. The output is the list of files that match the
288
+ fileglob.
289
+ .Sp
290
+ When \f(CW$output_filename_or_reference\fR is an fileglob string,
291
+ \&\f(CW$input_filename_or_reference\fR must also be a fileglob string. Anything
292
+ else is an error.
293
+ .Sp
294
+ See File::GlobMapper for more details.
295
+ .PP
296
+ If the \f(CW$output_filename_or_reference\fR parameter is any other type,
297
+ \&\f(CW\*(C`undef\*(C'\fR will be returned.
298
+ .SS "Notes"
299
+ .IX Subsection "Notes"
300
+ When \f(CW$input_filename_or_reference\fR maps to multiple compressed
301
+ files/buffers and \f(CW$output_filename_or_reference\fR is
302
+ a single file/buffer, after uncompression \f(CW$output_filename_or_reference\fR will contain a
303
+ concatenation of all the uncompressed data from each of the input
304
+ files/buffers.
305
+ .SS "Optional Parameters"
306
+ .IX Subsection "Optional Parameters"
307
+ The optional parameters for the one-shot function \f(CW\*(C`gunzip\*(C'\fR
308
+ are (for the most part) identical to those used with the \s-1OO\s0 interface defined in the
309
+ \&\*(L"Constructor Options\*(R" section. The exceptions are listed below
310
+ .ie n .IP """AutoClose => 0|1""" 5
311
+ .el .IP "\f(CWAutoClose => 0|1\fR" 5
312
+ .IX Item "AutoClose => 0|1"
313
+ This option applies to any input or output data streams to
314
+ \&\f(CW\*(C`gunzip\*(C'\fR that are filehandles.
315
+ .Sp
316
+ If \f(CW\*(C`AutoClose\*(C'\fR is specified, and the value is true, it will result in all
317
+ input and/or output filehandles being closed once \f(CW\*(C`gunzip\*(C'\fR has
318
+ completed.
319
+ .Sp
320
+ This parameter defaults to 0.
321
+ .ie n .IP """BinModeOut => 0|1""" 5
322
+ .el .IP "\f(CWBinModeOut => 0|1\fR" 5
323
+ .IX Item "BinModeOut => 0|1"
324
+ This option is now a no-op. All files will be written in binmode.
325
+ .ie n .IP """Append => 0|1""" 5
326
+ .el .IP "\f(CWAppend => 0|1\fR" 5
327
+ .IX Item "Append => 0|1"
328
+ The behaviour of this option is dependent on the type of output data
329
+ stream.
330
+ .RS 5
331
+ .IP "\(bu" 5
332
+ A Buffer
333
+ .Sp
334
+ If \f(CW\*(C`Append\*(C'\fR is enabled, all uncompressed data will be append to the end of
335
+ the output buffer. Otherwise the output buffer will be cleared before any
336
+ uncompressed data is written to it.
337
+ .IP "\(bu" 5
338
+ A Filename
339
+ .Sp
340
+ If \f(CW\*(C`Append\*(C'\fR is enabled, the file will be opened in append mode. Otherwise
341
+ the contents of the file, if any, will be truncated before any uncompressed
342
+ data is written to it.
343
+ .IP "\(bu" 5
344
+ A Filehandle
345
+ .Sp
346
+ If \f(CW\*(C`Append\*(C'\fR is enabled, the filehandle will be positioned to the end of
347
+ the file via a call to \f(CW\*(C`seek\*(C'\fR before any uncompressed data is
348
+ written to it. Otherwise the file pointer will not be moved.
349
+ .RE
350
+ .RS 5
351
+ .Sp
352
+ When \f(CW\*(C`Append\*(C'\fR is specified, and set to true, it will \fIappend\fR all uncompressed
353
+ data to the output data stream.
354
+ .Sp
355
+ So when the output is a filehandle it will carry out a seek to the eof
356
+ before writing any uncompressed data. If the output is a filename, it will be opened for
357
+ appending. If the output is a buffer, all uncompressed data will be
358
+ appended to the existing buffer.
359
+ .Sp
360
+ Conversely when \f(CW\*(C`Append\*(C'\fR is not specified, or it is present and is set to
361
+ false, it will operate as follows.
362
+ .Sp
363
+ When the output is a filename, it will truncate the contents of the file
364
+ before writing any uncompressed data. If the output is a filehandle
365
+ its position will not be changed. If the output is a buffer, it will be
366
+ wiped before any uncompressed data is output.
367
+ .Sp
368
+ Defaults to 0.
369
+ .RE
370
+ .ie n .IP """MultiStream => 0|1""" 5
371
+ .el .IP "\f(CWMultiStream => 0|1\fR" 5
372
+ .IX Item "MultiStream => 0|1"
373
+ If the input file/buffer contains multiple compressed data streams, this
374
+ option will uncompress the whole lot as a single data stream.
375
+ .Sp
376
+ Defaults to 0.
377
+ .ie n .IP """TrailingData => $scalar""" 5
378
+ .el .IP "\f(CWTrailingData => $scalar\fR" 5
379
+ .IX Item "TrailingData => $scalar"
380
+ Returns the data, if any, that is present immediately after the compressed
381
+ data stream once uncompression is complete.
382
+ .Sp
383
+ This option can be used when there is useful information immediately
384
+ following the compressed data stream, and you don't know the length of the
385
+ compressed data stream.
386
+ .Sp
387
+ If the input is a buffer, \f(CW\*(C`trailingData\*(C'\fR will return everything from the
388
+ end of the compressed data stream to the end of the buffer.
389
+ .Sp
390
+ If the input is a filehandle, \f(CW\*(C`trailingData\*(C'\fR will return the data that is
391
+ left in the filehandle input buffer once the end of the compressed data
392
+ stream has been reached. You can then use the filehandle to read the rest
393
+ of the input file.
394
+ .Sp
395
+ Don't bother using \f(CW\*(C`trailingData\*(C'\fR if the input is a filename.
396
+ .Sp
397
+ If you know the length of the compressed data stream before you start
398
+ uncompressing, you can avoid having to use \f(CW\*(C`trailingData\*(C'\fR by setting the
399
+ \&\f(CW\*(C`InputLength\*(C'\fR option.
400
+ .SS "Examples"
401
+ .IX Subsection "Examples"
402
+ To read the contents of the file \f(CW\*(C`file1.txt.gz\*(C'\fR and write the
403
+ uncompressed data to the file \f(CW\*(C`file1.txt\*(C'\fR.
404
+ .PP
405
+ .Vb 3
406
+ \& use strict ;
407
+ \& use warnings ;
408
+ \& use IO::Uncompress::Gunzip qw(gunzip $GunzipError) ;
409
+ \&
410
+ \& my $input = "file1.txt.gz";
411
+ \& my $output = "file1.txt";
412
+ \& gunzip $input => $output
413
+ \& or die "gunzip failed: $GunzipError\en";
414
+ .Ve
415
+ .PP
416
+ To read from an existing Perl filehandle, \f(CW$input\fR, and write the
417
+ uncompressed data to a buffer, \f(CW$buffer\fR.
418
+ .PP
419
+ .Vb 4
420
+ \& use strict ;
421
+ \& use warnings ;
422
+ \& use IO::Uncompress::Gunzip qw(gunzip $GunzipError) ;
423
+ \& use IO::File ;
424
+ \&
425
+ \& my $input = new IO::File "<file1.txt.gz"
426
+ \& or die "Cannot open \*(Aqfile1.txt.gz\*(Aq: $!\en" ;
427
+ \& my $buffer ;
428
+ \& gunzip $input => \e$buffer
429
+ \& or die "gunzip failed: $GunzipError\en";
430
+ .Ve
431
+ .PP
432
+ To uncompress all files in the directory \*(L"/my/home\*(R" that match \*(L"*.txt.gz\*(R" and store the compressed data in the same directory
433
+ .PP
434
+ .Vb 3
435
+ \& use strict ;
436
+ \& use warnings ;
437
+ \& use IO::Uncompress::Gunzip qw(gunzip $GunzipError) ;
438
+ \&
439
+ \& gunzip \*(Aq</my/home/*.txt.gz>\*(Aq => \*(Aq</my/home/#1.txt>\*(Aq
440
+ \& or die "gunzip failed: $GunzipError\en";
441
+ .Ve
442
+ .PP
443
+ and if you want to compress each file one at a time, this will do the trick
444
+ .PP
445
+ .Vb 3
446
+ \& use strict ;
447
+ \& use warnings ;
448
+ \& use IO::Uncompress::Gunzip qw(gunzip $GunzipError) ;
449
+ \&
450
+ \& for my $input ( glob "/my/home/*.txt.gz" )
451
+ \& {
452
+ \& my $output = $input;
453
+ \& $output =~ s/.gz// ;
454
+ \& gunzip $input => $output
455
+ \& or die "Error compressing \*(Aq$input\*(Aq: $GunzipError\en";
456
+ \& }
457
+ .Ve
458
+ .SH "OO Interface"
459
+ .IX Header "OO Interface"
460
+ .SS "Constructor"
461
+ .IX Subsection "Constructor"
462
+ The format of the constructor for IO::Uncompress::Gunzip is shown below
463
+ .PP
464
+ .Vb 2
465
+ \& my $z = new IO::Uncompress::Gunzip $input [OPTS]
466
+ \& or die "IO::Uncompress::Gunzip failed: $GunzipError\en";
467
+ .Ve
468
+ .PP
469
+ Returns an \f(CW\*(C`IO::Uncompress::Gunzip\*(C'\fR object on success and undef on failure.
470
+ The variable \f(CW$GunzipError\fR will contain an error message on failure.
471
+ .PP
472
+ If you are running Perl 5.005 or better the object, \f(CW$z\fR, returned from
473
+ IO::Uncompress::Gunzip can be used exactly like an IO::File filehandle.
474
+ This means that all normal input file operations can be carried out with
475
+ \&\f(CW$z\fR. For example, to read a line from a compressed file/buffer you can
476
+ use either of these forms
477
+ .PP
478
+ .Vb 2
479
+ \& $line = $z\->getline();
480
+ \& $line = <$z>;
481
+ .Ve
482
+ .PP
483
+ The mandatory parameter \f(CW$input\fR is used to determine the source of the
484
+ compressed data. This parameter can take one of three forms.
485
+ .IP "A filename" 5
486
+ .IX Item "A filename"
487
+ If the \f(CW$input\fR parameter is a scalar, it is assumed to be a filename. This
488
+ file will be opened for reading and the compressed data will be read from it.
489
+ .IP "A filehandle" 5
490
+ .IX Item "A filehandle"
491
+ If the \f(CW$input\fR parameter is a filehandle, the compressed data will be
492
+ read from it.
493
+ The string '\-' can be used as an alias for standard input.
494
+ .IP "A scalar reference" 5
495
+ .IX Item "A scalar reference"
496
+ If \f(CW$input\fR is a scalar reference, the compressed data will be read from
497
+ \&\f(CW$$input\fR.
498
+ .SS "Constructor Options"
499
+ .IX Subsection "Constructor Options"
500
+ The option names defined below are case insensitive and can be optionally
501
+ prefixed by a '\-'. So all of the following are valid
502
+ .PP
503
+ .Vb 4
504
+ \& \-AutoClose
505
+ \& \-autoclose
506
+ \& AUTOCLOSE
507
+ \& autoclose
508
+ .Ve
509
+ .PP
510
+ \&\s-1OPTS\s0 is a combination of the following options:
511
+ .ie n .IP """AutoClose => 0|1""" 5
512
+ .el .IP "\f(CWAutoClose => 0|1\fR" 5
513
+ .IX Item "AutoClose => 0|1"
514
+ This option is only valid when the \f(CW$input\fR parameter is a filehandle. If
515
+ specified, and the value is true, it will result in the file being closed once
516
+ either the \f(CW\*(C`close\*(C'\fR method is called or the IO::Uncompress::Gunzip object is
517
+ destroyed.
518
+ .Sp
519
+ This parameter defaults to 0.
520
+ .ie n .IP """MultiStream => 0|1""" 5
521
+ .el .IP "\f(CWMultiStream => 0|1\fR" 5
522
+ .IX Item "MultiStream => 0|1"
523
+ Allows multiple concatenated compressed streams to be treated as a single
524
+ compressed stream. Decompression will stop once either the end of the
525
+ file/buffer is reached, an error is encountered (premature eof, corrupt
526
+ compressed data) or the end of a stream is not immediately followed by the
527
+ start of another stream.
528
+ .Sp
529
+ This parameter defaults to 0.
530
+ .ie n .IP """Prime => $string""" 5
531
+ .el .IP "\f(CWPrime => $string\fR" 5
532
+ .IX Item "Prime => $string"
533
+ This option will uncompress the contents of \f(CW$string\fR before processing the
534
+ input file/buffer.
535
+ .Sp
536
+ This option can be useful when the compressed data is embedded in another
537
+ file/data structure and it is not possible to work out where the compressed
538
+ data begins without having to read the first few bytes. If this is the
539
+ case, the uncompression can be \fIprimed\fR with these bytes using this
540
+ option.
541
+ .ie n .IP """Transparent => 0|1""" 5
542
+ .el .IP "\f(CWTransparent => 0|1\fR" 5
543
+ .IX Item "Transparent => 0|1"
544
+ If this option is set and the input file/buffer is not compressed data,
545
+ the module will allow reading of it anyway.
546
+ .Sp
547
+ In addition, if the input file/buffer does contain compressed data and
548
+ there is non-compressed data immediately following it, setting this option
549
+ will make this module treat the whole file/buffer as a single data stream.
550
+ .Sp
551
+ This option defaults to 1.
552
+ .ie n .IP """BlockSize => $num""" 5
553
+ .el .IP "\f(CWBlockSize => $num\fR" 5
554
+ .IX Item "BlockSize => $num"
555
+ When reading the compressed input data, IO::Uncompress::Gunzip will read it in
556
+ blocks of \f(CW$num\fR bytes.
557
+ .Sp
558
+ This option defaults to 4096.
559
+ .ie n .IP """InputLength => $size""" 5
560
+ .el .IP "\f(CWInputLength => $size\fR" 5
561
+ .IX Item "InputLength => $size"
562
+ When present this option will limit the number of compressed bytes read
563
+ from the input file/buffer to \f(CW$size\fR. This option can be used in the
564
+ situation where there is useful data directly after the compressed data
565
+ stream and you know beforehand the exact length of the compressed data
566
+ stream.
567
+ .Sp
568
+ This option is mostly used when reading from a filehandle, in which case
569
+ the file pointer will be left pointing to the first byte directly after the
570
+ compressed data stream.
571
+ .Sp
572
+ This option defaults to off.
573
+ .ie n .IP """Append => 0|1""" 5
574
+ .el .IP "\f(CWAppend => 0|1\fR" 5
575
+ .IX Item "Append => 0|1"
576
+ This option controls what the \f(CW\*(C`read\*(C'\fR method does with uncompressed data.
577
+ .Sp
578
+ If set to 1, all uncompressed data will be appended to the output parameter
579
+ of the \f(CW\*(C`read\*(C'\fR method.
580
+ .Sp
581
+ If set to 0, the contents of the output parameter of the \f(CW\*(C`read\*(C'\fR method
582
+ will be overwritten by the uncompressed data.
583
+ .Sp
584
+ Defaults to 0.
585
+ .ie n .IP """Strict => 0|1""" 5
586
+ .el .IP "\f(CWStrict => 0|1\fR" 5
587
+ .IX Item "Strict => 0|1"
588
+ This option controls whether the extra checks defined below are used when
589
+ carrying out the decompression. When Strict is on, the extra tests are
590
+ carried out, when Strict is off they are not.
591
+ .Sp
592
+ The default for this option is off.
593
+ .RS 5
594
+ .IP "1." 5
595
+ If the \s-1FHCRC\s0 bit is set in the gzip \s-1FLG\s0 header byte, the \s-1CRC16\s0 bytes in the
596
+ header must match the crc16 value of the gzip header actually read.
597
+ .IP "2." 5
598
+ If the gzip header contains a name field (\s-1FNAME\s0) it consists solely of \s-1ISO
599
+ 8859\-1\s0 characters.
600
+ .IP "3." 5
601
+ If the gzip header contains a comment field (\s-1FCOMMENT\s0) it consists solely
602
+ of \s-1ISO 8859\-1\s0 characters plus line-feed.
603
+ .IP "4." 5
604
+ If the gzip \s-1FEXTRA\s0 header field is present it must conform to the sub-field
605
+ structure as defined in \s-1RFC 1952.\s0
606
+ .IP "5." 5
607
+ The \s-1CRC32\s0 and \s-1ISIZE\s0 trailer fields must be present.
608
+ .IP "6." 5
609
+ The value of the \s-1CRC32\s0 field read must match the crc32 value of the
610
+ uncompressed data actually contained in the gzip file.
611
+ .IP "7." 5
612
+ The value of the \s-1ISIZE\s0 fields read must match the length of the
613
+ uncompressed data actually read from the file.
614
+ .RE
615
+ .RS 5
616
+ .RE
617
+ .ie n .IP """ParseExtra => 0|1"" If the gzip \s-1FEXTRA\s0 header field is present and this option is set, it will force the module to check that it conforms to the sub-field structure as defined in \s-1RFC 1952.\s0" 5
618
+ .el .IP "\f(CWParseExtra => 0|1\fR If the gzip \s-1FEXTRA\s0 header field is present and this option is set, it will force the module to check that it conforms to the sub-field structure as defined in \s-1RFC 1952.\s0" 5
619
+ .IX Item "ParseExtra => 0|1 If the gzip FEXTRA header field is present and this option is set, it will force the module to check that it conforms to the sub-field structure as defined in RFC 1952."
620
+ If the \f(CW\*(C`Strict\*(C'\fR is on it will automatically enable this option.
621
+ .Sp
622
+ Defaults to 0.
623
+ .SS "Examples"
624
+ .IX Subsection "Examples"
625
+ \&\s-1TODO\s0
626
+ .SH "Methods"
627
+ .IX Header "Methods"
628
+ .SS "read"
629
+ .IX Subsection "read"
630
+ Usage is
631
+ .PP
632
+ .Vb 1
633
+ \& $status = $z\->read($buffer)
634
+ .Ve
635
+ .PP
636
+ Reads a block of compressed data (the size of the compressed block is
637
+ determined by the \f(CW\*(C`Buffer\*(C'\fR option in the constructor), uncompresses it and
638
+ writes any uncompressed data into \f(CW$buffer\fR. If the \f(CW\*(C`Append\*(C'\fR parameter is
639
+ set in the constructor, the uncompressed data will be appended to the
640
+ \&\f(CW$buffer\fR parameter. Otherwise \f(CW$buffer\fR will be overwritten.
641
+ .PP
642
+ Returns the number of uncompressed bytes written to \f(CW$buffer\fR, zero if eof
643
+ or a negative number on error.
644
+ .SS "read"
645
+ .IX Subsection "read"
646
+ Usage is
647
+ .PP
648
+ .Vb 2
649
+ \& $status = $z\->read($buffer, $length)
650
+ \& $status = $z\->read($buffer, $length, $offset)
651
+ \&
652
+ \& $status = read($z, $buffer, $length)
653
+ \& $status = read($z, $buffer, $length, $offset)
654
+ .Ve
655
+ .PP
656
+ Attempt to read \f(CW$length\fR bytes of uncompressed data into \f(CW$buffer\fR.
657
+ .PP
658
+ The main difference between this form of the \f(CW\*(C`read\*(C'\fR method and the
659
+ previous one, is that this one will attempt to return \fIexactly\fR \f(CW$length\fR
660
+ bytes. The only circumstances that this function will not is if end-of-file
661
+ or an \s-1IO\s0 error is encountered.
662
+ .PP
663
+ Returns the number of uncompressed bytes written to \f(CW$buffer\fR, zero if eof
664
+ or a negative number on error.
665
+ .SS "getline"
666
+ .IX Subsection "getline"
667
+ Usage is
668
+ .PP
669
+ .Vb 2
670
+ \& $line = $z\->getline()
671
+ \& $line = <$z>
672
+ .Ve
673
+ .PP
674
+ Reads a single line.
675
+ .PP
676
+ This method fully supports the use of the variable \f(CW$/\fR (or
677
+ \&\f(CW$INPUT_RECORD_SEPARATOR\fR or \f(CW$RS\fR when \f(CW\*(C`English\*(C'\fR is in use) to
678
+ determine what constitutes an end of line. Paragraph mode, record mode and
679
+ file slurp mode are all supported.
680
+ .SS "getc"
681
+ .IX Subsection "getc"
682
+ Usage is
683
+ .PP
684
+ .Vb 1
685
+ \& $char = $z\->getc()
686
+ .Ve
687
+ .PP
688
+ Read a single character.
689
+ .SS "ungetc"
690
+ .IX Subsection "ungetc"
691
+ Usage is
692
+ .PP
693
+ .Vb 1
694
+ \& $char = $z\->ungetc($string)
695
+ .Ve
696
+ .SS "inflateSync"
697
+ .IX Subsection "inflateSync"
698
+ Usage is
699
+ .PP
700
+ .Vb 1
701
+ \& $status = $z\->inflateSync()
702
+ .Ve
703
+ .PP
704
+ \&\s-1TODO\s0
705
+ .SS "getHeaderInfo"
706
+ .IX Subsection "getHeaderInfo"
707
+ Usage is
708
+ .PP
709
+ .Vb 2
710
+ \& $hdr = $z\->getHeaderInfo();
711
+ \& @hdrs = $z\->getHeaderInfo();
712
+ .Ve
713
+ .PP
714
+ This method returns either a hash reference (in scalar context) or a list
715
+ or hash references (in array context) that contains information about each
716
+ of the header fields in the compressed data stream(s).
717
+ .IP "Name" 5
718
+ .IX Item "Name"
719
+ The contents of the Name header field, if present. If no name is
720
+ present, the value will be undef. Note this is different from a zero length
721
+ name, which will return an empty string.
722
+ .IP "Comment" 5
723
+ .IX Item "Comment"
724
+ The contents of the Comment header field, if present. If no comment is
725
+ present, the value will be undef. Note this is different from a zero length
726
+ comment, which will return an empty string.
727
+ .SS "tell"
728
+ .IX Subsection "tell"
729
+ Usage is
730
+ .PP
731
+ .Vb 2
732
+ \& $z\->tell()
733
+ \& tell $z
734
+ .Ve
735
+ .PP
736
+ Returns the uncompressed file offset.
737
+ .SS "eof"
738
+ .IX Subsection "eof"
739
+ Usage is
740
+ .PP
741
+ .Vb 2
742
+ \& $z\->eof();
743
+ \& eof($z);
744
+ .Ve
745
+ .PP
746
+ Returns true if the end of the compressed input stream has been reached.
747
+ .SS "seek"
748
+ .IX Subsection "seek"
749
+ .Vb 2
750
+ \& $z\->seek($position, $whence);
751
+ \& seek($z, $position, $whence);
752
+ .Ve
753
+ .PP
754
+ Provides a sub-set of the \f(CW\*(C`seek\*(C'\fR functionality, with the restriction
755
+ that it is only legal to seek forward in the input file/buffer.
756
+ It is a fatal error to attempt to seek backward.
757
+ .PP
758
+ Note that the implementation of \f(CW\*(C`seek\*(C'\fR in this module does not provide
759
+ true random access to a compressed file/buffer. It works by uncompressing
760
+ data from the current offset in the file/buffer until it reaches the
761
+ uncompressed offset specified in the parameters to \f(CW\*(C`seek\*(C'\fR. For very small
762
+ files this may be acceptable behaviour. For large files it may cause an
763
+ unacceptable delay.
764
+ .PP
765
+ The \f(CW$whence\fR parameter takes one the usual values, namely \s-1SEEK_SET,
766
+ SEEK_CUR\s0 or \s-1SEEK_END.\s0
767
+ .PP
768
+ Returns 1 on success, 0 on failure.
769
+ .SS "binmode"
770
+ .IX Subsection "binmode"
771
+ Usage is
772
+ .PP
773
+ .Vb 2
774
+ \& $z\->binmode
775
+ \& binmode $z ;
776
+ .Ve
777
+ .PP
778
+ This is a noop provided for completeness.
779
+ .SS "opened"
780
+ .IX Subsection "opened"
781
+ .Vb 1
782
+ \& $z\->opened()
783
+ .Ve
784
+ .PP
785
+ Returns true if the object currently refers to a opened file/buffer.
786
+ .SS "autoflush"
787
+ .IX Subsection "autoflush"
788
+ .Vb 2
789
+ \& my $prev = $z\->autoflush()
790
+ \& my $prev = $z\->autoflush(EXPR)
791
+ .Ve
792
+ .PP
793
+ If the \f(CW$z\fR object is associated with a file or a filehandle, this method
794
+ returns the current autoflush setting for the underlying filehandle. If
795
+ \&\f(CW\*(C`EXPR\*(C'\fR is present, and is non-zero, it will enable flushing after every
796
+ write/print operation.
797
+ .PP
798
+ If \f(CW$z\fR is associated with a buffer, this method has no effect and always
799
+ returns \f(CW\*(C`undef\*(C'\fR.
800
+ .PP
801
+ \&\fBNote\fR that the special variable \f(CW$|\fR \fBcannot\fR be used to set or
802
+ retrieve the autoflush setting.
803
+ .SS "input_line_number"
804
+ .IX Subsection "input_line_number"
805
+ .Vb 2
806
+ \& $z\->input_line_number()
807
+ \& $z\->input_line_number(EXPR)
808
+ .Ve
809
+ .PP
810
+ Returns the current uncompressed line number. If \f(CW\*(C`EXPR\*(C'\fR is present it has
811
+ the effect of setting the line number. Note that setting the line number
812
+ does not change the current position within the file/buffer being read.
813
+ .PP
814
+ The contents of \f(CW$/\fR are used to determine what constitutes a line
815
+ terminator.
816
+ .SS "fileno"
817
+ .IX Subsection "fileno"
818
+ .Vb 2
819
+ \& $z\->fileno()
820
+ \& fileno($z)
821
+ .Ve
822
+ .PP
823
+ If the \f(CW$z\fR object is associated with a file or a filehandle, \f(CW\*(C`fileno\*(C'\fR
824
+ will return the underlying file descriptor. Once the \f(CW\*(C`close\*(C'\fR method is
825
+ called \f(CW\*(C`fileno\*(C'\fR will return \f(CW\*(C`undef\*(C'\fR.
826
+ .PP
827
+ If the \f(CW$z\fR object is associated with a buffer, this method will return
828
+ \&\f(CW\*(C`undef\*(C'\fR.
829
+ .SS "close"
830
+ .IX Subsection "close"
831
+ .Vb 2
832
+ \& $z\->close() ;
833
+ \& close $z ;
834
+ .Ve
835
+ .PP
836
+ Closes the output file/buffer.
837
+ .PP
838
+ For most versions of Perl this method will be automatically invoked if
839
+ the IO::Uncompress::Gunzip object is destroyed (either explicitly or by the
840
+ variable with the reference to the object going out of scope). The
841
+ exceptions are Perl versions 5.005 through 5.00504 and 5.8.0. In
842
+ these cases, the \f(CW\*(C`close\*(C'\fR method will be called automatically, but
843
+ not until global destruction of all live objects when the program is
844
+ terminating.
845
+ .PP
846
+ Therefore, if you want your scripts to be able to run on all versions
847
+ of Perl, you should call \f(CW\*(C`close\*(C'\fR explicitly and not rely on automatic
848
+ closing.
849
+ .PP
850
+ Returns true on success, otherwise 0.
851
+ .PP
852
+ If the \f(CW\*(C`AutoClose\*(C'\fR option has been enabled when the IO::Uncompress::Gunzip
853
+ object was created, and the object is associated with a file, the
854
+ underlying file will also be closed.
855
+ .SS "nextStream"
856
+ .IX Subsection "nextStream"
857
+ Usage is
858
+ .PP
859
+ .Vb 1
860
+ \& my $status = $z\->nextStream();
861
+ .Ve
862
+ .PP
863
+ Skips to the next compressed data stream in the input file/buffer. If a new
864
+ compressed data stream is found, the eof marker will be cleared and \f(CW$.\fR
865
+ will be reset to 0.
866
+ .PP
867
+ Returns 1 if a new stream was found, 0 if none was found, and \-1 if an
868
+ error was encountered.
869
+ .SS "trailingData"
870
+ .IX Subsection "trailingData"
871
+ Usage is
872
+ .PP
873
+ .Vb 1
874
+ \& my $data = $z\->trailingData();
875
+ .Ve
876
+ .PP
877
+ Returns the data, if any, that is present immediately after the compressed
878
+ data stream once uncompression is complete. It only makes sense to call
879
+ this method once the end of the compressed data stream has been
880
+ encountered.
881
+ .PP
882
+ This option can be used when there is useful information immediately
883
+ following the compressed data stream, and you don't know the length of the
884
+ compressed data stream.
885
+ .PP
886
+ If the input is a buffer, \f(CW\*(C`trailingData\*(C'\fR will return everything from the
887
+ end of the compressed data stream to the end of the buffer.
888
+ .PP
889
+ If the input is a filehandle, \f(CW\*(C`trailingData\*(C'\fR will return the data that is
890
+ left in the filehandle input buffer once the end of the compressed data
891
+ stream has been reached. You can then use the filehandle to read the rest
892
+ of the input file.
893
+ .PP
894
+ Don't bother using \f(CW\*(C`trailingData\*(C'\fR if the input is a filename.
895
+ .PP
896
+ If you know the length of the compressed data stream before you start
897
+ uncompressing, you can avoid having to use \f(CW\*(C`trailingData\*(C'\fR by setting the
898
+ \&\f(CW\*(C`InputLength\*(C'\fR option in the constructor.
899
+ .SH "Importing"
900
+ .IX Header "Importing"
901
+ No symbolic constants are required by this IO::Uncompress::Gunzip at present.
902
+ .IP ":all" 5
903
+ .IX Item ":all"
904
+ Imports \f(CW\*(C`gunzip\*(C'\fR and \f(CW$GunzipError\fR.
905
+ Same as doing this
906
+ .Sp
907
+ .Vb 1
908
+ \& use IO::Uncompress::Gunzip qw(gunzip $GunzipError) ;
909
+ .Ve
910
+ .SH "EXAMPLES"
911
+ .IX Header "EXAMPLES"
912
+ .SS "Working with Net::FTP"
913
+ .IX Subsection "Working with Net::FTP"
914
+ See IO::Compress::FAQ
915
+ .SH "SUPPORT"
916
+ .IX Header "SUPPORT"
917
+ General feedback/questions/bug reports should be sent to
918
+ <https://github.com/pmqs/IO\-Compress/issues> (preferred) or
919
+ <https://rt.cpan.org/Public/Dist/Display.html?Name=IO\-Compress>.
920
+ .SH "SEE ALSO"
921
+ .IX Header "SEE ALSO"
922
+ Compress::Zlib, IO::Compress::Gzip, 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
923
+ .PP
924
+ IO::Compress::FAQ
925
+ .PP
926
+ File::GlobMapper, Archive::Zip,
927
+ Archive::Tar,
928
+ IO::Zlib
929
+ .PP
930
+ For \s-1RFC 1950, 1951\s0 and 1952 see
931
+ <http://www.faqs.org/rfcs/rfc1950.html>,
932
+ <http://www.faqs.org/rfcs/rfc1951.html> and
933
+ <http://www.faqs.org/rfcs/rfc1952.html>
934
+ .PP
935
+ The \fIzlib\fR compression library was written by Jean-loup Gailly
936
+ \&\f(CW\*(C`gzip@prep.ai.mit.edu\*(C'\fR and Mark Adler \f(CW\*(C`madler@alumni.caltech.edu\*(C'\fR.
937
+ .PP
938
+ The primary site for the \fIzlib\fR compression library is
939
+ <http://www.zlib.org>.
940
+ .PP
941
+ The primary site for gzip is <http://www.gzip.org>.
942
+ .SH "AUTHOR"
943
+ .IX Header "AUTHOR"
944
+ This module was written by Paul Marquess, \f(CW\*(C`pmqs@cpan.org\*(C'\fR.
945
+ .SH "MODIFICATION HISTORY"
946
+ .IX Header "MODIFICATION HISTORY"
947
+ See the Changes file.
948
+ .SH "COPYRIGHT AND LICENSE"
949
+ .IX Header "COPYRIGHT AND LICENSE"
950
+ Copyright (c) 2005\-2019 Paul Marquess. All rights reserved.
951
+ .PP
952
+ This program is free software; you can redistribute it and/or
953
+ modify it under the same terms as Perl itself.
data/miniconda3/man/man3/IO.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 "IO 3"
136
+ .TH IO 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
+ IO \- load various IO modules
143
+ .SH "SYNOPSIS"
144
+ .IX Header "SYNOPSIS"
145
+ .Vb 2
146
+ \& use IO qw(Handle File); # loads IO modules, here IO::Handle, IO::File
147
+ \& use IO; # DEPRECATED
148
+ .Ve
149
+ .SH "DESCRIPTION"
150
+ .IX Header "DESCRIPTION"
151
+ \&\f(CW\*(C`IO\*(C'\fR provides a simple mechanism to load several of the \s-1IO\s0 modules
152
+ in one go. The \s-1IO\s0 modules belonging to the core are:
153
+ .PP
154
+ .Vb 8
155
+ \& IO::Handle
156
+ \& IO::Seekable
157
+ \& IO::File
158
+ \& IO::Pipe
159
+ \& IO::Socket
160
+ \& IO::Dir
161
+ \& IO::Select
162
+ \& IO::Poll
163
+ .Ve
164
+ .PP
165
+ Some other \s-1IO\s0 modules don't belong to the perl core but can be loaded
166
+ as well if they have been installed from \s-1CPAN.\s0 You can discover which
167
+ ones exist by searching for \*(L"^IO::\*(R" on <http://search.cpan.org>.
168
+ .PP
169
+ For more information on any of these modules, please see its respective
170
+ documentation.
171
+ .SH "DEPRECATED"
172
+ .IX Header "DEPRECATED"
173
+ .Vb 1
174
+ \& use IO; # loads all the modules listed below
175
+ .Ve
176
+ .PP
177
+ The loaded modules are IO::Handle, IO::Seekable, IO::File, IO::Pipe,
178
+ IO::Socket, IO::Dir. You should instead explicitly import the \s-1IO\s0
179
+ modules you want.
data/miniconda3/man/man3/Math%3A%3ABigInt.3 ADDED
The diff for this file is too large to render. See raw diff
 
data/miniconda3/man/man3/Memoize.3 ADDED
@@ -0,0 +1,919 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "Memoize 3"
136
+ .TH Memoize 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
+ Memoize \- Make functions faster by trading space for time
143
+ .SH "SYNOPSIS"
144
+ .IX Header "SYNOPSIS"
145
+ .Vb 4
146
+ \& # This is the documentation for Memoize 1.03
147
+ \& use Memoize;
148
+ \& memoize(\*(Aqslow_function\*(Aq);
149
+ \& slow_function(arguments); # Is faster than it was before
150
+ .Ve
151
+ .PP
152
+ This is normally all you need to know. However, many options are available:
153
+ .PP
154
+ .Vb 1
155
+ \& memoize(function, options...);
156
+ .Ve
157
+ .PP
158
+ Options include:
159
+ .PP
160
+ .Vb 2
161
+ \& NORMALIZER => function
162
+ \& INSTALL => new_name
163
+ \&
164
+ \& SCALAR_CACHE => \*(AqMEMORY\*(Aq
165
+ \& SCALAR_CACHE => [\*(AqHASH\*(Aq, \e%cache_hash ]
166
+ \& SCALAR_CACHE => \*(AqFAULT\*(Aq
167
+ \& SCALAR_CACHE => \*(AqMERGE\*(Aq
168
+ \&
169
+ \& LIST_CACHE => \*(AqMEMORY\*(Aq
170
+ \& LIST_CACHE => [\*(AqHASH\*(Aq, \e%cache_hash ]
171
+ \& LIST_CACHE => \*(AqFAULT\*(Aq
172
+ \& LIST_CACHE => \*(AqMERGE\*(Aq
173
+ .Ve
174
+ .SH "DESCRIPTION"
175
+ .IX Header "DESCRIPTION"
176
+ `Memoizing' a function makes it faster by trading space for time. It
177
+ does this by caching the return values of the function in a table.
178
+ If you call the function again with the same arguments, \f(CW\*(C`memoize\*(C'\fR
179
+ jumps in and gives you the value out of the table, instead of letting
180
+ the function compute the value all over again.
181
+ .PP
182
+ Here is an extreme example. Consider the Fibonacci sequence, defined
183
+ by the following function:
184
+ .PP
185
+ .Vb 6
186
+ \& # Compute Fibonacci numbers
187
+ \& sub fib {
188
+ \& my $n = shift;
189
+ \& return $n if $n < 2;
190
+ \& fib($n\-1) + fib($n\-2);
191
+ \& }
192
+ .Ve
193
+ .PP
194
+ This function is very slow. Why? To compute fib(14), it first wants
195
+ to compute fib(13) and fib(12), and add the results. But to compute
196
+ fib(13), it first has to compute fib(12) and fib(11), and then it
197
+ comes back and computes fib(12) all over again even though the answer
198
+ is the same. And both of the times that it wants to compute fib(12),
199
+ it has to compute fib(11) from scratch, and then it has to do it
200
+ again each time it wants to compute fib(13). This function does so
201
+ much recomputing of old results that it takes a really long time to
202
+ run\-\-\-fib(14) makes 1,200 extra recursive calls to itself, to compute
203
+ and recompute things that it already computed.
204
+ .PP
205
+ This function is a good candidate for memoization. If you memoize the
206
+ `fib' function above, it will compute fib(14) exactly once, the first
207
+ time it needs to, and then save the result in a table. Then if you
208
+ ask for fib(14) again, it gives you the result out of the table.
209
+ While computing fib(14), instead of computing fib(12) twice, it does
210
+ it once; the second time it needs the value it gets it from the table.
211
+ It doesn't compute fib(11) four times; it computes it once, getting it
212
+ from the table the next three times. Instead of making 1,200
213
+ recursive calls to `fib', it makes 15. This makes the function about
214
+ 150 times faster.
215
+ .PP
216
+ You could do the memoization yourself, by rewriting the function, like
217
+ this:
218
+ .PP
219
+ .Vb 9
220
+ \& # Compute Fibonacci numbers, memoized version
221
+ \& { my @fib;
222
+ \& sub fib {
223
+ \& my $n = shift;
224
+ \& return $fib[$n] if defined $fib[$n];
225
+ \& return $fib[$n] = $n if $n < 2;
226
+ \& $fib[$n] = fib($n\-1) + fib($n\-2);
227
+ \& }
228
+ \& }
229
+ .Ve
230
+ .PP
231
+ Or you could use this module, like this:
232
+ .PP
233
+ .Vb 2
234
+ \& use Memoize;
235
+ \& memoize(\*(Aqfib\*(Aq);
236
+ \&
237
+ \& # Rest of the fib function just like the original version.
238
+ .Ve
239
+ .PP
240
+ This makes it easy to turn memoizing on and off.
241
+ .PP
242
+ Here's an even simpler example: I wrote a simple ray tracer; the
243
+ program would look in a certain direction, figure out what it was
244
+ looking at, and then convert the `color' value (typically a string
245
+ like `red') of that object to a red, green, and blue pixel value, like
246
+ this:
247
+ .PP
248
+ .Vb 6
249
+ \& for ($direction = 0; $direction < 300; $direction++) {
250
+ \& # Figure out which object is in direction $direction
251
+ \& $color = $object\->{color};
252
+ \& ($r, $g, $b) = @{&ColorToRGB($color)};
253
+ \& ...
254
+ \& }
255
+ .Ve
256
+ .PP
257
+ Since there are relatively few objects in a picture, there are only a
258
+ few colors, which get looked up over and over again. Memoizing
259
+ \&\f(CW\*(C`ColorToRGB\*(C'\fR sped up the program by several percent.
260
+ .SH "DETAILS"
261
+ .IX Header "DETAILS"
262
+ This module exports exactly one function, \f(CW\*(C`memoize\*(C'\fR. The rest of the
263
+ functions in this package are None of Your Business.
264
+ .PP
265
+ You should say
266
+ .PP
267
+ .Vb 1
268
+ \& memoize(function)
269
+ .Ve
270
+ .PP
271
+ where \f(CW\*(C`function\*(C'\fR is the name of the function you want to memoize, or
272
+ a reference to it. \f(CW\*(C`memoize\*(C'\fR returns a reference to the new,
273
+ memoized version of the function, or \f(CW\*(C`undef\*(C'\fR on a non-fatal error.
274
+ At present, there are no non-fatal errors, but there might be some in
275
+ the future.
276
+ .PP
277
+ If \f(CW\*(C`function\*(C'\fR was the name of a function, then \f(CW\*(C`memoize\*(C'\fR hides the
278
+ old version and installs the new memoized version under the old name,
279
+ so that \f(CW\*(C`&function(...)\*(C'\fR actually invokes the memoized version.
280
+ .SH "OPTIONS"
281
+ .IX Header "OPTIONS"
282
+ There are some optional options you can pass to \f(CW\*(C`memoize\*(C'\fR to change
283
+ the way it behaves a little. To supply options, invoke \f(CW\*(C`memoize\*(C'\fR
284
+ like this:
285
+ .PP
286
+ .Vb 5
287
+ \& memoize(function, NORMALIZER => function,
288
+ \& INSTALL => newname,
289
+ \& SCALAR_CACHE => option,
290
+ \& LIST_CACHE => option
291
+ \& );
292
+ .Ve
293
+ .PP
294
+ Each of these options is optional; you can include some, all, or none
295
+ of them.
296
+ .SS "\s-1INSTALL\s0"
297
+ .IX Subsection "INSTALL"
298
+ If you supply a function name with \f(CW\*(C`INSTALL\*(C'\fR, memoize will install
299
+ the new, memoized version of the function under the name you give.
300
+ For example,
301
+ .PP
302
+ .Vb 1
303
+ \& memoize(\*(Aqfib\*(Aq, INSTALL => \*(Aqfastfib\*(Aq)
304
+ .Ve
305
+ .PP
306
+ installs the memoized version of \f(CW\*(C`fib\*(C'\fR as \f(CW\*(C`fastfib\*(C'\fR; without the
307
+ \&\f(CW\*(C`INSTALL\*(C'\fR option it would have replaced the old \f(CW\*(C`fib\*(C'\fR with the
308
+ memoized version.
309
+ .PP
310
+ To prevent \f(CW\*(C`memoize\*(C'\fR from installing the memoized version anywhere, use
311
+ \&\f(CW\*(C`INSTALL => undef\*(C'\fR.
312
+ .SS "\s-1NORMALIZER\s0"
313
+ .IX Subsection "NORMALIZER"
314
+ Suppose your function looks like this:
315
+ .PP
316
+ .Vb 6
317
+ \& # Typical call: f(\*(Aqaha!\*(Aq, A => 11, B => 12);
318
+ \& sub f {
319
+ \& my $a = shift;
320
+ \& my %hash = @_;
321
+ \& $hash{B} ||= 2; # B defaults to 2
322
+ \& $hash{C} ||= 7; # C defaults to 7
323
+ \&
324
+ \& # Do something with $a, %hash
325
+ \& }
326
+ .Ve
327
+ .PP
328
+ Now, the following calls to your function are all completely equivalent:
329
+ .PP
330
+ .Vb 6
331
+ \& f(OUCH);
332
+ \& f(OUCH, B => 2);
333
+ \& f(OUCH, C => 7);
334
+ \& f(OUCH, B => 2, C => 7);
335
+ \& f(OUCH, C => 7, B => 2);
336
+ \& (etc.)
337
+ .Ve
338
+ .PP
339
+ However, unless you tell \f(CW\*(C`Memoize\*(C'\fR that these calls are equivalent,
340
+ it will not know that, and it will compute the values for these
341
+ invocations of your function separately, and store them separately.
342
+ .PP
343
+ To prevent this, supply a \f(CW\*(C`NORMALIZER\*(C'\fR function that turns the
344
+ program arguments into a string in a way that equivalent arguments
345
+ turn into the same string. A \f(CW\*(C`NORMALIZER\*(C'\fR function for \f(CW\*(C`f\*(C'\fR above
346
+ might look like this:
347
+ .PP
348
+ .Vb 5
349
+ \& sub normalize_f {
350
+ \& my $a = shift;
351
+ \& my %hash = @_;
352
+ \& $hash{B} ||= 2;
353
+ \& $hash{C} ||= 7;
354
+ \&
355
+ \& join(\*(Aq,\*(Aq, $a, map ($_ => $hash{$_}) sort keys %hash);
356
+ \& }
357
+ .Ve
358
+ .PP
359
+ Each of the argument lists above comes out of the \f(CW\*(C`normalize_f\*(C'\fR
360
+ function looking exactly the same, like this:
361
+ .PP
362
+ .Vb 1
363
+ \& OUCH,B,2,C,7
364
+ .Ve
365
+ .PP
366
+ You would tell \f(CW\*(C`Memoize\*(C'\fR to use this normalizer this way:
367
+ .PP
368
+ .Vb 1
369
+ \& memoize(\*(Aqf\*(Aq, NORMALIZER => \*(Aqnormalize_f\*(Aq);
370
+ .Ve
371
+ .PP
372
+ \&\f(CW\*(C`memoize\*(C'\fR knows that if the normalized version of the arguments is
373
+ the same for two argument lists, then it can safely look up the value
374
+ that it computed for one argument list and return it as the result of
375
+ calling the function with the other argument list, even if the
376
+ argument lists look different.
377
+ .PP
378
+ The default normalizer just concatenates the arguments with character
379
+ 28 in between. (In \s-1ASCII,\s0 this is called \s-1FS\s0 or control\-\e.) This
380
+ always works correctly for functions with only one string argument,
381
+ and also when the arguments never contain character 28. However, it
382
+ can confuse certain argument lists:
383
+ .PP
384
+ .Vb 3
385
+ \& normalizer("a\e034", "b")
386
+ \& normalizer("a", "\e034b")
387
+ \& normalizer("a\e034\e034b")
388
+ .Ve
389
+ .PP
390
+ for example.
391
+ .PP
392
+ Since hash keys are strings, the default normalizer will not
393
+ distinguish between \f(CW\*(C`undef\*(C'\fR and the empty string. It also won't work
394
+ when the function's arguments are references. For example, consider a
395
+ function \f(CW\*(C`g\*(C'\fR which gets two arguments: A number, and a reference to
396
+ an array of numbers:
397
+ .PP
398
+ .Vb 1
399
+ \& g(13, [1,2,3,4,5,6,7]);
400
+ .Ve
401
+ .PP
402
+ The default normalizer will turn this into something like
403
+ \&\f(CW"13\e034ARRAY(0x436c1f)"\fR. That would be all right, except that a
404
+ subsequent array of numbers might be stored at a different location
405
+ even though it contains the same data. If this happens, \f(CW\*(C`Memoize\*(C'\fR
406
+ will think that the arguments are different, even though they are
407
+ equivalent. In this case, a normalizer like this is appropriate:
408
+ .PP
409
+ .Vb 1
410
+ \& sub normalize { join \*(Aq \*(Aq, $_[0], @{$_[1]} }
411
+ .Ve
412
+ .PP
413
+ For the example above, this produces the key \*(L"13 1 2 3 4 5 6 7\*(R".
414
+ .PP
415
+ Another use for normalizers is when the function depends on data other
416
+ than those in its arguments. Suppose you have a function which
417
+ returns a value which depends on the current hour of the day:
418
+ .PP
419
+ .Vb 10
420
+ \& sub on_duty {
421
+ \& my ($problem_type) = @_;
422
+ \& my $hour = (localtime)[2];
423
+ \& open my $fh, "$DIR/$problem_type" or die...;
424
+ \& my $line;
425
+ \& while ($hour\-\- > 0)
426
+ \& $line = <$fh>;
427
+ \& }
428
+ \& return $line;
429
+ \& }
430
+ .Ve
431
+ .PP
432
+ At 10:23, this function generates the 10th line of a data file; at
433
+ 3:45 \s-1PM\s0 it generates the 15th line instead. By default, \f(CW\*(C`Memoize\*(C'\fR
434
+ will only see the \f(CW$problem_type\fR argument. To fix this, include the
435
+ current hour in the normalizer:
436
+ .PP
437
+ .Vb 1
438
+ \& sub normalize { join \*(Aq \*(Aq, (localtime)[2], @_ }
439
+ .Ve
440
+ .PP
441
+ The calling context of the function (scalar or list context) is
442
+ propagated to the normalizer. This means that if the memoized
443
+ function will treat its arguments differently in list context than it
444
+ would in scalar context, you can have the normalizer function select
445
+ its behavior based on the results of \f(CW\*(C`wantarray\*(C'\fR. Even if called in
446
+ a list context, a normalizer should still return a single string.
447
+ .ie n .SS """SCALAR_CACHE"", ""LIST_CACHE"""
448
+ .el .SS "\f(CWSCALAR_CACHE\fP, \f(CWLIST_CACHE\fP"
449
+ .IX Subsection "SCALAR_CACHE, LIST_CACHE"
450
+ Normally, \f(CW\*(C`Memoize\*(C'\fR caches your function's return values into an
451
+ ordinary Perl hash variable. However, you might like to have the
452
+ values cached on the disk, so that they persist from one run of your
453
+ program to the next, or you might like to associate some other
454
+ interesting semantics with the cached values.
455
+ .PP
456
+ There's a slight complication under the hood of \f(CW\*(C`Memoize\*(C'\fR: There are
457
+ actually \fItwo\fR caches, one for scalar values and one for list values.
458
+ When your function is called in scalar context, its return value is
459
+ cached in one hash, and when your function is called in list context,
460
+ its value is cached in the other hash. You can control the caching
461
+ behavior of both contexts independently with these options.
462
+ .PP
463
+ The argument to \f(CW\*(C`LIST_CACHE\*(C'\fR or \f(CW\*(C`SCALAR_CACHE\*(C'\fR must either be one of
464
+ the following four strings:
465
+ .PP
466
+ .Vb 4
467
+ \& MEMORY
468
+ \& FAULT
469
+ \& MERGE
470
+ \& HASH
471
+ .Ve
472
+ .PP
473
+ or else it must be a reference to an array whose first element is one of
474
+ these four strings, such as \f(CW\*(C`[HASH, arguments...]\*(C'\fR.
475
+ .ie n .IP """MEMORY""" 4
476
+ .el .IP "\f(CWMEMORY\fR" 4
477
+ .IX Item "MEMORY"
478
+ \&\f(CW\*(C`MEMORY\*(C'\fR means that return values from the function will be cached in
479
+ an ordinary Perl hash variable. The hash variable will not persist
480
+ after the program exits. This is the default.
481
+ .ie n .IP """HASH""" 4
482
+ .el .IP "\f(CWHASH\fR" 4
483
+ .IX Item "HASH"
484
+ \&\f(CW\*(C`HASH\*(C'\fR allows you to specify that a particular hash that you supply
485
+ will be used as the cache. You can tie this hash beforehand to give
486
+ it any behavior you want.
487
+ .Sp
488
+ A tied hash can have any semantics at all. It is typically tied to an
489
+ on-disk database, so that cached values are stored in the database and
490
+ retrieved from it again when needed, and the disk file typically
491
+ persists after your program has exited. See \f(CW\*(C`perltie\*(C'\fR for more
492
+ complete details about \f(CW\*(C`tie\*(C'\fR.
493
+ .Sp
494
+ A typical example is:
495
+ .Sp
496
+ .Vb 3
497
+ \& use DB_File;
498
+ \& tie my %cache => \*(AqDB_File\*(Aq, $filename, O_RDWR|O_CREAT, 0666;
499
+ \& memoize \*(Aqfunction\*(Aq, SCALAR_CACHE => [HASH => \e%cache];
500
+ .Ve
501
+ .Sp
502
+ This has the effect of storing the cache in a \f(CW\*(C`DB_File\*(C'\fR database
503
+ whose name is in \f(CW$filename\fR. The cache will persist after the
504
+ program has exited. Next time the program runs, it will find the
505
+ cache already populated from the previous run of the program. Or you
506
+ can forcibly populate the cache by constructing a batch program that
507
+ runs in the background and populates the cache file. Then when you
508
+ come to run your real program the memoized function will be fast
509
+ because all its results have been precomputed.
510
+ .Sp
511
+ Another reason to use \f(CW\*(C`HASH\*(C'\fR is to provide your own hash variable.
512
+ You can then inspect or modify the contents of the hash to gain finer
513
+ control over the cache management.
514
+ .ie n .IP """TIE""" 4
515
+ .el .IP "\f(CWTIE\fR" 4
516
+ .IX Item "TIE"
517
+ This option is no longer supported. It is still documented only to
518
+ aid in the debugging of old programs that use it. Old programs should
519
+ be converted to use the \f(CW\*(C`HASH\*(C'\fR option instead.
520
+ .Sp
521
+ .Vb 1
522
+ \& memoize ... [\*(AqTIE\*(Aq, PACKAGE, ARGS...]
523
+ .Ve
524
+ .Sp
525
+ is merely a shortcut for
526
+ .Sp
527
+ .Vb 4
528
+ \& require PACKAGE;
529
+ \& { tie my %cache, PACKAGE, ARGS...;
530
+ \& memoize ... [HASH => \e%cache];
531
+ \& }
532
+ .Ve
533
+ .ie n .IP """FAULT""" 4
534
+ .el .IP "\f(CWFAULT\fR" 4
535
+ .IX Item "FAULT"
536
+ \&\f(CW\*(C`FAULT\*(C'\fR means that you never expect to call the function in scalar
537
+ (or list) context, and that if \f(CW\*(C`Memoize\*(C'\fR detects such a call, it
538
+ should abort the program. The error message is one of
539
+ .Sp
540
+ .Vb 2
541
+ \& \`foo\*(Aq function called in forbidden list context at line ...
542
+ \& \`foo\*(Aq function called in forbidden scalar context at line ...
543
+ .Ve
544
+ .ie n .IP """MERGE""" 4
545
+ .el .IP "\f(CWMERGE\fR" 4
546
+ .IX Item "MERGE"
547
+ \&\f(CW\*(C`MERGE\*(C'\fR normally means that the memoized function does not
548
+ distinguish between list and sclar context, and that return values in
549
+ both contexts should be stored together. Both \f(CW\*(C`LIST_CACHE =>
550
+ MERGE\*(C'\fR and \f(CW\*(C`SCALAR_CACHE => MERGE\*(C'\fR mean the same thing.
551
+ .Sp
552
+ Consider this function:
553
+ .Sp
554
+ .Vb 4
555
+ \& sub complicated {
556
+ \& # ... time\-consuming calculation of $result
557
+ \& return $result;
558
+ \& }
559
+ .Ve
560
+ .Sp
561
+ The \f(CW\*(C`complicated\*(C'\fR function will return the same numeric \f(CW$result\fR
562
+ regardless of whether it is called in list or in scalar context.
563
+ .Sp
564
+ Normally, the following code will result in two calls to \f(CW\*(C`complicated\*(C'\fR, even
565
+ if \f(CW\*(C`complicated\*(C'\fR is memoized:
566
+ .Sp
567
+ .Vb 3
568
+ \& $x = complicated(142);
569
+ \& ($y) = complicated(142);
570
+ \& $z = complicated(142);
571
+ .Ve
572
+ .Sp
573
+ The first call will cache the result, say 37, in the scalar cache; the
574
+ second will cach the list \f(CW\*(C`(37)\*(C'\fR in the list cache. The third call
575
+ doesn't call the real \f(CW\*(C`complicated\*(C'\fR function; it gets the value 37
576
+ from the scalar cache.
577
+ .Sp
578
+ Obviously, the second call to \f(CW\*(C`complicated\*(C'\fR is a waste of time, and
579
+ storing its return value is a waste of space. Specifying \f(CW\*(C`LIST_CACHE
580
+ => MERGE\*(C'\fR will make \f(CW\*(C`memoize\*(C'\fR use the same cache for scalar and
581
+ list context return values, so that the second call uses the scalar
582
+ cache that was populated by the first call. \f(CW\*(C`complicated\*(C'\fR ends up
583
+ being called only once, and both subsequent calls return \f(CW3\fR from the
584
+ cache, regardless of the calling context.
585
+ .PP
586
+ \fIList values in scalar context\fR
587
+ .IX Subsection "List values in scalar context"
588
+ .PP
589
+ Consider this function:
590
+ .PP
591
+ .Vb 1
592
+ \& sub iota { return reverse (1..$_[0]) }
593
+ .Ve
594
+ .PP
595
+ This function normally returns a list. Suppose you memoize it and
596
+ merge the caches:
597
+ .PP
598
+ .Vb 1
599
+ \& memoize \*(Aqiota\*(Aq, SCALAR_CACHE => \*(AqMERGE\*(Aq;
600
+ \&
601
+ \& @i7 = iota(7);
602
+ \& $i7 = iota(7);
603
+ .Ve
604
+ .PP
605
+ Here the first call caches the list (1,2,3,4,5,6,7). The second call
606
+ does not really make sense. \f(CW\*(C`Memoize\*(C'\fR cannot guess what behavior
607
+ \&\f(CW\*(C`iota\*(C'\fR should have in scalar context without actually calling it in
608
+ scalar context. Normally \f(CW\*(C`Memoize\*(C'\fR \fIwould\fR call \f(CW\*(C`iota\*(C'\fR in scalar
609
+ context and cache the result, but the \f(CW\*(C`SCALAR_CACHE => \*(AqMERGE\*(Aq\*(C'\fR
610
+ option says not to do that, but to use the cache list-context value
611
+ instead. But it cannot return a list of seven elements in a scalar
612
+ context. In this case \f(CW$i7\fR will receive the \fBfirst element\fR of the
613
+ cached list value, namely 7.
614
+ .PP
615
+ \fIMerged disk caches\fR
616
+ .IX Subsection "Merged disk caches"
617
+ .PP
618
+ Another use for \f(CW\*(C`MERGE\*(C'\fR is when you want both kinds of return values
619
+ stored in the same disk file; this saves you from having to deal with
620
+ two disk files instead of one. You can use a normalizer function to
621
+ keep the two sets of return values separate. For example:
622
+ .PP
623
+ .Vb 1
624
+ \& tie my %cache => \*(AqMLDBM\*(Aq, \*(AqDB_File\*(Aq, $filename, ...;
625
+ \&
626
+ \& memoize \*(Aqmyfunc\*(Aq,
627
+ \& NORMALIZER => \*(Aqn\*(Aq,
628
+ \& SCALAR_CACHE => [HASH => \e%cache],
629
+ \& LIST_CACHE => \*(AqMERGE\*(Aq,
630
+ \& ;
631
+ \&
632
+ \& sub n {
633
+ \& my $context = wantarray() ? \*(AqL\*(Aq : \*(AqS\*(Aq;
634
+ \& # ... now compute the hash key from the arguments ...
635
+ \& $hashkey = "$context:$hashkey";
636
+ \& }
637
+ .Ve
638
+ .PP
639
+ This normalizer function will store scalar context return values in
640
+ the disk file under keys that begin with \f(CW\*(C`S:\*(C'\fR, and list context
641
+ return values under keys that begin with \f(CW\*(C`L:\*(C'\fR.
642
+ .SH "OTHER FACILITIES"
643
+ .IX Header "OTHER FACILITIES"
644
+ .ie n .SS """unmemoize"""
645
+ .el .SS "\f(CWunmemoize\fP"
646
+ .IX Subsection "unmemoize"
647
+ There's an \f(CW\*(C`unmemoize\*(C'\fR function that you can import if you want to.
648
+ Why would you want to? Here's an example: Suppose you have your cache
649
+ tied to a \s-1DBM\s0 file, and you want to make sure that the cache is
650
+ written out to disk if someone interrupts the program. If the program
651
+ exits normally, this will happen anyway, but if someone types
652
+ control-C or something then the program will terminate immediately
653
+ without synchronizing the database. So what you can do instead is
654
+ .PP
655
+ .Vb 1
656
+ \& $SIG{INT} = sub { unmemoize \*(Aqfunction\*(Aq };
657
+ .Ve
658
+ .PP
659
+ \&\f(CW\*(C`unmemoize\*(C'\fR accepts a reference to, or the name of a previously
660
+ memoized function, and undoes whatever it did to provide the memoized
661
+ version in the first place, including making the name refer to the
662
+ unmemoized version if appropriate. It returns a reference to the
663
+ unmemoized version of the function.
664
+ .PP
665
+ If you ask it to unmemoize a function that was never memoized, it
666
+ croaks.
667
+ .ie n .SS """flush_cache"""
668
+ .el .SS "\f(CWflush_cache\fP"
669
+ .IX Subsection "flush_cache"
670
+ \&\f(CW\*(C`flush_cache(function)\*(C'\fR will flush out the caches, discarding \fIall\fR
671
+ the cached data. The argument may be a function name or a reference
672
+ to a function. For finer control over when data is discarded or
673
+ expired, see the documentation for \f(CW\*(C`Memoize::Expire\*(C'\fR, included in
674
+ this package.
675
+ .PP
676
+ Note that if the cache is a tied hash, \f(CW\*(C`flush_cache\*(C'\fR will attempt to
677
+ invoke the \f(CW\*(C`CLEAR\*(C'\fR method on the hash. If there is no \f(CW\*(C`CLEAR\*(C'\fR
678
+ method, this will cause a run-time error.
679
+ .PP
680
+ An alternative approach to cache flushing is to use the \f(CW\*(C`HASH\*(C'\fR option
681
+ (see above) to request that \f(CW\*(C`Memoize\*(C'\fR use a particular hash variable
682
+ as its cache. Then you can examine or modify the hash at any time in
683
+ any way you desire. You may flush the cache by using \f(CW\*(C`%hash = ()\*(C'\fR.
684
+ .SH "CAVEATS"
685
+ .IX Header "CAVEATS"
686
+ Memoization is not a cure-all:
687
+ .IP "\(bu" 4
688
+ Do not memoize a function whose behavior depends on program
689
+ state other than its own arguments, such as global variables, the time
690
+ of day, or file input. These functions will not produce correct
691
+ results when memoized. For a particularly easy example:
692
+ .Sp
693
+ .Vb 3
694
+ \& sub f {
695
+ \& time;
696
+ \& }
697
+ .Ve
698
+ .Sp
699
+ This function takes no arguments, and as far as \f(CW\*(C`Memoize\*(C'\fR is
700
+ concerned, it always returns the same result. \f(CW\*(C`Memoize\*(C'\fR is wrong, of
701
+ course, and the memoized version of this function will call \f(CW\*(C`time\*(C'\fR once
702
+ to get the current time, and it will return that same time
703
+ every time you call it after that.
704
+ .IP "\(bu" 4
705
+ Do not memoize a function with side effects.
706
+ .Sp
707
+ .Vb 5
708
+ \& sub f {
709
+ \& my ($a, $b) = @_;
710
+ \& my $s = $a + $b;
711
+ \& print "$a + $b = $s.\en";
712
+ \& }
713
+ .Ve
714
+ .Sp
715
+ This function accepts two arguments, adds them, and prints their sum.
716
+ Its return value is the numuber of characters it printed, but you
717
+ probably didn't care about that. But \f(CW\*(C`Memoize\*(C'\fR doesn't understand
718
+ that. If you memoize this function, you will get the result you
719
+ expect the first time you ask it to print the sum of 2 and 3, but
720
+ subsequent calls will return 1 (the return value of
721
+ \&\f(CW\*(C`print\*(C'\fR) without actually printing anything.
722
+ .IP "\(bu" 4
723
+ Do not memoize a function that returns a data structure that is
724
+ modified by its caller.
725
+ .Sp
726
+ Consider these functions: \f(CW\*(C`getusers\*(C'\fR returns a list of users somehow,
727
+ and then \f(CW\*(C`main\*(C'\fR throws away the first user on the list and prints the
728
+ rest:
729
+ .Sp
730
+ .Vb 7
731
+ \& sub main {
732
+ \& my $userlist = getusers();
733
+ \& shift @$userlist;
734
+ \& foreach $u (@$userlist) {
735
+ \& print "User $u\en";
736
+ \& }
737
+ \& }
738
+ \&
739
+ \& sub getusers {
740
+ \& my @users;
741
+ \& # Do something to get a list of users;
742
+ \& \e@users; # Return reference to list.
743
+ \& }
744
+ .Ve
745
+ .Sp
746
+ If you memoize \f(CW\*(C`getusers\*(C'\fR here, it will work right exactly once. The
747
+ reference to the users list will be stored in the memo table. \f(CW\*(C`main\*(C'\fR
748
+ will discard the first element from the referenced list. The next
749
+ time you invoke \f(CW\*(C`main\*(C'\fR, \f(CW\*(C`Memoize\*(C'\fR will not call \f(CW\*(C`getusers\*(C'\fR; it will
750
+ just return the same reference to the same list it got last time. But
751
+ this time the list has already had its head removed; \f(CW\*(C`main\*(C'\fR will
752
+ erroneously remove another element from it. The list will get shorter
753
+ and shorter every time you call \f(CW\*(C`main\*(C'\fR.
754
+ .Sp
755
+ Similarly, this:
756
+ .Sp
757
+ .Vb 3
758
+ \& $u1 = getusers();
759
+ \& $u2 = getusers();
760
+ \& pop @$u1;
761
+ .Ve
762
+ .Sp
763
+ will modify \f(CW$u2\fR as well as \f(CW$u1\fR, because both variables are references
764
+ to the same array. Had \f(CW\*(C`getusers\*(C'\fR not been memoized, \f(CW$u1\fR and \f(CW$u2\fR
765
+ would have referred to different arrays.
766
+ .IP "\(bu" 4
767
+ Do not memoize a very simple function.
768
+ .Sp
769
+ Recently someone mentioned to me that the Memoize module made his
770
+ program run slower instead of faster. It turned out that he was
771
+ memoizing the following function:
772
+ .Sp
773
+ .Vb 3
774
+ \& sub square {
775
+ \& $_[0] * $_[0];
776
+ \& }
777
+ .Ve
778
+ .Sp
779
+ I pointed out that \f(CW\*(C`Memoize\*(C'\fR uses a hash, and that looking up a
780
+ number in the hash is necessarily going to take a lot longer than a
781
+ single multiplication. There really is no way to speed up the
782
+ \&\f(CW\*(C`square\*(C'\fR function.
783
+ .Sp
784
+ Memoization is not magical.
785
+ .SH "PERSISTENT CACHE SUPPORT"
786
+ .IX Header "PERSISTENT CACHE SUPPORT"
787
+ You can tie the cache tables to any sort of tied hash that you want
788
+ to, as long as it supports \f(CW\*(C`TIEHASH\*(C'\fR, \f(CW\*(C`FETCH\*(C'\fR, \f(CW\*(C`STORE\*(C'\fR, and
789
+ \&\f(CW\*(C`EXISTS\*(C'\fR. For example,
790
+ .PP
791
+ .Vb 2
792
+ \& tie my %cache => \*(AqGDBM_File\*(Aq, $filename, O_RDWR|O_CREAT, 0666;
793
+ \& memoize \*(Aqfunction\*(Aq, SCALAR_CACHE => [HASH => \e%cache];
794
+ .Ve
795
+ .PP
796
+ works just fine. For some storage methods, you need a little glue.
797
+ .PP
798
+ \&\f(CW\*(C`SDBM_File\*(C'\fR doesn't supply an \f(CW\*(C`EXISTS\*(C'\fR method, so included in this
799
+ package is a glue module called \f(CW\*(C`Memoize::SDBM_File\*(C'\fR which does
800
+ provide one. Use this instead of plain \f(CW\*(C`SDBM_File\*(C'\fR to store your
801
+ cache table on disk in an \f(CW\*(C`SDBM_File\*(C'\fR database:
802
+ .PP
803
+ .Vb 2
804
+ \& tie my %cache => \*(AqMemoize::SDBM_File\*(Aq, $filename, O_RDWR|O_CREAT, 0666;
805
+ \& memoize \*(Aqfunction\*(Aq, SCALAR_CACHE => [HASH => \e%cache];
806
+ .Ve
807
+ .PP
808
+ \&\f(CW\*(C`NDBM_File\*(C'\fR has the same problem and the same solution. (Use
809
+ \&\f(CW\*(C`Memoize::NDBM_File instead of plain NDBM_File.\*(C'\fR)
810
+ .PP
811
+ \&\f(CW\*(C`Storable\*(C'\fR isn't a tied hash class at all. You can use it to store a
812
+ hash to disk and retrieve it again, but you can't modify the hash while
813
+ it's on the disk. So if you want to store your cache table in a
814
+ \&\f(CW\*(C`Storable\*(C'\fR database, use \f(CW\*(C`Memoize::Storable\*(C'\fR, which puts a hashlike
815
+ front-end onto \f(CW\*(C`Storable\*(C'\fR. The hash table is actually kept in
816
+ memory, and is loaded from your \f(CW\*(C`Storable\*(C'\fR file at the time you
817
+ memoize the function, and stored back at the time you unmemoize the
818
+ function (or when your program exits):
819
+ .PP
820
+ .Vb 2
821
+ \& tie my %cache => \*(AqMemoize::Storable\*(Aq, $filename;
822
+ \& memoize \*(Aqfunction\*(Aq, SCALAR_CACHE => [HASH => \e%cache];
823
+ \&
824
+ \& tie my %cache => \*(AqMemoize::Storable\*(Aq, $filename, \*(Aqnstore\*(Aq;
825
+ \& memoize \*(Aqfunction\*(Aq, SCALAR_CACHE => [HASH => \e%cache];
826
+ .Ve
827
+ .PP
828
+ Include the `nstore' option to have the \f(CW\*(C`Storable\*(C'\fR database written
829
+ in `network order'. (See Storable for more details about this.)
830
+ .PP
831
+ The \f(CW\*(C`flush_cache()\*(C'\fR function will raise a run-time error unless the
832
+ tied package provides a \f(CW\*(C`CLEAR\*(C'\fR method.
833
+ .SH "EXPIRATION SUPPORT"
834
+ .IX Header "EXPIRATION SUPPORT"
835
+ See Memoize::Expire, which is a plug-in module that adds expiration
836
+ functionality to Memoize. If you don't like the kinds of policies
837
+ that Memoize::Expire implements, it is easy to write your own plug-in
838
+ module to implement whatever policy you desire. Memoize comes with
839
+ several examples. An expiration manager that implements a \s-1LRU\s0 policy
840
+ is available on \s-1CPAN\s0 as Memoize::ExpireLRU.
841
+ .SH "BUGS"
842
+ .IX Header "BUGS"
843
+ The test suite is much better, but always needs improvement.
844
+ .PP
845
+ There is some problem with the way \f(CW\*(C`goto &f\*(C'\fR works under threaded
846
+ Perl, perhaps because of the lexical scoping of \f(CW@_\fR. This is a bug
847
+ in Perl, and until it is resolved, memoized functions will see a
848
+ slightly different \f(CW\*(C`caller()\*(C'\fR and will perform a little more slowly
849
+ on threaded perls than unthreaded perls.
850
+ .PP
851
+ Some versions of \f(CW\*(C`DB_File\*(C'\fR won't let you store data under a key of
852
+ length 0. That means that if you have a function \f(CW\*(C`f\*(C'\fR which you
853
+ memoized and the cache is in a \f(CW\*(C`DB_File\*(C'\fR database, then the value of
854
+ \&\f(CW\*(C`f()\*(C'\fR (\f(CW\*(C`f\*(C'\fR called with no arguments) will not be memoized. If this
855
+ is a big problem, you can supply a normalizer function that prepends
856
+ \&\f(CW"x"\fR to every key.
857
+ .SH "MAILING LIST"
858
+ .IX Header "MAILING LIST"
859
+ To join a very low-traffic mailing list for announcements about
860
+ \&\f(CW\*(C`Memoize\*(C'\fR, send an empty note to \f(CW\*(C`mjd\-perl\-memoize\-request@plover.com\*(C'\fR.
861
+ .SH "AUTHOR"
862
+ .IX Header "AUTHOR"
863
+ Mark-Jason Dominus (\f(CW\*(C`mjd\-perl\-memoize+@plover.com\*(C'\fR), Plover Systems co.
864
+ .PP
865
+ See the \f(CW\*(C`Memoize.pm\*(C'\fR Page at http://perl.plover.com/Memoize/
866
+ for news and upgrades. Near this page, at
867
+ http://perl.plover.com/MiniMemoize/ there is an article about
868
+ memoization and about the internals of Memoize that appeared in The
869
+ Perl Journal, issue #13. (This article is also included in the
870
+ Memoize distribution as `article.html'.)
871
+ .PP
872
+ The author's book \fIHigher-Order Perl\fR (2005, \s-1ISBN 1558607013,\s0 published
873
+ by Morgan Kaufmann) discusses memoization (and many other
874
+ topics) in tremendous detail. It is available on-line for free.
875
+ For more information, visit http://hop.perl.plover.com/ .
876
+ .PP
877
+ To join a mailing list for announcements about \f(CW\*(C`Memoize\*(C'\fR, send an
878
+ empty message to \f(CW\*(C`mjd\-perl\-memoize\-request@plover.com\*(C'\fR. This mailing
879
+ list is for announcements only and has extremely low traffic\-\-\-fewer than
880
+ two messages per year.
881
+ .SH "COPYRIGHT AND LICENSE"
882
+ .IX Header "COPYRIGHT AND LICENSE"
883
+ Copyright 1998, 1999, 2000, 2001, 2012 by Mark Jason Dominus
884
+ .PP
885
+ This library is free software; you may redistribute it and/or modify
886
+ it under the same terms as Perl itself.
887
+ .SH "THANK YOU"
888
+ .IX Header "THANK YOU"
889
+ Many thanks to Florian Ragwitz for administration and packaging
890
+ assistance, to John Tromp for bug reports, to Jonathan Roy for bug reports
891
+ and suggestions, to Michael Schwern for other bug reports and patches,
892
+ to Mike Cariaso for helping me to figure out the Right Thing to Do
893
+ About Expiration, to Joshua Gerth, Joshua Chamas, Jonathan Roy
894
+ (again), Mark D. Anderson, and Andrew Johnson for more suggestions
895
+ about expiration, to Brent Powers for the Memoize::ExpireLRU module,
896
+ to Ariel Scolnicov for delightful messages about the Fibonacci
897
+ function, to Dion Almaer for thought-provoking suggestions about the
898
+ default normalizer, to Walt Mankowski and Kurt Starsinic for much help
899
+ investigating problems under threaded Perl, to Alex Dudkevich for
900
+ reporting the bug in prototyped functions and for checking my patch,
901
+ to Tony Bass for many helpful suggestions, to Jonathan Roy (again) for
902
+ finding a use for \f(CW\*(C`unmemoize()\*(C'\fR, to Philippe Verdret for enlightening
903
+ discussion of \f(CW\*(C`Hook::PrePostCall\*(C'\fR, to Nat Torkington for advice I
904
+ ignored, to Chris Nandor for portability advice, to Randal Schwartz
905
+ for suggesting the '\f(CW\*(C`flush_cache\*(C'\fR function, and to Jenda Krynicky for
906
+ being a light in the world.
907
+ .PP
908
+ Special thanks to Jarkko Hietaniemi, the 5.8.0 pumpking, for including
909
+ this module in the core and for his patient and helpful guidance
910
+ during the integration process.
911
+ .SH "POD ERRORS"
912
+ .IX Header "POD ERRORS"
913
+ Hey! \fBThe above document had some coding errors, which are explained below:\fR
914
+ .IP "Around line 755:" 4
915
+ .IX Item "Around line 755:"
916
+ You forgot a '=back' before '=head3'
917
+ .IP "Around line 804:" 4
918
+ .IX Item "Around line 804:"
919
+ =back without =over
data/miniconda3/man/man3/Net%3A%3ANNTP.3 ADDED
@@ -0,0 +1,598 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "Net::NNTP 3"
136
+ .TH Net::NNTP 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
+ Net::NNTP \- NNTP Client class
143
+ .SH "SYNOPSIS"
144
+ .IX Header "SYNOPSIS"
145
+ .Vb 1
146
+ \& use Net::NNTP;
147
+ \&
148
+ \& $nntp = Net::NNTP\->new("some.host.name");
149
+ \& $nntp\->quit;
150
+ \&
151
+ \& # start with SSL, e.g. nntps
152
+ \& $nntp = Net::NNTP\->new("some.host.name", SSL => 1);
153
+ \&
154
+ \& # start with plain and upgrade to SSL
155
+ \& $nntp = Net::NNTP\->new("some.host.name");
156
+ \& $nntp\->starttls;
157
+ .Ve
158
+ .SH "DESCRIPTION"
159
+ .IX Header "DESCRIPTION"
160
+ \&\f(CW\*(C`Net::NNTP\*(C'\fR is a class implementing a simple \s-1NNTP\s0 client in Perl as described
161
+ in \s-1RFC977\s0 and \s-1RFC4642.\s0
162
+ With IO::Socket::SSL installed it also provides support for implicit and
163
+ explicit \s-1TLS\s0 encryption, i.e. \s-1NNTPS\s0 or \s-1NNTP+STARTTLS.\s0
164
+ .PP
165
+ The Net::NNTP class is a subclass of Net::Cmd and (depending on avaibility) of
166
+ IO::Socket::IP, IO::Socket::INET6 or IO::Socket::INET.
167
+ .SH "CONSTRUCTOR"
168
+ .IX Header "CONSTRUCTOR"
169
+ .IP "new ( [ \s-1HOST\s0 ] [, \s-1OPTIONS\s0 ])" 4
170
+ .IX Item "new ( [ HOST ] [, OPTIONS ])"
171
+ This is the constructor for a new Net::NNTP object. \f(CW\*(C`HOST\*(C'\fR is the
172
+ name of the remote host to which a \s-1NNTP\s0 connection is required. If not
173
+ given then it may be passed as the \f(CW\*(C`Host\*(C'\fR option described below. If no host is passed
174
+ then two environment variables are checked, first \f(CW\*(C`NNTPSERVER\*(C'\fR then
175
+ \&\f(CW\*(C`NEWSHOST\*(C'\fR, then \f(CW\*(C`Net::Config\*(C'\fR is checked, and if a host is not found
176
+ then \f(CW\*(C`news\*(C'\fR is used.
177
+ .Sp
178
+ \&\f(CW\*(C`OPTIONS\*(C'\fR are passed in a hash like fashion, using key and value pairs.
179
+ Possible options are:
180
+ .Sp
181
+ \&\fBHost\fR \- \s-1NNTP\s0 host to connect to. It may be a single scalar, as defined for
182
+ the \f(CW\*(C`PeerAddr\*(C'\fR option in IO::Socket::INET, or a reference to
183
+ an array with hosts to try in turn. The \*(L"host\*(R" method will return the value
184
+ which was used to connect to the host.
185
+ .Sp
186
+ \&\fBPort\fR \- port to connect to.
187
+ Default \- 119 for plain \s-1NNTP\s0 and 563 for immediate \s-1SSL\s0 (nntps).
188
+ .Sp
189
+ \&\fB\s-1SSL\s0\fR \- If the connection should be done from start with \s-1SSL,\s0 contrary to later
190
+ upgrade with \f(CW\*(C`starttls\*(C'\fR.
191
+ You can use \s-1SSL\s0 arguments as documented in IO::Socket::SSL, but it will
192
+ usually use the right arguments already.
193
+ .Sp
194
+ \&\fBTimeout\fR \- Maximum time, in seconds, to wait for a response from the
195
+ \&\s-1NNTP\s0 server, a value of zero will cause all \s-1IO\s0 operations to block.
196
+ (default: 120)
197
+ .Sp
198
+ \&\fBDebug\fR \- Enable the printing of debugging information to \s-1STDERR\s0
199
+ .Sp
200
+ \&\fBReader\fR \- If the remote server is \s-1INN\s0 then initially the connection
201
+ will be to innd, by default \f(CW\*(C`Net::NNTP\*(C'\fR will issue a \f(CW\*(C`MODE READER\*(C'\fR command
202
+ so that the remote server becomes nnrpd. If the \f(CW\*(C`Reader\*(C'\fR option is given
203
+ with a value of zero, then this command will not be sent and the
204
+ connection will be left talking to innd.
205
+ .Sp
206
+ \&\fBLocalAddr\fR and \fBLocalPort\fR \- These parameters are passed directly
207
+ to IO::Socket to allow binding the socket to a specific local address and port.
208
+ .Sp
209
+ \&\fBDomain\fR \- This parameter is passed directly to IO::Socket and makes it
210
+ possible to enforce IPv4 connections even if IO::Socket::IP is used as super
211
+ class. Alternatively \fBFamily\fR can be used.
212
+ .SH "METHODS"
213
+ .IX Header "METHODS"
214
+ Unless otherwise stated all methods return either a \fItrue\fR or \fIfalse\fR
215
+ value, with \fItrue\fR meaning that the operation was a success. When a method
216
+ states that it returns a value, failure will be returned as \fIundef\fR or an
217
+ empty list.
218
+ .PP
219
+ \&\f(CW\*(C`Net::NNTP\*(C'\fR inherits from \f(CW\*(C`Net::Cmd\*(C'\fR so methods defined in \f(CW\*(C`Net::Cmd\*(C'\fR may
220
+ be used to send commands to the remote \s-1NNTP\s0 server in addition to the methods
221
+ documented here.
222
+ .IP "host ()" 4
223
+ .IX Item "host ()"
224
+ Returns the value used by the constructor, and passed to IO::Socket::INET,
225
+ to connect to the host.
226
+ .IP "starttls ()" 4
227
+ .IX Item "starttls ()"
228
+ Upgrade existing plain connection to \s-1SSL.\s0
229
+ Any arguments necessary for \s-1SSL\s0 must be given in \f(CW\*(C`new\*(C'\fR already.
230
+ .IP "article ( [ MSGID|MSGNUM ], [\s-1FH\s0] )" 4
231
+ .IX Item "article ( [ MSGID|MSGNUM ], [FH] )"
232
+ Retrieve the header, a blank line, then the body (text) of the
233
+ specified article.
234
+ .Sp
235
+ If \f(CW\*(C`FH\*(C'\fR is specified then it is expected to be a valid filehandle
236
+ and the result will be printed to it, on success a true value will be
237
+ returned. If \f(CW\*(C`FH\*(C'\fR is not specified then the return value, on success,
238
+ will be a reference to an array containing the article requested, each
239
+ entry in the array will contain one line of the article.
240
+ .Sp
241
+ If no arguments are passed then the current article in the currently
242
+ selected newsgroup is fetched.
243
+ .Sp
244
+ \&\f(CW\*(C`MSGNUM\*(C'\fR is a numeric id of an article in the current newsgroup, and
245
+ will change the current article pointer. \f(CW\*(C`MSGID\*(C'\fR is the message id of
246
+ an article as shown in that article's header. It is anticipated that the
247
+ client will obtain the \f(CW\*(C`MSGID\*(C'\fR from a list provided by the \f(CW\*(C`newnews\*(C'\fR
248
+ command, from references contained within another article, or from the
249
+ message-id provided in the response to some other commands.
250
+ .Sp
251
+ If there is an error then \f(CW\*(C`undef\*(C'\fR will be returned.
252
+ .IP "body ( [ MSGID|MSGNUM ], [\s-1FH\s0] )" 4
253
+ .IX Item "body ( [ MSGID|MSGNUM ], [FH] )"
254
+ Like \f(CW\*(C`article\*(C'\fR but only fetches the body of the article.
255
+ .IP "head ( [ MSGID|MSGNUM ], [\s-1FH\s0] )" 4
256
+ .IX Item "head ( [ MSGID|MSGNUM ], [FH] )"
257
+ Like \f(CW\*(C`article\*(C'\fR but only fetches the headers for the article.
258
+ .IP "articlefh ( [ MSGID|MSGNUM ] )" 4
259
+ .IX Item "articlefh ( [ MSGID|MSGNUM ] )"
260
+ .PD 0
261
+ .IP "bodyfh ( [ MSGID|MSGNUM ] )" 4
262
+ .IX Item "bodyfh ( [ MSGID|MSGNUM ] )"
263
+ .IP "headfh ( [ MSGID|MSGNUM ] )" 4
264
+ .IX Item "headfh ( [ MSGID|MSGNUM ] )"
265
+ .PD
266
+ These are similar to \fBarticle()\fR, \fBbody()\fR and \fBhead()\fR, but rather than
267
+ returning the requested data directly, they return a tied filehandle
268
+ from which to read the article.
269
+ .IP "nntpstat ( [ MSGID|MSGNUM ] )" 4
270
+ .IX Item "nntpstat ( [ MSGID|MSGNUM ] )"
271
+ The \f(CW\*(C`nntpstat\*(C'\fR command is similar to the \f(CW\*(C`article\*(C'\fR command except that no
272
+ text is returned. When selecting by message number within a group,
273
+ the \f(CW\*(C`nntpstat\*(C'\fR command serves to set the \*(L"current article pointer\*(R" without
274
+ sending text.
275
+ .Sp
276
+ Using the \f(CW\*(C`nntpstat\*(C'\fR command to
277
+ select by message-id is valid but of questionable value, since a
278
+ selection by message-id does \fBnot\fR alter the \*(L"current article pointer\*(R".
279
+ .Sp
280
+ Returns the message-id of the \*(L"current article\*(R".
281
+ .IP "group ( [ \s-1GROUP\s0 ] )" 4
282
+ .IX Item "group ( [ GROUP ] )"
283
+ Set and/or get the current group. If \f(CW\*(C`GROUP\*(C'\fR is not given then information
284
+ is returned on the current group.
285
+ .Sp
286
+ In a scalar context it returns the group name.
287
+ .Sp
288
+ In an array context the return value is a list containing, the number
289
+ of articles in the group, the number of the first article, the number
290
+ of the last article and the group name.
291
+ .IP "help ( )" 4
292
+ .IX Item "help ( )"
293
+ Request help text (a short summary of commands that are understood by this
294
+ implementation) from the server. Returns the text or undef upon failure.
295
+ .IP "ihave ( \s-1MSGID\s0 [, \s-1MESSAGE\s0 ])" 4
296
+ .IX Item "ihave ( MSGID [, MESSAGE ])"
297
+ The \f(CW\*(C`ihave\*(C'\fR command informs the server that the client has an article
298
+ whose id is \f(CW\*(C`MSGID\*(C'\fR. If the server desires a copy of that
299
+ article and \f(CW\*(C`MESSAGE\*(C'\fR has been given then it will be sent.
300
+ .Sp
301
+ Returns \fItrue\fR if the server desires the article and \f(CW\*(C`MESSAGE\*(C'\fR was
302
+ successfully sent, if specified.
303
+ .Sp
304
+ If \f(CW\*(C`MESSAGE\*(C'\fR is not specified then the message must be sent using the
305
+ \&\f(CW\*(C`datasend\*(C'\fR and \f(CW\*(C`dataend\*(C'\fR methods from Net::Cmd
306
+ .Sp
307
+ \&\f(CW\*(C`MESSAGE\*(C'\fR can be either an array of lines or a reference to an array
308
+ and must be encoded by the caller to octets of whatever encoding is required,
309
+ e.g. by using the Encode module's \f(CW\*(C`encode()\*(C'\fR function.
310
+ .IP "last ()" 4
311
+ .IX Item "last ()"
312
+ Set the \*(L"current article pointer\*(R" to the previous article in the current
313
+ newsgroup.
314
+ .Sp
315
+ Returns the message-id of the article.
316
+ .IP "date ()" 4
317
+ .IX Item "date ()"
318
+ Returns the date on the remote server. This date will be in a \s-1UNIX\s0 time
319
+ format (seconds since 1970)
320
+ .IP "postok ()" 4
321
+ .IX Item "postok ()"
322
+ \&\f(CW\*(C`postok\*(C'\fR will return \fItrue\fR if the servers initial response indicated
323
+ that it will allow posting.
324
+ .IP "authinfo ( \s-1USER, PASS\s0 )" 4
325
+ .IX Item "authinfo ( USER, PASS )"
326
+ Authenticates to the server (using the original \s-1AUTHINFO USER / AUTHINFO PASS\s0
327
+ form, defined in \s-1RFC2980\s0) using the supplied username and password. Please
328
+ note that the password is sent in clear text to the server. This command
329
+ should not be used with valuable passwords unless the connection to the server
330
+ is somehow protected.
331
+ .IP "authinfo_simple ( \s-1USER, PASS\s0 )" 4
332
+ .IX Item "authinfo_simple ( USER, PASS )"
333
+ Authenticates to the server (using the proposed \s-1NNTP V2 AUTHINFO SIMPLE\s0 form,
334
+ defined and deprecated in \s-1RFC2980\s0) using the supplied username and password.
335
+ As with \*(L"authinfo\*(R" the password is sent in clear text.
336
+ .IP "list ()" 4
337
+ .IX Item "list ()"
338
+ Obtain information about all the active newsgroups. The results is a reference
339
+ to a hash where the key is a group name and each value is a reference to an
340
+ array. The elements in this array are:\- the last article number in the group,
341
+ the first article number in the group and any information flags about the group.
342
+ .IP "newgroups ( \s-1SINCE\s0 [, \s-1DISTRIBUTIONS\s0 ])" 4
343
+ .IX Item "newgroups ( SINCE [, DISTRIBUTIONS ])"
344
+ \&\f(CW\*(C`SINCE\*(C'\fR is a time value and \f(CW\*(C`DISTRIBUTIONS\*(C'\fR is either a distribution
345
+ pattern or a reference to a list of distribution patterns.
346
+ The result is the same as \f(CW\*(C`list\*(C'\fR, but the
347
+ groups return will be limited to those created after \f(CW\*(C`SINCE\*(C'\fR and, if
348
+ specified, in one of the distribution areas in \f(CW\*(C`DISTRIBUTIONS\*(C'\fR.
349
+ .IP "newnews ( \s-1SINCE\s0 [, \s-1GROUPS\s0 [, \s-1DISTRIBUTIONS\s0 ]])" 4
350
+ .IX Item "newnews ( SINCE [, GROUPS [, DISTRIBUTIONS ]])"
351
+ \&\f(CW\*(C`SINCE\*(C'\fR is a time value. \f(CW\*(C`GROUPS\*(C'\fR is either a group pattern or a reference
352
+ to a list of group patterns. \f(CW\*(C`DISTRIBUTIONS\*(C'\fR is either a distribution
353
+ pattern or a reference to a list of distribution patterns.
354
+ .Sp
355
+ Returns a reference to a list which contains the message-ids of all news posted
356
+ after \f(CW\*(C`SINCE\*(C'\fR, that are in a groups which matched \f(CW\*(C`GROUPS\*(C'\fR and a
357
+ distribution which matches \f(CW\*(C`DISTRIBUTIONS\*(C'\fR.
358
+ .IP "next ()" 4
359
+ .IX Item "next ()"
360
+ Set the \*(L"current article pointer\*(R" to the next article in the current
361
+ newsgroup.
362
+ .Sp
363
+ Returns the message-id of the article.
364
+ .IP "post ( [ \s-1MESSAGE\s0 ] )" 4
365
+ .IX Item "post ( [ MESSAGE ] )"
366
+ Post a new article to the news server. If \f(CW\*(C`MESSAGE\*(C'\fR is specified and posting
367
+ is allowed then the message will be sent.
368
+ .Sp
369
+ If \f(CW\*(C`MESSAGE\*(C'\fR is not specified then the message must be sent using the
370
+ \&\f(CW\*(C`datasend\*(C'\fR and \f(CW\*(C`dataend\*(C'\fR methods from Net::Cmd
371
+ .Sp
372
+ \&\f(CW\*(C`MESSAGE\*(C'\fR can be either an array of lines or a reference to an array
373
+ and must be encoded by the caller to octets of whatever encoding is required,
374
+ e.g. by using the Encode module's \f(CW\*(C`encode()\*(C'\fR function.
375
+ .Sp
376
+ The message, either sent via \f(CW\*(C`datasend\*(C'\fR or as the \f(CW\*(C`MESSAGE\*(C'\fR
377
+ parameter, must be in the format as described by \s-1RFC822\s0 and must
378
+ contain From:, Newsgroups: and Subject: headers.
379
+ .IP "postfh ()" 4
380
+ .IX Item "postfh ()"
381
+ Post a new article to the news server using a tied filehandle. If
382
+ posting is allowed, this method will return a tied filehandle that you
383
+ can \fBprint()\fR the contents of the article to be posted. You must
384
+ explicitly \fBclose()\fR the filehandle when you are finished posting the
385
+ article, and the return value from the \fBclose()\fR call will indicate
386
+ whether the message was successfully posted.
387
+ .IP "slave ()" 4
388
+ .IX Item "slave ()"
389
+ Tell the remote server that I am not a user client, but probably another
390
+ news server.
391
+ .IP "quit ()" 4
392
+ .IX Item "quit ()"
393
+ Quit the remote server and close the socket connection.
394
+ .IP "can_inet6 ()" 4
395
+ .IX Item "can_inet6 ()"
396
+ Returns whether we can use IPv6.
397
+ .IP "can_ssl ()" 4
398
+ .IX Item "can_ssl ()"
399
+ Returns whether we can use \s-1SSL.\s0
400
+ .SS "Extension methods"
401
+ .IX Subsection "Extension methods"
402
+ These methods use commands that are not part of the \s-1RFC977\s0 documentation. Some
403
+ servers may not support all of them.
404
+ .IP "newsgroups ( [ \s-1PATTERN\s0 ] )" 4
405
+ .IX Item "newsgroups ( [ PATTERN ] )"
406
+ Returns a reference to a hash where the keys are all the group names which
407
+ match \f(CW\*(C`PATTERN\*(C'\fR, or all of the groups if no pattern is specified, and
408
+ each value contains the description text for the group.
409
+ .IP "distributions ()" 4
410
+ .IX Item "distributions ()"
411
+ Returns a reference to a hash where the keys are all the possible
412
+ distribution names and the values are the distribution descriptions.
413
+ .IP "distribution_patterns ()" 4
414
+ .IX Item "distribution_patterns ()"
415
+ Returns a reference to an array where each element, itself an array
416
+ reference, consists of the three fields of a line of the distrib.pats list
417
+ maintained by some \s-1NNTP\s0 servers, namely: a weight, a wildmat and a value
418
+ which the client may use to construct a Distribution header.
419
+ .IP "subscriptions ()" 4
420
+ .IX Item "subscriptions ()"
421
+ Returns a reference to a list which contains a list of groups which
422
+ are recommended for a new user to subscribe to.
423
+ .IP "overview_fmt ()" 4
424
+ .IX Item "overview_fmt ()"
425
+ Returns a reference to an array which contain the names of the fields returned
426
+ by \f(CW\*(C`xover\*(C'\fR.
427
+ .IP "active_times ()" 4
428
+ .IX Item "active_times ()"
429
+ Returns a reference to a hash where the keys are the group names and each
430
+ value is a reference to an array containing the time the groups was created
431
+ and an identifier, possibly an Email address, of the creator.
432
+ .IP "active ( [ \s-1PATTERN\s0 ] )" 4
433
+ .IX Item "active ( [ PATTERN ] )"
434
+ Similar to \f(CW\*(C`list\*(C'\fR but only active groups that match the pattern are returned.
435
+ \&\f(CW\*(C`PATTERN\*(C'\fR can be a group pattern.
436
+ .IP "xgtitle ( \s-1PATTERN\s0 )" 4
437
+ .IX Item "xgtitle ( PATTERN )"
438
+ Returns a reference to a hash where the keys are all the group names which
439
+ match \f(CW\*(C`PATTERN\*(C'\fR and each value is the description text for the group.
440
+ .IP "xhdr ( \s-1HEADER,\s0 MESSAGE-SPEC )" 4
441
+ .IX Item "xhdr ( HEADER, MESSAGE-SPEC )"
442
+ Obtain the header field \f(CW\*(C`HEADER\*(C'\fR for all the messages specified.
443
+ .Sp
444
+ The return value will be a reference
445
+ to a hash where the keys are the message numbers and each value contains
446
+ the text of the requested header for that message.
447
+ .IP "xover ( MESSAGE-SPEC )" 4
448
+ .IX Item "xover ( MESSAGE-SPEC )"
449
+ The return value will be a reference
450
+ to a hash where the keys are the message numbers and each value contains
451
+ a reference to an array which contains the overview fields for that
452
+ message.
453
+ .Sp
454
+ The names of the fields can be obtained by calling \f(CW\*(C`overview_fmt\*(C'\fR.
455
+ .IP "xpath ( MESSAGE-ID )" 4
456
+ .IX Item "xpath ( MESSAGE-ID )"
457
+ Returns the path name to the file on the server which contains the specified
458
+ message.
459
+ .IP "xpat ( \s-1HEADER, PATTERN,\s0 MESSAGE-SPEC)" 4
460
+ .IX Item "xpat ( HEADER, PATTERN, MESSAGE-SPEC)"
461
+ The result is the same as \f(CW\*(C`xhdr\*(C'\fR except the is will be restricted to
462
+ headers where the text of the header matches \f(CW\*(C`PATTERN\*(C'\fR
463
+ .IP "xrover ()" 4
464
+ .IX Item "xrover ()"
465
+ The \s-1XROVER\s0 command returns reference information for the article(s)
466
+ specified.
467
+ .Sp
468
+ Returns a reference to a \s-1HASH\s0 where the keys are the message numbers and the
469
+ values are the References: lines from the articles
470
+ .IP "listgroup ( [ \s-1GROUP\s0 ] )" 4
471
+ .IX Item "listgroup ( [ GROUP ] )"
472
+ Returns a reference to a list of all the active messages in \f(CW\*(C`GROUP\*(C'\fR, or
473
+ the current group if \f(CW\*(C`GROUP\*(C'\fR is not specified.
474
+ .IP "reader ()" 4
475
+ .IX Item "reader ()"
476
+ Tell the server that you are a reader and not another server.
477
+ .Sp
478
+ This is required by some servers. For example if you are connecting to
479
+ an \s-1INN\s0 server and you have transfer permission your connection will
480
+ be connected to the transfer daemon, not the \s-1NNTP\s0 daemon. Issuing
481
+ this command will cause the transfer daemon to hand over control
482
+ to the \s-1NNTP\s0 daemon.
483
+ .Sp
484
+ Some servers do not understand this command, but issuing it and ignoring
485
+ the response is harmless.
486
+ .SH "UNSUPPORTED"
487
+ .IX Header "UNSUPPORTED"
488
+ The following \s-1NNTP\s0 command are unsupported by the package, and there are
489
+ no plans to do so.
490
+ .PP
491
+ .Vb 4
492
+ \& AUTHINFO GENERIC
493
+ \& XTHREAD
494
+ \& XSEARCH
495
+ \& XINDEX
496
+ .Ve
497
+ .SH "DEFINITIONS"
498
+ .IX Header "DEFINITIONS"
499
+ .IP "MESSAGE-SPEC" 4
500
+ .IX Item "MESSAGE-SPEC"
501
+ \&\f(CW\*(C`MESSAGE\-SPEC\*(C'\fR is either a single message-id, a single message number, or
502
+ a reference to a list of two message numbers.
503
+ .Sp
504
+ If \f(CW\*(C`MESSAGE\-SPEC\*(C'\fR is a reference to a list of two message numbers and the
505
+ second number in a range is less than or equal to the first then the range
506
+ represents all messages in the group after the first message number.
507
+ .Sp
508
+ \&\fB\s-1NOTE\s0\fR For compatibility reasons only with earlier versions of Net::NNTP
509
+ a message spec can be passed as a list of two numbers, this is deprecated
510
+ and a reference to the list should now be passed
511
+ .IP "\s-1PATTERN\s0" 4
512
+ .IX Item "PATTERN"
513
+ The \f(CW\*(C`NNTP\*(C'\fR protocol uses the \f(CW\*(C`WILDMAT\*(C'\fR format for patterns.
514
+ The \s-1WILDMAT\s0 format was first developed by Rich Salz based on
515
+ the format used in the \s-1UNIX\s0 \*(L"find\*(R" command to articulate
516
+ file names. It was developed to provide a uniform mechanism
517
+ for matching patterns in the same manner that the \s-1UNIX\s0 shell
518
+ matches filenames.
519
+ .Sp
520
+ Patterns are implicitly anchored at the
521
+ beginning and end of each string when testing for a match.
522
+ .Sp
523
+ There are five pattern matching operations other than a strict
524
+ one-to-one match between the pattern and the source to be
525
+ checked for a match.
526
+ .Sp
527
+ The first is an asterisk \f(CW\*(C`*\*(C'\fR to match any sequence of zero or more
528
+ characters.
529
+ .Sp
530
+ The second is a question mark \f(CW\*(C`?\*(C'\fR to match any single character. The
531
+ third specifies a specific set of characters.
532
+ .Sp
533
+ The set is specified as a list of characters, or as a range of characters
534
+ where the beginning and end of the range are separated by a minus (or dash)
535
+ character, or as any combination of lists and ranges. The dash can
536
+ also be included in the set as a character it if is the beginning
537
+ or end of the set. This set is enclosed in square brackets. The
538
+ close square bracket \f(CW\*(C`]\*(C'\fR may be used in a set if it is the first
539
+ character in the set.
540
+ .Sp
541
+ The fourth operation is the same as the
542
+ logical not of the third operation and is specified the same
543
+ way as the third with the addition of a caret character \f(CW\*(C`^\*(C'\fR at
544
+ the beginning of the test string just inside the open square
545
+ bracket.
546
+ .Sp
547
+ The final operation uses the backslash character to
548
+ invalidate the special meaning of an open square bracket \f(CW\*(C`[\*(C'\fR,
549
+ the asterisk, backslash or the question mark. Two backslashes in
550
+ sequence will result in the evaluation of the backslash as a
551
+ character with no special meaning.
552
+ .RS 4
553
+ .IP "Examples" 4
554
+ .IX Item "Examples"
555
+ .PD 0
556
+ .ie n .IP """[^]\-]""" 4
557
+ .el .IP "\f(CW[^]\-]\fR" 4
558
+ .IX Item "[^]-]"
559
+ .PD
560
+ matches any single character other than a close square
561
+ bracket or a minus sign/dash.
562
+ .ie n .IP "*bdc" 4
563
+ .el .IP "\f(CW*bdc\fR" 4
564
+ .IX Item "*bdc"
565
+ matches any string that ends with the string \*(L"bdc\*(R"
566
+ including the string \*(L"bdc\*(R" (without quotes).
567
+ .ie n .IP """[0\-9a\-zA\-Z]""" 4
568
+ .el .IP "\f(CW[0\-9a\-zA\-Z]\fR" 4
569
+ .IX Item "[0-9a-zA-Z]"
570
+ matches any single printable alphanumeric \s-1ASCII\s0 character.
571
+ .ie n .IP """a??d""" 4
572
+ .el .IP "\f(CWa??d\fR" 4
573
+ .IX Item "a??d"
574
+ matches any four character string which begins
575
+ with a and ends with d.
576
+ .RE
577
+ .RS 4
578
+ .RE
579
+ .SH "SEE ALSO"
580
+ .IX Header "SEE ALSO"
581
+ Net::Cmd,
582
+ IO::Socket::SSL
583
+ .SH "AUTHOR"
584
+ .IX Header "AUTHOR"
585
+ Graham Barr <\fIgbarr@pobox.com\fR>.
586
+ .PP
587
+ Steve Hay <\fIshay@cpan.org\fR> is now maintaining libnet as of version
588
+ 1.22_02.
589
+ .SH "COPYRIGHT"
590
+ .IX Header "COPYRIGHT"
591
+ Copyright (C) 1995\-1997 Graham Barr. All rights reserved.
592
+ .PP
593
+ Copyright (C) 2013\-2016 Steve Hay. All rights reserved.
594
+ .SH "LICENCE"
595
+ .IX Header "LICENCE"
596
+ This module is free software; you can redistribute it and/or modify it under the
597
+ same terms as Perl itself, i.e. under the terms of either the \s-1GNU\s0 General Public
598
+ License or the Artistic License, as specified in the \fI\s-1LICENCE\s0\fR file.
data/miniconda3/man/man3/POSIX.3 ADDED
The diff for this file is too large to render. See raw diff
 
data/miniconda3/man/man3/Parse%3A%3ACPAN%3A%3AMeta.3 ADDED
@@ -0,0 +1,327 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "Parse::CPAN::Meta 3"
136
+ .TH Parse::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
+ Parse::CPAN::Meta \- Parse META.yml and META.json CPAN metadata files
143
+ .SH "VERSION"
144
+ .IX Header "VERSION"
145
+ version 2.150010
146
+ .SH "SYNOPSIS"
147
+ .IX Header "SYNOPSIS"
148
+ .Vb 2
149
+ \& #############################################
150
+ \& # In your file
151
+ \&
152
+ \& \-\-\-
153
+ \& name: My\-Distribution
154
+ \& version: 1.23
155
+ \& resources:
156
+ \& homepage: "http://example.com/dist/My\-Distribution"
157
+ \&
158
+ \&
159
+ \& #############################################
160
+ \& # In your program
161
+ \&
162
+ \& use Parse::CPAN::Meta;
163
+ \&
164
+ \& my $distmeta = Parse::CPAN::Meta\->load_file(\*(AqMETA.yml\*(Aq);
165
+ \&
166
+ \& # Reading properties
167
+ \& my $name = $distmeta\->{name};
168
+ \& my $version = $distmeta\->{version};
169
+ \& my $homepage = $distmeta\->{resources}{homepage};
170
+ .Ve
171
+ .SH "DESCRIPTION"
172
+ .IX Header "DESCRIPTION"
173
+ \&\fBParse::CPAN::Meta\fR is a parser for \fI\s-1META\s0.json\fR and \fI\s-1META\s0.yml\fR files, using
174
+ \&\s-1JSON::PP\s0 and/or CPAN::Meta::YAML.
175
+ .PP
176
+ \&\fBParse::CPAN::Meta\fR provides three methods: \f(CW\*(C`load_file\*(C'\fR, \f(CW\*(C`load_json_string\*(C'\fR,
177
+ and \f(CW\*(C`load_yaml_string\*(C'\fR. These will read and deserialize \s-1CPAN\s0 metafiles, and
178
+ are described below in detail.
179
+ .PP
180
+ \&\fBParse::CPAN::Meta\fR provides a legacy \s-1API\s0 of only two functions,
181
+ based on the \s-1YAML\s0 functions of the same name. Wherever possible,
182
+ identical calling semantics are used. These may only be used with \s-1YAML\s0 sources.
183
+ .PP
184
+ All error reporting is done with exceptions (die'ing).
185
+ .PP
186
+ Note that \s-1META\s0 files are expected to be in \s-1UTF\-8\s0 encoding, only. When
187
+ converted string data, it must first be decoded from \s-1UTF\-8.\s0
188
+ .SH "METHODS"
189
+ .IX Header "METHODS"
190
+ .SS "load_file"
191
+ .IX Subsection "load_file"
192
+ .Vb 1
193
+ \& my $metadata_structure = Parse::CPAN::Meta\->load_file(\*(AqMETA.json\*(Aq);
194
+ \&
195
+ \& my $metadata_structure = Parse::CPAN::Meta\->load_file(\*(AqMETA.yml\*(Aq);
196
+ .Ve
197
+ .PP
198
+ This method will read the named file and deserialize it to a data structure,
199
+ determining whether it should be \s-1JSON\s0 or \s-1YAML\s0 based on the filename.
200
+ The file will be read using the \*(L":utf8\*(R" \s-1IO\s0 layer.
201
+ .SS "load_yaml_string"
202
+ .IX Subsection "load_yaml_string"
203
+ .Vb 1
204
+ \& my $metadata_structure = Parse::CPAN::Meta\->load_yaml_string($yaml_string);
205
+ .Ve
206
+ .PP
207
+ This method deserializes the given string of \s-1YAML\s0 and returns the first
208
+ document in it. (\s-1CPAN\s0 metadata files should always have only one document.)
209
+ If the source was \s-1UTF\-8\s0 encoded, the string must be decoded before calling
210
+ \&\f(CW\*(C`load_yaml_string\*(C'\fR.
211
+ .SS "load_json_string"
212
+ .IX Subsection "load_json_string"
213
+ .Vb 1
214
+ \& my $metadata_structure = Parse::CPAN::Meta\->load_json_string($json_string);
215
+ .Ve
216
+ .PP
217
+ This method deserializes the given string of \s-1JSON\s0 and the result.
218
+ If the source was \s-1UTF\-8\s0 encoded, the string must be decoded before calling
219
+ \&\f(CW\*(C`load_json_string\*(C'\fR.
220
+ .SS "load_string"
221
+ .IX Subsection "load_string"
222
+ .Vb 1
223
+ \& my $metadata_structure = Parse::CPAN::Meta\->load_string($some_string);
224
+ .Ve
225
+ .PP
226
+ If you don't know whether a string contains \s-1YAML\s0 or \s-1JSON\s0 data, this method
227
+ will use some heuristics and guess. If it can't tell, it assumes \s-1YAML.\s0
228
+ .SS "yaml_backend"
229
+ .IX Subsection "yaml_backend"
230
+ .Vb 1
231
+ \& my $backend = Parse::CPAN::Meta\->yaml_backend;
232
+ .Ve
233
+ .PP
234
+ Returns the module name of the \s-1YAML\s0 serializer. See \*(L"\s-1ENVIRONMENT\*(R"\s0
235
+ for details.
236
+ .SS "json_backend"
237
+ .IX Subsection "json_backend"
238
+ .Vb 1
239
+ \& my $backend = Parse::CPAN::Meta\->json_backend;
240
+ .Ve
241
+ .PP
242
+ Returns the module name of the \s-1JSON\s0 serializer. If \f(CW\*(C`CPAN_META_JSON_BACKEND\*(C'\fR
243
+ is set, this will be whatever that's set to. If not, this will either
244
+ be \s-1JSON::PP\s0 or \s-1JSON\s0. If \f(CW\*(C`PERL_JSON_BACKEND\*(C'\fR is set,
245
+ this will return \s-1JSON\s0 as further delegation is handled by
246
+ the \s-1JSON\s0 module. See \*(L"\s-1ENVIRONMENT\*(R"\s0 for details.
247
+ .SS "json_decoder"
248
+ .IX Subsection "json_decoder"
249
+ .Vb 1
250
+ \& my $decoder = Parse::CPAN::Meta\->json_decoder;
251
+ .Ve
252
+ .PP
253
+ Returns the module name of the \s-1JSON\s0 decoder. Unlike \*(L"json_backend\*(R", this
254
+ is not necessarily a full \s-1JSON\s0\-style module, but only something that will
255
+ provide a \f(CW\*(C`decode_json\*(C'\fR subroutine. If \f(CW\*(C`CPAN_META_JSON_DECODER\*(C'\fR is set,
256
+ this will be whatever that's set to. If not, this will be whatever has
257
+ been selected as \*(L"json_backend\*(R". See \*(L"\s-1ENVIRONMENT\*(R"\s0 for more notes.
258
+ .SH "FUNCTIONS"
259
+ .IX Header "FUNCTIONS"
260
+ For maintenance clarity, no functions are exported by default. These functions
261
+ are available for backwards compatibility only and are best avoided in favor of
262
+ \&\f(CW\*(C`load_file\*(C'\fR.
263
+ .SS "Load"
264
+ .IX Subsection "Load"
265
+ .Vb 1
266
+ \& my @yaml = Parse::CPAN::Meta::Load( $string );
267
+ .Ve
268
+ .PP
269
+ Parses a string containing a valid \s-1YAML\s0 stream into a list of Perl data
270
+ structures.
271
+ .SS "LoadFile"
272
+ .IX Subsection "LoadFile"
273
+ .Vb 1
274
+ \& my @yaml = Parse::CPAN::Meta::LoadFile( \*(AqMETA.yml\*(Aq );
275
+ .Ve
276
+ .PP
277
+ Reads the \s-1YAML\s0 stream from a file instead of a string.
278
+ .SH "ENVIRONMENT"
279
+ .IX Header "ENVIRONMENT"
280
+ .SS "\s-1CPAN_META_JSON_DECODER\s0"
281
+ .IX Subsection "CPAN_META_JSON_DECODER"
282
+ By default, \s-1JSON::PP\s0 will be used for deserializing \s-1JSON\s0 data. If the
283
+ \&\f(CW\*(C`CPAN_META_JSON_DECODER\*(C'\fR environment variable exists, this is expected to
284
+ be the name of a loadable module that provides a \f(CW\*(C`decode_json\*(C'\fR subroutine,
285
+ which will then be used for deserialization. Relying only on the existence
286
+ of said subroutine allows for maximum compatibility, since this \s-1API\s0 is
287
+ provided by all of \s-1JSON::PP\s0, \s-1JSON::XS\s0, Cpanel::JSON::XS,
288
+ JSON::MaybeXS, JSON::Tiny, and Mojo::JSON.
289
+ .SS "\s-1CPAN_META_JSON_BACKEND\s0"
290
+ .IX Subsection "CPAN_META_JSON_BACKEND"
291
+ By default, \s-1JSON::PP\s0 will be used for deserializing \s-1JSON\s0 data. If the
292
+ \&\f(CW\*(C`CPAN_META_JSON_BACKEND\*(C'\fR environment variable exists, this is expected to
293
+ be the name of a loadable module that provides the \s-1JSON\s0 \s-1API,\s0 since
294
+ downstream code expects to be able to call \f(CW\*(C`new\*(C'\fR on this class. As such,
295
+ while \s-1JSON::PP\s0, \s-1JSON::XS\s0, Cpanel::JSON::XS and JSON::MaybeXS will
296
+ work for this, to use Mojo::JSON or JSON::Tiny for decoding requires
297
+ setting \*(L"\s-1CPAN_META_JSON_DECODER\*(R"\s0.
298
+ .SS "\s-1PERL_JSON_BACKEND\s0"
299
+ .IX Subsection "PERL_JSON_BACKEND"
300
+ If the \f(CW\*(C`CPAN_META_JSON_BACKEND\*(C'\fR environment variable does not exist, and if
301
+ \&\f(CW\*(C`PERL_JSON_BACKEND\*(C'\fR environment variable exists, is true and is not
302
+ \&\*(L"\s-1JSON::PP\*(R",\s0 then the \s-1JSON\s0 module (version 2.5 or greater) will be loaded and
303
+ used to interpret \f(CW\*(C`PERL_JSON_BACKEND\*(C'\fR. If \s-1JSON\s0 is not installed or is too
304
+ old, an exception will be thrown. Note that at the time of writing, the only
305
+ useful values are 1, which will tell \s-1JSON\s0 to guess, or \s-1JSON::XS\s0 \- if
306
+ you want to use a newer \s-1JSON\s0 module, see \*(L"\s-1CPAN_META_JSON_BACKEND\*(R"\s0.
307
+ .SS "\s-1PERL_YAML_BACKEND\s0"
308
+ .IX Subsection "PERL_YAML_BACKEND"
309
+ By default, CPAN::Meta::YAML will be used for deserializing \s-1YAML\s0 data. If
310
+ the \f(CW\*(C`PERL_YAML_BACKEND\*(C'\fR environment variable is defined, then it is interpreted
311
+ as a module to use for deserialization. The given module must be installed,
312
+ must load correctly and must implement the \f(CW\*(C`Load()\*(C'\fR function or an exception
313
+ will be thrown.
314
+ .SH "AUTHORS"
315
+ .IX Header "AUTHORS"
316
+ .IP "\(bu" 4
317
+ David Golden <dagolden@cpan.org>
318
+ .IP "\(bu" 4
319
+ Ricardo Signes <rjbs@cpan.org>
320
+ .IP "\(bu" 4
321
+ Adam Kennedy <adamk@cpan.org>
322
+ .SH "COPYRIGHT AND LICENSE"
323
+ .IX Header "COPYRIGHT AND LICENSE"
324
+ This software is copyright (c) 2010 by David Golden, Ricardo Signes, Adam Kennedy and Contributors.
325
+ .PP
326
+ This is free software; you can redistribute it and/or modify it under
327
+ the same terms as the Perl 5 programming language system itself.
data/miniconda3/man/man3/PerlIO%3A%3Ascalar.3 ADDED
@@ -0,0 +1,172 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "PerlIO::scalar 3"
136
+ .TH PerlIO::scalar 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
+ PerlIO::scalar \- in\-memory IO, scalar IO
143
+ .SH "SYNOPSIS"
144
+ .IX Header "SYNOPSIS"
145
+ .Vb 5
146
+ \& my $scalar = \*(Aq\*(Aq;
147
+ \& ...
148
+ \& open my $fh, "<", \e$scalar or die;
149
+ \& open my $fh, ">", \e$scalar or die;
150
+ \& open my $fh, ">>", \e$scalar or die;
151
+ .Ve
152
+ .PP
153
+ or
154
+ .PP
155
+ .Vb 5
156
+ \& my $scalar = \*(Aq\*(Aq;
157
+ \& ...
158
+ \& open my $fh, "<:scalar", \e$scalar or die;
159
+ \& open my $fh, ">:scalar", \e$scalar or die;
160
+ \& open my $fh, ">>:scalar", \e$scalar or die;
161
+ .Ve
162
+ .SH "DESCRIPTION"
163
+ .IX Header "DESCRIPTION"
164
+ A filehandle is opened but the file operations are performed \*(L"in-memory\*(R"
165
+ on a scalar variable. All the normal file operations can be performed
166
+ on the handle. The scalar is considered a stream of bytes. Currently
167
+ fileno($fh) returns \-1.
168
+ .SH "IMPLEMENTATION NOTE"
169
+ .IX Header "IMPLEMENTATION NOTE"
170
+ \&\f(CW\*(C`PerlIO::scalar\*(C'\fR only exists to use XSLoader to load C code that
171
+ provides support for treating a scalar as an \*(L"in memory\*(R" file.
172
+ One does not need to explicitly \f(CW\*(C`use PerlIO::scalar\*(C'\fR.
data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3AToANSI.3 ADDED
@@ -0,0 +1,185 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "Pod::Perldoc::ToANSI 3"
136
+ .TH Pod::Perldoc::ToANSI 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
+ Pod::Perldoc::ToANSI \- render Pod with ANSI color escapes
143
+ .SH "SYNOPSIS"
144
+ .IX Header "SYNOPSIS"
145
+ .Vb 1
146
+ \& perldoc \-o ansi Some::Modulename
147
+ .Ve
148
+ .SH "DESCRIPTION"
149
+ .IX Header "DESCRIPTION"
150
+ This is a \*(L"plug-in\*(R" class that allows Perldoc to use
151
+ Pod::Text as a formatter class.
152
+ .PP
153
+ It supports the following options, which are explained in
154
+ Pod::Text: alt, indent, loose, quotes, sentence, width
155
+ .PP
156
+ For example:
157
+ .PP
158
+ .Vb 1
159
+ \& perldoc \-o term \-w indent:5 Some::Modulename
160
+ .Ve
161
+ .SH "CAVEAT"
162
+ .IX Header "CAVEAT"
163
+ This module may change to use a different text formatter class in the
164
+ future, and this may change what options are supported.
165
+ .SH "SEE ALSO"
166
+ .IX Header "SEE ALSO"
167
+ Pod::Text, Pod::Text::Color, Pod::Perldoc
168
+ .SH "COPYRIGHT AND DISCLAIMERS"
169
+ .IX Header "COPYRIGHT AND DISCLAIMERS"
170
+ Copyright (c) 2011 Mark Allen. All rights reserved.
171
+ .PP
172
+ This library is free software; you can redistribute it and/or modify it
173
+ under the same terms as Perl itself.
174
+ .PP
175
+ This program is distributed in the hope that it will be useful, but
176
+ without any warranty; without even the implied warranty of
177
+ merchantability or fitness for a particular purpose.
178
+ .SH "AUTHOR"
179
+ .IX Header "AUTHOR"
180
+ Current maintainer: Mark Allen \f(CW\*(C`<mallen@cpan.org>\*(C'\fR
181
+ .PP
182
+ Past contributions from:
183
+ brian d foy \f(CW\*(C`<bdfoy@cpan.org>\*(C'\fR
184
+ Adriano R. Ferreira \f(CW\*(C`<ferreira@cpan.org>\*(C'\fR,
185
+ Sean M. Burke \f(CW\*(C`<sburke@cpan.org>\*(C'\fR
data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3AToMan.3 ADDED
@@ -0,0 +1,189 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "Pod::Perldoc::ToMan 3"
136
+ .TH Pod::Perldoc::ToMan 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
+ Pod::Perldoc::ToMan \- let Perldoc render Pod as man pages
143
+ .SH "SYNOPSIS"
144
+ .IX Header "SYNOPSIS"
145
+ .Vb 1
146
+ \& perldoc \-o man Some::Modulename
147
+ .Ve
148
+ .SH "DESCRIPTION"
149
+ .IX Header "DESCRIPTION"
150
+ This is a \*(L"plug-in\*(R" class that allows Perldoc to use
151
+ Pod::Man and \f(CW\*(C`groff\*(C'\fR for reading Pod pages.
152
+ .PP
153
+ The following options are supported: center, date, fixed, fixedbold,
154
+ fixeditalic, fixedbolditalic, quotes, release, section
155
+ .PP
156
+ (Those options are explained in Pod::Man.)
157
+ .PP
158
+ For example:
159
+ .PP
160
+ .Vb 1
161
+ \& perldoc \-o man \-w center:Pod Some::Modulename
162
+ .Ve
163
+ .SH "CAVEAT"
164
+ .IX Header "CAVEAT"
165
+ This module may change to use a different pod-to-nroff formatter class
166
+ in the future, and this may change what options are supported.
167
+ .SH "SEE ALSO"
168
+ .IX Header "SEE ALSO"
169
+ Pod::Man, Pod::Perldoc, Pod::Perldoc::ToNroff
170
+ .SH "COPYRIGHT AND DISCLAIMERS"
171
+ .IX Header "COPYRIGHT AND DISCLAIMERS"
172
+ Copyright (c) 2011 brian d foy. All rights reserved.
173
+ .PP
174
+ Copyright (c) 2002,3,4 Sean M. Burke. All rights reserved.
175
+ .PP
176
+ This library is free software; you can redistribute it and/or modify it
177
+ under the same terms as Perl itself.
178
+ .PP
179
+ This program is distributed in the hope that it will be useful, but
180
+ without any warranty; without even the implied warranty of
181
+ merchantability or fitness for a particular purpose.
182
+ .SH "AUTHOR"
183
+ .IX Header "AUTHOR"
184
+ Current maintainer: Mark Allen \f(CW\*(C`<mallen@cpan.org>\*(C'\fR
185
+ .PP
186
+ Past contributions from:
187
+ brian d foy \f(CW\*(C`<bdfoy@cpan.org>\*(C'\fR
188
+ Adriano R. Ferreira \f(CW\*(C`<ferreira@cpan.org>\*(C'\fR,
189
+ Sean M. Burke \f(CW\*(C`<sburke@cpan.org>\*(C'\fR
data/miniconda3/man/man3/Pod%3A%3APerldoc%3A%3AToTerm.3 ADDED
@@ -0,0 +1,186 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "Pod::Perldoc::ToTerm 3"
136
+ .TH Pod::Perldoc::ToTerm 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
+ Pod::Perldoc::ToTerm \- render Pod with terminal escapes
143
+ .SH "SYNOPSIS"
144
+ .IX Header "SYNOPSIS"
145
+ .Vb 1
146
+ \& perldoc \-o term Some::Modulename
147
+ .Ve
148
+ .SH "DESCRIPTION"
149
+ .IX Header "DESCRIPTION"
150
+ This is a \*(L"plug-in\*(R" class that allows Perldoc to use
151
+ Pod::Text as a formatter class.
152
+ .PP
153
+ It supports the following options, which are explained in
154
+ Pod::Text: alt, indent, loose, quotes, sentence, width
155
+ .PP
156
+ For example:
157
+ .PP
158
+ .Vb 1
159
+ \& perldoc \-o term \-w indent:5 Some::Modulename
160
+ .Ve
161
+ .SH "PAGER FORMATTING"
162
+ .IX Header "PAGER FORMATTING"
163
+ Depending on the platform, and because this class emits terminal escapes it
164
+ will attempt to set the \f(CW\*(C`\-R\*(C'\fR flag on your pager by injecting the flag into
165
+ your environment variable for \f(CW\*(C`less\*(C'\fR or \f(CW\*(C`more\*(C'\fR.
166
+ .PP
167
+ On Windows and \s-1DOS,\s0 this class will not modify any environment variables.
168
+ .SH "CAVEAT"
169
+ .IX Header "CAVEAT"
170
+ This module may change to use a different text formatter class in the
171
+ future, and this may change what options are supported.
172
+ .SH "SEE ALSO"
173
+ .IX Header "SEE ALSO"
174
+ Pod::Text, Pod::Text::Termcap, Pod::Perldoc
175
+ .SH "COPYRIGHT AND DISCLAIMERS"
176
+ .IX Header "COPYRIGHT AND DISCLAIMERS"
177
+ Copyright (c) 2017 Mark Allen.
178
+ .PP
179
+ This program is free software; you can redistribute it and/or modify it
180
+ under the terms of either: the \s-1GNU\s0 General Public License as published
181
+ by the Free Software Foundation; or the Artistic License.
182
+ .PP
183
+ See http://dev.perl.org/licenses/ for more information.
184
+ .SH "AUTHOR"
185
+ .IX Header "AUTHOR"
186
+ Mark Allen \f(CW\*(C`<mallen@cpan.org>\*(C'\fR
data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3ARTF.3 ADDED
@@ -0,0 +1,266 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "Pod::Simple::RTF 3"
136
+ .TH Pod::Simple::RTF 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
+ Pod::Simple::RTF \-\- format Pod as RTF
143
+ .SH "SYNOPSIS"
144
+ .IX Header "SYNOPSIS"
145
+ .Vb 3
146
+ \& perl \-MPod::Simple::RTF \-e \e
147
+ \& "exit Pod::Simple::RTF\->filter(shift)\->any_errata_seen" \e
148
+ \& thingy.pod > thingy.rtf
149
+ .Ve
150
+ .SH "DESCRIPTION"
151
+ .IX Header "DESCRIPTION"
152
+ This class is a formatter that takes Pod and renders it as \s-1RTF,\s0 good for
153
+ viewing/printing in MSWord, WordPad/write.exe, TextEdit, etc.
154
+ .PP
155
+ This is a subclass of Pod::Simple and inherits all its methods.
156
+ .SH "FORMAT CONTROL ATTRIBUTES"
157
+ .IX Header "FORMAT CONTROL ATTRIBUTES"
158
+ You can set these attributes on the parser object before you
159
+ call \f(CW\*(C`parse_file\*(C'\fR (or a similar method) on it:
160
+ .ie n .IP "$parser\->head1_halfpoint_size( \fIhalfpoint_integer\fR );" 4
161
+ .el .IP "\f(CW$parser\fR\->head1_halfpoint_size( \fIhalfpoint_integer\fR );" 4
162
+ .IX Item "$parser->head1_halfpoint_size( halfpoint_integer );"
163
+ .PD 0
164
+ .ie n .IP "$parser\->head2_halfpoint_size( \fIhalfpoint_integer\fR );" 4
165
+ .el .IP "\f(CW$parser\fR\->head2_halfpoint_size( \fIhalfpoint_integer\fR );" 4
166
+ .IX Item "$parser->head2_halfpoint_size( halfpoint_integer );"
167
+ .ie n .IP "$parser\->head3_halfpoint_size( \fIhalfpoint_integer\fR );" 4
168
+ .el .IP "\f(CW$parser\fR\->head3_halfpoint_size( \fIhalfpoint_integer\fR );" 4
169
+ .IX Item "$parser->head3_halfpoint_size( halfpoint_integer );"
170
+ .ie n .IP "$parser\->head4_halfpoint_size( \fIhalfpoint_integer\fR );" 4
171
+ .el .IP "\f(CW$parser\fR\->head4_halfpoint_size( \fIhalfpoint_integer\fR );" 4
172
+ .IX Item "$parser->head4_halfpoint_size( halfpoint_integer );"
173
+ .PD
174
+ These methods set the size (in half-points, like 52 for 26\-point)
175
+ that these heading levels will appear as.
176
+ .ie n .IP "$parser\->codeblock_halfpoint_size( \fIhalfpoint_integer\fR );" 4
177
+ .el .IP "\f(CW$parser\fR\->codeblock_halfpoint_size( \fIhalfpoint_integer\fR );" 4
178
+ .IX Item "$parser->codeblock_halfpoint_size( halfpoint_integer );"
179
+ This method sets the size (in half-points, like 21 for 10.5\-point)
180
+ that codeblocks (\*(L"verbatim sections\*(R") will appear as.
181
+ .ie n .IP "$parser\->header_halfpoint_size( \fIhalfpoint_integer\fR );" 4
182
+ .el .IP "\f(CW$parser\fR\->header_halfpoint_size( \fIhalfpoint_integer\fR );" 4
183
+ .IX Item "$parser->header_halfpoint_size( halfpoint_integer );"
184
+ This method sets the size (in half-points, like 15 for 7.5\-point)
185
+ that the header on each page will appear in. The header
186
+ is usually just "\fImodulename\fR p. \fIpagenumber\fR".
187
+ .ie n .IP "$parser\->normal_halfpoint_size( \fIhalfpoint_integer\fR );" 4
188
+ .el .IP "\f(CW$parser\fR\->normal_halfpoint_size( \fIhalfpoint_integer\fR );" 4
189
+ .IX Item "$parser->normal_halfpoint_size( halfpoint_integer );"
190
+ This method sets the size (in half-points, like 26 for 13\-point)
191
+ that normal paragraphic text will appear in.
192
+ .ie n .IP "$parser\->no_proofing_exemptions( \fItrue_or_false\fR );" 4
193
+ .el .IP "\f(CW$parser\fR\->no_proofing_exemptions( \fItrue_or_false\fR );" 4
194
+ .IX Item "$parser->no_proofing_exemptions( true_or_false );"
195
+ Set this value to true if you don't want the formatter to try
196
+ putting a hidden code on all Perl symbols (as best as it can
197
+ notice them) that labels them as being not in English, and
198
+ so not worth spellchecking.
199
+ .ie n .IP "$parser\->doc_lang( \fImicrosoft_decimal_language_code\fR )" 4
200
+ .el .IP "\f(CW$parser\fR\->doc_lang( \fImicrosoft_decimal_language_code\fR )" 4
201
+ .IX Item "$parser->doc_lang( microsoft_decimal_language_code )"
202
+ This sets the language code to tag this document as being in. By
203
+ default, it is currently the value of the environment variable
204
+ \&\f(CW\*(C`RTFDEFLANG\*(C'\fR, or if that's not set, then the value
205
+ 1033 (for \s-1US\s0 English).
206
+ .Sp
207
+ Setting this appropriately is useful if you want to use the \s-1RTF\s0
208
+ to spellcheck, and/or if you want it to hyphenate right.
209
+ .Sp
210
+ Here are some notable values:
211
+ .Sp
212
+ .Vb 12
213
+ \& 1033 US English
214
+ \& 2057 UK English
215
+ \& 3081 Australia English
216
+ \& 4105 Canada English
217
+ \& 1034 Spain Spanish
218
+ \& 2058 Mexico Spanish
219
+ \& 1031 Germany German
220
+ \& 1036 France French
221
+ \& 3084 Canada French
222
+ \& 1035 Finnish
223
+ \& 1044 Norwegian (Bokmal)
224
+ \& 2068 Norwegian (Nynorsk)
225
+ .Ve
226
+ .PP
227
+ If you are particularly interested in customizing this module's output
228
+ even more, see the source and/or write to me.
229
+ .SH "SEE ALSO"
230
+ .IX Header "SEE ALSO"
231
+ Pod::Simple, RTF::Writer, RTF::Cookbook, RTF::Document,
232
+ RTF::Generator
233
+ .SH "SUPPORT"
234
+ .IX Header "SUPPORT"
235
+ Questions or discussion about \s-1POD\s0 and Pod::Simple should be sent to the
236
+ pod\-people@perl.org mail list. Send an empty email to
237
+ pod\-people\-subscribe@perl.org to subscribe.
238
+ .PP
239
+ This module is managed in an open GitHub repository,
240
+ <https://github.com/perl\-pod/pod\-simple/>. Feel free to fork and contribute, or
241
+ to clone <git://github.com/perl\-pod/pod\-simple.git> and send patches!
242
+ .PP
243
+ Patches against Pod::Simple are welcome. Please send bug reports to
244
+ <bug\-pod\-simple@rt.cpan.org>.
245
+ .SH "COPYRIGHT AND DISCLAIMERS"
246
+ .IX Header "COPYRIGHT AND DISCLAIMERS"
247
+ Copyright (c) 2002 Sean M. Burke.
248
+ .PP
249
+ This library is free software; you can redistribute it and/or modify it
250
+ under the same terms as Perl itself.
251
+ .PP
252
+ This program is distributed in the hope that it will be useful, but
253
+ without any warranty; without even the implied warranty of
254
+ merchantability or fitness for a particular purpose.
255
+ .SH "AUTHOR"
256
+ .IX Header "AUTHOR"
257
+ Pod::Simple was created by Sean M. Burke <sburke@cpan.org>.
258
+ But don't bother him, he's retired.
259
+ .PP
260
+ Pod::Simple is maintained by:
261
+ .IP "\(bu" 4
262
+ Allison Randal \f(CW\*(C`allison@perl.org\*(C'\fR
263
+ .IP "\(bu" 4
264
+ Hans Dieter Pearcey \f(CW\*(C`hdp@cpan.org\*(C'\fR
265
+ .IP "\(bu" 4
266
+ David E. Wheeler \f(CW\*(C`dwheeler@cpan.org\*(C'\fR
data/miniconda3/man/man3/Pod%3A%3ASimple%3A%3ASubclassing.3 ADDED
@@ -0,0 +1,1290 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "Pod::Simple::Subclassing 3"
136
+ .TH Pod::Simple::Subclassing 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
+ Pod::Simple::Subclassing \-\- write a formatter as a Pod::Simple subclass
143
+ .SH "SYNOPSIS"
144
+ .IX Header "SYNOPSIS"
145
+ .Vb 5
146
+ \& package Pod::SomeFormatter;
147
+ \& use Pod::Simple;
148
+ \& @ISA = qw(Pod::Simple);
149
+ \& $VERSION = \*(Aq1.01\*(Aq;
150
+ \& use strict;
151
+ \&
152
+ \& sub _handle_element_start {
153
+ \& my($parser, $element_name, $attr_hash_r) = @_;
154
+ \& ...
155
+ \& }
156
+ \&
157
+ \& sub _handle_element_end {
158
+ \& my($parser, $element_name, $attr_hash_r) = @_;
159
+ \& # NOTE: $attr_hash_r is only present when $element_name is "over" or "begin"
160
+ \& # The remaining code excerpts will mostly ignore this $attr_hash_r, as it is
161
+ \& # mostly useless. It is documented where "over\-*" and "begin" events are
162
+ \& # documented.
163
+ \& ...
164
+ \& }
165
+ \&
166
+ \& sub _handle_text {
167
+ \& my($parser, $text) = @_;
168
+ \& ...
169
+ \& }
170
+ \& 1;
171
+ .Ve
172
+ .SH "DESCRIPTION"
173
+ .IX Header "DESCRIPTION"
174
+ This document is about using Pod::Simple to write a Pod processor,
175
+ generally a Pod formatter. If you just want to know about using an
176
+ existing Pod formatter, instead see its documentation and see also the
177
+ docs in Pod::Simple.
178
+ .PP
179
+ \&\fBThe zeroeth step\fR in writing a Pod formatter is to make sure that there
180
+ isn't already a decent one in \s-1CPAN.\s0 See <http://search.cpan.org/>, and
181
+ run a search on the name of the format you want to render to. Also
182
+ consider joining the Pod People list
183
+ <http://lists.perl.org/showlist.cgi?name=pod\-people> and asking whether
184
+ anyone has a formatter for that format \*(-- maybe someone cobbled one
185
+ together but just hasn't released it.
186
+ .PP
187
+ \&\fBThe first step\fR in writing a Pod processor is to read perlpodspec,
188
+ which contains information on writing a Pod parser (which has been
189
+ largely taken care of by Pod::Simple), but also a lot of requirements
190
+ and recommendations for writing a formatter.
191
+ .PP
192
+ \&\fBThe second step\fR is to actually learn the format you're planning to
193
+ format to \*(-- or at least as much as you need to know to represent Pod,
194
+ which probably isn't much.
195
+ .PP
196
+ \&\fBThe third step\fR is to pick which of Pod::Simple's interfaces you want to
197
+ use:
198
+ .IP "Pod::Simple" 4
199
+ .IX Item "Pod::Simple"
200
+ The basic Pod::Simple interface that uses \f(CW\*(C`_handle_element_start()\*(C'\fR,
201
+ \&\f(CW\*(C`_handle_element_end()\*(C'\fR and \f(CW\*(C`_handle_text()\*(C'\fR.
202
+ .IP "Pod::Simple::Methody" 4
203
+ .IX Item "Pod::Simple::Methody"
204
+ The Pod::Simple::Methody interface is event-based, similar to that of
205
+ HTML::Parser or XML::Parser's \*(L"Handlers\*(R".
206
+ .IP "Pod::Simple::PullParser" 4
207
+ .IX Item "Pod::Simple::PullParser"
208
+ Pod::Simple::PullParser provides a token-stream interface, sort of
209
+ like HTML::TokeParser's interface.
210
+ .IP "Pod::Simple::SimpleTree" 4
211
+ .IX Item "Pod::Simple::SimpleTree"
212
+ Pod::Simple::SimpleTree provides a simple tree interface, rather like
213
+ XML::Parser's \*(L"Tree\*(R" interface. Users familiar with \s-1XML\s0 handling will
214
+ be comfortable with this interface. Users interested in outputting \s-1XML,\s0
215
+ should look into the modules that produce an \s-1XML\s0 representation of the
216
+ Pod stream, notably Pod::Simple::XMLOutStream; you can feed the output
217
+ of such a class to whatever \s-1XML\s0 parsing system you are most at home with.
218
+ .PP
219
+ \&\fBThe last step\fR is to write your code based on how the events (or tokens,
220
+ or tree-nodes, or the \s-1XML,\s0 or however you're parsing) will map to
221
+ constructs in the output format. Also be sure to consider how to escape
222
+ text nodes containing arbitrary text, and what to do with text
223
+ nodes that represent preformatted text (from verbatim sections).
224
+ .SH "Events"
225
+ .IX Header "Events"
226
+ \&\s-1TODO\s0 intro... mention that events are supplied for implicits, like for
227
+ missing >'s
228
+ .PP
229
+ In the following section, we use \s-1XML\s0 to represent the event structure
230
+ associated with a particular construct. That is, an opening tag
231
+ represents the element start, the attributes of that opening tag are
232
+ the attributes given to the callback, and the closing tag represents
233
+ the end element.
234
+ .PP
235
+ Three callback methods must be supplied by a class extending
236
+ Pod::Simple to receive the corresponding event:
237
+ .ie n .IP """$parser\->_handle_element_start( \fIelement_name\fP, \fIattr_hashref\fP )""" 4
238
+ .el .IP "\f(CW$parser\->_handle_element_start( \f(CIelement_name\f(CW, \f(CIattr_hashref\f(CW )\fR" 4
239
+ .IX Item "$parser->_handle_element_start( element_name, attr_hashref )"
240
+ .PD 0
241
+ .ie n .IP """$parser\->_handle_element_end( \fIelement_name\fP )""" 4
242
+ .el .IP "\f(CW$parser\->_handle_element_end( \f(CIelement_name\f(CW )\fR" 4
243
+ .IX Item "$parser->_handle_element_end( element_name )"
244
+ .ie n .IP """$parser\->_handle_text( \fItext_string\fP )""" 4
245
+ .el .IP "\f(CW$parser\->_handle_text( \f(CItext_string\f(CW )\fR" 4
246
+ .IX Item "$parser->_handle_text( text_string )"
247
+ .PD
248
+ .PP
249
+ Here's the comprehensive list of values you can expect as
250
+ \&\fIelement_name\fR in your implementation of \f(CW\*(C`_handle_element_start\*(C'\fR
251
+ and \f(CW\*(C`_handle_element_end\*(C'\fR::
252
+ .IP "events with an element_name of Document" 4
253
+ .IX Item "events with an element_name of Document"
254
+ Parsing a document produces this event structure:
255
+ .Sp
256
+ .Vb 3
257
+ \& <Document start_line="543">
258
+ \& ...all events...
259
+ \& </Document>
260
+ .Ve
261
+ .Sp
262
+ The value of the \fIstart_line\fR attribute will be the line number of the first
263
+ Pod directive in the document.
264
+ .Sp
265
+ If there is no Pod in the given document, then the
266
+ event structure will be this:
267
+ .Sp
268
+ .Vb 2
269
+ \& <Document contentless="1" start_line="543">
270
+ \& </Document>
271
+ .Ve
272
+ .Sp
273
+ In that case, the value of the \fIstart_line\fR attribute will not be meaningful;
274
+ under current implementations, it will probably be the line number of the
275
+ last line in the file.
276
+ .IP "events with an element_name of Para" 4
277
+ .IX Item "events with an element_name of Para"
278
+ Parsing a plain (non-verbatim, non-directive, non-data) paragraph in
279
+ a Pod document produces this event structure:
280
+ .Sp
281
+ .Vb 3
282
+ \& <Para start_line="543">
283
+ \& ...all events in this paragraph...
284
+ \& </Para>
285
+ .Ve
286
+ .Sp
287
+ The value of the \fIstart_line\fR attribute will be the line number of the start
288
+ of the paragraph.
289
+ .Sp
290
+ For example, parsing this paragraph of Pod:
291
+ .Sp
292
+ .Vb 2
293
+ \& The value of the I<start_line> attribute will be the
294
+ \& line number of the start of the paragraph.
295
+ .Ve
296
+ .Sp
297
+ produces this event structure:
298
+ .Sp
299
+ .Vb 8
300
+ \& <Para start_line="129">
301
+ \& The value of the
302
+ \& <I>
303
+ \& start_line
304
+ \& </I>
305
+ \& attribute will be the line number of the first Pod directive
306
+ \& in the document.
307
+ \& </Para>
308
+ .Ve
309
+ .IP "events with an element_name of B, C, F, or I." 4
310
+ .IX Item "events with an element_name of B, C, F, or I."
311
+ Parsing a B<...> formatting code (or of course any of its
312
+ semantically identical syntactic variants
313
+ B<<\ ...\ >>,
314
+ or B<<<<\ ...\ >>>>, etc.)
315
+ produces this event structure:
316
+ .Sp
317
+ .Vb 3
318
+ \& <B>
319
+ \& ...stuff...
320
+ \& </B>
321
+ .Ve
322
+ .Sp
323
+ Currently, there are no attributes conveyed.
324
+ .Sp
325
+ Parsing C, F, or I codes produce the same structure, with only a
326
+ different element name.
327
+ .Sp
328
+ If your parser object has been set to accept other formatting codes,
329
+ then they will be presented like these B/C/F/I codes \*(-- i.e., without
330
+ any attributes.
331
+ .IP "events with an element_name of S" 4
332
+ .IX Item "events with an element_name of S"
333
+ Normally, parsing an S<...> sequence produces this event
334
+ structure, just as if it were a B/C/F/I code:
335
+ .Sp
336
+ .Vb 3
337
+ \& <S>
338
+ \& ...stuff...
339
+ \& </S>
340
+ .Ve
341
+ .Sp
342
+ However, Pod::Simple (and presumably all derived parsers) offers the
343
+ \&\f(CW\*(C`nbsp_for_S\*(C'\fR option which, if enabled, will suppress all S events, and
344
+ instead change all spaces in the content to non-breaking spaces. This is
345
+ intended for formatters that output to a format that has no code that
346
+ means the same as S<...>, but which has a code/character that
347
+ means non-breaking space.
348
+ .IP "events with an element_name of X" 4
349
+ .IX Item "events with an element_name of X"
350
+ Normally, parsing an X<...> sequence produces this event
351
+ structure, just as if it were a B/C/F/I code:
352
+ .Sp
353
+ .Vb 3
354
+ \& <X>
355
+ \& ...stuff...
356
+ \& </X>
357
+ .Ve
358
+ .Sp
359
+ However, Pod::Simple (and presumably all derived parsers) offers the
360
+ \&\f(CW\*(C`nix_X_codes\*(C'\fR option which, if enabled, will suppress all X events
361
+ and ignore their content. For formatters/processors that don't use
362
+ X events, this is presumably quite useful.
363
+ .IP "events with an element_name of L" 4
364
+ .IX Item "events with an element_name of L"
365
+ Because the L<...> is the most complex construct in the
366
+ language, it should not surprise you that the events it generates are
367
+ the most complex in the language. Most of complexity is hidden away in
368
+ the attribute values, so for those of you writing a Pod formatter that
369
+ produces a non-hypertextual format, you can just ignore the attributes
370
+ and treat an L event structure like a formatting element that
371
+ (presumably) doesn't actually produce a change in formatting. That is,
372
+ the content of the L event structure (as opposed to its
373
+ attributes) is always what text should be displayed.
374
+ .Sp
375
+ There are, at first glance, three kinds of L links: \s-1URL,\s0 man, and pod.
376
+ .Sp
377
+ When a L<\fIsome_url\fR> code is parsed, it produces this event
378
+ structure:
379
+ .Sp
380
+ .Vb 3
381
+ \& <L content\-implicit="yes" raw="that_url" to="that_url" type="url">
382
+ \& that_url
383
+ \& </L>
384
+ .Ve
385
+ .Sp
386
+ The \f(CW\*(C`type="url"\*(C'\fR attribute is always specified for this type of
387
+ L code.
388
+ .Sp
389
+ For example, this Pod source:
390
+ .Sp
391
+ .Vb 1
392
+ \& L<http://www.perl.com/CPAN/authors/>
393
+ .Ve
394
+ .Sp
395
+ produces this event structure:
396
+ .Sp
397
+ .Vb 3
398
+ \& <L content\-implicit="yes" raw="http://www.perl.com/CPAN/authors/" to="http://www.perl.com/CPAN/authors/" type="url">
399
+ \& http://www.perl.com/CPAN/authors/
400
+ \& </L>
401
+ .Ve
402
+ .Sp
403
+ When a L<\fImanpage(section)\fR> code is parsed (and these are
404
+ fairly rare and not terribly useful), it produces this event structure:
405
+ .Sp
406
+ .Vb 3
407
+ \& <L content\-implicit="yes" raw="manpage(section)" to="manpage(section)" type="man">
408
+ \& manpage(section)
409
+ \& </L>
410
+ .Ve
411
+ .Sp
412
+ The \f(CW\*(C`type="man"\*(C'\fR attribute is always specified for this type of
413
+ L code.
414
+ .Sp
415
+ For example, this Pod source:
416
+ .Sp
417
+ .Vb 1
418
+ \& L<crontab(5)>
419
+ .Ve
420
+ .Sp
421
+ produces this event structure:
422
+ .Sp
423
+ .Vb 3
424
+ \& <L content\-implicit="yes" raw="crontab(5)" to="crontab(5)" type="man">
425
+ \& crontab(5)
426
+ \& </L>
427
+ .Ve
428
+ .Sp
429
+ In the rare cases where a man page link has a section specified, that text appears
430
+ in a \fIsection\fR attribute. For example, this Pod source:
431
+ .Sp
432
+ .Vb 1
433
+ \& L<crontab(5)/"ENVIRONMENT">
434
+ .Ve
435
+ .Sp
436
+ will produce this event structure:
437
+ .Sp
438
+ .Vb 3
439
+ \& <L content\-implicit="yes" raw="crontab(5)/&quot;ENVIRONMENT&quot;" section="ENVIRONMENT" to="crontab(5)" type="man">
440
+ \& "ENVIRONMENT" in crontab(5)
441
+ \& </L>
442
+ .Ve
443
+ .Sp
444
+ In the rare case where the Pod document has code like
445
+ L<\fIsometext\fR|\fImanpage(section)\fR>, then the \fIsometext\fR will appear
446
+ as the content of the element, the \fImanpage(section)\fR text will appear
447
+ only as the value of the \fIto\fR attribute, and there will be no
448
+ \&\f(CW\*(C`content\-implicit="yes"\*(C'\fR attribute (whose presence means that the Pod parser
449
+ had to infer what text should appear as the link text \*(-- as opposed to
450
+ cases where that attribute is absent, which means that the Pod parser did
451
+ \&\fInot\fR have to infer the link text, because that L code explicitly specified
452
+ some link text.)
453
+ .Sp
454
+ For example, this Pod source:
455
+ .Sp
456
+ .Vb 1
457
+ \& L<hell itself!|crontab(5)>
458
+ .Ve
459
+ .Sp
460
+ will produce this event structure:
461
+ .Sp
462
+ .Vb 3
463
+ \& <L raw="hell itself!|crontab(5)" to="crontab(5)" type="man">
464
+ \& hell itself!
465
+ \& </L>
466
+ .Ve
467
+ .Sp
468
+ The last type of L structure is for links to/within Pod documents. It is
469
+ the most complex because it can have a \fIto\fR attribute, \fIor\fR a
470
+ \&\fIsection\fR attribute, or both. The \f(CW\*(C`type="pod"\*(C'\fR attribute is always
471
+ specified for this type of L code.
472
+ .Sp
473
+ In the most common case, the simple case of a L<podpage> code
474
+ produces this event structure:
475
+ .Sp
476
+ .Vb 3
477
+ \& <L content\-implicit="yes" raw="podpage" to="podpage" type="pod">
478
+ \& podpage
479
+ \& </L>
480
+ .Ve
481
+ .Sp
482
+ For example, this Pod source:
483
+ .Sp
484
+ .Vb 1
485
+ \& L<Net::Ping>
486
+ .Ve
487
+ .Sp
488
+ produces this event structure:
489
+ .Sp
490
+ .Vb 3
491
+ \& <L content\-implicit="yes" raw="Net::Ping" to="Net::Ping" type="pod">
492
+ \& Net::Ping
493
+ \& </L>
494
+ .Ve
495
+ .Sp
496
+ In cases where there is link-text explicitly specified, it
497
+ is to be found in the content of the element (and not the
498
+ attributes), just as with the L<\fIsometext\fR|\fImanpage(section)\fR>
499
+ case discussed above. For example, this Pod source:
500
+ .Sp
501
+ .Vb 1
502
+ \& L<Perl Error Messages|perldiag>
503
+ .Ve
504
+ .Sp
505
+ produces this event structure:
506
+ .Sp
507
+ .Vb 3
508
+ \& <L raw="Perl Error Messages|perldiag" to="perldiag" type="pod">
509
+ \& Perl Error Messages
510
+ \& </L>
511
+ .Ve
512
+ .Sp
513
+ In cases of links to a section in the current Pod document,
514
+ there is a \fIsection\fR attribute instead of a \fIto\fR attribute.
515
+ For example, this Pod source:
516
+ .Sp
517
+ .Vb 1
518
+ \& L</"Member Data">
519
+ .Ve
520
+ .Sp
521
+ produces this event structure:
522
+ .Sp
523
+ .Vb 3
524
+ \& <L content\-implicit="yes" raw="/&quot;Member Data&quot;" section="Member Data" type="pod">
525
+ \& "Member Data"
526
+ \& </L>
527
+ .Ve
528
+ .Sp
529
+ As another example, this Pod source:
530
+ .Sp
531
+ .Vb 1
532
+ \& L<the various attributes|/"Member Data">
533
+ .Ve
534
+ .Sp
535
+ produces this event structure:
536
+ .Sp
537
+ .Vb 3
538
+ \& <L raw="the various attributes|/&quot;Member Data&quot;" section="Member Data" type="pod">
539
+ \& the various attributes
540
+ \& </L>
541
+ .Ve
542
+ .Sp
543
+ In cases of links to a section in a different Pod document,
544
+ there are both a \fIsection\fR attribute and a to attribute.
545
+ For example, this Pod source:
546
+ .Sp
547
+ .Vb 1
548
+ \& L<perlsyn/"Basic BLOCKs and Switch Statements">
549
+ .Ve
550
+ .Sp
551
+ produces this event structure:
552
+ .Sp
553
+ .Vb 3
554
+ \& <L content\-implicit="yes" raw="perlsyn/&quot;Basic BLOCKs and Switch Statements&quot;" section="Basic BLOCKs and Switch Statements" to="perlsyn" type="pod">
555
+ \& "Basic BLOCKs and Switch Statements" in perlsyn
556
+ \& </L>
557
+ .Ve
558
+ .Sp
559
+ As another example, this Pod source:
560
+ .Sp
561
+ .Vb 1
562
+ \& L<SWITCH statements|perlsyn/"Basic BLOCKs and Switch Statements">
563
+ .Ve
564
+ .Sp
565
+ produces this event structure:
566
+ .Sp
567
+ .Vb 3
568
+ \& <L raw="SWITCH statements|perlsyn/&quot;Basic BLOCKs and Switch Statements&quot;" section="Basic BLOCKs and Switch Statements" to="perlsyn" type="pod">
569
+ \& SWITCH statements
570
+ \& </L>
571
+ .Ve
572
+ .Sp
573
+ Incidentally, note that we do not distinguish between these syntaxes:
574
+ .Sp
575
+ .Vb 4
576
+ \& L</"Member Data">
577
+ \& L<"Member Data">
578
+ \& L</Member Data>
579
+ \& L<Member Data> [deprecated syntax]
580
+ .Ve
581
+ .Sp
582
+ That is, they all produce the same event structure (for the most part), namely:
583
+ .Sp
584
+ .Vb 3
585
+ \& <L content\-implicit="yes" raw="$depends_on_syntax" section="Member Data" type="pod">
586
+ \& &#34;Member Data&#34;
587
+ \& </L>
588
+ .Ve
589
+ .Sp
590
+ The \fIraw\fR attribute depends on what the raw content of the \f(CW\*(C`L<>\*(C'\fR is,
591
+ so that is why the event structure is the same \*(L"for the most part\*(R".
592
+ .Sp
593
+ If you have not guessed it yet, the \fIraw\fR attribute contains the raw,
594
+ original, unescaped content of the \f(CW\*(C`L<>\*(C'\fR formatting code. In addition
595
+ to the examples above, take notice of the following event structure produced
596
+ by the following \f(CW\*(C`L<>\*(C'\fR formatting code.
597
+ .Sp
598
+ .Vb 1
599
+ \& L<click B<here>|page/About the C<\-M> switch>
600
+ \&
601
+ \& <L raw="click B<here>|page/About the C<\-M> switch" section="About the \-M switch" to="page" type="pod">
602
+ \& click B<here>
603
+ \& </L>
604
+ .Ve
605
+ .Sp
606
+ Specifically, notice that the formatting codes are present and unescaped
607
+ in \fIraw\fR.
608
+ .Sp
609
+ There is a known bug in the \fIraw\fR attribute where any surrounding whitespace
610
+ is condensed into a single ' '. For example, given L< link>, \fIraw\fR
611
+ will be \*(L" link\*(R".
612
+ .IP "events with an element_name of E or Z" 4
613
+ .IX Item "events with an element_name of E or Z"
614
+ While there are Pod codes E<...> and Z<>, these
615
+ \&\fIdo not\fR produce any E or Z events \*(-- that is, there are no such
616
+ events as E or Z.
617
+ .IP "events with an element_name of Verbatim" 4
618
+ .IX Item "events with an element_name of Verbatim"
619
+ When a Pod verbatim paragraph (\s-1AKA\s0 \*(L"codeblock\*(R") is parsed, it
620
+ produces this event structure:
621
+ .Sp
622
+ .Vb 3
623
+ \& <Verbatim start_line="543" xml:space="preserve">
624
+ \& ...text...
625
+ \& </Verbatim>
626
+ .Ve
627
+ .Sp
628
+ The value of the \fIstart_line\fR attribute will be the line number of the
629
+ first line of this verbatim block. The \fIxml:space\fR attribute is always
630
+ present, and always has the value \*(L"preserve\*(R".
631
+ .Sp
632
+ The text content will have tabs already expanded.
633
+ .IP "events with an element_name of head1 .. head4" 4
634
+ .IX Item "events with an element_name of head1 .. head4"
635
+ When a \*(L"=head1 ...\*(R" directive is parsed, it produces this event
636
+ structure:
637
+ .Sp
638
+ .Vb 3
639
+ \& <head1>
640
+ \& ...stuff...
641
+ \& </head1>
642
+ .Ve
643
+ .Sp
644
+ For example, a directive consisting of this:
645
+ .Sp
646
+ .Vb 1
647
+ \& =head1 Options to C<new> et al.
648
+ .Ve
649
+ .Sp
650
+ will produce this event structure:
651
+ .Sp
652
+ .Vb 7
653
+ \& <head1 start_line="543">
654
+ \& Options to
655
+ \& <C>
656
+ \& new
657
+ \& </C>
658
+ \& et al.
659
+ \& </head1>
660
+ .Ve
661
+ .Sp
662
+ \&\*(L"=head2\*(R" through \*(L"=head4\*(R" directives are the same, except for the element
663
+ names in the event structure.
664
+ .IP "events with an element_name of encoding" 4
665
+ .IX Item "events with an element_name of encoding"
666
+ In the default case, the events corresponding to \f(CW\*(C`=encoding\*(C'\fR directives
667
+ are not emitted. They are emitted if \f(CW\*(C`keep_encoding_directive\*(C'\fR is true.
668
+ In that case they produce event structures like
669
+ \&\*(L"events with an element_name of head1 .. head4\*(R" above.
670
+ .IP "events with an element_name of over-bullet" 4
671
+ .IX Item "events with an element_name of over-bullet"
672
+ When an \*(L"=over ... =back\*(R" block is parsed where the items are
673
+ a bulleted list, it will produce this event structure:
674
+ .Sp
675
+ .Vb 6
676
+ \& <over\-bullet indent="4" start_line="543">
677
+ \& <item\-bullet start_line="545">
678
+ \& ...Stuff...
679
+ \& </item\-bullet>
680
+ \& ...more item\-bullets...
681
+ \& </over\-bullet fake\-closer="1">
682
+ .Ve
683
+ .Sp
684
+ The attribute \fIfake-closer\fR is only present if it is a true value; it is not
685
+ present if it is a false value. It is shown in the above example to illustrate
686
+ where the attribute is (in the \fBclosing\fR tag). It signifies that the \f(CW\*(C`=over\*(C'\fR
687
+ did not have a matching \f(CW\*(C`=back\*(C'\fR, and thus Pod::Simple had to create a fake
688
+ closer.
689
+ .Sp
690
+ For example, this Pod source:
691
+ .Sp
692
+ .Vb 1
693
+ \& =over
694
+ \&
695
+ \& =item *
696
+ \&
697
+ \& Something
698
+ \&
699
+ \& =back
700
+ .Ve
701
+ .Sp
702
+ Would produce an event structure that does \fBnot\fR have the \fIfake-closer\fR
703
+ attribute, whereas this Pod source:
704
+ .Sp
705
+ .Vb 1
706
+ \& =over
707
+ \&
708
+ \& =item *
709
+ \&
710
+ \& Gasp! An unclosed =over block!
711
+ .Ve
712
+ .Sp
713
+ would. The rest of the over\-* examples will not demonstrate this attribute,
714
+ but they all can have it. See Pod::Checker's source for an example of this
715
+ attribute being used.
716
+ .Sp
717
+ The value of the \fIindent\fR attribute is whatever value is after the
718
+ \&\*(L"=over\*(R" directive, as in \*(L"=over 8\*(R". If no such value is specified
719
+ in the directive, then the \fIindent\fR attribute has the value \*(L"4\*(R".
720
+ .Sp
721
+ For example, this Pod source:
722
+ .Sp
723
+ .Vb 1
724
+ \& =over
725
+ \&
726
+ \& =item *
727
+ \&
728
+ \& Stuff
729
+ \&
730
+ \& =item *
731
+ \&
732
+ \& Bar I<baz>!
733
+ \&
734
+ \& =back
735
+ .Ve
736
+ .Sp
737
+ produces this event structure:
738
+ .Sp
739
+ .Vb 8
740
+ \& <over\-bullet indent="4" start_line="10">
741
+ \& <item\-bullet start_line="12">
742
+ \& Stuff
743
+ \& </item\-bullet>
744
+ \& <item\-bullet start_line="14">
745
+ \& Bar <I>baz</I>!
746
+ \& </item\-bullet>
747
+ \& </over\-bullet>
748
+ .Ve
749
+ .IP "events with an element_name of over-number" 4
750
+ .IX Item "events with an element_name of over-number"
751
+ When an \*(L"=over ... =back\*(R" block is parsed where the items are
752
+ a numbered list, it will produce this event structure:
753
+ .Sp
754
+ .Vb 6
755
+ \& <over\-number indent="4" start_line="543">
756
+ \& <item\-number number="1" start_line="545">
757
+ \& ...Stuff...
758
+ \& </item\-number>
759
+ \& ...more item\-number...
760
+ \& </over\-bullet>
761
+ .Ve
762
+ .Sp
763
+ This is like the \*(L"over-bullet\*(R" event structure; but note that the contents
764
+ are \*(L"item-number\*(R" instead of \*(L"item-bullet\*(R", and note that they will have
765
+ a \*(L"number\*(R" attribute, which some formatters/processors may ignore
766
+ (since, for example, there's no need for it in \s-1HTML\s0 when producing
767
+ an \*(L"<\s-1UL\s0><\s-1LI\s0>...</LI>...</UL>\*(R" structure), but which any processor may use.
768
+ .Sp
769
+ Note that the values for the \fInumber\fR attributes of \*(L"item-number\*(R"
770
+ elements in a given \*(L"over-number\*(R" area \fIwill\fR start at 1 and go up by
771
+ one each time. If the Pod source doesn't follow that order (even though
772
+ it really should!), whatever numbers it has will be ignored (with
773
+ the correct values being put in the \fInumber\fR attributes), and an error
774
+ message might be issued to the user.
775
+ .IP "events with an element_name of over-text" 4
776
+ .IX Item "events with an element_name of over-text"
777
+ These events are somewhat unlike the other over\-*
778
+ structures, as far as what their contents are. When
779
+ an \*(L"=over ... =back\*(R" block is parsed where the items are
780
+ a list of text \*(L"subheadings\*(R", it will produce this event structure:
781
+ .Sp
782
+ .Vb 8
783
+ \& <over\-text indent="4" start_line="543">
784
+ \& <item\-text>
785
+ \& ...stuff...
786
+ \& </item\-text>
787
+ \& ...stuff (generally Para or Verbatim elements)...
788
+ \& <item\-text>
789
+ \& ...more item\-text and/or stuff...
790
+ \& </over\-text>
791
+ .Ve
792
+ .Sp
793
+ The \fIindent\fR and \fIfake-closer\fR attributes are as with the other over\-* events.
794
+ .Sp
795
+ For example, this Pod source:
796
+ .Sp
797
+ .Vb 1
798
+ \& =over
799
+ \&
800
+ \& =item Foo
801
+ \&
802
+ \& Stuff
803
+ \&
804
+ \& =item Bar I<baz>!
805
+ \&
806
+ \& Quux
807
+ \&
808
+ \& =back
809
+ .Ve
810
+ .Sp
811
+ produces this event structure:
812
+ .Sp
813
+ .Vb 10
814
+ \& <over\-text indent="4" start_line="20">
815
+ \& <item\-text start_line="22">
816
+ \& Foo
817
+ \& </item\-text>
818
+ \& <Para start_line="24">
819
+ \& Stuff
820
+ \& </Para>
821
+ \& <item\-text start_line="26">
822
+ \& Bar
823
+ \& <I>
824
+ \& baz
825
+ \& </I>
826
+ \& !
827
+ \& </item\-text>
828
+ \& <Para start_line="28">
829
+ \& Quux
830
+ \& </Para>
831
+ \& </over\-text>
832
+ .Ve
833
+ .IP "events with an element_name of over-block" 4
834
+ .IX Item "events with an element_name of over-block"
835
+ These events are somewhat unlike the other over\-*
836
+ structures, as far as what their contents are. When
837
+ an \*(L"=over ... =back\*(R" block is parsed where there are no items,
838
+ it will produce this event structure:
839
+ .Sp
840
+ .Vb 3
841
+ \& <over\-block indent="4" start_line="543">
842
+ \& ...stuff (generally Para or Verbatim elements)...
843
+ \& </over\-block>
844
+ .Ve
845
+ .Sp
846
+ The \fIindent\fR and \fIfake-closer\fR attributes are as with the other over\-* events.
847
+ .Sp
848
+ For example, this Pod source:
849
+ .Sp
850
+ .Vb 1
851
+ \& =over
852
+ \&
853
+ \& For cutting off our trade with all parts of the world
854
+ \&
855
+ \& For transporting us beyond seas to be tried for pretended offenses
856
+ \&
857
+ \& He is at this time transporting large armies of foreign mercenaries to
858
+ \& complete the works of death, desolation and tyranny, already begun with
859
+ \& circumstances of cruelty and perfidy scarcely paralleled in the most
860
+ \& barbarous ages, and totally unworthy the head of a civilized nation.
861
+ \&
862
+ \& =back
863
+ .Ve
864
+ .Sp
865
+ will produce this event structure:
866
+ .Sp
867
+ .Vb 11
868
+ \& <over\-block indent="4" start_line="2">
869
+ \& <Para start_line="4">
870
+ \& For cutting off our trade with all parts of the world
871
+ \& </Para>
872
+ \& <Para start_line="6">
873
+ \& For transporting us beyond seas to be tried for pretended offenses
874
+ \& </Para>
875
+ \& <Para start_line="8">
876
+ \& He is at this time transporting large armies of [...more text...]
877
+ \& </Para>
878
+ \& </over\-block>
879
+ .Ve
880
+ .IP "events with an element_name of over-empty" 4
881
+ .IX Item "events with an element_name of over-empty"
882
+ \&\fBNote: These events are only triggered if \f(CB\*(C`parse_empty_lists()\*(C'\fB is set to a
883
+ true value.\fR
884
+ .Sp
885
+ These events are somewhat unlike the other over\-* structures, as far as what
886
+ their contents are. When an \*(L"=over ... =back\*(R" block is parsed where there
887
+ is no content, it will produce this event structure:
888
+ .Sp
889
+ .Vb 2
890
+ \& <over\-empty indent="4" start_line="543">
891
+ \& </over\-empty>
892
+ .Ve
893
+ .Sp
894
+ The \fIindent\fR and \fIfake-closer\fR attributes are as with the other over\-* events.
895
+ .Sp
896
+ For example, this Pod source:
897
+ .Sp
898
+ .Vb 1
899
+ \& =over
900
+ \&
901
+ \& =over
902
+ \&
903
+ \& =back
904
+ \&
905
+ \& =back
906
+ .Ve
907
+ .Sp
908
+ will produce this event structure:
909
+ .Sp
910
+ .Vb 4
911
+ \& <over\-block indent="4" start_line="1">
912
+ \& <over\-empty indent="4" start_line="3">
913
+ \& </over\-empty>
914
+ \& </over\-block>
915
+ .Ve
916
+ .Sp
917
+ Note that the outer \f(CW\*(C`=over\*(C'\fR is a block because it has no \f(CW\*(C`=item\*(C'\fRs but still
918
+ has content: the inner \f(CW\*(C`=over\*(C'\fR. The inner \f(CW\*(C`=over\*(C'\fR, in turn, is completely
919
+ empty, and is treated as such.
920
+ .IP "events with an element_name of item-bullet" 4
921
+ .IX Item "events with an element_name of item-bullet"
922
+ See \*(L"events with an element_name of over-bullet\*(R", above.
923
+ .IP "events with an element_name of item-number" 4
924
+ .IX Item "events with an element_name of item-number"
925
+ See \*(L"events with an element_name of over-number\*(R", above.
926
+ .IP "events with an element_name of item-text" 4
927
+ .IX Item "events with an element_name of item-text"
928
+ See \*(L"events with an element_name of over-text\*(R", above.
929
+ .IP "events with an element_name of for" 4
930
+ .IX Item "events with an element_name of for"
931
+ \&\s-1TODO...\s0
932
+ .IP "events with an element_name of Data" 4
933
+ .IX Item "events with an element_name of Data"
934
+ \&\s-1TODO...\s0
935
+ .SH "More Pod::Simple Methods"
936
+ .IX Header "More Pod::Simple Methods"
937
+ Pod::Simple provides a lot of methods that aren't generally interesting
938
+ to the end user of an existing Pod formatter, but some of which you
939
+ might find useful in writing a Pod formatter. They are listed below. The
940
+ first several methods (the accept_* methods) are for declaring the
941
+ capabilities of your parser, notably what \f(CW\*(C`=for \f(CItargetname\f(CW\*(C'\fR sections
942
+ it's interested in, what extra N<...> codes it accepts beyond
943
+ the ones described in the \fIperlpod\fR.
944
+ .ie n .IP """$parser\->accept_targets( \fISOMEVALUE\fP )""" 4
945
+ .el .IP "\f(CW$parser\->accept_targets( \f(CISOMEVALUE\f(CW )\fR" 4
946
+ .IX Item "$parser->accept_targets( SOMEVALUE )"
947
+ As the parser sees sections like:
948
+ .Sp
949
+ .Vb 1
950
+ \& =for html <img src="fig1.jpg">
951
+ .Ve
952
+ .Sp
953
+ or
954
+ .Sp
955
+ .Vb 1
956
+ \& =begin html
957
+ \&
958
+ \& <img src="fig1.jpg">
959
+ \&
960
+ \& =end html
961
+ .Ve
962
+ .Sp
963
+ \&...the parser will ignore these sections unless your subclass has
964
+ specified that it wants to see sections targeted to \*(L"html\*(R" (or whatever
965
+ the formatter name is).
966
+ .Sp
967
+ If you want to process all sections, even if they're not targeted for you,
968
+ call this before you start parsing:
969
+ .Sp
970
+ .Vb 1
971
+ \& $parser\->accept_targets(\*(Aq*\*(Aq);
972
+ .Ve
973
+ .ie n .IP """$parser\->accept_targets_as_text( \fISOMEVALUE\fP )""" 4
974
+ .el .IP "\f(CW$parser\->accept_targets_as_text( \f(CISOMEVALUE\f(CW )\fR" 4
975
+ .IX Item "$parser->accept_targets_as_text( SOMEVALUE )"
976
+ This is like accept_targets, except that it specifies also that the
977
+ content of sections for this target should be treated as Pod text even
978
+ if the target name in "=for \fItargetname\fR\*(L" doesn't start with a \*(R":".
979
+ .Sp
980
+ At time of writing, I don't think you'll need to use this.
981
+ .ie n .IP """$parser\->accept_codes( \fICodename\fP, \fICodename\fP... )""" 4
982
+ .el .IP "\f(CW$parser\->accept_codes( \f(CICodename\f(CW, \f(CICodename\f(CW... )\fR" 4
983
+ .IX Item "$parser->accept_codes( Codename, Codename... )"
984
+ This tells the parser that you accept additional formatting codes,
985
+ beyond just the standard ones (I B C L F S X, plus the two weird ones
986
+ you don't actually see in the parse tree, Z and E). For example, to also
987
+ accept codes \*(L"N\*(R", \*(L"R\*(R", and \*(L"W\*(R":
988
+ .Sp
989
+ .Vb 1
990
+ \& $parser\->accept_codes( qw( N R W ) );
991
+ .Ve
992
+ .Sp
993
+ \&\fB\s-1TODO:\s0 document how this interacts with =extend, and long element names\fR
994
+ .ie n .IP """$parser\->accept_directive_as_data( \fIdirective_name\fP )""" 4
995
+ .el .IP "\f(CW$parser\->accept_directive_as_data( \f(CIdirective_name\f(CW )\fR" 4
996
+ .IX Item "$parser->accept_directive_as_data( directive_name )"
997
+ .PD 0
998
+ .ie n .IP """$parser\->accept_directive_as_verbatim( \fIdirective_name\fP )""" 4
999
+ .el .IP "\f(CW$parser\->accept_directive_as_verbatim( \f(CIdirective_name\f(CW )\fR" 4
1000
+ .IX Item "$parser->accept_directive_as_verbatim( directive_name )"
1001
+ .ie n .IP """$parser\->accept_directive_as_processed( \fIdirective_name\fP )""" 4
1002
+ .el .IP "\f(CW$parser\->accept_directive_as_processed( \f(CIdirective_name\f(CW )\fR" 4
1003
+ .IX Item "$parser->accept_directive_as_processed( directive_name )"
1004
+ .PD
1005
+ In the unlikely situation that you need to tell the parser that you will
1006
+ accept additional directives (\*(L"=foo\*(R" things), you need to first set the
1007
+ parser to treat its content as data (i.e., not really processed at
1008
+ all), or as verbatim (mostly just expanding tabs), or as processed text
1009
+ (parsing formatting codes like B<...>).
1010
+ .Sp
1011
+ For example, to accept a new directive \*(L"=method\*(R", you'd presumably
1012
+ use:
1013
+ .Sp
1014
+ .Vb 1
1015
+ \& $parser\->accept_directive_as_processed("method");
1016
+ .Ve
1017
+ .Sp
1018
+ so that you could have Pod lines like:
1019
+ .Sp
1020
+ .Vb 1
1021
+ \& =method I<$whatever> thing B<um>
1022
+ .Ve
1023
+ .Sp
1024
+ Making up your own directives breaks compatibility with other Pod
1025
+ formatters, in a way that using "=for \fItarget\fR ..." lines doesn't;
1026
+ however, you may find this useful if you're making a Pod superset
1027
+ format where you don't need to worry about compatibility.
1028
+ .ie n .IP """$parser\->nbsp_for_S( \fIBOOLEAN\fP );""" 4
1029
+ .el .IP "\f(CW$parser\->nbsp_for_S( \f(CIBOOLEAN\f(CW );\fR" 4
1030
+ .IX Item "$parser->nbsp_for_S( BOOLEAN );"
1031
+ Setting this attribute to a true value (and by default it is false) will
1032
+ turn \*(L"S<...>\*(R" sequences into sequences of words separated by
1033
+ \&\f(CW\*(C`\exA0\*(C'\fR (non-breaking space) characters. For example, it will take this:
1034
+ .Sp
1035
+ .Vb 1
1036
+ \& I like S<Dutch apple pie>, don\*(Aqt you?
1037
+ .Ve
1038
+ .Sp
1039
+ and treat it as if it were:
1040
+ .Sp
1041
+ .Vb 1
1042
+ \& I like DutchE<nbsp>appleE<nbsp>pie, don\*(Aqt you?
1043
+ .Ve
1044
+ .Sp
1045
+ This is handy for output formats that don't have anything quite like an
1046
+ \&\*(L"S<...>\*(R" code, but which do have a code for non-breaking space.
1047
+ .Sp
1048
+ There is currently no method for going the other way; but I can
1049
+ probably provide one upon request.
1050
+ .ie n .IP """$parser\->version_report()""" 4
1051
+ .el .IP "\f(CW$parser\->version_report()\fR" 4
1052
+ .IX Item "$parser->version_report()"
1053
+ This returns a string reporting the \f(CW$VERSION\fR value from your module (and
1054
+ its classname) as well as the \f(CW$VERSION\fR value of Pod::Simple. Note that
1055
+ perlpodspec requires output formats (wherever possible) to note
1056
+ this detail in a comment in the output format. For example, for
1057
+ some kind of \s-1SGML\s0 output format:
1058
+ .Sp
1059
+ .Vb 1
1060
+ \& print OUT "<!\-\- \en", $parser\->version_report, "\en \-\->";
1061
+ .Ve
1062
+ .ie n .IP """$parser\->pod_para_count()""" 4
1063
+ .el .IP "\f(CW$parser\->pod_para_count()\fR" 4
1064
+ .IX Item "$parser->pod_para_count()"
1065
+ This returns the count of Pod paragraphs seen so far.
1066
+ .ie n .IP """$parser\->line_count()""" 4
1067
+ .el .IP "\f(CW$parser\->line_count()\fR" 4
1068
+ .IX Item "$parser->line_count()"
1069
+ This is the current line number being parsed. But you might find the
1070
+ \&\*(L"line_number\*(R" event attribute more accurate, when it is present.
1071
+ .ie n .IP """$parser\->nix_X_codes( \fISOMEVALUE\fP )""" 4
1072
+ .el .IP "\f(CW$parser\->nix_X_codes( \f(CISOMEVALUE\f(CW )\fR" 4
1073
+ .IX Item "$parser->nix_X_codes( SOMEVALUE )"
1074
+ This attribute, when set to a true value (and it is false by default)
1075
+ ignores any \*(L"X<...>\*(R" sequences in the document being parsed.
1076
+ Many formats don't actually use the content of these codes, so have
1077
+ no reason to process them.
1078
+ .ie n .IP """$parser\->keep_encoding_directive( \fISOMEVALUE\fP )""" 4
1079
+ .el .IP "\f(CW$parser\->keep_encoding_directive( \f(CISOMEVALUE\f(CW )\fR" 4
1080
+ .IX Item "$parser->keep_encoding_directive( SOMEVALUE )"
1081
+ This attribute, when set to a true value (it is false by default)
1082
+ will keep \f(CW\*(C`=encoding\*(C'\fR and its content in the event structure. Most
1083
+ formats don't actually need to process the content of an \f(CW\*(C`=encoding\*(C'\fR
1084
+ directive, even when this directive sets the encoding and the
1085
+ processor makes use of the encoding information. Indeed, it is
1086
+ possible to know the encoding without processing the directive
1087
+ content.
1088
+ .ie n .IP """$parser\->merge_text( \fISOMEVALUE\fP )""" 4
1089
+ .el .IP "\f(CW$parser\->merge_text( \f(CISOMEVALUE\f(CW )\fR" 4
1090
+ .IX Item "$parser->merge_text( SOMEVALUE )"
1091
+ This attribute, when set to a true value (and it is false by default)
1092
+ makes sure that only one event (or token, or node) will be created
1093
+ for any single contiguous sequence of text. For example, consider
1094
+ this somewhat contrived example:
1095
+ .Sp
1096
+ .Vb 1
1097
+ \& I just LOVE Z<>hotE<32>apple pie!
1098
+ .Ve
1099
+ .Sp
1100
+ When that is parsed and events are about to be called on it, it may
1101
+ actually seem to be four different text events, one right after another:
1102
+ one event for \*(L"I just \s-1LOVE \*(R",\s0 one for \*(L"hot\*(R", one for \*(L" \*(R", and one for
1103
+ \&\*(L"apple pie!\*(R". But if you have merge_text on, then you're guaranteed
1104
+ that it will be fired as one text event: \*(L"I just \s-1LOVE\s0 hot apple pie!\*(R".
1105
+ .ie n .IP """$parser\->code_handler( \fICODE_REF\fP )""" 4
1106
+ .el .IP "\f(CW$parser\->code_handler( \f(CICODE_REF\f(CW )\fR" 4
1107
+ .IX Item "$parser->code_handler( CODE_REF )"
1108
+ This specifies code that should be called when a code line is seen
1109
+ (i.e., a line outside of the Pod). Normally this is undef, meaning
1110
+ that no code should be called. If you provide a routine, it should
1111
+ start out like this:
1112
+ .Sp
1113
+ .Vb 4
1114
+ \& sub get_code_line { # or whatever you\*(Aqll call it
1115
+ \& my($line, $line_number, $parser) = @_;
1116
+ \& ...
1117
+ \& }
1118
+ .Ve
1119
+ .Sp
1120
+ Note, however, that sometimes the Pod events aren't processed in exactly
1121
+ the same order as the code lines are \*(-- i.e., if you have a file with
1122
+ Pod, then code, then more Pod, sometimes the code will be processed (via
1123
+ whatever you have code_handler call) before the all of the preceding Pod
1124
+ has been processed.
1125
+ .ie n .IP """$parser\->cut_handler( \fICODE_REF\fP )""" 4
1126
+ .el .IP "\f(CW$parser\->cut_handler( \f(CICODE_REF\f(CW )\fR" 4
1127
+ .IX Item "$parser->cut_handler( CODE_REF )"
1128
+ This is just like the code_handler attribute, except that it's for
1129
+ \&\*(L"=cut\*(R" lines, not code lines. The same caveats apply. \*(L"=cut\*(R" lines are
1130
+ unlikely to be interesting, but this is included for completeness.
1131
+ .ie n .IP """$parser\->pod_handler( \fICODE_REF\fP )""" 4
1132
+ .el .IP "\f(CW$parser\->pod_handler( \f(CICODE_REF\f(CW )\fR" 4
1133
+ .IX Item "$parser->pod_handler( CODE_REF )"
1134
+ This is just like the code_handler attribute, except that it's for
1135
+ \&\*(L"=pod\*(R" lines, not code lines. The same caveats apply. \*(L"=pod\*(R" lines are
1136
+ unlikely to be interesting, but this is included for completeness.
1137
+ .ie n .IP """$parser\->whiteline_handler( \fICODE_REF\fP )""" 4
1138
+ .el .IP "\f(CW$parser\->whiteline_handler( \f(CICODE_REF\f(CW )\fR" 4
1139
+ .IX Item "$parser->whiteline_handler( CODE_REF )"
1140
+ This is just like the code_handler attribute, except that it's for
1141
+ lines that are seemingly blank but have whitespace (\*(L" \*(R" and/or \*(L"\et\*(R") on them,
1142
+ not code lines. The same caveats apply. These lines are unlikely to be
1143
+ interesting, but this is included for completeness.
1144
+ .ie n .IP """$parser\->whine( \fIlinenumber\fP, \fIcomplaint string\fP )""" 4
1145
+ .el .IP "\f(CW$parser\->whine( \f(CIlinenumber\f(CW, \f(CIcomplaint string\f(CW )\fR" 4
1146
+ .IX Item "$parser->whine( linenumber, complaint string )"
1147
+ This notes a problem in the Pod, which will be reported in the \*(L"Pod
1148
+ Errors\*(R" section of the document and/or sent to \s-1STDERR,\s0 depending on the
1149
+ values of the attributes \f(CW\*(C`no_whining\*(C'\fR, \f(CW\*(C`no_errata_section\*(C'\fR, and
1150
+ \&\f(CW\*(C`complain_stderr\*(C'\fR.
1151
+ .ie n .IP """$parser\->scream( \fIlinenumber\fP, \fIcomplaint string\fP )""" 4
1152
+ .el .IP "\f(CW$parser\->scream( \f(CIlinenumber\f(CW, \f(CIcomplaint string\f(CW )\fR" 4
1153
+ .IX Item "$parser->scream( linenumber, complaint string )"
1154
+ This notes an error like \f(CW\*(C`whine\*(C'\fR does, except that it is not
1155
+ suppressible with \f(CW\*(C`no_whining\*(C'\fR. This should be used only for very
1156
+ serious errors.
1157
+ .ie n .IP """$parser\->source_dead(1)""" 4
1158
+ .el .IP "\f(CW$parser\->source_dead(1)\fR" 4
1159
+ .IX Item "$parser->source_dead(1)"
1160
+ This aborts parsing of the current document, by switching on the flag
1161
+ that indicates that \s-1EOF\s0 has been seen. In particularly drastic cases,
1162
+ you might want to do this. It's rather nicer than just calling
1163
+ \&\f(CW\*(C`die\*(C'\fR!
1164
+ .ie n .IP """$parser\->hide_line_numbers( \fISOMEVALUE\fP )""" 4
1165
+ .el .IP "\f(CW$parser\->hide_line_numbers( \f(CISOMEVALUE\f(CW )\fR" 4
1166
+ .IX Item "$parser->hide_line_numbers( SOMEVALUE )"
1167
+ Some subclasses that indiscriminately dump event attributes (well,
1168
+ except for ones beginning with \*(L"~\*(R") can use this object attribute for
1169
+ refraining to dump the \*(L"start_line\*(R" attribute.
1170
+ .ie n .IP """$parser\->no_whining( \fISOMEVALUE\fP )""" 4
1171
+ .el .IP "\f(CW$parser\->no_whining( \f(CISOMEVALUE\f(CW )\fR" 4
1172
+ .IX Item "$parser->no_whining( SOMEVALUE )"
1173
+ This attribute, if set to true, will suppress reports of non-fatal
1174
+ error messages. The default value is false, meaning that complaints
1175
+ \&\fIare\fR reported. How they get reported depends on the values of
1176
+ the attributes \f(CW\*(C`no_errata_section\*(C'\fR and \f(CW\*(C`complain_stderr\*(C'\fR.
1177
+ .ie n .IP """$parser\->no_errata_section( \fISOMEVALUE\fP )""" 4
1178
+ .el .IP "\f(CW$parser\->no_errata_section( \f(CISOMEVALUE\f(CW )\fR" 4
1179
+ .IX Item "$parser->no_errata_section( SOMEVALUE )"
1180
+ This attribute, if set to true, will suppress generation of an errata
1181
+ section. The default value is false \*(-- i.e., an errata section will be
1182
+ generated.
1183
+ .ie n .IP """$parser\->complain_stderr( \fISOMEVALUE\fP )""" 4
1184
+ .el .IP "\f(CW$parser\->complain_stderr( \f(CISOMEVALUE\f(CW )\fR" 4
1185
+ .IX Item "$parser->complain_stderr( SOMEVALUE )"
1186
+ This attribute, if set to true will send complaints to \s-1STDERR.\s0 The
1187
+ default value is false \*(-- i.e., complaints do not go to \s-1STDERR.\s0
1188
+ .ie n .IP """$parser\->bare_output( \fISOMEVALUE\fP )""" 4
1189
+ .el .IP "\f(CW$parser\->bare_output( \f(CISOMEVALUE\f(CW )\fR" 4
1190
+ .IX Item "$parser->bare_output( SOMEVALUE )"
1191
+ Some formatter subclasses use this as a flag for whether output should
1192
+ have prologue and epilogue code omitted. For example, setting this to
1193
+ true for an \s-1HTML\s0 formatter class should omit the
1194
+ \&\*(L"<html><head><title>...</title><body>...\*(R" prologue and the
1195
+ \&\*(L"</body></html>\*(R" epilogue.
1196
+ .Sp
1197
+ If you want to set this to true, you should probably also set
1198
+ \&\f(CW\*(C`no_whining\*(C'\fR or at least \f(CW\*(C`no_errata_section\*(C'\fR to true.
1199
+ .ie n .IP """$parser\->preserve_whitespace( \fISOMEVALUE\fP )""" 4
1200
+ .el .IP "\f(CW$parser\->preserve_whitespace( \f(CISOMEVALUE\f(CW )\fR" 4
1201
+ .IX Item "$parser->preserve_whitespace( SOMEVALUE )"
1202
+ If you set this attribute to a true value, the parser will try to
1203
+ preserve whitespace in the output. This means that such formatting
1204
+ conventions as two spaces after periods will be preserved by the parser.
1205
+ This is primarily useful for output formats that treat whitespace as
1206
+ significant (such as text or *roff, but not \s-1HTML\s0).
1207
+ .ie n .IP """$parser\->parse_empty_lists( \fISOMEVALUE\fP )""" 4
1208
+ .el .IP "\f(CW$parser\->parse_empty_lists( \f(CISOMEVALUE\f(CW )\fR" 4
1209
+ .IX Item "$parser->parse_empty_lists( SOMEVALUE )"
1210
+ If this attribute is set to true, the parser will not ignore empty
1211
+ \&\f(CW\*(C`=over\*(C'\fR/\f(CW\*(C`=back\*(C'\fR blocks. The type of \f(CW\*(C`=over\*(C'\fR will be \fIempty\fR, documented
1212
+ above, \*(L"events with an element_name of over-empty\*(R".
1213
+ .SH "SEE ALSO"
1214
+ .IX Header "SEE ALSO"
1215
+ Pod::Simple \*(-- event-based Pod-parsing framework
1216
+ .PP
1217
+ Pod::Simple::Methody \*(-- like Pod::Simple, but each sort of event
1218
+ calls its own method (like \f(CW\*(C`start_head3\*(C'\fR)
1219
+ .PP
1220
+ Pod::Simple::PullParser \*(-- a Pod-parsing framework like Pod::Simple,
1221
+ but with a token-stream interface
1222
+ .PP
1223
+ Pod::Simple::SimpleTree \*(-- a Pod-parsing framework like Pod::Simple,
1224
+ but with a tree interface
1225
+ .PP
1226
+ Pod::Simple::Checker \*(-- a simple Pod::Simple subclass that reads
1227
+ documents, and then makes a plaintext report of any errors found in the
1228
+ document
1229
+ .PP
1230
+ Pod::Simple::DumpAsXML \*(-- for dumping Pod documents as tidily
1231
+ indented \s-1XML,\s0 showing each event on its own line
1232
+ .PP
1233
+ Pod::Simple::XMLOutStream \*(-- dumps a Pod document as \s-1XML\s0 (without
1234
+ introducing extra whitespace as Pod::Simple::DumpAsXML does).
1235
+ .PP
1236
+ Pod::Simple::DumpAsText \*(-- for dumping Pod documents as tidily
1237
+ indented text, showing each event on its own line
1238
+ .PP
1239
+ Pod::Simple::LinkSection \*(-- class for objects representing the values
1240
+ of the \s-1TODO\s0 and \s-1TODO\s0 attributes of L<...> elements
1241
+ .PP
1242
+ Pod::Escapes \*(-- the module that Pod::Simple uses for evaluating
1243
+ E<...> content
1244
+ .PP
1245
+ Pod::Simple::Text \*(-- a simple plaintext formatter for Pod
1246
+ .PP
1247
+ Pod::Simple::TextContent \*(-- like Pod::Simple::Text, but
1248
+ makes no effort for indent or wrap the text being formatted
1249
+ .PP
1250
+ Pod::Simple::HTML \*(-- a simple \s-1HTML\s0 formatter for Pod
1251
+ .PP
1252
+ perlpod
1253
+ .PP
1254
+ perlpodspec
1255
+ .PP
1256
+ perldoc
1257
+ .SH "SUPPORT"
1258
+ .IX Header "SUPPORT"
1259
+ Questions or discussion about \s-1POD\s0 and Pod::Simple should be sent to the
1260
+ pod\-people@perl.org mail list. Send an empty email to
1261
+ pod\-people\-subscribe@perl.org to subscribe.
1262
+ .PP
1263
+ This module is managed in an open GitHub repository,
1264
+ <https://github.com/perl\-pod/pod\-simple/>. Feel free to fork and contribute, or
1265
+ to clone <git://github.com/perl\-pod/pod\-simple.git> and send patches!
1266
+ .PP
1267
+ Patches against Pod::Simple are welcome. Please send bug reports to
1268
+ <bug\-pod\-simple@rt.cpan.org>.
1269
+ .SH "COPYRIGHT AND DISCLAIMERS"
1270
+ .IX Header "COPYRIGHT AND DISCLAIMERS"
1271
+ Copyright (c) 2002 Sean M. Burke.
1272
+ .PP
1273
+ This library is free software; you can redistribute it and/or modify it
1274
+ under the same terms as Perl itself.
1275
+ .PP
1276
+ This program is distributed in the hope that it will be useful, but
1277
+ without any warranty; without even the implied warranty of
1278
+ merchantability or fitness for a particular purpose.
1279
+ .SH "AUTHOR"
1280
+ .IX Header "AUTHOR"
1281
+ Pod::Simple was created by Sean M. Burke <sburke@cpan.org>.
1282
+ But don't bother him, he's retired.
1283
+ .PP
1284
+ Pod::Simple is maintained by:
1285
+ .IP "\(bu" 4
1286
+ Allison Randal \f(CW\*(C`allison@perl.org\*(C'\fR
1287
+ .IP "\(bu" 4
1288
+ Hans Dieter Pearcey \f(CW\*(C`hdp@cpan.org\*(C'\fR
1289
+ .IP "\(bu" 4
1290
+ David E. Wheeler \f(CW\*(C`dwheeler@cpan.org\*(C'\fR
data/miniconda3/man/man3/Safe.3 ADDED
@@ -0,0 +1,465 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "Safe 3"
136
+ .TH Safe 3 "2021-01-09" "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
+ Safe \- Compile and execute code in restricted compartments
143
+ .SH "SYNOPSIS"
144
+ .IX Header "SYNOPSIS"
145
+ .Vb 1
146
+ \& use Safe;
147
+ \&
148
+ \& $compartment = new Safe;
149
+ \&
150
+ \& $compartment\->permit(qw(time sort :browse));
151
+ \&
152
+ \& $result = $compartment\->reval($unsafe_code);
153
+ .Ve
154
+ .SH "DESCRIPTION"
155
+ .IX Header "DESCRIPTION"
156
+ The Safe extension module allows the creation of compartments
157
+ in which perl code can be evaluated. Each compartment has
158
+ .IP "a new namespace" 8
159
+ .IX Item "a new namespace"
160
+ The \*(L"root\*(R" of the namespace (i.e. \*(L"main::\*(R") is changed to a
161
+ different package and code evaluated in the compartment cannot
162
+ refer to variables outside this namespace, even with run-time
163
+ glob lookups and other tricks.
164
+ .Sp
165
+ Code which is compiled outside the compartment can choose to place
166
+ variables into (or \fIshare\fR variables with) the compartment's namespace
167
+ and only that data will be visible to code evaluated in the
168
+ compartment.
169
+ .Sp
170
+ By default, the only variables shared with compartments are the
171
+ \&\*(L"underscore\*(R" variables \f(CW$_\fR and \f(CW@_\fR (and, technically, the less frequently
172
+ used \f(CW%_\fR, the _ filehandle and so on). This is because otherwise perl
173
+ operators which default to \f(CW$_\fR will not work and neither will the
174
+ assignment of arguments to \f(CW@_\fR on subroutine entry.
175
+ .IP "an operator mask" 8
176
+ .IX Item "an operator mask"
177
+ Each compartment has an associated \*(L"operator mask\*(R". Recall that
178
+ perl code is compiled into an internal format before execution.
179
+ Evaluating perl code (e.g. via \*(L"eval\*(R" or \*(L"do 'file'\*(R") causes
180
+ the code to be compiled into an internal format and then,
181
+ provided there was no error in the compilation, executed.
182
+ Code evaluated in a compartment compiles subject to the
183
+ compartment's operator mask. Attempting to evaluate code in a
184
+ compartment which contains a masked operator will cause the
185
+ compilation to fail with an error. The code will not be executed.
186
+ .Sp
187
+ The default operator mask for a newly created compartment is
188
+ the ':default' optag.
189
+ .Sp
190
+ It is important that you read the Opcode module documentation
191
+ for more information, especially for detailed definitions of opnames,
192
+ optags and opsets.
193
+ .Sp
194
+ Since it is only at the compilation stage that the operator mask
195
+ applies, controlled access to potentially unsafe operations can
196
+ be achieved by having a handle to a wrapper subroutine (written
197
+ outside the compartment) placed into the compartment. For example,
198
+ .Sp
199
+ .Vb 5
200
+ \& $cpt = new Safe;
201
+ \& sub wrapper {
202
+ \& # vet arguments and perform potentially unsafe operations
203
+ \& }
204
+ \& $cpt\->share(\*(Aq&wrapper\*(Aq);
205
+ .Ve
206
+ .SH "WARNING"
207
+ .IX Header "WARNING"
208
+ The Safe module does not implement an effective sandbox for
209
+ evaluating untrusted code with the perl interpreter.
210
+ .PP
211
+ Bugs in the perl interpreter that could be abused to bypass
212
+ Safe restrictions are not treated as vulnerabilities. See
213
+ perlsecpolicy for additional information.
214
+ .PP
215
+ The authors make \fBno warranty\fR, implied or otherwise, about the
216
+ suitability of this software for safety or security purposes.
217
+ .PP
218
+ The authors shall not in any case be liable for special, incidental,
219
+ consequential, indirect or other similar damages arising from the use
220
+ of this software.
221
+ .PP
222
+ Your mileage will vary. If in any doubt \fBdo not use it\fR.
223
+ .SH "METHODS"
224
+ .IX Header "METHODS"
225
+ To create a new compartment, use
226
+ .PP
227
+ .Vb 1
228
+ \& $cpt = new Safe;
229
+ .Ve
230
+ .PP
231
+ Optional argument is (\s-1NAMESPACE\s0), where \s-1NAMESPACE\s0 is the root namespace
232
+ to use for the compartment (defaults to \*(L"Safe::Root0\*(R", incremented for
233
+ each new compartment).
234
+ .PP
235
+ Note that version 1.00 of the Safe module supported a second optional
236
+ parameter, \s-1MASK.\s0 That functionality has been withdrawn pending deeper
237
+ consideration. Use the permit and deny methods described below.
238
+ .PP
239
+ The following methods can then be used on the compartment
240
+ object returned by the above constructor. The object argument
241
+ is implicit in each case.
242
+ .SS "permit (\s-1OP, ...\s0)"
243
+ .IX Subsection "permit (OP, ...)"
244
+ Permit the listed operators to be used when compiling code in the
245
+ compartment (in \fIaddition\fR to any operators already permitted).
246
+ .PP
247
+ You can list opcodes by names, or use a tag name; see
248
+ \&\*(L"Predefined Opcode Tags\*(R" in Opcode.
249
+ .SS "permit_only (\s-1OP, ...\s0)"
250
+ .IX Subsection "permit_only (OP, ...)"
251
+ Permit \fIonly\fR the listed operators to be used when compiling code in
252
+ the compartment (\fIno\fR other operators are permitted).
253
+ .SS "deny (\s-1OP, ...\s0)"
254
+ .IX Subsection "deny (OP, ...)"
255
+ Deny the listed operators from being used when compiling code in the
256
+ compartment (other operators may still be permitted).
257
+ .SS "deny_only (\s-1OP, ...\s0)"
258
+ .IX Subsection "deny_only (OP, ...)"
259
+ Deny \fIonly\fR the listed operators from being used when compiling code
260
+ in the compartment (\fIall\fR other operators will be permitted, so you probably
261
+ don't want to use this method).
262
+ .SS "trap (\s-1OP, ...\s0), untrap (\s-1OP, ...\s0)"
263
+ .IX Subsection "trap (OP, ...), untrap (OP, ...)"
264
+ The trap and untrap methods are synonyms for deny and permit
265
+ respectfully.
266
+ .SS "share (\s-1NAME, ...\s0)"
267
+ .IX Subsection "share (NAME, ...)"
268
+ This shares the variable(s) in the argument list with the compartment.
269
+ This is almost identical to exporting variables using the Exporter
270
+ module.
271
+ .PP
272
+ Each \s-1NAME\s0 must be the \fBname\fR of a non-lexical variable, typically
273
+ with the leading type identifier included. A bareword is treated as a
274
+ function name.
275
+ .PP
276
+ Examples of legal names are '$foo' for a scalar, '@foo' for an
277
+ array, '%foo' for a hash, '&foo' or 'foo' for a subroutine and '*foo'
278
+ for a glob (i.e. all symbol table entries associated with \*(L"foo\*(R",
279
+ including scalar, array, hash, sub and filehandle).
280
+ .PP
281
+ Each \s-1NAME\s0 is assumed to be in the calling package. See share_from
282
+ for an alternative method (which \f(CW\*(C`share\*(C'\fR uses).
283
+ .SS "share_from (\s-1PACKAGE, ARRAYREF\s0)"
284
+ .IX Subsection "share_from (PACKAGE, ARRAYREF)"
285
+ This method is similar to \fBshare()\fR but allows you to explicitly name the
286
+ package that symbols should be shared from. The symbol names (including
287
+ type characters) are supplied as an array reference.
288
+ .PP
289
+ .Vb 1
290
+ \& $safe\->share_from(\*(Aqmain\*(Aq, [ \*(Aq$foo\*(Aq, \*(Aq%bar\*(Aq, \*(Aqfunc\*(Aq ]);
291
+ .Ve
292
+ .PP
293
+ Names can include package names, which are relative to the specified \s-1PACKAGE.\s0
294
+ So these two calls have the same effect:
295
+ .PP
296
+ .Vb 2
297
+ \& $safe\->share_from(\*(AqScalar::Util\*(Aq, [ \*(Aqreftype\*(Aq ]);
298
+ \& $safe\->share_from(\*(Aqmain\*(Aq, [ \*(AqScalar::Util::reftype\*(Aq ]);
299
+ .Ve
300
+ .SS "varglob (\s-1VARNAME\s0)"
301
+ .IX Subsection "varglob (VARNAME)"
302
+ This returns a glob reference for the symbol table entry of \s-1VARNAME\s0 in
303
+ the package of the compartment. \s-1VARNAME\s0 must be the \fBname\fR of a
304
+ variable without any leading type marker. For example:
305
+ .PP
306
+ .Vb 1
307
+ \& ${$cpt\->varglob(\*(Aqfoo\*(Aq)} = "Hello world";
308
+ .Ve
309
+ .PP
310
+ has the same effect as:
311
+ .PP
312
+ .Vb 2
313
+ \& $cpt = new Safe \*(AqRoot\*(Aq;
314
+ \& $Root::foo = "Hello world";
315
+ .Ve
316
+ .PP
317
+ but avoids the need to know \f(CW$cpt\fR's package name.
318
+ .SS "reval (\s-1STRING, STRICT\s0)"
319
+ .IX Subsection "reval (STRING, STRICT)"
320
+ This evaluates \s-1STRING\s0 as perl code inside the compartment.
321
+ .PP
322
+ The code can only see the compartment's namespace (as returned by the
323
+ \&\fBroot\fR method). The compartment's root package appears to be the
324
+ \&\f(CW\*(C`main::\*(C'\fR package to the code inside the compartment.
325
+ .PP
326
+ Any attempt by the code in \s-1STRING\s0 to use an operator which is not permitted
327
+ by the compartment will cause an error (at run-time of the main program
328
+ but at compile-time for the code in \s-1STRING\s0). The error is of the form
329
+ \&\*(L"'%s' trapped by operation mask...\*(R".
330
+ .PP
331
+ If an operation is trapped in this way, then the code in \s-1STRING\s0 will
332
+ not be executed. If such a trapped operation occurs or any other
333
+ compile-time or return error, then $@ is set to the error message, just
334
+ as with an \fBeval()\fR.
335
+ .PP
336
+ If there is no error, then the method returns the value of the last
337
+ expression evaluated, or a return statement may be used, just as with
338
+ subroutines and \fB\fBeval()\fB\fR. The context (list or scalar) is determined
339
+ by the caller as usual.
340
+ .PP
341
+ If the return value of \fBreval()\fR is (or contains) any code reference,
342
+ those code references are wrapped to be themselves executed always
343
+ in the compartment. See \*(L"wrap_code_refs_within\*(R".
344
+ .PP
345
+ The formerly undocumented \s-1STRICT\s0 argument sets strictness: if true
346
+ \&'use strict;' is used, otherwise it uses 'no strict;'. \fBNote\fR: if
347
+ \&\s-1STRICT\s0 is omitted 'no strict;' is the default.
348
+ .PP
349
+ Some points to note:
350
+ .PP
351
+ If the entereval op is permitted then the code can use eval \*(L"...\*(R" to
352
+ \&'hide' code which might use denied ops. This is not a major problem
353
+ since when the code tries to execute the eval it will fail because the
354
+ opmask is still in effect. However this technique would allow clever,
355
+ and possibly harmful, code to 'probe' the boundaries of what is
356
+ possible.
357
+ .PP
358
+ Any string eval which is executed by code executing in a compartment,
359
+ or by code called from code executing in a compartment, will be eval'd
360
+ in the namespace of the compartment. This is potentially a serious
361
+ problem.
362
+ .PP
363
+ Consider a function \fBfoo()\fR in package pkg compiled outside a compartment
364
+ but shared with it. Assume the compartment has a root package called
365
+ \&'Root'. If \fBfoo()\fR contains an eval statement like eval '$foo = 1' then,
366
+ normally, \f(CW$pkg::foo\fR will be set to 1. If \fBfoo()\fR is called from the
367
+ compartment (by whatever means) then instead of setting \f(CW$pkg::foo\fR, the
368
+ eval will actually set \f(CW$Root::pkg::foo\fR.
369
+ .PP
370
+ This can easily be demonstrated by using a module, such as the Socket
371
+ module, which uses eval \*(L"...\*(R" as part of an \s-1AUTOLOAD\s0 function. You can
372
+ \&'use' the module outside the compartment and share an (autoloaded)
373
+ function with the compartment. If an autoload is triggered by code in
374
+ the compartment, or by any code anywhere that is called by any means
375
+ from the compartment, then the eval in the Socket module's \s-1AUTOLOAD\s0
376
+ function happens in the namespace of the compartment. Any variables
377
+ created or used by the eval'd code are now under the control of
378
+ the code in the compartment.
379
+ .PP
380
+ A similar effect applies to \fIall\fR runtime symbol lookups in code
381
+ called from a compartment but not compiled within it.
382
+ .SS "rdo (\s-1FILENAME\s0)"
383
+ .IX Subsection "rdo (FILENAME)"
384
+ This evaluates the contents of file \s-1FILENAME\s0 inside the compartment.
385
+ It uses the same rules as perl's built-in \f(CW\*(C`do\*(C'\fR to locate the file,
386
+ poossibly using \f(CW@INC\fR.
387
+ .PP
388
+ See above documentation on the \fBreval\fR method for further details.
389
+ .SS "root (\s-1NAMESPACE\s0)"
390
+ .IX Subsection "root (NAMESPACE)"
391
+ This method returns the name of the package that is the root of the
392
+ compartment's namespace.
393
+ .PP
394
+ Note that this behaviour differs from version 1.00 of the Safe module
395
+ where the root module could be used to change the namespace. That
396
+ functionality has been withdrawn pending deeper consideration.
397
+ .SS "mask (\s-1MASK\s0)"
398
+ .IX Subsection "mask (MASK)"
399
+ This is a get-or-set method for the compartment's operator mask.
400
+ .PP
401
+ With no \s-1MASK\s0 argument present, it returns the current operator mask of
402
+ the compartment.
403
+ .PP
404
+ With the \s-1MASK\s0 argument present, it sets the operator mask for the
405
+ compartment (equivalent to calling the deny_only method).
406
+ .SS "wrap_code_ref (\s-1CODEREF\s0)"
407
+ .IX Subsection "wrap_code_ref (CODEREF)"
408
+ Returns a reference to an anonymous subroutine that, when executed, will call
409
+ \&\s-1CODEREF\s0 with the Safe compartment 'in effect'. In other words, with the
410
+ package namespace adjusted and the opmask enabled.
411
+ .PP
412
+ Note that the opmask doesn't affect the already compiled code, it only affects
413
+ any \fIfurther\fR compilation that the already compiled code may try to perform.
414
+ .PP
415
+ This is particularly useful when applied to code references returned from \fBreval()\fR.
416
+ .PP
417
+ (It also provides a kind of workaround for RT#60374: \*(L"Safe.pm sort {} bug with
418
+ \&\-Dusethreads\*(R". See <https://rt.perl.org/rt3//Public/Bug/Display.html?id=60374>
419
+ for \fImuch\fR more detail.)
420
+ .SS "wrap_code_refs_within (...)"
421
+ .IX Subsection "wrap_code_refs_within (...)"
422
+ Wraps any \s-1CODE\s0 references found within the arguments by replacing each with the
423
+ result of calling \*(L"wrap_code_ref\*(R" on the \s-1CODE\s0 reference. Any \s-1ARRAY\s0 or \s-1HASH\s0
424
+ references in the arguments are inspected recursively.
425
+ .PP
426
+ Returns nothing.
427
+ .SH "RISKS"
428
+ .IX Header "RISKS"
429
+ This section is just an outline of some of the things code in a compartment
430
+ might do (intentionally or unintentionally) which can have an effect outside
431
+ the compartment.
432
+ .IP "Memory" 8
433
+ .IX Item "Memory"
434
+ Consuming all (or nearly all) available memory.
435
+ .IP "\s-1CPU\s0" 8
436
+ .IX Item "CPU"
437
+ Causing infinite loops etc.
438
+ .IP "Snooping" 8
439
+ .IX Item "Snooping"
440
+ Copying private information out of your system. Even something as
441
+ simple as your user name is of value to others. Much useful information
442
+ could be gleaned from your environment variables for example.
443
+ .IP "Signals" 8
444
+ .IX Item "Signals"
445
+ Causing signals (especially \s-1SIGFPE\s0 and \s-1SIGALARM\s0) to affect your process.
446
+ .Sp
447
+ Setting up a signal handler will need to be carefully considered
448
+ and controlled. What mask is in effect when a signal handler
449
+ gets called? If a user can get an imported function to get an
450
+ exception and call the user's signal handler, does that user's
451
+ restricted mask get re-instated before the handler is called?
452
+ Does an imported handler get called with its original mask or
453
+ the user's one?
454
+ .IP "State Changes" 8
455
+ .IX Item "State Changes"
456
+ Ops such as chdir obviously effect the process as a whole and not just
457
+ the code in the compartment. Ops such as rand and srand have a similar
458
+ but more subtle effect.
459
+ .SH "AUTHOR"
460
+ .IX Header "AUTHOR"
461
+ Originally designed and implemented by Malcolm Beattie.
462
+ .PP
463
+ Reworked to use the Opcode module and other changes added by Tim Bunce.
464
+ .PP
465
+ Currently maintained by the Perl 5 Porters, <perl5\-porters@perl.org>.
data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AGrammar.3 ADDED
@@ -0,0 +1,339 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "TAP::Parser::Grammar 3"
136
+ .TH TAP::Parser::Grammar 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
+ TAP::Parser::Grammar \- A grammar for the Test Anything Protocol.
143
+ .SH "VERSION"
144
+ .IX Header "VERSION"
145
+ Version 3.42
146
+ .SH "SYNOPSIS"
147
+ .IX Header "SYNOPSIS"
148
+ .Vb 6
149
+ \& use TAP::Parser::Grammar;
150
+ \& my $grammar = $self\->make_grammar({
151
+ \& iterator => $tap_parser_iterator,
152
+ \& parser => $tap_parser,
153
+ \& version => 12,
154
+ \& });
155
+ \&
156
+ \& my $result = $grammar\->tokenize;
157
+ .Ve
158
+ .SH "DESCRIPTION"
159
+ .IX Header "DESCRIPTION"
160
+ \&\f(CW\*(C`TAP::Parser::Grammar\*(C'\fR tokenizes lines from a TAP::Parser::Iterator and
161
+ constructs TAP::Parser::Result subclasses to represent the tokens.
162
+ .PP
163
+ Do not attempt to use this class directly. It won't make sense. It's mainly
164
+ here to ensure that we will be able to have pluggable grammars when \s-1TAP\s0 is
165
+ expanded at some future date (plus, this stuff was really cluttering the
166
+ parser).
167
+ .SH "METHODS"
168
+ .IX Header "METHODS"
169
+ .SS "Class Methods"
170
+ .IX Subsection "Class Methods"
171
+ \fI\f(CI\*(C`new\*(C'\fI\fR
172
+ .IX Subsection "new"
173
+ .PP
174
+ .Vb 5
175
+ \& my $grammar = TAP::Parser::Grammar\->new({
176
+ \& iterator => $iterator,
177
+ \& parser => $parser,
178
+ \& version => $version,
179
+ \& });
180
+ .Ve
181
+ .PP
182
+ Returns TAP::Parser grammar object that will parse the \s-1TAP\s0 stream from the
183
+ specified iterator. Both \f(CW\*(C`iterator\*(C'\fR and \f(CW\*(C`parser\*(C'\fR are required arguments.
184
+ If \f(CW\*(C`version\*(C'\fR is not set it defaults to \f(CW12\fR (see \*(L"set_version\*(R" for more
185
+ details).
186
+ .SS "Instance Methods"
187
+ .IX Subsection "Instance Methods"
188
+ \fI\f(CI\*(C`set_version\*(C'\fI\fR
189
+ .IX Subsection "set_version"
190
+ .PP
191
+ .Vb 1
192
+ \& $grammar\->set_version(13);
193
+ .Ve
194
+ .PP
195
+ Tell the grammar which \s-1TAP\s0 syntax version to support. The lowest
196
+ supported version is 12. Although '\s-1TAP\s0 version' isn't valid version 12
197
+ syntax it is accepted so that higher version numbers may be parsed.
198
+ .PP
199
+ \fI\f(CI\*(C`tokenize\*(C'\fI\fR
200
+ .IX Subsection "tokenize"
201
+ .PP
202
+ .Vb 1
203
+ \& my $token = $grammar\->tokenize;
204
+ .Ve
205
+ .PP
206
+ This method will return a TAP::Parser::Result object representing the
207
+ current line of \s-1TAP.\s0
208
+ .PP
209
+ \fI\f(CI\*(C`token_types\*(C'\fI\fR
210
+ .IX Subsection "token_types"
211
+ .PP
212
+ .Vb 1
213
+ \& my @types = $grammar\->token_types;
214
+ .Ve
215
+ .PP
216
+ Returns the different types of tokens which this grammar can parse.
217
+ .PP
218
+ \fI\f(CI\*(C`syntax_for\*(C'\fI\fR
219
+ .IX Subsection "syntax_for"
220
+ .PP
221
+ .Vb 1
222
+ \& my $syntax = $grammar\->syntax_for($token_type);
223
+ .Ve
224
+ .PP
225
+ Returns a pre-compiled regular expression which will match a chunk of \s-1TAP\s0
226
+ corresponding to the token type. For example (not that you should really pay
227
+ attention to this, \f(CW\*(C`$grammar\->syntax_for(\*(Aqcomment\*(Aq)\*(C'\fR will return
228
+ \&\f(CW\*(C`qr/^#(.*)/\*(C'\fR.
229
+ .PP
230
+ \fI\f(CI\*(C`handler_for\*(C'\fI\fR
231
+ .IX Subsection "handler_for"
232
+ .PP
233
+ .Vb 1
234
+ \& my $handler = $grammar\->handler_for($token_type);
235
+ .Ve
236
+ .PP
237
+ Returns a code reference which, when passed an appropriate line of \s-1TAP,\s0
238
+ returns the lexed token corresponding to that line. As a result, the basic
239
+ \&\s-1TAP\s0 parsing loop looks similar to the following:
240
+ .PP
241
+ .Vb 10
242
+ \& my @tokens;
243
+ \& my $grammar = TAP::Grammar\->new;
244
+ \& LINE: while ( defined( my $line = $parser\->_next_chunk_of_tap ) ) {
245
+ \& for my $type ( $grammar\->token_types ) {
246
+ \& my $syntax = $grammar\->syntax_for($type);
247
+ \& if ( $line =~ $syntax ) {
248
+ \& my $handler = $grammar\->handler_for($type);
249
+ \& push @tokens => $grammar\->$handler($line);
250
+ \& next LINE;
251
+ \& }
252
+ \& }
253
+ \& push @tokens => $grammar\->_make_unknown_token($line);
254
+ \& }
255
+ .Ve
256
+ .SH "TAP GRAMMAR"
257
+ .IX Header "TAP GRAMMAR"
258
+ \&\fB\s-1NOTE:\s0\fR This grammar is slightly out of date. There's still some discussion
259
+ about it and a new one will be provided when we have things better defined.
260
+ .PP
261
+ The TAP::Parser does not use a formal grammar because \s-1TAP\s0 is essentially a
262
+ stream-based protocol. In fact, it's quite legal to have an infinite stream.
263
+ For the same reason that we don't apply regexes to streams, we're not using a
264
+ formal grammar here. Instead, we parse the \s-1TAP\s0 in lines.
265
+ .PP
266
+ For purposes for forward compatibility, any result which does not match the
267
+ following grammar is currently referred to as
268
+ TAP::Parser::Result::Unknown. It is \fInot\fR a parse error.
269
+ .PP
270
+ A formal grammar would look similar to the following:
271
+ .PP
272
+ .Vb 4
273
+ \& (*
274
+ \& For the time being, I\*(Aqm cheating on the EBNF by allowing
275
+ \& certain terms to be defined by POSIX character classes by
276
+ \& using the following syntax:
277
+ \&
278
+ \& digit ::= [:digit:]
279
+ \&
280
+ \& As far as I am aware, that\*(Aqs not valid EBNF. Sue me. I
281
+ \& didn\*(Aqt know how to write "char" otherwise (Unicode issues).
282
+ \& Suggestions welcome.
283
+ \& *)
284
+ \&
285
+ \& tap ::= version? { comment | unknown } leading_plan lines
286
+ \& |
287
+ \& lines trailing_plan {comment}
288
+ \&
289
+ \& version ::= \*(AqTAP version \*(Aq positiveInteger {positiveInteger} "\en"
290
+ \&
291
+ \& leading_plan ::= plan skip_directive? "\en"
292
+ \&
293
+ \& trailing_plan ::= plan "\en"
294
+ \&
295
+ \& plan ::= \*(Aq1..\*(Aq nonNegativeInteger
296
+ \&
297
+ \& lines ::= line {line}
298
+ \&
299
+ \& line ::= (comment | test | unknown | bailout ) "\en"
300
+ \&
301
+ \& test ::= status positiveInteger? description? directive?
302
+ \&
303
+ \& status ::= \*(Aqnot \*(Aq? \*(Aqok \*(Aq
304
+ \&
305
+ \& description ::= (character \- (digit | \*(Aq#\*(Aq)) {character \- \*(Aq#\*(Aq}
306
+ \&
307
+ \& directive ::= todo_directive | skip_directive
308
+ \&
309
+ \& todo_directive ::= hash_mark \*(AqTODO\*(Aq \*(Aq \*(Aq {character}
310
+ \&
311
+ \& skip_directive ::= hash_mark \*(AqSKIP\*(Aq \*(Aq \*(Aq {character}
312
+ \&
313
+ \& comment ::= hash_mark {character}
314
+ \&
315
+ \& hash_mark ::= \*(Aq#\*(Aq {\*(Aq \*(Aq}
316
+ \&
317
+ \& bailout ::= \*(AqBail out!\*(Aq {character}
318
+ \&
319
+ \& unknown ::= { (character \- "\en") }
320
+ \&
321
+ \& (* POSIX character classes and other terminals *)
322
+ \&
323
+ \& digit ::= [:digit:]
324
+ \& character ::= ([:print:] \- "\en")
325
+ \& positiveInteger ::= ( digit \- \*(Aq0\*(Aq ) {digit}
326
+ \& nonNegativeInteger ::= digit {digit}
327
+ .Ve
328
+ .SH "SUBCLASSING"
329
+ .IX Header "SUBCLASSING"
330
+ Please see \*(L"\s-1SUBCLASSING\*(R"\s0 in TAP::Parser for a subclassing overview.
331
+ .PP
332
+ If you \fIreally\fR want to subclass TAP::Parser's grammar the best thing to
333
+ do is read through the code. There's no easy way of summarizing it here.
334
+ .SH "SEE ALSO"
335
+ .IX Header "SEE ALSO"
336
+ TAP::Object,
337
+ TAP::Parser,
338
+ TAP::Parser::Iterator,
339
+ TAP::Parser::Result,
data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AResult%3A%3ABailout.3 ADDED
@@ -0,0 +1,176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "TAP::Parser::Result::Bailout 3"
136
+ .TH TAP::Parser::Result::Bailout 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
+ TAP::Parser::Result::Bailout \- Bailout result token.
143
+ .SH "VERSION"
144
+ .IX Header "VERSION"
145
+ Version 3.42
146
+ .SH "DESCRIPTION"
147
+ .IX Header "DESCRIPTION"
148
+ This is a subclass of TAP::Parser::Result. A token of this class will be
149
+ returned if a bail out line is encountered.
150
+ .PP
151
+ .Vb 3
152
+ \& 1..5
153
+ \& ok 1 \- woo hooo!
154
+ \& Bail out! Well, so much for "woo hooo!"
155
+ .Ve
156
+ .SH "OVERRIDDEN METHODS"
157
+ .IX Header "OVERRIDDEN METHODS"
158
+ Mainly listed here to shut up the pitiful screams of the pod coverage tests.
159
+ They keep me awake at night.
160
+ .IP "\(bu" 4
161
+ \&\f(CW\*(C`as_string\*(C'\fR
162
+ .SS "Instance Methods"
163
+ .IX Subsection "Instance Methods"
164
+ \fI\f(CI\*(C`explanation\*(C'\fI\fR
165
+ .IX Subsection "explanation"
166
+ .PP
167
+ .Vb 4
168
+ \& if ( $result\->is_bailout ) {
169
+ \& my $explanation = $result\->explanation;
170
+ \& print "We bailed out because ($explanation)";
171
+ \& }
172
+ .Ve
173
+ .PP
174
+ If, and only if, a token is a bailout token, you can get an \*(L"explanation\*(R" via
175
+ this method. The explanation is the text after the mystical \*(L"Bail out!\*(R" words
176
+ which appear in the tap output.
data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AResult%3A%3AComment.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 "TAP::Parser::Result::Comment 3"
136
+ .TH TAP::Parser::Result::Comment 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
+ TAP::Parser::Result::Comment \- Comment result token.
143
+ .SH "VERSION"
144
+ .IX Header "VERSION"
145
+ Version 3.42
146
+ .SH "DESCRIPTION"
147
+ .IX Header "DESCRIPTION"
148
+ This is a subclass of TAP::Parser::Result. A token of this class will be
149
+ returned if a comment line is encountered.
150
+ .PP
151
+ .Vb 3
152
+ \& 1..1
153
+ \& ok 1 \- woo hooo!
154
+ \& # this is a comment
155
+ .Ve
156
+ .SH "OVERRIDDEN METHODS"
157
+ .IX Header "OVERRIDDEN METHODS"
158
+ Mainly listed here to shut up the pitiful screams of the pod coverage tests.
159
+ They keep me awake at night.
160
+ .IP "\(bu" 4
161
+ \&\f(CW\*(C`as_string\*(C'\fR
162
+ .Sp
163
+ Note that this method merely returns the comment preceded by a '# '.
164
+ .SS "Instance Methods"
165
+ .IX Subsection "Instance Methods"
166
+ \fI\f(CI\*(C`comment\*(C'\fI\fR
167
+ .IX Subsection "comment"
168
+ .PP
169
+ .Vb 4
170
+ \& if ( $result\->is_comment ) {
171
+ \& my $comment = $result\->comment;
172
+ \& print "I have something to say: $comment";
173
+ \& }
174
+ .Ve
data/miniconda3/man/man3/TAP%3A%3AParser%3A%3AResult.3 ADDED
@@ -0,0 +1,359 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "TAP::Parser::Result 3"
136
+ .TH TAP::Parser::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
+ TAP::Parser::Result \- Base class for TAP::Parser output objects
143
+ .SH "VERSION"
144
+ .IX Header "VERSION"
145
+ Version 3.42
146
+ .SH "SYNOPSIS"
147
+ .IX Header "SYNOPSIS"
148
+ .Vb 2
149
+ \& # abstract class \- not meant to be used directly
150
+ \& # see TAP::Parser::ResultFactory for preferred usage
151
+ \&
152
+ \& # directly:
153
+ \& use TAP::Parser::Result;
154
+ \& my $token = {...};
155
+ \& my $result = TAP::Parser::Result\->new( $token );
156
+ .Ve
157
+ .SS "\s-1DESCRIPTION\s0"
158
+ .IX Subsection "DESCRIPTION"
159
+ This is a simple base class used by TAP::Parser to store objects that
160
+ represent the current bit of test output data from \s-1TAP\s0 (usually a single
161
+ line). Unless you're subclassing, you probably won't need to use this module
162
+ directly.
163
+ .SS "\s-1METHODS\s0"
164
+ .IX Subsection "METHODS"
165
+ \fI\f(CI\*(C`new\*(C'\fI\fR
166
+ .IX Subsection "new"
167
+ .PP
168
+ .Vb 1
169
+ \& # see TAP::Parser::ResultFactory for preferred usage
170
+ \&
171
+ \& # to use directly:
172
+ \& my $result = TAP::Parser::Result\->new($token);
173
+ .Ve
174
+ .PP
175
+ Returns an instance the appropriate class for the test token passed in.
176
+ .SS "Boolean methods"
177
+ .IX Subsection "Boolean methods"
178
+ The following methods all return a boolean value and are to be overridden in
179
+ the appropriate subclass.
180
+ .IP "\(bu" 4
181
+ \&\f(CW\*(C`is_plan\*(C'\fR
182
+ .Sp
183
+ Indicates whether or not this is the test plan line.
184
+ .Sp
185
+ .Vb 1
186
+ \& 1..3
187
+ .Ve
188
+ .IP "\(bu" 4
189
+ \&\f(CW\*(C`is_pragma\*(C'\fR
190
+ .Sp
191
+ Indicates whether or not this is a pragma line.
192
+ .Sp
193
+ .Vb 1
194
+ \& pragma +strict
195
+ .Ve
196
+ .IP "\(bu" 4
197
+ \&\f(CW\*(C`is_test\*(C'\fR
198
+ .Sp
199
+ Indicates whether or not this is a test line.
200
+ .Sp
201
+ .Vb 1
202
+ \& ok 1 Is OK!
203
+ .Ve
204
+ .IP "\(bu" 4
205
+ \&\f(CW\*(C`is_comment\*(C'\fR
206
+ .Sp
207
+ Indicates whether or not this is a comment.
208
+ .Sp
209
+ .Vb 1
210
+ \& # this is a comment
211
+ .Ve
212
+ .IP "\(bu" 4
213
+ \&\f(CW\*(C`is_bailout\*(C'\fR
214
+ .Sp
215
+ Indicates whether or not this is bailout line.
216
+ .Sp
217
+ .Vb 1
218
+ \& Bail out! We\*(Aqre out of dilithium crystals.
219
+ .Ve
220
+ .IP "\(bu" 4
221
+ \&\f(CW\*(C`is_version\*(C'\fR
222
+ .Sp
223
+ Indicates whether or not this is a \s-1TAP\s0 version line.
224
+ .Sp
225
+ .Vb 1
226
+ \& TAP version 4
227
+ .Ve
228
+ .IP "\(bu" 4
229
+ \&\f(CW\*(C`is_unknown\*(C'\fR
230
+ .Sp
231
+ Indicates whether or not the current line could be parsed.
232
+ .Sp
233
+ .Vb 1
234
+ \& ... this line is junk ...
235
+ .Ve
236
+ .IP "\(bu" 4
237
+ \&\f(CW\*(C`is_yaml\*(C'\fR
238
+ .Sp
239
+ Indicates whether or not this is a \s-1YAML\s0 chunk.
240
+ .PP
241
+ \fI\f(CI\*(C`raw\*(C'\fI\fR
242
+ .IX Subsection "raw"
243
+ .PP
244
+ .Vb 1
245
+ \& print $result\->raw;
246
+ .Ve
247
+ .PP
248
+ Returns the original line of text which was parsed.
249
+ .PP
250
+ \fI\f(CI\*(C`type\*(C'\fI\fR
251
+ .IX Subsection "type"
252
+ .PP
253
+ .Vb 1
254
+ \& my $type = $result\->type;
255
+ .Ve
256
+ .PP
257
+ Returns the \*(L"type\*(R" of a token, such as \f(CW\*(C`comment\*(C'\fR or \f(CW\*(C`test\*(C'\fR.
258
+ .PP
259
+ \fI\f(CI\*(C`as_string\*(C'\fI\fR
260
+ .IX Subsection "as_string"
261
+ .PP
262
+ .Vb 1
263
+ \& print $result\->as_string;
264
+ .Ve
265
+ .PP
266
+ Prints a string representation of the token. This might not be the exact
267
+ output, however. Tests will have test numbers added if not present, \s-1TODO\s0 and
268
+ \&\s-1SKIP\s0 directives will be capitalized and, in general, things will be cleaned
269
+ up. If you need the original text for the token, see the \f(CW\*(C`raw\*(C'\fR method.
270
+ .PP
271
+ \fI\f(CI\*(C`is_ok\*(C'\fI\fR
272
+ .IX Subsection "is_ok"
273
+ .PP
274
+ .Vb 1
275
+ \& if ( $result\->is_ok ) { ... }
276
+ .Ve
277
+ .PP
278
+ Reports whether or not a given result has passed. Anything which is \fBnot\fR a
279
+ test result returns true. This is merely provided as a convenient shortcut.
280
+ .PP
281
+ \fI\f(CI\*(C`passed\*(C'\fI\fR
282
+ .IX Subsection "passed"
283
+ .PP
284
+ Deprecated. Please use \f(CW\*(C`is_ok\*(C'\fR instead.
285
+ .PP
286
+ \fI\f(CI\*(C`has_directive\*(C'\fI\fR
287
+ .IX Subsection "has_directive"
288
+ .PP
289
+ .Vb 3
290
+ \& if ( $result\->has_directive ) {
291
+ \& ...
292
+ \& }
293
+ .Ve
294
+ .PP
295
+ Indicates whether or not the given result has a \s-1TODO\s0 or \s-1SKIP\s0 directive.
296
+ .PP
297
+ \fI\f(CI\*(C`has_todo\*(C'\fI\fR
298
+ .IX Subsection "has_todo"
299
+ .PP
300
+ .Vb 3
301
+ \& if ( $result\->has_todo ) {
302
+ \& ...
303
+ \& }
304
+ .Ve
305
+ .PP
306
+ Indicates whether or not the given result has a \s-1TODO\s0 directive.
307
+ .PP
308
+ \fI\f(CI\*(C`has_skip\*(C'\fI\fR
309
+ .IX Subsection "has_skip"
310
+ .PP
311
+ .Vb 3
312
+ \& if ( $result\->has_skip ) {
313
+ \& ...
314
+ \& }
315
+ .Ve
316
+ .PP
317
+ Indicates whether or not the given result has a \s-1SKIP\s0 directive.
318
+ .PP
319
+ \fI\f(CI\*(C`set_directive\*(C'\fI\fR
320
+ .IX Subsection "set_directive"
321
+ .PP
322
+ Set the directive associated with this token. Used internally to fake
323
+ \&\s-1TODO\s0 tests.
324
+ .SH "SUBCLASSING"
325
+ .IX Header "SUBCLASSING"
326
+ Please see \*(L"\s-1SUBCLASSING\*(R"\s0 in TAP::Parser for a subclassing overview.
327
+ .PP
328
+ Remember: if you want your subclass to be automatically used by the parser,
329
+ you'll have to register it with \*(L"register_type\*(R" in TAP::Parser::ResultFactory.
330
+ .PP
331
+ If you're creating a completely new result \fItype\fR, you'll probably need to
332
+ subclass TAP::Parser::Grammar too, or else it'll never get used.
333
+ .SS "Example"
334
+ .IX Subsection "Example"
335
+ .Vb 1
336
+ \& package MyResult;
337
+ \&
338
+ \& use strict;
339
+ \&
340
+ \& use base \*(AqTAP::Parser::Result\*(Aq;
341
+ \&
342
+ \& # register with the factory:
343
+ \& TAP::Parser::ResultFactory\->register_type( \*(Aqmy_type\*(Aq => _\|_PACKAGE_\|_ );
344
+ \&
345
+ \& sub as_string { \*(AqMy results all look the same\*(Aq }
346
+ .Ve
347
+ .SH "SEE ALSO"
348
+ .IX Header "SEE ALSO"
349
+ TAP::Object,
350
+ TAP::Parser,
351
+ TAP::Parser::ResultFactory,
352
+ TAP::Parser::Result::Bailout,
353
+ TAP::Parser::Result::Comment,
354
+ TAP::Parser::Result::Plan,
355
+ TAP::Parser::Result::Pragma,
356
+ TAP::Parser::Result::Test,
357
+ TAP::Parser::Result::Unknown,
358
+ TAP::Parser::Result::Version,
359
+ TAP::Parser::Result::YAML,
data/miniconda3/man/man3/TAP%3A%3AParser%3A%3ASourceHandler.3 ADDED
@@ -0,0 +1,296 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "TAP::Parser::SourceHandler 3"
136
+ .TH TAP::Parser::SourceHandler 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
+ TAP::Parser::SourceHandler \- Base class for different TAP source handlers
143
+ .SH "VERSION"
144
+ .IX Header "VERSION"
145
+ Version 3.42
146
+ .SH "SYNOPSIS"
147
+ .IX Header "SYNOPSIS"
148
+ .Vb 2
149
+ \& # abstract class \- don\*(Aqt use directly!
150
+ \& # see TAP::Parser::IteratorFactory for general usage
151
+ \&
152
+ \& # must be sub\-classed for use
153
+ \& package MySourceHandler;
154
+ \& use base \*(AqTAP::Parser::SourceHandler\*(Aq;
155
+ \& sub can_handle { return $confidence_level }
156
+ \& sub make_iterator { return $iterator }
157
+ \&
158
+ \& # see example below for more details
159
+ .Ve
160
+ .SH "DESCRIPTION"
161
+ .IX Header "DESCRIPTION"
162
+ This is an abstract base class for TAP::Parser::Source handlers / handlers.
163
+ .PP
164
+ A \f(CW\*(C`TAP::Parser::SourceHandler\*(C'\fR does whatever is necessary to produce & capture
165
+ a stream of \s-1TAP\s0 from the \fIraw\fR source, and package it up in a
166
+ TAP::Parser::Iterator for the parser to consume.
167
+ .PP
168
+ \&\f(CW\*(C`SourceHandlers\*(C'\fR must implement the \fIsource detection & handling\fR interface
169
+ used by TAP::Parser::IteratorFactory. At 2 methods, the interface is pretty
170
+ simple: \*(L"can_handle\*(R" and \*(L"make_source\*(R".
171
+ .PP
172
+ Unless you're writing a new TAP::Parser::SourceHandler, a plugin, or
173
+ subclassing TAP::Parser, you probably won't need to use this module directly.
174
+ .SH "METHODS"
175
+ .IX Header "METHODS"
176
+ .SS "Class Methods"
177
+ .IX Subsection "Class Methods"
178
+ \fI\f(CI\*(C`can_handle\*(C'\fI\fR
179
+ .IX Subsection "can_handle"
180
+ .PP
181
+ \&\fIAbstract method\fR.
182
+ .PP
183
+ .Vb 1
184
+ \& my $vote = $class\->can_handle( $source );
185
+ .Ve
186
+ .PP
187
+ \&\f(CW$source\fR is a TAP::Parser::Source.
188
+ .PP
189
+ Returns a number between \f(CW0\fR & \f(CW1\fR reflecting how confidently the raw source
190
+ can be handled. For example, \f(CW0\fR means the source cannot handle it, \f(CW0.5\fR
191
+ means it may be able to, and \f(CW1\fR means it definitely can. See
192
+ \&\*(L"detect_source\*(R" in TAP::Parser::IteratorFactory for details on how this is used.
193
+ .PP
194
+ \fI\f(CI\*(C`make_iterator\*(C'\fI\fR
195
+ .IX Subsection "make_iterator"
196
+ .PP
197
+ \&\fIAbstract method\fR.
198
+ .PP
199
+ .Vb 1
200
+ \& my $iterator = $class\->make_iterator( $source );
201
+ .Ve
202
+ .PP
203
+ \&\f(CW$source\fR is a TAP::Parser::Source.
204
+ .PP
205
+ Returns a new TAP::Parser::Iterator object for use by the TAP::Parser.
206
+ \&\f(CW\*(C`croak\*(C'\fRs on error.
207
+ .SH "SUBCLASSING"
208
+ .IX Header "SUBCLASSING"
209
+ Please see \*(L"\s-1SUBCLASSING\*(R"\s0 in TAP::Parser for a subclassing overview, and any
210
+ of the subclasses that ship with this module as an example. What follows is
211
+ a quick overview.
212
+ .PP
213
+ Start by familiarizing yourself with TAP::Parser::Source and
214
+ TAP::Parser::IteratorFactory. TAP::Parser::SourceHandler::RawTAP is
215
+ the easiest sub-class to use as an example.
216
+ .PP
217
+ It's important to point out that if you want your subclass to be automatically
218
+ used by TAP::Parser you'll have to and make sure it gets loaded somehow.
219
+ If you're using prove you can write an App::Prove plugin. If you're
220
+ using TAP::Parser or TAP::Harness directly (e.g. through a custom script,
221
+ ExtUtils::MakeMaker, or Module::Build) you can use the \f(CW\*(C`config\*(C'\fR option
222
+ which will cause \*(L"load_sources\*(R" in TAP::Parser::IteratorFactory to load your
223
+ subclass).
224
+ .PP
225
+ Don't forget to register your class with
226
+ \&\*(L"register_handler\*(R" in TAP::Parser::IteratorFactory.
227
+ .SS "Example"
228
+ .IX Subsection "Example"
229
+ .Vb 1
230
+ \& package MySourceHandler;
231
+ \&
232
+ \& use strict;
233
+ \&
234
+ \& use MySourceHandler; # see TAP::Parser::SourceHandler
235
+ \& use TAP::Parser::IteratorFactory;
236
+ \&
237
+ \& use base \*(AqTAP::Parser::SourceHandler\*(Aq;
238
+ \&
239
+ \& TAP::Parser::IteratorFactory\->register_handler( _\|_PACKAGE_\|_ );
240
+ \&
241
+ \& sub can_handle {
242
+ \& my ( $class, $src ) = @_;
243
+ \& my $meta = $src\->meta;
244
+ \& my $config = $src\->config_for( $class );
245
+ \&
246
+ \& if ($config\->{accept_all}) {
247
+ \& return 1.0;
248
+ \& } elsif (my $file = $meta\->{file}) {
249
+ \& return 0.0 unless $file\->{exists};
250
+ \& return 1.0 if $file\->{lc_ext} eq \*(Aq.tap\*(Aq;
251
+ \& return 0.9 if $file\->{shebang} && $file\->{shebang} =~ /^#!.+tap/;
252
+ \& return 0.5 if $file\->{text};
253
+ \& return 0.1 if $file\->{binary};
254
+ \& } elsif ($meta\->{scalar}) {
255
+ \& return 0.8 if $$raw_source_ref =~ /\ed\e.\e.\ed/;
256
+ \& return 0.6 if $meta\->{has_newlines};
257
+ \& } elsif ($meta\->{array}) {
258
+ \& return 0.8 if $meta\->{size} < 5;
259
+ \& return 0.6 if $raw_source_ref\->[0] =~ /foo/;
260
+ \& return 0.5;
261
+ \& } elsif ($meta\->{hash}) {
262
+ \& return 0.6 if $raw_source_ref\->{foo};
263
+ \& return 0.2;
264
+ \& }
265
+ \&
266
+ \& return 0;
267
+ \& }
268
+ \&
269
+ \& sub make_iterator {
270
+ \& my ($class, $source) = @_;
271
+ \& # this is where you manipulate the source and
272
+ \& # capture the stream of TAP in an iterator
273
+ \& # either pick a TAP::Parser::Iterator::* or write your own...
274
+ \& my $iterator = TAP::Parser::Iterator::Array\->new([ \*(Aqfoo\*(Aq, \*(Aqbar\*(Aq ]);
275
+ \& return $iterator;
276
+ \& }
277
+ \&
278
+ \& 1;
279
+ .Ve
280
+ .SH "AUTHORS"
281
+ .IX Header "AUTHORS"
282
+ TAPx Developers.
283
+ .PP
284
+ Source detection stuff added by Steve Purkis
285
+ .SH "SEE ALSO"
286
+ .IX Header "SEE ALSO"
287
+ TAP::Object,
288
+ TAP::Parser,
289
+ TAP::Parser::Source,
290
+ TAP::Parser::Iterator,
291
+ TAP::Parser::IteratorFactory,
292
+ TAP::Parser::SourceHandler::Executable,
293
+ TAP::Parser::SourceHandler::Perl,
294
+ TAP::Parser::SourceHandler::File,
295
+ TAP::Parser::SourceHandler::Handle,
296
+ TAP::Parser::SourceHandler::RawTAP
data/miniconda3/man/man3/Test%3A%3ABuilder%3A%3ATodoDiag.3 ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "Test::Builder::TodoDiag 3"
136
+ .TH Test::Builder::TodoDiag 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
+ Test::Builder::TodoDiag \- Test::Builder subclass of Test2::Event::Diag
143
+ .SH "DESCRIPTION"
144
+ .IX Header "DESCRIPTION"
145
+ This is used to encapsulate diag messages created inside \s-1TODO.\s0
146
+ .SH "SYNOPSIS"
147
+ .IX Header "SYNOPSIS"
148
+ You do not need to use this directly.
149
+ .SH "SOURCE"
150
+ .IX Header "SOURCE"
151
+ The source code repository for Test2 can be found at
152
+ \&\fIhttp://github.com/Test\-More/test\-more/\fR.
153
+ .SH "MAINTAINERS"
154
+ .IX Header "MAINTAINERS"
155
+ .IP "Chad Granum <exodist@cpan.org>" 4
156
+ .IX Item "Chad Granum <exodist@cpan.org>"
157
+ .SH "AUTHORS"
158
+ .IX Header "AUTHORS"
159
+ .PD 0
160
+ .IP "Chad Granum <exodist@cpan.org>" 4
161
+ .IX Item "Chad Granum <exodist@cpan.org>"
162
+ .PD
163
+ .SH "COPYRIGHT"
164
+ .IX Header "COPYRIGHT"
165
+ Copyright 2019 Chad Granum <exodist@cpan.org>.
166
+ .PP
167
+ This program is free software; you can redistribute it and/or
168
+ modify it under the same terms as Perl itself.
169
+ .PP
170
+ See \fIhttp://dev.perl.org/licenses/\fR
data/miniconda3/man/man3/Test2%3A%3AAPI%3A%3AInstance.3 ADDED
@@ -0,0 +1,389 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "Test2::API::Instance 3"
136
+ .TH Test2::API::Instance 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
+ Test2::API::Instance \- Object used by Test2::API under the hood
143
+ .SH "DESCRIPTION"
144
+ .IX Header "DESCRIPTION"
145
+ This object encapsulates the global shared state tracked by
146
+ Test2. A single global instance of this package is stored (and
147
+ obscured) by the Test2::API package.
148
+ .PP
149
+ There is no reason to directly use this package. This package is documented for
150
+ completeness. This package can change, or go away completely at any time.
151
+ Directly using, or monkeypatching this package is not supported in any way
152
+ shape or form.
153
+ .SH "SYNOPSIS"
154
+ .IX Header "SYNOPSIS"
155
+ .Vb 1
156
+ \& use Test2::API::Instance;
157
+ \&
158
+ \& my $obj = Test2::API::Instance\->new;
159
+ .Ve
160
+ .ie n .IP "$pid = $obj\->pid" 4
161
+ .el .IP "\f(CW$pid\fR = \f(CW$obj\fR\->pid" 4
162
+ .IX Item "$pid = $obj->pid"
163
+ \&\s-1PID\s0 of this instance.
164
+ .ie n .IP "$obj\->tid" 4
165
+ .el .IP "\f(CW$obj\fR\->tid" 4
166
+ .IX Item "$obj->tid"
167
+ Thread \s-1ID\s0 of this instance.
168
+ .ie n .IP "$obj\->\fBreset()\fR" 4
169
+ .el .IP "\f(CW$obj\fR\->\fBreset()\fR" 4
170
+ .IX Item "$obj->reset()"
171
+ Reset the object to defaults.
172
+ .ie n .IP "$obj\->\fBload()\fR" 4
173
+ .el .IP "\f(CW$obj\fR\->\fBload()\fR" 4
174
+ .IX Item "$obj->load()"
175
+ Set the internal state to loaded, and run and stored post-load callbacks.
176
+ .ie n .IP "$bool = $obj\->loaded" 4
177
+ .el .IP "\f(CW$bool\fR = \f(CW$obj\fR\->loaded" 4
178
+ .IX Item "$bool = $obj->loaded"
179
+ Check if the state is set to loaded.
180
+ .ie n .IP "$arrayref = $obj\->post_load_callbacks" 4
181
+ .el .IP "\f(CW$arrayref\fR = \f(CW$obj\fR\->post_load_callbacks" 4
182
+ .IX Item "$arrayref = $obj->post_load_callbacks"
183
+ Get the post-load callbacks.
184
+ .ie n .IP "$obj\->add_post_load_callback(sub { ... })" 4
185
+ .el .IP "\f(CW$obj\fR\->add_post_load_callback(sub { ... })" 4
186
+ .IX Item "$obj->add_post_load_callback(sub { ... })"
187
+ Add a post-load callback. If \f(CW\*(C`load()\*(C'\fR has already been called then the callback will
188
+ be immediately executed. If \f(CW\*(C`load()\*(C'\fR has not been called then the callback will be
189
+ stored and executed later when \f(CW\*(C`load()\*(C'\fR is called.
190
+ .ie n .IP "$hashref = $obj\->\fBcontexts()\fR" 4
191
+ .el .IP "\f(CW$hashref\fR = \f(CW$obj\fR\->\fBcontexts()\fR" 4
192
+ .IX Item "$hashref = $obj->contexts()"
193
+ Get a hashref of all active contexts keyed by hub id.
194
+ .ie n .IP "$arrayref = $obj\->context_acquire_callbacks" 4
195
+ .el .IP "\f(CW$arrayref\fR = \f(CW$obj\fR\->context_acquire_callbacks" 4
196
+ .IX Item "$arrayref = $obj->context_acquire_callbacks"
197
+ Get all context acquire callbacks.
198
+ .ie n .IP "$arrayref = $obj\->context_init_callbacks" 4
199
+ .el .IP "\f(CW$arrayref\fR = \f(CW$obj\fR\->context_init_callbacks" 4
200
+ .IX Item "$arrayref = $obj->context_init_callbacks"
201
+ Get all context init callbacks.
202
+ .ie n .IP "$arrayref = $obj\->context_release_callbacks" 4
203
+ .el .IP "\f(CW$arrayref\fR = \f(CW$obj\fR\->context_release_callbacks" 4
204
+ .IX Item "$arrayref = $obj->context_release_callbacks"
205
+ Get all context release callbacks.
206
+ .ie n .IP "$arrayref = $obj\->pre_subtest_callbacks" 4
207
+ .el .IP "\f(CW$arrayref\fR = \f(CW$obj\fR\->pre_subtest_callbacks" 4
208
+ .IX Item "$arrayref = $obj->pre_subtest_callbacks"
209
+ Get all pre-subtest callbacks.
210
+ .ie n .IP "$obj\->add_context_init_callback(sub { ... })" 4
211
+ .el .IP "\f(CW$obj\fR\->add_context_init_callback(sub { ... })" 4
212
+ .IX Item "$obj->add_context_init_callback(sub { ... })"
213
+ Add a context init callback. Subs are called every time a context is created. Subs
214
+ get the newly created context as their only argument.
215
+ .ie n .IP "$obj\->add_context_release_callback(sub { ... })" 4
216
+ .el .IP "\f(CW$obj\fR\->add_context_release_callback(sub { ... })" 4
217
+ .IX Item "$obj->add_context_release_callback(sub { ... })"
218
+ Add a context release callback. Subs are called every time a context is released. Subs
219
+ get the released context as their only argument. These callbacks should not
220
+ call release on the context.
221
+ .ie n .IP "$obj\->add_pre_subtest_callback(sub { ... })" 4
222
+ .el .IP "\f(CW$obj\fR\->add_pre_subtest_callback(sub { ... })" 4
223
+ .IX Item "$obj->add_pre_subtest_callback(sub { ... })"
224
+ Add a pre-subtest callback. Subs are called every time a subtest is
225
+ going to be run. Subs get the subtest name, coderef, and any
226
+ arguments.
227
+ .ie n .IP "$obj\->\fBset_exit()\fR" 4
228
+ .el .IP "\f(CW$obj\fR\->\fBset_exit()\fR" 4
229
+ .IX Item "$obj->set_exit()"
230
+ This is intended to be called in an \f(CW\*(C`END { ... }\*(C'\fR block. This will look at
231
+ test state and set $?. This will also call any end callbacks, and wait on child
232
+ processes/threads.
233
+ .ie n .IP "$obj\->set_ipc_pending($val)" 4
234
+ .el .IP "\f(CW$obj\fR\->set_ipc_pending($val)" 4
235
+ .IX Item "$obj->set_ipc_pending($val)"
236
+ Tell other processes and threads there is a pending event. \f(CW$val\fR should be a
237
+ unique value no other thread/process will generate.
238
+ .Sp
239
+ \&\fBNote:\fR This will also make the current process see a pending event.
240
+ .ie n .IP "$pending = $obj\->\fBget_ipc_pending()\fR" 4
241
+ .el .IP "\f(CW$pending\fR = \f(CW$obj\fR\->\fBget_ipc_pending()\fR" 4
242
+ .IX Item "$pending = $obj->get_ipc_pending()"
243
+ This returns \-1 if it is not possible to know.
244
+ .Sp
245
+ This returns 0 if there are no pending events.
246
+ .Sp
247
+ This returns 1 if there are pending events.
248
+ .ie n .IP "$timeout = $obj\->ipc_timeout;" 4
249
+ .el .IP "\f(CW$timeout\fR = \f(CW$obj\fR\->ipc_timeout;" 4
250
+ .IX Item "$timeout = $obj->ipc_timeout;"
251
+ .PD 0
252
+ .ie n .IP "$obj\->set_ipc_timeout($timeout);" 4
253
+ .el .IP "\f(CW$obj\fR\->set_ipc_timeout($timeout);" 4
254
+ .IX Item "$obj->set_ipc_timeout($timeout);"
255
+ .PD
256
+ How long to wait for child processes and threads before aborting.
257
+ .ie n .IP "$drivers = $obj\->ipc_drivers" 4
258
+ .el .IP "\f(CW$drivers\fR = \f(CW$obj\fR\->ipc_drivers" 4
259
+ .IX Item "$drivers = $obj->ipc_drivers"
260
+ Get the list of \s-1IPC\s0 drivers.
261
+ .ie n .IP "$obj\->add_ipc_driver($DRIVER_CLASS)" 4
262
+ .el .IP "\f(CW$obj\fR\->add_ipc_driver($DRIVER_CLASS)" 4
263
+ .IX Item "$obj->add_ipc_driver($DRIVER_CLASS)"
264
+ Add an \s-1IPC\s0 driver to the list. The most recently added \s-1IPC\s0 driver will become
265
+ the global one during initialization. If a driver is added after initialization
266
+ has occurred a warning will be generated:
267
+ .Sp
268
+ .Vb 1
269
+ \& "IPC driver $driver loaded too late to be used as the global ipc driver"
270
+ .Ve
271
+ .ie n .IP "$bool = $obj\->ipc_polling" 4
272
+ .el .IP "\f(CW$bool\fR = \f(CW$obj\fR\->ipc_polling" 4
273
+ .IX Item "$bool = $obj->ipc_polling"
274
+ Check if polling is enabled.
275
+ .ie n .IP "$obj\->enable_ipc_polling" 4
276
+ .el .IP "\f(CW$obj\fR\->enable_ipc_polling" 4
277
+ .IX Item "$obj->enable_ipc_polling"
278
+ Turn on polling. This will cull events from other processes and threads every
279
+ time a context is created.
280
+ .ie n .IP "$obj\->disable_ipc_polling" 4
281
+ .el .IP "\f(CW$obj\fR\->disable_ipc_polling" 4
282
+ .IX Item "$obj->disable_ipc_polling"
283
+ Turn off \s-1IPC\s0 polling.
284
+ .ie n .IP "$bool = $obj\->no_wait" 4
285
+ .el .IP "\f(CW$bool\fR = \f(CW$obj\fR\->no_wait" 4
286
+ .IX Item "$bool = $obj->no_wait"
287
+ .PD 0
288
+ .ie n .IP "$bool = $obj\->set_no_wait($bool)" 4
289
+ .el .IP "\f(CW$bool\fR = \f(CW$obj\fR\->set_no_wait($bool)" 4
290
+ .IX Item "$bool = $obj->set_no_wait($bool)"
291
+ .PD
292
+ Get/Set no_wait. This option is used to turn off process/thread waiting at exit.
293
+ .ie n .IP "$arrayref = $obj\->exit_callbacks" 4
294
+ .el .IP "\f(CW$arrayref\fR = \f(CW$obj\fR\->exit_callbacks" 4
295
+ .IX Item "$arrayref = $obj->exit_callbacks"
296
+ Get the exit callbacks.
297
+ .ie n .IP "$obj\->add_exit_callback(sub { ... })" 4
298
+ .el .IP "\f(CW$obj\fR\->add_exit_callback(sub { ... })" 4
299
+ .IX Item "$obj->add_exit_callback(sub { ... })"
300
+ Add an exit callback. This callback will be called by \f(CW\*(C`set_exit()\*(C'\fR.
301
+ .ie n .IP "$bool = $obj\->finalized" 4
302
+ .el .IP "\f(CW$bool\fR = \f(CW$obj\fR\->finalized" 4
303
+ .IX Item "$bool = $obj->finalized"
304
+ Check if the object is finalized. Finalization happens when either \f(CW\*(C`ipc()\*(C'\fR,
305
+ \&\f(CW\*(C`stack()\*(C'\fR, or \f(CW\*(C`format()\*(C'\fR are called on the object. Once finalization happens
306
+ these fields are considered unchangeable (not enforced here, enforced by
307
+ Test2).
308
+ .ie n .IP "$ipc = $obj\->ipc" 4
309
+ .el .IP "\f(CW$ipc\fR = \f(CW$obj\fR\->ipc" 4
310
+ .IX Item "$ipc = $obj->ipc"
311
+ Get the one true \s-1IPC\s0 instance.
312
+ .ie n .IP "$obj\->ipc_disable" 4
313
+ .el .IP "\f(CW$obj\fR\->ipc_disable" 4
314
+ .IX Item "$obj->ipc_disable"
315
+ Turn \s-1IPC\s0 off
316
+ .ie n .IP "$bool = $obj\->ipc_disabled" 4
317
+ .el .IP "\f(CW$bool\fR = \f(CW$obj\fR\->ipc_disabled" 4
318
+ .IX Item "$bool = $obj->ipc_disabled"
319
+ Check if \s-1IPC\s0 is disabled
320
+ .ie n .IP "$stack = $obj\->stack" 4
321
+ .el .IP "\f(CW$stack\fR = \f(CW$obj\fR\->stack" 4
322
+ .IX Item "$stack = $obj->stack"
323
+ Get the one true hub stack.
324
+ .ie n .IP "$formatter = $obj\->formatter" 4
325
+ .el .IP "\f(CW$formatter\fR = \f(CW$obj\fR\->formatter" 4
326
+ .IX Item "$formatter = $obj->formatter"
327
+ Get the global formatter. By default this is the \f(CW\*(AqTest2::Formatter::TAP\*(Aq\fR
328
+ package. This could be any package that implements the \f(CW\*(C`write()\*(C'\fR method. This
329
+ can also be an instantiated object.
330
+ .ie n .IP "$bool = $obj\->\fBformatter_set()\fR" 4
331
+ .el .IP "\f(CW$bool\fR = \f(CW$obj\fR\->\fBformatter_set()\fR" 4
332
+ .IX Item "$bool = $obj->formatter_set()"
333
+ Check if a formatter has been set.
334
+ .ie n .IP "$obj\->add_formatter($class)" 4
335
+ .el .IP "\f(CW$obj\fR\->add_formatter($class)" 4
336
+ .IX Item "$obj->add_formatter($class)"
337
+ .PD 0
338
+ .ie n .IP "$obj\->add_formatter($obj)" 4
339
+ .el .IP "\f(CW$obj\fR\->add_formatter($obj)" 4
340
+ .IX Item "$obj->add_formatter($obj)"
341
+ .PD
342
+ Add a formatter. The most recently added formatter will become the global one
343
+ during initialization. If a formatter is added after initialization has occurred
344
+ a warning will be generated:
345
+ .Sp
346
+ .Vb 1
347
+ \& "Formatter $formatter loaded too late to be used as the global formatter"
348
+ .Ve
349
+ .ie n .IP "$obj\->set_add_uuid_via(sub { ... })" 4
350
+ .el .IP "\f(CW$obj\fR\->set_add_uuid_via(sub { ... })" 4
351
+ .IX Item "$obj->set_add_uuid_via(sub { ... })"
352
+ .PD 0
353
+ .ie n .IP "$sub = $obj\->\fBadd_uuid_via()\fR" 4
354
+ .el .IP "\f(CW$sub\fR = \f(CW$obj\fR\->\fBadd_uuid_via()\fR" 4
355
+ .IX Item "$sub = $obj->add_uuid_via()"
356
+ .PD
357
+ This allows you to provide a \s-1UUID\s0 generator. If provided UUIDs will be attached
358
+ to all events, hubs, and contexts. This is useful for storing, tracking, and
359
+ linking these objects.
360
+ .Sp
361
+ The sub you provide should always return a unique identifier. Most things will
362
+ expect a proper \s-1UUID\s0 string, however nothing in Test2::API enforces this.
363
+ .Sp
364
+ The sub will receive exactly 1 argument, the type of thing being tagged
365
+ \&'context', 'hub', or 'event'. In the future additional things may be tagged, in
366
+ which case new strings will be passed in. These are purely informative, you can
367
+ (and usually should) ignore them.
368
+ .SH "SOURCE"
369
+ .IX Header "SOURCE"
370
+ The source code repository for Test2 can be found at
371
+ \&\fIhttp://github.com/Test\-More/test\-more/\fR.
372
+ .SH "MAINTAINERS"
373
+ .IX Header "MAINTAINERS"
374
+ .IP "Chad Granum <exodist@cpan.org>" 4
375
+ .IX Item "Chad Granum <exodist@cpan.org>"
376
+ .SH "AUTHORS"
377
+ .IX Header "AUTHORS"
378
+ .PD 0
379
+ .IP "Chad Granum <exodist@cpan.org>" 4
380
+ .IX Item "Chad Granum <exodist@cpan.org>"
381
+ .PD
382
+ .SH "COPYRIGHT"
383
+ .IX Header "COPYRIGHT"
384
+ Copyright 2019 Chad Granum <exodist@cpan.org>.
385
+ .PP
386
+ This program is free software; you can redistribute it and/or
387
+ modify it under the same terms as Perl itself.
388
+ .PP
389
+ See \fIhttp://dev.perl.org/licenses/\fR
data/miniconda3/man/man3/Test2%3A%3AAPI%3A%3AStack.3 ADDED
@@ -0,0 +1,244 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "Test2::API::Stack 3"
136
+ .TH Test2::API::Stack 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
+ Test2::API::Stack \- Object to manage a stack of Test2::Hub
143
+ instances.
144
+ .SH "***INTERNALS NOTE***"
145
+ .IX Header "***INTERNALS NOTE***"
146
+ \&\fBThe internals of this package are subject to change at any time!\fR The public
147
+ methods provided will not change in backwards incompatible ways, but the
148
+ underlying implementation details might. \fBDo not break encapsulation here!\fR
149
+ .SH "DESCRIPTION"
150
+ .IX Header "DESCRIPTION"
151
+ This module is used to represent and manage a stack of Test2::Hub
152
+ objects. Hubs are usually in a stack so that you can push a new hub into place
153
+ that can intercept and handle events differently than the primary hub.
154
+ .SH "SYNOPSIS"
155
+ .IX Header "SYNOPSIS"
156
+ .Vb 2
157
+ \& my $stack = Test2::API::Stack\->new;
158
+ \& my $hub = $stack\->top;
159
+ .Ve
160
+ .SH "METHODS"
161
+ .IX Header "METHODS"
162
+ .ie n .IP "$stack = Test2::API::Stack\->\fBnew()\fR" 4
163
+ .el .IP "\f(CW$stack\fR = Test2::API::Stack\->\fBnew()\fR" 4
164
+ .IX Item "$stack = Test2::API::Stack->new()"
165
+ This will create a new empty stack instance. All arguments are ignored.
166
+ .ie n .IP "$hub = $stack\->\fBnew_hub()\fR" 4
167
+ .el .IP "\f(CW$hub\fR = \f(CW$stack\fR\->\fBnew_hub()\fR" 4
168
+ .IX Item "$hub = $stack->new_hub()"
169
+ .PD 0
170
+ .ie n .IP "$hub = $stack\->new_hub(%params)" 4
171
+ .el .IP "\f(CW$hub\fR = \f(CW$stack\fR\->new_hub(%params)" 4
172
+ .IX Item "$hub = $stack->new_hub(%params)"
173
+ .ie n .IP "$hub = $stack\->new_hub(%params, class => $class)" 4
174
+ .el .IP "\f(CW$hub\fR = \f(CW$stack\fR\->new_hub(%params, class => \f(CW$class\fR)" 4
175
+ .IX Item "$hub = $stack->new_hub(%params, class => $class)"
176
+ .PD
177
+ This will generate a new hub and push it to the top of the stack. Optionally
178
+ you can provide arguments that will be passed into the constructor for the
179
+ Test2::Hub object.
180
+ .Sp
181
+ If you specify the \f(CW\*(C`\*(Aqclass\*(Aq => $class\*(C'\fR argument, the new hub will be an
182
+ instance of the specified class.
183
+ .Sp
184
+ Unless your parameters specify \f(CW\*(Aqformatter\*(Aq\fR or \f(CW\*(Aqipc\*(Aq\fR arguments, the
185
+ formatter and \s-1IPC\s0 instance will be inherited from the current top hub. You can
186
+ set the parameters to \f(CW\*(C`undef\*(C'\fR to avoid having a formatter or \s-1IPC\s0 instance.
187
+ .Sp
188
+ If there is no top hub, and you do not ask to leave \s-1IPC\s0 and formatter undef,
189
+ then a new formatter will be created, and the \s-1IPC\s0 instance from
190
+ Test2::API will be used.
191
+ .ie n .IP "$hub = $stack\->\fBtop()\fR" 4
192
+ .el .IP "\f(CW$hub\fR = \f(CW$stack\fR\->\fBtop()\fR" 4
193
+ .IX Item "$hub = $stack->top()"
194
+ This will return the top hub from the stack. If there is no top hub yet this
195
+ will create it.
196
+ .ie n .IP "$hub = $stack\->\fBpeek()\fR" 4
197
+ .el .IP "\f(CW$hub\fR = \f(CW$stack\fR\->\fBpeek()\fR" 4
198
+ .IX Item "$hub = $stack->peek()"
199
+ This will return the top hub from the stack. If there is no top hub yet this
200
+ will return undef.
201
+ .ie n .IP "$stack\->cull" 4
202
+ .el .IP "\f(CW$stack\fR\->cull" 4
203
+ .IX Item "$stack->cull"
204
+ This will call \f(CW\*(C`$hub\->cull\*(C'\fR on all hubs in the stack.
205
+ .ie n .IP "@hubs = $stack\->all" 4
206
+ .el .IP "\f(CW@hubs\fR = \f(CW$stack\fR\->all" 4
207
+ .IX Item "@hubs = $stack->all"
208
+ This will return all the hubs in the stack as a list.
209
+ .ie n .IP "$stack\->clear" 4
210
+ .el .IP "\f(CW$stack\fR\->clear" 4
211
+ .IX Item "$stack->clear"
212
+ This will completely remove all hubs from the stack. Normally you do not want
213
+ to do this, but there are a few valid reasons for it.
214
+ .ie n .IP "$stack\->push($hub)" 4
215
+ .el .IP "\f(CW$stack\fR\->push($hub)" 4
216
+ .IX Item "$stack->push($hub)"
217
+ This will push the new hub onto the stack.
218
+ .ie n .IP "$stack\->pop($hub)" 4
219
+ .el .IP "\f(CW$stack\fR\->pop($hub)" 4
220
+ .IX Item "$stack->pop($hub)"
221
+ This will pop a hub from the stack, if the hub at the top of the stack does not
222
+ match the hub you expect (passed in as an argument) it will throw an exception.
223
+ .SH "SOURCE"
224
+ .IX Header "SOURCE"
225
+ The source code repository for Test2 can be found at
226
+ \&\fIhttp://github.com/Test\-More/test\-more/\fR.
227
+ .SH "MAINTAINERS"
228
+ .IX Header "MAINTAINERS"
229
+ .IP "Chad Granum <exodist@cpan.org>" 4
230
+ .IX Item "Chad Granum <exodist@cpan.org>"
231
+ .SH "AUTHORS"
232
+ .IX Header "AUTHORS"
233
+ .PD 0
234
+ .IP "Chad Granum <exodist@cpan.org>" 4
235
+ .IX Item "Chad Granum <exodist@cpan.org>"
236
+ .PD
237
+ .SH "COPYRIGHT"
238
+ .IX Header "COPYRIGHT"
239
+ Copyright 2019 Chad Granum <exodist@cpan.org>.
240
+ .PP
241
+ This program is free software; you can redistribute it and/or
242
+ modify it under the same terms as Perl itself.
243
+ .PP
244
+ See \fIhttp://dev.perl.org/licenses/\fR
data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3AFail.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 "Test2::Event::Fail 3"
136
+ .TH Test2::Event::Fail 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
+ Test2::Event::Fail \- Event for a simple failed assertion
143
+ .SH "DESCRIPTION"
144
+ .IX Header "DESCRIPTION"
145
+ This is an optimal representation of a failed assertion.
146
+ .SH "SYNOPSIS"
147
+ .IX Header "SYNOPSIS"
148
+ .Vb 1
149
+ \& use Test2::API qw/context/;
150
+ \&
151
+ \& sub fail {
152
+ \& my ($name) = @_;
153
+ \& my $ctx = context();
154
+ \& $ctx\->fail($name);
155
+ \& $ctx\->release;
156
+ \& }
157
+ .Ve
158
+ .SH "SOURCE"
159
+ .IX Header "SOURCE"
160
+ The source code repository for Test2 can be found at
161
+ \&\fIhttp://github.com/Test\-More/test\-more/\fR.
162
+ .SH "MAINTAINERS"
163
+ .IX Header "MAINTAINERS"
164
+ .IP "Chad Granum <exodist@cpan.org>" 4
165
+ .IX Item "Chad Granum <exodist@cpan.org>"
166
+ .SH "AUTHORS"
167
+ .IX Header "AUTHORS"
168
+ .PD 0
169
+ .IP "Chad Granum <exodist@cpan.org>" 4
170
+ .IX Item "Chad Granum <exodist@cpan.org>"
171
+ .PD
172
+ .SH "COPYRIGHT"
173
+ .IX Header "COPYRIGHT"
174
+ Copyright 2019 Chad Granum <exodist@cpan.org>.
175
+ .PP
176
+ This program is free software; you can redistribute it and/or
177
+ modify it under the same terms as Perl itself.
178
+ .PP
179
+ See \fIhttp://dev.perl.org/licenses/\fR
data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3AGeneric.3 ADDED
@@ -0,0 +1,291 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "Test2::Event::Generic 3"
136
+ .TH Test2::Event::Generic 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
+ Test2::Event::Generic \- Generic event type.
143
+ .SH "DESCRIPTION"
144
+ .IX Header "DESCRIPTION"
145
+ This is a generic event that lets you customize all fields in the event \s-1API.\s0
146
+ This is useful if you have need for a custom event that does not make sense as
147
+ a published reusable event subclass.
148
+ .SH "SYNOPSIS"
149
+ .IX Header "SYNOPSIS"
150
+ .Vb 1
151
+ \& use Test2::API qw/context/;
152
+ \&
153
+ \& sub send_custom_fail {
154
+ \& my $ctx = shift;
155
+ \&
156
+ \& $ctx\->send_event(\*(AqGeneric\*(Aq, causes_fail => 1, summary => \*(AqThe sky is falling\*(Aq);
157
+ \&
158
+ \& $ctx\->release;
159
+ \& }
160
+ \&
161
+ \& send_custom_fail();
162
+ .Ve
163
+ .SH "METHODS"
164
+ .IX Header "METHODS"
165
+ .ie n .IP "$e\->facet_data($data)" 4
166
+ .el .IP "\f(CW$e\fR\->facet_data($data)" 4
167
+ .IX Item "$e->facet_data($data)"
168
+ .PD 0
169
+ .ie n .IP "$data = $e\->facet_data" 4
170
+ .el .IP "\f(CW$data\fR = \f(CW$e\fR\->facet_data" 4
171
+ .IX Item "$data = $e->facet_data"
172
+ .PD
173
+ Get or set the facet data (see Test2::Event). If no facet_data is set then
174
+ \&\f(CW\*(C`Test2::Event\->facet_data\*(C'\fR will be called to produce facets from the other
175
+ data.
176
+ .ie n .IP "$e\->callback($hub)" 4
177
+ .el .IP "\f(CW$e\fR\->callback($hub)" 4
178
+ .IX Item "$e->callback($hub)"
179
+ Call the custom callback if one is set, otherwise this does nothing.
180
+ .ie n .IP "$e\->set_callback(sub { ... })" 4
181
+ .el .IP "\f(CW$e\fR\->set_callback(sub { ... })" 4
182
+ .IX Item "$e->set_callback(sub { ... })"
183
+ Set the custom callback. The custom callback must be a coderef. The first
184
+ argument to your callback will be the event itself, the second will be the
185
+ Test2::Event::Hub that is using the callback.
186
+ .ie n .IP "$bool = $e\->causes_fail" 4
187
+ .el .IP "\f(CW$bool\fR = \f(CW$e\fR\->causes_fail" 4
188
+ .IX Item "$bool = $e->causes_fail"
189
+ .PD 0
190
+ .ie n .IP "$e\->set_causes_fail($bool)" 4
191
+ .el .IP "\f(CW$e\fR\->set_causes_fail($bool)" 4
192
+ .IX Item "$e->set_causes_fail($bool)"
193
+ .PD
194
+ Get/Set the \f(CW\*(C`causes_fail\*(C'\fR attribute. This defaults to \f(CW0\fR.
195
+ .ie n .IP "$bool = $e\->diagnostics" 4
196
+ .el .IP "\f(CW$bool\fR = \f(CW$e\fR\->diagnostics" 4
197
+ .IX Item "$bool = $e->diagnostics"
198
+ .PD 0
199
+ .ie n .IP "$e\->set_diagnostics($bool)" 4
200
+ .el .IP "\f(CW$e\fR\->set_diagnostics($bool)" 4
201
+ .IX Item "$e->set_diagnostics($bool)"
202
+ .PD
203
+ Get/Set the \f(CW\*(C`diagnostics\*(C'\fR attribute. This defaults to \f(CW0\fR.
204
+ .ie n .IP "$bool_or_undef = $e\->global" 4
205
+ .el .IP "\f(CW$bool_or_undef\fR = \f(CW$e\fR\->global" 4
206
+ .IX Item "$bool_or_undef = $e->global"
207
+ .PD 0
208
+ .ie n .IP "@bool_or_empty = $e\->global" 4
209
+ .el .IP "\f(CW@bool_or_empty\fR = \f(CW$e\fR\->global" 4
210
+ .IX Item "@bool_or_empty = $e->global"
211
+ .ie n .IP "$e\->set_global($bool_or_undef)" 4
212
+ .el .IP "\f(CW$e\fR\->set_global($bool_or_undef)" 4
213
+ .IX Item "$e->set_global($bool_or_undef)"
214
+ .PD
215
+ Get/Set the \f(CW\*(C`diagnostics\*(C'\fR attribute. This defaults to an empty list which is
216
+ undef in scalar context.
217
+ .ie n .IP "$bool = $e\->increments_count" 4
218
+ .el .IP "\f(CW$bool\fR = \f(CW$e\fR\->increments_count" 4
219
+ .IX Item "$bool = $e->increments_count"
220
+ .PD 0
221
+ .ie n .IP "$e\->set_increments_count($bool)" 4
222
+ .el .IP "\f(CW$e\fR\->set_increments_count($bool)" 4
223
+ .IX Item "$e->set_increments_count($bool)"
224
+ .PD
225
+ Get/Set the \f(CW\*(C`increments_count\*(C'\fR attribute. This defaults to \f(CW0\fR.
226
+ .ie n .IP "$bool = $e\->no_display" 4
227
+ .el .IP "\f(CW$bool\fR = \f(CW$e\fR\->no_display" 4
228
+ .IX Item "$bool = $e->no_display"
229
+ .PD 0
230
+ .ie n .IP "$e\->set_no_display($bool)" 4
231
+ .el .IP "\f(CW$e\fR\->set_no_display($bool)" 4
232
+ .IX Item "$e->set_no_display($bool)"
233
+ .PD
234
+ Get/Set the \f(CW\*(C`no_display\*(C'\fR attribute. This defaults to \f(CW0\fR.
235
+ .ie n .IP "@plan = $e\->sets_plan" 4
236
+ .el .IP "\f(CW@plan\fR = \f(CW$e\fR\->sets_plan" 4
237
+ .IX Item "@plan = $e->sets_plan"
238
+ Get the plan if this event sets one. The plan is a list of up to 3 items:
239
+ \&\f(CW\*(C`($count, $directive, $reason)\*(C'\fR. \f(CW$count\fR must be defined, the others may be
240
+ undef, or may not exist at all.
241
+ .ie n .IP "$e\->set_sets_plan(\e@plan)" 4
242
+ .el .IP "\f(CW$e\fR\->set_sets_plan(\e@plan)" 4
243
+ .IX Item "$e->set_sets_plan(@plan)"
244
+ Set the plan. You must pass in an arrayref with up to 3 elements.
245
+ .ie n .IP "$summary = $e\->summary" 4
246
+ .el .IP "\f(CW$summary\fR = \f(CW$e\fR\->summary" 4
247
+ .IX Item "$summary = $e->summary"
248
+ .PD 0
249
+ .ie n .IP "$e\->set_summary($summary_or_undef)" 4
250
+ .el .IP "\f(CW$e\fR\->set_summary($summary_or_undef)" 4
251
+ .IX Item "$e->set_summary($summary_or_undef)"
252
+ .PD
253
+ Get/Set the summary. This will default to the event package
254
+ \&\f(CW\*(AqTest2::Event::Generic\*(Aq\fR. You can set it to any value. Setting this to
255
+ \&\f(CW\*(C`undef\*(C'\fR will reset it to the default.
256
+ .ie n .IP "$int_or_undef = $e\->terminate" 4
257
+ .el .IP "\f(CW$int_or_undef\fR = \f(CW$e\fR\->terminate" 4
258
+ .IX Item "$int_or_undef = $e->terminate"
259
+ .PD 0
260
+ .ie n .IP "@int_or_empty = $e\->terminate" 4
261
+ .el .IP "\f(CW@int_or_empty\fR = \f(CW$e\fR\->terminate" 4
262
+ .IX Item "@int_or_empty = $e->terminate"
263
+ .ie n .IP "$e\->set_terminate($int_or_undef)" 4
264
+ .el .IP "\f(CW$e\fR\->set_terminate($int_or_undef)" 4
265
+ .IX Item "$e->set_terminate($int_or_undef)"
266
+ .PD
267
+ This will get/set the \f(CW\*(C`terminate\*(C'\fR attribute. This defaults to undef in scalar
268
+ context, or an empty list in list context. Setting this to undef will clear it
269
+ completely. This must be set to a positive integer (0 or larger).
270
+ .SH "SOURCE"
271
+ .IX Header "SOURCE"
272
+ The source code repository for Test2 can be found at
273
+ \&\fIhttp://github.com/Test\-More/test\-more/\fR.
274
+ .SH "MAINTAINERS"
275
+ .IX Header "MAINTAINERS"
276
+ .IP "Chad Granum <exodist@cpan.org>" 4
277
+ .IX Item "Chad Granum <exodist@cpan.org>"
278
+ .SH "AUTHORS"
279
+ .IX Header "AUTHORS"
280
+ .PD 0
281
+ .IP "Chad Granum <exodist@cpan.org>" 4
282
+ .IX Item "Chad Granum <exodist@cpan.org>"
283
+ .PD
284
+ .SH "COPYRIGHT"
285
+ .IX Header "COPYRIGHT"
286
+ Copyright 2019 Chad Granum <exodist@cpan.org>.
287
+ .PP
288
+ This program is free software; you can redistribute it and/or
289
+ modify it under the same terms as Perl itself.
290
+ .PP
291
+ See \fIhttp://dev.perl.org/licenses/\fR
data/miniconda3/man/man3/Test2%3A%3AEvent%3A%3APass.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 "Test2::Event::Pass 3"
136
+ .TH Test2::Event::Pass 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
+ Test2::Event::Pass \- Event for a simple passing assertion
143
+ .SH "DESCRIPTION"
144
+ .IX Header "DESCRIPTION"
145
+ This is an optimal representation of a passing assertion.
146
+ .SH "SYNOPSIS"
147
+ .IX Header "SYNOPSIS"
148
+ .Vb 1
149
+ \& use Test2::API qw/context/;
150
+ \&
151
+ \& sub pass {
152
+ \& my ($name) = @_;
153
+ \& my $ctx = context();
154
+ \& $ctx\->pass($name);
155
+ \& $ctx\->release;
156
+ \& }
157
+ .Ve
158
+ .SH "SOURCE"
159
+ .IX Header "SOURCE"
160
+ The source code repository for Test2 can be found at
161
+ \&\fIhttp://github.com/Test\-More/test\-more/\fR.
162
+ .SH "MAINTAINERS"
163
+ .IX Header "MAINTAINERS"
164
+ .IP "Chad Granum <exodist@cpan.org>" 4
165
+ .IX Item "Chad Granum <exodist@cpan.org>"
166
+ .SH "AUTHORS"
167
+ .IX Header "AUTHORS"
168
+ .PD 0
169
+ .IP "Chad Granum <exodist@cpan.org>" 4
170
+ .IX Item "Chad Granum <exodist@cpan.org>"
171
+ .PD
172
+ .SH "COPYRIGHT"
173
+ .IX Header "COPYRIGHT"
174
+ Copyright 2019 Chad Granum <exodist@cpan.org>.
175
+ .PP
176
+ This program is free software; you can redistribute it and/or
177
+ modify it under the same terms as Perl itself.
178
+ .PP
179
+ See \fIhttp://dev.perl.org/licenses/\fR
data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3AAssert.3 ADDED
@@ -0,0 +1,212 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "Test2::EventFacet::Assert 3"
136
+ .TH Test2::EventFacet::Assert 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
+ Test2::EventFacet::Assert \- Facet representing an assertion.
143
+ .SH "DESCRIPTION"
144
+ .IX Header "DESCRIPTION"
145
+ The assertion facet is provided by any event representing an assertion that was
146
+ made.
147
+ .SH "FIELDS"
148
+ .IX Header "FIELDS"
149
+ .ie n .IP "$string = $assert\->{details}" 4
150
+ .el .IP "\f(CW$string\fR = \f(CW$assert\fR\->{details}" 4
151
+ .IX Item "$string = $assert->{details}"
152
+ .PD 0
153
+ .ie n .IP "$string = $assert\->\fBdetails()\fR" 4
154
+ .el .IP "\f(CW$string\fR = \f(CW$assert\fR\->\fBdetails()\fR" 4
155
+ .IX Item "$string = $assert->details()"
156
+ .PD
157
+ Human readable description of the assertion.
158
+ .ie n .IP "$bool = $assert\->{pass}" 4
159
+ .el .IP "\f(CW$bool\fR = \f(CW$assert\fR\->{pass}" 4
160
+ .IX Item "$bool = $assert->{pass}"
161
+ .PD 0
162
+ .ie n .IP "$bool = $assert\->\fBpass()\fR" 4
163
+ .el .IP "\f(CW$bool\fR = \f(CW$assert\fR\->\fBpass()\fR" 4
164
+ .IX Item "$bool = $assert->pass()"
165
+ .PD
166
+ True if the assertion passed.
167
+ .ie n .IP "$bool = $assert\->{no_debug}" 4
168
+ .el .IP "\f(CW$bool\fR = \f(CW$assert\fR\->{no_debug}" 4
169
+ .IX Item "$bool = $assert->{no_debug}"
170
+ .PD 0
171
+ .ie n .IP "$bool = $assert\->\fBno_debug()\fR" 4
172
+ .el .IP "\f(CW$bool\fR = \f(CW$assert\fR\->\fBno_debug()\fR" 4
173
+ .IX Item "$bool = $assert->no_debug()"
174
+ .PD
175
+ Set this to true if you have provided custom diagnostics and do not want the
176
+ defaults to be displayed.
177
+ .ie n .IP "$int = $assert\->{number}" 4
178
+ .el .IP "\f(CW$int\fR = \f(CW$assert\fR\->{number}" 4
179
+ .IX Item "$int = $assert->{number}"
180
+ .PD 0
181
+ .ie n .IP "$int = $assert\->\fBnumber()\fR" 4
182
+ .el .IP "\f(CW$int\fR = \f(CW$assert\fR\->\fBnumber()\fR" 4
183
+ .IX Item "$int = $assert->number()"
184
+ .PD
185
+ (Optional) assertion number. This may be omitted or ignored. This is usually
186
+ only useful when parsing/processing \s-1TAP.\s0
187
+ .Sp
188
+ \&\fBNote\fR: This is not set by the Test2 system, assertion number is not known
189
+ until \s-1AFTER\s0 the assertion has been processed. This attribute is part of the
190
+ spec only for harnesses.
191
+ .SH "SOURCE"
192
+ .IX Header "SOURCE"
193
+ The source code repository for Test2 can be found at
194
+ \&\fIhttp://github.com/Test\-More/test\-more/\fR.
195
+ .SH "MAINTAINERS"
196
+ .IX Header "MAINTAINERS"
197
+ .IP "Chad Granum <exodist@cpan.org>" 4
198
+ .IX Item "Chad Granum <exodist@cpan.org>"
199
+ .SH "AUTHORS"
200
+ .IX Header "AUTHORS"
201
+ .PD 0
202
+ .IP "Chad Granum <exodist@cpan.org>" 4
203
+ .IX Item "Chad Granum <exodist@cpan.org>"
204
+ .PD
205
+ .SH "COPYRIGHT"
206
+ .IX Header "COPYRIGHT"
207
+ Copyright 2019 Chad Granum <exodist@cpan.org>.
208
+ .PP
209
+ This program is free software; you can redistribute it and/or
210
+ modify it under the same terms as Perl itself.
211
+ .PP
212
+ See \fIhttp://dev.perl.org/licenses/\fR
data/miniconda3/man/man3/Test2%3A%3AEventFacet%3A%3AError.3 ADDED
@@ -0,0 +1,205 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "Test2::EventFacet::Error 3"
136
+ .TH Test2::EventFacet::Error 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
+ Test2::EventFacet::Error \- Facet for errors that need to be shown.
143
+ .SH "DESCRIPTION"
144
+ .IX Header "DESCRIPTION"
145
+ This facet is used when an event needs to convey errors.
146
+ .SH "NOTES"
147
+ .IX Header "NOTES"
148
+ This facet has the hash key \f(CW\*(Aqerrors\*(Aq\fR, and is a list of facets instead of a
149
+ single item.
150
+ .SH "FIELDS"
151
+ .IX Header "FIELDS"
152
+ .ie n .IP "$string = $error\->{details}" 4
153
+ .el .IP "\f(CW$string\fR = \f(CW$error\fR\->{details}" 4
154
+ .IX Item "$string = $error->{details}"
155
+ .PD 0
156
+ .ie n .IP "$string = $error\->\fBdetails()\fR" 4
157
+ .el .IP "\f(CW$string\fR = \f(CW$error\fR\->\fBdetails()\fR" 4
158
+ .IX Item "$string = $error->details()"
159
+ .PD
160
+ Explanation of the error, or the error itself (such as an exception). In perl
161
+ exceptions may be blessed objects, so this field may contain a blessed object.
162
+ .ie n .IP "$short_string = $error\->{tag}" 4
163
+ .el .IP "\f(CW$short_string\fR = \f(CW$error\fR\->{tag}" 4
164
+ .IX Item "$short_string = $error->{tag}"
165
+ .PD 0
166
+ .ie n .IP "$short_string = $error\->\fBtag()\fR" 4
167
+ .el .IP "\f(CW$short_string\fR = \f(CW$error\fR\->\fBtag()\fR" 4
168
+ .IX Item "$short_string = $error->tag()"
169
+ .PD
170
+ Short tag to categorize the error. This is usually 10 characters or less,
171
+ formatters may truncate longer tags.
172
+ .ie n .IP "$bool = $error\->{fail}" 4
173
+ .el .IP "\f(CW$bool\fR = \f(CW$error\fR\->{fail}" 4
174
+ .IX Item "$bool = $error->{fail}"
175
+ .PD 0
176
+ .ie n .IP "$bool = $error\->\fBfail()\fR" 4
177
+ .el .IP "\f(CW$bool\fR = \f(CW$error\fR\->\fBfail()\fR" 4
178
+ .IX Item "$bool = $error->fail()"
179
+ .PD
180
+ Not all errors are fatal, some are displayed having already been handled. Set
181
+ this to true if you want the error to cause the test to fail. Without this the
182
+ error is simply a diagnostics message that has no effect on the overall
183
+ pass/fail result.
184
+ .SH "SOURCE"
185
+ .IX Header "SOURCE"
186
+ The source code repository for Test2 can be found at
187
+ \&\fIhttp://github.com/Test\-More/test\-more/\fR.
188
+ .SH "MAINTAINERS"
189
+ .IX Header "MAINTAINERS"
190
+ .IP "Chad Granum <exodist@cpan.org>" 4
191
+ .IX Item "Chad Granum <exodist@cpan.org>"
192
+ .SH "AUTHORS"
193
+ .IX Header "AUTHORS"
194
+ .PD 0
195
+ .IP "Chad Granum <exodist@cpan.org>" 4
196
+ .IX Item "Chad Granum <exodist@cpan.org>"
197
+ .PD
198
+ .SH "COPYRIGHT"
199
+ .IX Header "COPYRIGHT"
200
+ Copyright 2019 Chad Granum <exodist@cpan.org>.
201
+ .PP
202
+ This program is free software; you can redistribute it and/or
203
+ modify it under the same terms as Perl itself.
204
+ .PP
205
+ See \fIhttp://dev.perl.org/licenses/\fR