assassinlike commited on
Commit
2a601f3
·
verified ·
1 Parent(s): be058d2

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/man1/bzcmp.1 +1 -0
  2. data/miniconda3/man/man1/bzegrep.1 +1 -0
  3. data/miniconda3/man/man1/bzfgrep.1 +1 -0
  4. data/miniconda3/man/man1/bzgrep.1 +56 -0
  5. data/miniconda3/man/man1/bzip2.1 +454 -0
  6. data/miniconda3/man/man1/bzless.1 +1 -0
  7. data/miniconda3/man/man1/enc2xs.1 +429 -0
  8. data/miniconda3/man/man1/perl5100delta.1 +1580 -0
  9. data/miniconda3/man/man1/perl5123delta.1 +244 -0
  10. data/miniconda3/man/man1/perl5125delta.1 +344 -0
  11. data/miniconda3/man/man1/perl5140delta.1 +0 -0
  12. data/miniconda3/man/man1/perl5142delta.1 +321 -0
  13. data/miniconda3/man/man1/perl5144delta.1 +334 -0
  14. data/miniconda3/man/man1/perl5163delta.1 +246 -0
  15. data/miniconda3/man/man1/perl5182delta.1 +266 -0
  16. data/miniconda3/man/man1/perl5184delta.1 +255 -0
  17. data/miniconda3/man/man1/perl5201delta.1 +418 -0
  18. data/miniconda3/man/man1/perl5220delta.1 +0 -0
  19. data/miniconda3/man/man1/perl5224delta.1 +242 -0
  20. data/miniconda3/man/man1/perl5241delta.1 +364 -0
  21. data/miniconda3/man/man1/perl5260delta.1 +0 -0
  22. data/miniconda3/man/man1/perl5281delta.1 +254 -0
  23. data/miniconda3/man/man1/perl5301delta.1 +284 -0
  24. data/miniconda3/man/man1/perl5303delta.1 +262 -0
  25. data/miniconda3/man/man1/perl5320delta.1 +1480 -0
  26. data/miniconda3/man/man1/perl561delta.1 +0 -0
  27. data/miniconda3/man/man1/perl582delta.1 +275 -0
  28. data/miniconda3/man/man1/perl584delta.1 +377 -0
  29. data/miniconda3/man/man1/perl586delta.1 +268 -0
  30. data/miniconda3/man/man1/perl589delta.1 +1734 -0
  31. data/miniconda3/man/man1/perlaix.1 +665 -0
  32. data/miniconda3/man/man1/perlandroid.1 +352 -0
  33. data/miniconda3/man/man1/perlapi.1 +0 -0
  34. data/miniconda3/man/man1/perlartistic.1 +323 -0
  35. data/miniconda3/man/man1/perlbook.1 +451 -0
  36. data/miniconda3/man/man1/perlboot.1 +149 -0
  37. data/miniconda3/man/man1/perlbs2000.1 +369 -0
  38. data/miniconda3/man/man1/perlcommunity.1 +297 -0
  39. data/miniconda3/man/man1/perldata.1 +1443 -0
  40. data/miniconda3/man/man1/perldebtut.1 +948 -0
  41. data/miniconda3/man/man1/perldebug.1 +1274 -0
  42. data/miniconda3/man/man1/perldoc.1 +416 -0
  43. data/miniconda3/man/man1/perldtrace.1 +356 -0
  44. data/miniconda3/man/man1/perlebcdic.1 +0 -0
  45. data/miniconda3/man/man1/perlembed.1 +1324 -0
  46. data/miniconda3/man/man1/perlexperiment.1 +453 -0
  47. data/miniconda3/man/man1/perlfaq1.1 +450 -0
  48. data/miniconda3/man/man1/perlfaq2.1 +366 -0
  49. data/miniconda3/man/man1/perlfaq3.1 +1239 -0
  50. data/miniconda3/man/man1/perlfaq8.1 +1659 -0
data/miniconda3/man/man1/bzcmp.1 ADDED
@@ -0,0 +1 @@
 
 
1
+ .so man1/bzdiff.1
data/miniconda3/man/man1/bzegrep.1 ADDED
@@ -0,0 +1 @@
 
 
1
+ .so man1/bzgrep.1
data/miniconda3/man/man1/bzfgrep.1 ADDED
@@ -0,0 +1 @@
 
 
1
+ .so man1/bzgrep.1
data/miniconda3/man/man1/bzgrep.1 ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ \"Shamelessly copied from zmore.1 by Philippe Troin <phil@fifi.org>
2
+ \"for Debian GNU/Linux
3
+ .TH BZGREP 1
4
+ .SH NAME
5
+ bzgrep, bzfgrep, bzegrep \- search possibly bzip2 compressed files for a regular expression
6
+ .SH SYNOPSIS
7
+ .B bzgrep
8
+ [ grep_options ]
9
+ .BI [\ -e\ ] " pattern"
10
+ .IR filename ".\|.\|."
11
+ .br
12
+ .B bzegrep
13
+ [ egrep_options ]
14
+ .BI [\ -e\ ] " pattern"
15
+ .IR filename ".\|.\|."
16
+ .br
17
+ .B bzfgrep
18
+ [ fgrep_options ]
19
+ .BI [\ -e\ ] " pattern"
20
+ .IR filename ".\|.\|."
21
+ .SH DESCRIPTION
22
+ .IR Bzgrep
23
+ is used to invoke the
24
+ .I grep
25
+ on bzip2-compressed files. All options specified are passed directly to
26
+ .I grep.
27
+ If no file is specified, then the standard input is decompressed
28
+ if necessary and fed to grep.
29
+ Otherwise the given files are uncompressed if necessary and fed to
30
+ .I grep.
31
+ .PP
32
+ If
33
+ .I bzgrep
34
+ is invoked as
35
+ .I bzegrep
36
+ or
37
+ .I bzfgrep
38
+ then
39
+ .I egrep
40
+ or
41
+ .I fgrep
42
+ is used instead of
43
+ .I grep.
44
+ If the GREP environment variable is set,
45
+ .I bzgrep
46
+ uses it as the
47
+ .I grep
48
+ program to be invoked. For example:
49
+
50
+ for sh: GREP=fgrep bzgrep string files
51
+ for csh: (setenv GREP fgrep; bzgrep string files)
52
+ .SH AUTHOR
53
+ Charles Levert (charles@comm.polymtl.ca). Adapted to bzip2 by Philippe
54
+ Troin <phil@fifi.org> for Debian GNU/Linux.
55
+ .SH "SEE ALSO"
56
+ grep(1), egrep(1), fgrep(1), bzdiff(1), bzmore(1), bzless(1), bzip2(1)
data/miniconda3/man/man1/bzip2.1 ADDED
@@ -0,0 +1,454 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .PU
2
+ .TH bzip2 1
3
+ .SH NAME
4
+ bzip2, bunzip2 \- a block-sorting file compressor, v1.0.8
5
+ .br
6
+ bzcat \- decompresses files to stdout
7
+ .br
8
+ bzip2recover \- recovers data from damaged bzip2 files
9
+
10
+ .SH SYNOPSIS
11
+ .ll +8
12
+ .B bzip2
13
+ .RB [ " \-cdfkqstvzVL123456789 " ]
14
+ [
15
+ .I "filenames \&..."
16
+ ]
17
+ .ll -8
18
+ .br
19
+ .B bunzip2
20
+ .RB [ " \-fkvsVL " ]
21
+ [
22
+ .I "filenames \&..."
23
+ ]
24
+ .br
25
+ .B bzcat
26
+ .RB [ " \-s " ]
27
+ [
28
+ .I "filenames \&..."
29
+ ]
30
+ .br
31
+ .B bzip2recover
32
+ .I "filename"
33
+
34
+ .SH DESCRIPTION
35
+ .I bzip2
36
+ compresses files using the Burrows-Wheeler block sorting
37
+ text compression algorithm, and Huffman coding. Compression is
38
+ generally considerably better than that achieved by more conventional
39
+ LZ77/LZ78-based compressors, and approaches the performance of the PPM
40
+ family of statistical compressors.
41
+
42
+ The command-line options are deliberately very similar to
43
+ those of
44
+ .I GNU gzip,
45
+ but they are not identical.
46
+
47
+ .I bzip2
48
+ expects a list of file names to accompany the
49
+ command-line flags. Each file is replaced by a compressed version of
50
+ itself, with the name "original_name.bz2".
51
+ Each compressed file
52
+ has the same modification date, permissions, and, when possible,
53
+ ownership as the corresponding original, so that these properties can
54
+ be correctly restored at decompression time. File name handling is
55
+ naive in the sense that there is no mechanism for preserving original
56
+ file names, permissions, ownerships or dates in filesystems which lack
57
+ these concepts, or have serious file name length restrictions, such as
58
+ MS-DOS.
59
+
60
+ .I bzip2
61
+ and
62
+ .I bunzip2
63
+ will by default not overwrite existing
64
+ files. If you want this to happen, specify the \-f flag.
65
+
66
+ If no file names are specified,
67
+ .I bzip2
68
+ compresses from standard
69
+ input to standard output. In this case,
70
+ .I bzip2
71
+ will decline to
72
+ write compressed output to a terminal, as this would be entirely
73
+ incomprehensible and therefore pointless.
74
+
75
+ .I bunzip2
76
+ (or
77
+ .I bzip2 \-d)
78
+ decompresses all
79
+ specified files. Files which were not created by
80
+ .I bzip2
81
+ will be detected and ignored, and a warning issued.
82
+ .I bzip2
83
+ attempts to guess the filename for the decompressed file
84
+ from that of the compressed file as follows:
85
+
86
+ filename.bz2 becomes filename
87
+ filename.bz becomes filename
88
+ filename.tbz2 becomes filename.tar
89
+ filename.tbz becomes filename.tar
90
+ anyothername becomes anyothername.out
91
+
92
+ If the file does not end in one of the recognised endings,
93
+ .I .bz2,
94
+ .I .bz,
95
+ .I .tbz2
96
+ or
97
+ .I .tbz,
98
+ .I bzip2
99
+ complains that it cannot
100
+ guess the name of the original file, and uses the original name
101
+ with
102
+ .I .out
103
+ appended.
104
+
105
+ As with compression, supplying no
106
+ filenames causes decompression from
107
+ standard input to standard output.
108
+
109
+ .I bunzip2
110
+ will correctly decompress a file which is the
111
+ concatenation of two or more compressed files. The result is the
112
+ concatenation of the corresponding uncompressed files. Integrity
113
+ testing (\-t)
114
+ of concatenated
115
+ compressed files is also supported.
116
+
117
+ You can also compress or decompress files to the standard output by
118
+ giving the \-c flag. Multiple files may be compressed and
119
+ decompressed like this. The resulting outputs are fed sequentially to
120
+ stdout. Compression of multiple files
121
+ in this manner generates a stream
122
+ containing multiple compressed file representations. Such a stream
123
+ can be decompressed correctly only by
124
+ .I bzip2
125
+ version 0.9.0 or
126
+ later. Earlier versions of
127
+ .I bzip2
128
+ will stop after decompressing
129
+ the first file in the stream.
130
+
131
+ .I bzcat
132
+ (or
133
+ .I bzip2 -dc)
134
+ decompresses all specified files to
135
+ the standard output.
136
+
137
+ .I bzip2
138
+ will read arguments from the environment variables
139
+ .I BZIP2
140
+ and
141
+ .I BZIP,
142
+ in that order, and will process them
143
+ before any arguments read from the command line. This gives a
144
+ convenient way to supply default arguments.
145
+
146
+ Compression is always performed, even if the compressed
147
+ file is slightly
148
+ larger than the original. Files of less than about one hundred bytes
149
+ tend to get larger, since the compression mechanism has a constant
150
+ overhead in the region of 50 bytes. Random data (including the output
151
+ of most file compressors) is coded at about 8.05 bits per byte, giving
152
+ an expansion of around 0.5%.
153
+
154
+ As a self-check for your protection,
155
+ .I
156
+ bzip2
157
+ uses 32-bit CRCs to
158
+ make sure that the decompressed version of a file is identical to the
159
+ original. This guards against corruption of the compressed data, and
160
+ against undetected bugs in
161
+ .I bzip2
162
+ (hopefully very unlikely). The
163
+ chances of data corruption going undetected is microscopic, about one
164
+ chance in four billion for each file processed. Be aware, though, that
165
+ the check occurs upon decompression, so it can only tell you that
166
+ something is wrong. It can't help you
167
+ recover the original uncompressed
168
+ data. You can use
169
+ .I bzip2recover
170
+ to try to recover data from
171
+ damaged files.
172
+
173
+ Return values: 0 for a normal exit, 1 for environmental problems (file
174
+ not found, invalid flags, I/O errors, &c), 2 to indicate a corrupt
175
+ compressed file, 3 for an internal consistency error (eg, bug) which
176
+ caused
177
+ .I bzip2
178
+ to panic.
179
+
180
+ .SH OPTIONS
181
+ .TP
182
+ .B \-c --stdout
183
+ Compress or decompress to standard output.
184
+ .TP
185
+ .B \-d --decompress
186
+ Force decompression.
187
+ .I bzip2,
188
+ .I bunzip2
189
+ and
190
+ .I bzcat
191
+ are
192
+ really the same program, and the decision about what actions to take is
193
+ done on the basis of which name is used. This flag overrides that
194
+ mechanism, and forces
195
+ .I bzip2
196
+ to decompress.
197
+ .TP
198
+ .B \-z --compress
199
+ The complement to \-d: forces compression, regardless of the
200
+ invocation name.
201
+ .TP
202
+ .B \-t --test
203
+ Check integrity of the specified file(s), but don't decompress them.
204
+ This really performs a trial decompression and throws away the result.
205
+ .TP
206
+ .B \-f --force
207
+ Force overwrite of output files. Normally,
208
+ .I bzip2
209
+ will not overwrite
210
+ existing output files. Also forces
211
+ .I bzip2
212
+ to break hard links
213
+ to files, which it otherwise wouldn't do.
214
+
215
+ bzip2 normally declines to decompress files which don't have the
216
+ correct magic header bytes. If forced (-f), however, it will pass
217
+ such files through unmodified. This is how GNU gzip behaves.
218
+ .TP
219
+ .B \-k --keep
220
+ Keep (don't delete) input files during compression
221
+ or decompression.
222
+ .TP
223
+ .B \-s --small
224
+ Reduce memory usage, for compression, decompression and testing. Files
225
+ are decompressed and tested using a modified algorithm which only
226
+ requires 2.5 bytes per block byte. This means any file can be
227
+ decompressed in 2300k of memory, albeit at about half the normal speed.
228
+
229
+ During compression, \-s selects a block size of 200k, which limits
230
+ memory use to around the same figure, at the expense of your compression
231
+ ratio. In short, if your machine is low on memory (8 megabytes or
232
+ less), use \-s for everything. See MEMORY MANAGEMENT below.
233
+ .TP
234
+ .B \-q --quiet
235
+ Suppress non-essential warning messages. Messages pertaining to
236
+ I/O errors and other critical events will not be suppressed.
237
+ .TP
238
+ .B \-v --verbose
239
+ Verbose mode -- show the compression ratio for each file processed.
240
+ Further \-v's increase the verbosity level, spewing out lots of
241
+ information which is primarily of interest for diagnostic purposes.
242
+ .TP
243
+ .B \-L --license -V --version
244
+ Display the software version, license terms and conditions.
245
+ .TP
246
+ .B \-1 (or \-\-fast) to \-9 (or \-\-best)
247
+ Set the block size to 100 k, 200 k .. 900 k when compressing. Has no
248
+ effect when decompressing. See MEMORY MANAGEMENT below.
249
+ The \-\-fast and \-\-best aliases are primarily for GNU gzip
250
+ compatibility. In particular, \-\-fast doesn't make things
251
+ significantly faster.
252
+ And \-\-best merely selects the default behaviour.
253
+ .TP
254
+ .B \--
255
+ Treats all subsequent arguments as file names, even if they start
256
+ with a dash. This is so you can handle files with names beginning
257
+ with a dash, for example: bzip2 \-- \-myfilename.
258
+ .TP
259
+ .B \--repetitive-fast --repetitive-best
260
+ These flags are redundant in versions 0.9.5 and above. They provided
261
+ some coarse control over the behaviour of the sorting algorithm in
262
+ earlier versions, which was sometimes useful. 0.9.5 and above have an
263
+ improved algorithm which renders these flags irrelevant.
264
+
265
+ .SH MEMORY MANAGEMENT
266
+ .I bzip2
267
+ compresses large files in blocks. The block size affects
268
+ both the compression ratio achieved, and the amount of memory needed for
269
+ compression and decompression. The flags \-1 through \-9
270
+ specify the block size to be 100,000 bytes through 900,000 bytes (the
271
+ default) respectively. At decompression time, the block size used for
272
+ compression is read from the header of the compressed file, and
273
+ .I bunzip2
274
+ then allocates itself just enough memory to decompress
275
+ the file. Since block sizes are stored in compressed files, it follows
276
+ that the flags \-1 to \-9 are irrelevant to and so ignored
277
+ during decompression.
278
+
279
+ Compression and decompression requirements,
280
+ in bytes, can be estimated as:
281
+
282
+ Compression: 400k + ( 8 x block size )
283
+
284
+ Decompression: 100k + ( 4 x block size ), or
285
+ 100k + ( 2.5 x block size )
286
+
287
+ Larger block sizes give rapidly diminishing marginal returns. Most of
288
+ the compression comes from the first two or three hundred k of block
289
+ size, a fact worth bearing in mind when using
290
+ .I bzip2
291
+ on small machines.
292
+ It is also important to appreciate that the decompression memory
293
+ requirement is set at compression time by the choice of block size.
294
+
295
+ For files compressed with the default 900k block size,
296
+ .I bunzip2
297
+ will require about 3700 kbytes to decompress. To support decompression
298
+ of any file on a 4 megabyte machine,
299
+ .I bunzip2
300
+ has an option to
301
+ decompress using approximately half this amount of memory, about 2300
302
+ kbytes. Decompression speed is also halved, so you should use this
303
+ option only where necessary. The relevant flag is -s.
304
+
305
+ In general, try and use the largest block size memory constraints allow,
306
+ since that maximises the compression achieved. Compression and
307
+ decompression speed are virtually unaffected by block size.
308
+
309
+ Another significant point applies to files which fit in a single block
310
+ -- that means most files you'd encounter using a large block size. The
311
+ amount of real memory touched is proportional to the size of the file,
312
+ since the file is smaller than a block. For example, compressing a file
313
+ 20,000 bytes long with the flag -9 will cause the compressor to
314
+ allocate around 7600k of memory, but only touch 400k + 20000 * 8 = 560
315
+ kbytes of it. Similarly, the decompressor will allocate 3700k but only
316
+ touch 100k + 20000 * 4 = 180 kbytes.
317
+
318
+ Here is a table which summarises the maximum memory usage for different
319
+ block sizes. Also recorded is the total compressed size for 14 files of
320
+ the Calgary Text Compression Corpus totalling 3,141,622 bytes. This
321
+ column gives some feel for how compression varies with block size.
322
+ These figures tend to understate the advantage of larger block sizes for
323
+ larger files, since the Corpus is dominated by smaller files.
324
+
325
+ Compress Decompress Decompress Corpus
326
+ Flag usage usage -s usage Size
327
+
328
+ -1 1200k 500k 350k 914704
329
+ -2 2000k 900k 600k 877703
330
+ -3 2800k 1300k 850k 860338
331
+ -4 3600k 1700k 1100k 846899
332
+ -5 4400k 2100k 1350k 845160
333
+ -6 5200k 2500k 1600k 838626
334
+ -7 6100k 2900k 1850k 834096
335
+ -8 6800k 3300k 2100k 828642
336
+ -9 7600k 3700k 2350k 828642
337
+
338
+ .SH RECOVERING DATA FROM DAMAGED FILES
339
+ .I bzip2
340
+ compresses files in blocks, usually 900kbytes long. Each
341
+ block is handled independently. If a media or transmission error causes
342
+ a multi-block .bz2
343
+ file to become damaged, it may be possible to
344
+ recover data from the undamaged blocks in the file.
345
+
346
+ The compressed representation of each block is delimited by a 48-bit
347
+ pattern, which makes it possible to find the block boundaries with
348
+ reasonable certainty. Each block also carries its own 32-bit CRC, so
349
+ damaged blocks can be distinguished from undamaged ones.
350
+
351
+ .I bzip2recover
352
+ is a simple program whose purpose is to search for
353
+ blocks in .bz2 files, and write each block out into its own .bz2
354
+ file. You can then use
355
+ .I bzip2
356
+ \-t
357
+ to test the
358
+ integrity of the resulting files, and decompress those which are
359
+ undamaged.
360
+
361
+ .I bzip2recover
362
+ takes a single argument, the name of the damaged file,
363
+ and writes a number of files "rec00001file.bz2",
364
+ "rec00002file.bz2", etc, containing the extracted blocks.
365
+ The output filenames are designed so that the use of
366
+ wildcards in subsequent processing -- for example,
367
+ "bzip2 -dc rec*file.bz2 > recovered_data" -- processes the files in
368
+ the correct order.
369
+
370
+ .I bzip2recover
371
+ should be of most use dealing with large .bz2
372
+ files, as these will contain many blocks. It is clearly
373
+ futile to use it on damaged single-block files, since a
374
+ damaged block cannot be recovered. If you wish to minimise
375
+ any potential data loss through media or transmission errors,
376
+ you might consider compressing with a smaller
377
+ block size.
378
+
379
+ .SH PERFORMANCE NOTES
380
+ The sorting phase of compression gathers together similar strings in the
381
+ file. Because of this, files containing very long runs of repeated
382
+ symbols, like "aabaabaabaab ..." (repeated several hundred times) may
383
+ compress more slowly than normal. Versions 0.9.5 and above fare much
384
+ better than previous versions in this respect. The ratio between
385
+ worst-case and average-case compression time is in the region of 10:1.
386
+ For previous versions, this figure was more like 100:1. You can use the
387
+ \-vvvv option to monitor progress in great detail, if you want.
388
+
389
+ Decompression speed is unaffected by these phenomena.
390
+
391
+ .I bzip2
392
+ usually allocates several megabytes of memory to operate
393
+ in, and then charges all over it in a fairly random fashion. This means
394
+ that performance, both for compressing and decompressing, is largely
395
+ determined by the speed at which your machine can service cache misses.
396
+ Because of this, small changes to the code to reduce the miss rate have
397
+ been observed to give disproportionately large performance improvements.
398
+ I imagine
399
+ .I bzip2
400
+ will perform best on machines with very large caches.
401
+
402
+ .SH CAVEATS
403
+ I/O error messages are not as helpful as they could be.
404
+ .I bzip2
405
+ tries hard to detect I/O errors and exit cleanly, but the details of
406
+ what the problem is sometimes seem rather misleading.
407
+
408
+ This manual page pertains to version 1.0.8 of
409
+ .I bzip2.
410
+ Compressed data created by this version is entirely forwards and
411
+ backwards compatible with the previous public releases, versions
412
+ 0.1pl2, 0.9.0, 0.9.5, 1.0.0, 1.0.1, 1.0.2 and above, but with the following
413
+ exception: 0.9.0 and above can correctly decompress multiple
414
+ concatenated compressed files. 0.1pl2 cannot do this; it will stop
415
+ after decompressing just the first file in the stream.
416
+
417
+ .I bzip2recover
418
+ versions prior to 1.0.2 used 32-bit integers to represent
419
+ bit positions in compressed files, so they could not handle compressed
420
+ files more than 512 megabytes long. Versions 1.0.2 and above use
421
+ 64-bit ints on some platforms which support them (GNU supported
422
+ targets, and Windows). To establish whether or not bzip2recover was
423
+ built with such a limitation, run it without arguments. In any event
424
+ you can build yourself an unlimited version if you can recompile it
425
+ with MaybeUInt64 set to be an unsigned 64-bit integer.
426
+
427
+
428
+
429
+ .SH AUTHOR
430
+ Julian Seward, jseward@acm.org.
431
+
432
+ https://sourceware.org/bzip2/
433
+
434
+ The ideas embodied in
435
+ .I bzip2
436
+ are due to (at least) the following
437
+ people: Michael Burrows and David Wheeler (for the block sorting
438
+ transformation), David Wheeler (again, for the Huffman coder), Peter
439
+ Fenwick (for the structured coding model in the original
440
+ .I bzip,
441
+ and many refinements), and Alistair Moffat, Radford Neal and Ian Witten
442
+ (for the arithmetic coder in the original
443
+ .I bzip).
444
+ I am much
445
+ indebted for their help, support and advice. See the manual in the
446
+ source distribution for pointers to sources of documentation. Christian
447
+ von Roques encouraged me to look for faster sorting algorithms, so as to
448
+ speed up compression. Bela Lubkin encouraged me to improve the
449
+ worst-case compression performance.
450
+ Donna Robinson XMLised the documentation.
451
+ The bz* scripts are derived from those of GNU gzip.
452
+ Many people sent patches, helped
453
+ with portability problems, lent machines, gave advice and were generally
454
+ helpful.
data/miniconda3/man/man1/bzless.1 ADDED
@@ -0,0 +1 @@
 
 
1
+ .so man1/bzmore.1
data/miniconda3/man/man1/enc2xs.1 ADDED
@@ -0,0 +1,429 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "ENC2XS 1"
136
+ .TH ENC2XS 1 "2023-12-23" "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
+ enc2xs \-\- Perl Encode Module Generator
143
+ .SH "SYNOPSIS"
144
+ .IX Header "SYNOPSIS"
145
+ .Vb 3
146
+ \& enc2xs \-[options]
147
+ \& enc2xs \-M ModName mapfiles...
148
+ \& enc2xs \-C
149
+ .Ve
150
+ .SH "DESCRIPTION"
151
+ .IX Header "DESCRIPTION"
152
+ \&\fIenc2xs\fR builds a Perl extension for use by Encode from either
153
+ Unicode Character Mapping files (.ucm) or Tcl Encoding Files (.enc).
154
+ Besides being used internally during the build process of the Encode
155
+ module, you can use \fIenc2xs\fR to add your own encoding to perl.
156
+ No knowledge of \s-1XS\s0 is necessary.
157
+ .SH "Quick Guide"
158
+ .IX Header "Quick Guide"
159
+ If you want to know as little about Perl as possible but need to
160
+ add a new encoding, just read this chapter and forget the rest.
161
+ .IP "0." 4
162
+ .IX Item "0."
163
+ Have a .ucm file ready. You can get it from somewhere or you can write
164
+ your own from scratch or you can grab one from the Encode distribution
165
+ and customize it. For the \s-1UCM\s0 format, see the next Chapter. In the
166
+ example below, I'll call my theoretical encoding myascii, defined
167
+ in \fImy.ucm\fR. \f(CW\*(C`$\*(C'\fR is a shell prompt.
168
+ .Sp
169
+ .Vb 2
170
+ \& $ ls \-F
171
+ \& my.ucm
172
+ .Ve
173
+ .IP "1." 4
174
+ .IX Item "1."
175
+ Issue a command as follows;
176
+ .Sp
177
+ .Vb 5
178
+ \& $ enc2xs \-M My my.ucm
179
+ \& generating Makefile.PL
180
+ \& generating My.pm
181
+ \& generating README
182
+ \& generating Changes
183
+ .Ve
184
+ .Sp
185
+ Now take a look at your current directory. It should look like this.
186
+ .Sp
187
+ .Vb 2
188
+ \& $ ls \-F
189
+ \& Makefile.PL My.pm my.ucm t/
190
+ .Ve
191
+ .Sp
192
+ The following files were created.
193
+ .Sp
194
+ .Vb 3
195
+ \& Makefile.PL \- MakeMaker script
196
+ \& My.pm \- Encode submodule
197
+ \& t/My.t \- test file
198
+ .Ve
199
+ .RS 4
200
+ .IP "1.1." 4
201
+ .IX Item "1.1."
202
+ If you want *.ucm installed together with the modules, do as follows;
203
+ .Sp
204
+ .Vb 3
205
+ \& $ mkdir Encode
206
+ \& $ mv *.ucm Encode
207
+ \& $ enc2xs \-M My Encode/*ucm
208
+ .Ve
209
+ .RE
210
+ .RS 4
211
+ .RE
212
+ .IP "2." 4
213
+ .IX Item "2."
214
+ Edit the files generated. You don't have to if you have no time \s-1AND\s0 no
215
+ intention to give it to someone else. But it is a good idea to edit
216
+ the pod and to add more tests.
217
+ .IP "3." 4
218
+ .IX Item "3."
219
+ Now issue a command all Perl Mongers love:
220
+ .Sp
221
+ .Vb 2
222
+ \& $ perl Makefile.PL
223
+ \& Writing Makefile for Encode::My
224
+ .Ve
225
+ .IP "4." 4
226
+ .IX Item "4."
227
+ Now all you have to do is make.
228
+ .Sp
229
+ .Vb 12
230
+ \& $ make
231
+ \& cp My.pm blib/lib/Encode/My.pm
232
+ \& /usr/local/bin/perl /usr/local/bin/enc2xs \-Q \-O \e
233
+ \& \-o encode_t.c \-f encode_t.fnm
234
+ \& Reading myascii (myascii)
235
+ \& Writing compiled form
236
+ \& 128 bytes in string tables
237
+ \& 384 bytes (75%) saved spotting duplicates
238
+ \& 1 bytes (0.775%) saved using substrings
239
+ \& ....
240
+ \& chmod 644 blib/arch/auto/Encode/My/My.bs
241
+ \& $
242
+ .Ve
243
+ .Sp
244
+ The time it takes varies depending on how fast your machine is and
245
+ how large your encoding is. Unless you are working on something big
246
+ like euc-tw, it won't take too long.
247
+ .IP "5." 4
248
+ .IX Item "5."
249
+ You can \*(L"make install\*(R" already but you should test first.
250
+ .Sp
251
+ .Vb 8
252
+ \& $ make test
253
+ \& PERL_DL_NONLAZY=1 /usr/local/bin/perl \-Iblib/arch \-Iblib/lib \e
254
+ \& \-e \*(Aquse Test::Harness qw(&runtests $verbose); \e
255
+ \& $verbose=0; runtests @ARGV;\*(Aq t/*.t
256
+ \& t/My....ok
257
+ \& All tests successful.
258
+ \& Files=1, Tests=2, 0 wallclock secs
259
+ \& ( 0.09 cusr + 0.01 csys = 0.09 CPU)
260
+ .Ve
261
+ .IP "6." 4
262
+ .IX Item "6."
263
+ If you are content with the test result, just \*(L"make install\*(R"
264
+ .IP "7." 4
265
+ .IX Item "7."
266
+ If you want to add your encoding to Encode's demand-loading list
267
+ (so you don't have to \*(L"use Encode::YourEncoding\*(R"), run
268
+ .Sp
269
+ .Vb 1
270
+ \& enc2xs \-C
271
+ .Ve
272
+ .Sp
273
+ to update Encode::ConfigLocal, a module that controls local settings.
274
+ After that, \*(L"use Encode;\*(R" is enough to load your encodings on demand.
275
+ .SH "The Unicode Character Map"
276
+ .IX Header "The Unicode Character Map"
277
+ Encode uses the Unicode Character Map (\s-1UCM\s0) format for source character
278
+ mappings. This format is used by \s-1IBM\s0's \s-1ICU\s0 package and was adopted
279
+ by Nick Ing-Simmons for use with the Encode module. Since \s-1UCM\s0 is
280
+ more flexible than Tcl's Encoding Map and far more user-friendly,
281
+ this is the recommended format for Encode now.
282
+ .PP
283
+ A \s-1UCM\s0 file looks like this.
284
+ .PP
285
+ .Vb 10
286
+ \& #
287
+ \& # Comments
288
+ \& #
289
+ \& <code_set_name> "US\-ascii" # Required
290
+ \& <code_set_alias> "ascii" # Optional
291
+ \& <mb_cur_min> 1 # Required; usually 1
292
+ \& <mb_cur_max> 1 # Max. # of bytes/char
293
+ \& <subchar> \ex3F # Substitution char
294
+ \& #
295
+ \& CHARMAP
296
+ \& <U0000> \ex00 |0 # <control>
297
+ \& <U0001> \ex01 |0 # <control>
298
+ \& <U0002> \ex02 |0 # <control>
299
+ \& ....
300
+ \& <U007C> \ex7C |0 # VERTICAL LINE
301
+ \& <U007D> \ex7D |0 # RIGHT CURLY BRACKET
302
+ \& <U007E> \ex7E |0 # TILDE
303
+ \& <U007F> \ex7F |0 # <control>
304
+ \& END CHARMAP
305
+ .Ve
306
+ .IP "\(bu" 4
307
+ Anything that follows \f(CW\*(C`#\*(C'\fR is treated as a comment.
308
+ .IP "\(bu" 4
309
+ The header section continues until a line containing the word
310
+ \&\s-1CHARMAP.\s0 This section has a form of \fI<keyword> value\fR, one
311
+ pair per line. Strings used as values must be quoted. Barewords are
312
+ treated as numbers. \fI\exXX\fR represents a byte.
313
+ .Sp
314
+ Most of the keywords are self-explanatory. \fIsubchar\fR means
315
+ substitution character, not subcharacter. When you decode a Unicode
316
+ sequence to this encoding but no matching character is found, the byte
317
+ sequence defined here will be used. For most cases, the value here is
318
+ \&\ex3F; in \s-1ASCII,\s0 this is a question mark.
319
+ .IP "\(bu" 4
320
+ \&\s-1CHARMAP\s0 starts the character map section. Each line has a form as
321
+ follows:
322
+ .Sp
323
+ .Vb 5
324
+ \& <UXXXX> \exXX.. |0 # comment
325
+ \& ^ ^ ^
326
+ \& | | +\- Fallback flag
327
+ \& | +\-\-\-\-\-\-\-\- Encoded byte sequence
328
+ \& +\-\-\-\-\-\-\-\-\-\-\-\-\-\- Unicode Character ID in hex
329
+ .Ve
330
+ .Sp
331
+ The format is roughly the same as a header section except for the
332
+ fallback flag: | followed by 0..3. The meaning of the possible
333
+ values is as follows:
334
+ .RS 4
335
+ .IP "|0" 4
336
+ .IX Item "|0"
337
+ Round trip safe. A character decoded to Unicode encodes back to the
338
+ same byte sequence. Most characters have this flag.
339
+ .IP "|1" 4
340
+ .IX Item "|1"
341
+ Fallback for unicode \-> encoding. When seen, enc2xs adds this
342
+ character for the encode map only.
343
+ .IP "|2" 4
344
+ .IX Item "|2"
345
+ Skip sub-char mapping should there be no code point.
346
+ .IP "|3" 4
347
+ .IX Item "|3"
348
+ Fallback for encoding \-> unicode. When seen, enc2xs adds this
349
+ character for the decode map only.
350
+ .RE
351
+ .RS 4
352
+ .RE
353
+ .IP "\(bu" 4
354
+ And finally, \s-1END OF CHARMAP\s0 ends the section.
355
+ .PP
356
+ When you are manually creating a \s-1UCM\s0 file, you should copy ascii.ucm
357
+ or an existing encoding which is close to yours, rather than write
358
+ your own from scratch.
359
+ .PP
360
+ When you do so, make sure you leave at least \fBU0000\fR to \fBU0020\fR as
361
+ is, unless your environment is \s-1EBCDIC.\s0
362
+ .PP
363
+ \&\fB\s-1CAVEAT\s0\fR: not all features in \s-1UCM\s0 are implemented. For example,
364
+ icu:state is not used. Because of that, you need to write a perl
365
+ module if you want to support algorithmical encodings, notably
366
+ the \s-1ISO\-2022\s0 series. Such modules include Encode::JP::2022_JP,
367
+ Encode::KR::2022_KR, and Encode::TW::HZ.
368
+ .SS "Coping with duplicate mappings"
369
+ .IX Subsection "Coping with duplicate mappings"
370
+ When you create a map, you \s-1SHOULD\s0 make your mappings round-trip safe.
371
+ That is, \f(CW\*(C`encode(\*(Aqyour\-encoding\*(Aq, decode(\*(Aqyour\-encoding\*(Aq, $data)) eq
372
+ $data\*(C'\fR stands for all characters that are marked as \f(CW\*(C`|0\*(C'\fR. Here is
373
+ how to make sure:
374
+ .IP "\(bu" 4
375
+ Sort your map in Unicode order.
376
+ .IP "\(bu" 4
377
+ When you have a duplicate entry, mark either one with '|1' or '|3'.
378
+ .IP "\(bu" 4
379
+ And make sure the '|1' or '|3' entry \s-1FOLLOWS\s0 the '|0' entry.
380
+ .PP
381
+ Here is an example from big5\-eten.
382
+ .PP
383
+ .Vb 2
384
+ \& <U2550> \exF9\exF9 |0
385
+ \& <U2550> \exA2\exA4 |3
386
+ .Ve
387
+ .PP
388
+ Internally Encoding \-> Unicode and Unicode \-> Encoding Map looks like
389
+ this;
390
+ .PP
391
+ .Vb 4
392
+ \& E to U U to E
393
+ \& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
394
+ \& \exF9\exF9 => U2550 U2550 => \exF9\exF9
395
+ \& \exA2\exA4 => U2550
396
+ .Ve
397
+ .PP
398
+ So it is round-trip safe for \exF9\exF9. But if the line above is upside
399
+ down, here is what happens.
400
+ .PP
401
+ .Vb 4
402
+ \& E to U U to E
403
+ \& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
404
+ \& \exA2\exA4 => U2550 U2550 => \exF9\exF9
405
+ \& (\exF9\exF9 => U2550 is now overwritten!)
406
+ .Ve
407
+ .PP
408
+ The Encode package comes with \fIucmlint\fR, a crude but sufficient
409
+ utility to check the integrity of a \s-1UCM\s0 file. Check under the
410
+ Encode/bin directory for this.
411
+ .PP
412
+ When in doubt, you can use \fIucmsort\fR, yet another utility under
413
+ Encode/bin directory.
414
+ .SH "Bookmarks"
415
+ .IX Header "Bookmarks"
416
+ .IP "\(bu" 4
417
+ \&\s-1ICU\s0 Home Page
418
+ <http://www.icu\-project.org/>
419
+ .IP "\(bu" 4
420
+ \&\s-1ICU\s0 Character Mapping Tables
421
+ <http://site.icu\-project.org/charts/charset>
422
+ .IP "\(bu" 4
423
+ ICU:Conversion Data
424
+ <http://www.icu\-project.org/userguide/conversion\-data.html>
425
+ .SH "SEE ALSO"
426
+ .IX Header "SEE ALSO"
427
+ Encode,
428
+ perlmod,
429
+ perlpod
data/miniconda3/man/man1/perl5100delta.1 ADDED
@@ -0,0 +1,1580 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "PERL5100DELTA 1"
136
+ .TH PERL5100DELTA 1 "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
+ perl5100delta \- what is new for perl 5.10.0
143
+ .SH "DESCRIPTION"
144
+ .IX Header "DESCRIPTION"
145
+ This document describes the differences between the 5.8.8 release and
146
+ the 5.10.0 release.
147
+ .PP
148
+ Many of the bug fixes in 5.10.0 were already seen in the 5.8.X maintenance
149
+ releases; they are not duplicated here and are documented in the set of
150
+ man pages named perl58[1\-8]?delta.
151
+ .SH "Core Enhancements"
152
+ .IX Header "Core Enhancements"
153
+ .ie n .SS "The ""feature"" pragma"
154
+ .el .SS "The \f(CWfeature\fP pragma"
155
+ .IX Subsection "The feature pragma"
156
+ The \f(CW\*(C`feature\*(C'\fR pragma is used to enable new syntax that would break Perl's
157
+ backwards-compatibility with older releases of the language. It's a lexical
158
+ pragma, like \f(CW\*(C`strict\*(C'\fR or \f(CW\*(C`warnings\*(C'\fR.
159
+ .PP
160
+ Currently the following new features are available: \f(CW\*(C`switch\*(C'\fR (adds a
161
+ switch statement), \f(CW\*(C`say\*(C'\fR (adds a \f(CW\*(C`say\*(C'\fR built-in function), and \f(CW\*(C`state\*(C'\fR
162
+ (adds a \f(CW\*(C`state\*(C'\fR keyword for declaring \*(L"static\*(R" variables). Those
163
+ features are described in their own sections of this document.
164
+ .PP
165
+ The \f(CW\*(C`feature\*(C'\fR pragma is also implicitly loaded when you require a minimal
166
+ perl version (with the \f(CW\*(C`use VERSION\*(C'\fR construct) greater than, or equal
167
+ to, 5.9.5. See feature for details.
168
+ .SS "New \fB\-E\fP command-line switch"
169
+ .IX Subsection "New -E command-line switch"
170
+ \&\fB\-E\fR is equivalent to \fB\-e\fR, but it implicitly enables all
171
+ optional features (like \f(CW\*(C`use feature ":5.10"\*(C'\fR).
172
+ .SS "Defined-or operator"
173
+ .IX Subsection "Defined-or operator"
174
+ A new operator \f(CW\*(C`//\*(C'\fR (defined-or) has been implemented.
175
+ The following expression:
176
+ .PP
177
+ .Vb 1
178
+ \& $a // $b
179
+ .Ve
180
+ .PP
181
+ is merely equivalent to
182
+ .PP
183
+ .Vb 1
184
+ \& defined $a ? $a : $b
185
+ .Ve
186
+ .PP
187
+ and the statement
188
+ .PP
189
+ .Vb 1
190
+ \& $c //= $d;
191
+ .Ve
192
+ .PP
193
+ can now be used instead of
194
+ .PP
195
+ .Vb 1
196
+ \& $c = $d unless defined $c;
197
+ .Ve
198
+ .PP
199
+ The \f(CW\*(C`//\*(C'\fR operator has the same precedence and associativity as \f(CW\*(C`||\*(C'\fR.
200
+ Special care has been taken to ensure that this operator Do What You Mean
201
+ while not breaking old code, but some edge cases involving the empty
202
+ regular expression may now parse differently. See perlop for
203
+ details.
204
+ .SS "Switch and Smart Match operator"
205
+ .IX Subsection "Switch and Smart Match operator"
206
+ Perl 5 now has a switch statement. It's available when \f(CW\*(C`use feature
207
+ \&\*(Aqswitch\*(Aq\*(C'\fR is in effect. This feature introduces three new keywords,
208
+ \&\f(CW\*(C`given\*(C'\fR, \f(CW\*(C`when\*(C'\fR, and \f(CW\*(C`default\*(C'\fR:
209
+ .PP
210
+ .Vb 6
211
+ \& given ($foo) {
212
+ \& when (/^abc/) { $abc = 1; }
213
+ \& when (/^def/) { $def = 1; }
214
+ \& when (/^xyz/) { $xyz = 1; }
215
+ \& default { $nothing = 1; }
216
+ \& }
217
+ .Ve
218
+ .PP
219
+ A more complete description of how Perl matches the switch variable
220
+ against the \f(CW\*(C`when\*(C'\fR conditions is given in \*(L"Switch statements\*(R" in perlsyn.
221
+ .PP
222
+ This kind of match is called \fIsmart match\fR, and it's also possible to use
223
+ it outside of switch statements, via the new \f(CW\*(C`~~\*(C'\fR operator. See
224
+ \&\*(L"Smart matching in detail\*(R" in perlsyn.
225
+ .PP
226
+ This feature was contributed by Robin Houston.
227
+ .SS "Regular expressions"
228
+ .IX Subsection "Regular expressions"
229
+ .IP "Recursive Patterns" 4
230
+ .IX Item "Recursive Patterns"
231
+ It is now possible to write recursive patterns without using the \f(CW\*(C`(??{})\*(C'\fR
232
+ construct. This new way is more efficient, and in many cases easier to
233
+ read.
234
+ .Sp
235
+ Each capturing parenthesis can now be treated as an independent pattern
236
+ that can be entered by using the \f(CW\*(C`(?PARNO)\*(C'\fR syntax (\f(CW\*(C`PARNO\*(C'\fR standing for
237
+ \&\*(L"parenthesis number\*(R"). For example, the following pattern will match
238
+ nested balanced angle brackets:
239
+ .Sp
240
+ .Vb 10
241
+ \& /
242
+ \& ^ # start of line
243
+ \& ( # start capture buffer 1
244
+ \& < # match an opening angle bracket
245
+ \& (?: # match one of:
246
+ \& (?> # don\*(Aqt backtrack over the inside of this group
247
+ \& [^<>]+ # one or more non angle brackets
248
+ \& ) # end non backtracking group
249
+ \& | # ... or ...
250
+ \& (?1) # recurse to bracket 1 and try it again
251
+ \& )* # 0 or more times.
252
+ \& > # match a closing angle bracket
253
+ \& ) # end capture buffer one
254
+ \& $ # end of line
255
+ \& /x
256
+ .Ve
257
+ .Sp
258
+ \&\s-1PCRE\s0 users should note that Perl's recursive regex feature allows
259
+ backtracking into a recursed pattern, whereas in \s-1PCRE\s0 the recursion is
260
+ atomic or \*(L"possessive\*(R" in nature. As in the example above, you can
261
+ add (?>) to control this selectively. (Yves Orton)
262
+ .IP "Named Capture Buffers" 4
263
+ .IX Item "Named Capture Buffers"
264
+ It is now possible to name capturing parenthesis in a pattern and refer to
265
+ the captured contents by name. The naming syntax is \f(CW\*(C`(?<NAME>....)\*(C'\fR.
266
+ It's possible to backreference to a named buffer with the \f(CW\*(C`\ek<NAME>\*(C'\fR
267
+ syntax. In code, the new magical hashes \f(CW\*(C`%+\*(C'\fR and \f(CW\*(C`%\-\*(C'\fR can be used to
268
+ access the contents of the capture buffers.
269
+ .Sp
270
+ Thus, to replace all doubled chars with a single copy, one could write
271
+ .Sp
272
+ .Vb 1
273
+ \& s/(?<letter>.)\ek<letter>/$+{letter}/g
274
+ .Ve
275
+ .Sp
276
+ Only buffers with defined contents will be \*(L"visible\*(R" in the \f(CW\*(C`%+\*(C'\fR hash, so
277
+ it's possible to do something like
278
+ .Sp
279
+ .Vb 3
280
+ \& foreach my $name (keys %+) {
281
+ \& print "content of buffer \*(Aq$name\*(Aq is $+{$name}\en";
282
+ \& }
283
+ .Ve
284
+ .Sp
285
+ The \f(CW\*(C`%\-\*(C'\fR hash is a bit more complete, since it will contain array refs
286
+ holding values from all capture buffers similarly named, if there should
287
+ be many of them.
288
+ .Sp
289
+ \&\f(CW\*(C`%+\*(C'\fR and \f(CW\*(C`%\-\*(C'\fR are implemented as tied hashes through the new module
290
+ \&\f(CW\*(C`Tie::Hash::NamedCapture\*(C'\fR.
291
+ .Sp
292
+ Users exposed to the .NET regex engine will find that the perl
293
+ implementation differs in that the numerical ordering of the buffers
294
+ is sequential, and not \*(L"unnamed first, then named\*(R". Thus in the pattern
295
+ .Sp
296
+ .Vb 1
297
+ \& /(A)(?<B>B)(C)(?<D>D)/
298
+ .Ve
299
+ .Sp
300
+ \&\f(CW$1\fR will be 'A', \f(CW$2\fR will be 'B', \f(CW$3\fR will be 'C' and \f(CW$4\fR will be 'D' and not
301
+ \&\f(CW$1\fR is 'A', \f(CW$2\fR is 'C' and \f(CW$3\fR is 'B' and \f(CW$4\fR is 'D' that a .NET programmer
302
+ would expect. This is considered a feature. :\-) (Yves Orton)
303
+ .IP "Possessive Quantifiers" 4
304
+ .IX Item "Possessive Quantifiers"
305
+ Perl now supports the \*(L"possessive quantifier\*(R" syntax of the \*(L"atomic match\*(R"
306
+ pattern. Basically a possessive quantifier matches as much as it can and never
307
+ gives any back. Thus it can be used to control backtracking. The syntax is
308
+ similar to non-greedy matching, except instead of using a '?' as the modifier
309
+ the '+' is used. Thus \f(CW\*(C`?+\*(C'\fR, \f(CW\*(C`*+\*(C'\fR, \f(CW\*(C`++\*(C'\fR, \f(CW\*(C`{min,max}+\*(C'\fR are now legal
310
+ quantifiers. (Yves Orton)
311
+ .IP "Backtracking control verbs" 4
312
+ .IX Item "Backtracking control verbs"
313
+ The regex engine now supports a number of special-purpose backtrack
314
+ control verbs: (*THEN), (*PRUNE), (*MARK), (*SKIP), (*COMMIT), (*FAIL)
315
+ and (*ACCEPT). See perlre for their descriptions. (Yves Orton)
316
+ .IP "Relative backreferences" 4
317
+ .IX Item "Relative backreferences"
318
+ A new syntax \f(CW\*(C`\eg{N}\*(C'\fR or \f(CW\*(C`\egN\*(C'\fR where \*(L"N\*(R" is a decimal integer allows a
319
+ safer form of back-reference notation as well as allowing relative
320
+ backreferences. This should make it easier to generate and embed patterns
321
+ that contain backreferences. See \*(L"Capture buffers\*(R" in perlre. (Yves Orton)
322
+ .ie n .IP """\eK"" escape" 4
323
+ .el .IP "\f(CW\eK\fR escape" 4
324
+ .IX Item "K escape"
325
+ The functionality of Jeff Pinyan's module Regexp::Keep has been added to
326
+ the core. In regular expressions you can now use the special escape \f(CW\*(C`\eK\*(C'\fR
327
+ as a way to do something like floating length positive lookbehind. It is
328
+ also useful in substitutions like:
329
+ .Sp
330
+ .Vb 1
331
+ \& s/(foo)bar/$1/g
332
+ .Ve
333
+ .Sp
334
+ that can now be converted to
335
+ .Sp
336
+ .Vb 1
337
+ \& s/foo\eKbar//g
338
+ .Ve
339
+ .Sp
340
+ which is much more efficient. (Yves Orton)
341
+ .IP "Vertical and horizontal whitespace, and linebreak" 4
342
+ .IX Item "Vertical and horizontal whitespace, and linebreak"
343
+ Regular expressions now recognize the \f(CW\*(C`\ev\*(C'\fR and \f(CW\*(C`\eh\*(C'\fR escapes that match
344
+ vertical and horizontal whitespace, respectively. \f(CW\*(C`\eV\*(C'\fR and \f(CW\*(C`\eH\*(C'\fR
345
+ logically match their complements.
346
+ .Sp
347
+ \&\f(CW\*(C`\eR\*(C'\fR matches a generic linebreak, that is, vertical whitespace, plus
348
+ the multi-character sequence \f(CW"\ex0D\ex0A"\fR.
349
+ .IP "Optional pre-match and post-match captures with the /p flag" 4
350
+ .IX Item "Optional pre-match and post-match captures with the /p flag"
351
+ There is a new flag \f(CW\*(C`/p\*(C'\fR for regular expressions. Using this
352
+ makes the engine preserve a copy of the part of the matched string before
353
+ the matching substring to the new special variable \f(CW\*(C`${^PREMATCH}\*(C'\fR, the
354
+ part after the matching substring to \f(CW\*(C`${^POSTMATCH}\*(C'\fR, and the matched
355
+ substring itself to \f(CW\*(C`${^MATCH}\*(C'\fR.
356
+ .Sp
357
+ Perl is still able to store these substrings to the special variables
358
+ \&\f(CW\*(C`$\`\*(C'\fR, \f(CW\*(C`$\*(Aq\*(C'\fR, \f(CW$&\fR, but using these variables anywhere in the program
359
+ adds a penalty to all regular expression matches, whereas if you use
360
+ the \f(CW\*(C`/p\*(C'\fR flag and the new special variables instead, you pay only for
361
+ the regular expressions where the flag is used.
362
+ .Sp
363
+ For more detail on the new variables, see perlvar; for the use of
364
+ the regular expression flag, see perlop and perlre.
365
+ .ie n .SS """say()"""
366
+ .el .SS "\f(CWsay()\fP"
367
+ .IX Subsection "say()"
368
+ \&\fBsay()\fR is a new built-in, only available when \f(CW\*(C`use feature \*(Aqsay\*(Aq\*(C'\fR is in
369
+ effect, that is similar to \fBprint()\fR, but that implicitly appends a newline
370
+ to the printed string. See \*(L"say\*(R" in perlfunc. (Robin Houston)
371
+ .ie n .SS "Lexical $_"
372
+ .el .SS "Lexical \f(CW$_\fP"
373
+ .IX Subsection "Lexical $_"
374
+ The default variable \f(CW$_\fR can now be lexicalized, by declaring it like
375
+ any other lexical variable, with a simple
376
+ .PP
377
+ .Vb 1
378
+ \& my $_;
379
+ .Ve
380
+ .PP
381
+ The operations that default on \f(CW$_\fR will use the lexically-scoped
382
+ version of \f(CW$_\fR when it exists, instead of the global \f(CW$_\fR.
383
+ .PP
384
+ In a \f(CW\*(C`map\*(C'\fR or a \f(CW\*(C`grep\*(C'\fR block, if \f(CW$_\fR was previously my'ed, then the
385
+ \&\f(CW$_\fR inside the block is lexical as well (and scoped to the block).
386
+ .PP
387
+ In a scope where \f(CW$_\fR has been lexicalized, you can still have access to
388
+ the global version of \f(CW$_\fR by using \f(CW$::_\fR, or, more simply, by
389
+ overriding the lexical declaration with \f(CW\*(C`our $_\*(C'\fR. (Rafael Garcia-Suarez)
390
+ .ie n .SS "The ""_"" prototype"
391
+ .el .SS "The \f(CW_\fP prototype"
392
+ .IX Subsection "The _ prototype"
393
+ A new prototype character has been added. \f(CW\*(C`_\*(C'\fR is equivalent to \f(CW\*(C`$\*(C'\fR but
394
+ defaults to \f(CW$_\fR if the corresponding argument isn't supplied (both \f(CW\*(C`$\*(C'\fR
395
+ and \f(CW\*(C`_\*(C'\fR denote a scalar). Due to the optional nature of the argument,
396
+ you can only use it at the end of a prototype, or before a semicolon.
397
+ .PP
398
+ This has a small incompatible consequence: the \fBprototype()\fR function has
399
+ been adjusted to return \f(CW\*(C`_\*(C'\fR for some built-ins in appropriate cases (for
400
+ example, \f(CW\*(C`prototype(\*(AqCORE::rmdir\*(Aq)\*(C'\fR). (Rafael Garcia-Suarez)
401
+ .SS "\s-1UNITCHECK\s0 blocks"
402
+ .IX Subsection "UNITCHECK blocks"
403
+ \&\f(CW\*(C`UNITCHECK\*(C'\fR, a new special code block has been introduced, in addition to
404
+ \&\f(CW\*(C`BEGIN\*(C'\fR, \f(CW\*(C`CHECK\*(C'\fR, \f(CW\*(C`INIT\*(C'\fR and \f(CW\*(C`END\*(C'\fR.
405
+ .PP
406
+ \&\f(CW\*(C`CHECK\*(C'\fR and \f(CW\*(C`INIT\*(C'\fR blocks, while useful for some specialized purposes,
407
+ are always executed at the transition between the compilation and the
408
+ execution of the main program, and thus are useless whenever code is
409
+ loaded at runtime. On the other hand, \f(CW\*(C`UNITCHECK\*(C'\fR blocks are executed
410
+ just after the unit which defined them has been compiled. See perlmod
411
+ for more information. (Alex Gough)
412
+ .ie n .SS "New Pragma, ""mro"""
413
+ .el .SS "New Pragma, \f(CWmro\fP"
414
+ .IX Subsection "New Pragma, mro"
415
+ A new pragma, \f(CW\*(C`mro\*(C'\fR (for Method Resolution Order) has been added. It
416
+ permits to switch, on a per-class basis, the algorithm that perl uses to
417
+ find inherited methods in case of a multiple inheritance hierarchy. The
418
+ default \s-1MRO\s0 hasn't changed (\s-1DFS,\s0 for Depth First Search). Another \s-1MRO\s0 is
419
+ available: the C3 algorithm. See mro for more information.
420
+ (Brandon Black)
421
+ .PP
422
+ Note that, due to changes in the implementation of class hierarchy search,
423
+ code that used to undef the \f(CW*ISA\fR glob will most probably break. Anyway,
424
+ undef'ing \f(CW*ISA\fR had the side-effect of removing the magic on the \f(CW@ISA\fR
425
+ array and should not have been done in the first place. Also, the
426
+ cache \f(CW*::ISA::CACHE::\fR no longer exists; to force reset the \f(CW@ISA\fR cache,
427
+ you now need to use the \f(CW\*(C`mro\*(C'\fR \s-1API,\s0 or more simply to assign to \f(CW@ISA\fR
428
+ (e.g. with \f(CW\*(C`@ISA = @ISA\*(C'\fR).
429
+ .ie n .SS "\fBreaddir()\fP may return a ""short filename"" on Windows"
430
+ .el .SS "\fBreaddir()\fP may return a ``short filename'' on Windows"
431
+ .IX Subsection "readdir() may return a short filename on Windows"
432
+ The \fBreaddir()\fR function may return a \*(L"short filename\*(R" when the long
433
+ filename contains characters outside the \s-1ANSI\s0 codepage. Similarly
434
+ \&\fBCwd::cwd()\fR may return a short directory name, and \fBglob()\fR may return short
435
+ names as well. On the \s-1NTFS\s0 file system these short names can always be
436
+ represented in the \s-1ANSI\s0 codepage. This will not be true for all other file
437
+ system drivers; e.g. the \s-1FAT\s0 filesystem stores short filenames in the \s-1OEM\s0
438
+ codepage, so some files on \s-1FAT\s0 volumes remain unaccessible through the
439
+ \&\s-1ANSI\s0 APIs.
440
+ .PP
441
+ Similarly, $^X, \f(CW@INC\fR, and \f(CW$ENV\fR{\s-1PATH\s0} are preprocessed at startup to make
442
+ sure all paths are valid in the \s-1ANSI\s0 codepage (if possible).
443
+ .PP
444
+ The \fBWin32::GetLongPathName()\fR function now returns the \s-1UTF\-8\s0 encoded
445
+ correct long file name instead of using replacement characters to force
446
+ the name into the \s-1ANSI\s0 codepage. The new \fBWin32::GetANSIPathName()\fR
447
+ function can be used to turn a long pathname into a short one only if the
448
+ long one cannot be represented in the \s-1ANSI\s0 codepage.
449
+ .PP
450
+ Many other functions in the \f(CW\*(C`Win32\*(C'\fR module have been improved to accept
451
+ \&\s-1UTF\-8\s0 encoded arguments. Please see Win32 for details.
452
+ .SS "\fBreadpipe()\fP is now overridable"
453
+ .IX Subsection "readpipe() is now overridable"
454
+ The built-in function \fBreadpipe()\fR is now overridable. Overriding it permits
455
+ also to override its operator counterpart, \f(CW\*(C`qx//\*(C'\fR (a.k.a. \f(CW\*(C`\`\`\*(C'\fR).
456
+ Moreover, it now defaults to \f(CW$_\fR if no argument is provided. (Rafael
457
+ Garcia-Suarez)
458
+ .SS "Default argument for \fBreadline()\fP"
459
+ .IX Subsection "Default argument for readline()"
460
+ \&\fBreadline()\fR now defaults to \f(CW*ARGV\fR if no argument is provided. (Rafael
461
+ Garcia-Suarez)
462
+ .SS "\fBstate()\fP variables"
463
+ .IX Subsection "state() variables"
464
+ A new class of variables has been introduced. State variables are similar
465
+ to \f(CW\*(C`my\*(C'\fR variables, but are declared with the \f(CW\*(C`state\*(C'\fR keyword in place of
466
+ \&\f(CW\*(C`my\*(C'\fR. They're visible only in their lexical scope, but their value is
467
+ persistent: unlike \f(CW\*(C`my\*(C'\fR variables, they're not undefined at scope entry,
468
+ but retain their previous value. (Rafael Garcia-Suarez, Nicholas Clark)
469
+ .PP
470
+ To use state variables, one needs to enable them by using
471
+ .PP
472
+ .Vb 1
473
+ \& use feature \*(Aqstate\*(Aq;
474
+ .Ve
475
+ .PP
476
+ or by using the \f(CW\*(C`\-E\*(C'\fR command-line switch in one-liners.
477
+ See \*(L"Persistent Private Variables\*(R" in perlsub.
478
+ .SS "Stacked filetest operators"
479
+ .IX Subsection "Stacked filetest operators"
480
+ As a new form of syntactic sugar, it's now possible to stack up filetest
481
+ operators. You can now write \f(CW\*(C`\-f \-w \-x $file\*(C'\fR in a row to mean
482
+ \&\f(CW\*(C`\-x $file && \-w _ && \-f _\*(C'\fR. See \*(L"\-X\*(R" in perlfunc.
483
+ .SS "\s-1\fBUNIVERSAL::DOES\s0()\fP"
484
+ .IX Subsection "UNIVERSAL::DOES()"
485
+ The \f(CW\*(C`UNIVERSAL\*(C'\fR class has a new method, \f(CW\*(C`DOES()\*(C'\fR. It has been added to
486
+ solve semantic problems with the \f(CW\*(C`isa()\*(C'\fR method. \f(CW\*(C`isa()\*(C'\fR checks for
487
+ inheritance, while \f(CW\*(C`DOES()\*(C'\fR has been designed to be overridden when
488
+ module authors use other types of relations between classes (in addition
489
+ to inheritance). (chromatic)
490
+ .PP
491
+ See \*(L"$obj\->\s-1DOES\s0( \s-1ROLE\s0 )\*(R" in \s-1UNIVERSAL\s0.
492
+ .SS "Formats"
493
+ .IX Subsection "Formats"
494
+ Formats were improved in several ways. A new field, \f(CW\*(C`^*\*(C'\fR, can be used for
495
+ variable-width, one-line-at-a-time text. Null characters are now handled
496
+ correctly in picture lines. Using \f(CW\*(C`@#\*(C'\fR and \f(CW\*(C`~~\*(C'\fR together will now
497
+ produce a compile-time error, as those format fields are incompatible.
498
+ perlform has been improved, and miscellaneous bugs fixed.
499
+ .SS "Byte-order modifiers for \fBpack()\fP and \fBunpack()\fP"
500
+ .IX Subsection "Byte-order modifiers for pack() and unpack()"
501
+ There are two new byte-order modifiers, \f(CW\*(C`>\*(C'\fR (big-endian) and \f(CW\*(C`<\*(C'\fR
502
+ (little-endian), that can be appended to most \fBpack()\fR and \fBunpack()\fR template
503
+ characters and groups to force a certain byte-order for that type or group.
504
+ See \*(L"pack\*(R" in perlfunc and perlpacktut for details.
505
+ .ie n .SS """no VERSION"""
506
+ .el .SS "\f(CWno VERSION\fP"
507
+ .IX Subsection "no VERSION"
508
+ You can now use \f(CW\*(C`no\*(C'\fR followed by a version number to specify that you
509
+ want to use a version of perl older than the specified one.
510
+ .ie n .SS """chdir"", ""chmod"" and ""chown"" on filehandles"
511
+ .el .SS "\f(CWchdir\fP, \f(CWchmod\fP and \f(CWchown\fP on filehandles"
512
+ .IX Subsection "chdir, chmod and chown on filehandles"
513
+ \&\f(CW\*(C`chdir\*(C'\fR, \f(CW\*(C`chmod\*(C'\fR and \f(CW\*(C`chown\*(C'\fR can now work on filehandles as well as
514
+ filenames, if the system supports respectively \f(CW\*(C`fchdir\*(C'\fR, \f(CW\*(C`fchmod\*(C'\fR and
515
+ \&\f(CW\*(C`fchown\*(C'\fR, thanks to a patch provided by Gisle Aas.
516
+ .SS "\s-1OS\s0 groups"
517
+ .IX Subsection "OS groups"
518
+ \&\f(CW$(\fR and \f(CW$)\fR now return groups in the order where the \s-1OS\s0 returns them,
519
+ thanks to Gisle Aas. This wasn't previously the case.
520
+ .SS "Recursive sort subs"
521
+ .IX Subsection "Recursive sort subs"
522
+ You can now use recursive subroutines with \fBsort()\fR, thanks to Robin Houston.
523
+ .SS "Exceptions in constant folding"
524
+ .IX Subsection "Exceptions in constant folding"
525
+ The constant folding routine is now wrapped in an exception handler, and
526
+ if folding throws an exception (such as attempting to evaluate 0/0), perl
527
+ now retains the current optree, rather than aborting the whole program.
528
+ Without this change, programs would not compile if they had expressions that
529
+ happened to generate exceptions, even though those expressions were in code
530
+ that could never be reached at runtime. (Nicholas Clark, Dave Mitchell)
531
+ .ie n .SS "Source filters in @INC"
532
+ .el .SS "Source filters in \f(CW@INC\fP"
533
+ .IX Subsection "Source filters in @INC"
534
+ It's possible to enhance the mechanism of subroutine hooks in \f(CW@INC\fR by
535
+ adding a source filter on top of the filehandle opened and returned by the
536
+ hook. This feature was planned a long time ago, but wasn't quite working
537
+ until now. See \*(L"require\*(R" in perlfunc for details. (Nicholas Clark)
538
+ .SS "New internal variables"
539
+ .IX Subsection "New internal variables"
540
+ .ie n .IP """${^RE_DEBUG_FLAGS}""" 4
541
+ .el .IP "\f(CW${^RE_DEBUG_FLAGS}\fR" 4
542
+ .IX Item "${^RE_DEBUG_FLAGS}"
543
+ This variable controls what debug flags are in effect for the regular
544
+ expression engine when running under \f(CW\*(C`use re "debug"\*(C'\fR. See re for
545
+ details.
546
+ .ie n .IP """${^CHILD_ERROR_NATIVE}""" 4
547
+ .el .IP "\f(CW${^CHILD_ERROR_NATIVE}\fR" 4
548
+ .IX Item "${^CHILD_ERROR_NATIVE}"
549
+ This variable gives the native status returned by the last pipe close,
550
+ backtick command, successful call to \fBwait()\fR or \fBwaitpid()\fR, or from the
551
+ \&\fBsystem()\fR operator. See perlvar for details. (Contributed by Gisle Aas.)
552
+ .ie n .IP """${^RE_TRIE_MAXBUF}""" 4
553
+ .el .IP "\f(CW${^RE_TRIE_MAXBUF}\fR" 4
554
+ .IX Item "${^RE_TRIE_MAXBUF}"
555
+ See \*(L"Trie optimisation of literal string alternations\*(R".
556
+ .ie n .IP """${^WIN32_SLOPPY_STAT}""" 4
557
+ .el .IP "\f(CW${^WIN32_SLOPPY_STAT}\fR" 4
558
+ .IX Item "${^WIN32_SLOPPY_STAT}"
559
+ See \*(L"Sloppy stat on Windows\*(R".
560
+ .SS "Miscellaneous"
561
+ .IX Subsection "Miscellaneous"
562
+ \&\f(CW\*(C`unpack()\*(C'\fR now defaults to unpacking the \f(CW$_\fR variable.
563
+ .PP
564
+ \&\f(CW\*(C`mkdir()\*(C'\fR without arguments now defaults to \f(CW$_\fR.
565
+ .PP
566
+ The internal dump output has been improved, so that non-printable characters
567
+ such as newline and backspace are output in \f(CW\*(C`\ex\*(C'\fR notation, rather than
568
+ octal.
569
+ .PP
570
+ The \fB\-C\fR option can no longer be used on the \f(CW\*(C`#!\*(C'\fR line. It wasn't
571
+ working there anyway, since the standard streams are already set up
572
+ at this point in the execution of the perl interpreter. You can use
573
+ \&\fBbinmode()\fR instead to get the desired behaviour.
574
+ .SS "\s-1UCD 5.0.0\s0"
575
+ .IX Subsection "UCD 5.0.0"
576
+ The copy of the Unicode Character Database included in Perl 5 has
577
+ been updated to version 5.0.0.
578
+ .SS "\s-1MAD\s0"
579
+ .IX Subsection "MAD"
580
+ \&\s-1MAD,\s0 which stands for \fIMiscellaneous Attribute Decoration\fR, is a
581
+ still-in-development work leading to a Perl 5 to Perl 6 converter. To
582
+ enable it, it's necessary to pass the argument \f(CW\*(C`\-Dmad\*(C'\fR to Configure. The
583
+ obtained perl isn't binary compatible with a regular perl 5.10, and has
584
+ space and speed penalties; moreover not all regression tests still pass
585
+ with it. (Larry Wall, Nicholas Clark)
586
+ .SS "\fBkill()\fP on Windows"
587
+ .IX Subsection "kill() on Windows"
588
+ On Windows platforms, \f(CW\*(C`kill(\-9, $pid)\*(C'\fR now kills a process tree.
589
+ (On Unix, this delivers the signal to all processes in the same process
590
+ group.)
591
+ .SH "Incompatible Changes"
592
+ .IX Header "Incompatible Changes"
593
+ .SS "Packing and \s-1UTF\-8\s0 strings"
594
+ .IX Subsection "Packing and UTF-8 strings"
595
+ The semantics of \fBpack()\fR and \fBunpack()\fR regarding UTF\-8\-encoded data has been
596
+ changed. Processing is now by default character per character instead of
597
+ byte per byte on the underlying encoding. Notably, code that used things
598
+ like \f(CW\*(C`pack("a*", $string)\*(C'\fR to see through the encoding of string will now
599
+ simply get back the original \f(CW$string\fR. Packed strings can also get upgraded
600
+ during processing when you store upgraded characters. You can get the old
601
+ behaviour by using \f(CW\*(C`use bytes\*(C'\fR.
602
+ .PP
603
+ To be consistent with \fBpack()\fR, the \f(CW\*(C`C0\*(C'\fR in \fBunpack()\fR templates indicates
604
+ that the data is to be processed in character mode, i.e. character by
605
+ character; on the contrary, \f(CW\*(C`U0\*(C'\fR in \fBunpack()\fR indicates \s-1UTF\-8\s0 mode, where
606
+ the packed string is processed in its UTF\-8\-encoded Unicode form on a byte
607
+ by byte basis. This is reversed with regard to perl 5.8.X, but now consistent
608
+ between \fBpack()\fR and \fBunpack()\fR.
609
+ .PP
610
+ Moreover, \f(CW\*(C`C0\*(C'\fR and \f(CW\*(C`U0\*(C'\fR can also be used in \fBpack()\fR templates to specify
611
+ respectively character and byte modes.
612
+ .PP
613
+ \&\f(CW\*(C`C0\*(C'\fR and \f(CW\*(C`U0\*(C'\fR in the middle of a pack or unpack format now switch to the
614
+ specified encoding mode, honoring parens grouping. Previously, parens were
615
+ ignored.
616
+ .PP
617
+ Also, there is a new \fBpack()\fR character format, \f(CW\*(C`W\*(C'\fR, which is intended to
618
+ replace the old \f(CW\*(C`C\*(C'\fR. \f(CW\*(C`C\*(C'\fR is kept for unsigned chars coded as bytes in
619
+ the strings internal representation. \f(CW\*(C`W\*(C'\fR represents unsigned (logical)
620
+ character values, which can be greater than 255. It is therefore more
621
+ robust when dealing with potentially UTF\-8\-encoded data (as \f(CW\*(C`C\*(C'\fR will wrap
622
+ values outside the range 0..255, and not respect the string encoding).
623
+ .PP
624
+ In practice, that means that pack formats are now encoding-neutral, except
625
+ \&\f(CW\*(C`C\*(C'\fR.
626
+ .PP
627
+ For consistency, \f(CW\*(C`A\*(C'\fR in \fBunpack()\fR format now trims all Unicode whitespace
628
+ from the end of the string. Before perl 5.9.2, it used to strip only the
629
+ classical \s-1ASCII\s0 space characters.
630
+ .SS "Byte/character count feature in \fBunpack()\fP"
631
+ .IX Subsection "Byte/character count feature in unpack()"
632
+ A new \fBunpack()\fR template character, \f(CW"."\fR, returns the number of bytes or
633
+ characters (depending on the selected encoding mode, see above) read so far.
634
+ .ie n .SS "The $* and $# variables have been removed"
635
+ .el .SS "The \f(CW$*\fP and \f(CW$#\fP variables have been removed"
636
+ .IX Subsection "The $* and $# variables have been removed"
637
+ \&\f(CW$*\fR, which was deprecated in favor of the \f(CW\*(C`/s\*(C'\fR and \f(CW\*(C`/m\*(C'\fR regexp
638
+ modifiers, has been removed.
639
+ .PP
640
+ The deprecated \f(CW$#\fR variable (output format for numbers) has been
641
+ removed.
642
+ .PP
643
+ Two new severe warnings, \f(CW\*(C`$#/$* is no longer supported\*(C'\fR, have been added.
644
+ .SS "\fBsubstr()\fP lvalues are no longer fixed-length"
645
+ .IX Subsection "substr() lvalues are no longer fixed-length"
646
+ The lvalues returned by the three argument form of \fBsubstr()\fR used to be a
647
+ \&\*(L"fixed length window\*(R" on the original string. In some cases this could
648
+ cause surprising action at distance or other undefined behaviour. Now the
649
+ length of the window adjusts itself to the length of the string assigned to
650
+ it.
651
+ .ie n .SS "Parsing of ""\-f _"""
652
+ .el .SS "Parsing of \f(CW\-f _\fP"
653
+ .IX Subsection "Parsing of -f _"
654
+ The identifier \f(CW\*(C`_\*(C'\fR is now forced to be a bareword after a filetest
655
+ operator. This solves a number of misparsing issues when a global \f(CW\*(C`_\*(C'\fR
656
+ subroutine is defined.
657
+ .ie n .SS """:unique"""
658
+ .el .SS "\f(CW:unique\fP"
659
+ .IX Subsection ":unique"
660
+ The \f(CW\*(C`:unique\*(C'\fR attribute has been made a no-op, since its current
661
+ implementation was fundamentally flawed and not threadsafe.
662
+ .SS "Effect of pragmas in eval"
663
+ .IX Subsection "Effect of pragmas in eval"
664
+ The compile-time value of the \f(CW\*(C`%^H\*(C'\fR hint variable can now propagate into
665
+ eval("")uated code. This makes it more useful to implement lexical
666
+ pragmas.
667
+ .PP
668
+ As a side-effect of this, the overloaded-ness of constants now propagates
669
+ into eval("").
670
+ .SS "chdir \s-1FOO\s0"
671
+ .IX Subsection "chdir FOO"
672
+ A bareword argument to \fBchdir()\fR is now recognized as a file handle.
673
+ Earlier releases interpreted the bareword as a directory name.
674
+ (Gisle Aas)
675
+ .SS "Handling of .pmc files"
676
+ .IX Subsection "Handling of .pmc files"
677
+ An old feature of perl was that before \f(CW\*(C`require\*(C'\fR or \f(CW\*(C`use\*(C'\fR look for a
678
+ file with a \fI.pm\fR extension, they will first look for a similar filename
679
+ with a \fI.pmc\fR extension. If this file is found, it will be loaded in
680
+ place of any potentially existing file ending in a \fI.pm\fR extension.
681
+ .PP
682
+ Previously, \fI.pmc\fR files were loaded only if more recent than the
683
+ matching \fI.pm\fR file. Starting with 5.9.4, they'll be always loaded if
684
+ they exist.
685
+ .ie n .SS "$^V is now a ""version"" object instead of a v\-string"
686
+ .el .SS "$^V is now a \f(CWversion\fP object instead of a v\-string"
687
+ .IX Subsection "$^V is now a version object instead of a v-string"
688
+ $^V can still be used with the \f(CW%vd\fR format in printf, but any
689
+ character-level operations will now access the string representation
690
+ of the \f(CW\*(C`version\*(C'\fR object and not the ordinals of a v\-string.
691
+ Expressions like \f(CW\*(C`substr($^V, 0, 2)\*(C'\fR or \f(CW\*(C`split //, $^V\*(C'\fR
692
+ no longer work and must be rewritten.
693
+ .SS "@\- and @+ in patterns"
694
+ .IX Subsection "@- and @+ in patterns"
695
+ The special arrays \f(CW\*(C`@\-\*(C'\fR and \f(CW\*(C`@+\*(C'\fR are no longer interpolated in regular
696
+ expressions. (Sadahiro Tomoyuki)
697
+ .ie n .SS "$AUTOLOAD can now be tainted"
698
+ .el .SS "\f(CW$AUTOLOAD\fP can now be tainted"
699
+ .IX Subsection "$AUTOLOAD can now be tainted"
700
+ If you call a subroutine by a tainted name, and if it defers to an
701
+ \&\s-1AUTOLOAD\s0 function, then \f(CW$AUTOLOAD\fR will be (correctly) tainted.
702
+ (Rick Delaney)
703
+ .SS "Tainting and printf"
704
+ .IX Subsection "Tainting and printf"
705
+ When perl is run under taint mode, \f(CW\*(C`printf()\*(C'\fR and \f(CW\*(C`sprintf()\*(C'\fR will now
706
+ reject any tainted format argument. (Rafael Garcia-Suarez)
707
+ .SS "undef and signal handlers"
708
+ .IX Subsection "undef and signal handlers"
709
+ Undefining or deleting a signal handler via \f(CW\*(C`undef $SIG{FOO}\*(C'\fR is now
710
+ equivalent to setting it to \f(CW\*(AqDEFAULT\*(Aq\fR. (Rafael Garcia-Suarez)
711
+ .SS "strictures and dereferencing in \fBdefined()\fP"
712
+ .IX Subsection "strictures and dereferencing in defined()"
713
+ \&\f(CW\*(C`use strict \*(Aqrefs\*(Aq\*(C'\fR was ignoring taking a hard reference in an argument
714
+ to \fBdefined()\fR, as in :
715
+ .PP
716
+ .Vb 3
717
+ \& use strict \*(Aqrefs\*(Aq;
718
+ \& my $x = \*(Aqfoo\*(Aq;
719
+ \& if (defined $$x) {...}
720
+ .Ve
721
+ .PP
722
+ This now correctly produces the run-time error \f(CW\*(C`Can\*(Aqt use string as a
723
+ SCALAR ref while "strict refs" in use\*(C'\fR.
724
+ .PP
725
+ \&\f(CW\*(C`defined @$foo\*(C'\fR and \f(CW\*(C`defined %$bar\*(C'\fR are now also subject to \f(CW\*(C`strict
726
+ \&\*(Aqrefs\*(Aq\*(C'\fR (that is, \f(CW$foo\fR and \f(CW$bar\fR shall be proper references there.)
727
+ (\f(CW\*(C`defined(@foo)\*(C'\fR and \f(CW\*(C`defined(%bar)\*(C'\fR are discouraged constructs anyway.)
728
+ (Nicholas Clark)
729
+ .ie n .SS """(?p{})"" has been removed"
730
+ .el .SS "\f(CW(?p{})\fP has been removed"
731
+ .IX Subsection "(?p{}) has been removed"
732
+ The regular expression construct \f(CW\*(C`(?p{})\*(C'\fR, which was deprecated in perl
733
+ 5.8, has been removed. Use \f(CW\*(C`(??{})\*(C'\fR instead. (Rafael Garcia-Suarez)
734
+ .SS "Pseudo-hashes have been removed"
735
+ .IX Subsection "Pseudo-hashes have been removed"
736
+ Support for pseudo-hashes has been removed from Perl 5.9. (The \f(CW\*(C`fields\*(C'\fR
737
+ pragma remains here, but uses an alternate implementation.)
738
+ .SS "Removal of the bytecode compiler and of perlcc"
739
+ .IX Subsection "Removal of the bytecode compiler and of perlcc"
740
+ \&\f(CW\*(C`perlcc\*(C'\fR, the byteloader and the supporting modules (B::C, B::CC,
741
+ B::Bytecode, etc.) are no longer distributed with the perl sources. Those
742
+ experimental tools have never worked reliably, and, due to the lack of
743
+ volunteers to keep them in line with the perl interpreter developments, it
744
+ was decided to remove them instead of shipping a broken version of those.
745
+ The last version of those modules can be found with perl 5.9.4.
746
+ .PP
747
+ However the B compiler framework stays supported in the perl core, as with
748
+ the more useful modules it has permitted (among others, B::Deparse and
749
+ B::Concise).
750
+ .SS "Removal of the \s-1JPL\s0"
751
+ .IX Subsection "Removal of the JPL"
752
+ The \s-1JPL\s0 (Java-Perl Lingo) has been removed from the perl sources tarball.
753
+ .SS "Recursive inheritance detected earlier"
754
+ .IX Subsection "Recursive inheritance detected earlier"
755
+ Perl will now immediately throw an exception if you modify any package's
756
+ \&\f(CW@ISA\fR in such a way that it would cause recursive inheritance.
757
+ .PP
758
+ Previously, the exception would not occur until Perl attempted to make
759
+ use of the recursive inheritance while resolving a method or doing a
760
+ \&\f(CW\*(C`$foo\->isa($bar)\*(C'\fR lookup.
761
+ .SS "warnings::enabled and warnings::warnif changed to favor users of modules"
762
+ .IX Subsection "warnings::enabled and warnings::warnif changed to favor users of modules"
763
+ The behaviour in 5.10.x favors the person using the module;
764
+ The behaviour in 5.8.x favors the module writer;
765
+ .PP
766
+ Assume the following code:
767
+ .PP
768
+ .Vb 5
769
+ \& main calls Foo::Bar::baz()
770
+ \& Foo::Bar inherits from Foo::Base
771
+ \& Foo::Bar::baz() calls Foo::Base::_bazbaz()
772
+ \& Foo::Base::_bazbaz() calls: warnings::warnif(\*(Aqsubstr\*(Aq, \*(Aqsome warning
773
+ \&message\*(Aq);
774
+ .Ve
775
+ .PP
776
+ On 5.8.x, the code warns when Foo::Bar contains \f(CW\*(C`use warnings;\*(C'\fR
777
+ It does not matter if Foo::Base or main have warnings enabled
778
+ to disable the warning one has to modify Foo::Bar.
779
+ .PP
780
+ On 5.10.0 and newer, the code warns when main contains \f(CW\*(C`use warnings;\*(C'\fR
781
+ It does not matter if Foo::Base or Foo::Bar have warnings enabled
782
+ to disable the warning one has to modify main.
783
+ .SH "Modules and Pragmata"
784
+ .IX Header "Modules and Pragmata"
785
+ .SS "Upgrading individual core modules"
786
+ .IX Subsection "Upgrading individual core modules"
787
+ Even more core modules are now also available separately through the
788
+ \&\s-1CPAN.\s0 If you wish to update one of these modules, you don't need to
789
+ wait for a new perl release. From within the cpan shell, running the
790
+ \&'r' command will report on modules with upgrades available. See
791
+ \&\f(CW\*(C`perldoc CPAN\*(C'\fR for more information.
792
+ .SS "Pragmata Changes"
793
+ .IX Subsection "Pragmata Changes"
794
+ .ie n .IP """feature""" 4
795
+ .el .IP "\f(CWfeature\fR" 4
796
+ .IX Item "feature"
797
+ The new pragma \f(CW\*(C`feature\*(C'\fR is used to enable new features that might break
798
+ old code. See "The \f(CW\*(C`feature\*(C'\fR pragma" above.
799
+ .ie n .IP """mro""" 4
800
+ .el .IP "\f(CWmro\fR" 4
801
+ .IX Item "mro"
802
+ This new pragma enables to change the algorithm used to resolve inherited
803
+ methods. See "New Pragma, \f(CW\*(C`mro\*(C'\fR" above.
804
+ .ie n .IP "Scoping of the ""sort"" pragma" 4
805
+ .el .IP "Scoping of the \f(CWsort\fR pragma" 4
806
+ .IX Item "Scoping of the sort pragma"
807
+ The \f(CW\*(C`sort\*(C'\fR pragma is now lexically scoped. Its effect used to be global.
808
+ .ie n .IP "Scoping of ""bignum"", ""bigint"", ""bigrat""" 4
809
+ .el .IP "Scoping of \f(CWbignum\fR, \f(CWbigint\fR, \f(CWbigrat\fR" 4
810
+ .IX Item "Scoping of bignum, bigint, bigrat"
811
+ The three numeric pragmas \f(CW\*(C`bignum\*(C'\fR, \f(CW\*(C`bigint\*(C'\fR and \f(CW\*(C`bigrat\*(C'\fR are now
812
+ lexically scoped. (Tels)
813
+ .ie n .IP """base""" 4
814
+ .el .IP "\f(CWbase\fR" 4
815
+ .IX Item "base"
816
+ The \f(CW\*(C`base\*(C'\fR pragma now warns if a class tries to inherit from itself.
817
+ (Curtis \*(L"Ovid\*(R" Poe)
818
+ .ie n .IP """strict"" and ""warnings""" 4
819
+ .el .IP "\f(CWstrict\fR and \f(CWwarnings\fR" 4
820
+ .IX Item "strict and warnings"
821
+ \&\f(CW\*(C`strict\*(C'\fR and \f(CW\*(C`warnings\*(C'\fR will now complain loudly if they are loaded via
822
+ incorrect casing (as in \f(CW\*(C`use Strict;\*(C'\fR). (Johan Vromans)
823
+ .ie n .IP """version""" 4
824
+ .el .IP "\f(CWversion\fR" 4
825
+ .IX Item "version"
826
+ The \f(CW\*(C`version\*(C'\fR module provides support for version objects.
827
+ .ie n .IP """warnings""" 4
828
+ .el .IP "\f(CWwarnings\fR" 4
829
+ .IX Item "warnings"
830
+ The \f(CW\*(C`warnings\*(C'\fR pragma doesn't load \f(CW\*(C`Carp\*(C'\fR anymore. That means that code
831
+ that used \f(CW\*(C`Carp\*(C'\fR routines without having loaded it at compile time might
832
+ need to be adjusted; typically, the following (faulty) code won't work
833
+ anymore, and will require parentheses to be added after the function name:
834
+ .Sp
835
+ .Vb 3
836
+ \& use warnings;
837
+ \& require Carp;
838
+ \& Carp::confess \*(Aqargh\*(Aq;
839
+ .Ve
840
+ .ie n .IP """less""" 4
841
+ .el .IP "\f(CWless\fR" 4
842
+ .IX Item "less"
843
+ \&\f(CW\*(C`less\*(C'\fR now does something useful (or at least it tries to). In fact, it
844
+ has been turned into a lexical pragma. So, in your modules, you can now
845
+ test whether your users have requested to use less \s-1CPU,\s0 or less memory,
846
+ less magic, or maybe even less fat. See less for more. (Joshua ben
847
+ Jore)
848
+ .SS "New modules"
849
+ .IX Subsection "New modules"
850
+ .IP "\(bu" 4
851
+ \&\f(CW\*(C`encoding::warnings\*(C'\fR, by Audrey Tang, is a module to emit warnings
852
+ whenever an \s-1ASCII\s0 character string containing high-bit bytes is implicitly
853
+ converted into \s-1UTF\-8.\s0 It's a lexical pragma since Perl 5.9.4; on older
854
+ perls, its effect is global.
855
+ .IP "\(bu" 4
856
+ \&\f(CW\*(C`Module::CoreList\*(C'\fR, by Richard Clamp, is a small handy module that tells
857
+ you what versions of core modules ship with any versions of Perl 5. It
858
+ comes with a command-line frontend, \f(CW\*(C`corelist\*(C'\fR.
859
+ .IP "\(bu" 4
860
+ \&\f(CW\*(C`Math::BigInt::FastCalc\*(C'\fR is an XS-enabled, and thus faster, version of
861
+ \&\f(CW\*(C`Math::BigInt::Calc\*(C'\fR.
862
+ .IP "\(bu" 4
863
+ \&\f(CW\*(C`Compress::Zlib\*(C'\fR is an interface to the zlib compression library. It
864
+ comes with a bundled version of zlib, so having a working zlib is not a
865
+ prerequisite to install it. It's used by \f(CW\*(C`Archive::Tar\*(C'\fR (see below).
866
+ .IP "\(bu" 4
867
+ \&\f(CW\*(C`IO::Zlib\*(C'\fR is an \f(CW\*(C`IO::\*(C'\fR\-style interface to \f(CW\*(C`Compress::Zlib\*(C'\fR.
868
+ .IP "\(bu" 4
869
+ \&\f(CW\*(C`Archive::Tar\*(C'\fR is a module to manipulate \f(CW\*(C`tar\*(C'\fR archives.
870
+ .IP "\(bu" 4
871
+ \&\f(CW\*(C`Digest::SHA\*(C'\fR is a module used to calculate many types of \s-1SHA\s0 digests,
872
+ has been included for \s-1SHA\s0 support in the \s-1CPAN\s0 module.
873
+ .IP "\(bu" 4
874
+ \&\f(CW\*(C`ExtUtils::CBuilder\*(C'\fR and \f(CW\*(C`ExtUtils::ParseXS\*(C'\fR have been added.
875
+ .IP "\(bu" 4
876
+ \&\f(CW\*(C`Hash::Util::FieldHash\*(C'\fR, by Anno Siegel, has been added. This module
877
+ provides support for \fIfield hashes\fR: hashes that maintain an association
878
+ of a reference with a value, in a thread-safe garbage-collected way.
879
+ Such hashes are useful to implement inside-out objects.
880
+ .IP "\(bu" 4
881
+ \&\f(CW\*(C`Module::Build\*(C'\fR, by Ken Williams, has been added. It's an alternative to
882
+ \&\f(CW\*(C`ExtUtils::MakeMaker\*(C'\fR to build and install perl modules.
883
+ .IP "\(bu" 4
884
+ \&\f(CW\*(C`Module::Load\*(C'\fR, by Jos Boumans, has been added. It provides a single
885
+ interface to load Perl modules and \fI.pl\fR files.
886
+ .IP "\(bu" 4
887
+ \&\f(CW\*(C`Module::Loaded\*(C'\fR, by Jos Boumans, has been added. It's used to mark
888
+ modules as loaded or unloaded.
889
+ .IP "\(bu" 4
890
+ \&\f(CW\*(C`Package::Constants\*(C'\fR, by Jos Boumans, has been added. It's a simple
891
+ helper to list all constants declared in a given package.
892
+ .IP "\(bu" 4
893
+ \&\f(CW\*(C`Win32API::File\*(C'\fR, by Tye McQueen, has been added (for Windows builds).
894
+ This module provides low-level access to Win32 system \s-1API\s0 calls for
895
+ files/dirs.
896
+ .IP "\(bu" 4
897
+ \&\f(CW\*(C`Locale::Maketext::Simple\*(C'\fR, needed by \s-1CPANPLUS,\s0 is a simple wrapper around
898
+ \&\f(CW\*(C`Locale::Maketext::Lexicon\*(C'\fR. Note that \f(CW\*(C`Locale::Maketext::Lexicon\*(C'\fR isn't
899
+ included in the perl core; the behaviour of \f(CW\*(C`Locale::Maketext::Simple\*(C'\fR
900
+ gracefully degrades when the later isn't present.
901
+ .IP "\(bu" 4
902
+ \&\f(CW\*(C`Params::Check\*(C'\fR implements a generic input parsing/checking mechanism. It
903
+ is used by \s-1CPANPLUS.\s0
904
+ .IP "\(bu" 4
905
+ \&\f(CW\*(C`Term::UI\*(C'\fR simplifies the task to ask questions at a terminal prompt.
906
+ .IP "\(bu" 4
907
+ \&\f(CW\*(C`Object::Accessor\*(C'\fR provides an interface to create per-object accessors.
908
+ .IP "\(bu" 4
909
+ \&\f(CW\*(C`Module::Pluggable\*(C'\fR is a simple framework to create modules that accept
910
+ pluggable sub-modules.
911
+ .IP "\(bu" 4
912
+ \&\f(CW\*(C`Module::Load::Conditional\*(C'\fR provides simple ways to query and possibly
913
+ load installed modules.
914
+ .IP "\(bu" 4
915
+ \&\f(CW\*(C`Time::Piece\*(C'\fR provides an object oriented interface to time functions,
916
+ overriding the built-ins \fBlocaltime()\fR and \fBgmtime()\fR.
917
+ .IP "\(bu" 4
918
+ \&\f(CW\*(C`IPC::Cmd\*(C'\fR helps to find and run external commands, possibly
919
+ interactively.
920
+ .IP "\(bu" 4
921
+ \&\f(CW\*(C`File::Fetch\*(C'\fR provide a simple generic file fetching mechanism.
922
+ .IP "\(bu" 4
923
+ \&\f(CW\*(C`Log::Message\*(C'\fR and \f(CW\*(C`Log::Message::Simple\*(C'\fR are used by the log facility
924
+ of \f(CW\*(C`CPANPLUS\*(C'\fR.
925
+ .IP "\(bu" 4
926
+ \&\f(CW\*(C`Archive::Extract\*(C'\fR is a generic archive extraction mechanism
927
+ for \fI.tar\fR (plain, gzipped or bzipped) or \fI.zip\fR files.
928
+ .IP "\(bu" 4
929
+ \&\f(CW\*(C`CPANPLUS\*(C'\fR provides an \s-1API\s0 and a command-line tool to access the \s-1CPAN\s0
930
+ mirrors.
931
+ .IP "\(bu" 4
932
+ \&\f(CW\*(C`Pod::Escapes\*(C'\fR provides utilities that are useful in decoding Pod
933
+ E<...> sequences.
934
+ .IP "\(bu" 4
935
+ \&\f(CW\*(C`Pod::Simple\*(C'\fR is now the backend for several of the Pod-related modules
936
+ included with Perl.
937
+ .SS "Selected Changes to Core Modules"
938
+ .IX Subsection "Selected Changes to Core Modules"
939
+ .ie n .IP """Attribute::Handlers""" 4
940
+ .el .IP "\f(CWAttribute::Handlers\fR" 4
941
+ .IX Item "Attribute::Handlers"
942
+ \&\f(CW\*(C`Attribute::Handlers\*(C'\fR can now report the caller's file and line number.
943
+ (David Feldman)
944
+ .Sp
945
+ All interpreted attributes are now passed as array references. (Damian
946
+ Conway)
947
+ .ie n .IP """B::Lint""" 4
948
+ .el .IP "\f(CWB::Lint\fR" 4
949
+ .IX Item "B::Lint"
950
+ \&\f(CW\*(C`B::Lint\*(C'\fR is now based on \f(CW\*(C`Module::Pluggable\*(C'\fR, and so can be extended
951
+ with plugins. (Joshua ben Jore)
952
+ .ie n .IP """B""" 4
953
+ .el .IP "\f(CWB\fR" 4
954
+ .IX Item "B"
955
+ It's now possible to access the lexical pragma hints (\f(CW\*(C`%^H\*(C'\fR) by using the
956
+ method \fBB::COP::hints_hash()\fR. It returns a \f(CW\*(C`B::RHE\*(C'\fR object, which in turn
957
+ can be used to get a hash reference via the method \fBB::RHE::HASH()\fR. (Joshua
958
+ ben Jore)
959
+ .ie n .IP """Thread""" 4
960
+ .el .IP "\f(CWThread\fR" 4
961
+ .IX Item "Thread"
962
+ As the old 5005thread threading model has been removed, in favor of the
963
+ ithreads scheme, the \f(CW\*(C`Thread\*(C'\fR module is now a compatibility wrapper, to
964
+ be used in old code only. It has been removed from the default list of
965
+ dynamic extensions.
966
+ .SH "Utility Changes"
967
+ .IX Header "Utility Changes"
968
+ .IP "perl \-d" 4
969
+ .IX Item "perl -d"
970
+ The Perl debugger can now save all debugger commands for sourcing later;
971
+ notably, it can now emulate stepping backwards, by restarting and
972
+ rerunning all bar the last command from a saved command history.
973
+ .Sp
974
+ It can also display the parent inheritance tree of a given class, with the
975
+ \&\f(CW\*(C`i\*(C'\fR command.
976
+ .IP "ptar" 4
977
+ .IX Item "ptar"
978
+ \&\f(CW\*(C`ptar\*(C'\fR is a pure perl implementation of \f(CW\*(C`tar\*(C'\fR that comes with
979
+ \&\f(CW\*(C`Archive::Tar\*(C'\fR.
980
+ .IP "ptardiff" 4
981
+ .IX Item "ptardiff"
982
+ \&\f(CW\*(C`ptardiff\*(C'\fR is a small utility used to generate a diff between the contents
983
+ of a tar archive and a directory tree. Like \f(CW\*(C`ptar\*(C'\fR, it comes with
984
+ \&\f(CW\*(C`Archive::Tar\*(C'\fR.
985
+ .IP "shasum" 4
986
+ .IX Item "shasum"
987
+ \&\f(CW\*(C`shasum\*(C'\fR is a command-line utility, used to print or to check \s-1SHA\s0
988
+ digests. It comes with the new \f(CW\*(C`Digest::SHA\*(C'\fR module.
989
+ .IP "corelist" 4
990
+ .IX Item "corelist"
991
+ The \f(CW\*(C`corelist\*(C'\fR utility is now installed with perl (see \*(L"New modules\*(R"
992
+ above).
993
+ .IP "h2ph and h2xs" 4
994
+ .IX Item "h2ph and h2xs"
995
+ \&\f(CW\*(C`h2ph\*(C'\fR and \f(CW\*(C`h2xs\*(C'\fR have been made more robust with regard to
996
+ \&\*(L"modern\*(R" C code.
997
+ .Sp
998
+ \&\f(CW\*(C`h2xs\*(C'\fR implements a new option \f(CW\*(C`\-\-use\-xsloader\*(C'\fR to force use of
999
+ \&\f(CW\*(C`XSLoader\*(C'\fR even in backwards compatible modules.
1000
+ .Sp
1001
+ The handling of authors' names that had apostrophes has been fixed.
1002
+ .Sp
1003
+ Any enums with negative values are now skipped.
1004
+ .IP "perlivp" 4
1005
+ .IX Item "perlivp"
1006
+ \&\f(CW\*(C`perlivp\*(C'\fR no longer checks for \fI*.ph\fR files by default. Use the new \f(CW\*(C`\-a\*(C'\fR
1007
+ option to run \fIall\fR tests.
1008
+ .IP "find2perl" 4
1009
+ .IX Item "find2perl"
1010
+ \&\f(CW\*(C`find2perl\*(C'\fR now assumes \f(CW\*(C`\-print\*(C'\fR as a default action. Previously, it
1011
+ needed to be specified explicitly.
1012
+ .Sp
1013
+ Several bugs have been fixed in \f(CW\*(C`find2perl\*(C'\fR, regarding \f(CW\*(C`\-exec\*(C'\fR and
1014
+ \&\f(CW\*(C`\-eval\*(C'\fR. Also the options \f(CW\*(C`\-path\*(C'\fR, \f(CW\*(C`\-ipath\*(C'\fR and \f(CW\*(C`\-iname\*(C'\fR have been
1015
+ added.
1016
+ .IP "config_data" 4
1017
+ .IX Item "config_data"
1018
+ \&\f(CW\*(C`config_data\*(C'\fR is a new utility that comes with \f(CW\*(C`Module::Build\*(C'\fR. It
1019
+ provides a command-line interface to the configuration of Perl modules
1020
+ that use Module::Build's framework of configurability (that is,
1021
+ \&\f(CW*::ConfigData\fR modules that contain local configuration information for
1022
+ their parent modules.)
1023
+ .IP "cpanp" 4
1024
+ .IX Item "cpanp"
1025
+ \&\f(CW\*(C`cpanp\*(C'\fR, the \s-1CPANPLUS\s0 shell, has been added. (\f(CW\*(C`cpanp\-run\-perl\*(C'\fR, a
1026
+ helper for \s-1CPANPLUS\s0 operation, has been added too, but isn't intended for
1027
+ direct use).
1028
+ .IP "cpan2dist" 4
1029
+ .IX Item "cpan2dist"
1030
+ \&\f(CW\*(C`cpan2dist\*(C'\fR is a new utility that comes with \s-1CPANPLUS.\s0 It's a tool to
1031
+ create distributions (or packages) from \s-1CPAN\s0 modules.
1032
+ .IP "pod2html" 4
1033
+ .IX Item "pod2html"
1034
+ The output of \f(CW\*(C`pod2html\*(C'\fR has been enhanced to be more customizable via
1035
+ \&\s-1CSS.\s0 Some formatting problems were also corrected. (Jari Aalto)
1036
+ .SH "New Documentation"
1037
+ .IX Header "New Documentation"
1038
+ The perlpragma manpage documents how to write one's own lexical
1039
+ pragmas in pure Perl (something that is possible starting with 5.9.4).
1040
+ .PP
1041
+ The new perlglossary manpage is a glossary of terms used in the Perl
1042
+ documentation, technical and otherwise, kindly provided by O'Reilly Media,
1043
+ Inc.
1044
+ .PP
1045
+ The perlreguts manpage, courtesy of Yves Orton, describes internals of the
1046
+ Perl regular expression engine.
1047
+ .PP
1048
+ The perlreapi manpage describes the interface to the perl interpreter
1049
+ used to write pluggable regular expression engines (by \*(Aevar Arnfjo\*:r\*(d-
1050
+ Bjarmason).
1051
+ .PP
1052
+ The perlunitut manpage is a tutorial for programming with Unicode and
1053
+ string encodings in Perl, courtesy of Juerd Waalboer.
1054
+ .PP
1055
+ A new manual page, perlunifaq (the Perl Unicode \s-1FAQ\s0), has been added
1056
+ (Juerd Waalboer).
1057
+ .PP
1058
+ The perlcommunity manpage gives a description of the Perl community
1059
+ on the Internet and in real life. (Edgar \*(L"Trizor\*(R" Bering)
1060
+ .PP
1061
+ The \s-1CORE\s0 manual page documents the \f(CW\*(C`CORE::\*(C'\fR namespace. (Tels)
1062
+ .PP
1063
+ The long-existing feature of \f(CW\*(C`/(?{...})/\*(C'\fR regexps setting \f(CW$_\fR and \fBpos()\fR
1064
+ is now documented.
1065
+ .SH "Performance Enhancements"
1066
+ .IX Header "Performance Enhancements"
1067
+ .SS "In-place sorting"
1068
+ .IX Subsection "In-place sorting"
1069
+ Sorting arrays in place (\f(CW\*(C`@a = sort @a\*(C'\fR) is now optimized to avoid
1070
+ making a temporary copy of the array.
1071
+ .PP
1072
+ Likewise, \f(CW\*(C`reverse sort ...\*(C'\fR is now optimized to sort in reverse,
1073
+ avoiding the generation of a temporary intermediate list.
1074
+ .SS "Lexical array access"
1075
+ .IX Subsection "Lexical array access"
1076
+ Access to elements of lexical arrays via a numeric constant between 0 and
1077
+ 255 is now faster. (This used to be only the case for global arrays.)
1078
+ .SS "XS-assisted \s-1SWASHGET\s0"
1079
+ .IX Subsection "XS-assisted SWASHGET"
1080
+ Some pure-perl code that perl was using to retrieve Unicode properties and
1081
+ transliteration mappings has been reimplemented in \s-1XS.\s0
1082
+ .SS "Constant subroutines"
1083
+ .IX Subsection "Constant subroutines"
1084
+ The interpreter internals now support a far more memory efficient form of
1085
+ inlineable constants. Storing a reference to a constant value in a symbol
1086
+ table is equivalent to a full typeglob referencing a constant subroutine,
1087
+ but using about 400 bytes less memory. This proxy constant subroutine is
1088
+ automatically upgraded to a real typeglob with subroutine if necessary.
1089
+ The approach taken is analogous to the existing space optimisation for
1090
+ subroutine stub declarations, which are stored as plain scalars in place
1091
+ of the full typeglob.
1092
+ .PP
1093
+ Several of the core modules have been converted to use this feature for
1094
+ their system dependent constants \- as a result \f(CW\*(C`use POSIX;\*(C'\fR now takes about
1095
+ 200K less memory.
1096
+ .ie n .SS """PERL_DONT_CREATE_GVSV"""
1097
+ .el .SS "\f(CWPERL_DONT_CREATE_GVSV\fP"
1098
+ .IX Subsection "PERL_DONT_CREATE_GVSV"
1099
+ The new compilation flag \f(CW\*(C`PERL_DONT_CREATE_GVSV\*(C'\fR, introduced as an option
1100
+ in perl 5.8.8, is turned on by default in perl 5.9.3. It prevents perl
1101
+ from creating an empty scalar with every new typeglob. See perl589delta
1102
+ for details.
1103
+ .SS "Weak references are cheaper"
1104
+ .IX Subsection "Weak references are cheaper"
1105
+ Weak reference creation is now \fIO(1)\fR rather than \fIO(n)\fR, courtesy of
1106
+ Nicholas Clark. Weak reference deletion remains \fIO(n)\fR, but if deletion only
1107
+ happens at program exit, it may be skipped completely.
1108
+ .SS "\fBsort()\fP enhancements"
1109
+ .IX Subsection "sort() enhancements"
1110
+ Salvador Fandin\*~o provided improvements to reduce the memory usage of \f(CW\*(C`sort\*(C'\fR
1111
+ and to speed up some cases.
1112
+ .SS "Memory optimisations"
1113
+ .IX Subsection "Memory optimisations"
1114
+ Several internal data structures (typeglobs, GVs, CVs, formats) have been
1115
+ restructured to use less memory. (Nicholas Clark)
1116
+ .SS "\s-1UTF\-8\s0 cache optimisation"
1117
+ .IX Subsection "UTF-8 cache optimisation"
1118
+ The \s-1UTF\-8\s0 caching code is now more efficient, and used more often.
1119
+ (Nicholas Clark)
1120
+ .SS "Sloppy stat on Windows"
1121
+ .IX Subsection "Sloppy stat on Windows"
1122
+ On Windows, perl's \fBstat()\fR function normally opens the file to determine
1123
+ the link count and update attributes that may have been changed through
1124
+ hard links. Setting ${^WIN32_SLOPPY_STAT} to a true value speeds up
1125
+ \&\fBstat()\fR by not performing this operation. (Jan Dubois)
1126
+ .SS "Regular expressions optimisations"
1127
+ .IX Subsection "Regular expressions optimisations"
1128
+ .IP "Engine de-recursivised" 4
1129
+ .IX Item "Engine de-recursivised"
1130
+ The regular expression engine is no longer recursive, meaning that
1131
+ patterns that used to overflow the stack will either die with useful
1132
+ explanations, or run to completion, which, since they were able to blow
1133
+ the stack before, will likely take a very long time to happen. If you were
1134
+ experiencing the occasional stack overflow (or segfault) and upgrade to
1135
+ discover that now perl apparently hangs instead, look for a degenerate
1136
+ regex. (Dave Mitchell)
1137
+ .IP "Single char char-classes treated as literals" 4
1138
+ .IX Item "Single char char-classes treated as literals"
1139
+ Classes of a single character are now treated the same as if the character
1140
+ had been used as a literal, meaning that code that uses char-classes as an
1141
+ escaping mechanism will see a speedup. (Yves Orton)
1142
+ .IP "Trie optimisation of literal string alternations" 4
1143
+ .IX Item "Trie optimisation of literal string alternations"
1144
+ Alternations, where possible, are optimised into more efficient matching
1145
+ structures. String literal alternations are merged into a trie and are
1146
+ matched simultaneously. This means that instead of O(N) time for matching
1147
+ N alternations at a given point, the new code performs in O(1) time.
1148
+ A new special variable, ${^RE_TRIE_MAXBUF}, has been added to fine-tune
1149
+ this optimization. (Yves Orton)
1150
+ .Sp
1151
+ \&\fBNote:\fR Much code exists that works around perl's historic poor
1152
+ performance on alternations. Often the tricks used to do so will disable
1153
+ the new optimisations. Hopefully the utility modules used for this purpose
1154
+ will be educated about these new optimisations.
1155
+ .IP "Aho-Corasick start-point optimisation" 4
1156
+ .IX Item "Aho-Corasick start-point optimisation"
1157
+ When a pattern starts with a trie-able alternation and there aren't
1158
+ better optimisations available, the regex engine will use Aho-Corasick
1159
+ matching to find the start point. (Yves Orton)
1160
+ .SH "Installation and Configuration Improvements"
1161
+ .IX Header "Installation and Configuration Improvements"
1162
+ .SS "Configuration improvements"
1163
+ .IX Subsection "Configuration improvements"
1164
+ .ie n .IP """\-Dusesitecustomize""" 4
1165
+ .el .IP "\f(CW\-Dusesitecustomize\fR" 4
1166
+ .IX Item "-Dusesitecustomize"
1167
+ Run-time customization of \f(CW@INC\fR can be enabled by passing the
1168
+ \&\f(CW\*(C`\-Dusesitecustomize\*(C'\fR flag to Configure. When enabled, this will make perl
1169
+ run \fI\f(CI$sitelibexp\fI/sitecustomize.pl\fR before anything else. This script can
1170
+ then be set up to add additional entries to \f(CW@INC\fR.
1171
+ .IP "Relocatable installations" 4
1172
+ .IX Item "Relocatable installations"
1173
+ There is now Configure support for creating a relocatable perl tree. If
1174
+ you Configure with \f(CW\*(C`\-Duserelocatableinc\*(C'\fR, then the paths in \f(CW@INC\fR (and
1175
+ everything else in \f(CW%Config\fR) can be optionally located via the path of the
1176
+ perl executable.
1177
+ .Sp
1178
+ That means that, if the string \f(CW".../"\fR is found at the start of any
1179
+ path, it's substituted with the directory of $^X. So, the relocation can
1180
+ be configured on a per-directory basis, although the default with
1181
+ \&\f(CW\*(C`\-Duserelocatableinc\*(C'\fR is that everything is relocated. The initial
1182
+ install is done to the original configured prefix.
1183
+ .IP "\fBstrlcat()\fR and \fBstrlcpy()\fR" 4
1184
+ .IX Item "strlcat() and strlcpy()"
1185
+ The configuration process now detects whether \fBstrlcat()\fR and \fBstrlcpy()\fR are
1186
+ available. When they are not available, perl's own version is used (from
1187
+ Russ Allbery's public domain implementation). Various places in the perl
1188
+ interpreter now use them. (Steve Peters)
1189
+ .ie n .IP """d_pseudofork"" and ""d_printf_format_null""" 4
1190
+ .el .IP "\f(CWd_pseudofork\fR and \f(CWd_printf_format_null\fR" 4
1191
+ .IX Item "d_pseudofork and d_printf_format_null"
1192
+ A new configuration variable, available as \f(CW$Config{d_pseudofork}\fR in
1193
+ the Config module, has been added, to distinguish real \fBfork()\fR support
1194
+ from fake pseudofork used on Windows platforms.
1195
+ .Sp
1196
+ A new configuration variable, \f(CW\*(C`d_printf_format_null\*(C'\fR, has been added,
1197
+ to see if printf-like formats are allowed to be \s-1NULL.\s0
1198
+ .IP "Configure help" 4
1199
+ .IX Item "Configure help"
1200
+ \&\f(CW\*(C`Configure \-h\*(C'\fR has been extended with the most commonly used options.
1201
+ .SS "Compilation improvements"
1202
+ .IX Subsection "Compilation improvements"
1203
+ .IP "Parallel build" 4
1204
+ .IX Item "Parallel build"
1205
+ Parallel makes should work properly now, although there may still be problems
1206
+ if \f(CW\*(C`make test\*(C'\fR is instructed to run in parallel.
1207
+ .IP "Borland's compilers support" 4
1208
+ .IX Item "Borland's compilers support"
1209
+ Building with Borland's compilers on Win32 should work more smoothly. In
1210
+ particular Steve Hay has worked to side step many warnings emitted by their
1211
+ compilers and at least one C compiler internal error.
1212
+ .IP "Static build on Windows" 4
1213
+ .IX Item "Static build on Windows"
1214
+ Perl extensions on Windows now can be statically built into the Perl \s-1DLL.\s0
1215
+ .Sp
1216
+ Also, it's now possible to build a \f(CW\*(C`perl\-static.exe\*(C'\fR that doesn't depend
1217
+ on the Perl \s-1DLL\s0 on Win32. See the Win32 makefiles for details.
1218
+ (Vadim Konovalov)
1219
+ .IP "ppport.h files" 4
1220
+ .IX Item "ppport.h files"
1221
+ All \fIppport.h\fR files in the \s-1XS\s0 modules bundled with perl are now
1222
+ autogenerated at build time. (Marcus Holland-Moritz)
1223
+ .IP "\*(C+ compatibility" 4
1224
+ .IX Item " compatibility"
1225
+ Efforts have been made to make perl and the core \s-1XS\s0 modules compilable
1226
+ with various \*(C+ compilers (although the situation is not perfect with
1227
+ some of the compilers on some of the platforms tested.)
1228
+ .IP "Support for Microsoft 64\-bit compiler" 4
1229
+ .IX Item "Support for Microsoft 64-bit compiler"
1230
+ Support for building perl with Microsoft's 64\-bit compiler has been
1231
+ improved. (ActiveState)
1232
+ .IP "Visual \*(C+" 4
1233
+ .IX Item "Visual "
1234
+ Perl can now be compiled with Microsoft Visual \*(C+ 2005 (and 2008 Beta 2).
1235
+ .IP "Win32 builds" 4
1236
+ .IX Item "Win32 builds"
1237
+ All win32 builds (MS-Win, WinCE) have been merged and cleaned up.
1238
+ .SS "Installation improvements"
1239
+ .IX Subsection "Installation improvements"
1240
+ .IP "Module auxiliary files" 4
1241
+ .IX Item "Module auxiliary files"
1242
+ \&\s-1README\s0 files and changelogs for \s-1CPAN\s0 modules bundled with perl are no
1243
+ longer installed.
1244
+ .SS "New Or Improved Platforms"
1245
+ .IX Subsection "New Or Improved Platforms"
1246
+ Perl has been reported to work on Symbian \s-1OS.\s0 See perlsymbian for more
1247
+ information.
1248
+ .PP
1249
+ Many improvements have been made towards making Perl work correctly on
1250
+ z/OS.
1251
+ .PP
1252
+ Perl has been reported to work on DragonFlyBSD and MidnightBSD.
1253
+ .PP
1254
+ Perl has also been reported to work on NexentaOS
1255
+ ( http://www.gnusolaris.org/ ).
1256
+ .PP
1257
+ The \s-1VMS\s0 port has been improved. See perlvms.
1258
+ .PP
1259
+ Support for Cray \s-1XT4\s0 Catamount/Qk has been added. See
1260
+ \&\fIhints/catamount.sh\fR in the source code distribution for more
1261
+ information.
1262
+ .PP
1263
+ Vendor patches have been merged for RedHat and Gentoo.
1264
+ .PP
1265
+ \&\fBDynaLoader::dl_unload_file()\fR now works on Windows.
1266
+ .SH "Selected Bug Fixes"
1267
+ .IX Header "Selected Bug Fixes"
1268
+ .IP "strictures in regexp-eval blocks" 4
1269
+ .IX Item "strictures in regexp-eval blocks"
1270
+ \&\f(CW\*(C`strict\*(C'\fR wasn't in effect in regexp-eval blocks (\f(CW\*(C`/(?{...})/\*(C'\fR).
1271
+ .IP "Calling \fBCORE::require()\fR" 4
1272
+ .IX Item "Calling CORE::require()"
1273
+ \&\fBCORE::require()\fR and \fBCORE::do()\fR were always parsed as \fBrequire()\fR and \fBdo()\fR
1274
+ when they were overridden. This is now fixed.
1275
+ .IP "Subscripts of slices" 4
1276
+ .IX Item "Subscripts of slices"
1277
+ You can now use a non-arrowed form for chained subscripts after a list
1278
+ slice, like in:
1279
+ .Sp
1280
+ .Vb 1
1281
+ \& ({foo => "bar"})[0]{foo}
1282
+ .Ve
1283
+ .Sp
1284
+ This used to be a syntax error; a \f(CW\*(C`\->\*(C'\fR was required.
1285
+ .ie n .IP """no warnings \*(Aqcategory\*(Aq"" works correctly with \-w" 4
1286
+ .el .IP "\f(CWno warnings \*(Aqcategory\*(Aq\fR works correctly with \-w" 4
1287
+ .IX Item "no warnings category works correctly with -w"
1288
+ Previously when running with warnings enabled globally via \f(CW\*(C`\-w\*(C'\fR, selective
1289
+ disabling of specific warning categories would actually turn off all warnings.
1290
+ This is now fixed; now \f(CW\*(C`no warnings \*(Aqio\*(Aq;\*(C'\fR will only turn off warnings in the
1291
+ \&\f(CW\*(C`io\*(C'\fR class. Previously it would erroneously turn off all warnings.
1292
+ .IP "threads improvements" 4
1293
+ .IX Item "threads improvements"
1294
+ Several memory leaks in ithreads were closed. Also, ithreads were made
1295
+ less memory-intensive.
1296
+ .Sp
1297
+ \&\f(CW\*(C`threads\*(C'\fR is now a dual-life module, also available on \s-1CPAN.\s0 It has been
1298
+ expanded in many ways. A \fBkill()\fR method is available for thread signalling.
1299
+ One can get thread status, or the list of running or joinable threads.
1300
+ .Sp
1301
+ A new \f(CW\*(C`threads\->exit()\*(C'\fR method is used to exit from the application
1302
+ (this is the default for the main thread) or from the current thread only
1303
+ (this is the default for all other threads). On the other hand, the \fBexit()\fR
1304
+ built-in now always causes the whole application to terminate. (Jerry
1305
+ D. Hedden)
1306
+ .IP "\fBchr()\fR and negative values" 4
1307
+ .IX Item "chr() and negative values"
1308
+ \&\fBchr()\fR on a negative value now gives \f(CW\*(C`\ex{FFFD}\*(C'\fR, the Unicode replacement
1309
+ character, unless when the \f(CW\*(C`bytes\*(C'\fR pragma is in effect, where the low
1310
+ eight bits of the value are used.
1311
+ .IP "\s-1PERL5SHELL\s0 and tainting" 4
1312
+ .IX Item "PERL5SHELL and tainting"
1313
+ On Windows, the \s-1PERL5SHELL\s0 environment variable is now checked for
1314
+ taintedness. (Rafael Garcia-Suarez)
1315
+ .IP "Using *FILE{\s-1IO\s0}" 4
1316
+ .IX Item "Using *FILE{IO}"
1317
+ \&\f(CW\*(C`stat()\*(C'\fR and \f(CW\*(C`\-X\*(C'\fR filetests now treat *FILE{\s-1IO\s0} filehandles like *FILE
1318
+ filehandles. (Steve Peters)
1319
+ .IP "Overloading and reblessing" 4
1320
+ .IX Item "Overloading and reblessing"
1321
+ Overloading now works when references are reblessed into another class.
1322
+ Internally, this has been implemented by moving the flag for \*(L"overloading\*(R"
1323
+ from the reference to the referent, which logically is where it should
1324
+ always have been. (Nicholas Clark)
1325
+ .IP "Overloading and \s-1UTF\-8\s0" 4
1326
+ .IX Item "Overloading and UTF-8"
1327
+ A few bugs related to \s-1UTF\-8\s0 handling with objects that have
1328
+ stringification overloaded have been fixed. (Nicholas Clark)
1329
+ .IP "eval memory leaks fixed" 4
1330
+ .IX Item "eval memory leaks fixed"
1331
+ Traditionally, \f(CW\*(C`eval \*(Aqsyntax error\*(Aq\*(C'\fR has leaked badly. Many (but not all)
1332
+ of these leaks have now been eliminated or reduced. (Dave Mitchell)
1333
+ .IP "Random device on Windows" 4
1334
+ .IX Item "Random device on Windows"
1335
+ In previous versions, perl would read the file \fI/dev/urandom\fR if it
1336
+ existed when seeding its random number generator. That file is unlikely
1337
+ to exist on Windows, and if it did would probably not contain appropriate
1338
+ data, so perl no longer tries to read it on Windows. (Alex Davies)
1339
+ .IP "\s-1PERLIO_DEBUG\s0" 4
1340
+ .IX Item "PERLIO_DEBUG"
1341
+ The \f(CW\*(C`PERLIO_DEBUG\*(C'\fR environment variable no longer has any effect for
1342
+ setuid scripts and for scripts run with \fB\-T\fR.
1343
+ .Sp
1344
+ Moreover, with a thread-enabled perl, using \f(CW\*(C`PERLIO_DEBUG\*(C'\fR could lead to
1345
+ an internal buffer overflow. This has been fixed.
1346
+ .IP "PerlIO::scalar and read-only scalars" 4
1347
+ .IX Item "PerlIO::scalar and read-only scalars"
1348
+ PerlIO::scalar will now prevent writing to read-only scalars. Moreover,
1349
+ \&\fBseek()\fR is now supported with PerlIO::scalar\-based filehandles, the
1350
+ underlying string being zero-filled as needed. (Rafael, Jarkko Hietaniemi)
1351
+ .IP "\fBstudy()\fR and \s-1UTF\-8\s0" 4
1352
+ .IX Item "study() and UTF-8"
1353
+ \&\fBstudy()\fR never worked for \s-1UTF\-8\s0 strings, but could lead to false results.
1354
+ It's now a no-op on \s-1UTF\-8\s0 data. (Yves Orton)
1355
+ .IP "Critical signals" 4
1356
+ .IX Item "Critical signals"
1357
+ The signals \s-1SIGILL, SIGBUS\s0 and \s-1SIGSEGV\s0 are now always delivered in an
1358
+ \&\*(L"unsafe\*(R" manner (contrary to other signals, that are deferred until the
1359
+ perl interpreter reaches a reasonably stable state; see
1360
+ \&\*(L"Deferred Signals (Safe Signals)\*(R" in perlipc). (Rafael)
1361
+ .ie n .IP "@INC\-hook fix" 4
1362
+ .el .IP "\f(CW@INC\fR\-hook fix" 4
1363
+ .IX Item "@INC-hook fix"
1364
+ When a module or a file is loaded through an \f(CW@INC\fR\-hook, and when this hook
1365
+ has set a filename entry in \f(CW%INC\fR, _\|_FILE_\|_ is now set for this module
1366
+ accordingly to the contents of that \f(CW%INC\fR entry. (Rafael)
1367
+ .ie n .IP """\-t"" switch fix" 4
1368
+ .el .IP "\f(CW\-t\fR switch fix" 4
1369
+ .IX Item "-t switch fix"
1370
+ The \f(CW\*(C`\-w\*(C'\fR and \f(CW\*(C`\-t\*(C'\fR switches can now be used together without messing
1371
+ up which categories of warnings are activated. (Rafael)
1372
+ .IP "Duping \s-1UTF\-8\s0 filehandles" 4
1373
+ .IX Item "Duping UTF-8 filehandles"
1374
+ Duping a filehandle which has the \f(CW\*(C`:utf8\*(C'\fR PerlIO layer set will now
1375
+ properly carry that layer on the duped filehandle. (Rafael)
1376
+ .IP "Localisation of hash elements" 4
1377
+ .IX Item "Localisation of hash elements"
1378
+ Localizing a hash element whose key was given as a variable didn't work
1379
+ correctly if the variable was changed while the \fBlocal()\fR was in effect (as
1380
+ in \f(CW\*(C`local $h{$x}; ++$x\*(C'\fR). (Bo Lindbergh)
1381
+ .SH "New or Changed Diagnostics"
1382
+ .IX Header "New or Changed Diagnostics"
1383
+ .IP "Use of uninitialized value" 4
1384
+ .IX Item "Use of uninitialized value"
1385
+ Perl will now try to tell you the name of the variable (if any) that was
1386
+ undefined.
1387
+ .IP "Deprecated use of \fBmy()\fR in false conditional" 4
1388
+ .IX Item "Deprecated use of my() in false conditional"
1389
+ A new deprecation warning, \fIDeprecated use of \f(BImy()\fI in false conditional\fR,
1390
+ has been added, to warn against the use of the dubious and deprecated
1391
+ construct
1392
+ .Sp
1393
+ .Vb 1
1394
+ \& my $x if 0;
1395
+ .Ve
1396
+ .Sp
1397
+ See perldiag. Use \f(CW\*(C`state\*(C'\fR variables instead.
1398
+ .IP "!=~ should be !~" 4
1399
+ .IX Item "!=~ should be !~"
1400
+ A new warning, \f(CW\*(C`!=~ should be !~\*(C'\fR, is emitted to prevent this misspelling
1401
+ of the non-matching operator.
1402
+ .IP "Newline in left-justified string" 4
1403
+ .IX Item "Newline in left-justified string"
1404
+ The warning \fINewline in left-justified string\fR has been removed.
1405
+ .ie n .IP "Too late for ""\-T"" option" 4
1406
+ .el .IP "Too late for ``\-T'' option" 4
1407
+ .IX Item "Too late for -T option"
1408
+ The error \fIToo late for \*(L"\-T\*(R" option\fR has been reformulated to be more
1409
+ descriptive.
1410
+ .ie n .IP """%s"" variable %s masks earlier declaration" 4
1411
+ .el .IP "``%s'' variable \f(CW%s\fR masks earlier declaration" 4
1412
+ .IX Item "%s variable %s masks earlier declaration"
1413
+ This warning is now emitted in more consistent cases; in short, when one
1414
+ of the declarations involved is a \f(CW\*(C`my\*(C'\fR variable:
1415
+ .Sp
1416
+ .Vb 3
1417
+ \& my $x; my $x; # warns
1418
+ \& my $x; our $x; # warns
1419
+ \& our $x; my $x; # warns
1420
+ .Ve
1421
+ .Sp
1422
+ On the other hand, the following:
1423
+ .Sp
1424
+ .Vb 1
1425
+ \& our $x; our $x;
1426
+ .Ve
1427
+ .Sp
1428
+ now gives a \f(CW\*(C`"our" variable %s redeclared\*(C'\fR warning.
1429
+ .IP "\fBreaddir()\fR/\fBclosedir()\fR/etc. attempted on invalid dirhandle" 4
1430
+ .IX Item "readdir()/closedir()/etc. attempted on invalid dirhandle"
1431
+ These new warnings are now emitted when a dirhandle is used but is
1432
+ either closed or not really a dirhandle.
1433
+ .ie n .IP "Opening dirhandle/filehandle %s also as a file/directory" 4
1434
+ .el .IP "Opening dirhandle/filehandle \f(CW%s\fR also as a file/directory" 4
1435
+ .IX Item "Opening dirhandle/filehandle %s also as a file/directory"
1436
+ Two deprecation warnings have been added: (Rafael)
1437
+ .Sp
1438
+ .Vb 2
1439
+ \& Opening dirhandle %s also as a file
1440
+ \& Opening filehandle %s also as a directory
1441
+ .Ve
1442
+ .IP "Use of \-P is deprecated" 4
1443
+ .IX Item "Use of -P is deprecated"
1444
+ Perl's command-line switch \f(CW\*(C`\-P\*(C'\fR is now deprecated.
1445
+ .IP "v\-string in use/require is non-portable" 4
1446
+ .IX Item "v-string in use/require is non-portable"
1447
+ Perl will warn you against potential backwards compatibility problems with
1448
+ the \f(CW\*(C`use VERSION\*(C'\fR syntax.
1449
+ .IP "perl \-V" 4
1450
+ .IX Item "perl -V"
1451
+ \&\f(CW\*(C`perl \-V\*(C'\fR has several improvements, making it more useable from shell
1452
+ scripts to get the value of configuration variables. See perlrun for
1453
+ details.
1454
+ .SH "Changed Internals"
1455
+ .IX Header "Changed Internals"
1456
+ In general, the source code of perl has been refactored, tidied up,
1457
+ and optimized in many places. Also, memory management and allocation
1458
+ has been improved in several points.
1459
+ .PP
1460
+ When compiling the perl core with gcc, as many gcc warning flags are
1461
+ turned on as is possible on the platform. (This quest for cleanliness
1462
+ doesn't extend to \s-1XS\s0 code because we cannot guarantee the tidiness of
1463
+ code we didn't write.) Similar strictness flags have been added or
1464
+ tightened for various other C compilers.
1465
+ .SS "Reordering of SVt_* constants"
1466
+ .IX Subsection "Reordering of SVt_* constants"
1467
+ The relative ordering of constants that define the various types of \f(CW\*(C`SV\*(C'\fR
1468
+ have changed; in particular, \f(CW\*(C`SVt_PVGV\*(C'\fR has been moved before \f(CW\*(C`SVt_PVLV\*(C'\fR,
1469
+ \&\f(CW\*(C`SVt_PVAV\*(C'\fR, \f(CW\*(C`SVt_PVHV\*(C'\fR and \f(CW\*(C`SVt_PVCV\*(C'\fR. This is unlikely to make any
1470
+ difference unless you have code that explicitly makes assumptions about that
1471
+ ordering. (The inheritance hierarchy of \f(CW\*(C`B::*\*(C'\fR objects has been changed
1472
+ to reflect this.)
1473
+ .SS "Elimination of SVt_PVBM"
1474
+ .IX Subsection "Elimination of SVt_PVBM"
1475
+ Related to this, the internal type \f(CW\*(C`SVt_PVBM\*(C'\fR has been removed. This
1476
+ dedicated type of \f(CW\*(C`SV\*(C'\fR was used by the \f(CW\*(C`index\*(C'\fR operator and parts of the
1477
+ regexp engine to facilitate fast Boyer-Moore matches. Its use internally has
1478
+ been replaced by \f(CW\*(C`SV\*(C'\fRs of type \f(CW\*(C`SVt_PVGV\*(C'\fR.
1479
+ .SS "New type SVt_BIND"
1480
+ .IX Subsection "New type SVt_BIND"
1481
+ A new type \f(CW\*(C`SVt_BIND\*(C'\fR has been added, in readiness for the project to
1482
+ implement Perl 6 on 5. There deliberately is no implementation yet, and
1483
+ they cannot yet be created or destroyed.
1484
+ .SS "Removal of \s-1CPP\s0 symbols"
1485
+ .IX Subsection "Removal of CPP symbols"
1486
+ The C preprocessor symbols \f(CW\*(C`PERL_PM_APIVERSION\*(C'\fR and
1487
+ \&\f(CW\*(C`PERL_XS_APIVERSION\*(C'\fR, which were supposed to give the version number of
1488
+ the oldest perl binary-compatible (resp. source-compatible) with the
1489
+ present one, were not used, and sometimes had misleading values. They have
1490
+ been removed.
1491
+ .SS "Less space is used by ops"
1492
+ .IX Subsection "Less space is used by ops"
1493
+ The \f(CW\*(C`BASEOP\*(C'\fR structure now uses less space. The \f(CW\*(C`op_seq\*(C'\fR field has been
1494
+ removed and replaced by a single bit bit-field \f(CW\*(C`op_opt\*(C'\fR. \f(CW\*(C`op_type\*(C'\fR is now 9
1495
+ bits long. (Consequently, the \f(CW\*(C`B::OP\*(C'\fR class doesn't provide an \f(CW\*(C`seq\*(C'\fR
1496
+ method anymore.)
1497
+ .SS "New parser"
1498
+ .IX Subsection "New parser"
1499
+ perl's parser is now generated by bison (it used to be generated by
1500
+ byacc.) As a result, it seems to be a bit more robust.
1501
+ .PP
1502
+ Also, Dave Mitchell improved the lexer debugging output under \f(CW\*(C`\-DT\*(C'\fR.
1503
+ .ie n .SS "Use of ""const"""
1504
+ .el .SS "Use of \f(CWconst\fP"
1505
+ .IX Subsection "Use of const"
1506
+ Andy Lester supplied many improvements to determine which function
1507
+ parameters and local variables could actually be declared \f(CW\*(C`const\*(C'\fR to the C
1508
+ compiler. Steve Peters provided new \f(CW*_set\fR macros and reworked the core to
1509
+ use these rather than assigning to macros in \s-1LVALUE\s0 context.
1510
+ .SS "Mathoms"
1511
+ .IX Subsection "Mathoms"
1512
+ A new file, \fImathoms.c\fR, has been added. It contains functions that are
1513
+ no longer used in the perl core, but that remain available for binary or
1514
+ source compatibility reasons. However, those functions will not be
1515
+ compiled in if you add \f(CW\*(C`\-DNO_MATHOMS\*(C'\fR in the compiler flags.
1516
+ .ie n .SS """AvFLAGS"" has been removed"
1517
+ .el .SS "\f(CWAvFLAGS\fP has been removed"
1518
+ .IX Subsection "AvFLAGS has been removed"
1519
+ The \f(CW\*(C`AvFLAGS\*(C'\fR macro has been removed.
1520
+ .ie n .SS """av_*"" changes"
1521
+ .el .SS "\f(CWav_*\fP changes"
1522
+ .IX Subsection "av_* changes"
1523
+ The \f(CW\*(C`av_*()\*(C'\fR functions, used to manipulate arrays, no longer accept null
1524
+ \&\f(CW\*(C`AV*\*(C'\fR parameters.
1525
+ .SS "$^H and %^H"
1526
+ .IX Subsection "$^H and %^H"
1527
+ The implementation of the special variables $^H and %^H has changed, to
1528
+ allow implementing lexical pragmas in pure Perl.
1529
+ .SS "B:: modules inheritance changed"
1530
+ .IX Subsection "B:: modules inheritance changed"
1531
+ The inheritance hierarchy of \f(CW\*(C`B::\*(C'\fR modules has changed; \f(CW\*(C`B::NV\*(C'\fR now
1532
+ inherits from \f(CW\*(C`B::SV\*(C'\fR (it used to inherit from \f(CW\*(C`B::IV\*(C'\fR).
1533
+ .SS "Anonymous hash and array constructors"
1534
+ .IX Subsection "Anonymous hash and array constructors"
1535
+ The anonymous hash and array constructors now take 1 op in the optree
1536
+ instead of 3, now that pp_anonhash and pp_anonlist return a reference to
1537
+ a hash/array when the op is flagged with OPf_SPECIAL. (Nicholas Clark)
1538
+ .SH "Known Problems"
1539
+ .IX Header "Known Problems"
1540
+ There's still a remaining problem in the implementation of the lexical
1541
+ \&\f(CW$_\fR: it doesn't work inside \f(CW\*(C`/(?{...})/\*(C'\fR blocks. (See the \s-1TODO\s0 test in
1542
+ \&\fIt/op/mydef.t\fR.)
1543
+ .PP
1544
+ Stacked filetest operators won't work when the \f(CW\*(C`filetest\*(C'\fR pragma is in
1545
+ effect, because they rely on the \fBstat()\fR buffer \f(CW\*(C`_\*(C'\fR being populated, and
1546
+ filetest bypasses \fBstat()\fR.
1547
+ .SS "\s-1UTF\-8\s0 problems"
1548
+ .IX Subsection "UTF-8 problems"
1549
+ The handling of Unicode still is unclean in several places, where it's
1550
+ dependent on whether a string is internally flagged as \s-1UTF\-8.\s0 This will
1551
+ be made more consistent in perl 5.12, but that won't be possible without
1552
+ a certain amount of backwards incompatibility.
1553
+ .SH "Platform Specific Problems"
1554
+ .IX Header "Platform Specific Problems"
1555
+ When compiled with g++ and thread support on Linux, it's reported that the
1556
+ \&\f(CW$!\fR stops working correctly. This is related to the fact that the glibc
1557
+ provides two \fBstrerror_r\fR\|(3) implementation, and perl selects the wrong
1558
+ one.
1559
+ .SH "Reporting Bugs"
1560
+ .IX Header "Reporting Bugs"
1561
+ If you find what you think is a bug, you might check the articles
1562
+ recently posted to the comp.lang.perl.misc newsgroup and the perl
1563
+ bug database at http://rt.perl.org/rt3/ . There may also be
1564
+ information at http://www.perl.org/ , the Perl Home Page.
1565
+ .PP
1566
+ If you believe you have an unreported bug, please run the \fBperlbug\fR
1567
+ program included with your release. Be sure to trim your bug down
1568
+ to a tiny but sufficient test case. Your bug report, along with the
1569
+ output of \f(CW\*(C`perl \-V\*(C'\fR, will be sent off to perlbug@perl.org to be
1570
+ analysed by the Perl porting team.
1571
+ .SH "SEE ALSO"
1572
+ .IX Header "SEE ALSO"
1573
+ The \fIChanges\fR file and the perl590delta to perl595delta man pages for
1574
+ exhaustive details on what changed.
1575
+ .PP
1576
+ The \fI\s-1INSTALL\s0\fR file for how to build Perl.
1577
+ .PP
1578
+ The \fI\s-1README\s0\fR file for general stuff.
1579
+ .PP
1580
+ The \fIArtistic\fR and \fICopying\fR files for copyright information.
data/miniconda3/man/man1/perl5123delta.1 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 "PERL5123DELTA 1"
136
+ .TH PERL5123DELTA 1 "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
+ perl5123delta \- what is new for perl v5.12.3
143
+ .SH "DESCRIPTION"
144
+ .IX Header "DESCRIPTION"
145
+ This document describes differences between the 5.12.2 release and
146
+ the 5.12.3 release.
147
+ .PP
148
+ If you are upgrading from an earlier release such as 5.12.1, first read
149
+ perl5122delta, which describes differences between 5.12.1 and
150
+ 5.12.2. The major changes made in 5.12.0 are described in perl5120delta.
151
+ .SH "Incompatible Changes"
152
+ .IX Header "Incompatible Changes"
153
+ .Vb 2
154
+ \& There are no changes intentionally incompatible with 5.12.2. If any
155
+ \& exist, they are bugs and reports are welcome.
156
+ .Ve
157
+ .SH "Core Enhancements"
158
+ .IX Header "Core Enhancements"
159
+ .ie n .SS """keys"", ""values"" work on arrays"
160
+ .el .SS "\f(CWkeys\fP, \f(CWvalues\fP work on arrays"
161
+ .IX Subsection "keys, values work on arrays"
162
+ You can now use the \f(CW\*(C`keys\*(C'\fR, \f(CW\*(C`values\*(C'\fR, \f(CW\*(C`each\*(C'\fR builtin functions on arrays
163
+ (previously you could only use them on hashes). See perlfunc for details.
164
+ This is actually a change introduced in perl 5.12.0, but it was missed from
165
+ that release's perldelta.
166
+ .SH "Bug Fixes"
167
+ .IX Header "Bug Fixes"
168
+ \&\*(L"no \s-1VERSION\*(R"\s0 will now correctly deparse with B::Deparse, as will certain
169
+ constant expressions.
170
+ .PP
171
+ Module::Build should be more reliably pass its tests under cygwin.
172
+ .PP
173
+ Lvalue subroutines are again able to return copy-on-write scalars. This
174
+ had been broken since version 5.10.0.
175
+ .SH "Platform Specific Notes"
176
+ .IX Header "Platform Specific Notes"
177
+ .IP "Solaris" 4
178
+ .IX Item "Solaris"
179
+ A separate DTrace is now build for miniperl, which means that perl can be
180
+ compiled with \-Dusedtrace on Solaris again.
181
+ .IP "\s-1VMS\s0" 4
182
+ .IX Item "VMS"
183
+ A number of regressions on \s-1VMS\s0 have been fixed. In addition to minor cleanup
184
+ of questionable expressions in \fIvms.c\fR, file permissions should no longer be
185
+ garbled by the PerlIO layer, and spurious record boundaries should no longer be
186
+ introduced by the PerlIO layer during output.
187
+ .Sp
188
+ For more details and discussion on the latter, see:
189
+ .Sp
190
+ .Vb 1
191
+ \& http://www.nntp.perl.org/group/perl.vmsperl/2010/11/msg15419.html
192
+ .Ve
193
+ .IP "\s-1VOS\s0" 4
194
+ .IX Item "VOS"
195
+ A few very small changes were made to the build process on \s-1VOS\s0 to better
196
+ support the platform. Longer\-than\-32\-character filenames are now supported on
197
+ OpenVOS, and build properly without IPv6 support.
198
+ .SH "Acknowledgements"
199
+ .IX Header "Acknowledgements"
200
+ Perl 5.12.3 represents approximately four months of development since
201
+ Perl 5.12.2 and contains approximately 2500 lines of changes across
202
+ 54 files from 16 authors.
203
+ .PP
204
+ Perl continues to flourish into its third decade thanks to a vibrant
205
+ community of users and developers. The following people are known to
206
+ have contributed the improvements that became Perl 5.12.3:
207
+ .PP
208
+ Craig A. Berry, David Golden, David Leadbeater, Father Chrysostomos, Florian
209
+ Ragwitz, Jesse Vincent, Karl Williamson, Nick Johnston, Nicolas Kaiser, Paul
210
+ Green, Rafael Garcia-Suarez, Rainer Tammer, Ricardo Signes, Steffen Mueller,
211
+ Zsba\*'n Ambrus, \*(Aevar Arnfjo\*:r\*(d- Bjarmason
212
+ .SH "Reporting Bugs"
213
+ .IX Header "Reporting Bugs"
214
+ If you find what you think is a bug, you might check the articles
215
+ recently posted to the comp.lang.perl.misc newsgroup and the perl
216
+ bug database at http://rt.perl.org/perlbug/ . There may also be
217
+ information at http://www.perl.org/ , the Perl Home Page.
218
+ .PP
219
+ If you believe you have an unreported bug, please run the \fBperlbug\fR
220
+ program included with your release. Be sure to trim your bug down
221
+ to a tiny but sufficient test case. Your bug report, along with the
222
+ output of \f(CW\*(C`perl \-V\*(C'\fR, will be sent off to perlbug@perl.org to be
223
+ analysed by the Perl porting team.
224
+ .PP
225
+ If the bug you are reporting has security implications, which make it
226
+ inappropriate to send to a publicly archived mailing list, then please send
227
+ it to perl5\-security\-report@perl.org. This points to a closed subscription
228
+ unarchived mailing list, which includes
229
+ all the core committers, who will be able
230
+ to help assess the impact of issues, figure out a resolution, and help
231
+ co-ordinate the release of patches to mitigate or fix the problem across all
232
+ platforms on which Perl is supported. Please only use this address for
233
+ security issues in the Perl core, not for modules independently
234
+ distributed on \s-1CPAN.\s0
235
+ .SH "SEE ALSO"
236
+ .IX Header "SEE ALSO"
237
+ The \fIChanges\fR file for an explanation of how to view exhaustive details
238
+ on what changed.
239
+ .PP
240
+ The \fI\s-1INSTALL\s0\fR file for how to build Perl.
241
+ .PP
242
+ The \fI\s-1README\s0\fR file for general stuff.
243
+ .PP
244
+ The \fIArtistic\fR and \fICopying\fR files for copyright information.
data/miniconda3/man/man1/perl5125delta.1 ADDED
@@ -0,0 +1,344 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "PERL5125DELTA 1"
136
+ .TH PERL5125DELTA 1 "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
+ perl5125delta \- what is new for perl v5.12.5
143
+ .SH "DESCRIPTION"
144
+ .IX Header "DESCRIPTION"
145
+ This document describes differences between the 5.12.4 release and
146
+ the 5.12.5 release.
147
+ .PP
148
+ If you are upgrading from an earlier release such as 5.12.3, first read
149
+ perl5124delta, which describes differences between 5.12.3 and
150
+ 5.12.4.
151
+ .SH "Security"
152
+ .IX Header "Security"
153
+ .ie n .SS """Encode"" decode_xs n\-byte heap-overflow (\s-1CVE\-2011\-2939\s0)"
154
+ .el .SS "\f(CWEncode\fP decode_xs n\-byte heap-overflow (\s-1CVE\-2011\-2939\s0)"
155
+ .IX Subsection "Encode decode_xs n-byte heap-overflow (CVE-2011-2939)"
156
+ A bug in \f(CW\*(C`Encode\*(C'\fR could, on certain inputs, cause the heap to overflow.
157
+ This problem has been corrected. Bug reported by Robert Zacek.
158
+ .ie n .SS """File::Glob::bsd_glob()"" memory error with \s-1GLOB_ALTDIRFUNC\s0 (\s-1CVE\-2011\-2728\s0)."
159
+ .el .SS "\f(CWFile::Glob::bsd_glob()\fP memory error with \s-1GLOB_ALTDIRFUNC\s0 (\s-1CVE\-2011\-2728\s0)."
160
+ .IX Subsection "File::Glob::bsd_glob() memory error with GLOB_ALTDIRFUNC (CVE-2011-2728)."
161
+ Calling \f(CW\*(C`File::Glob::bsd_glob\*(C'\fR with the unsupported flag \s-1GLOB_ALTDIRFUNC\s0 would
162
+ cause an access violation / segfault. A Perl program that accepts a flags value from
163
+ an external source could expose itself to denial of service or arbitrary code
164
+ execution attacks. There are no known exploits in the wild. The problem has been
165
+ corrected by explicitly disabling all unsupported flags and setting unused function
166
+ pointers to null. Bug reported by Cle\*'ment Lecigne.
167
+ .SS "Heap buffer overrun in 'x' string repeat operator (\s-1CVE\-2012\-5195\s0)"
168
+ .IX Subsection "Heap buffer overrun in 'x' string repeat operator (CVE-2012-5195)"
169
+ Poorly written perl code that allows an attacker to specify the count to
170
+ perl's 'x' string repeat operator can already cause a memory exhaustion
171
+ denial-of-service attack. A flaw in versions of perl before 5.15.5 can
172
+ escalate that into a heap buffer overrun; coupled with versions of glibc
173
+ before 2.16, it possibly allows the execution of arbitrary code.
174
+ .PP
175
+ This problem has been fixed.
176
+ .SH "Incompatible Changes"
177
+ .IX Header "Incompatible Changes"
178
+ There are no changes intentionally incompatible with 5.12.4. If any
179
+ exist, they are bugs and reports are welcome.
180
+ .SH "Modules and Pragmata"
181
+ .IX Header "Modules and Pragmata"
182
+ .SS "Updated Modules"
183
+ .IX Subsection "Updated Modules"
184
+ \fIB::Concise\fR
185
+ .IX Subsection "B::Concise"
186
+ .PP
187
+ B::Concise no longer produces mangled output with the \fB\-tree\fR option
188
+ [perl #80632].
189
+ .PP
190
+ \fIcharnames\fR
191
+ .IX Subsection "charnames"
192
+ .PP
193
+ A regression introduced in Perl 5.8.8 has been fixed, that caused
194
+ \&\f(CWcharnames::viacode(0)\fR to return \f(CW\*(C`undef\*(C'\fR instead of the string \*(L"\s-1NULL\*(R"\s0
195
+ [perl #72624].
196
+ .PP
197
+ \fIEncode has been upgraded from version 2.39 to version 2.39_01.\fR
198
+ .IX Subsection "Encode has been upgraded from version 2.39 to version 2.39_01."
199
+ .PP
200
+ See \*(L"Security\*(R".
201
+ .PP
202
+ \fIFile::Glob has been upgraded from version 1.07 to version 1.07_01.\fR
203
+ .IX Subsection "File::Glob has been upgraded from version 1.07 to version 1.07_01."
204
+ .PP
205
+ See \*(L"Security\*(R".
206
+ .PP
207
+ \fIUnicode::UCD\fR
208
+ .IX Subsection "Unicode::UCD"
209
+ .PP
210
+ The documentation for the \f(CW\*(C`upper\*(C'\fR function now actually says \*(L"upper\*(R", not
211
+ \&\*(L"lower\*(R".
212
+ .PP
213
+ \fIModule::CoreList\fR
214
+ .IX Subsection "Module::CoreList"
215
+ .PP
216
+ Module::CoreList has been updated to version 2.50_02 to add data for
217
+ this release.
218
+ .SH "Changes to Existing Documentation"
219
+ .IX Header "Changes to Existing Documentation"
220
+ .SS "perlebcdic"
221
+ .IX Subsection "perlebcdic"
222
+ The perlebcdic document contains a helpful table to use in \f(CW\*(C`tr///\*(C'\fR to
223
+ convert between \s-1EBCDIC\s0 and Latin1/ASCII. Unfortunately, the table was the
224
+ inverse of the one it describes. This has been corrected.
225
+ .SS "perlunicode"
226
+ .IX Subsection "perlunicode"
227
+ The section on
228
+ User-Defined Case Mappings had
229
+ some bad markup and unclear sentences, making parts of it unreadable. This
230
+ has been rectified.
231
+ .SS "perluniprops"
232
+ .IX Subsection "perluniprops"
233
+ This document has been corrected to take non-ASCII platforms into account.
234
+ .SH "Installation and Configuration Improvements"
235
+ .IX Header "Installation and Configuration Improvements"
236
+ .SS "Platform Specific Changes"
237
+ .IX Subsection "Platform Specific Changes"
238
+ .IP "Mac \s-1OS X\s0" 4
239
+ .IX Item "Mac OS X"
240
+ There have been configuration and test fixes to make Perl build cleanly on
241
+ Lion and Mountain Lion.
242
+ .IP "NetBSD" 4
243
+ .IX Item "NetBSD"
244
+ The NetBSD hints file was corrected to be compatible with NetBSD 6.*
245
+ .SH "Selected Bug Fixes"
246
+ .IX Header "Selected Bug Fixes"
247
+ .IP "\(bu" 4
248
+ \&\f(CW\*(C`chop\*(C'\fR now correctly handles characters above \*(L"\ex{7fffffff}\*(R"
249
+ [perl #73246].
250
+ .IP "\(bu" 4
251
+ \&\f(CW\*(C`($<,$>) = (...)\*(C'\fR stopped working properly in 5.12.0. It is supposed
252
+ to make a single \f(CW\*(C`setreuid()\*(C'\fR call, rather than calling \f(CW\*(C`setruid()\*(C'\fR and
253
+ \&\f(CW\*(C`seteuid()\*(C'\fR separately. Consequently it did not work properly. This has
254
+ been fixed [perl #75212].
255
+ .IP "\(bu" 4
256
+ Fixed a regression of \fBkill()\fR when a match variable is used for the
257
+ process \s-1ID\s0 to kill [perl #75812].
258
+ .IP "\(bu" 4
259
+ \&\f(CW\*(C`UNIVERSAL::VERSION\*(C'\fR no longer leaks memory. It started leaking in Perl
260
+ 5.10.0.
261
+ .IP "\(bu" 4
262
+ The C\-level \f(CW\*(C`my_strftime\*(C'\fR functions no longer leaks memory. This fixes a
263
+ memory leak in \f(CW\*(C`POSIX::strftime\*(C'\fR [perl #73520].
264
+ .IP "\(bu" 4
265
+ \&\f(CW\*(C`caller\*(C'\fR no longer leaks memory when called from the \s-1DB\s0 package if
266
+ \&\f(CW@DB::args\fR was assigned to after the first call to \f(CW\*(C`caller\*(C'\fR. Carp
267
+ was triggering this bug [perl #97010].
268
+ .IP "\(bu" 4
269
+ Passing to \f(CW\*(C`index\*(C'\fR an offset beyond the end of the string when the string
270
+ is encoded internally in \s-1UTF8\s0 no longer causes panics [perl #75898].
271
+ .IP "\(bu" 4
272
+ Syntax errors in \f(CW\*(C`(?{...})\*(C'\fR blocks in regular expressions no longer
273
+ cause panic messages [perl #2353].
274
+ .IP "\(bu" 4
275
+ Perl 5.10.0 introduced some faulty logic that made \*(L"U*\*(R" in the middle of
276
+ a pack template equivalent to \*(L"U0\*(R" if the input string was empty. This has
277
+ been fixed [perl #90160].
278
+ .SH "Errata"
279
+ .IX Header "Errata"
280
+ .ie n .SS "\fBsplit()\fP and @_"
281
+ .el .SS "\fBsplit()\fP and \f(CW@_\fP"
282
+ .IX Subsection "split() and @_"
283
+ \&\fBsplit()\fR no longer modifies \f(CW@_\fR when called in scalar or void context.
284
+ In void context it now produces a \*(L"Useless use of split\*(R" warning.
285
+ This is actually a change introduced in perl 5.12.0, but it was missed from
286
+ that release's perl5120delta.
287
+ .SH "Acknowledgements"
288
+ .IX Header "Acknowledgements"
289
+ Perl 5.12.5 represents approximately 17 months of development since Perl 5.12.4
290
+ and contains approximately 1,900 lines of changes across 64 files from 18
291
+ authors.
292
+ .PP
293
+ Perl continues to flourish into its third decade thanks to a vibrant community
294
+ of users and developers. The following people are known to have contributed the
295
+ improvements that became Perl 5.12.5:
296
+ .PP
297
+ Andy Dougherty, Chris 'BinGOs' Williams, Craig A. Berry, David Mitchell,
298
+ Dominic Hargreaves, Father Chrysostomos, Florian Ragwitz, George Greer, Goro
299
+ Fuji, Jesse Vincent, Karl Williamson, Leon Brocard, Nicholas Clark, Rafael
300
+ Garcia-Suarez, Reini Urban, Ricardo Signes, Steve Hay, Tony Cook.
301
+ .PP
302
+ The list above is almost certainly incomplete as it is automatically generated
303
+ from version control history. In particular, it does not include the names of
304
+ the (very much appreciated) contributors who reported issues to the Perl bug
305
+ tracker.
306
+ .PP
307
+ Many of the changes included in this version originated in the \s-1CPAN\s0 modules
308
+ included in Perl's core. We're grateful to the entire \s-1CPAN\s0 community for
309
+ helping Perl to flourish.
310
+ .PP
311
+ For a more complete list of all of Perl's historical contributors, please see
312
+ the \fI\s-1AUTHORS\s0\fR file in the Perl source distribution.
313
+ .SH "Reporting Bugs"
314
+ .IX Header "Reporting Bugs"
315
+ If you find what you think is a bug, you might check the articles
316
+ recently posted to the comp.lang.perl.misc newsgroup and the perl
317
+ bug database at http://rt.perl.org/perlbug/ . There may also be
318
+ information at http://www.perl.org/ , the Perl Home Page.
319
+ .PP
320
+ If you believe you have an unreported bug, please run the \fBperlbug\fR
321
+ program included with your release. Be sure to trim your bug down
322
+ to a tiny but sufficient test case. Your bug report, along with the
323
+ output of \f(CW\*(C`perl \-V\*(C'\fR, will be sent off to perlbug@perl.org to be
324
+ analysed by the Perl porting team.
325
+ .PP
326
+ If the bug you are reporting has security implications, which make it
327
+ inappropriate to send to a publicly archived mailing list, then please send
328
+ it to perl5\-security\-report@perl.org. This points to a closed subscription
329
+ unarchived mailing list, which includes all the core committers, who be able
330
+ to help assess the impact of issues, figure out a resolution, and help
331
+ co-ordinate the release of patches to mitigate or fix the problem across all
332
+ platforms on which Perl is supported. Please only use this address for
333
+ security issues in the Perl core, not for modules independently
334
+ distributed on \s-1CPAN.\s0
335
+ .SH "SEE ALSO"
336
+ .IX Header "SEE ALSO"
337
+ The \fIChanges\fR file for an explanation of how to view exhaustive details
338
+ on what changed.
339
+ .PP
340
+ The \fI\s-1INSTALL\s0\fR file for how to build Perl.
341
+ .PP
342
+ The \fI\s-1README\s0\fR file for general stuff.
343
+ .PP
344
+ The \fIArtistic\fR and \fICopying\fR files for copyright information.
data/miniconda3/man/man1/perl5140delta.1 ADDED
The diff for this file is too large to render. See raw diff
 
data/miniconda3/man/man1/perl5142delta.1 ADDED
@@ -0,0 +1,321 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "PERL5142DELTA 1"
136
+ .TH PERL5142DELTA 1 "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
+ perl5142delta \- what is new for perl v5.14.2
143
+ .SH "DESCRIPTION"
144
+ .IX Header "DESCRIPTION"
145
+ This document describes differences between the 5.14.1 release and
146
+ the 5.14.2 release.
147
+ .PP
148
+ If you are upgrading from an earlier release such as 5.14.0, first read
149
+ perl5141delta, which describes differences between 5.14.0 and
150
+ 5.14.1.
151
+ .SH "Core Enhancements"
152
+ .IX Header "Core Enhancements"
153
+ No changes since 5.14.0.
154
+ .SH "Security"
155
+ .IX Header "Security"
156
+ .ie n .SS """File::Glob::bsd_glob()"" memory error with \s-1GLOB_ALTDIRFUNC\s0 (\s-1CVE\-2011\-2728\s0)."
157
+ .el .SS "\f(CWFile::Glob::bsd_glob()\fP memory error with \s-1GLOB_ALTDIRFUNC\s0 (\s-1CVE\-2011\-2728\s0)."
158
+ .IX Subsection "File::Glob::bsd_glob() memory error with GLOB_ALTDIRFUNC (CVE-2011-2728)."
159
+ Calling \f(CW\*(C`File::Glob::bsd_glob\*(C'\fR with the unsupported flag \s-1GLOB_ALTDIRFUNC\s0 would
160
+ cause an access violation / segfault. A Perl program that accepts a flags value from
161
+ an external source could expose itself to denial of service or arbitrary code
162
+ execution attacks. There are no known exploits in the wild. The problem has been
163
+ corrected by explicitly disabling all unsupported flags and setting unused function
164
+ pointers to null. Bug reported by Cle\*'ment Lecigne.
165
+ .ie n .SS """Encode"" decode_xs n\-byte heap-overflow (\s-1CVE\-2011\-2939\s0)"
166
+ .el .SS "\f(CWEncode\fP decode_xs n\-byte heap-overflow (\s-1CVE\-2011\-2939\s0)"
167
+ .IX Subsection "Encode decode_xs n-byte heap-overflow (CVE-2011-2939)"
168
+ A bug in \f(CW\*(C`Encode\*(C'\fR could, on certain inputs, cause the heap to overflow.
169
+ This problem has been corrected. Bug reported by Robert Zacek.
170
+ .SH "Incompatible Changes"
171
+ .IX Header "Incompatible Changes"
172
+ There are no changes intentionally incompatible with 5.14.0. If any
173
+ exist, they are bugs and reports are welcome.
174
+ .SH "Deprecations"
175
+ .IX Header "Deprecations"
176
+ There have been no deprecations since 5.14.0.
177
+ .SH "Modules and Pragmata"
178
+ .IX Header "Modules and Pragmata"
179
+ .SS "New Modules and Pragmata"
180
+ .IX Subsection "New Modules and Pragmata"
181
+ None
182
+ .SS "Updated Modules and Pragmata"
183
+ .IX Subsection "Updated Modules and Pragmata"
184
+ .IP "\(bu" 4
185
+ \&\s-1CPAN\s0 has been upgraded from version 1.9600 to version 1.9600_01.
186
+ .Sp
187
+ CPAN::Distribution has been upgraded from version 1.9602 to 1.9602_01.
188
+ .Sp
189
+ Backported bugfixes from \s-1CPAN\s0 version 1.9800. Ensures proper
190
+ detection of \f(CW\*(C`configure_requires\*(C'\fR prerequisites from \s-1CPAN\s0 Meta files
191
+ in the case where \f(CW\*(C`dynamic_config\*(C'\fR is true. [rt.cpan.org #68835]
192
+ .Sp
193
+ Also ensures that \f(CW\*(C`configure_requires\*(C'\fR is only checked in \s-1META\s0 files,
194
+ not \s-1MYMETA\s0 files, so protect against \s-1MYMETA\s0 generation that drops
195
+ \&\f(CW\*(C`configure_requires\*(C'\fR.
196
+ .IP "\(bu" 4
197
+ Encode has been upgraded from version 2.42 to 2.42_01.
198
+ .Sp
199
+ See \*(L"Security\*(R".
200
+ .IP "\(bu" 4
201
+ File::Glob has been upgraded from version 1.12 to version 1.13.
202
+ .Sp
203
+ See \*(L"Security\*(R".
204
+ .IP "\(bu" 4
205
+ PerlIO::scalar has been upgraded from version 0.11 to 0.11_01.
206
+ .Sp
207
+ It fixes a problem with \f(CW\*(C`open my $fh, ">", \e$scalar\*(C'\fR not working if
208
+ \&\f(CW$scalar\fR is a copy-on-write scalar.
209
+ .SS "Removed Modules and Pragmata"
210
+ .IX Subsection "Removed Modules and Pragmata"
211
+ None
212
+ .SH "Platform Support"
213
+ .IX Header "Platform Support"
214
+ .SS "New Platforms"
215
+ .IX Subsection "New Platforms"
216
+ None
217
+ .SS "Discontinued Platforms"
218
+ .IX Subsection "Discontinued Platforms"
219
+ None
220
+ .SS "Platform-Specific Notes"
221
+ .IX Subsection "Platform-Specific Notes"
222
+ .IP "HP-UX \s-1PA\-RISC/64\s0 now supports gcc\-4.x" 4
223
+ .IX Item "HP-UX PA-RISC/64 now supports gcc-4.x"
224
+ A fix to correct the socketsize now makes the test suite pass on HP-UX
225
+ PA-RISC for 64bitall builds.
226
+ .IP "Building on \s-1OS X 10.7\s0 Lion and Xcode 4 works again" 4
227
+ .IX Item "Building on OS X 10.7 Lion and Xcode 4 works again"
228
+ The build system has been updated to work with the build tools under Mac \s-1OS X
229
+ 10.7.\s0
230
+ .SH "Bug Fixes"
231
+ .IX Header "Bug Fixes"
232
+ .IP "\(bu" 4
233
+ In \f(CW@INC\fR filters (subroutines returned by subroutines in \f(CW@INC\fR), \f(CW$_\fR used to
234
+ misbehave: If returned from a subroutine, it would not be copied, but the
235
+ variable itself would be returned; and freeing \f(CW$_\fR (e.g., with \f(CW\*(C`undef *_\*(C'\fR)
236
+ would cause perl to crash. This has been fixed [perl #91880].
237
+ .IP "\(bu" 4
238
+ Perl 5.10.0 introduced some faulty logic that made \*(L"U*\*(R" in the middle of
239
+ a pack template equivalent to \*(L"U0\*(R" if the input string was empty. This has
240
+ been fixed [perl #90160].
241
+ .IP "\(bu" 4
242
+ \&\f(CW\*(C`caller\*(C'\fR no longer leaks memory when called from the \s-1DB\s0 package if
243
+ \&\f(CW@DB::args\fR was assigned to after the first call to \f(CW\*(C`caller\*(C'\fR. Carp
244
+ was triggering this bug [perl #97010].
245
+ .IP "\(bu" 4
246
+ \&\f(CW\*(C`utf8::decode\*(C'\fR had a nasty bug that would modify copy-on-write scalars'
247
+ string buffers in place (i.e., skipping the copy). This could result in
248
+ hashes having two elements with the same key [perl #91834].
249
+ .IP "\(bu" 4
250
+ Localising a tied variable used to make it read-only if it contained a
251
+ copy-on-write string.
252
+ .IP "\(bu" 4
253
+ Elements of restricted hashes (see the fields pragma) containing
254
+ copy-on-write values couldn't be deleted, nor could such hashes be cleared
255
+ (\f(CW\*(C`%hash = ()\*(C'\fR).
256
+ .IP "\(bu" 4
257
+ Locking a hash element that is a glob copy no longer causes subsequent
258
+ assignment to it to corrupt the glob.
259
+ .IP "\(bu" 4
260
+ A panic involving the combination of the regular expression modifiers
261
+ \&\f(CW\*(C`/aa\*(C'\fR introduced in 5.14.0 and the \f(CW\*(C`\eb\*(C'\fR escape sequence has been
262
+ fixed [perl #95964].
263
+ .SH "Known Problems"
264
+ .IX Header "Known Problems"
265
+ This is a list of some significant unfixed bugs, which are regressions
266
+ from 5.12.0.
267
+ .IP "\(bu" 4
268
+ \&\f(CW\*(C`PERL_GLOBAL_STRUCT\*(C'\fR is broken.
269
+ .Sp
270
+ Since perl 5.14.0, building with \f(CW\*(C`\-DPERL_GLOBAL_STRUCT\*(C'\fR hasn't been
271
+ possible. This means that perl currently doesn't work on any platforms that
272
+ require it to be built this way, including Symbian.
273
+ .Sp
274
+ While \f(CW\*(C`PERL_GLOBAL_STRUCT\*(C'\fR now works again on recent development versions of
275
+ perl, it actually working on Symbian again hasn't been verified.
276
+ .Sp
277
+ We'd be very interested in hearing from anyone working with Perl on Symbian.
278
+ .SH "Acknowledgements"
279
+ .IX Header "Acknowledgements"
280
+ Perl 5.14.2 represents approximately three months of development since
281
+ Perl 5.14.1 and contains approximately 1200 lines of changes
282
+ across 61 files from 9 authors.
283
+ .PP
284
+ Perl continues to flourish into its third decade thanks to a vibrant
285
+ community of users and developers. The following people are known to
286
+ have contributed the improvements that became Perl 5.14.2:
287
+ .PP
288
+ Craig A. Berry, David Golden, Father Chrysostomos, Florian Ragwitz, H.Merijn
289
+ Brand, Karl Williamson, Nicholas Clark, Pau Amma and Ricardo Signes.
290
+ .SH "Reporting Bugs"
291
+ .IX Header "Reporting Bugs"
292
+ If you find what you think is a bug, you might check the articles
293
+ recently posted to the comp.lang.perl.misc newsgroup and the perl
294
+ bug database at http://rt.perl.org/perlbug/ . There may also be
295
+ information at http://www.perl.org/ , the Perl Home Page.
296
+ .PP
297
+ If you believe you have an unreported bug, please run the perlbug
298
+ program included with your release. Be sure to trim your bug down
299
+ to a tiny but sufficient test case. Your bug report, along with the
300
+ output of \f(CW\*(C`perl \-V\*(C'\fR, will be sent off to perlbug@perl.org to be
301
+ analysed by the Perl porting team.
302
+ .PP
303
+ If the bug you are reporting has security implications, which make it
304
+ inappropriate to send to a publicly archived mailing list, then please send
305
+ it to perl5\-security\-report@perl.org. This points to a closed subscription
306
+ unarchived mailing list, which includes all the core committers, who be able
307
+ to help assess the impact of issues, figure out a resolution, and help
308
+ co-ordinate the release of patches to mitigate or fix the problem across all
309
+ platforms on which Perl is supported. Please only use this address for
310
+ security issues in the Perl core, not for modules independently
311
+ distributed on \s-1CPAN.\s0
312
+ .SH "SEE ALSO"
313
+ .IX Header "SEE ALSO"
314
+ The \fIChanges\fR file for an explanation of how to view exhaustive details
315
+ on what changed.
316
+ .PP
317
+ The \fI\s-1INSTALL\s0\fR file for how to build Perl.
318
+ .PP
319
+ The \fI\s-1README\s0\fR file for general stuff.
320
+ .PP
321
+ The \fIArtistic\fR and \fICopying\fR files for copyright information.
data/miniconda3/man/man1/perl5144delta.1 ADDED
@@ -0,0 +1,334 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "PERL5144DELTA 1"
136
+ .TH PERL5144DELTA 1 "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
+ perl5144delta \- what is new for perl v5.14.4
143
+ .SH "DESCRIPTION"
144
+ .IX Header "DESCRIPTION"
145
+ This document describes differences between the 5.14.3 release and
146
+ the 5.14.4 release.
147
+ .PP
148
+ If you are upgrading from an earlier release such as 5.12.0, first read
149
+ perl5140delta, which describes differences between 5.12.0 and
150
+ 5.14.0.
151
+ .SH "Core Enhancements"
152
+ .IX Header "Core Enhancements"
153
+ No changes since 5.14.0.
154
+ .SH "Security"
155
+ .IX Header "Security"
156
+ This release contains one major, and medium, and a number of minor
157
+ security fixes. The latter are included mainly to allow the test suite to
158
+ pass cleanly with the clang compiler's address sanitizer facility.
159
+ .SS "\s-1CVE\-2013\-1667:\s0 memory exhaustion with arbitrary hash keys"
160
+ .IX Subsection "CVE-2013-1667: memory exhaustion with arbitrary hash keys"
161
+ With a carefully crafted set of hash keys (for example arguments on a
162
+ \&\s-1URL\s0), it is possible to cause a hash to consume a large amount of memory
163
+ and \s-1CPU,\s0 and thus possibly to achieve a Denial-of-Service.
164
+ .PP
165
+ This problem has been fixed.
166
+ .SS "memory leak in Encode"
167
+ .IX Subsection "memory leak in Encode"
168
+ The \s-1UTF\-8\s0 encoding implementation in Encode.xs had a memory leak which has been
169
+ fixed.
170
+ .SS "[perl #111594] Socket::unpack_sockaddr_un heap-buffer-overflow"
171
+ .IX Subsection "[perl #111594] Socket::unpack_sockaddr_un heap-buffer-overflow"
172
+ A read buffer overflow could occur when copying \f(CW\*(C`sockaddr\*(C'\fR buffers.
173
+ Fairly harmless.
174
+ .PP
175
+ This problem has been fixed.
176
+ .ie n .SS "[perl #111586] SDBM_File: fix off-by-one access to global "".dir"""
177
+ .el .SS "[perl #111586] SDBM_File: fix off-by-one access to global ``.dir''"
178
+ .IX Subsection "[perl #111586] SDBM_File: fix off-by-one access to global .dir"
179
+ An extra byte was being copied for some string literals. Fairly harmless.
180
+ .PP
181
+ This problem has been fixed.
182
+ .SS "off-by-two error in List::Util"
183
+ .IX Subsection "off-by-two error in List::Util"
184
+ A string literal was being used that included two bytes beyond the
185
+ end of the string. Fairly harmless.
186
+ .PP
187
+ This problem has been fixed.
188
+ .SS "[perl #115994] fix segv in regcomp.\fBc:S_join_exact()\fP"
189
+ .IX Subsection "[perl #115994] fix segv in regcomp.c:S_join_exact()"
190
+ Under debugging builds, while marking optimised-out regex nodes as type
191
+ \&\f(CW\*(C`OPTIMIZED\*(C'\fR, it could treat blocks of exact text as if they were nodes,
192
+ and thus \s-1SEGV.\s0 Fairly harmless.
193
+ .PP
194
+ This problem has been fixed.
195
+ .SS "[perl #115992] PL_eval_start use-after-free"
196
+ .IX Subsection "[perl #115992] PL_eval_start use-after-free"
197
+ The statement \f(CW\*(C`local $[;\*(C'\fR, when preceded by an \f(CW\*(C`eval\*(C'\fR, and when not part
198
+ of an assignment, could crash. Fairly harmless.
199
+ .PP
200
+ This problem has been fixed.
201
+ .SS "wrap-around with \s-1IO\s0 on long strings"
202
+ .IX Subsection "wrap-around with IO on long strings"
203
+ Reading or writing strings greater than 2**31 bytes in size could segfault
204
+ due to integer wraparound.
205
+ .PP
206
+ This problem has been fixed.
207
+ .SH "Incompatible Changes"
208
+ .IX Header "Incompatible Changes"
209
+ There are no changes intentionally incompatible with 5.14.0. If any
210
+ exist, they are bugs and reports are welcome.
211
+ .SH "Deprecations"
212
+ .IX Header "Deprecations"
213
+ There have been no deprecations since 5.14.0.
214
+ .SH "Modules and Pragmata"
215
+ .IX Header "Modules and Pragmata"
216
+ .SS "New Modules and Pragmata"
217
+ .IX Subsection "New Modules and Pragmata"
218
+ None
219
+ .SS "Updated Modules and Pragmata"
220
+ .IX Subsection "Updated Modules and Pragmata"
221
+ The following modules have just the minor code fixes as listed above in
222
+ \&\*(L"Security\*(R" (version numbers have not changed):
223
+ .IP "Socket" 4
224
+ .IX Item "Socket"
225
+ .PD 0
226
+ .IP "SDBM_File" 4
227
+ .IX Item "SDBM_File"
228
+ .IP "List::Util" 4
229
+ .IX Item "List::Util"
230
+ .PD
231
+ .PP
232
+ Encode has been upgraded from version 2.42_01 to version 2.42_02.
233
+ .PP
234
+ Module::CoreList has been updated to version 2.49_06 to add data for
235
+ this release.
236
+ .SS "Removed Modules and Pragmata"
237
+ .IX Subsection "Removed Modules and Pragmata"
238
+ None.
239
+ .SH "Documentation"
240
+ .IX Header "Documentation"
241
+ .SS "New Documentation"
242
+ .IX Subsection "New Documentation"
243
+ None.
244
+ .SS "Changes to Existing Documentation"
245
+ .IX Subsection "Changes to Existing Documentation"
246
+ None.
247
+ .SH "Diagnostics"
248
+ .IX Header "Diagnostics"
249
+ No new or changed diagnostics.
250
+ .SH "Utility Changes"
251
+ .IX Header "Utility Changes"
252
+ None
253
+ .SH "Configuration and Compilation"
254
+ .IX Header "Configuration and Compilation"
255
+ No changes.
256
+ .SH "Platform Support"
257
+ .IX Header "Platform Support"
258
+ .SS "New Platforms"
259
+ .IX Subsection "New Platforms"
260
+ None.
261
+ .SS "Discontinued Platforms"
262
+ .IX Subsection "Discontinued Platforms"
263
+ None.
264
+ .SS "Platform-Specific Notes"
265
+ .IX Subsection "Platform-Specific Notes"
266
+ .IP "\s-1VMS\s0" 4
267
+ .IX Item "VMS"
268
+ 5.14.3 failed to compile on \s-1VMS\s0 due to incomplete application of a patch
269
+ series that allowed \f(CW\*(C`userelocatableinc\*(C'\fR and \f(CW\*(C`usesitecustomize\*(C'\fR to be
270
+ used simultaneously. Other platforms were not affected and the problem
271
+ has now been corrected.
272
+ .SH "Selected Bug Fixes"
273
+ .IX Header "Selected Bug Fixes"
274
+ .IP "\(bu" 4
275
+ In Perl 5.14.0, \f(CW\*(C`$tainted ~~ @array\*(C'\fR stopped working properly. Sometimes
276
+ it would erroneously fail (when \f(CW$tainted\fR contained a string that occurs
277
+ in the array \fIafter\fR the first element) or erroneously succeed (when
278
+ \&\f(CW\*(C`undef\*(C'\fR occurred after the first element) [perl #93590].
279
+ .SH "Known Problems"
280
+ .IX Header "Known Problems"
281
+ None.
282
+ .SH "Acknowledgements"
283
+ .IX Header "Acknowledgements"
284
+ Perl 5.14.4 represents approximately 5 months of development since Perl 5.14.3
285
+ and contains approximately 1,700 lines of changes across 49 files from 12
286
+ authors.
287
+ .PP
288
+ Perl continues to flourish into its third decade thanks to a vibrant community
289
+ of users and developers. The following people are known to have contributed the
290
+ improvements that became Perl 5.14.4:
291
+ .PP
292
+ Andy Dougherty, Chris 'BinGOs' Williams, Christian Hansen, Craig A. Berry,
293
+ Dave Rolsky, David Mitchell, Dominic Hargreaves, Father Chrysostomos,
294
+ Florian Ragwitz, Reini Urban, Ricardo Signes, Yves Orton.
295
+ .PP
296
+ The list above is almost certainly incomplete as it is automatically generated
297
+ from version control history. In particular, it does not include the names of
298
+ the (very much appreciated) contributors who reported issues to the Perl bug
299
+ tracker.
300
+ .PP
301
+ For a more complete list of all of Perl's historical contributors, please see
302
+ the \fI\s-1AUTHORS\s0\fR file in the Perl source distribution.
303
+ .SH "Reporting Bugs"
304
+ .IX Header "Reporting Bugs"
305
+ If you find what you think is a bug, you might check the articles
306
+ recently posted to the comp.lang.perl.misc newsgroup and the perl
307
+ bug database at http://rt.perl.org/perlbug/ . There may also be
308
+ information at http://www.perl.org/ , the Perl Home Page.
309
+ .PP
310
+ If you believe you have an unreported bug, please run the perlbug
311
+ program included with your release. Be sure to trim your bug down
312
+ to a tiny but sufficient test case. Your bug report, along with the
313
+ output of \f(CW\*(C`perl \-V\*(C'\fR, will be sent off to perlbug@perl.org to be
314
+ analysed by the Perl porting team.
315
+ .PP
316
+ If the bug you are reporting has security implications, which make it
317
+ inappropriate to send to a publicly archived mailing list, then please send
318
+ it to perl5\-security\-report@perl.org. This points to a closed subscription
319
+ unarchived mailing list, which includes all the core committers, who be able
320
+ to help assess the impact of issues, figure out a resolution, and help
321
+ co-ordinate the release of patches to mitigate or fix the problem across all
322
+ platforms on which Perl is supported. Please only use this address for
323
+ security issues in the Perl core, not for modules independently
324
+ distributed on \s-1CPAN.\s0
325
+ .SH "SEE ALSO"
326
+ .IX Header "SEE ALSO"
327
+ The \fIChanges\fR file for an explanation of how to view exhaustive details
328
+ on what changed.
329
+ .PP
330
+ The \fI\s-1INSTALL\s0\fR file for how to build Perl.
331
+ .PP
332
+ The \fI\s-1README\s0\fR file for general stuff.
333
+ .PP
334
+ The \fIArtistic\fR and \fICopying\fR files for copyright information.
data/miniconda3/man/man1/perl5163delta.1 ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "PERL5163DELTA 1"
136
+ .TH PERL5163DELTA 1 "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
+ perl5163delta \- what is new for perl v5.16.3
143
+ .SH "DESCRIPTION"
144
+ .IX Header "DESCRIPTION"
145
+ This document describes differences between the 5.16.2 release and
146
+ the 5.16.3 release.
147
+ .PP
148
+ If you are upgrading from an earlier release such as 5.16.1, first read
149
+ perl5162delta, which describes differences between 5.16.1 and
150
+ 5.16.2.
151
+ .SH "Core Enhancements"
152
+ .IX Header "Core Enhancements"
153
+ No changes since 5.16.0.
154
+ .SH "Security"
155
+ .IX Header "Security"
156
+ This release contains one major and a number of minor security fixes.
157
+ These latter are included mainly to allow the test suite to pass cleanly
158
+ with the clang compiler's address sanitizer facility.
159
+ .SS "\s-1CVE\-2013\-1667:\s0 memory exhaustion with arbitrary hash keys"
160
+ .IX Subsection "CVE-2013-1667: memory exhaustion with arbitrary hash keys"
161
+ With a carefully crafted set of hash keys (for example arguments on a
162
+ \&\s-1URL\s0), it is possible to cause a hash to consume a large amount of memory
163
+ and \s-1CPU,\s0 and thus possibly to achieve a Denial-of-Service.
164
+ .PP
165
+ This problem has been fixed.
166
+ .SS "wrap-around with \s-1IO\s0 on long strings"
167
+ .IX Subsection "wrap-around with IO on long strings"
168
+ Reading or writing strings greater than 2**31 bytes in size could segfault
169
+ due to integer wraparound.
170
+ .PP
171
+ This problem has been fixed.
172
+ .SS "memory leak in Encode"
173
+ .IX Subsection "memory leak in Encode"
174
+ The \s-1UTF\-8\s0 encoding implementation in Encode.xs had a memory leak which has been
175
+ fixed.
176
+ .SH "Incompatible Changes"
177
+ .IX Header "Incompatible Changes"
178
+ There are no changes intentionally incompatible with 5.16.0. If any
179
+ exist, they are bugs and reports are welcome.
180
+ .SH "Deprecations"
181
+ .IX Header "Deprecations"
182
+ There have been no deprecations since 5.16.0.
183
+ .SH "Modules and Pragmata"
184
+ .IX Header "Modules and Pragmata"
185
+ .SS "Updated Modules and Pragmata"
186
+ .IX Subsection "Updated Modules and Pragmata"
187
+ .IP "\(bu" 4
188
+ Encode has been upgraded from version 2.44 to version 2.44_01.
189
+ .IP "\(bu" 4
190
+ Module::CoreList has been upgraded from version 2.76 to version 2.76_02.
191
+ .IP "\(bu" 4
192
+ XS::APItest has been upgraded from version 0.38 to version 0.39.
193
+ .SH "Known Problems"
194
+ .IX Header "Known Problems"
195
+ None.
196
+ .SH "Acknowledgements"
197
+ .IX Header "Acknowledgements"
198
+ Perl 5.16.3 represents approximately 4 months of development since Perl 5.16.2
199
+ and contains approximately 870 lines of changes across 39 files from 7 authors.
200
+ .PP
201
+ Perl continues to flourish into its third decade thanks to a vibrant community
202
+ of users and developers. The following people are known to have contributed the
203
+ improvements that became Perl 5.16.3:
204
+ .PP
205
+ Andy Dougherty, Chris 'BinGOs' Williams, Dave Rolsky, David Mitchell, Michael
206
+ Schroeder, Ricardo Signes, Yves Orton.
207
+ .PP
208
+ The list above is almost certainly incomplete as it is automatically generated
209
+ from version control history. In particular, it does not include the names of
210
+ the (very much appreciated) contributors who reported issues to the Perl bug
211
+ tracker.
212
+ .PP
213
+ For a more complete list of all of Perl's historical contributors, please see
214
+ the \fI\s-1AUTHORS\s0\fR file in the Perl source distribution.
215
+ .SH "Reporting Bugs"
216
+ .IX Header "Reporting Bugs"
217
+ If you find what you think is a bug, you might check the articles
218
+ recently posted to the comp.lang.perl.misc newsgroup and the perl
219
+ bug database at http://rt.perl.org/perlbug/ . There may also be
220
+ information at http://www.perl.org/ , the Perl Home Page.
221
+ .PP
222
+ If you believe you have an unreported bug, please run the perlbug
223
+ program included with your release. Be sure to trim your bug down
224
+ to a tiny but sufficient test case. Your bug report, along with the
225
+ output of \f(CW\*(C`perl \-V\*(C'\fR, will be sent off to perlbug@perl.org to be
226
+ analysed by the Perl porting team.
227
+ .PP
228
+ If the bug you are reporting has security implications, which make it
229
+ inappropriate to send to a publicly archived mailing list, then please
230
+ send it to perl5\-security\-report@perl.org. This points to a closed
231
+ subscription unarchived mailing list, which includes all the core
232
+ committers, who will be able to help assess the impact of issues, figure
233
+ out a resolution, and help co-ordinate the release of patches to
234
+ mitigate or fix the problem across all platforms on which Perl is
235
+ supported. Please only use this address for security issues in the Perl
236
+ core, not for modules independently distributed on \s-1CPAN.\s0
237
+ .SH "SEE ALSO"
238
+ .IX Header "SEE ALSO"
239
+ The \fIChanges\fR file for an explanation of how to view exhaustive details
240
+ on what changed.
241
+ .PP
242
+ The \fI\s-1INSTALL\s0\fR file for how to build Perl.
243
+ .PP
244
+ The \fI\s-1README\s0\fR file for general stuff.
245
+ .PP
246
+ The \fIArtistic\fR and \fICopying\fR files for copyright information.
data/miniconda3/man/man1/perl5182delta.1 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 "PERL5182DELTA 1"
136
+ .TH PERL5182DELTA 1 "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
+ perl5182delta \- what is new for perl v5.18.2
143
+ .SH "DESCRIPTION"
144
+ .IX Header "DESCRIPTION"
145
+ This document describes differences between the 5.18.1 release and the 5.18.2
146
+ release.
147
+ .PP
148
+ If you are upgrading from an earlier release such as 5.18.0, first read
149
+ perl5181delta, which describes differences between 5.18.0 and 5.18.1.
150
+ .SH "Modules and Pragmata"
151
+ .IX Header "Modules and Pragmata"
152
+ .SS "Updated Modules and Pragmata"
153
+ .IX Subsection "Updated Modules and Pragmata"
154
+ .IP "\(bu" 4
155
+ B has been upgraded from version 1.42_01 to 1.42_02.
156
+ .Sp
157
+ The fix for [perl #118525] introduced a regression in the behaviour of
158
+ \&\f(CW\*(C`B::CV::GV\*(C'\fR, changing the return value from a \f(CW\*(C`B::SPECIAL\*(C'\fR object on
159
+ a \f(CW\*(C`NULL\*(C'\fR \f(CW\*(C`CvGV\*(C'\fR to \f(CW\*(C`undef\*(C'\fR. \f(CW\*(C`B::CV::GV\*(C'\fR again returns a
160
+ \&\f(CW\*(C`B::SPECIAL\*(C'\fR object in this case. [perl #119413]
161
+ .IP "\(bu" 4
162
+ B::Concise has been upgraded from version 0.95 to 0.95_01.
163
+ .Sp
164
+ This fixes a bug in dumping unexpected SPECIALs.
165
+ .IP "\(bu" 4
166
+ English has been upgraded from version 1.06 to 1.06_01. This fixes an
167
+ error about the performance of \f(CW\*(C`$\`\*(C'\fR, \f(CW$&\fR, and \f(CW\*(C`$\*(Aq\*(C'\fR.
168
+ .IP "\(bu" 4
169
+ File::Glob has been upgraded from version 1.20 to 1.20_01.
170
+ .SH "Documentation"
171
+ .IX Header "Documentation"
172
+ .SS "Changes to Existing Documentation"
173
+ .IX Subsection "Changes to Existing Documentation"
174
+ .IP "\(bu" 4
175
+ perlrepository has been restored with a pointer to more useful pages.
176
+ .IP "\(bu" 4
177
+ perlhack has been updated with the latest changes from blead.
178
+ .SH "Selected Bug Fixes"
179
+ .IX Header "Selected Bug Fixes"
180
+ .IP "\(bu" 4
181
+ Perl 5.18.1 introduced a regression along with a bugfix for lexical subs.
182
+ Some B::SPECIAL results from B::CV::GV became undefs instead. This broke
183
+ Devel::Cover among other libraries. This has been fixed. [perl #119351]
184
+ .IP "\(bu" 4
185
+ Perl 5.18.0 introduced a regression whereby \f(CW\*(C`[:^ascii:]\*(C'\fR, if used in the same
186
+ character class as other qualifiers, would fail to match characters in the
187
+ Latin\-1 block. This has been fixed. [perl #120799]
188
+ .IP "\(bu" 4
189
+ Perl 5.18.0 introduced a regression when using \->SUPER::method with \s-1AUTOLOAD\s0
190
+ by looking up \s-1AUTOLOAD\s0 from the current package, rather than the current
191
+ packageXs superclass. This has been fixed. [perl #120694]
192
+ .IP "\(bu" 4
193
+ Perl 5.18.0 introduced a regression whereby \f(CW\*(C`\-bareword\*(C'\fR was no longer
194
+ permitted under the \f(CW\*(C`strict\*(C'\fR and \f(CW\*(C`integer\*(C'\fR pragmata when used together. This
195
+ has been fixed. [perl #120288]
196
+ .IP "\(bu" 4
197
+ Previously PerlIOBase_dup didn't check if pushing the new layer succeeded
198
+ before (optionally) setting the utf8 flag. This could cause
199
+ segfaults-by-nullpointer. This has been fixed.
200
+ .IP "\(bu" 4
201
+ A buffer overflow with very long identifiers has been fixed.
202
+ .IP "\(bu" 4
203
+ A regression from 5.16 in the handling of padranges led to assertion failures
204
+ if a keyword plugin declined to handle the second XmyX, but only after creating
205
+ a padop.
206
+ .Sp
207
+ This affected, at least, Devel::CallParser under threaded builds.
208
+ .Sp
209
+ This has been fixed.
210
+ .IP "\(bu" 4
211
+ The construct \f(CW\*(C`$r=qr/.../; /$r/p\*(C'\fR is now handled properly, an issue which
212
+ had been worsened by changes 5.18.0. [perl #118213]
213
+ .SH "Acknowledgements"
214
+ .IX Header "Acknowledgements"
215
+ Perl 5.18.2 represents approximately 3 months of development since Perl
216
+ 5.18.1 and contains approximately 980 lines of changes across 39 files from 4
217
+ authors.
218
+ .PP
219
+ Perl continues to flourish into its third decade thanks to a vibrant
220
+ community of users and developers. The following people are known to have
221
+ contributed the improvements that became Perl 5.18.2:
222
+ .PP
223
+ Craig A. Berry, David Mitchell, Ricardo Signes, Tony Cook.
224
+ .PP
225
+ The list above is almost certainly incomplete as it is automatically
226
+ generated from version control history. In particular, it does not include
227
+ the names of the (very much appreciated) contributors who reported issues to
228
+ the Perl bug tracker.
229
+ .PP
230
+ Many of the changes included in this version originated in the \s-1CPAN\s0 modules
231
+ included in Perl's core. We're grateful to the entire \s-1CPAN\s0 community for
232
+ helping Perl to flourish.
233
+ .PP
234
+ For a more complete list of all of Perl's historical contributors, please see
235
+ the \fI\s-1AUTHORS\s0\fR file in the Perl source distribution.
236
+ .SH "Reporting Bugs"
237
+ .IX Header "Reporting Bugs"
238
+ If you find what you think is a bug, you might check the articles recently
239
+ posted to the comp.lang.perl.misc newsgroup and the perl bug database at
240
+ http://rt.perl.org/perlbug/ . There may also be information at
241
+ http://www.perl.org/ , the Perl Home Page.
242
+ .PP
243
+ If you believe you have an unreported bug, please run the perlbug program
244
+ included with your release. Be sure to trim your bug down to a tiny but
245
+ sufficient test case. Your bug report, along with the output of \f(CW\*(C`perl \-V\*(C'\fR,
246
+ will be sent off to perlbug@perl.org to be analysed by the Perl porting team.
247
+ .PP
248
+ If the bug you are reporting has security implications, which make it
249
+ inappropriate to send to a publicly archived mailing list, then please send it
250
+ to perl5\-security\-report@perl.org. This points to a closed subscription
251
+ unarchived mailing list, which includes all the core committers, who will be
252
+ able to help assess the impact of issues, figure out a resolution, and help
253
+ co-ordinate the release of patches to mitigate or fix the problem across all
254
+ platforms on which Perl is supported. Please only use this address for
255
+ security issues in the Perl core, not for modules independently distributed on
256
+ \&\s-1CPAN.\s0
257
+ .SH "SEE ALSO"
258
+ .IX Header "SEE ALSO"
259
+ The \fIChanges\fR file for an explanation of how to view exhaustive details on
260
+ what changed.
261
+ .PP
262
+ The \fI\s-1INSTALL\s0\fR file for how to build Perl.
263
+ .PP
264
+ The \fI\s-1README\s0\fR file for general stuff.
265
+ .PP
266
+ The \fIArtistic\fR and \fICopying\fR files for copyright information.
data/miniconda3/man/man1/perl5184delta.1 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 "PERL5184DELTA 1"
136
+ .TH PERL5184DELTA 1 "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
+ perl5184delta \- what is new for perl v5.18.4
143
+ .SH "DESCRIPTION"
144
+ .IX Header "DESCRIPTION"
145
+ This document describes differences between the 5.18.4 release and the 5.18.2
146
+ release. \fBPlease note:\fR This document ignores perl 5.18.3, a broken release
147
+ which existed for a few hours only.
148
+ .PP
149
+ If you are upgrading from an earlier release such as 5.18.1, first read
150
+ perl5182delta, which describes differences between 5.18.1 and 5.18.2.
151
+ .SH "Modules and Pragmata"
152
+ .IX Header "Modules and Pragmata"
153
+ .SS "Updated Modules and Pragmata"
154
+ .IX Subsection "Updated Modules and Pragmata"
155
+ .IP "\(bu" 4
156
+ Digest::SHA has been upgraded from 5.84_01 to 5.84_02.
157
+ .IP "\(bu" 4
158
+ perl5db.pl has been upgraded from version 1.39_10 to 1.39_11.
159
+ .Sp
160
+ This fixes a crash in tab completion, where available. [perl #120827] Also,
161
+ filehandle information is properly reset after a pager is run. [perl #121456]
162
+ .SH "Platform Support"
163
+ .IX Header "Platform Support"
164
+ .SS "Platform-Specific Notes"
165
+ .IX Subsection "Platform-Specific Notes"
166
+ .IP "Win32" 4
167
+ .IX Item "Win32"
168
+ .RS 4
169
+ .PD 0
170
+ .IP "\(bu" 4
171
+ .PD
172
+ Introduced by
173
+ perl #113536 <https://rt.perl.org/Public/Bug/Display.html?id=113536>, a memory
174
+ leak on every call to \f(CW\*(C`system\*(C'\fR and backticks (\f(CW\*(C` \`\` \*(C'\fR), on most Win32 Perls
175
+ starting from 5.18.0 has been fixed. The memory leak only occurred if you
176
+ enabled pseudo-fork in your build of Win32 Perl, and were running that build on
177
+ Server 2003 R2 or newer \s-1OS.\s0 The leak does not appear on WinXP \s-1SP3.\s0
178
+ [perl #121676 <https://rt.perl.org/Public/Bug/Display.html?id=121676>]
179
+ .RE
180
+ .RS 4
181
+ .RE
182
+ .SH "Selected Bug Fixes"
183
+ .IX Header "Selected Bug Fixes"
184
+ .IP "\(bu" 4
185
+ The debugger now properly resets filehandles as needed. [perl #121456]
186
+ .IP "\(bu" 4
187
+ A segfault in Digest::SHA has been addressed. [perl #121421]
188
+ .IP "\(bu" 4
189
+ perl can again be built with \s-1USE_64_BIT_INT,\s0 with Visual C 2003, 32 bit.
190
+ [perl #120925]
191
+ .IP "\(bu" 4
192
+ A leading { (brace) in formats is properly parsed again. [perl #119973]
193
+ .IP "\(bu" 4
194
+ Copy the values used to perturb hash iteration when cloning an
195
+ interpreter. This was fairly harmless but caused \f(CW\*(C`valgrind\*(C'\fR to
196
+ complain. [perl #121336]
197
+ .IP "\(bu" 4
198
+ In Perl v5.18 \f(CW\*(C`undef *_; goto &sub\*(C'\fR and \f(CW\*(C`local *_; goto &sub\*(C'\fR started
199
+ crashing. This has been fixed. [perl #119949]
200
+ .SH "Acknowledgements"
201
+ .IX Header "Acknowledgements"
202
+ Perl 5.18.4 represents approximately 9 months of development since Perl 5.18.2
203
+ and contains approximately 2,000 lines of changes across 53 files from 13
204
+ authors.
205
+ .PP
206
+ Perl continues to flourish into its third decade thanks to a vibrant community
207
+ of users and developers. The following people are known to have contributed the
208
+ improvements that became Perl 5.18.4:
209
+ .PP
210
+ Daniel Dragan, David Mitchell, Doug Bell, Father Chrysostomos, Hiroo Hayashi,
211
+ James E Keenan, Karl Williamson, Mark Shelor, Ricardo Signes, Shlomi Fish,
212
+ Smylers, Steve Hay, Tony Cook.
213
+ .PP
214
+ The list above is almost certainly incomplete as it is automatically generated
215
+ from version control history. In particular, it does not include the names of
216
+ the (very much appreciated) contributors who reported issues to the Perl bug
217
+ tracker.
218
+ .PP
219
+ Many of the changes included in this version originated in the \s-1CPAN\s0 modules
220
+ included in Perl's core. We're grateful to the entire \s-1CPAN\s0 community for
221
+ helping Perl to flourish.
222
+ .PP
223
+ For a more complete list of all of Perl's historical contributors, please see
224
+ the \fI\s-1AUTHORS\s0\fR file in the Perl source distribution.
225
+ .SH "Reporting Bugs"
226
+ .IX Header "Reporting Bugs"
227
+ If you find what you think is a bug, you might check the articles recently
228
+ posted to the comp.lang.perl.misc newsgroup and the perl bug database at
229
+ http://rt.perl.org/perlbug/ . There may also be information at
230
+ http://www.perl.org/ , the Perl Home Page.
231
+ .PP
232
+ If you believe you have an unreported bug, please run the perlbug program
233
+ included with your release. Be sure to trim your bug down to a tiny but
234
+ sufficient test case. Your bug report, along with the output of \f(CW\*(C`perl \-V\*(C'\fR,
235
+ will be sent off to perlbug@perl.org to be analysed by the Perl porting team.
236
+ .PP
237
+ If the bug you are reporting has security implications, which make it
238
+ inappropriate to send to a publicly archived mailing list, then please send it
239
+ to perl5\-security\-report@perl.org. This points to a closed subscription
240
+ unarchived mailing list, which includes all the core committers, who will be
241
+ able to help assess the impact of issues, figure out a resolution, and help
242
+ co-ordinate the release of patches to mitigate or fix the problem across all
243
+ platforms on which Perl is supported. Please only use this address for
244
+ security issues in the Perl core, not for modules independently distributed on
245
+ \&\s-1CPAN.\s0
246
+ .SH "SEE ALSO"
247
+ .IX Header "SEE ALSO"
248
+ The \fIChanges\fR file for an explanation of how to view exhaustive details on
249
+ what changed.
250
+ .PP
251
+ The \fI\s-1INSTALL\s0\fR file for how to build Perl.
252
+ .PP
253
+ The \fI\s-1README\s0\fR file for general stuff.
254
+ .PP
255
+ The \fIArtistic\fR and \fICopying\fR files for copyright information.
data/miniconda3/man/man1/perl5201delta.1 ADDED
@@ -0,0 +1,418 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "PERL5201DELTA 1"
136
+ .TH PERL5201DELTA 1 "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
+ perl5201delta \- what is new for perl v5.20.1
143
+ .SH "DESCRIPTION"
144
+ .IX Header "DESCRIPTION"
145
+ This document describes differences between the 5.20.0 release and the 5.20.1
146
+ release.
147
+ .PP
148
+ If you are upgrading from an earlier release such as 5.18.0, first read
149
+ perl5200delta, which describes differences between 5.18.0 and 5.20.0.
150
+ .SH "Incompatible Changes"
151
+ .IX Header "Incompatible Changes"
152
+ There are no changes intentionally incompatible with 5.20.0. If any exist,
153
+ they are bugs, and we request that you submit a report. See \*(L"Reporting Bugs\*(R"
154
+ below.
155
+ .SH "Performance Enhancements"
156
+ .IX Header "Performance Enhancements"
157
+ .IP "\(bu" 4
158
+ An optimization to avoid problems with \s-1COW\s0 and deliberately overallocated PVs
159
+ has been disabled because it interfered with another, more important,
160
+ optimization, causing a slowdown on some platforms.
161
+ [perl #121975] <https://rt.perl.org/Ticket/Display.html?id=121975>
162
+ .IP "\(bu" 4
163
+ Returning a string from a lexical variable could be slow in some cases. This
164
+ has now been fixed.
165
+ [perl #121977] <https://rt.perl.org/Ticket/Display.html?id=121977>
166
+ .SH "Modules and Pragmata"
167
+ .IX Header "Modules and Pragmata"
168
+ .SS "Updated Modules and Pragmata"
169
+ .IX Subsection "Updated Modules and Pragmata"
170
+ .IP "\(bu" 4
171
+ Config::Perl::V has been upgraded from version 0.20 to 0.22.
172
+ .Sp
173
+ The list of Perl versions covered has been updated and some flaws in the
174
+ parsing have been fixed.
175
+ .IP "\(bu" 4
176
+ Exporter has been upgraded from version 5.70 to 5.71.
177
+ .Sp
178
+ Illegal \s-1POD\s0 syntax in the documentation has been corrected.
179
+ .IP "\(bu" 4
180
+ ExtUtils::CBuilder has been upgraded from version 0.280216 to 0.280217.
181
+ .Sp
182
+ Android builds now link to both \fB\-lperl\fR and \f(CW$Config::Config{perllibs}\fR.
183
+ .IP "\(bu" 4
184
+ File::Copy has been upgraded from version 2.29 to 2.30.
185
+ .Sp
186
+ The documentation now notes that \f(CW\*(C`copy\*(C'\fR will not overwrite read-only files.
187
+ .IP "\(bu" 4
188
+ Module::CoreList has been upgraded from version 3.11 to 5.020001.
189
+ .Sp
190
+ The list of Perl versions covered has been updated.
191
+ .IP "\(bu" 4
192
+ The PathTools module collection has been upgraded from version 3.47 to 3.48.
193
+ .Sp
194
+ Fallbacks are now in place when cross-compiling for Android and
195
+ \&\f(CW$Config::Config{sh}\fR is not yet defined.
196
+ [perl #121963] <https://rt.perl.org/Ticket/Display.html?id=121963>
197
+ .IP "\(bu" 4
198
+ PerlIO::via has been upgraded from version 0.14 to 0.15.
199
+ .Sp
200
+ A minor portability improvement has been made to the \s-1XS\s0 implementation.
201
+ .IP "\(bu" 4
202
+ Unicode::UCD has been upgraded from version 0.57 to 0.58.
203
+ .Sp
204
+ The documentation includes many clarifications and fixes.
205
+ .IP "\(bu" 4
206
+ utf8 has been upgraded from version 1.13 to 1.13_01.
207
+ .Sp
208
+ The documentation has some minor formatting improvements.
209
+ .IP "\(bu" 4
210
+ version has been upgraded from version 0.9908 to 0.9909.
211
+ .Sp
212
+ External libraries and Perl may have different ideas of what the locale is.
213
+ This is problematic when parsing version strings if the locale's numeric
214
+ separator has been changed. Version parsing has been patched to ensure it
215
+ handles the locales correctly.
216
+ [perl #121930] <https://rt.perl.org/Ticket/Display.html?id=121930>
217
+ .SH "Documentation"
218
+ .IX Header "Documentation"
219
+ .SS "Changes to Existing Documentation"
220
+ .IX Subsection "Changes to Existing Documentation"
221
+ \fIperlapi\fR
222
+ .IX Subsection "perlapi"
223
+ .IP "\(bu" 4
224
+ \&\f(CW\*(C`av_len\*(C'\fR \- Emphasize that this returns the highest index in the array, not the
225
+ size of the array.
226
+ [perl #120386] <https://rt.perl.org/Ticket/Display.html?id=120386>
227
+ .IP "\(bu" 4
228
+ Note that \f(CW\*(C`SvSetSV\*(C'\fR doesn't do set magic.
229
+ .IP "\(bu" 4
230
+ \&\f(CW\*(C`sv_usepvn_flags\*(C'\fR \- Fix documentation to mention the use of \f(CW\*(C`NewX\*(C'\fR instead of
231
+ \&\f(CW\*(C`malloc\*(C'\fR.
232
+ [perl #121869] <https://rt.perl.org/Ticket/Display.html?id=121869>
233
+ .IP "\(bu" 4
234
+ Clarify where \f(CW\*(C`NUL\*(C'\fR may be embedded or is required to terminate a string.
235
+ .PP
236
+ \fIperlfunc\fR
237
+ .IX Subsection "perlfunc"
238
+ .IP "\(bu" 4
239
+ Clarify the meaning of \f(CW\*(C`\-B\*(C'\fR and \f(CW\*(C`\-T\*(C'\fR.
240
+ .IP "\(bu" 4
241
+ \&\f(CW\*(C`\-l\*(C'\fR now notes that it will return false if symlinks aren't supported by the
242
+ file system.
243
+ [perl #121523] <https://rt.perl.org/Ticket/Display.html?id=121523>
244
+ .IP "\(bu" 4
245
+ Note that \f(CW\*(C`each\*(C'\fR, \f(CW\*(C`keys\*(C'\fR and \f(CW\*(C`values\*(C'\fR may produce different orderings for
246
+ tied hashes compared to other perl hashes.
247
+ [perl #121404] <https://rt.perl.org/Ticket/Display.html?id=121404>
248
+ .IP "\(bu" 4
249
+ Note that \f(CW\*(C`exec LIST\*(C'\fR and \f(CW\*(C`system LIST\*(C'\fR may fall back to the shell on Win32.
250
+ Only \f(CW\*(C`exec PROGRAM LIST\*(C'\fR and \f(CW\*(C`system PROGRAM LIST\*(C'\fR indirect object syntax
251
+ will reliably avoid using the shell. This has also been noted in perlport.
252
+ [perl #122046] <https://rt.perl.org/Ticket/Display.html?id=122046>
253
+ .IP "\(bu" 4
254
+ Clarify the meaning of \f(CW\*(C`our\*(C'\fR.
255
+ [perl #122132] <https://rt.perl.org/Ticket/Display.html?id=122132>
256
+ .PP
257
+ \fIperlguts\fR
258
+ .IX Subsection "perlguts"
259
+ .IP "\(bu" 4
260
+ Explain various ways of modifying an existing \s-1SV\s0's buffer.
261
+ [perl #116925] <https://rt.perl.org/Ticket/Display.html?id=116925>
262
+ .PP
263
+ \fIperlpolicy\fR
264
+ .IX Subsection "perlpolicy"
265
+ .IP "\(bu" 4
266
+ We now have a code of conduct for the \fIp5p\fR mailing list, as documented in
267
+ \&\*(L"\s-1STANDARDS OF CONDUCT\*(R"\s0 in perlpolicy.
268
+ .PP
269
+ \fIperlre\fR
270
+ .IX Subsection "perlre"
271
+ .IP "\(bu" 4
272
+ The \f(CW\*(C`/x\*(C'\fR modifier has been clarified to note that comments cannot be continued
273
+ onto the next line by escaping them.
274
+ .PP
275
+ \fIperlsyn\fR
276
+ .IX Subsection "perlsyn"
277
+ .IP "\(bu" 4
278
+ Mention the use of empty conditionals in \f(CW\*(C`for\*(C'\fR/\f(CW\*(C`while\*(C'\fR loops for infinite
279
+ loops.
280
+ .PP
281
+ \fIperlxs\fR
282
+ .IX Subsection "perlxs"
283
+ .IP "\(bu" 4
284
+ Added a discussion of locale issues in \s-1XS\s0 code.
285
+ .SH "Diagnostics"
286
+ .IX Header "Diagnostics"
287
+ The following additions or changes have been made to diagnostic output,
288
+ including warnings and fatal error messages. For the complete list of
289
+ diagnostic messages, see perldiag.
290
+ .SS "Changes to Existing Diagnostics"
291
+ .IX Subsection "Changes to Existing Diagnostics"
292
+ .IP "\(bu" 4
293
+ Variable length lookbehind not implemented in regex m/%s/
294
+ .Sp
295
+ Information about Unicode behaviour has been added.
296
+ .SH "Configuration and Compilation"
297
+ .IX Header "Configuration and Compilation"
298
+ .IP "\(bu" 4
299
+ Building Perl no longer writes to the source tree when configured with
300
+ \&\fIConfigure\fR's \fB\-Dmksymlinks\fR option.
301
+ [perl #121585] <https://rt.perl.org/Ticket/Display.html?id=121585>
302
+ .SH "Platform Support"
303
+ .IX Header "Platform Support"
304
+ .SS "Platform-Specific Notes"
305
+ .IX Subsection "Platform-Specific Notes"
306
+ .IP "Android" 4
307
+ .IX Item "Android"
308
+ Build support has been improved for cross-compiling in general and for Android
309
+ in particular.
310
+ .IP "OpenBSD" 4
311
+ .IX Item "OpenBSD"
312
+ Corrected architectures and version numbers used in configuration hints when
313
+ building Perl.
314
+ .IP "Solaris" 4
315
+ .IX Item "Solaris"
316
+ \&\fBc99\fR options have been cleaned up, hints look for \fBsolstudio\fR as well as
317
+ \&\fBSUNWspro\fR, and support for native \f(CW\*(C`setenv\*(C'\fR has been added.
318
+ .IP "\s-1VMS\s0" 4
319
+ .IX Item "VMS"
320
+ An old bug in feature checking, mainly affecting pre\-7.3 systems, has been
321
+ fixed.
322
+ .IP "Windows" 4
323
+ .IX Item "Windows"
324
+ \&\f(CW%I64d\fR is now being used instead of \f(CW%lld\fR for MinGW.
325
+ .SH "Internal Changes"
326
+ .IX Header "Internal Changes"
327
+ .IP "\(bu" 4
328
+ Added \*(L"sync_locale\*(R" in perlapi.
329
+ Changing the program's locale should be avoided by \s-1XS\s0 code. Nevertheless,
330
+ certain non-Perl libraries called from \s-1XS,\s0 such as \f(CW\*(C`Gtk\*(C'\fR do so. When this
331
+ happens, Perl needs to be told that the locale has changed. Use this function
332
+ to do so, before returning to Perl.
333
+ .SH "Selected Bug Fixes"
334
+ .IX Header "Selected Bug Fixes"
335
+ .IP "\(bu" 4
336
+ A bug has been fixed where zero-length assertions and code blocks inside of a
337
+ regex could cause \f(CW\*(C`pos\*(C'\fR to see an incorrect value.
338
+ [perl #122460] <https://rt.perl.org/Ticket/Display.html?id=122460>
339
+ .IP "\(bu" 4
340
+ Using \f(CW\*(C`s///e\*(C'\fR on tainted utf8 strings could issue bogus \*(L"Malformed \s-1UTF\-8\s0
341
+ character (unexpected end of string)\*(R" warnings. This has now been fixed.
342
+ [perl #122148] <https://rt.perl.org/Ticket/Display.html?id=122148>
343
+ .IP "\(bu" 4
344
+ \&\f(CW\*(C`system\*(C'\fR and friends should now work properly on more Android builds.
345
+ .Sp
346
+ Due to an oversight, the value specified through \fB\-Dtargetsh\fR to \fIConfigure\fR
347
+ would end up being ignored by some of the build process. This caused perls
348
+ cross-compiled for Android to end up with defective versions of \f(CW\*(C`system\*(C'\fR,
349
+ \&\f(CW\*(C`exec\*(C'\fR and backticks: the commands would end up looking for \fI/bin/sh\fR instead
350
+ of \fI/system/bin/sh\fR, and so would fail for the vast majority of devices,
351
+ leaving \f(CW$!\fR as \f(CW\*(C`ENOENT\*(C'\fR.
352
+ .IP "\(bu" 4
353
+ Many issues have been detected by Coverity <http://www.coverity.com/> and
354
+ fixed.
355
+ .SH "Acknowledgements"
356
+ .IX Header "Acknowledgements"
357
+ Perl 5.20.1 represents approximately 4 months of development since Perl 5.20.0
358
+ and contains approximately 12,000 lines of changes across 170 files from 36
359
+ authors.
360
+ .PP
361
+ Excluding auto-generated files, documentation and release tools, there were
362
+ approximately 2,600 lines of changes to 110 .pm, .t, .c and .h files.
363
+ .PP
364
+ Perl continues to flourish into its third decade thanks to a vibrant community
365
+ of users and developers. The following people are known to have contributed
366
+ the improvements that became Perl 5.20.1:
367
+ .PP
368
+ Aaron Crane, Abigail, Alberto Simo\*~es, Alexandr Ciornii, Alexandre (Midnite)
369
+ Jousset, Andrew Fresh, Andy Dougherty, Brian Fraser, Chris 'BinGOs' Williams,
370
+ Craig A. Berry, Daniel Dragan, David Golden, David Mitchell, H.Merijn Brand,
371
+ James E Keenan, Jan Dubois, Jarkko Hietaniemi, John Peacock, kafka, Karen
372
+ Etheridge, Karl Williamson, Lukas Mai, Matthew Horsfall, Michael Bunk, Peter
373
+ Martini, Rafael Garcia-Suarez, Reini Urban, Ricardo Signes, Shirakata Kentaro,
374
+ Smylers, Steve Hay, Thomas Sibley, Todd Rinaldo, Tony Cook, Vladimir Marek,
375
+ Yves Orton.
376
+ .PP
377
+ The list above is almost certainly incomplete as it is automatically generated
378
+ from version control history. In particular, it does not include the names of
379
+ the (very much appreciated) contributors who reported issues to the Perl bug
380
+ tracker.
381
+ .PP
382
+ Many of the changes included in this version originated in the \s-1CPAN\s0 modules
383
+ included in Perl's core. We're grateful to the entire \s-1CPAN\s0 community for
384
+ helping Perl to flourish.
385
+ .PP
386
+ For a more complete list of all of Perl's historical contributors, please see
387
+ the \fI\s-1AUTHORS\s0\fR file in the Perl source distribution.
388
+ .SH "Reporting Bugs"
389
+ .IX Header "Reporting Bugs"
390
+ If you find what you think is a bug, you might check the articles recently
391
+ posted to the comp.lang.perl.misc newsgroup and the perl bug database at
392
+ https://rt.perl.org/ . There may also be information at http://www.perl.org/ ,
393
+ the Perl Home Page.
394
+ .PP
395
+ If you believe you have an unreported bug, please run the perlbug program
396
+ included with your release. Be sure to trim your bug down to a tiny but
397
+ sufficient test case. Your bug report, along with the output of \f(CW\*(C`perl \-V\*(C'\fR,
398
+ will be sent off to perlbug@perl.org to be analysed by the Perl porting team.
399
+ .PP
400
+ If the bug you are reporting has security implications, which make it
401
+ inappropriate to send to a publicly archived mailing list, then please send it
402
+ to perl5\-security\-report@perl.org. This points to a closed subscription
403
+ unarchived mailing list, which includes all the core committers, who will be
404
+ able to help assess the impact of issues, figure out a resolution, and help
405
+ co-ordinate the release of patches to mitigate or fix the problem across all
406
+ platforms on which Perl is supported. Please only use this address for
407
+ security issues in the Perl core, not for modules independently distributed on
408
+ \&\s-1CPAN.\s0
409
+ .SH "SEE ALSO"
410
+ .IX Header "SEE ALSO"
411
+ The \fIChanges\fR file for an explanation of how to view exhaustive details on
412
+ what changed.
413
+ .PP
414
+ The \fI\s-1INSTALL\s0\fR file for how to build Perl.
415
+ .PP
416
+ The \fI\s-1README\s0\fR file for general stuff.
417
+ .PP
418
+ The \fIArtistic\fR and \fICopying\fR files for copyright information.
data/miniconda3/man/man1/perl5220delta.1 ADDED
The diff for this file is too large to render. See raw diff
 
data/miniconda3/man/man1/perl5224delta.1 ADDED
@@ -0,0 +1,242 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "PERL5224DELTA 1"
136
+ .TH PERL5224DELTA 1 "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
+ perl5224delta \- what is new for perl v5.22.4
143
+ .SH "DESCRIPTION"
144
+ .IX Header "DESCRIPTION"
145
+ This document describes differences between the 5.22.3 release and the 5.22.4
146
+ release.
147
+ .PP
148
+ If you are upgrading from an earlier release such as 5.22.2, first read
149
+ perl5223delta, which describes differences between 5.22.2 and 5.22.3.
150
+ .SH "Security"
151
+ .IX Header "Security"
152
+ .ie n .SS "Improved handling of '.' in @INC in base.pm"
153
+ .el .SS "Improved handling of '.' in \f(CW@INC\fP in base.pm"
154
+ .IX Subsection "Improved handling of '.' in @INC in base.pm"
155
+ The handling of (the removal of) \f(CW\*(Aq.\*(Aq\fR in \f(CW@INC\fR in base has been
156
+ improved. This resolves some problematic behaviour in the approach taken in
157
+ Perl 5.22.3, which is probably best described in the following two threads on
158
+ the Perl 5 Porters mailing list:
159
+ <http://www.nntp.perl.org/group/perl.perl5.porters/2016/08/msg238991.html>,
160
+ <http://www.nntp.perl.org/group/perl.perl5.porters/2016/10/msg240297.html>.
161
+ .ie n .SS """Escaped"" colons and relative paths in \s-1PATH\s0"
162
+ .el .SS "``Escaped'' colons and relative paths in \s-1PATH\s0"
163
+ .IX Subsection "Escaped colons and relative paths in PATH"
164
+ On Unix systems, Perl treats any relative paths in the \s-1PATH\s0 environment
165
+ variable as tainted when starting a new process. Previously, it was allowing a
166
+ backslash to escape a colon (unlike the \s-1OS\s0), consequently allowing relative
167
+ paths to be considered safe if the \s-1PATH\s0 was set to something like \f(CW\*(C`/\e:.\*(C'\fR. The
168
+ check has been fixed to treat \f(CW\*(C`.\*(C'\fR as tainted in that example.
169
+ .SH "Modules and Pragmata"
170
+ .IX Header "Modules and Pragmata"
171
+ .SS "Updated Modules and Pragmata"
172
+ .IX Subsection "Updated Modules and Pragmata"
173
+ .IP "\(bu" 4
174
+ base has been upgraded from version 2.22 to 2.22_01.
175
+ .IP "\(bu" 4
176
+ Module::CoreList has been upgraded from version 5.20170114_22 to 5.20170715_22.
177
+ .SH "Selected Bug Fixes"
178
+ .IX Header "Selected Bug Fixes"
179
+ .IP "\(bu" 4
180
+ Fixed a crash with \f(CW\*(C`s///l\*(C'\fR where it thought it was dealing with \s-1UTF\-8\s0 when it
181
+ wasn't.
182
+ [perl #129038] <https://rt.perl.org/Ticket/Display.html?id=129038>
183
+ .SH "Acknowledgements"
184
+ .IX Header "Acknowledgements"
185
+ Perl 5.22.4 represents approximately 6 months of development since Perl 5.22.3
186
+ and contains approximately 2,200 lines of changes across 52 files from 16
187
+ authors.
188
+ .PP
189
+ Excluding auto-generated files, documentation and release tools, there were
190
+ approximately 970 lines of changes to 18 .pm, .t, .c and .h files.
191
+ .PP
192
+ Perl continues to flourish into its third decade thanks to a vibrant community
193
+ of users and developers. The following people are known to have contributed
194
+ the improvements that became Perl 5.22.4:
195
+ .PP
196
+ Aaron Crane, Abigail, Aristotle Pagaltzis, Chris 'BinGOs' Williams, David
197
+ Mitchell, Eric Herman, Father Chrysostomos, James E Keenan, Karl Williamson,
198
+ Lukas Mai, Renee Baecker, Ricardo Signes, Sawyer X, Stevan Little, Steve Hay,
199
+ Tony Cook.
200
+ .PP
201
+ The list above is almost certainly incomplete as it is automatically generated
202
+ from version control history. In particular, it does not include the names of
203
+ the (very much appreciated) contributors who reported issues to the Perl bug
204
+ tracker.
205
+ .PP
206
+ Many of the changes included in this version originated in the \s-1CPAN\s0 modules
207
+ included in Perl's core. We're grateful to the entire \s-1CPAN\s0 community for
208
+ helping Perl to flourish.
209
+ .PP
210
+ For a more complete list of all of Perl's historical contributors, please see
211
+ the \fI\s-1AUTHORS\s0\fR file in the Perl source distribution.
212
+ .SH "Reporting Bugs"
213
+ .IX Header "Reporting Bugs"
214
+ If you find what you think is a bug, you might check the articles recently
215
+ posted to the comp.lang.perl.misc newsgroup and the perl bug database at
216
+ https://rt.perl.org/ . There may also be information at
217
+ http://www.perl.org/ , the Perl Home Page.
218
+ .PP
219
+ If you believe you have an unreported bug, please run the perlbug program
220
+ included with your release. Be sure to trim your bug down to a tiny but
221
+ sufficient test case. Your bug report, along with the output of \f(CW\*(C`perl \-V\*(C'\fR,
222
+ will be sent off to perlbug@perl.org to be analysed by the Perl porting team.
223
+ .PP
224
+ If the bug you are reporting has security implications, which make it
225
+ inappropriate to send to a publicly archived mailing list, then please send it
226
+ to perl5\-security\-report@perl.org. This points to a closed subscription
227
+ unarchived mailing list, which includes all the core committers, who will be
228
+ able to help assess the impact of issues, figure out a resolution, and help
229
+ co-ordinate the release of patches to mitigate or fix the problem across all
230
+ platforms on which Perl is supported. Please only use this address for
231
+ security issues in the Perl core, not for modules independently distributed on
232
+ \&\s-1CPAN.\s0
233
+ .SH "SEE ALSO"
234
+ .IX Header "SEE ALSO"
235
+ The \fIChanges\fR file for an explanation of how to view exhaustive details on
236
+ what changed.
237
+ .PP
238
+ The \fI\s-1INSTALL\s0\fR file for how to build Perl.
239
+ .PP
240
+ The \fI\s-1README\s0\fR file for general stuff.
241
+ .PP
242
+ The \fIArtistic\fR and \fICopying\fR files for copyright information.
data/miniconda3/man/man1/perl5241delta.1 ADDED
@@ -0,0 +1,364 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "PERL5241DELTA 1"
136
+ .TH PERL5241DELTA 1 "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
+ perl5241delta \- what is new for perl v5.24.1
143
+ .SH "DESCRIPTION"
144
+ .IX Header "DESCRIPTION"
145
+ This document describes differences between the 5.24.0 release and the 5.24.1
146
+ release.
147
+ .PP
148
+ If you are upgrading from an earlier release such as 5.22.0, first read
149
+ perl5240delta, which describes differences between 5.22.0 and 5.24.0.
150
+ .SH "Security"
151
+ .IX Header "Security"
152
+ .SS "\fB\-Di\fP switch is now required for PerlIO debugging output"
153
+ .IX Subsection "-Di switch is now required for PerlIO debugging output"
154
+ Previously PerlIO debugging output would be sent to the file specified by the
155
+ \&\f(CW\*(C`PERLIO_DEBUG\*(C'\fR environment variable if perl wasn't running setuid and the
156
+ \&\fB\-T\fR or \fB\-t\fR switches hadn't been parsed yet.
157
+ .PP
158
+ If perl performed output at a point where it hadn't yet parsed its switches
159
+ this could result in perl creating or overwriting the file named by
160
+ \&\f(CW\*(C`PERLIO_DEBUG\*(C'\fR even when the \fB\-T\fR switch had been supplied.
161
+ .PP
162
+ Perl now requires the \fB\-Di\fR switch to produce PerlIO debugging output. By
163
+ default this is written to \f(CW\*(C`stderr\*(C'\fR, but can optionally be redirected to a
164
+ file by setting the \f(CW\*(C`PERLIO_DEBUG\*(C'\fR environment variable.
165
+ .PP
166
+ If perl is running setuid or the \fB\-T\fR switch was supplied \f(CW\*(C`PERLIO_DEBUG\*(C'\fR is
167
+ ignored and the debugging output is sent to \f(CW\*(C`stderr\*(C'\fR as for any other \fB\-D\fR
168
+ switch.
169
+ .ie n .SS "Core modules and tools no longer search \fI"".""\fP for optional modules"
170
+ .el .SS "Core modules and tools no longer search \fI``.''\fP for optional modules"
171
+ .IX Subsection "Core modules and tools no longer search . for optional modules"
172
+ The tools and many modules supplied in core no longer search the default
173
+ current directory entry in \f(CW@INC\fR for optional modules. For
174
+ example, Storable will remove the final \fI\*(L".\*(R"\fR from \f(CW@INC\fR before trying to
175
+ load Log::Agent.
176
+ .PP
177
+ This prevents an attacker injecting an optional module into a process run by
178
+ another user where the current directory is writable by the attacker, e.g. the
179
+ \&\fI/tmp\fR directory.
180
+ .PP
181
+ In most cases this removal should not cause problems, but difficulties were
182
+ encountered with base, which treats every module name supplied as optional.
183
+ These difficulties have not yet been resolved, so for this release there are no
184
+ changes to base. We hope to have a fix for base in Perl 5.24.2.
185
+ .PP
186
+ To protect your own code from this attack, either remove the default \fI\*(L".\*(R"\fR
187
+ entry from \f(CW@INC\fR at the start of your script, so:
188
+ .PP
189
+ .Vb 3
190
+ \& #!/usr/bin/perl
191
+ \& use strict;
192
+ \& ...
193
+ .Ve
194
+ .PP
195
+ becomes:
196
+ .PP
197
+ .Vb 4
198
+ \& #!/usr/bin/perl
199
+ \& BEGIN { pop @INC if $INC[\-1] eq \*(Aq.\*(Aq }
200
+ \& use strict;
201
+ \& ...
202
+ .Ve
203
+ .PP
204
+ or for modules, remove \fI\*(L".\*(R"\fR from a localized \f(CW@INC\fR, so:
205
+ .PP
206
+ .Vb 1
207
+ \& my $can_foo = eval { require Foo; }
208
+ .Ve
209
+ .PP
210
+ becomes:
211
+ .PP
212
+ .Vb 5
213
+ \& my $can_foo = eval {
214
+ \& local @INC = @INC;
215
+ \& pop @INC if $INC[\-1] eq \*(Aq.\*(Aq;
216
+ \& require Foo;
217
+ \& };
218
+ .Ve
219
+ .SH "Incompatible Changes"
220
+ .IX Header "Incompatible Changes"
221
+ Other than the security changes above there are no changes intentionally
222
+ incompatible with Perl 5.24.0. If any exist, they are bugs, and we request
223
+ that you submit a report. See \*(L"Reporting Bugs\*(R" below.
224
+ .SH "Modules and Pragmata"
225
+ .IX Header "Modules and Pragmata"
226
+ .SS "Updated Modules and Pragmata"
227
+ .IX Subsection "Updated Modules and Pragmata"
228
+ .IP "\(bu" 4
229
+ Archive::Tar has been upgraded from version 2.04 to 2.04_01.
230
+ .IP "\(bu" 4
231
+ bignum has been upgraded from version 0.42 to 0.42_01.
232
+ .IP "\(bu" 4
233
+ \&\s-1CPAN\s0 has been upgraded from version 2.11 to 2.11_01.
234
+ .IP "\(bu" 4
235
+ Digest has been upgraded from version 1.17 to 1.17_01.
236
+ .IP "\(bu" 4
237
+ Digest::SHA has been upgraded from version 5.95 to 5.95_01.
238
+ .IP "\(bu" 4
239
+ Encode has been upgraded from version 2.80 to 2.80_01.
240
+ .IP "\(bu" 4
241
+ ExtUtils::MakeMaker has been upgraded from version 7.10_01 to 7.10_02.
242
+ .IP "\(bu" 4
243
+ File::Fetch has been upgraded from version 0.48 to 0.48_01.
244
+ .IP "\(bu" 4
245
+ File::Spec has been upgraded from version 3.63 to 3.63_01.
246
+ .IP "\(bu" 4
247
+ HTTP::Tiny has been upgraded from version 0.056 to 0.056_001.
248
+ .IP "\(bu" 4
249
+ \&\s-1IO\s0 has been upgraded from version 1.36 to 1.36_01.
250
+ .IP "\(bu" 4
251
+ The IO-Compress modules have been upgraded from version 2.069 to 2.069_001.
252
+ .IP "\(bu" 4
253
+ IPC::Cmd has been upgraded from version 0.92 to 0.92_01.
254
+ .IP "\(bu" 4
255
+ \&\s-1JSON::PP\s0 has been upgraded from version 2.27300 to 2.27300_01.
256
+ .IP "\(bu" 4
257
+ Locale::Maketext has been upgraded from version 1.26 to 1.26_01.
258
+ .IP "\(bu" 4
259
+ Locale::Maketext::Simple has been upgraded from version 0.21 to 0.21_01.
260
+ .IP "\(bu" 4
261
+ Memoize has been upgraded from version 1.03 to 1.03_01.
262
+ .IP "\(bu" 4
263
+ Module::CoreList has been upgraded from version 5.20160506 to 5.20170114_24.
264
+ .IP "\(bu" 4
265
+ Net::Ping has been upgraded from version 2.43 to 2.43_01.
266
+ .IP "\(bu" 4
267
+ Parse::CPAN::Meta has been upgraded from version 1.4417 to 1.4417_001.
268
+ .IP "\(bu" 4
269
+ Pod::Html has been upgraded from version 1.22 to 1.2201.
270
+ .IP "\(bu" 4
271
+ Pod::Perldoc has been upgraded from version 3.25_02 to 3.25_03.
272
+ .IP "\(bu" 4
273
+ Storable has been upgraded from version 2.56 to 2.56_01.
274
+ .IP "\(bu" 4
275
+ Sys::Syslog has been upgraded from version 0.33 to 0.33_01.
276
+ .IP "\(bu" 4
277
+ Test has been upgraded from version 1.28 to 1.28_01.
278
+ .IP "\(bu" 4
279
+ Test::Harness has been upgraded from version 3.36 to 3.36_01.
280
+ .IP "\(bu" 4
281
+ XSLoader has been upgraded from version 0.21 to 0.22, fixing a security hole
282
+ in which binary files could be loaded from a path outside of \f(CW@INC\fR.
283
+ [perl #128528] <https://rt.perl.org/Public/Bug/Display.html?id=128528>
284
+ .SH "Documentation"
285
+ .IX Header "Documentation"
286
+ .SS "Changes to Existing Documentation"
287
+ .IX Subsection "Changes to Existing Documentation"
288
+ \fIperlapio\fR
289
+ .IX Subsection "perlapio"
290
+ .IP "\(bu" 4
291
+ The documentation of \f(CW\*(C`PERLIO_DEBUG\*(C'\fR has been updated.
292
+ .PP
293
+ \fIperlrun\fR
294
+ .IX Subsection "perlrun"
295
+ .IP "\(bu" 4
296
+ The new \fB\-Di\fR switch has been documented, and the documentation of
297
+ \&\f(CW\*(C`PERLIO_DEBUG\*(C'\fR has been updated.
298
+ .SH "Testing"
299
+ .IX Header "Testing"
300
+ .IP "\(bu" 4
301
+ A new test script, \fIt/run/switchDx.t\fR, has been added to test that the new
302
+ \&\fB\-Di\fR switch is working correctly.
303
+ .SH "Selected Bug Fixes"
304
+ .IX Header "Selected Bug Fixes"
305
+ .IP "\(bu" 4
306
+ The change to hashbang redirection introduced in Perl 5.24.0, whereby perl
307
+ would redirect to another interpreter (Perl 6) if it found a hashbang path
308
+ which contains \*(L"perl\*(R" followed by \*(L"6\*(R", has been reverted because it broke in
309
+ cases such as \f(CW\*(C`#!/opt/perl64/bin/perl\*(C'\fR.
310
+ .SH "Acknowledgements"
311
+ .IX Header "Acknowledgements"
312
+ Perl 5.24.1 represents approximately 8 months of development since Perl 5.24.0
313
+ and contains approximately 8,100 lines of changes across 240 files from 18
314
+ authors.
315
+ .PP
316
+ Excluding auto-generated files, documentation and release tools, there were
317
+ approximately 2,200 lines of changes to 170 .pm, .t, .c and .h files.
318
+ .PP
319
+ Perl continues to flourish into its third decade thanks to a vibrant community
320
+ of users and developers. The following people are known to have contributed
321
+ the improvements that became Perl 5.24.1:
322
+ .PP
323
+ Aaron Crane, Alex Vandiver, Aristotle Pagaltzis, Chad Granum, Chris 'BinGOs'
324
+ Williams, Craig A. Berry, Father Chrysostomos, James E Keenan, Jarkko
325
+ Hietaniemi, Karen Etheridge, Leon Timmermans, Matthew Horsfall, Ricardo Signes,
326
+ Sawyer X, Se\*'bastien Aperghis-Tramoni, Stevan Little, Steve Hay, Tony Cook.
327
+ .PP
328
+ The list above is almost certainly incomplete as it is automatically generated
329
+ from version control history. In particular, it does not include the names of
330
+ the (very much appreciated) contributors who reported issues to the Perl bug
331
+ tracker.
332
+ .PP
333
+ Many of the changes included in this version originated in the \s-1CPAN\s0 modules
334
+ included in Perl's core. We're grateful to the entire \s-1CPAN\s0 community for
335
+ helping Perl to flourish.
336
+ .PP
337
+ For a more complete list of all of Perl's historical contributors, please see
338
+ the \fI\s-1AUTHORS\s0\fR file in the Perl source distribution.
339
+ .SH "Reporting Bugs"
340
+ .IX Header "Reporting Bugs"
341
+ If you find what you think is a bug, you might check the articles recently
342
+ posted to the comp.lang.perl.misc newsgroup and the Perl bug database at
343
+ <https://rt.perl.org/> . There may also be information at
344
+ <http://www.perl.org/> , the Perl Home Page.
345
+ .PP
346
+ If you believe you have an unreported bug, please run the perlbug program
347
+ included with your release. Be sure to trim your bug down to a tiny but
348
+ sufficient test case. Your bug report, along with the output of \f(CW\*(C`perl \-V\*(C'\fR,
349
+ will be sent off to perlbug@perl.org to be analysed by the Perl porting team.
350
+ .PP
351
+ If the bug you are reporting has security implications which make it
352
+ inappropriate to send to a publicly archived mailing list, then see
353
+ \&\*(L"\s-1SECURITY VULNERABILITY CONTACT INFORMATION\*(R"\s0 in perlsec for details of how to
354
+ report the issue.
355
+ .SH "SEE ALSO"
356
+ .IX Header "SEE ALSO"
357
+ The \fIChanges\fR file for an explanation of how to view exhaustive details on
358
+ what changed.
359
+ .PP
360
+ The \fI\s-1INSTALL\s0\fR file for how to build Perl.
361
+ .PP
362
+ The \fI\s-1README\s0\fR file for general stuff.
363
+ .PP
364
+ The \fIArtistic\fR and \fICopying\fR files for copyright information.
data/miniconda3/man/man1/perl5260delta.1 ADDED
The diff for this file is too large to render. See raw diff
 
data/miniconda3/man/man1/perl5281delta.1 ADDED
@@ -0,0 +1,254 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "PERL5281DELTA 1"
136
+ .TH PERL5281DELTA 1 "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
+ perl5281delta \- what is new for perl v5.28.1
143
+ .SH "DESCRIPTION"
144
+ .IX Header "DESCRIPTION"
145
+ This document describes differences between the 5.28.0 release and the 5.28.1
146
+ release.
147
+ .PP
148
+ If you are upgrading from an earlier release such as 5.26.0, first read
149
+ perl5280delta, which describes differences between 5.26.0 and 5.28.0.
150
+ .SH "Security"
151
+ .IX Header "Security"
152
+ .SS "[\s-1CVE\-2018\-18311\s0] Integer overflow leading to buffer overflow and segmentation fault"
153
+ .IX Subsection "[CVE-2018-18311] Integer overflow leading to buffer overflow and segmentation fault"
154
+ Integer arithmetic in \f(CW\*(C`Perl_my_setenv()\*(C'\fR could wrap when the combined length
155
+ of the environment variable name and value exceeded around 0x7fffffff. This
156
+ could lead to writing beyond the end of an allocated buffer with attacker
157
+ supplied data.
158
+ .PP
159
+ [perl #133204] <https://rt.perl.org/Ticket/Display.html?id=133204>
160
+ .SS "[\s-1CVE\-2018\-18312\s0] Heap-buffer-overflow write in S_regatom (regcomp.c)"
161
+ .IX Subsection "[CVE-2018-18312] Heap-buffer-overflow write in S_regatom (regcomp.c)"
162
+ A crafted regular expression could cause heap-buffer-overflow write during
163
+ compilation, potentially allowing arbitrary code execution.
164
+ .PP
165
+ [perl #133423] <https://rt.perl.org/Ticket/Display.html?id=133423>
166
+ .SH "Incompatible Changes"
167
+ .IX Header "Incompatible Changes"
168
+ There are no changes intentionally incompatible with 5.28.0. If any exist,
169
+ they are bugs, and we request that you submit a report. See
170
+ \&\*(L"Reporting Bugs\*(R" below.
171
+ .SH "Modules and Pragmata"
172
+ .IX Header "Modules and Pragmata"
173
+ .SS "Updated Modules and Pragmata"
174
+ .IX Subsection "Updated Modules and Pragmata"
175
+ .IP "\(bu" 4
176
+ Module::CoreList has been upgraded from version 5.20180622 to 5.20181129_28.
177
+ .SH "Selected Bug Fixes"
178
+ .IX Header "Selected Bug Fixes"
179
+ .IP "\(bu" 4
180
+ Perl 5.28 introduced an \f(CW\*(C`index()\*(C'\fR optimization when comparing to \-1 (or
181
+ indirectly, e.g. >= 0). When this optimization was triggered inside a \f(CW\*(C`when\*(C'\fR
182
+ clause it caused a warning (\*(L"Argument \f(CW%s\fR isn't numeric in smart match\*(R"). This
183
+ has now been fixed.
184
+ [perl #133368] <https://rt.perl.org/Ticket/Display.html?id=133368>
185
+ .IP "\(bu" 4
186
+ Matching of decimal digits in script runs, introduced in Perl 5.28, had a bug
187
+ that led to \f(CW"1\eN{THAI DIGIT FIVE}"\fR matching \f(CW\*(C`/^(*sr:\ed+)$/\*(C'\fR when it should
188
+ not. This has now been fixed.
189
+ .IP "\(bu" 4
190
+ The new in-place editing code no longer leaks directory handles.
191
+ [perl #133314] <https://rt.perl.org/Ticket/Display.html?id=133314>
192
+ .SH "Acknowledgements"
193
+ .IX Header "Acknowledgements"
194
+ Perl 5.28.1 represents approximately 5 months of development since Perl 5.28.0
195
+ and contains approximately 6,100 lines of changes across 44 files from 12
196
+ authors.
197
+ .PP
198
+ Excluding auto-generated files, documentation and release tools, there were
199
+ approximately 700 lines of changes to 12 .pm, .t, .c and .h files.
200
+ .PP
201
+ Perl continues to flourish into its fourth decade thanks to a vibrant community
202
+ of users and developers. The following people are known to have contributed
203
+ the improvements that became Perl 5.28.1:
204
+ .PP
205
+ Aaron Crane, Abigail, Chris 'BinGOs' Williams, Dagfinn Ilmari Mannsa\*oker, David
206
+ Mitchell, James E Keenan, John \s-1SJ\s0 Anderson, Karen Etheridge, Karl Williamson,
207
+ Sawyer X, Steve Hay, Tony Cook.
208
+ .PP
209
+ The list above is almost certainly incomplete as it is automatically generated
210
+ from version control history. In particular, it does not include the names of
211
+ the (very much appreciated) contributors who reported issues to the Perl bug
212
+ tracker.
213
+ .PP
214
+ Many of the changes included in this version originated in the \s-1CPAN\s0 modules
215
+ included in Perl's core. We're grateful to the entire \s-1CPAN\s0 community for
216
+ helping Perl to flourish.
217
+ .PP
218
+ For a more complete list of all of Perl's historical contributors, please see
219
+ the \fI\s-1AUTHORS\s0\fR file in the Perl source distribution.
220
+ .SH "Reporting Bugs"
221
+ .IX Header "Reporting Bugs"
222
+ If you find what you think is a bug, you might check the perl bug database
223
+ at <https://rt.perl.org/> . There may also be information at
224
+ <http://www.perl.org/> , the Perl Home Page.
225
+ .PP
226
+ If you believe you have an unreported bug, please run the perlbug program
227
+ included with your release. Be sure to trim your bug down to a tiny but
228
+ sufficient test case. Your bug report, along with the output of \f(CW\*(C`perl \-V\*(C'\fR,
229
+ will be sent off to perlbug@perl.org to be analysed by the Perl porting team.
230
+ .PP
231
+ If the bug you are reporting has security implications which make it
232
+ inappropriate to send to a publicly archived mailing list, then see
233
+ \&\*(L"\s-1SECURITY VULNERABILITY CONTACT INFORMATION\*(R"\s0 in perlsec
234
+ for details of how to report the issue.
235
+ .SH "Give Thanks"
236
+ .IX Header "Give Thanks"
237
+ If you wish to thank the Perl 5 Porters for the work we had done in Perl 5,
238
+ you can do so by running the \f(CW\*(C`perlthanks\*(C'\fR program:
239
+ .PP
240
+ .Vb 1
241
+ \& perlthanks
242
+ .Ve
243
+ .PP
244
+ This will send an email to the Perl 5 Porters list with your show of thanks.
245
+ .SH "SEE ALSO"
246
+ .IX Header "SEE ALSO"
247
+ The \fIChanges\fR file for an explanation of how to view exhaustive details on
248
+ what changed.
249
+ .PP
250
+ The \fI\s-1INSTALL\s0\fR file for how to build Perl.
251
+ .PP
252
+ The \fI\s-1README\s0\fR file for general stuff.
253
+ .PP
254
+ The \fIArtistic\fR and \fICopying\fR files for copyright information.
data/miniconda3/man/man1/perl5301delta.1 ADDED
@@ -0,0 +1,284 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "PERL5301DELTA 1"
136
+ .TH PERL5301DELTA 1 "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
+ perl5301delta \- what is new for perl v5.30.1
143
+ .SH "DESCRIPTION"
144
+ .IX Header "DESCRIPTION"
145
+ This document describes differences between the 5.30.0 release and the 5.30.1
146
+ release.
147
+ .PP
148
+ If you are upgrading from an earlier release such as 5.29.0, first read
149
+ perl5300delta, which describes differences between 5.29.0 and 5.30.0.
150
+ .SH "Incompatible Changes"
151
+ .IX Header "Incompatible Changes"
152
+ There are no changes intentionally incompatible with 5.30.1. If any exist,
153
+ they are bugs, and we request that you submit a report. See
154
+ \&\*(L"Reporting Bugs\*(R" below.
155
+ .SH "Modules and Pragmata"
156
+ .IX Header "Modules and Pragmata"
157
+ .SS "Updated Modules and Pragmata"
158
+ .IX Subsection "Updated Modules and Pragmata"
159
+ .IP "\(bu" 4
160
+ Module::CoreList has been upgraded from version 5.20190522 to 5.20191110.
161
+ .SH "Documentation"
162
+ .IX Header "Documentation"
163
+ .SS "Changes to Existing Documentation"
164
+ .IX Subsection "Changes to Existing Documentation"
165
+ We have attempted to update the documentation to reflect the changes listed in
166
+ this document. If you find any we have missed, send email to
167
+ perlbug@perl.org <mailto:perlbug@perl.org>.
168
+ .PP
169
+ Additionally, documentation has been updated to reference GitHub as the new
170
+ canonical repository and to describe the new GitHub pull request workflow.
171
+ .SH "Configuration and Compilation"
172
+ .IX Header "Configuration and Compilation"
173
+ .IP "\(bu" 4
174
+ The \f(CW\*(C`ECHO\*(C'\fR macro is now defined. This is used in a \f(CW\*(C`dtrace\*(C'\fR rule that was
175
+ originally changed for FreeBSD, and the FreeBSD make apparently predefines it.
176
+ The Solaris make does not predefine \f(CW\*(C`ECHO\*(C'\fR which broke this rule on Solaris.
177
+ [perl #17057] <https://github.com/perl/perl5/issues/17057>
178
+ .SH "Testing"
179
+ .IX Header "Testing"
180
+ Tests were added and changed to reflect the other additions and changes in this
181
+ release.
182
+ .SH "Platform Support"
183
+ .IX Header "Platform Support"
184
+ .SS "Platform-Specific Notes"
185
+ .IX Subsection "Platform-Specific Notes"
186
+ .IP "Win32" 4
187
+ .IX Item "Win32"
188
+ The locale tests could crash on Win32 due to a Windows bug, and separately due
189
+ to the \s-1CRT\s0 throwing an exception if the locale name wasn't validly encoded in
190
+ the current code page.
191
+ .Sp
192
+ For the second we now decode the locale name ourselves, and always decode it as
193
+ \&\s-1UTF\-8.\s0
194
+ .Sp
195
+ [perl #16922] <https://github.com/perl/perl5/issues/16922>
196
+ .SH "Selected Bug Fixes"
197
+ .IX Header "Selected Bug Fixes"
198
+ .IP "\(bu" 4
199
+ Setting \f(CW$)\fR now properly sets supplementary group ids, if you have the
200
+ necessary privileges.
201
+ [perl #17031] <https://github.com/perl/perl5/issues/17031>
202
+ .IP "\(bu" 4
203
+ \&\f(CW\*(C`readline @foo\*(C'\fR now evaluates \f(CW@foo\fR in scalar context. Previously, it would
204
+ be evaluated in list context, and since \fBreadline()\fR pops only one argument from
205
+ the stack, the stack could underflow, or be left with unexpected values on it.
206
+ [perl #16929] <https://github.com/perl/perl5/issues/16929>
207
+ .IP "\(bu" 4
208
+ \&\fBsv_gets()\fR now recovers better if the target \s-1SV\s0 is modified by a signal handler.
209
+ [perl #16960] <https://github.com/perl/perl5/issues/16960>
210
+ .IP "\(bu" 4
211
+ Matching a non\-\f(CW\*(C`SVf_UTF8\*(C'\fR string against a regular expression containing
212
+ Unicode literals could leak an \s-1SV\s0 on each match attempt.
213
+ [perl #17140] <https://github.com/perl/perl5/issues/17140>
214
+ .IP "\(bu" 4
215
+ \&\f(CW\*(C`sprintf("%.*a", \-10000, $x)\*(C'\fR would cause a buffer overflow due to
216
+ mishandling of the negative precision value.
217
+ [perl #16942] <https://github.com/perl/perl5/issues/16942>
218
+ .IP "\(bu" 4
219
+ \&\f(CW\*(C`scalar()\*(C'\fR on a reference could cause an erroneous assertion failure during
220
+ compilation.
221
+ [perl #16969] <https://github.com/perl/perl5/issues/16969>
222
+ .SH "Acknowledgements"
223
+ .IX Header "Acknowledgements"
224
+ Perl 5.30.1 represents approximately 6 months of development since Perl 5.30.0
225
+ and contains approximately 4,700 lines of changes across 67 files from 14
226
+ authors.
227
+ .PP
228
+ Excluding auto-generated files, documentation and release tools, there were
229
+ approximately 910 lines of changes to 20 .pm, .t, .c and .h files.
230
+ .PP
231
+ Perl continues to flourish into its fourth decade thanks to a vibrant community
232
+ of users and developers. The following people are known to have contributed
233
+ the improvements that became Perl 5.30.1:
234
+ .PP
235
+ Chris 'BinGOs' Williams, Dan Book, David Mitchell, Hugo van der Sanden, James E
236
+ Keenan, Karen Etheridge, Karl Williamson, Manuel Mausz, Max Maischein, Nicolas
237
+ R., Sawyer X, Steve Hay, Tom Hukins, Tony Cook.
238
+ .PP
239
+ The list above is almost certainly incomplete as it is automatically generated
240
+ from version control history. In particular, it does not include the names of
241
+ the (very much appreciated) contributors who reported issues to the Perl bug
242
+ tracker.
243
+ .PP
244
+ Many of the changes included in this version originated in the \s-1CPAN\s0 modules
245
+ included in Perl's core. We're grateful to the entire \s-1CPAN\s0 community for
246
+ helping Perl to flourish.
247
+ .PP
248
+ For a more complete list of all of Perl's historical contributors, please see
249
+ the \fI\s-1AUTHORS\s0\fR file in the Perl source distribution.
250
+ .SH "Reporting Bugs"
251
+ .IX Header "Reporting Bugs"
252
+ If you find what you think is a bug, you might check the perl bug database at
253
+ <https://rt.perl.org/>. There may also be information at
254
+ <http://www.perl.org/>, the Perl Home Page.
255
+ .PP
256
+ If you believe you have an unreported bug, please run the perlbug program
257
+ included with your release. Be sure to trim your bug down to a tiny but
258
+ sufficient test case. Your bug report, along with the output of \f(CW\*(C`perl \-V\*(C'\fR,
259
+ will be sent off to perlbug@perl.org to be analysed by the Perl porting team.
260
+ .PP
261
+ If the bug you are reporting has security implications which make it
262
+ inappropriate to send to a publicly archived mailing list, then see
263
+ \&\*(L"\s-1SECURITY VULNERABILITY CONTACT INFORMATION\*(R"\s0 in perlsec for details of how to
264
+ report the issue.
265
+ .SH "Give Thanks"
266
+ .IX Header "Give Thanks"
267
+ If you wish to thank the Perl 5 Porters for the work we had done in Perl 5, you
268
+ can do so by running the \f(CW\*(C`perlthanks\*(C'\fR program:
269
+ .PP
270
+ .Vb 1
271
+ \& perlthanks
272
+ .Ve
273
+ .PP
274
+ This will send an email to the Perl 5 Porters list with your show of thanks.
275
+ .SH "SEE ALSO"
276
+ .IX Header "SEE ALSO"
277
+ The \fIChanges\fR file for an explanation of how to view exhaustive details on
278
+ what changed.
279
+ .PP
280
+ The \fI\s-1INSTALL\s0\fR file for how to build Perl.
281
+ .PP
282
+ The \fI\s-1README\s0\fR file for general stuff.
283
+ .PP
284
+ The \fIArtistic\fR and \fICopying\fR files for copyright information.
data/miniconda3/man/man1/perl5303delta.1 ADDED
@@ -0,0 +1,262 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "PERL5303DELTA 1"
136
+ .TH PERL5303DELTA 1 "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
+ perl5303delta \- what is new for perl v5.30.3
143
+ .SH "DESCRIPTION"
144
+ .IX Header "DESCRIPTION"
145
+ This document describes differences between the 5.30.2 release and the 5.30.3
146
+ release.
147
+ .PP
148
+ If you are upgrading from an earlier release such as 5.30.1, first read
149
+ perl5302delta, which describes differences between 5.30.1 and 5.30.2.
150
+ .SH "Security"
151
+ .IX Header "Security"
152
+ .SS "[\s-1CVE\-2020\-10543\s0] Buffer overflow caused by a crafted regular expression"
153
+ .IX Subsection "[CVE-2020-10543] Buffer overflow caused by a crafted regular expression"
154
+ A signed \f(CW\*(C`size_t\*(C'\fR integer overflow in the storage space calculations for
155
+ nested regular expression quantifiers could cause a heap buffer overflow in
156
+ Perl's regular expression compiler that overwrites memory allocated after the
157
+ regular expression storage space with attacker supplied data.
158
+ .PP
159
+ The target system needs a sufficient amount of memory to allocate partial
160
+ expansions of the nested quantifiers prior to the overflow occurring. This
161
+ requirement is unlikely to be met on 64\-bit systems.
162
+ .PP
163
+ Discovered by: ManhND of The Tarantula Team, VinCSS (a member of Vingroup).
164
+ .SS "[\s-1CVE\-2020\-10878\s0] Integer overflow via malformed bytecode produced by a crafted regular expression"
165
+ .IX Subsection "[CVE-2020-10878] Integer overflow via malformed bytecode produced by a crafted regular expression"
166
+ Integer overflows in the calculation of offsets between instructions for the
167
+ regular expression engine could cause corruption of the intermediate language
168
+ state of a compiled regular expression. An attacker could abuse this behaviour
169
+ to insert instructions into the compiled form of a Perl regular expression.
170
+ .PP
171
+ Discovered by: Hugo van der Sanden and Slaven Rezic.
172
+ .SS "[\s-1CVE\-2020\-12723\s0] Buffer overflow caused by a crafted regular expression"
173
+ .IX Subsection "[CVE-2020-12723] Buffer overflow caused by a crafted regular expression"
174
+ Recursive calls to \f(CW\*(C`S_study_chunk()\*(C'\fR by Perl's regular expression compiler to
175
+ optimize the intermediate language representation of a regular expression could
176
+ cause corruption of the intermediate language state of a compiled regular
177
+ expression.
178
+ .PP
179
+ Discovered by: Sergey Aleynikov.
180
+ .SS "Additional Note"
181
+ .IX Subsection "Additional Note"
182
+ An application written in Perl would only be vulnerable to any of the above
183
+ flaws if it evaluates regular expressions supplied by the attacker. Evaluating
184
+ regular expressions in this fashion is known to be dangerous since the regular
185
+ expression engine does not protect against denial of service attacks in this
186
+ usage scenario.
187
+ .SH "Incompatible Changes"
188
+ .IX Header "Incompatible Changes"
189
+ There are no changes intentionally incompatible with Perl 5.30.2. If any
190
+ exist, they are bugs, and we request that you submit a report. See
191
+ \&\*(L"Reporting Bugs\*(R" below.
192
+ .SH "Modules and Pragmata"
193
+ .IX Header "Modules and Pragmata"
194
+ .SS "Updated Modules and Pragmata"
195
+ .IX Subsection "Updated Modules and Pragmata"
196
+ .IP "\(bu" 4
197
+ Module::CoreList has been upgraded from version 5.20200314 to 5.20200601_30.
198
+ .SH "Testing"
199
+ .IX Header "Testing"
200
+ Tests were added and changed to reflect the other additions and changes in this
201
+ release.
202
+ .SH "Acknowledgements"
203
+ .IX Header "Acknowledgements"
204
+ Perl 5.30.3 represents approximately 3 months of development since Perl 5.30.2
205
+ and contains approximately 1,100 lines of changes across 42 files from 7
206
+ authors.
207
+ .PP
208
+ Excluding auto-generated files, documentation and release tools, there were
209
+ approximately 350 lines of changes to 8 .pm, .t, .c and .h files.
210
+ .PP
211
+ Perl continues to flourish into its fourth decade thanks to a vibrant community
212
+ of users and developers. The following people are known to have contributed
213
+ the improvements that became Perl 5.30.3:
214
+ .PP
215
+ Chris 'BinGOs' Williams, Hugo van der Sanden, John Lightsey, Karl Williamson,
216
+ Nicolas R., Sawyer X, Steve Hay.
217
+ .PP
218
+ The list above is almost certainly incomplete as it is automatically generated
219
+ from version control history. In particular, it does not include the names of
220
+ the (very much appreciated) contributors who reported issues to the Perl bug
221
+ tracker.
222
+ .PP
223
+ Many of the changes included in this version originated in the \s-1CPAN\s0 modules
224
+ included in Perl's core. We're grateful to the entire \s-1CPAN\s0 community for
225
+ helping Perl to flourish.
226
+ .PP
227
+ For a more complete list of all of Perl's historical contributors, please see
228
+ the \fI\s-1AUTHORS\s0\fR file in the Perl source distribution.
229
+ .SH "Reporting Bugs"
230
+ .IX Header "Reporting Bugs"
231
+ If you find what you think is a bug, you might check the perl bug database at
232
+ <https://github.com/Perl/perl5/issues>. There may also be information at
233
+ <https://www.perl.org/>, the Perl Home Page.
234
+ .PP
235
+ If you believe you have an unreported bug, please open an issue at
236
+ <https://github.com/Perl/perl5/issues>. Be sure to trim your bug down to a
237
+ tiny but sufficient test case.
238
+ .PP
239
+ If the bug you are reporting has security implications which make it
240
+ inappropriate to send to a public issue tracker, then see
241
+ \&\*(L"\s-1SECURITY VULNERABILITY CONTACT INFORMATION\*(R"\s0 in perlsec for details of how to
242
+ report the issue.
243
+ .SH "Give Thanks"
244
+ .IX Header "Give Thanks"
245
+ If you wish to thank the Perl 5 Porters for the work we had done in Perl 5, you
246
+ can do so by running the \f(CW\*(C`perlthanks\*(C'\fR program:
247
+ .PP
248
+ .Vb 1
249
+ \& perlthanks
250
+ .Ve
251
+ .PP
252
+ This will send an email to the Perl 5 Porters list with your show of thanks.
253
+ .SH "SEE ALSO"
254
+ .IX Header "SEE ALSO"
255
+ The \fIChanges\fR file for an explanation of how to view exhaustive details on
256
+ what changed.
257
+ .PP
258
+ The \fI\s-1INSTALL\s0\fR file for how to build Perl.
259
+ .PP
260
+ The \fI\s-1README\s0\fR file for general stuff.
261
+ .PP
262
+ The \fIArtistic\fR and \fICopying\fR files for copyright information.
data/miniconda3/man/man1/perl5320delta.1 ADDED
@@ -0,0 +1,1480 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "PERL5320DELTA 1"
136
+ .TH PERL5320DELTA 1 "2020-10-17" "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
+ perl5320delta \- what is new for perl v5.32.0
143
+ .SH "DESCRIPTION"
144
+ .IX Header "DESCRIPTION"
145
+ This document describes differences between the 5.30.0 release and the 5.32.0
146
+ release.
147
+ .PP
148
+ If you are upgrading from an earlier release such as 5.28.0, first read
149
+ perl5300delta, which describes differences between 5.28.0 and 5.30.0.
150
+ .SH "Core Enhancements"
151
+ .IX Header "Core Enhancements"
152
+ .SS "The isa Operator"
153
+ .IX Subsection "The isa Operator"
154
+ A new experimental infix operator called \f(CW\*(C`isa\*(C'\fR tests whether a given object
155
+ is an instance of a given class or a class derived from it:
156
+ .PP
157
+ .Vb 1
158
+ \& if( $obj isa Package::Name ) { ... }
159
+ .Ve
160
+ .PP
161
+ For more detail see \*(L"Class Instance Operator\*(R" in perlop.
162
+ .SS "Unicode 13.0 is supported"
163
+ .IX Subsection "Unicode 13.0 is supported"
164
+ See <https://www.unicode.org/versions/Unicode13.0.0/> for details.
165
+ .SS "Chained comparisons capability"
166
+ .IX Subsection "Chained comparisons capability"
167
+ Some comparison operators, as their associativity, \fIchain\fR with some
168
+ operators of the same precedence (but never with operators of different
169
+ precedence).
170
+ .PP
171
+ .Vb 1
172
+ \& if ( $x < $y <= $z ) {...}
173
+ .Ve
174
+ .PP
175
+ behaves exactly like:
176
+ .PP
177
+ .Vb 1
178
+ \& if ( $x < $y && $y <= $z ) {...}
179
+ .Ve
180
+ .PP
181
+ (assuming that \f(CW"$y"\fR is as simple a scalar as it looks.)
182
+ .PP
183
+ You can read more about this in perlop under
184
+ \&\*(L"Operator Precedence and Associativity\*(R" in perlop.
185
+ .ie n .SS "New Unicode properties ""Identifier_Status"" and ""Identifier_Type"" supported"
186
+ .el .SS "New Unicode properties \f(CWIdentifier_Status\fP and \f(CWIdentifier_Type\fP supported"
187
+ .IX Subsection "New Unicode properties Identifier_Status and Identifier_Type supported"
188
+ Unicode has revised its regular expression requirements:
189
+ <https://www.unicode.org/reports/tr18/tr18\-21.html>.
190
+ As part of that they are wanting more properties to be exposed, ones
191
+ that aren't part of the strict \s-1UCD\s0 (Unicode character database). These
192
+ two are used for examining inputs for security purposes. Details on
193
+ their usage is at <https://www.unicode.org/reports/tr39/>.
194
+ .ie n .SS "It is now possible to write ""qr/\ep{Name=...}/"", or ""qr!\ep{na=/(SMILING|GRINNING) FACE/}!"""
195
+ .el .SS "It is now possible to write \f(CWqr/\ep{Name=...}/\fP, or \f(CWqr!\ep{na=/(SMILING|GRINNING) FACE/}!\fP"
196
+ .IX Subsection "It is now possible to write qr/p{Name=...}/, or qr!p{na=/(SMILING|GRINNING) FACE/}!"
197
+ The Unicode Name property is now accessible in regular expression
198
+ patterns, as an alternative to \f(CW\*(C`\eN{...}\*(C'\fR.
199
+ A comparison of the two methods is given in
200
+ \&\*(L"Comparison of \eN{...} and \ep{name=...}\*(R" in perlunicode.
201
+ .PP
202
+ The second example above shows that wildcard subpatterns are also usable
203
+ in this property. See \*(L"Wildcards in Property Values\*(R" in perlunicode.
204
+ .ie n .SS "Improvement of ""POSIX::mblen()"", ""mbtowc"", and ""wctomb"""
205
+ .el .SS "Improvement of \f(CWPOSIX::mblen()\fP, \f(CWmbtowc\fP, and \f(CWwctomb\fP"
206
+ .IX Subsection "Improvement of POSIX::mblen(), mbtowc, and wctomb"
207
+ The \f(CW\*(C`POSIX::mblen()\*(C'\fR, \f(CW\*(C`mbtowc\*(C'\fR, and \f(CW\*(C`wctomb\*(C'\fR functions now
208
+ work on shift state locales and are thread-safe on C99 and above
209
+ compilers when executed on a platform that has locale thread-safety; the
210
+ length parameters are now optional.
211
+ .PP
212
+ These functions are always executed under the current C language locale.
213
+ (See perllocale.) Most locales are stateless, but a few, notably the
214
+ very rarely encountered \s-1ISO 2022,\s0 maintain a state between calls to
215
+ these functions. Previously the state was cleared on every call, but
216
+ now the state is not reset unless the appropriate parameter is \f(CW\*(C`undef\*(C'\fR.
217
+ .PP
218
+ On threaded perls, the C99 functions \fBmbrlen\fR\|(3), \fBmbrtowc\fR\|(3), and
219
+ \&\fBwcrtomb\fR\|(3), when available, are substituted for the plain functions.
220
+ This makes these functions thread-safe when executing on a locale
221
+ thread-safe platform.
222
+ .PP
223
+ The string length parameters in \f(CW\*(C`mblen\*(C'\fR and \f(CW\*(C`mbtowc\*(C'\fR are now optional;
224
+ useful only if you wish to restrict the length parsed in the source
225
+ string to less than the actual length.
226
+ .SS "Alpha assertions are no longer experimental"
227
+ .IX Subsection "Alpha assertions are no longer experimental"
228
+ See \*(L"(*pla:pattern)\*(R" in perlre, \*(L"(*plb:pattern)\*(R" in perlre,
229
+ \&\*(L"(*nla:pattern)\*(R" in perlre>, and \*(L"(*nlb:pattern)\*(R" in perlre.
230
+ Use of these no longer generates a warning; existing code that disables
231
+ the warning category \f(CW\*(C`experimental::alpha_assertions\*(C'\fR will continue to work
232
+ without any changes needed. Enabling the category has no effect.
233
+ .SS "Script runs are no longer experimental"
234
+ .IX Subsection "Script runs are no longer experimental"
235
+ See \*(L"Script Runs\*(R" in perlre. Use of these no longer generates a warning;
236
+ existing code that disables the warning category
237
+ \&\f(CW\*(C`experimental::script_run\*(C'\fR will continue to work without any
238
+ changes needed. Enabling the category has no effect.
239
+ .SS "Feature checks are now faster"
240
+ .IX Subsection "Feature checks are now faster"
241
+ Previously feature checks in the parser required a hash lookup when
242
+ features were set outside of a feature bundle, this has been optimized
243
+ to a bit mask check. [\s-1GH\s0 #17229 <https://github.com/Perl/perl5/issues/17229>]
244
+ .SS "Perl is now developed on GitHub"
245
+ .IX Subsection "Perl is now developed on GitHub"
246
+ Perl is now developed on GitHub. You can find us at
247
+ <https://github.com/Perl/perl5>.
248
+ .PP
249
+ Non-security bugs should now be reported via GitHub. Security issues should
250
+ continue to be reported as documented in perlsec.
251
+ .SS "Compiled patterns can now be dumped before optimization"
252
+ .IX Subsection "Compiled patterns can now be dumped before optimization"
253
+ This is primarily useful for tracking down bugs in the regular
254
+ expression compiler. This dump happens on \f(CW\*(C`\-DDEBUGGING\*(C'\fR perls, if you
255
+ specify \f(CW\*(C`\-Drv\*(C'\fR on the command line; or on any perl if the pattern is
256
+ compiled within the scope of \f(CW\*(C`use\ re\ qw(Debug\ DUMP_PRE_OPTIMIZE)\*(C'\fR or
257
+ \&\f(CW\*(C`use\ re\ qw(Debug\ COMPILE\ EXTRA)\*(C'\fR. (All but the second case display
258
+ other information as well.)
259
+ .SH "Security"
260
+ .IX Header "Security"
261
+ .SS "[\s-1CVE\-2020\-10543\s0] Buffer overflow caused by a crafted regular expression"
262
+ .IX Subsection "[CVE-2020-10543] Buffer overflow caused by a crafted regular expression"
263
+ A signed \f(CW\*(C`size_t\*(C'\fR integer overflow in the storage space calculations for
264
+ nested regular expression quantifiers could cause a heap buffer overflow in
265
+ Perl's regular expression compiler that overwrites memory allocated after the
266
+ regular expression storage space with attacker supplied data.
267
+ .PP
268
+ The target system needs a sufficient amount of memory to allocate partial
269
+ expansions of the nested quantifiers prior to the overflow occurring. This
270
+ requirement is unlikely to be met on 64\-bit systems.
271
+ .PP
272
+ Discovered by: ManhND of The Tarantula Team, VinCSS (a member of Vingroup).
273
+ .SS "[\s-1CVE\-2020\-10878\s0] Integer overflow via malformed bytecode produced by a crafted regular expression"
274
+ .IX Subsection "[CVE-2020-10878] Integer overflow via malformed bytecode produced by a crafted regular expression"
275
+ Integer overflows in the calculation of offsets between instructions for the
276
+ regular expression engine could cause corruption of the intermediate language
277
+ state of a compiled regular expression. An attacker could abuse this behaviour
278
+ to insert instructions into the compiled form of a Perl regular expression.
279
+ .PP
280
+ Discovered by: Hugo van der Sanden and Slaven Rezic.
281
+ .SS "[\s-1CVE\-2020\-12723\s0] Buffer overflow caused by a crafted regular expression"
282
+ .IX Subsection "[CVE-2020-12723] Buffer overflow caused by a crafted regular expression"
283
+ Recursive calls to \f(CW\*(C`S_study_chunk()\*(C'\fR by Perl's regular expression compiler to
284
+ optimize the intermediate language representation of a regular expression could
285
+ cause corruption of the intermediate language state of a compiled regular
286
+ expression.
287
+ .PP
288
+ Discovered by: Sergey Aleynikov.
289
+ .SS "Additional Note"
290
+ .IX Subsection "Additional Note"
291
+ An application written in Perl would only be vulnerable to any of the above
292
+ flaws if it evaluates regular expressions supplied by the attacker. Evaluating
293
+ regular expressions in this fashion is known to be dangerous since the regular
294
+ expression engine does not protect against denial of service attacks in this
295
+ usage scenario.
296
+ .SH "Incompatible Changes"
297
+ .IX Header "Incompatible Changes"
298
+ .SS "Certain pattern matching features are now prohibited in compiling Unicode property value wildcard subpatterns"
299
+ .IX Subsection "Certain pattern matching features are now prohibited in compiling Unicode property value wildcard subpatterns"
300
+ These few features are either inappropriate or interfere with the
301
+ algorithm used to accomplish this task. The complete list is in
302
+ \&\*(L"Wildcards in Property Values\*(R" in perlunicode.
303
+ .ie n .SS "Unused functions ""POSIX::mbstowcs"" and ""POSIX::wcstombs"" are removed"
304
+ .el .SS "Unused functions \f(CWPOSIX::mbstowcs\fP and \f(CWPOSIX::wcstombs\fP are removed"
305
+ .IX Subsection "Unused functions POSIX::mbstowcs and POSIX::wcstombs are removed"
306
+ These functions could never have worked due to a defective interface
307
+ specification. There is clearly no demand for them, given that no one
308
+ has ever complained in the many years the functions were claimed to be
309
+ available, hence so-called \*(L"support\*(R" for them is now dropped.
310
+ .ie n .SS "A bug fix for ""(?[...])"" may have caused some patterns to no longer compile"
311
+ .el .SS "A bug fix for \f(CW(?[...])\fP may have caused some patterns to no longer compile"
312
+ .IX Subsection "A bug fix for (?[...]) may have caused some patterns to no longer compile"
313
+ See \*(L"Selected Bug Fixes\*(R". The heuristics previously used may have let
314
+ some constructs compile (perhaps not with the programmer's intended
315
+ effect) that should have been errors. None are known, but it is
316
+ possible that some erroneous constructs no longer compile.
317
+ .ie n .SS """\ep{\f(CIuser\-defined\fP}"" properties now always override official Unicode ones"
318
+ .el .SS "\f(CW\ep{\fP\f(CIuser\-defined\fP\f(CW}\fP properties now always override official Unicode ones"
319
+ .IX Subsection "p{user-defined} properties now always override official Unicode ones"
320
+ Previously, if and only if a user-defined property was declared prior to
321
+ the compilation of the regular expression pattern that contains it, its
322
+ definition was used instead of any official Unicode property with the
323
+ same name. Now, it always overrides the official property. This
324
+ change could break existing code that relied (likely unwittingly) on the
325
+ previous behavior. Without this fix, if Unicode released a new version
326
+ with a new property that happens to have the same name as the one you
327
+ had long been using, your program would break when you upgraded to a
328
+ perl that used that new Unicode version. See \*(L"User-Defined
329
+ Character Properties\*(R" in perlunicode. [\s-1GH\s0 #17205 <https://github.com/Perl/perl5/issues/17205>]
330
+ .SS "Modifiable variables are no longer permitted in constants"
331
+ .IX Subsection "Modifiable variables are no longer permitted in constants"
332
+ Code like:
333
+ .PP
334
+ .Vb 2
335
+ \& my $var;
336
+ \& $sub = sub () { $var };
337
+ .Ve
338
+ .PP
339
+ where \f(CW$var\fR is referenced elsewhere in some sort of modifiable context now
340
+ produces an exception when the sub is defined.
341
+ .PP
342
+ This error can be avoided by adding a return to the sub definition:
343
+ .PP
344
+ .Vb 1
345
+ \& $sub = sub () { return $var };
346
+ .Ve
347
+ .PP
348
+ This has been deprecated since Perl 5.22.
349
+ [perl #134138 <https://rt.perl.org/Ticket/Display.html?id=134138>]
350
+ .ie n .SS "Use of ""vec"" on strings with code points above 0xFF is forbidden"
351
+ .el .SS "Use of \f(CWvec\fP on strings with code points above 0xFF is forbidden"
352
+ .IX Subsection "Use of vec on strings with code points above 0xFF is forbidden"
353
+ Such strings are represented internally in \s-1UTF\-8,\s0 and \f(CW\*(C`vec\*(C'\fR is a
354
+ bit-oriented operation that will likely give unexpected results on those
355
+ strings. This was deprecated in perl 5.28.0.
356
+ .SS "Use of code points over 0xFF in string bitwise operators"
357
+ .IX Subsection "Use of code points over 0xFF in string bitwise operators"
358
+ Some uses of these were already illegal after a previous deprecation
359
+ cycle. The remaining uses are now prohibited, having been deprecated in perl
360
+ 5.28.0. See perldeprecation.
361
+ .ie n .SS """Sys::Hostname::hostname()"" does not accept arguments"
362
+ .el .SS "\f(CWSys::Hostname::hostname()\fP does not accept arguments"
363
+ .IX Subsection "Sys::Hostname::hostname() does not accept arguments"
364
+ This usage was deprecated in perl 5.28.0 and is now fatal.
365
+ .ie n .SS "Plain ""0"" string now treated as a number for range operator"
366
+ .el .SS "Plain ``0'' string now treated as a number for range operator"
367
+ .IX Subsection "Plain 0 string now treated as a number for range operator"
368
+ Previously a range \f(CW"0" .. "\-1"\fR would produce a range of numeric
369
+ strings from \*(L"0\*(R" through \*(L"99\*(R"; this now produces an empty list, just
370
+ as \f(CW\*(C`0 .. \-1\*(C'\fR does. This also means that \f(CW"0" .. "9"\fR now produces a
371
+ list of integers, where previously it would produce a list of strings.
372
+ .PP
373
+ This was due to a special case that treated strings starting with \*(L"0\*(R"
374
+ as strings so ranges like \f(CW"00" .. "03"\fR produced \f(CW"00", "01", "02", "03"\fR,
375
+ but didn't specially handle the string \f(CW"0"\fR.
376
+ [perl #133695 <https://rt.perl.org/Ticket/Display.html?id=133695>]
377
+ .ie n .SS """\eK"" now disallowed in look-ahead and look-behind assertions"
378
+ .el .SS "\f(CW\eK\fP now disallowed in look-ahead and look-behind assertions"
379
+ .IX Subsection "K now disallowed in look-ahead and look-behind assertions"
380
+ This was disallowed because it causes unexpected behaviour, and no-one
381
+ could define what the desired behaviour should be.
382
+ [perl #124256 <https://rt.perl.org/Ticket/Display.html?id=124256>]
383
+ .SH "Performance Enhancements"
384
+ .IX Header "Performance Enhancements"
385
+ .IP "\(bu" 4
386
+ \&\f(CW\*(C`my_strnlen\*(C'\fR has been sped up for systems that don't have their own
387
+ \&\f(CW\*(C`strnlen\*(C'\fR implementation.
388
+ .IP "\(bu" 4
389
+ \&\f(CW\*(C`grok_bin_oct_hex\*(C'\fR (and so, \f(CW\*(C`grok_bin\*(C'\fR, \f(CW\*(C`grok_oct\*(C'\fR, and \f(CW\*(C`grok_hex\*(C'\fR)
390
+ have been sped up.
391
+ .IP "\(bu" 4
392
+ \&\f(CW\*(C`grok_number_flags\*(C'\fR has been sped up.
393
+ .IP "\(bu" 4
394
+ \&\f(CW\*(C`sort\*(C'\fR is now noticeably faster in cases such as \f(CW\*(C`sort {$a <=> $b}\*(C'\fR or
395
+ \&\f(CW\*(C`sort {$b <=> $a}\*(C'\fR. [\s-1GH\s0 #17608 <https://github.com/Perl/perl5/pull/17608>]
396
+ .SH "Modules and Pragmata"
397
+ .IX Header "Modules and Pragmata"
398
+ .SS "Updated Modules and Pragmata"
399
+ .IX Subsection "Updated Modules and Pragmata"
400
+ .IP "\(bu" 4
401
+ Archive::Tar has been upgraded from version 2.32 to 2.36.
402
+ .IP "\(bu" 4
403
+ autodie has been upgraded from version 2.29 to 2.32.
404
+ .IP "\(bu" 4
405
+ B has been upgraded from version 1.76 to 1.80.
406
+ .IP "\(bu" 4
407
+ B::Deparse has been upgraded from version 1.49 to 1.54.
408
+ .IP "\(bu" 4
409
+ Benchmark has been upgraded from version 1.22 to 1.23.
410
+ .IP "\(bu" 4
411
+ charnames has been upgraded from version 1.45 to 1.48.
412
+ .IP "\(bu" 4
413
+ Class::Struct has been upgraded from version 0.65 to 0.66.
414
+ .IP "\(bu" 4
415
+ Compress::Raw::Bzip2 has been upgraded from version 2.084 to 2.093.
416
+ .IP "\(bu" 4
417
+ Compress::Raw::Zlib has been upgraded from version 2.084 to 2.093.
418
+ .IP "\(bu" 4
419
+ \&\s-1CPAN\s0 has been upgraded from version 2.22 to 2.27.
420
+ .IP "\(bu" 4
421
+ DB_File has been upgraded from version 1.843 to 1.853.
422
+ .IP "\(bu" 4
423
+ Devel::PPPort has been upgraded from version 3.52 to 3.57.
424
+ .Sp
425
+ The test files generated on Win32 are now identical to when they are
426
+ generated on POSIX-like systems.
427
+ .IP "\(bu" 4
428
+ diagnostics has been upgraded from version 1.36 to 1.37.
429
+ .IP "\(bu" 4
430
+ Digest::MD5 has been upgraded from version 2.55 to 2.55_01.
431
+ .IP "\(bu" 4
432
+ Dumpvalue has been upgraded from version 1.18 to 1.21.
433
+ .Sp
434
+ Previously, when dumping elements of an array and encountering an undefined
435
+ value, the string printed would have been \f(CW\*(C`empty array\*(C'\fR. This has been
436
+ changed to what was apparently originally intended: \f(CW\*(C`empty slot\*(C'\fR.
437
+ .IP "\(bu" 4
438
+ DynaLoader has been upgraded from version 1.45 to 1.47.
439
+ .IP "\(bu" 4
440
+ Encode has been upgraded from version 3.01 to 3.06.
441
+ .IP "\(bu" 4
442
+ encoding has been upgraded from version 2.22 to 3.00.
443
+ .IP "\(bu" 4
444
+ English has been upgraded from version 1.10 to 1.11.
445
+ .IP "\(bu" 4
446
+ Exporter has been upgraded from version 5.73 to 5.74.
447
+ .IP "\(bu" 4
448
+ ExtUtils::CBuilder has been upgraded from version 0.280231 to 0.280234.
449
+ .IP "\(bu" 4
450
+ ExtUtils::MakeMaker has been upgraded from version 7.34 to 7.44.
451
+ .IP "\(bu" 4
452
+ feature has been upgraded from version 1.54 to 1.58.
453
+ .Sp
454
+ A new \f(CW\*(C`indirect\*(C'\fR feature has been added, which is enabled by default
455
+ but allows turning off indirect object syntax.
456
+ .IP "\(bu" 4
457
+ File::Find has been upgraded from version 1.36 to 1.37.
458
+ .Sp
459
+ On Win32, the tests no longer require either a file in the drive root
460
+ directory, or a writable root directory.
461
+ .IP "\(bu" 4
462
+ File::Glob has been upgraded from version 1.32 to 1.33.
463
+ .IP "\(bu" 4
464
+ File::stat has been upgraded from version 1.08 to 1.09.
465
+ .IP "\(bu" 4
466
+ Filter::Simple has been upgraded from version 0.95 to 0.96.
467
+ .IP "\(bu" 4
468
+ Getopt::Long has been upgraded from version 2.5 to 2.51.
469
+ .IP "\(bu" 4
470
+ Hash::Util has been upgraded from version 0.22 to 0.23.
471
+ .Sp
472
+ The Synopsis has been updated as the example code stopped working with
473
+ newer perls.
474
+ [\s-1GH\s0 #17399 <https://github.com/Perl/perl5/issues/17399>]
475
+ .IP "\(bu" 4
476
+ I18N::Langinfo has been upgraded from version 0.18 to 0.19.
477
+ .IP "\(bu" 4
478
+ I18N::LangTags has been upgraded from version 0.43 to 0.44.
479
+ .Sp
480
+ Document the \f(CW\*(C`IGNORE_WIN32_LOCALE\*(C'\fR environment variable.
481
+ .IP "\(bu" 4
482
+ \&\s-1IO\s0 has been upgraded from version 1.40 to 1.43.
483
+ .Sp
484
+ IO::Socket no longer caches a zero protocol value, since this
485
+ indicates that the implementation will select a protocol. This means
486
+ that on platforms that don't implement \f(CW\*(C`SO_PROTOCOL\*(C'\fR for a given
487
+ socket type the protocol method may return \f(CW\*(C`undef\*(C'\fR.
488
+ .Sp
489
+ The supplied \fI\s-1TO\s0\fR is now always honoured on calls to the \f(CW\*(C`send()\*(C'\fR
490
+ method. [perl #133936 <https://rt.perl.org/Ticket/Display.html?id=133936>]
491
+ .IP "\(bu" 4
492
+ IO-Compress has been upgraded from version 2.084 to 2.093.
493
+ .IP "\(bu" 4
494
+ IPC::Cmd has been upgraded from version 1.02 to 1.04.
495
+ .IP "\(bu" 4
496
+ IPC::Open3 has been upgraded from version 1.20 to 1.21.
497
+ .IP "\(bu" 4
498
+ \&\s-1JSON::PP\s0 has been upgraded from version 4.02 to 4.04.
499
+ .IP "\(bu" 4
500
+ Math::BigInt has been upgraded from version 1.999816 to 1.999818.
501
+ .IP "\(bu" 4
502
+ Math::BigInt::FastCalc has been upgraded from version 0.5008 to 0.5009.
503
+ .IP "\(bu" 4
504
+ Module::CoreList has been upgraded from version 5.20190522 to 5.20200620.
505
+ .IP "\(bu" 4
506
+ Module::Load::Conditional has been upgraded from version 0.68 to 0.70.
507
+ .IP "\(bu" 4
508
+ Module::Metadata has been upgraded from version 1.000036 to 1.000037.
509
+ .IP "\(bu" 4
510
+ mro has been upgraded from version 1.22 to 1.23.
511
+ .IP "\(bu" 4
512
+ Net::Ping has been upgraded from version 2.71 to 2.72.
513
+ .IP "\(bu" 4
514
+ Opcode has been upgraded from version 1.43 to 1.47.
515
+ .IP "\(bu" 4
516
+ open has been upgraded from version 1.11 to 1.12.
517
+ .IP "\(bu" 4
518
+ overload has been upgraded from version 1.30 to 1.31.
519
+ .IP "\(bu" 4
520
+ parent has been upgraded from version 0.237 to 0.238.
521
+ .IP "\(bu" 4
522
+ perlfaq has been upgraded from version 5.20190126 to 5.20200523.
523
+ .IP "\(bu" 4
524
+ PerlIO has been upgraded from version 1.10 to 1.11.
525
+ .IP "\(bu" 4
526
+ PerlIO::encoding has been upgraded from version 0.27 to 0.28.
527
+ .IP "\(bu" 4
528
+ PerlIO::via has been upgraded from version 0.17 to 0.18.
529
+ .IP "\(bu" 4
530
+ Pod::Html has been upgraded from version 1.24 to 1.25.
531
+ .IP "\(bu" 4
532
+ Pod::Simple has been upgraded from version 3.35 to 3.40.
533
+ .IP "\(bu" 4
534
+ podlators has been upgraded from version 4.11 to 4.14.
535
+ .IP "\(bu" 4
536
+ \&\s-1POSIX\s0 has been upgraded from version 1.88 to 1.94.
537
+ .IP "\(bu" 4
538
+ re has been upgraded from version 0.37 to 0.40.
539
+ .IP "\(bu" 4
540
+ Safe has been upgraded from version 2.40 to 2.41.
541
+ .IP "\(bu" 4
542
+ Scalar::Util has been upgraded from version 1.50 to 1.55.
543
+ .IP "\(bu" 4
544
+ SelfLoader has been upgraded from version 1.25 to 1.26.
545
+ .IP "\(bu" 4
546
+ Socket has been upgraded from version 2.027 to 2.029.
547
+ .IP "\(bu" 4
548
+ Storable has been upgraded from version 3.15 to 3.21.
549
+ .Sp
550
+ Use of \f(CW\*(C`note()\*(C'\fR from Test::More is now optional in tests. This works
551
+ around a circular dependency with Test::More when installing on very
552
+ old perls from \s-1CPAN.\s0
553
+ .Sp
554
+ Vstring magic strings over 2GB are now disallowed.
555
+ .Sp
556
+ Regular expressions objects weren't properly counted for object id
557
+ purposes on retrieve. This would corrupt the resulting structure, or
558
+ cause a runtime error in some cases. [perl #134179 <https://rt.perl.org/Ticket/Display.html?id=134179>]
559
+ .IP "\(bu" 4
560
+ Sys::Hostname has been upgraded from version 1.22 to 1.23.
561
+ .IP "\(bu" 4
562
+ Sys::Syslog has been upgraded from version 0.35 to 0.36.
563
+ .IP "\(bu" 4
564
+ Term::ANSIColor has been upgraded from version 4.06 to 5.01.
565
+ .IP "\(bu" 4
566
+ Test::Simple has been upgraded from version 1.302162 to 1.302175.
567
+ .IP "\(bu" 4
568
+ Thread has been upgraded from version 3.04 to 3.05.
569
+ .IP "\(bu" 4
570
+ Thread::Queue has been upgraded from version 3.13 to 3.14.
571
+ .IP "\(bu" 4
572
+ threads has been upgraded from version 2.22 to 2.25.
573
+ .IP "\(bu" 4
574
+ threads::shared has been upgraded from version 1.60 to 1.61.
575
+ .IP "\(bu" 4
576
+ Tie::File has been upgraded from version 1.02 to 1.06.
577
+ .IP "\(bu" 4
578
+ Tie::Hash::NamedCapture has been upgraded from version 0.10 to 0.13.
579
+ .IP "\(bu" 4
580
+ Tie::Scalar has been upgraded from version 1.04 to 1.05.
581
+ .IP "\(bu" 4
582
+ Tie::StdHandle has been upgraded from version 4.5 to 4.6.
583
+ .IP "\(bu" 4
584
+ Time::HiRes has been upgraded from version 1.9760 to 1.9764.
585
+ .Sp
586
+ Removed obsolete code such as support for pre\-5.6 perl and classic
587
+ MacOS. [perl #134288 <https://rt.perl.org/Ticket/Display.html?id=134288>]
588
+ .IP "\(bu" 4
589
+ Time::Piece has been upgraded from version 1.33 to 1.3401.
590
+ .IP "\(bu" 4
591
+ Unicode::Normalize has been upgraded from version 1.26 to 1.27.
592
+ .IP "\(bu" 4
593
+ Unicode::UCD has been upgraded from version 0.72 to 0.75.
594
+ .IP "\(bu" 4
595
+ VMS::Stdio has been upgraded from version 2.44 to 2.45.
596
+ .IP "\(bu" 4
597
+ warnings has been upgraded from version 1.44 to 1.47.
598
+ .IP "\(bu" 4
599
+ Win32 has been upgraded from version 0.52 to 0.53.
600
+ .IP "\(bu" 4
601
+ Win32API::File has been upgraded from version 0.1203 to 0.1203_01.
602
+ .IP "\(bu" 4
603
+ XS::APItest has been upgraded from version 1.00 to 1.09.
604
+ .SS "Removed Modules and Pragmata"
605
+ .IX Subsection "Removed Modules and Pragmata"
606
+ .IP "\(bu" 4
607
+ Pod::Parser has been removed from the core distribution.
608
+ It still is available for download from \s-1CPAN.\s0 This resolves [perl
609
+ #119439 <https://rt.perl.org/Ticket/Display.html?id=119439>].
610
+ .SH "Documentation"
611
+ .IX Header "Documentation"
612
+ .SS "Changes to Existing Documentation"
613
+ .IX Subsection "Changes to Existing Documentation"
614
+ We have attempted to update the documentation to reflect the changes
615
+ listed in this document. If you find any we have missed, open an issue
616
+ at <https://github.com/Perl/perl5/issues>.
617
+ .PP
618
+ Additionally, the following selected changes have been made:
619
+ .PP
620
+ \fIperldebguts\fR
621
+ .IX Subsection "perldebguts"
622
+ .IP "\(bu" 4
623
+ Simplify a few regnode definitions
624
+ .Sp
625
+ Update \f(CW\*(C`BOUND\*(C'\fR and \f(CW\*(C`NBOUND\*(C'\fR definitions.
626
+ .IP "\(bu" 4
627
+ Add ANYOFHs regnode
628
+ .Sp
629
+ This node is like \f(CW\*(C`ANYOFHb\*(C'\fR, but is used when more than one leading byte
630
+ is the same in all the matched code points.
631
+ .Sp
632
+ \&\f(CW\*(C`ANYOFHb\*(C'\fR is used to avoid having to convert from \s-1UTF\-8\s0 to code point for
633
+ something that won't match. It checks that the first byte in the \s-1UTF\-8\s0
634
+ encoded target is the desired one, thus ruling out most of the possible
635
+ code points.
636
+ .PP
637
+ \fIperlapi\fR
638
+ .IX Subsection "perlapi"
639
+ .IP "\(bu" 4
640
+ \&\f(CW\*(C`sv_2pvbyte\*(C'\fR updated to mention it will croak if the \s-1SV\s0 cannot be
641
+ downgraded.
642
+ .IP "\(bu" 4
643
+ \&\f(CW\*(C`sv_setpvn\*(C'\fR updated to mention that the \s-1UTF\-8\s0 flag will not be changed by
644
+ this function, and a terminating \s-1NUL\s0 byte is guaranteed.
645
+ .IP "\(bu" 4
646
+ Documentation for \f(CW\*(C`PL_phase\*(C'\fR has been added.
647
+ .IP "\(bu" 4
648
+ The documentation for \f(CW\*(C`grok_bin\*(C'\fR, \f(CW\*(C`grok_oct\*(C'\fR, and \f(CW\*(C`grok_hex\*(C'\fR has been
649
+ updated and clarified.
650
+ .PP
651
+ \fIperldiag\fR
652
+ .IX Subsection "perldiag"
653
+ .IP "\(bu" 4
654
+ Add documentation for experimental 'isa' operator
655
+ .Sp
656
+ (S experimental::isa) This warning is emitted if you use the (\f(CW\*(C`isa\*(C'\fR)
657
+ operator. This operator is currently experimental and its behaviour may
658
+ change in future releases of Perl.
659
+ .PP
660
+ \fIperlfunc\fR
661
+ .IX Subsection "perlfunc"
662
+ .ie n .IP """caller""" 4
663
+ .el .IP "\f(CWcaller\fR" 4
664
+ .IX Item "caller"
665
+ Like \f(CW\*(C`_\|_FILE_\|_\*(C'\fR and \f(CW\*(C`_\|_LINE_\|_\*(C'\fR, the filename and
666
+ line number returned here may be altered by the mechanism described at
667
+ \&\*(L"Plain Old Comments (Not!)\*(R" in perlsyn.
668
+ .ie n .IP """_\|_FILE_\|_""" 4
669
+ .el .IP "\f(CW_\|_FILE_\|_\fR" 4
670
+ .IX Item "__FILE__"
671
+ It can be altered by the mechanism described at
672
+ \&\*(L"Plain Old Comments (Not!)\*(R" in perlsyn.
673
+ .ie n .IP """_\|_LINE_\|_""" 4
674
+ .el .IP "\f(CW_\|_LINE_\|_\fR" 4
675
+ .IX Item "__LINE__"
676
+ It can be altered by the mechanism described at
677
+ \&\*(L"Plain Old Comments (Not!)\*(R" in perlsyn.
678
+ .ie n .IP """return""" 4
679
+ .el .IP "\f(CWreturn\fR" 4
680
+ .IX Item "return"
681
+ Now mentions that you cannot return from \f(CW\*(C`do BLOCK\*(C'\fR.
682
+ .ie n .IP """open""" 4
683
+ .el .IP "\f(CWopen\fR" 4
684
+ .IX Item "open"
685
+ The \f(CW\*(C`open()\*(C'\fR section had been renovated significantly.
686
+ .PP
687
+ \fIperlguts\fR
688
+ .IX Subsection "perlguts"
689
+ .IP "\(bu" 4
690
+ No longer suggesting using perl's \f(CW\*(C`malloc\*(C'\fR. Modern system \f(CW\*(C`malloc\*(C'\fR is
691
+ assumed to be much better than perl's implementation now.
692
+ .IP "\(bu" 4
693
+ Documentation about \fIembed.fnc\fR flags has been removed. \fIembed.fnc\fR now has
694
+ sufficient comments within it. Anyone changing that file will see those
695
+ comments first, so entries here are now redundant.
696
+ .IP "\(bu" 4
697
+ Updated documentation for \f(CW\*(C`UTF8f\*(C'\fR
698
+ .IP "\(bu" 4
699
+ Added missing \f(CW\*(C`=for apidoc\*(C'\fR lines
700
+ .PP
701
+ \fIperlhacktips\fR
702
+ .IX Subsection "perlhacktips"
703
+ .IP "\(bu" 4
704
+ The differences between Perl strings and C strings are now detailed.
705
+ .PP
706
+ \fIperlintro\fR
707
+ .IX Subsection "perlintro"
708
+ .IP "\(bu" 4
709
+ The documentation for the repetition operator \f(CW\*(C`x\*(C'\fR have been clarified.
710
+ [\s-1GH\s0 #17335 <https://github.com/Perl/perl5/issues/17335>]
711
+ .PP
712
+ \fIperlipc\fR
713
+ .IX Subsection "perlipc"
714
+ .IP "\(bu" 4
715
+ The documentation surrounding \f(CW\*(C`open\*(C'\fR and handle usage has been modernized
716
+ to prefer 3\-arg open and lexical variables instead of barewords.
717
+ .IP "\(bu" 4
718
+ Various updates and fixes including making all examples strict-safe and
719
+ replacing \f(CW\*(C`\-w\*(C'\fR with \f(CW\*(C`use warnings\*(C'\fR.
720
+ .PP
721
+ \fIperlop\fR
722
+ .IX Subsection "perlop"
723
+ .IP "\(bu" 4
724
+ \&'isa' operator is experimental
725
+ .Sp
726
+ This is an experimental feature and is available when enabled
727
+ by \f(CW\*(C`use feature \*(Aqisa\*(Aq\*(C'\fR. It emits a warning in the \f(CW\*(C`experimental::isa\*(C'\fR
728
+ category.
729
+ .PP
730
+ \fIperlpod\fR
731
+ .IX Subsection "perlpod"
732
+ .IP "\(bu" 4
733
+ Details of the various stacks within the perl interpreter are now explained
734
+ here.
735
+ .IP "\(bu" 4
736
+ Advice has been added regarding the usage of \f(CW\*(C`Z<>\*(C'\fR.
737
+ .PP
738
+ \fIperlport\fR
739
+ .IX Subsection "perlport"
740
+ .IP "\(bu" 4
741
+ Update \f(CW\*(C`timegm\*(C'\fR example to use the correct year format \fI1970\fR instead of \fI70\fR.
742
+ [\s-1GH\s0 #16431 <https://github.com/Perl/perl5/issues/16431>]
743
+ .PP
744
+ \fIperlreref\fR
745
+ .IX Subsection "perlreref"
746
+ .IP "\(bu" 4
747
+ Fix some typos.
748
+ .PP
749
+ \fIperlvar\fR
750
+ .IX Subsection "perlvar"
751
+ .IP "\(bu" 4
752
+ Now recommends stringifying \f(CW$]\fR and comparing it numerically.
753
+ .PP
754
+ \fIperlapi, perlintern\fR
755
+ .IX Subsection "perlapi, perlintern"
756
+ .IP "\(bu" 4
757
+ Documentation has been added for several functions that were
758
+ lacking it before.
759
+ .PP
760
+ \fIperlxs\fR
761
+ .IX Subsection "perlxs"
762
+ .IP "\(bu" 4
763
+ Suggest using \f(CW\*(C`libffi\*(C'\fR for simple library bindings via \s-1CPAN\s0 modules
764
+ like FFI::Platypus or FFI::Raw.
765
+ .PP
766
+ \fI\s-1POSIX\s0\fR
767
+ .IX Subsection "POSIX"
768
+ .IP "\(bu" 4
769
+ \&\f(CW\*(C`setlocale\*(C'\fR warning about threaded builds updated to note it does not
770
+ apply on Perl 5.28.X and later.
771
+ .IP "\(bu" 4
772
+ \&\f(CW\*(C`Posix::SigSet\->new(...)\*(C'\fR updated to state it throws an error if any of
773
+ the supplied signals cannot be added to the set.
774
+ .PP
775
+ Additionally, the following selected changes have been made:
776
+ .PP
777
+ \fIUpdating of links\fR
778
+ .IX Subsection "Updating of links"
779
+ .IP "\(bu" 4
780
+ Links to the now defunct <https://search.cpan.org> site now point at
781
+ the equivalent <https://metacpan.org> \s-1URL.\s0 [\s-1GH\s0 #17393 <https://github.com/Perl/perl5/issues/17393>]
782
+ .IP "\(bu" 4
783
+ The man page for ExtUtils::XSSymSet is now only installed on \s-1VMS,\s0
784
+ which is the only platform the module is installed on. [\s-1GH\s0 #17424 <https://github.com/Perl/perl5/issues/17424>]
785
+ .IP "\(bu" 4
786
+ URLs have been changed to \f(CW\*(C`https://\*(C'\fR and stale links have been updated.
787
+ .Sp
788
+ Where applicable, the URLs in the documentation have been moved from using the
789
+ \&\f(CW\*(C`http://\*(C'\fR protocol to \f(CW\*(C`https://\*(C'\fR. This also affects the location of the bug
790
+ tracker at <https://rt.perl.org>.
791
+ .IP "\(bu" 4
792
+ Some links to \s-1OS/2\s0 libraries, Address Sanitizer and other system tools had gone
793
+ stale. These have been updated with working links.
794
+ .IP "\(bu" 4
795
+ Some links to old email addresses on perl5\-porters had gone stale. These have been
796
+ updated with working links.
797
+ .SH "Diagnostics"
798
+ .IX Header "Diagnostics"
799
+ The following additions or changes have been made to diagnostic output,
800
+ including warnings and fatal error messages. For the complete list of
801
+ diagnostic messages, see perldiag.
802
+ .SS "New Diagnostics"
803
+ .IX Subsection "New Diagnostics"
804
+ \fINew Errors\fR
805
+ .IX Subsection "New Errors"
806
+ .IP "\(bu" 4
807
+ Expecting interpolated extended charclass in regex; marked by <\-\- \s-1HERE\s0 in m/%s/
808
+ .Sp
809
+ This is a replacement for several error messages listed under
810
+ \&\*(L"Changes to Existing Diagnostics\*(R".
811
+ .IP "\(bu" 4
812
+ \&\f(CW\*(C`No digits found for %s literal\*(C'\fR
813
+ .Sp
814
+ (F) No hexadecimal digits were found following \f(CW\*(C`0x\*(C'\fR or no binary digits were
815
+ found following \f(CW\*(C`0b\*(C'\fR.
816
+ .PP
817
+ \fINew Warnings\fR
818
+ .IX Subsection "New Warnings"
819
+ .IP "\(bu" 4
820
+ Code point 0x%X is not Unicode, and not portable
821
+ .Sp
822
+ This is actually not a new message, but it is now output when the
823
+ warnings category \f(CW\*(C`portable\*(C'\fR is enabled.
824
+ .Sp
825
+ When raised during regular expression pattern compilation, the warning
826
+ has extra text added at the end marking where precisely in the pattern
827
+ it occurred.
828
+ .IP "\(bu" 4
829
+ Non-hex character '%c' terminates \ex early. Resolved as \*(L"%s\*(R"
830
+ .Sp
831
+ This replaces a warning that was much less specific, and which gave
832
+ false information. This new warning parallels the similar
833
+ already-existing one raised for \f(CW\*(C`\eo{}\*(C'\fR.
834
+ .SS "Changes to Existing Diagnostics"
835
+ .IX Subsection "Changes to Existing Diagnostics"
836
+ .IP "\(bu" 4
837
+ Character following \*(L"\ec\*(R" must be printable \s-1ASCII\s0
838
+ .Sp
839
+ \&...now has extra text added at the end, when raised during regular
840
+ expression pattern compilation, marking where precisely in the pattern
841
+ it occurred.
842
+ .IP "\(bu" 4
843
+ Use \*(L"%s\*(R" instead of \*(L"%s\*(R"
844
+ .Sp
845
+ \&...now has extra text added at the end, when raised during regular
846
+ expression pattern compilation, marking where precisely in the pattern
847
+ it occurred.
848
+ .IP "\(bu" 4
849
+ Sequence \*(L"\ec{\*(R" invalid
850
+ .Sp
851
+ \&...now has extra text added at the end, when raised during regular
852
+ expression pattern compilation, marking where precisely in the pattern
853
+ it occurred.
854
+ .IP "\(bu" 4
855
+ \&\*(L"\ec%c\*(R" is more clearly written simply as \*(L"%s\*(R"
856
+ .Sp
857
+ \&...now has extra text added at the end, when raised during regular
858
+ expression pattern compilation, marking where precisely in the pattern
859
+ it occurred.
860
+ .IP "\(bu" 4
861
+ Non-octal character '%c' terminates \eo early. Resolved as \*(L"%s\*(R"
862
+ .Sp
863
+ \&...now includes the phrase \*(L"terminates \eo early\*(R", and has extra text added
864
+ at the end, when raised during regular expression pattern compilation,
865
+ marking where precisely in the pattern it occurred. In some instances
866
+ the text of the resolution has been clarified.
867
+ .IP "\(bu" 4
868
+ \&'%s' resolved to '\eo{%s}%d'
869
+ .Sp
870
+ As of Perl 5.32, this message is no longer generated. Instead,
871
+ \&\*(L"Non-octal character '%c' terminates \eo early. Resolved as \*(R"%s"" in perldiag
872
+ is used instead.
873
+ .IP "\(bu" 4
874
+ Use of code point 0x%s is not allowed; the permissible max is 0x%X
875
+ .Sp
876
+ Some instances of this message previously output the hex digits \f(CW\*(C`A\*(C'\fR,
877
+ \&\f(CW\*(C`B\*(C'\fR, \f(CW\*(C`C\*(C'\fR, \f(CW\*(C`D\*(C'\fR, \f(CW\*(C`E\*(C'\fR, and \f(CW\*(C`F\*(C'\fR in lower case. Now they are all
878
+ consistently upper case.
879
+ .IP "\(bu" 4
880
+ The following three diagnostics have been removed, and replaced by
881
+ \&\f(CW\*(C`Expecting interpolated extended charclass in regex; marked by <\-\- HERE in m/%s/\*(C'\fR
882
+ :
883
+ \&\f(CW\*(C`Expecting close paren for nested extended charclass in regex; marked
884
+ by <\-\- HERE in m/%s/\*(C'\fR,
885
+ \&\f(CW\*(C`Expecting close paren for wrapper for nested extended charclass in
886
+ regex; marked by <\-\- HERE in m/%s/\*(C'\fR,
887
+ and
888
+ \&\f(CW\*(C`Expecting \*(Aq(?flags:(?[...\*(Aq in regex; marked by <\-\-\ HERE in m/%s/\*(C'\fR.
889
+ .IP "\(bu" 4
890
+ The \f(CW\*(C`Code point 0x%X is not Unicode, and not portable\*(C'\fR warning removed
891
+ the line \f(CW\*(C`Code points above 0xFFFF_FFFF require larger than a 32 bit word.\*(C'\fR
892
+ as code points that large are no longer legal on 32\-bit platforms.
893
+ .IP "\(bu" 4
894
+ Can't use global \f(CW%s\fR in \f(CW%s\fR
895
+ .Sp
896
+ This error message has been slightly reformatted from the original \f(CW\*(C`Can\*(Aqt use
897
+ global %s in "%s"\*(C'\fR, and in particular misleading error messages like \f(CW\*(C`Can\*(Aqt
898
+ use global $_ in "my"\*(C'\fR are now rendered as \f(CW\*(C`Can\*(Aqt use global $_ in subroutine
899
+ signature\*(C'\fR.
900
+ .IP "\(bu" 4
901
+ Constants from lexical variables potentially modified elsewhere are no longer permitted
902
+ .Sp
903
+ This error message replaces the former \f(CW\*(C`Constants from lexical variables
904
+ potentially modified elsewhere are deprecated. This will not be allowed in Perl
905
+ 5.32\*(C'\fR to reflect the fact that this previously deprecated usage has now been
906
+ transformed into an exception. The message's classification has also been
907
+ updated from D (deprecated) to F (fatal).
908
+ .Sp
909
+ See also \*(L"Incompatible Changes\*(R".
910
+ .IP "\(bu" 4
911
+ \&\f(CW\*(C`\eN{} here is restricted to one character\*(C'\fR is now emitted in the same
912
+ circumstances where previously \f(CW\*(C`\eN{} in inverted character class or as a range
913
+ end\-point is restricted to one character\*(C'\fR was.
914
+ .Sp
915
+ This is due to new circumstances having been added in Perl 5.30 that weren't
916
+ covered by the earlier wording.
917
+ .SH "Utility Changes"
918
+ .IX Header "Utility Changes"
919
+ .SS "perlbug"
920
+ .IX Subsection "perlbug"
921
+ .IP "\(bu" 4
922
+ The bug tracker homepage \s-1URL\s0 now points to GitHub.
923
+ .SS "streamzip"
924
+ .IX Subsection "streamzip"
925
+ .IP "\(bu" 4
926
+ This is a new utility, included as part of an
927
+ IO::Compress::Base upgrade.
928
+ .Sp
929
+ streamzip creates a zip file from stdin. The program will read data
930
+ from stdin, compress it into a zip container and, by default, write a
931
+ streamed zip file to stdout.
932
+ .SH "Configuration and Compilation"
933
+ .IX Header "Configuration and Compilation"
934
+ .SS "\fIConfigure\fP"
935
+ .IX Subsection "Configure"
936
+ .IP "\(bu" 4
937
+ For clang++, add \f(CW\*(C`#include <stdlib.h>\*(C'\fR to Configure's probes for
938
+ \&\f(CW\*(C`futimes\*(C'\fR, \f(CW\*(C`strtoll\*(C'\fR, \f(CW\*(C`strtoul\*(C'\fR, \f(CW\*(C`strtoull\*(C'\fR, \f(CW\*(C`strtouq\*(C'\fR, otherwise the
939
+ probes would fail to compile.
940
+ .IP "\(bu" 4
941
+ Use a compile and run test for \f(CW\*(C`lchown\*(C'\fR to satisfy clang++ which should
942
+ more reliably detect it.
943
+ .IP "\(bu" 4
944
+ For \*(C+ compilers, add \f(CW\*(C`#include <stdio.h>\*(C'\fR to Configure's probes for
945
+ \&\f(CW\*(C`getpgrp\*(C'\fR and \f(CW\*(C`setpgrp\*(C'\fR as they use printf and \*(C+ compilers may fail
946
+ compilation instead of just warning.
947
+ .IP "\(bu" 4
948
+ Check if the compiler can handle inline attribute.
949
+ .IP "\(bu" 4
950
+ Check for character data alignment.
951
+ .IP "\(bu" 4
952
+ \&\fIConfigure\fR now correctly handles gcc\-10. Previously it was interpreting it
953
+ as gcc\-1 and turned on \f(CW\*(C`\-fpcc\-struct\-return\*(C'\fR.
954
+ .IP "\(bu" 4
955
+ Perl now no longer probes for \f(CW\*(C`d_u32align\*(C'\fR, defaulting to \f(CW\*(C`define\*(C'\fR on all
956
+ platforms. This check was error-prone when it was done, which was on 32\-bit
957
+ platforms only.
958
+ [perl #133495 <https://rt.perl.org/Ticket/Display.html?id=133495>]
959
+ .IP "\(bu" 4
960
+ Documentation and hints for building perl on Z/OS (native \s-1EBCDIC\s0) have been
961
+ updated. This is still a work in progress.
962
+ .IP "\(bu" 4
963
+ A new probe for \f(CW\*(C`malloc_usable_size\*(C'\fR has been added.
964
+ .IP "\(bu" 4
965
+ Improvements in \fIConfigure\fR to detection in \*(C+ and clang++. Work ongoing by
966
+ Andy Dougherty. [perl #134171 <https://rt.perl.org/Ticket/Display.html?id=134171>]
967
+ .IP "\(bu" 4
968
+ \&\fIautodoc.pl\fR
969
+ .Sp
970
+ This tool that regenerates perlintern and perlapi has been overhauled
971
+ significantly, restoring consistency in flags used in \fIembed.fnc\fR and
972
+ Devel::PPPort and allowing removal of many redundant \f(CW\*(C`=for apidoc\*(C'\fR
973
+ entries in code.
974
+ .IP "\(bu" 4
975
+ The \f(CW\*(C`ECHO\*(C'\fR macro is now defined. This is used in a \f(CW\*(C`dtrace\*(C'\fR rule that was
976
+ originally changed for FreeBSD, and the FreeBSD make apparently predefines it.
977
+ The Solaris make does not predefine \f(CW\*(C`ECHO\*(C'\fR which broke this rule on Solaris.
978
+ [perl #134218 <https://rt.perl.org/Ticket/Display.html?id=134218>]
979
+ .IP "\(bu" 4
980
+ Bison versions 3.1 through 3.4 are now supported.
981
+ .SH "Testing"
982
+ .IX Header "Testing"
983
+ Tests were added and changed to reflect the other additions and
984
+ changes in this release. Furthermore, these significant changes were
985
+ made:
986
+ .IP "\(bu" 4
987
+ \&\fIt/run/switches.t\fR no longer uses (and re-uses) the \fItmpinplace/\fR
988
+ directory under \fIt/\fR. This may prevent spurious failures. [\s-1GH\s0 #17424 <https://github.com/Perl/perl5/issues/17424>]
989
+ .IP "\(bu" 4
990
+ Various bugs in \f(CW\*(C`POSIX::mbtowc\*(C'\fR were fixed. Potential races with
991
+ other threads are now avoided, and previously the returned wide
992
+ character could well be garbage.
993
+ .IP "\(bu" 4
994
+ Various bugs in \f(CW\*(C`POSIX::wctomb\*(C'\fR were fixed. Potential races with other
995
+ threads are now avoided, and previously it would segfault if the string
996
+ parameter was shared or hadn't been pre-allocated with a string of
997
+ sufficient length to hold the result.
998
+ .IP "\(bu" 4
999
+ Certain test output of scalars containing control characters and Unicode
1000
+ has been fixed on \s-1EBCDIC.\s0
1001
+ .IP "\(bu" 4
1002
+ \&\fIt/charset_tools.pl\fR: Avoid some work on \s-1ASCII\s0 platforms.
1003
+ .IP "\(bu" 4
1004
+ \&\fIt/re/regexp.t\fR: Speed up many regex tests on \s-1ASCII\s0 platform
1005
+ .IP "\(bu" 4
1006
+ \&\fIt/re/pat.t\fR: Skip tests that don't work on \s-1EBCDIC.\s0
1007
+ .SH "Platform Support"
1008
+ .IX Header "Platform Support"
1009
+ .SS "Discontinued Platforms"
1010
+ .IX Subsection "Discontinued Platforms"
1011
+ .IP "Windows \s-1CE\s0" 4
1012
+ .IX Item "Windows CE"
1013
+ Support for building perl on Windows \s-1CE\s0 has now been removed.
1014
+ .SS "Platform-Specific Notes"
1015
+ .IX Subsection "Platform-Specific Notes"
1016
+ .IP "Linux" 4
1017
+ .IX Item "Linux"
1018
+ \&\f(CW\*(C`cc\*(C'\fR will be used to populate \f(CW\*(C`plibpth\*(C'\fR if \f(CW\*(C`cc\*(C'\fR is \f(CW\*(C`clang\*(C'\fR.
1019
+ [perl #134189 <https://rt.perl.org/Ticket/Display.html?id=134189>]
1020
+ .IP "NetBSD 8.0" 4
1021
+ .IX Item "NetBSD 8.0"
1022
+ Fix compilation of Perl on NetBSD 8.0 with g++.
1023
+ [\s-1GH\s0 #17381 <https://github.com/Perl/perl5/issues/17381>]
1024
+ .IP "Windows" 4
1025
+ .IX Item "Windows"
1026
+ .RS 4
1027
+ .PD 0
1028
+ .IP "\(bu" 4
1029
+ .PD
1030
+ The configuration for \f(CW\*(C`ccflags\*(C'\fR and \f(CW\*(C`optimize\*(C'\fR are now separate, as
1031
+ with \s-1POSIX\s0 platforms. [\s-1GH\s0 #17156 <https://github.com/Perl/perl5/issues/17156>]
1032
+ .IP "\(bu" 4
1033
+ Support for building perl with Visual \*(C+ 6.0 has now been removed.
1034
+ .IP "\(bu" 4
1035
+ The locale tests could crash on Win32 due to a Windows bug, and
1036
+ separately due to the \s-1CRT\s0 throwing an exception if the locale name
1037
+ wasn't validly encoded in the current code page.
1038
+ .Sp
1039
+ For the second we now decode the locale name ourselves, and always
1040
+ decode it as \s-1UTF\-8.\s0 [perl #133981 <https://rt.perl.org/Ticket/Display.html?id=133981>]
1041
+ .IP "\(bu" 4
1042
+ \&\fIt/op/magic.t\fR could fail if environment variables starting with
1043
+ \&\f(CW\*(C`FOO\*(C'\fR already existed.
1044
+ .IP "\(bu" 4
1045
+ \&\s-1MYMALLOC\s0 (\s-1PERL_MALLOC\s0) build has been fixed.
1046
+ .RE
1047
+ .RS 4
1048
+ .RE
1049
+ .IP "Solaris" 4
1050
+ .IX Item "Solaris"
1051
+ .RS 4
1052
+ .PD 0
1053
+ .IP "\(bu" 4
1054
+ .PD
1055
+ \&\f(CW\*(C`Configure\*(C'\fR will now find recent versions of the Oracle Developer Studio
1056
+ compiler, which are found under \f(CW\*(C`/opt/developerstudio*\*(C'\fR.
1057
+ .IP "\(bu" 4
1058
+ \&\f(CW\*(C`Configure\*(C'\fR now uses the detected types for \f(CW\*(C`gethostby*\*(C'\fR functions, allowing
1059
+ Perl to once again compile on certain configurations of Solaris.
1060
+ .RE
1061
+ .RS 4
1062
+ .RE
1063
+ .IP "\s-1VMS\s0" 4
1064
+ .IX Item "VMS"
1065
+ .RS 4
1066
+ .PD 0
1067
+ .IP "\(bu" 4
1068
+ .PD
1069
+ With the release of the patch kit C99 V2.0, \s-1VSI\s0 has provided support for a
1070
+ number of previously-missing C99 features. On systems with that patch kit
1071
+ installed, Perl's configuration process will now detect the presence of the
1072
+ header \f(CW\*(C`stdint.h\*(C'\fR and the following functions: \f(CW\*(C`fpclassify\*(C'\fR, \f(CW\*(C`isblank\*(C'\fR, \f(CW\*(C`isless\*(C'\fR,
1073
+ \&\f(CW\*(C`llrint\*(C'\fR, \f(CW\*(C`llrintl\*(C'\fR, \f(CW\*(C`llround\*(C'\fR, \f(CW\*(C`llroundl\*(C'\fR, \f(CW\*(C`nearbyint\*(C'\fR, \f(CW\*(C`round\*(C'\fR, \f(CW\*(C`scalbn\*(C'\fR,
1074
+ and \f(CW\*(C`scalbnl\*(C'\fR.
1075
+ .IP "\(bu" 4
1076
+ \&\f(CW\*(C`\-Duse64bitint\*(C'\fR is now the default on \s-1VMS.\s0
1077
+ .RE
1078
+ .RS 4
1079
+ .RE
1080
+ .IP "z/OS" 4
1081
+ .IX Item "z/OS"
1082
+ Perl 5.32 has been tested on z/OS 2.4, with the following caveats:
1083
+ .RS 4
1084
+ .IP "\(bu" 4
1085
+ Only static builds (the default) build reliably
1086
+ .IP "\(bu" 4
1087
+ When using locales, z/OS does not handle the \f(CW\*(C`LC_MESSAGES\*(C'\fR category
1088
+ properly, so when compiling perl, you should add the following to your
1089
+ \&\fIConfigure\fR options
1090
+ .Sp
1091
+ .Vb 1
1092
+ \& ./Configure <other options> \-Accflags=\-DNO_LOCALE_MESSAGES
1093
+ .Ve
1094
+ .IP "\(bu" 4
1095
+ z/OS does not support locales with threads, so when compiling a threaded
1096
+ perl, you should add the following to your \fIConfigure\fR options
1097
+ .Sp
1098
+ .Vb 1
1099
+ \& ./Configure <other Configure options> \-Accflags=\-DNO_LOCALE
1100
+ .Ve
1101
+ .IP "\(bu" 4
1102
+ Some \s-1CPAN\s0 modules that are shipped with perl fail at least one of their
1103
+ self-tests. These are:
1104
+ Archive::Tar,
1105
+ Config::Perl::V,
1106
+ CPAN::Meta,
1107
+ CPAN::Meta::YAML,
1108
+ Digest::MD5,
1109
+ Digest::SHA,
1110
+ Encode,
1111
+ ExtUtils::MakeMaker,
1112
+ ExtUtils::Manifest,
1113
+ HTTP::Tiny,
1114
+ IO::Compress,
1115
+ IPC::Cmd,
1116
+ \&\s-1JSON::PP,\s0
1117
+ libnet,
1118
+ MIME::Base64,
1119
+ Module::Metadata,
1120
+ PerlIO::via\-QuotedPrint,
1121
+ Pod::Checker,
1122
+ podlators,
1123
+ Pod::Simple,
1124
+ Socket,
1125
+ and Test::Harness.
1126
+ .Sp
1127
+ The causes of the failures range from the self-test itself is flawed,
1128
+ and the module actually works fine, up to the module doesn't work at all
1129
+ on \s-1EBCDIC\s0 platforms.
1130
+ .RE
1131
+ .RS 4
1132
+ .RE
1133
+ .SH "Internal Changes"
1134
+ .IX Header "Internal Changes"
1135
+ .IP "\(bu" 4
1136
+ \&\f(CW\*(C`savepvn\*(C'\fR's len parameter is now a \f(CW\*(C`Size_t\*(C'\fR instead of an \f(CW\*(C`I32\*(C'\fR since we
1137
+ can handle longer strings than 31 bits.
1138
+ .IP "\(bu" 4
1139
+ The lexer (\f(CW\*(C`Perl_yylex()\*(C'\fR in \fItoke.c\fR) was previously a single 4100\-line
1140
+ function, relying heavily on \f(CW\*(C`goto\*(C'\fR and a lot of widely-scoped local variables
1141
+ to do its work. It has now been pulled apart into a few dozen smaller static
1142
+ functions; the largest remaining chunk (\f(CW\*(C`yyl_word_or_keyword()\*(C'\fR) is a little
1143
+ over 900 lines, and consists of a single \f(CW\*(C`switch\*(C'\fR statement, all of whose
1144
+ \&\f(CW\*(C`case\*(C'\fR groups are independent. This should be much easier to understand and
1145
+ maintain.
1146
+ .IP "\(bu" 4
1147
+ The OS-level signal handlers and type (Sighandler_t) used by the perl core
1148
+ were declared as having three parameters, but the \s-1OS\s0 was always told to
1149
+ call them with one argument. This has been fixed by declaring them to have
1150
+ one parameter. See the merge commit \f(CW\*(C`v5.31.5\-346\-g116e19abbf\*(C'\fR for full
1151
+ details.
1152
+ .IP "\(bu" 4
1153
+ The code that handles \f(CW\*(C`tr///\*(C'\fR has been extensively revised, fixing
1154
+ various bugs, especially when the source and/or replacement strings
1155
+ contain characters whose code points are above 255. Some of the bugs
1156
+ were undocumented, one being that under some circumstances (but not all)
1157
+ with \f(CW\*(C`/s\*(C'\fR, the squeezing was done based on the source, rather than the
1158
+ replacement. A documented bug that got fixed was
1159
+ [perl #125493 <https://rt.perl.org/Ticket/Display.html?id=125493>].
1160
+ .IP "\(bu" 4
1161
+ A new macro for \s-1XS\s0 writers dealing with UTF\-8\-encoded Unicode strings
1162
+ has been created "\f(CW\*(C`UTF8_CHK_SKIP\*(C'\fR" in perlapi that is safer in the face
1163
+ of malformed \s-1UTF\-8\s0 input than "\f(CW\*(C`UTF8_SKIP\*(C'\fR" in perlapi (but not as safe
1164
+ as "\f(CW\*(C`UTF8_SAFE_SKIP\*(C'\fR" in perlapi). It won't read past a \s-1NUL\s0 character.
1165
+ It has been backported in Devel::PPPort 3.55 and later.
1166
+ .IP "\(bu" 4
1167
+ Added the \f(CW\*(C`PL_curstackinfo\->si_cxsubix\*(C'\fR field. This records the stack index
1168
+ of the most recently pushed sub/format/eval context. It is set and restored
1169
+ automatically by \f(CW\*(C`cx_pushsub()\*(C'\fR, \f(CW\*(C`cx_popsub()\*(C'\fR etc., but would need to be
1170
+ manually managed if you do any unusual manipulation of the context stack.
1171
+ .IP "\(bu" 4
1172
+ Various macros dealing with character type classification and changing case
1173
+ where the input is encoded in \s-1UTF\-8\s0 now require an extra parameter to prevent
1174
+ potential reads beyond the end of the buffer. Use of these has generated a
1175
+ deprecation warning since Perl 5.26. Details are in
1176
+ \&\*(L"In \s-1XS\s0 code, use of various macros dealing with \s-1UTF\-8.\*(R"\s0 in perldeprecation
1177
+ .IP "\(bu" 4
1178
+ A new parser function \fBparse_subsignature()\fR
1179
+ allows a keyword plugin to parse a subroutine signature while \f(CW\*(C`use feature
1180
+ \&\*(Aqsignatures\*(Aq\*(C'\fR is in effect. This allows custom keywords to implement
1181
+ semantics similar to regular \f(CW\*(C`sub\*(C'\fR declarations that include signatures.
1182
+ [perl #132474 <https://rt.perl.org/Ticket/Display.html?id=132474>]
1183
+ .IP "\(bu" 4
1184
+ Since on some platforms we need to hold a mutex when temporarily
1185
+ switching locales, new macros (\f(CW\*(C`STORE_LC_NUMERIC_SET_TO_NEEDED_IN\*(C'\fR,
1186
+ \&\f(CW\*(C`WITH_LC_NUMERIC_SET_TO_NEEDED\*(C'\fR and \f(CW\*(C`WITH_LC_NUMERIC_SET_TO_NEEDED_IN\*(C'\fR)
1187
+ have been added to make it easier to do this safely and efficiently
1188
+ as part of [perl #134172 <https://rt.perl.org/Ticket/Display.html?id=134172>].
1189
+ .IP "\(bu" 4
1190
+ The memory bookkeeping overhead for allocating an \s-1OP\s0 structure has been
1191
+ reduced by 8 bytes per \s-1OP\s0 on 64\-bit systems.
1192
+ .IP "\(bu" 4
1193
+ \&\fBeval_pv()\fR no longer stringifies the exception when
1194
+ \&\f(CW\*(C`croak_on_error\*(C'\fR is true. [perl #134175 <https://rt.perl.org/Ticket/Display.html?id=134175>]
1195
+ .IP "\(bu" 4
1196
+ The \s-1PERL_DESTRUCT_LEVEL\s0 environment variable was formerly only honoured on perl
1197
+ binaries built with \s-1DEBUGGING\s0 support. It is now checked on all perl builds.
1198
+ Its normal use is to force perl to individually free every block of memory
1199
+ which it has allocated before exiting, which is useful when using automated
1200
+ leak detection tools such as valgrind.
1201
+ .IP "\(bu" 4
1202
+ The \s-1API\s0 \fBeval_sv()\fR now accepts a \f(CW\*(C`G_RETHROW\*(C'\fR flag. If this flag is set and an
1203
+ exception is thrown while compiling or executing the supplied code, it will be
1204
+ rethrown, and \fBeval_sv()\fR will not return.
1205
+ [perl #134177 <https://rt.perl.org/Ticket/Display.html?id=134177>]
1206
+ .IP "\(bu" 4
1207
+ As part of the fix for
1208
+ [perl #2754 <https://rt.perl.org/Ticket/Display.html?id=2754>] \fBperl_parse()\fR
1209
+ now returns non-zero if \fBexit\fR\|(0) is called in a \f(CW\*(C`BEGIN\*(C'\fR, \f(CW\*(C`UNITCHECK\*(C'\fR or
1210
+ \&\f(CW\*(C`CHECK\*(C'\fR block.
1211
+ .IP "\(bu" 4
1212
+ Most functions which recursively walked an op tree during compilation have been
1213
+ made non-recursive. This avoids SEGVs from stack overflow when the op tree is
1214
+ deeply nested, such as \f(CW\*(C`$n == 1 ? "one" : $n == 2 ? "two" : ....\*(C'\fR (especially
1215
+ in code which is auto-generated).
1216
+ .Sp
1217
+ This is particularly noticeable where the code is compiled within a separate
1218
+ thread, as threads tend to have small stacks by default.
1219
+ .SH "Selected Bug Fixes"
1220
+ .IX Header "Selected Bug Fixes"
1221
+ .IP "\(bu" 4
1222
+ Previously \*(L"require\*(R" in perlfunc would only treat the special built-in
1223
+ \&\s-1SV\s0 \f(CW&PL_sv_undef\fR as a value in \f(CW%INC\fR as if a previous \f(CW\*(C`require\*(C'\fR
1224
+ has failed, treating other undefined SVs as if the previous \f(CW\*(C`require\*(C'\fR
1225
+ has succeeded. This could cause unexpected success from \f(CW\*(C`require\*(C'\fR
1226
+ e.g., on \f(CW\*(C`local %INC = %INC;\*(C'\fR. This has been fixed. [\s-1GH\s0 #17428 <https://github.com/Perl/perl5/issues/17428>]
1227
+ .IP "\(bu" 4
1228
+ \&\f(CW\*(C`(?{...})\*(C'\fR eval groups in regular expressions no longer unintentionally
1229
+ trigger \*(L"\s-1EVAL\s0 without pos change exceeded limit in regex\*(R" [\s-1GH\s0 #17490 <https://github.com/Perl/perl5/issues/17490>].
1230
+ .IP "\(bu" 4
1231
+ \&\f(CW\*(C`(?[...])\*(C'\fR extended bracketed character classes do not wrongly raise an
1232
+ error on some cases where a previously-compiled such class is
1233
+ interpolated into another. The heuristics previously used have been
1234
+ replaced by a reliable method, and hence the diagnostics generated have
1235
+ changed. See \*(L"Diagnostics\*(R".
1236
+ .IP "\(bu" 4
1237
+ The debug display (say by specifying \f(CW\*(C`\-Dr\*(C'\fR or \f(CW\*(C`use\ re\*(C'\fR (with
1238
+ appropriate options) of compiled Unicode property wildcard subpatterns no
1239
+ longer has extraneous output.
1240
+ .IP "\(bu" 4
1241
+ Fix an assertion failure in the regular expression engine.
1242
+ [\s-1GH\s0 #17372 <https://github.com/Perl/perl5/issues/17372>]
1243
+ .IP "\(bu" 4
1244
+ Fix coredump in pp_hot.c after \f(CW\*(C`B::UNOP_AUX::aux_list()\*(C'\fR.
1245
+ [\s-1GH\s0 #17301 <https://github.com/Perl/perl5/issues/17301>]
1246
+ .IP "\(bu" 4
1247
+ Loading \s-1IO\s0 is now threadsafe.
1248
+ [\s-1GH\s0 #14816 <https://github.com/Perl/perl5/issues/14816>]
1249
+ .IP "\(bu" 4
1250
+ \&\f(CW\*(C`\ep{user\-defined}\*(C'\fR overrides official Unicode [\s-1GH\s0 #17025 <https://github.com/Perl/perl5/issues/17025>]
1251
+ .Sp
1252
+ Prior to this patch, the override was only sometimes in effect.
1253
+ .IP "\(bu" 4
1254
+ Properly handle filled \f(CW\*(C`/il\*(C'\fR regnodes and multi-char folds
1255
+ .IP "\(bu" 4
1256
+ Compilation error during make minitest [\s-1GH\s0 #17293 <https://github.com/Perl/perl5/issues/17293>]
1257
+ .IP "\(bu" 4
1258
+ Move the implementation of \f(CW\*(C`%\-\*(C'\fR, \f(CW\*(C`%+\*(C'\fR into core.
1259
+ .IP "\(bu" 4
1260
+ Read beyond buffer in \f(CW\*(C`grok_inf_nan\*(C'\fR [\s-1GH\s0 #17370 <https://github.com/Perl/perl5/issues/17370>]
1261
+ .IP "\(bu" 4
1262
+ Workaround glibc bug with \f(CW\*(C`LC_MESSAGES\*(C'\fR [\s-1GH\s0 #17081 <https://github.com/Perl/perl5/issues/17081>]
1263
+ .IP "\(bu" 4
1264
+ \&\f(CW\*(C`printf()\*(C'\fR or \f(CW\*(C`sprintf()\*(C'\fR with the \f(CW%n\fR format could cause a panic on
1265
+ debugging builds, or report an incorrectly cached length value when
1266
+ producing \f(CW\*(C`SVfUTF8\*(C'\fR flagged strings. [\s-1GH\s0 #17221 <https://github.com/Perl/perl5/issues/17221>]
1267
+ .IP "\(bu" 4
1268
+ The tokenizer has been extensively refactored.
1269
+ [\s-1GH\s0 #17241 <https://github.com/Perl/perl5/issues/17241>]
1270
+ [\s-1GH\s0 #17189 <https://github.com/Perl/perl5/issues/17189>]
1271
+ .IP "\(bu" 4
1272
+ \&\f(CW\*(C`use strict "subs"\*(C'\fR is now enforced for bareword constants optimized
1273
+ into a \f(CW\*(C`multiconcat\*(C'\fR operator. [\s-1GH\s0 #17254 <https://github.com/Perl/perl5/issues/17254>]
1274
+ .IP "\(bu" 4
1275
+ A memory leak in regular expression patterns has been fixed. [\s-1GH\s0 #17218 <https://github.com/Perl/perl5/issues/17218>]
1276
+ .IP "\(bu" 4
1277
+ Perl no longer treats strings starting with \*(L"0x\*(R" or \*(L"0b\*(R" as hex or
1278
+ binary numbers respectively when converting a string to a number.
1279
+ This reverts a change in behaviour inadvertently introduced in perl
1280
+ 5.30.0 intended to improve precision when converting a string to a
1281
+ floating point number. [perl #134230 <https://rt.perl.org/Ticket/Display.html?id=134230>]
1282
+ .IP "\(bu" 4
1283
+ Matching a non\-\f(CW\*(C`SVf_UTF8\*(C'\fR string against a regular expression
1284
+ containing unicode literals could leak a \s-1SV\s0 on each match attempt.
1285
+ [perl #134390 <https://rt.perl.org/Ticket/Display.html?id=134390>]
1286
+ .IP "\(bu" 4
1287
+ Overloads for octal and binary floating point literals were always
1288
+ passed a string with a \f(CW\*(C`0x\*(C'\fR prefix instead of the appropriate \f(CW0\fR or
1289
+ \&\f(CW\*(C`0b\*(C'\fR prefix. [perl #125557 <https://rt.perl.org/Ticket/Display.html?id=125557>]
1290
+ .IP "\(bu" 4
1291
+ \&\f(CW\*(C`$@ = 100; die;\*(C'\fR now correctly propagates the 100 as an exception
1292
+ instead of ignoring it. [perl #134291 <https://rt.perl.org/Ticket/Display.html?id=134291>]
1293
+ .IP "\(bu" 4
1294
+ \&\f(CW\*(C`0 0x@\*(C'\fR no longer asserts in \fBS_no_op()\fR. [perl #134310 <https://rt.perl.org/Ticket/Display.html?id=134310>]
1295
+ .IP "\(bu" 4
1296
+ Exceptions thrown while \f(CW$@\fR is read-only could result in infinite
1297
+ recursion as perl tried to update \f(CW$@\fR, which throws another
1298
+ exception, resulting in a stack overflow. Perl now replaces \f(CW$@\fR
1299
+ with a copy if it's not a simple writable \s-1SV.\s0 [perl #134266 <https://rt.perl.org/Ticket/Display.html?id=134266>]
1300
+ .IP "\(bu" 4
1301
+ Setting \f(CW$)\fR now properly sets supplementary group ids if you have
1302
+ the necessary privileges. [perl #134169 <https://rt.perl.org/Ticket/Display.html?id=134169>]
1303
+ .IP "\(bu" 4
1304
+ \&\fBclose()\fR on a pipe now preemptively clears the PerlIO object from the
1305
+ \&\s-1IO SV.\s0 This prevents a second attempt to close the already closed
1306
+ PerlIO object if a signal handler calls \fBdie()\fR or \fBexit()\fR while \fBclose()\fR
1307
+ is waiting for the child process to complete. [perl #122112 <https://rt.perl.org/Ticket/Display.html?id=122112>]
1308
+ .IP "\(bu" 4
1309
+ \&\f(CW\*(C`sprintf("%.*a", \-10000, $x)\*(C'\fR would cause a buffer overflow due
1310
+ to mishandling of the negative precision value. [perl #134008 <https://rt.perl.org/Ticket/Display.html?id=134008>]
1311
+ .IP "\(bu" 4
1312
+ \&\fBscalar()\fR on a reference could cause an erroneous assertion failure
1313
+ during compilation. [perl #134045 <https://rt.perl.org/Ticket/Display.html?id=134045>]
1314
+ .IP "\(bu" 4
1315
+ \&\f(CW\*(C`%{^CAPTURE_ALL}\*(C'\fR is now an alias to \f(CW\*(C`%\-\*(C'\fR as documented, rather than
1316
+ incorrectly an alias for \f(CW\*(C`%+\*(C'\fR. [perl #131867 <https://rt.perl.org/Ticket/Display.html?id=131867>]
1317
+ .IP "\(bu" 4
1318
+ \&\f(CW\*(C`%{^CAPTURE}\*(C'\fR didn't work if \f(CW\*(C`@{^CAPTURE}\*(C'\fR was mentioned first.
1319
+ Similarly for \f(CW\*(C`%{^CAPTURE_ALL}\*(C'\fR and \f(CW\*(C`@{^CAPTURE_ALL}\*(C'\fR, though
1320
+ \&\f(CW\*(C`@{^CAPTURE_ALL}\*(C'\fR currently isn't used. [perl #134193 <https://rt.perl.org/Ticket/Display.html?id=134193>]
1321
+ .IP "\(bu" 4
1322
+ Extraordinarily large (over 2GB) floating point format widths could
1323
+ cause an integer overflow in the underlying call to \fBsnprintf()\fR,
1324
+ resulting in an assertion. Formatted floating point widths are now
1325
+ limited to the range of int, the return value of \fBsnprintf()\fR. [perl
1326
+ #133913 <https://rt.perl.org/Ticket/Display.html?id=133913>]
1327
+ .IP "\(bu" 4
1328
+ Parsing the following constructs within a sub-parse (such as with
1329
+ \&\f(CW"${code here}"\fR or \f(CW\*(C`s/.../code here/e\*(C'\fR) has changed to match how
1330
+ they're parsed normally:
1331
+ .RS 4
1332
+ .IP "\(bu" 4
1333
+ \&\f(CW\*(C`print $fh ...\*(C'\fR no longer produces a syntax error.
1334
+ .IP "\(bu" 4
1335
+ Code like \f(CW\*(C`s/.../ ${time} /e\*(C'\fR now properly produces an \*(L"Ambiguous use
1336
+ of ${time} resolved to \f(CW$time\fR at ...\*(R" warning when warnings are enabled.
1337
+ .IP "\(bu" 4
1338
+ \&\f(CW\*(C`@x {"a"}\*(C'\fR (with the space) in a sub-parse now properly produces a
1339
+ \&\*(L"better written as\*(R" warning when warnings are enabled.
1340
+ .IP "\(bu" 4
1341
+ Attributes can now be used in a sub-parse.
1342
+ [perl #133850 <https://rt.perl.org/Ticket/Display.html?id=133850>]
1343
+ .RE
1344
+ .RS 4
1345
+ .RE
1346
+ .IP "\(bu" 4
1347
+ Incomplete hex and binary literals like \f(CW\*(C`0x\*(C'\fR and \f(CW\*(C`0b\*(C'\fR are now
1348
+ treated as if the \f(CW\*(C`x\*(C'\fR or \f(CW\*(C`b\*(C'\fR is part of the next token. [perl
1349
+ #134125 <https://rt.perl.org/Ticket/Display.html?id=134125>]
1350
+ .IP "\(bu" 4
1351
+ A spurious \f(CW\*(C`)\*(C'\fR in a subparse, such as in \f(CW\*(C`s/.../code here/e\*(C'\fR or
1352
+ \&\f(CW"...${code here}"\fR, no longer confuses the parser.
1353
+ .Sp
1354
+ Previously a subparse was bracketed with generated \f(CW\*(C`(\*(C'\fR and \f(CW\*(C`)\*(C'\fR
1355
+ tokens, so a spurious \f(CW\*(C`)\*(C'\fR would close the construct without doing the
1356
+ normal subparse clean up, confusing the parser and possible causing an
1357
+ assertion failure.
1358
+ .Sp
1359
+ Such constructs are now surrounded by artificial tokens that can't be
1360
+ included in the source. [perl #130585 <https://rt.perl.org/Ticket/Display.html?id=130585>]
1361
+ .IP "\(bu" 4
1362
+ Reference assignment of a sub, such as \f(CW\*(C`\e&foo = \e&bar;\*(C'\fR, silently did
1363
+ nothing in the \f(CW\*(C`main::\*(C'\fR package. [perl #134072 <https://rt.perl.org/Ticket/Display.html?id=134072>]
1364
+ .IP "\(bu" 4
1365
+ \&\fBsv_gets()\fR now recovers better if the target \s-1SV\s0 is modified by a signal
1366
+ handler. [perl #134035 <https://rt.perl.org/Ticket/Display.html?id=134035>]
1367
+ .IP "\(bu" 4
1368
+ \&\f(CW\*(C`readline @foo\*(C'\fR now evaluates \f(CW@foo\fR in scalar context. Previously
1369
+ it would be evaluated in list context, and since \fBreadline()\fR pops only
1370
+ one argument from the stack, the stack could underflow, or be left
1371
+ with unexpected values on the stack. [perl #133989 <https://rt.perl.org/Ticket/Display.html?id=133989>]
1372
+ .IP "\(bu" 4
1373
+ Parsing incomplete hex or binary literals was changed in 5.31.1 to treat such a
1374
+ literal as just the 0, leaving the following \f(CW\*(C`x\*(C'\fR or \f(CW\*(C`b\*(C'\fR to be parsed as part
1375
+ of the next token. This could lead to some silent changes in behaviour, so now
1376
+ incomplete hex or binary literals produce a fatal error.
1377
+ [perl #134125 <https://rt.perl.org/Ticket/Display.html?id=134125>]
1378
+ .IP "\(bu" 4
1379
+ \&\fBeval_pv()\fR's \fIcroak_on_error\fR flag will now throw even if the exception is a
1380
+ false overloaded value.
1381
+ [perl #134177 <https://rt.perl.org/Ticket/Display.html?id=134177>]
1382
+ .IP "\(bu" 4
1383
+ \&\f(CW\*(C`INIT\*(C'\fR blocks and the program itself are no longer run if \fBexit\fR\|(0) is called
1384
+ within a \f(CW\*(C`BEGIN\*(C'\fR, \f(CW\*(C`UNITCHECK\*(C'\fR or \f(CW\*(C`CHECK\*(C'\fR block.
1385
+ [perl #2754 <https://rt.perl.org/Ticket/Display.html?id=2754>]
1386
+ .IP "\(bu" 4
1387
+ \&\f(CW\*(C`open my $fh, ">>+", undef\*(C'\fR now opens the temporary file in append mode:
1388
+ writes will seek to the end of file before writing.
1389
+ [perl #134221 <https://rt.perl.org/Ticket/Display.html?id=134221>]
1390
+ .IP "\(bu" 4
1391
+ Fixed a \s-1SEGV\s0 when searching for the source of an uninitialized value warning on
1392
+ an op whose subtree includes an \s-1OP_MULTIDEREF.\s0
1393
+ [perl #134275 <https://rt.perl.org/Ticket/Display.html?id=134275>]
1394
+ .SH "Obituary"
1395
+ .IX Header "Obituary"
1396
+ Jeff Goff (\s-1JGOFF\s0 or DrForr), an integral part of the Perl and Raku
1397
+ communities and a dear friend to all of us, has passed away on March
1398
+ 13th, 2020. DrForr was a prominent member of the communities, attending
1399
+ and speaking at countless events, contributing to numerous projects,
1400
+ and assisting and helping in any way he could.
1401
+ .PP
1402
+ His passing leaves a hole in our hearts and in our communities and he
1403
+ will be sorely missed.
1404
+ .SH "Acknowledgements"
1405
+ .IX Header "Acknowledgements"
1406
+ Perl 5.32.0 represents approximately 13 months of development since Perl
1407
+ 5.30.0 and contains approximately 220,000 lines of changes across 1,800
1408
+ files from 89 authors.
1409
+ .PP
1410
+ Excluding auto-generated files, documentation and release tools, there were
1411
+ approximately 140,000 lines of changes to 880 .pm, .t, .c and .h files.
1412
+ .PP
1413
+ Perl continues to flourish into its fourth decade thanks to a vibrant
1414
+ community of users and developers. The following people are known to have
1415
+ contributed the improvements that became Perl 5.32.0:
1416
+ .PP
1417
+ Aaron Crane, Alberto Simo\*~es, Alexandr Savca, Andreas Ko\*:nig, Andrew Fresh,
1418
+ Andy Dougherty, Ask Bjo\*/rn Hansen, Atsushi Sugawara, Bernhard M. Wiedemann,
1419
+ brian d foy, Bryan Stenson, Chad Granum, Chase Whitener, Chris 'BinGOs'
1420
+ Williams, Craig A. Berry, Dagfinn Ilmari Mannsa\*oker, Dan Book, Daniel
1421
+ Dragan, Dan Kogai, Dave Cross, Dave Rolsky, David Cantrell, David Mitchell,
1422
+ Dominic Hargreaves, E. Choroba, Felipe Gasper, Florian Weimer, Graham Knop,
1423
+ Ha\*okon H\*(aegland, Hauke D, H.Merijn Brand, Hugo van der Sanden, Ichinose
1424
+ Shogo, James E Keenan, Jason McIntosh, Jerome Duval, Johan Vromans, John
1425
+ Lightsey, John Paul Adrian Glaubitz, Kang-min Liu, Karen Etheridge, Karl
1426
+ Williamson, Leon Timmermans, Manuel Mausz, Marc Green, Matthew Horsfall,
1427
+ Matt Turner, Max Maischein, Michael Haardt, Nicholas Clark, Nicolas R., Niko
1428
+ Tyni, Pali, Paul Evans, Paul Johnson, Paul Marquess, Peter Eisentraut, Peter
1429
+ John Acklam, Peter Oliver, Petr Pi\*'saX, Renee Baecker, Ricardo Signes,
1430
+ Richard Leach, Russ Allbery, Samuel Smith, Santtu Ojanpera\*:, Sawyer X,
1431
+ Sergey Aleynikov, Sergiy Borodych, Shirakata Kentaro, Shlomi Fish, Sisyphus,
1432
+ Slaven Rezic, Smylers, Stefan Seifert, Steve Hay, Steve Peters, Svyatoslav,
1433
+ Thibault Duponchelle, Todd Rinaldo, Tomasz Konojacki, Tom Hukins, Tony Cook,
1434
+ Unicode Consortium, VanL, Vickenty Fesunov, Vitali Peil, Yves Orton, Zefram.
1435
+ .PP
1436
+ The list above is almost certainly incomplete as it is automatically
1437
+ generated from version control history. In particular, it does not include
1438
+ the names of the (very much appreciated) contributors who reported issues to
1439
+ the Perl bug tracker.
1440
+ .PP
1441
+ Many of the changes included in this version originated in the \s-1CPAN\s0 modules
1442
+ included in Perl's core. We're grateful to the entire \s-1CPAN\s0 community for
1443
+ helping Perl to flourish.
1444
+ .PP
1445
+ For a more complete list of all of Perl's historical contributors, please
1446
+ see the \fI\s-1AUTHORS\s0\fR file in the Perl source distribution.
1447
+ .SH "Reporting Bugs"
1448
+ .IX Header "Reporting Bugs"
1449
+ If you find what you think is a bug, you might check the perl bug database
1450
+ at <https://github.com/Perl/perl5/issues>. There may also be information at
1451
+ <http://www.perl.org/>, the Perl Home Page.
1452
+ .PP
1453
+ If you believe you have an unreported bug, please open an issue at
1454
+ <https://github.com/Perl/perl5/issues>. Be sure to trim your bug down to a
1455
+ tiny but sufficient test case.
1456
+ .PP
1457
+ If the bug you are reporting has security implications which make it
1458
+ inappropriate to send to a public issue tracker, then see
1459
+ \&\*(L"\s-1SECURITY VULNERABILITY CONTACT INFORMATION\*(R"\s0 in perlsec
1460
+ for details of how to report the issue.
1461
+ .SH "Give Thanks"
1462
+ .IX Header "Give Thanks"
1463
+ If you wish to thank the Perl 5 Porters for the work we had done in Perl 5,
1464
+ you can do so by running the \f(CW\*(C`perlthanks\*(C'\fR program:
1465
+ .PP
1466
+ .Vb 1
1467
+ \& perlthanks
1468
+ .Ve
1469
+ .PP
1470
+ This will send an email to the Perl 5 Porters list with your show of thanks.
1471
+ .SH "SEE ALSO"
1472
+ .IX Header "SEE ALSO"
1473
+ The \fIChanges\fR file for an explanation of how to view exhaustive details on
1474
+ what changed.
1475
+ .PP
1476
+ The \fI\s-1INSTALL\s0\fR file for how to build Perl.
1477
+ .PP
1478
+ The \fI\s-1README\s0\fR file for general stuff.
1479
+ .PP
1480
+ The \fIArtistic\fR and \fICopying\fR files for copyright information.
data/miniconda3/man/man1/perl561delta.1 ADDED
The diff for this file is too large to render. See raw diff
 
data/miniconda3/man/man1/perl582delta.1 ADDED
@@ -0,0 +1,275 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "PERL582DELTA 1"
136
+ .TH PERL582DELTA 1 "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
+ perl582delta \- what is new for perl v5.8.2
143
+ .SH "DESCRIPTION"
144
+ .IX Header "DESCRIPTION"
145
+ This document describes differences between the 5.8.1 release and
146
+ the 5.8.2 release.
147
+ .PP
148
+ If you are upgrading from an earlier release such as 5.6.1, first read
149
+ the perl58delta, which describes differences between 5.6.0 and
150
+ 5.8.0, and the perl581delta, which describes differences between
151
+ 5.8.0 and 5.8.1.
152
+ .SH "Incompatible Changes"
153
+ .IX Header "Incompatible Changes"
154
+ For threaded builds for modules calling certain re-entrant system calls,
155
+ binary compatibility was accidentally lost between 5.8.0 and 5.8.1.
156
+ Binary compatibility with 5.8.0 has been restored in 5.8.2, which
157
+ necessitates breaking compatibility with 5.8.1. We see this as the
158
+ lesser of two evils.
159
+ .PP
160
+ This will only affect people who have a threaded perl 5.8.1, and compiled
161
+ modules which use these calls, and now attempt to run the compiled modules
162
+ with 5.8.2. The fix is to re-compile and re-install the modules using 5.8.2.
163
+ .SH "Core Enhancements"
164
+ .IX Header "Core Enhancements"
165
+ .SS "Hash Randomisation"
166
+ .IX Subsection "Hash Randomisation"
167
+ The hash randomisation introduced with 5.8.1 has been amended. It
168
+ transpired that although the implementation introduced in 5.8.1 was source
169
+ compatible with 5.8.0, it was not binary compatible in certain cases. 5.8.2
170
+ contains an improved implementation which is both source and binary
171
+ compatible with both 5.8.0 and 5.8.1, and remains robust against the form of
172
+ attack which prompted the change for 5.8.1.
173
+ .PP
174
+ We are grateful to the Debian project for their input in this area.
175
+ See \*(L"Algorithmic Complexity Attacks\*(R" in perlsec for the original
176
+ rationale behind this change.
177
+ .SS "Threading"
178
+ .IX Subsection "Threading"
179
+ Several memory leaks associated with variables shared between threads
180
+ have been fixed.
181
+ .SH "Modules and Pragmata"
182
+ .IX Header "Modules and Pragmata"
183
+ .SS "Updated Modules And Pragmata"
184
+ .IX Subsection "Updated Modules And Pragmata"
185
+ The following modules and pragmata have been updated since Perl 5.8.1:
186
+ .IP "Devel::PPPort" 4
187
+ .IX Item "Devel::PPPort"
188
+ .PD 0
189
+ .IP "Digest::MD5" 4
190
+ .IX Item "Digest::MD5"
191
+ .IP "I18N::LangTags" 4
192
+ .IX Item "I18N::LangTags"
193
+ .IP "libnet" 4
194
+ .IX Item "libnet"
195
+ .IP "MIME::Base64" 4
196
+ .IX Item "MIME::Base64"
197
+ .IP "Pod::Perldoc" 4
198
+ .IX Item "Pod::Perldoc"
199
+ .IP "strict" 4
200
+ .IX Item "strict"
201
+ .PD
202
+ Documentation improved
203
+ .IP "Tie::Hash" 4
204
+ .IX Item "Tie::Hash"
205
+ Documentation improved
206
+ .IP "Time::HiRes" 4
207
+ .IX Item "Time::HiRes"
208
+ .PD 0
209
+ .IP "Unicode::Collate" 4
210
+ .IX Item "Unicode::Collate"
211
+ .IP "Unicode::Normalize" 4
212
+ .IX Item "Unicode::Normalize"
213
+ .IP "\s-1UNIVERSAL\s0" 4
214
+ .IX Item "UNIVERSAL"
215
+ .PD
216
+ Documentation improved
217
+ .SH "Selected Bug Fixes"
218
+ .IX Header "Selected Bug Fixes"
219
+ Some syntax errors involving unrecognized filetest operators are now handled
220
+ correctly by the parser.
221
+ .SH "Changed Internals"
222
+ .IX Header "Changed Internals"
223
+ Interpreter initialization is more complete when \-DMULTIPLICITY is off.
224
+ This should resolve problems with initializing and destroying the Perl
225
+ interpreter more than once in a single process.
226
+ .SH "Platform Specific Problems"
227
+ .IX Header "Platform Specific Problems"
228
+ Dynamic linker flags have been tweaked for Solaris and \s-1OS X,\s0 which should
229
+ solve problems seen while building some \s-1XS\s0 modules.
230
+ .PP
231
+ Bugs in \s-1OS/2\s0 sockets and tmpfile have been fixed.
232
+ .PP
233
+ In \s-1OS X\s0 \f(CW\*(C`setreuid\*(C'\fR and friends are troublesome \- perl will now work
234
+ around their problems as best possible.
235
+ .SH "Future Directions"
236
+ .IX Header "Future Directions"
237
+ Starting with 5.8.3 we intend to make more frequent maintenance releases,
238
+ with a smaller number of changes in each. The intent is to propagate
239
+ bug fixes out to stable releases more rapidly and make upgrading stable
240
+ releases less of an upheaval. This should give end users more
241
+ flexibility in their choice of upgrade timing, and allow them easier
242
+ assessment of the impact of upgrades. The current plan is for code freezes
243
+ as follows
244
+ .IP "\(bu" 4
245
+ 5.8.3 23:59:59 \s-1GMT,\s0 Wednesday December 31st 2003
246
+ .IP "\(bu" 4
247
+ 5.8.4 23:59:59 \s-1GMT,\s0 Wednesday March 31st 2004
248
+ .IP "\(bu" 4
249
+ 5.8.5 23:59:59 \s-1GMT,\s0 Wednesday June 30th 2004
250
+ .PP
251
+ with the release following soon after, when testing is complete.
252
+ .PP
253
+ See \*(L"Future Directions\*(R" in perl581delta for more soothsaying.
254
+ .SH "Reporting Bugs"
255
+ .IX Header "Reporting Bugs"
256
+ If you find what you think is a bug, you might check the articles
257
+ recently posted to the comp.lang.perl.misc newsgroup and the perl
258
+ bug database at http://bugs.perl.org/. There may also be
259
+ information at http://www.perl.com/, the Perl Home Page.
260
+ .PP
261
+ If you believe you have an unreported bug, please run the \fBperlbug\fR
262
+ program included with your release. Be sure to trim your bug down
263
+ to a tiny but sufficient test case. Your bug report, along with the
264
+ output of \f(CW\*(C`perl \-V\*(C'\fR, will be sent off to perlbug@perl.org to be
265
+ analysed by the Perl porting team. You can browse and search
266
+ the Perl 5 bugs at http://bugs.perl.org/
267
+ .SH "SEE ALSO"
268
+ .IX Header "SEE ALSO"
269
+ The \fIChanges\fR file for exhaustive details on what changed.
270
+ .PP
271
+ The \fI\s-1INSTALL\s0\fR file for how to build Perl.
272
+ .PP
273
+ The \fI\s-1README\s0\fR file for general stuff.
274
+ .PP
275
+ The \fIArtistic\fR and \fICopying\fR files for copyright information.
data/miniconda3/man/man1/perl584delta.1 ADDED
@@ -0,0 +1,377 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "PERL584DELTA 1"
136
+ .TH PERL584DELTA 1 "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
+ perl584delta \- what is new for perl v5.8.4
143
+ .SH "DESCRIPTION"
144
+ .IX Header "DESCRIPTION"
145
+ This document describes differences between the 5.8.3 release and
146
+ the 5.8.4 release.
147
+ .SH "Incompatible Changes"
148
+ .IX Header "Incompatible Changes"
149
+ Many minor bugs have been fixed. Scripts which happen to rely on previously
150
+ erroneous behaviour will consider these fixes as incompatible changes :\-)
151
+ You are advised to perform sufficient acceptance testing on this release
152
+ to satisfy yourself that this does not affect you, before putting this
153
+ release into production.
154
+ .PP
155
+ The diagnostic output of Carp has been changed slightly, to add a space after
156
+ the comma between arguments. This makes it much easier for tools such as
157
+ web browsers to wrap it, but might confuse any automatic tools which perform
158
+ detailed parsing of Carp output.
159
+ .PP
160
+ The internal dump output has been improved, so that non-printable characters
161
+ such as newline and backspace are output in \f(CW\*(C`\ex\*(C'\fR notation, rather than
162
+ octal. This might just confuse non-robust tools which parse the output of
163
+ modules such as Devel::Peek.
164
+ .SH "Core Enhancements"
165
+ .IX Header "Core Enhancements"
166
+ .SS "Malloc wrapping"
167
+ .IX Subsection "Malloc wrapping"
168
+ Perl can now be built to detect attempts to assign pathologically large chunks
169
+ of memory. Previously such assignments would suffer from integer wrap-around
170
+ during size calculations causing a misallocation, which would crash perl, and
171
+ could theoretically be used for \*(L"stack smashing\*(R" attacks. The wrapping
172
+ defaults to enabled on platforms where we know it works (most \s-1AIX\s0
173
+ configurations, BSDi, Darwin, \s-1DEC OSF/1,\s0 FreeBSD, \s-1HP/UX, GNU\s0 Linux, OpenBSD,
174
+ Solaris, \s-1VMS\s0 and most Win32 compilers) and defaults to disabled on other
175
+ platforms.
176
+ .SS "Unicode Character Database 4.0.1"
177
+ .IX Subsection "Unicode Character Database 4.0.1"
178
+ The copy of the Unicode Character Database included in Perl 5.8 has
179
+ been updated to 4.0.1 from 4.0.0.
180
+ .SS "suidperl less insecure"
181
+ .IX Subsection "suidperl less insecure"
182
+ Paul Szabo has analysed and patched \f(CW\*(C`suidperl\*(C'\fR to remove existing known
183
+ insecurities. Currently there are no known holes in \f(CW\*(C`suidperl\*(C'\fR, but previous
184
+ experience shows that we cannot be confident that these were the last. You may
185
+ no longer invoke the set uid perl directly, so to preserve backwards
186
+ compatibility with scripts that invoke #!/usr/bin/suidperl the only set uid
187
+ binary is now \f(CW\*(C`sperl5.8.\*(C'\fR\fIn\fR (\f(CW\*(C`sperl5.8.4\*(C'\fR for this release). \f(CW\*(C`suidperl\*(C'\fR
188
+ is installed as a hard link to \f(CW\*(C`perl\*(C'\fR; both \f(CW\*(C`suidperl\*(C'\fR and \f(CW\*(C`perl\*(C'\fR will
189
+ invoke \f(CW\*(C`sperl5.8.4\*(C'\fR automatically the set uid binary, so this change should
190
+ be completely transparent.
191
+ .PP
192
+ For new projects the core perl team would strongly recommend that you use
193
+ dedicated, single purpose security tools such as \f(CW\*(C`sudo\*(C'\fR in preference to
194
+ \&\f(CW\*(C`suidperl\*(C'\fR.
195
+ .SS "format"
196
+ .IX Subsection "format"
197
+ In addition to bug fixes, \f(CW\*(C`format\*(C'\fR's features have been enhanced. See
198
+ perlform
199
+ .SH "Modules and Pragmata"
200
+ .IX Header "Modules and Pragmata"
201
+ The (mis)use of \f(CW\*(C`/tmp\*(C'\fR in core modules and documentation has been tidied up.
202
+ Some modules available both within the perl core and independently from \s-1CPAN\s0
203
+ (\*(L"dual-life modules\*(R") have not yet had these changes applied; the changes
204
+ will be integrated into future stable perl releases as the modules are
205
+ updated on \s-1CPAN.\s0
206
+ .SS "Updated modules"
207
+ .IX Subsection "Updated modules"
208
+ .IP "Attribute::Handlers" 4
209
+ .IX Item "Attribute::Handlers"
210
+ .PD 0
211
+ .IP "B" 4
212
+ .IX Item "B"
213
+ .IP "Benchmark" 4
214
+ .IX Item "Benchmark"
215
+ .IP "\s-1CGI\s0" 4
216
+ .IX Item "CGI"
217
+ .IP "Carp" 4
218
+ .IX Item "Carp"
219
+ .IP "Cwd" 4
220
+ .IX Item "Cwd"
221
+ .IP "Exporter" 4
222
+ .IX Item "Exporter"
223
+ .IP "File::Find" 4
224
+ .IX Item "File::Find"
225
+ .IP "\s-1IO\s0" 4
226
+ .IX Item "IO"
227
+ .IP "IPC::Open3" 4
228
+ .IX Item "IPC::Open3"
229
+ .IP "Local::Maketext" 4
230
+ .IX Item "Local::Maketext"
231
+ .IP "Math::BigFloat" 4
232
+ .IX Item "Math::BigFloat"
233
+ .IP "Math::BigInt" 4
234
+ .IX Item "Math::BigInt"
235
+ .IP "Math::BigRat" 4
236
+ .IX Item "Math::BigRat"
237
+ .IP "MIME::Base64" 4
238
+ .IX Item "MIME::Base64"
239
+ .IP "ODBM_File" 4
240
+ .IX Item "ODBM_File"
241
+ .IP "\s-1POSIX\s0" 4
242
+ .IX Item "POSIX"
243
+ .IP "Shell" 4
244
+ .IX Item "Shell"
245
+ .IP "Socket" 4
246
+ .IX Item "Socket"
247
+ .PD
248
+ There is experimental support for Linux abstract Unix domain sockets.
249
+ .IP "Storable" 4
250
+ .IX Item "Storable"
251
+ .PD 0
252
+ .IP "Switch" 4
253
+ .IX Item "Switch"
254
+ .PD
255
+ Synced with its \s-1CPAN\s0 version 2.10
256
+ .IP "Sys::Syslog" 4
257
+ .IX Item "Sys::Syslog"
258
+ \&\f(CW\*(C`syslog()\*(C'\fR can now use numeric constants for facility names and priorities,
259
+ in addition to strings.
260
+ .IP "Term::ANSIColor" 4
261
+ .IX Item "Term::ANSIColor"
262
+ .PD 0
263
+ .IP "Time::HiRes" 4
264
+ .IX Item "Time::HiRes"
265
+ .IP "Unicode::UCD" 4
266
+ .IX Item "Unicode::UCD"
267
+ .IP "Win32" 4
268
+ .IX Item "Win32"
269
+ .PD
270
+ Win32.pm/Win32.xs has moved from the libwin32 module to core Perl
271
+ .IP "base" 4
272
+ .IX Item "base"
273
+ .PD 0
274
+ .IP "open" 4
275
+ .IX Item "open"
276
+ .IP "threads" 4
277
+ .IX Item "threads"
278
+ .PD
279
+ Detached threads are now also supported on Windows.
280
+ .IP "utf8" 4
281
+ .IX Item "utf8"
282
+ .SH "Performance Enhancements"
283
+ .IX Header "Performance Enhancements"
284
+ .PD 0
285
+ .IP "\(bu" 4
286
+ .PD
287
+ Accelerated Unicode case mappings (\f(CW\*(C`/i\*(C'\fR, \f(CW\*(C`lc\*(C'\fR, \f(CW\*(C`uc\*(C'\fR, etc).
288
+ .IP "\(bu" 4
289
+ In place sort optimised (eg \f(CW\*(C`@a = sort @a\*(C'\fR)
290
+ .IP "\(bu" 4
291
+ Unnecessary assignment optimised away in
292
+ .Sp
293
+ .Vb 3
294
+ \& my $s = undef;
295
+ \& my @a = ();
296
+ \& my %h = ();
297
+ .Ve
298
+ .IP "\(bu" 4
299
+ Optimised \f(CW\*(C`map\*(C'\fR in scalar context
300
+ .SH "Utility Changes"
301
+ .IX Header "Utility Changes"
302
+ The Perl debugger (\fIlib/perl5db.pl\fR) can now save all debugger commands for
303
+ sourcing later, and can display the parent inheritance tree of a given class.
304
+ .SH "Installation and Configuration Improvements"
305
+ .IX Header "Installation and Configuration Improvements"
306
+ The build process on both \s-1VMS\s0 and Windows has had several minor improvements
307
+ made. On Windows Borland's C compiler can now compile perl with PerlIO and/or
308
+ \&\s-1USE_LARGE_FILES\s0 enabled.
309
+ .PP
310
+ \&\f(CW\*(C`perl.exe\*(C'\fR on Windows now has a \*(L"Camel\*(R" logo icon. The use of a camel with
311
+ the topic of Perl is a trademark of O'Reilly and Associates Inc., and is used
312
+ with their permission (ie distribution of the source, compiling a Windows
313
+ executable from it, and using that executable locally). Use of the supplied
314
+ camel for anything other than a perl executable's icon is specifically not
315
+ covered, and anyone wishing to redistribute perl binaries \fIwith\fR the icon
316
+ should check directly with O'Reilly beforehand.
317
+ .PP
318
+ Perl should build cleanly on Stratus \s-1VOS\s0 once more.
319
+ .SH "Selected Bug Fixes"
320
+ .IX Header "Selected Bug Fixes"
321
+ More utf8 bugs fixed, notably in how \f(CW\*(C`chomp\*(C'\fR, \f(CW\*(C`chop\*(C'\fR, \f(CW\*(C`send\*(C'\fR, and
322
+ \&\f(CW\*(C`syswrite\*(C'\fR and interact with utf8 data. Concatenation now works correctly
323
+ when \f(CW\*(C`use bytes;\*(C'\fR is in scope.
324
+ .PP
325
+ Pragmata are now correctly propagated into (?{...}) constructions in regexps.
326
+ Code such as
327
+ .PP
328
+ .Vb 1
329
+ \& my $x = qr{ ... (??{ $x }) ... };
330
+ .Ve
331
+ .PP
332
+ will now (correctly) fail under use strict. (As the inner \f(CW$x\fR is and
333
+ has always referred to \f(CW$::x\fR)
334
+ .PP
335
+ The \*(L"const in void context\*(R" warning has been suppressed for a constant in an
336
+ optimised-away boolean expression such as \f(CW\*(C`5 || print;\*(C'\fR
337
+ .PP
338
+ \&\f(CW\*(C`perl \-i\*(C'\fR could \f(CW\*(C`fchmod(stdin)\*(C'\fR by mistake. This is serious if stdin is
339
+ attached to a terminal, and perl is running as root. Now fixed.
340
+ .SH "New or Changed Diagnostics"
341
+ .IX Header "New or Changed Diagnostics"
342
+ \&\f(CW\*(C`Carp\*(C'\fR and the internal diagnostic routines used by \f(CW\*(C`Devel::Peek\*(C'\fR have been
343
+ made clearer, as described in \*(L"Incompatible Changes\*(R"
344
+ .SH "Changed Internals"
345
+ .IX Header "Changed Internals"
346
+ Some bugs have been fixed in the hash internals. Restricted hashes and
347
+ their place holders are now allocated and deleted at slightly different times,
348
+ but this should not be visible to user code.
349
+ .SH "Future Directions"
350
+ .IX Header "Future Directions"
351
+ Code freeze for the next maintenance release (5.8.5) will be on 30th June
352
+ 2004, with release by mid July.
353
+ .SH "Platform Specific Problems"
354
+ .IX Header "Platform Specific Problems"
355
+ This release is known not to build on Windows 95.
356
+ .SH "Reporting Bugs"
357
+ .IX Header "Reporting Bugs"
358
+ If you find what you think is a bug, you might check the articles
359
+ recently posted to the comp.lang.perl.misc newsgroup and the perl
360
+ bug database at http://bugs.perl.org. There may also be
361
+ information at http://www.perl.org, the Perl Home Page.
362
+ .PP
363
+ If you believe you have an unreported bug, please run the \fBperlbug\fR
364
+ program included with your release. Be sure to trim your bug down
365
+ to a tiny but sufficient test case. Your bug report, along with the
366
+ output of \f(CW\*(C`perl \-V\*(C'\fR, will be sent off to perlbug@perl.org to be
367
+ analysed by the Perl porting team. You can browse and search
368
+ the Perl 5 bugs at http://bugs.perl.org/
369
+ .SH "SEE ALSO"
370
+ .IX Header "SEE ALSO"
371
+ The \fIChanges\fR file for exhaustive details on what changed.
372
+ .PP
373
+ The \fI\s-1INSTALL\s0\fR file for how to build Perl.
374
+ .PP
375
+ The \fI\s-1README\s0\fR file for general stuff.
376
+ .PP
377
+ The \fIArtistic\fR and \fICopying\fR files for copyright information.
data/miniconda3/man/man1/perl586delta.1 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 "PERL586DELTA 1"
136
+ .TH PERL586DELTA 1 "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
+ perl586delta \- what is new for perl v5.8.6
143
+ .SH "DESCRIPTION"
144
+ .IX Header "DESCRIPTION"
145
+ This document describes differences between the 5.8.5 release and
146
+ the 5.8.6 release.
147
+ .SH "Incompatible Changes"
148
+ .IX Header "Incompatible Changes"
149
+ There are no changes incompatible with 5.8.5.
150
+ .SH "Core Enhancements"
151
+ .IX Header "Core Enhancements"
152
+ The perl interpreter is now more tolerant of UTF\-16\-encoded scripts.
153
+ .PP
154
+ On Win32, Perl can now use non-IFS compatible LSPs, which allows Perl to
155
+ work in conjunction with firewalls such as McAfee Guardian. For full details
156
+ see the file \fI\s-1README\s0.win32\fR, particularly if you're running Win95.
157
+ .SH "Modules and Pragmata"
158
+ .IX Header "Modules and Pragmata"
159
+ .IP "\(bu" 4
160
+ With the \f(CW\*(C`base\*(C'\fR pragma, an intermediate class with no fields used to messes
161
+ up private fields in the base class. This has been fixed.
162
+ .IP "\(bu" 4
163
+ Cwd upgraded to version 3.01 (as part of the new PathTools distribution)
164
+ .IP "\(bu" 4
165
+ Devel::PPPort upgraded to version 3.03
166
+ .IP "\(bu" 4
167
+ File::Spec upgraded to version 3.01 (as part of the new PathTools distribution)
168
+ .IP "\(bu" 4
169
+ Encode upgraded to version 2.08
170
+ .IP "\(bu" 4
171
+ ExtUtils::MakeMaker remains at version 6.17, as later stable releases currently
172
+ available on \s-1CPAN\s0 have some issues with core modules on some core platforms.
173
+ .IP "\(bu" 4
174
+ I18N::LangTags upgraded to version 0.35
175
+ .IP "\(bu" 4
176
+ Math::BigInt upgraded to version 1.73
177
+ .IP "\(bu" 4
178
+ Math::BigRat upgraded to version 0.13
179
+ .IP "\(bu" 4
180
+ MIME::Base64 upgraded to version 3.05
181
+ .IP "\(bu" 4
182
+ POSIX::sigprocmask function can now retrieve the current signal mask without
183
+ also setting it.
184
+ .IP "\(bu" 4
185
+ Time::HiRes upgraded to version 1.65
186
+ .SH "Utility Changes"
187
+ .IX Header "Utility Changes"
188
+ Perl has a new \-dt command-line flag, which enables threads support in the
189
+ debugger.
190
+ .SH "Performance Enhancements"
191
+ .IX Header "Performance Enhancements"
192
+ \&\f(CW\*(C`reverse sort ...\*(C'\fR is now optimized to sort in reverse, avoiding the
193
+ generation of a temporary intermediate list.
194
+ .PP
195
+ \&\f(CW\*(C`for (reverse @foo)\*(C'\fR now iterates in reverse, avoiding the generation of a
196
+ temporary reversed list.
197
+ .SH "Selected Bug Fixes"
198
+ .IX Header "Selected Bug Fixes"
199
+ The regexp engine is now more robust when given invalid utf8 input, as is
200
+ sometimes generated by buggy \s-1XS\s0 modules.
201
+ .PP
202
+ \&\f(CW\*(C`foreach\*(C'\fR on threads::shared array used to be able to crash Perl. This bug
203
+ has now been fixed.
204
+ .PP
205
+ A regexp in \f(CW\*(C`STDOUT\*(C'\fR's destructor used to coredump, because the regexp pad
206
+ was already freed. This has been fixed.
207
+ .PP
208
+ \&\f(CW\*(C`goto &\*(C'\fR is now more robust \- bugs in deep recursion and chained \f(CW\*(C`goto &\*(C'\fR
209
+ have been fixed.
210
+ .PP
211
+ Using \f(CW\*(C`delete\*(C'\fR on an array no longer leaks memory. A \f(CW\*(C`pop\*(C'\fR of an item from a
212
+ shared array reference no longer causes a leak.
213
+ .PP
214
+ \&\f(CW\*(C`eval_sv()\*(C'\fR failing a taint test could corrupt the stack \- this has been
215
+ fixed.
216
+ .PP
217
+ On platforms with 64 bit pointers numeric comparison operators used to
218
+ erroneously compare the addresses of references that are overloaded, rather
219
+ than using the overloaded values. This has been fixed.
220
+ .PP
221
+ \&\f(CW\*(C`read\*(C'\fR into a UTF8\-encoded buffer with an offset off the end of the buffer
222
+ no longer mis-calculates buffer lengths.
223
+ .PP
224
+ Although Perl has promised since version 5.8 that \f(CW\*(C`sort()\*(C'\fR would be
225
+ stable, the two cases \f(CW\*(C`sort {$b cmp $a}\*(C'\fR and \f(CW\*(C`sort {$b <=> $a}\*(C'\fR could
226
+ produce non-stable sorts. This is corrected in perl5.8.6.
227
+ .PP
228
+ Localising \f(CW$^D\fR no longer generates a diagnostic message about valid \-D
229
+ flags.
230
+ .SH "New or Changed Diagnostics"
231
+ .IX Header "New or Changed Diagnostics"
232
+ For \-t and \-T,
233
+ Too late for \*(L"\-T\*(R" option
234
+ has been changed to the more informative
235
+ \*(L"\-T\*(R" is on the #! line, it must also be used on the command line
236
+ .SH "Changed Internals"
237
+ .IX Header "Changed Internals"
238
+ From now on all applications embedding perl will behave as if perl
239
+ were compiled with \-DPERL_USE_SAFE_PUTENV. See \*(L"Environment access\*(R" in
240
+ the \fI\s-1INSTALL\s0\fR file for details.
241
+ .PP
242
+ Most \f(CW\*(C`C\*(C'\fR source files now have comments at the top explaining their purpose,
243
+ which should help anyone wishing to get an overview of the implementation.
244
+ .SH "New Tests"
245
+ .IX Header "New Tests"
246
+ There are significantly more tests for the \f(CW\*(C`B\*(C'\fR suite of modules.
247
+ .SH "Reporting Bugs"
248
+ .IX Header "Reporting Bugs"
249
+ If you find what you think is a bug, you might check the articles
250
+ recently posted to the comp.lang.perl.misc newsgroup and the perl
251
+ bug database at http://bugs.perl.org. There may also be
252
+ information at http://www.perl.org, the Perl Home Page.
253
+ .PP
254
+ If you believe you have an unreported bug, please run the \fBperlbug\fR
255
+ program included with your release. Be sure to trim your bug down
256
+ to a tiny but sufficient test case. Your bug report, along with the
257
+ output of \f(CW\*(C`perl \-V\*(C'\fR, will be sent off to perlbug@perl.org to be
258
+ analysed by the Perl porting team. You can browse and search
259
+ the Perl 5 bugs at http://bugs.perl.org/
260
+ .SH "SEE ALSO"
261
+ .IX Header "SEE ALSO"
262
+ The \fIChanges\fR file for exhaustive details on what changed.
263
+ .PP
264
+ The \fI\s-1INSTALL\s0\fR file for how to build Perl.
265
+ .PP
266
+ The \fI\s-1README\s0\fR file for general stuff.
267
+ .PP
268
+ The \fIArtistic\fR and \fICopying\fR files for copyright information.
data/miniconda3/man/man1/perl589delta.1 ADDED
@@ -0,0 +1,1734 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "PERL589DELTA 1"
136
+ .TH PERL589DELTA 1 "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
+ perl589delta \- what is new for perl v5.8.9
143
+ .SH "DESCRIPTION"
144
+ .IX Header "DESCRIPTION"
145
+ This document describes differences between the 5.8.8 release and
146
+ the 5.8.9 release.
147
+ .SH "Notice"
148
+ .IX Header "Notice"
149
+ The 5.8.9 release will be the last significant release of the 5.8.x
150
+ series. Any future releases of 5.8.x will likely only be to deal with
151
+ security issues, and platform build failures. Hence you should look to
152
+ migrating to 5.10.x, if you have not started already.
153
+ See \*(L"Known Problems\*(R" for more information.
154
+ .SH "Incompatible Changes"
155
+ .IX Header "Incompatible Changes"
156
+ A particular construction in the source code of extensions written in \*(C+
157
+ may need changing. See \*(L"Changed Internals\*(R" for more details. All
158
+ extensions written in C, most written in \*(C+, and all existing compiled
159
+ extensions are unaffected. This was necessary to improve \*(C+ support.
160
+ .PP
161
+ Other than this, there are no changes intentionally incompatible with 5.8.8.
162
+ If any exist, they are bugs and reports are welcome.
163
+ .SH "Core Enhancements"
164
+ .IX Header "Core Enhancements"
165
+ .SS "Unicode Character Database 5.1.0."
166
+ .IX Subsection "Unicode Character Database 5.1.0."
167
+ The copy of the Unicode Character Database included in Perl 5.8 has
168
+ been updated to 5.1.0 from 4.1.0. See
169
+ <http://www.unicode.org/versions/Unicode5.1.0/#NotableChanges> for the
170
+ notable changes.
171
+ .SS "stat and \-X on directory handles"
172
+ .IX Subsection "stat and -X on directory handles"
173
+ It is now possible to call \f(CW\*(C`stat\*(C'\fR and the \f(CW\*(C`\-X\*(C'\fR filestat operators on
174
+ directory handles. As both directory and file handles are barewords, there
175
+ can be ambiguities over which was intended. In these situations the file
176
+ handle semantics are preferred. Both also treat \f(CW*FILE{IO}\fR filehandles
177
+ like \f(CW*FILE\fR filehandles.
178
+ .ie n .SS "Source filters in @INC"
179
+ .el .SS "Source filters in \f(CW@INC\fP"
180
+ .IX Subsection "Source filters in @INC"
181
+ It's possible to enhance the mechanism of subroutine hooks in \f(CW@INC\fR by
182
+ adding a source filter on top of the filehandle opened and returned by the
183
+ hook. This feature was planned a long time ago, but wasn't quite working
184
+ until now. See \*(L"require\*(R" in perlfunc for details. (Nicholas Clark)
185
+ .SS "Exceptions in constant folding"
186
+ .IX Subsection "Exceptions in constant folding"
187
+ The constant folding routine is now wrapped in an exception handler, and
188
+ if folding throws an exception (such as attempting to evaluate 0/0), perl
189
+ now retains the current optree, rather than aborting the whole program.
190
+ Without this change, programs would not compile if they had expressions that
191
+ happened to generate exceptions, even though those expressions were in code
192
+ that could never be reached at runtime. (Nicholas Clark, Dave Mitchell)
193
+ .ie n .SS """no VERSION"""
194
+ .el .SS "\f(CWno VERSION\fP"
195
+ .IX Subsection "no VERSION"
196
+ You can now use \f(CW\*(C`no\*(C'\fR followed by a version number to specify that you
197
+ want to use a version of perl older than the specified one.
198
+ .SS "Improved internal \s-1UTF\-8\s0 caching code"
199
+ .IX Subsection "Improved internal UTF-8 caching code"
200
+ The code that caches calculated \s-1UTF\-8\s0 byte offsets for character offsets for
201
+ a string has been re-written. Several bugs have been located and eliminated,
202
+ and the code now makes better use of the information it has, so should be
203
+ faster. In particular, it doesn't scan to the end of a string before
204
+ calculating an offset within the string, which should speed up some operations
205
+ on long strings. It is now possible to disable the caching code at run time,
206
+ to verify that it is not the cause of suspected problems.
207
+ .SS "Runtime relocatable installations"
208
+ .IX Subsection "Runtime relocatable installations"
209
+ There is now \fIConfigure\fR support for creating a perl tree that is relocatable
210
+ at run time. see \*(L"Relocatable installations\*(R".
211
+ .SS "New internal variables"
212
+ .IX Subsection "New internal variables"
213
+ .ie n .IP """${^CHILD_ERROR_NATIVE}""" 4
214
+ .el .IP "\f(CW${^CHILD_ERROR_NATIVE}\fR" 4
215
+ .IX Item "${^CHILD_ERROR_NATIVE}"
216
+ This variable gives the native status returned by the last pipe close,
217
+ backtick command, successful call to \f(CW\*(C`wait\*(C'\fR or \f(CW\*(C`waitpid\*(C'\fR, or from the
218
+ \&\f(CW\*(C`system\*(C'\fR operator. See perlvar for details. (Contributed by Gisle Aas.)
219
+ .ie n .IP """${^UTF8CACHE}""" 4
220
+ .el .IP "\f(CW${^UTF8CACHE}\fR" 4
221
+ .IX Item "${^UTF8CACHE}"
222
+ This variable controls the state of the internal \s-1UTF\-8\s0 offset caching code.
223
+ 1 for on (the default), 0 for off, \-1 to debug the caching code by checking
224
+ all its results against linear scans, and panicking on any discrepancy.
225
+ .ie n .SS """readpipe"" is now overridable"
226
+ .el .SS "\f(CWreadpipe\fP is now overridable"
227
+ .IX Subsection "readpipe is now overridable"
228
+ The built-in function \f(CW\*(C`readpipe\*(C'\fR is now overridable. Overriding it permits
229
+ also to override its operator counterpart, \f(CW\*(C`qx//\*(C'\fR (also known as \f(CW\*(C`\`\`\*(C'\fR).
230
+ .SS "simple exception handling macros"
231
+ .IX Subsection "simple exception handling macros"
232
+ Perl 5.8.9 (and 5.10.0 onwards) now provides a couple of macros to do very
233
+ basic exception handling in \s-1XS\s0 modules. You can use these macros if you call
234
+ code that may \f(CW\*(C`croak\*(C'\fR, but you need to do some cleanup before giving control
235
+ back to Perl. See \*(L"Exception Handling\*(R" in perlguts for more details.
236
+ .SS "\-D option enhancements"
237
+ .IX Subsection "-D option enhancements"
238
+ .IP "\(bu" 4
239
+ \&\f(CW\*(C`\-Dq\*(C'\fR suppresses the \fI\s-1EXECUTING...\s0\fR message when running under \f(CW\*(C`\-D\*(C'\fR
240
+ .IP "\(bu" 4
241
+ \&\f(CW\*(C`\-Dl\*(C'\fR logs runops loop entry and exit, and jump level popping.
242
+ .IP "\(bu" 4
243
+ \&\f(CW\*(C`\-Dv\*(C'\fR displays the process id as part of the trace output.
244
+ .SS "XS-assisted \s-1SWASHGET\s0"
245
+ .IX Subsection "XS-assisted SWASHGET"
246
+ Some pure-perl code that the regexp engine was using to retrieve Unicode
247
+ properties and transliteration mappings has been reimplemented in \s-1XS\s0
248
+ for faster execution.
249
+ (\s-1SADAHIRO\s0 Tomoyuki)
250
+ .SS "Constant subroutines"
251
+ .IX Subsection "Constant subroutines"
252
+ The interpreter internals now support a far more memory efficient form of
253
+ inlineable constants. Storing a reference to a constant value in a symbol
254
+ table is equivalent to a full typeglob referencing a constant subroutine,
255
+ but using about 400 bytes less memory. This proxy constant subroutine is
256
+ automatically upgraded to a real typeglob with subroutine if necessary.
257
+ The approach taken is analogous to the existing space optimisation for
258
+ subroutine stub declarations, which are stored as plain scalars in place
259
+ of the full typeglob.
260
+ .PP
261
+ However, to aid backwards compatibility of existing code, which (wrongly)
262
+ does not expect anything other than typeglobs in symbol tables, nothing in
263
+ core uses this feature, other than the regression tests.
264
+ .PP
265
+ Stubs for prototyped subroutines have been stored in symbol tables as plain
266
+ strings, and stubs for unprototyped subroutines as the number \-1, since 5.005,
267
+ so code which assumes that the core only places typeglobs in symbol tables
268
+ has been making incorrect assumptions for over 10 years.
269
+ .SH "New Platforms"
270
+ .IX Header "New Platforms"
271
+ Compile support added for:
272
+ .IP "\(bu" 4
273
+ DragonFlyBSD
274
+ .IP "\(bu" 4
275
+ MidnightBSD
276
+ .IP "\(bu" 4
277
+ MirOS \s-1BSD\s0
278
+ .IP "\(bu" 4
279
+ \&\s-1RISC OS\s0
280
+ .IP "\(bu" 4
281
+ Cray XT4/Catamount
282
+ .SH "Modules and Pragmata"
283
+ .IX Header "Modules and Pragmata"
284
+ .SS "New Modules"
285
+ .IX Subsection "New Modules"
286
+ .IP "\(bu" 4
287
+ \&\f(CW\*(C`Module::Pluggable\*(C'\fR is a simple framework to create modules that accept
288
+ pluggable sub-modules. The bundled version is 3.8
289
+ .IP "\(bu" 4
290
+ \&\f(CW\*(C`Module::CoreList\*(C'\fR is a hash of hashes that is keyed on perl version as
291
+ indicated in \f(CW$]\fR. The bundled version is 2.17
292
+ .IP "\(bu" 4
293
+ \&\f(CW\*(C`Win32API::File\*(C'\fR now available in core on Microsoft Windows. The bundled
294
+ version is 0.1001_01
295
+ .IP "\(bu" 4
296
+ \&\f(CW\*(C`Devel::InnerPackage\*(C'\fR finds all the packages defined by a single file. It is
297
+ part of the \f(CW\*(C`Module::Pluggable\*(C'\fR distribution. The bundled version is 0.3
298
+ .SS "Updated Modules"
299
+ .IX Subsection "Updated Modules"
300
+ .IP "\(bu" 4
301
+ \&\f(CW\*(C`attributes\*(C'\fR upgraded to version 0.09
302
+ .IP "\(bu" 4
303
+ \&\f(CW\*(C`AutoLoader\*(C'\fR upgraded to version 5.67
304
+ .IP "\(bu" 4
305
+ \&\f(CW\*(C`AutoSplit\*(C'\fR upgraded to 1.06
306
+ .IP "\(bu" 4
307
+ \&\f(CW\*(C`autouse\*(C'\fR upgraded to version 1.06
308
+ .IP "\(bu" 4
309
+ \&\f(CW\*(C`B\*(C'\fR upgraded from 1.09_01 to 1.19
310
+ .RS 4
311
+ .IP "\(bu" 4
312
+ provides new pad related abstraction macros \f(CW\*(C`B::NV::COP_SEQ_RANGE_LOW\*(C'\fR,
313
+ \&\f(CW\*(C`B::NV::COP_SEQ_RANGE_HIGH\*(C'\fR, \f(CW\*(C`B::NV::PARENT_PAD_INDEX\*(C'\fR,
314
+ \&\f(CW\*(C`B::NV::PARENT_FAKELEX_FLAGS\*(C'\fR, which hides the difference in storage in
315
+ 5.10.0 and later.
316
+ .IP "\(bu" 4
317
+ provides \f(CW\*(C`B::sub_generation\*(C'\fR, which exposes \f(CW\*(C`PL_sub_generation\*(C'\fR
318
+ .IP "\(bu" 4
319
+ provides \f(CW\*(C`B::GV::isGV_with_GP\*(C'\fR, which on pre\-5.10 perls always returns true.
320
+ .IP "\(bu" 4
321
+ New type \f(CW\*(C`B::HE\*(C'\fR added with methods \f(CW\*(C`VAL\*(C'\fR, \f(CW\*(C`HASH\*(C'\fR and \f(CW\*(C`SVKEY_force\*(C'\fR
322
+ .IP "\(bu" 4
323
+ The \f(CW\*(C`B::GVf_IMPORTED_CV\*(C'\fR flag is now set correctly when a proxy
324
+ constant subroutine is imported.
325
+ .IP "\(bu" 4
326
+ bugs fixed in the handling of \f(CW\*(C`PMOP\*(C'\fRs.
327
+ .IP "\(bu" 4
328
+ \&\f(CW\*(C`B::BM::PREVIOUS\*(C'\fR returns now \f(CW\*(C`U32\*(C'\fR, not \f(CW\*(C`U16\*(C'\fR.
329
+ \&\f(CW\*(C`B::CV::START\*(C'\fR and \f(CW\*(C`B:CV::ROOT\*(C'\fR return now \f(CW\*(C`NULL\*(C'\fR on an \s-1XSUB,\s0
330
+ \&\f(CW\*(C`B::CV::XSUB\*(C'\fR and \f(CW\*(C`B::CV::XSUBANY\*(C'\fR return 0 on a non-XSUB.
331
+ .RE
332
+ .RS 4
333
+ .RE
334
+ .IP "\(bu" 4
335
+ \&\f(CW\*(C`B::C\*(C'\fR upgraded to 1.05
336
+ .IP "\(bu" 4
337
+ \&\f(CW\*(C`B::Concise\*(C'\fR upgraded to 0.76
338
+ .RS 4
339
+ .IP "\(bu" 4
340
+ new option \f(CW\*(C`\-src\*(C'\fR causes the rendering of each statement (starting with
341
+ the nextstate \s-1OP\s0) to be preceded by the first line of source code that
342
+ generates it.
343
+ .IP "\(bu" 4
344
+ new option \f(CW\*(C`\-stash="somepackage"\*(C'\fR, \f(CW\*(C`require\*(C'\fRs \*(L"somepackage\*(R", and then renders
345
+ each function defined in its namespace.
346
+ .IP "\(bu" 4
347
+ now has documentation of detailed hint symbols.
348
+ .RE
349
+ .RS 4
350
+ .RE
351
+ .IP "\(bu" 4
352
+ \&\f(CW\*(C`B::Debug\*(C'\fR upgraded to version 1.05
353
+ .IP "\(bu" 4
354
+ \&\f(CW\*(C`B::Deparse\*(C'\fR upgraded to version 0.87
355
+ .RS 4
356
+ .IP "\(bu" 4
357
+ properly deparse \f(CW\*(C`print readpipe $x, $y\*(C'\fR.
358
+ .IP "\(bu" 4
359
+ now handles \f(CW\*(C`\*(Aq\*(Aq\->()\*(C'\fR, \f(CW\*(C`::()\*(C'\fR, \f(CW\*(C`sub :: {}\*(C'\fR, \fIetc.\fR correctly [\s-1RT\s0 #43010].
360
+ All bugs in parsing these kinds of syntax are now fixed:
361
+ .Sp
362
+ .Vb 5
363
+ \& perl \-MO=Deparse \-e \*(Aq"my %h = "\->()\*(Aq
364
+ \& perl \-MO=Deparse \-e \*(Aq::\->()\*(Aq
365
+ \& perl \-MO=Deparse \-e \*(Aqsub :: {}\*(Aq
366
+ \& perl \-MO=Deparse \-e \*(Aqpackage a; sub a::b::c {}\*(Aq
367
+ \& perl \-MO=Deparse \-e \*(Aqsub the::main::road {}\*(Aq
368
+ .Ve
369
+ .IP "\(bu" 4
370
+ does \fBnot\fR deparse \f(CW$^H{v_string}\fR, which is automatically set by the
371
+ internals.
372
+ .RE
373
+ .RS 4
374
+ .RE
375
+ .IP "\(bu" 4
376
+ \&\f(CW\*(C`B::Lint\*(C'\fR upgraded to version 1.11
377
+ .IP "\(bu" 4
378
+ \&\f(CW\*(C`B::Terse\*(C'\fR upgraded to version 1.05
379
+ .IP "\(bu" 4
380
+ \&\f(CW\*(C`base\*(C'\fR upgraded to version 2.13
381
+ .RS 4
382
+ .IP "\(bu" 4
383
+ loading a module via base.pm would mask a global \f(CW$SIG{_\|_DIE_\|_}\fR in that
384
+ module.
385
+ .IP "\(bu" 4
386
+ push all classes at once in \f(CW@ISA\fR
387
+ .RE
388
+ .RS 4
389
+ .RE
390
+ .IP "\(bu" 4
391
+ \&\f(CW\*(C`Benchmark\*(C'\fR upgraded to version 1.10
392
+ .IP "\(bu" 4
393
+ \&\f(CW\*(C`bigint\*(C'\fR upgraded to 0.23
394
+ .IP "\(bu" 4
395
+ \&\f(CW\*(C`bignum\*(C'\fR upgraded to 0.23
396
+ .IP "\(bu" 4
397
+ \&\f(CW\*(C`bigrat\*(C'\fR upgraded to 0.23
398
+ .IP "\(bu" 4
399
+ \&\f(CW\*(C`blib\*(C'\fR upgraded to 0.04
400
+ .IP "\(bu" 4
401
+ \&\f(CW\*(C`Carp\*(C'\fR upgraded to version 1.10
402
+ .Sp
403
+ The argument backtrace code now shows \f(CW\*(C`undef\*(C'\fR as \f(CW\*(C`undef\*(C'\fR,
404
+ instead of a string \fI\*(L"undef\*(R"\fR.
405
+ .IP "\(bu" 4
406
+ \&\f(CW\*(C`CGI\*(C'\fR upgraded to version 3.42
407
+ .IP "\(bu" 4
408
+ \&\f(CW\*(C`charnames\*(C'\fR upgraded to 1.06
409
+ .IP "\(bu" 4
410
+ \&\f(CW\*(C`constant\*(C'\fR upgraded to version 1.17
411
+ .IP "\(bu" 4
412
+ \&\f(CW\*(C`CPAN\*(C'\fR upgraded to version 1.9301
413
+ .IP "\(bu" 4
414
+ \&\f(CW\*(C`Cwd\*(C'\fR upgraded to version 3.29 with some platform specific
415
+ improvements (including for \s-1VMS\s0).
416
+ .IP "\(bu" 4
417
+ \&\f(CW\*(C`Data::Dumper\*(C'\fR upgraded to version 2.121_17
418
+ .RS 4
419
+ .IP "\(bu" 4
420
+ Fixes hash iterator current position with the pure Perl version [\s-1RT\s0 #40668]
421
+ .IP "\(bu" 4
422
+ Performance enhancements, which will be most evident on platforms where
423
+ repeated calls to C's \f(CW\*(C`realloc()\*(C'\fR are slow, such as Win32.
424
+ .RE
425
+ .RS 4
426
+ .RE
427
+ .IP "\(bu" 4
428
+ \&\f(CW\*(C`DB_File\*(C'\fR upgraded to version 1.817
429
+ .IP "\(bu" 4
430
+ \&\f(CW\*(C`DB_Filter\*(C'\fR upgraded to version 0.02
431
+ .IP "\(bu" 4
432
+ \&\f(CW\*(C`Devel::DProf\*(C'\fR upgraded to version 20080331.00
433
+ .IP "\(bu" 4
434
+ \&\f(CW\*(C`Devel::Peek\*(C'\fR upgraded to version 1.04
435
+ .IP "\(bu" 4
436
+ \&\f(CW\*(C`Devel::PPPort\*(C'\fR upgraded to version 3.14
437
+ .IP "\(bu" 4
438
+ \&\f(CW\*(C`diagnostics\*(C'\fR upgraded to version 1.16
439
+ .IP "\(bu" 4
440
+ \&\f(CW\*(C`Digest\*(C'\fR upgraded to version 1.15
441
+ .IP "\(bu" 4
442
+ \&\f(CW\*(C`Digest::MD5\*(C'\fR upgraded to version 2.37
443
+ .IP "\(bu" 4
444
+ \&\f(CW\*(C`DirHandle\*(C'\fR upgraded to version 1.02
445
+ .RS 4
446
+ .IP "\(bu" 4
447
+ now localises \f(CW$.\fR, \f(CW$@\fR, \f(CW$!\fR, \f(CW$^E\fR, and \f(CW$?\fR before closing the
448
+ directory handle to suppress leaking any side effects of warnings about it
449
+ already being closed.
450
+ .RE
451
+ .RS 4
452
+ .RE
453
+ .IP "\(bu" 4
454
+ \&\f(CW\*(C`DynaLoader\*(C'\fR upgraded to version 1.09
455
+ .Sp
456
+ \&\f(CW\*(C`DynaLoader\*(C'\fR can now dynamically load a loadable object from a file with a
457
+ non-default file extension.
458
+ .IP "\(bu" 4
459
+ \&\f(CW\*(C`Encode\*(C'\fR upgraded to version 2.26
460
+ .Sp
461
+ \&\f(CW\*(C`Encode::Alias\*(C'\fR includes a fix for encoding \*(L"646\*(R" on Solaris (better known as
462
+ \&\s-1ASCII\s0).
463
+ .IP "\(bu" 4
464
+ \&\f(CW\*(C`English\*(C'\fR upgraded to version 1.03
465
+ .IP "\(bu" 4
466
+ \&\f(CW\*(C`Errno\*(C'\fR upgraded to version 1.10
467
+ .IP "\(bu" 4
468
+ \&\f(CW\*(C`Exporter\*(C'\fR upgraded to version 5.63
469
+ .IP "\(bu" 4
470
+ \&\f(CW\*(C`ExtUtils::Command\*(C'\fR upgraded to version 1.15
471
+ .IP "\(bu" 4
472
+ \&\f(CW\*(C`ExtUtils::Constant\*(C'\fR upgraded to version 0.21
473
+ .IP "\(bu" 4
474
+ \&\f(CW\*(C`ExtUtils::Embed\*(C'\fR upgraded to version 1.28
475
+ .IP "\(bu" 4
476
+ \&\f(CW\*(C`ExtUtils::Install\*(C'\fR upgraded to version 1.50_01
477
+ .IP "\(bu" 4
478
+ \&\f(CW\*(C`ExtUtils::Installed\*(C'\fR upgraded to version 1.43
479
+ .IP "\(bu" 4
480
+ \&\f(CW\*(C`ExtUtils::MakeMaker\*(C'\fR upgraded to version 6.48
481
+ .RS 4
482
+ .IP "\(bu" 4
483
+ support for \f(CW\*(C`INSTALLSITESCRIPT\*(C'\fR and \f(CW\*(C`INSTALLVENDORSCRIPT\*(C'\fR
484
+ configuration.
485
+ .RE
486
+ .RS 4
487
+ .RE
488
+ .IP "\(bu" 4
489
+ \&\f(CW\*(C`ExtUtils::Manifest\*(C'\fR upgraded to version 1.55
490
+ .IP "\(bu" 4
491
+ \&\f(CW\*(C`ExtUtils::ParseXS\*(C'\fR upgraded to version 2.19
492
+ .IP "\(bu" 4
493
+ \&\f(CW\*(C`Fatal\*(C'\fR upgraded to version 1.06
494
+ .RS 4
495
+ .IP "\(bu" 4
496
+ allows built-ins in \f(CW\*(C`CORE::GLOBAL\*(C'\fR to be made fatal.
497
+ .RE
498
+ .RS 4
499
+ .RE
500
+ .IP "\(bu" 4
501
+ \&\f(CW\*(C`Fcntl\*(C'\fR upgraded to version 1.06
502
+ .IP "\(bu" 4
503
+ \&\f(CW\*(C`fields\*(C'\fR upgraded to version 2.12
504
+ .IP "\(bu" 4
505
+ \&\f(CW\*(C`File::Basename\*(C'\fR upgraded to version 2.77
506
+ .IP "\(bu" 4
507
+ \&\f(CW\*(C`FileCache\*(C'\fR upgraded to version 1.07
508
+ .IP "\(bu" 4
509
+ \&\f(CW\*(C`File::Compare\*(C'\fR upgraded to 1.1005
510
+ .IP "\(bu" 4
511
+ \&\f(CW\*(C`File::Copy\*(C'\fR upgraded to 2.13
512
+ .RS 4
513
+ .IP "\(bu" 4
514
+ now uses 3\-arg open.
515
+ .RE
516
+ .RS 4
517
+ .RE
518
+ .IP "\(bu" 4
519
+ \&\f(CW\*(C`File::DosGlob\*(C'\fR upgraded to 1.01
520
+ .IP "\(bu" 4
521
+ \&\f(CW\*(C`File::Find\*(C'\fR upgraded to version 1.13
522
+ .IP "\(bu" 4
523
+ \&\f(CW\*(C`File::Glob\*(C'\fR upgraded to version 1.06
524
+ .RS 4
525
+ .IP "\(bu" 4
526
+ fixes spurious results with brackets inside braces.
527
+ .RE
528
+ .RS 4
529
+ .RE
530
+ .IP "\(bu" 4
531
+ \&\f(CW\*(C`File::Path\*(C'\fR upgraded to version 2.07_02
532
+ .IP "\(bu" 4
533
+ \&\f(CW\*(C`File::Spec\*(C'\fR upgraded to version 3.29
534
+ .RS 4
535
+ .IP "\(bu" 4
536
+ improved handling of bad arguments.
537
+ .IP "\(bu" 4
538
+ some platform specific improvements (including for \s-1VMS\s0 and Cygwin), with
539
+ an optimisation on \f(CW\*(C`abs2rel\*(C'\fR when handling both relative arguments.
540
+ .RE
541
+ .RS 4
542
+ .RE
543
+ .IP "\(bu" 4
544
+ \&\f(CW\*(C`File::stat\*(C'\fR upgraded to version 1.01
545
+ .IP "\(bu" 4
546
+ \&\f(CW\*(C`File::Temp\*(C'\fR upgraded to version 0.20
547
+ .IP "\(bu" 4
548
+ \&\f(CW\*(C`filetest\*(C'\fR upgraded to version 1.02
549
+ .IP "\(bu" 4
550
+ \&\f(CW\*(C`Filter::Util::Call\*(C'\fR upgraded to version 1.07
551
+ .IP "\(bu" 4
552
+ \&\f(CW\*(C`Filter::Simple\*(C'\fR upgraded to version 0.83
553
+ .IP "\(bu" 4
554
+ \&\f(CW\*(C`FindBin\*(C'\fR upgraded to version 1.49
555
+ .IP "\(bu" 4
556
+ \&\f(CW\*(C`GDBM_File\*(C'\fR upgraded to version 1.09
557
+ .IP "\(bu" 4
558
+ \&\f(CW\*(C`Getopt::Long\*(C'\fR upgraded to version 2.37
559
+ .IP "\(bu" 4
560
+ \&\f(CW\*(C`Getopt::Std\*(C'\fR upgraded to version 1.06
561
+ .IP "\(bu" 4
562
+ \&\f(CW\*(C`Hash::Util\*(C'\fR upgraded to version 0.06
563
+ .IP "\(bu" 4
564
+ \&\f(CW\*(C`if\*(C'\fR upgraded to version 0.05
565
+ .IP "\(bu" 4
566
+ \&\f(CW\*(C`IO\*(C'\fR upgraded to version 1.23
567
+ .Sp
568
+ Reduced number of calls to \f(CW\*(C`getpeername\*(C'\fR in \f(CW\*(C`IO::Socket\*(C'\fR
569
+ .IP "\(bu" 4
570
+ \&\f(CW\*(C`IPC::Open\*(C'\fR upgraded to version 1.03
571
+ .IP "\(bu" 4
572
+ \&\f(CW\*(C`IPC::Open3\*(C'\fR upgraded to version 1.03
573
+ .IP "\(bu" 4
574
+ \&\f(CW\*(C`IPC::SysV\*(C'\fR upgraded to version 2.00
575
+ .IP "\(bu" 4
576
+ \&\f(CW\*(C`lib\*(C'\fR upgraded to version 0.61
577
+ .RS 4
578
+ .IP "\(bu" 4
579
+ avoid warning about loading \fI.par\fR files.
580
+ .RE
581
+ .RS 4
582
+ .RE
583
+ .IP "\(bu" 4
584
+ \&\f(CW\*(C`libnet\*(C'\fR upgraded to version 1.22
585
+ .IP "\(bu" 4
586
+ \&\f(CW\*(C`List::Util\*(C'\fR upgraded to 1.19
587
+ .IP "\(bu" 4
588
+ \&\f(CW\*(C`Locale::Maketext\*(C'\fR upgraded to 1.13
589
+ .IP "\(bu" 4
590
+ \&\f(CW\*(C`Math::BigFloat\*(C'\fR upgraded to version 1.60
591
+ .IP "\(bu" 4
592
+ \&\f(CW\*(C`Math::BigInt\*(C'\fR upgraded to version 1.89
593
+ .IP "\(bu" 4
594
+ \&\f(CW\*(C`Math::BigRat\*(C'\fR upgraded to version 0.22
595
+ .RS 4
596
+ .IP "\(bu" 4
597
+ implements new \f(CW\*(C`as_float\*(C'\fR method.
598
+ .RE
599
+ .RS 4
600
+ .RE
601
+ .IP "\(bu" 4
602
+ \&\f(CW\*(C`Math::Complex\*(C'\fR upgraded to version 1.54.
603
+ .IP "\(bu" 4
604
+ \&\f(CW\*(C`Math::Trig\*(C'\fR upgraded to version 1.18.
605
+ .IP "\(bu" 4
606
+ \&\f(CW\*(C`NDBM_File\*(C'\fR upgraded to version 1.07
607
+ .RS 4
608
+ .IP "\(bu" 4
609
+ improve \fIg++\fR handling for systems using \s-1GDBM\s0 compatibility headers.
610
+ .RE
611
+ .RS 4
612
+ .RE
613
+ .IP "\(bu" 4
614
+ \&\f(CW\*(C`Net::Ping\*(C'\fR upgraded to version 2.35
615
+ .IP "\(bu" 4
616
+ \&\f(CW\*(C`NEXT\*(C'\fR upgraded to version 0.61
617
+ .RS 4
618
+ .IP "\(bu" 4
619
+ fix several bugs with \f(CW\*(C`NEXT\*(C'\fR when working with \f(CW\*(C`AUTOLOAD\*(C'\fR, \f(CW\*(C`eval\*(C'\fR block, and
620
+ within overloaded stringification.
621
+ .RE
622
+ .RS 4
623
+ .RE
624
+ .IP "\(bu" 4
625
+ \&\f(CW\*(C`ODBM_File\*(C'\fR upgraded to 1.07
626
+ .IP "\(bu" 4
627
+ \&\f(CW\*(C`open\*(C'\fR upgraded to 1.06
628
+ .IP "\(bu" 4
629
+ \&\f(CW\*(C`ops\*(C'\fR upgraded to 1.02
630
+ .IP "\(bu" 4
631
+ \&\f(CW\*(C`PerlIO::encoding\*(C'\fR upgraded to version 0.11
632
+ .IP "\(bu" 4
633
+ \&\f(CW\*(C`PerlIO::scalar\*(C'\fR upgraded to version 0.06
634
+ .RS 4
635
+ .IP "\(bu" 4
636
+ [\s-1RT\s0 #40267] \f(CW\*(C`PerlIO::scalar\*(C'\fR doesn't respect readonly-ness.
637
+ .RE
638
+ .RS 4
639
+ .RE
640
+ .IP "\(bu" 4
641
+ \&\f(CW\*(C`PerlIO::via\*(C'\fR upgraded to version 0.05
642
+ .IP "\(bu" 4
643
+ \&\f(CW\*(C`Pod::Html\*(C'\fR upgraded to version 1.09
644
+ .IP "\(bu" 4
645
+ \&\f(CW\*(C`Pod::Parser\*(C'\fR upgraded to version 1.35
646
+ .IP "\(bu" 4
647
+ \&\f(CW\*(C`Pod::Usage\*(C'\fR upgraded to version 1.35
648
+ .IP "\(bu" 4
649
+ \&\f(CW\*(C`POSIX\*(C'\fR upgraded to version 1.15
650
+ .RS 4
651
+ .IP "\(bu" 4
652
+ \&\f(CW\*(C`POSIX\*(C'\fR constants that duplicate those in \f(CW\*(C`Fcntl\*(C'\fR are now imported from
653
+ \&\f(CW\*(C`Fcntl\*(C'\fR and re-exported, rather than being duplicated by \f(CW\*(C`POSIX\*(C'\fR
654
+ .IP "\(bu" 4
655
+ \&\f(CW\*(C`POSIX::remove\*(C'\fR can remove empty directories.
656
+ .IP "\(bu" 4
657
+ \&\f(CW\*(C`POSIX::setlocale\*(C'\fR safer to call multiple times.
658
+ .IP "\(bu" 4
659
+ \&\f(CW\*(C`POSIX::SigRt\*(C'\fR added, which provides access to \s-1POSIX\s0 realtime signal
660
+ functionality on systems that support it.
661
+ .RE
662
+ .RS 4
663
+ .RE
664
+ .IP "\(bu" 4
665
+ \&\f(CW\*(C`re\*(C'\fR upgraded to version 0.06_01
666
+ .IP "\(bu" 4
667
+ \&\f(CW\*(C`Safe\*(C'\fR upgraded to version 2.16
668
+ .IP "\(bu" 4
669
+ \&\f(CW\*(C`Scalar::Util\*(C'\fR upgraded to 1.19
670
+ .IP "\(bu" 4
671
+ \&\f(CW\*(C`SDBM_File\*(C'\fR upgraded to version 1.06
672
+ .IP "\(bu" 4
673
+ \&\f(CW\*(C`SelfLoader\*(C'\fR upgraded to version 1.17
674
+ .IP "\(bu" 4
675
+ \&\f(CW\*(C`Shell\*(C'\fR upgraded to version 0.72
676
+ .IP "\(bu" 4
677
+ \&\f(CW\*(C`sigtrap\*(C'\fR upgraded to version 1.04
678
+ .IP "\(bu" 4
679
+ \&\f(CW\*(C`Socket\*(C'\fR upgraded to version 1.81
680
+ .RS 4
681
+ .IP "\(bu" 4
682
+ this fixes an optimistic use of \f(CW\*(C`gethostbyname\*(C'\fR
683
+ .RE
684
+ .RS 4
685
+ .RE
686
+ .IP "\(bu" 4
687
+ \&\f(CW\*(C`Storable\*(C'\fR upgraded to 2.19
688
+ .IP "\(bu" 4
689
+ \&\f(CW\*(C`Switch\*(C'\fR upgraded to version 2.13
690
+ .IP "\(bu" 4
691
+ \&\f(CW\*(C`Sys::Syslog\*(C'\fR upgraded to version 0.27
692
+ .IP "\(bu" 4
693
+ \&\f(CW\*(C`Term::ANSIColor\*(C'\fR upgraded to version 1.12
694
+ .IP "\(bu" 4
695
+ \&\f(CW\*(C`Term::Cap\*(C'\fR upgraded to version 1.12
696
+ .IP "\(bu" 4
697
+ \&\f(CW\*(C`Term::ReadLine\*(C'\fR upgraded to version 1.03
698
+ .IP "\(bu" 4
699
+ \&\f(CW\*(C`Test::Builder\*(C'\fR upgraded to version 0.80
700
+ .IP "\(bu" 4
701
+ \&\f(CW\*(C`Test::Harness\*(C'\fR upgraded version to 2.64
702
+ .RS 4
703
+ .IP "\(bu" 4
704
+ this makes it able to handle newlines.
705
+ .RE
706
+ .RS 4
707
+ .RE
708
+ .IP "\(bu" 4
709
+ \&\f(CW\*(C`Test::More\*(C'\fR upgraded to version 0.80
710
+ .IP "\(bu" 4
711
+ \&\f(CW\*(C`Test::Simple\*(C'\fR upgraded to version 0.80
712
+ .IP "\(bu" 4
713
+ \&\f(CW\*(C`Text::Balanced\*(C'\fR upgraded to version 1.98
714
+ .IP "\(bu" 4
715
+ \&\f(CW\*(C`Text::ParseWords\*(C'\fR upgraded to version 3.27
716
+ .IP "\(bu" 4
717
+ \&\f(CW\*(C`Text::Soundex\*(C'\fR upgraded to version 3.03
718
+ .IP "\(bu" 4
719
+ \&\f(CW\*(C`Text::Tabs\*(C'\fR upgraded to version 2007.1117
720
+ .IP "\(bu" 4
721
+ \&\f(CW\*(C`Text::Wrap\*(C'\fR upgraded to version 2006.1117
722
+ .IP "\(bu" 4
723
+ \&\f(CW\*(C`Thread\*(C'\fR upgraded to version 2.01
724
+ .IP "\(bu" 4
725
+ \&\f(CW\*(C`Thread::Semaphore\*(C'\fR upgraded to version 2.09
726
+ .IP "\(bu" 4
727
+ \&\f(CW\*(C`Thread::Queue\*(C'\fR upgraded to version 2.11
728
+ .RS 4
729
+ .IP "\(bu" 4
730
+ added capability to add complex structures (e.g., hash of hashes) to queues.
731
+ .IP "\(bu" 4
732
+ added capability to dequeue multiple items at once.
733
+ .IP "\(bu" 4
734
+ added new methods to inspect and manipulate queues: \f(CW\*(C`peek\*(C'\fR, \f(CW\*(C`insert\*(C'\fR and
735
+ \&\f(CW\*(C`extract\*(C'\fR
736
+ .RE
737
+ .RS 4
738
+ .RE
739
+ .IP "\(bu" 4
740
+ \&\f(CW\*(C`Tie::Handle\*(C'\fR upgraded to version 4.2
741
+ .IP "\(bu" 4
742
+ \&\f(CW\*(C`Tie::Hash\*(C'\fR upgraded to version 1.03
743
+ .IP "\(bu" 4
744
+ \&\f(CW\*(C`Tie::Memoize\*(C'\fR upgraded to version 1.1
745
+ .RS 4
746
+ .IP "\(bu" 4
747
+ \&\f(CW\*(C`Tie::Memoize::EXISTS\*(C'\fR now correctly caches its results.
748
+ .RE
749
+ .RS 4
750
+ .RE
751
+ .IP "\(bu" 4
752
+ \&\f(CW\*(C`Tie::RefHash\*(C'\fR upgraded to version 1.38
753
+ .IP "\(bu" 4
754
+ \&\f(CW\*(C`Tie::Scalar\*(C'\fR upgraded to version 1.01
755
+ .IP "\(bu" 4
756
+ \&\f(CW\*(C`Tie::StdHandle\*(C'\fR upgraded to version 4.2
757
+ .IP "\(bu" 4
758
+ \&\f(CW\*(C`Time::gmtime\*(C'\fR upgraded to version 1.03
759
+ .IP "\(bu" 4
760
+ \&\f(CW\*(C`Time::Local\*(C'\fR upgraded to version 1.1901
761
+ .IP "\(bu" 4
762
+ \&\f(CW\*(C`Time::HiRes\*(C'\fR upgraded to version 1.9715 with various build improvements
763
+ (including \s-1VMS\s0) and minor platform-specific bug fixes (including
764
+ for HP-UX 11 ia64).
765
+ .IP "\(bu" 4
766
+ \&\f(CW\*(C`threads\*(C'\fR upgraded to 1.71
767
+ .RS 4
768
+ .IP "\(bu" 4
769
+ new thread state information methods: \f(CW\*(C`is_running\*(C'\fR, \f(CW\*(C`is_detached\*(C'\fR
770
+ and \f(CW\*(C`is_joinable\*(C'\fR. \f(CW\*(C`list\*(C'\fR method enhanced to return running or joinable
771
+ threads.
772
+ .IP "\(bu" 4
773
+ new thread signal method: \f(CW\*(C`kill\*(C'\fR
774
+ .IP "\(bu" 4
775
+ added capability to specify thread stack size.
776
+ .IP "\(bu" 4
777
+ added capability to control thread exiting behavior. Added a new \f(CW\*(C`exit\*(C'\fR
778
+ method.
779
+ .RE
780
+ .RS 4
781
+ .RE
782
+ .IP "\(bu" 4
783
+ \&\f(CW\*(C`threads::shared\*(C'\fR upgraded to version 1.27
784
+ .RS 4
785
+ .IP "\(bu" 4
786
+ smaller and faster implementation that eliminates one internal structure and
787
+ the consequent level of indirection.
788
+ .IP "\(bu" 4
789
+ user locks are now stored in a safer manner.
790
+ .IP "\(bu" 4
791
+ new function \f(CW\*(C`shared_clone\*(C'\fR creates a copy of an object leaving
792
+ shared elements as-is and deep-cloning non-shared elements.
793
+ .IP "\(bu" 4
794
+ added new \f(CW\*(C`is_shared\*(C'\fR method.
795
+ .RE
796
+ .RS 4
797
+ .RE
798
+ .IP "\(bu" 4
799
+ \&\f(CW\*(C`Unicode::Normalize\*(C'\fR upgraded to version 1.02
800
+ .IP "\(bu" 4
801
+ \&\f(CW\*(C`Unicode::UCD\*(C'\fR upgraded to version 0.25
802
+ .IP "\(bu" 4
803
+ \&\f(CW\*(C`warnings\*(C'\fR upgraded to version 1.05_01
804
+ .IP "\(bu" 4
805
+ \&\f(CW\*(C`Win32\*(C'\fR upgraded to version 0.38
806
+ .RS 4
807
+ .IP "\(bu" 4
808
+ added new function \f(CW\*(C`GetCurrentProcessId\*(C'\fR which returns the regular Windows
809
+ process identifier of the current process, even when called from within a fork.
810
+ .RE
811
+ .RS 4
812
+ .RE
813
+ .IP "\(bu" 4
814
+ \&\f(CW\*(C`XSLoader\*(C'\fR upgraded to version 0.10
815
+ .IP "\(bu" 4
816
+ \&\f(CW\*(C`XS::APItest\*(C'\fR and \f(CW\*(C`XS::Typemap\*(C'\fR are for internal use only and hence
817
+ no longer installed. Many more tests have been added to \f(CW\*(C`XS::APItest\*(C'\fR.
818
+ .SH "Utility Changes"
819
+ .IX Header "Utility Changes"
820
+ .SS "debugger upgraded to version 1.31"
821
+ .IX Subsection "debugger upgraded to version 1.31"
822
+ .IP "\(bu" 4
823
+ Andreas Ko\*:nig contributed two functions to save and load the debugger
824
+ history.
825
+ .IP "\(bu" 4
826
+ \&\f(CW\*(C`NEXT::AUTOLOAD\*(C'\fR no longer emits warnings under the debugger.
827
+ .IP "\(bu" 4
828
+ The debugger should now correctly find tty the device on \s-1OS X 10.5\s0 and \s-1VMS\s0
829
+ when the program \f(CW\*(C`fork\*(C'\fRs.
830
+ .IP "\(bu" 4
831
+ \&\s-1LVALUE\s0 subs now work inside the debugger.
832
+ .SS "\fIperlthanks\fP"
833
+ .IX Subsection "perlthanks"
834
+ Perl 5.8.9 adds a new utility \fIperlthanks\fR, which is a variant of \fIperlbug\fR,
835
+ but for sending non-bug-reports to the authors and maintainers of Perl.
836
+ Getting nothing but bug reports can become a bit demoralising \- we'll see if
837
+ this changes things.
838
+ .SS "\fIperlbug\fP"
839
+ .IX Subsection "perlbug"
840
+ \&\fIperlbug\fR now checks if you're reporting about a non-core module and suggests
841
+ you report it to the \s-1CPAN\s0 author instead.
842
+ .SS "\fIh2xs\fP"
843
+ .IX Subsection "h2xs"
844
+ .IP "\(bu" 4
845
+ won't define an empty string as a constant [\s-1RT\s0 #25366]
846
+ .IP "\(bu" 4
847
+ has examples for \f(CW\*(C`h2xs \-X\*(C'\fR
848
+ .SS "\fIh2ph\fP"
849
+ .IX Subsection "h2ph"
850
+ .IP "\(bu" 4
851
+ now attempts to deal sensibly with the difference in path implications
852
+ between \f(CW""\fR and \f(CW\*(C`<>\*(C'\fR quoting in \f(CW\*(C`#include\*(C'\fR statements.
853
+ .IP "\(bu" 4
854
+ now generates correct code for \f(CW\*(C`#if defined A || defined B\*(C'\fR
855
+ [\s-1RT\s0 #39130]
856
+ .SH "New Documentation"
857
+ .IX Header "New Documentation"
858
+ As usual, the documentation received its share of corrections, clarifications
859
+ and other nitfixes. More \f(CW\*(C`\*(C'\fR tags were added for indexing.
860
+ .IX Xref "..."
861
+ .PP
862
+ perlunitut is a tutorial written by Juerd Waalboer on Unicode-related
863
+ terminology and how to correctly handle Unicode in Perl scripts.
864
+ .PP
865
+ perlunicode is updated in section user defined properties.
866
+ .PP
867
+ perluniintro has been updated in the example of detecting data that is not
868
+ valid in particular encoding.
869
+ .PP
870
+ perlcommunity provides an overview of the Perl Community along with further
871
+ resources.
872
+ .PP
873
+ \&\s-1CORE\s0 documents the pseudo-namespace for Perl's core routines.
874
+ .SH "Changes to Existing Documentation"
875
+ .IX Header "Changes to Existing Documentation"
876
+ perlglossary adds \fIdeprecated modules and features\fR and \fIto be dropped modules\fR.
877
+ .PP
878
+ perlhack has been updated and added resources on smoke testing.
879
+ .PP
880
+ The Perl FAQs (\fIperlfaq1\fR..\fIperlfaq9\fR) have been updated.
881
+ .PP
882
+ perlcheat is updated with better details on \f(CW\*(C`\ew\*(C'\fR, \f(CW\*(C`\ed\*(C'\fR, and \f(CW\*(C`\es\*(C'\fR.
883
+ .PP
884
+ perldebug is updated with information on how to call the debugger.
885
+ .PP
886
+ perldiag documentation updated with \fIsubroutine with an ampersand\fR on the
887
+ argument to \f(CW\*(C`exists\*(C'\fR and \f(CW\*(C`delete\*(C'\fR and also several terminology updates on
888
+ warnings.
889
+ .PP
890
+ perlfork documents the limitation of \f(CW\*(C`exec\*(C'\fR inside pseudo-processes.
891
+ .PP
892
+ perlfunc:
893
+ .IP "\(bu" 4
894
+ Documentation is fixed in section \f(CW\*(C`caller\*(C'\fR and \f(CW\*(C`pop\*(C'\fR.
895
+ .IP "\(bu" 4
896
+ Function \f(CW\*(C`alarm\*(C'\fR now mentions \f(CW\*(C`Time::HiRes::ualarm\*(C'\fR in preference
897
+ to \f(CW\*(C`select\*(C'\fR.
898
+ .IP "\(bu" 4
899
+ Regarding precedence in \f(CW\*(C`\-X\*(C'\fR, filetest operators are the same as unary
900
+ operators, but not regarding parsing and parentheses (spotted by Eirik Berg
901
+ Hanssen).
902
+ .IP "\(bu" 4
903
+ \&\f(CW\*(C`reverse\*(C'\fR function documentation received scalar context examples.
904
+ .PP
905
+ perllocale documentation is adjusted for number localization and
906
+ \&\f(CW\*(C`POSIX::setlocale\*(C'\fR to fix Debian bug #379463.
907
+ .PP
908
+ perlmodlib is updated with \f(CW\*(C`CPAN::API::HOWTO\*(C'\fR and
909
+ \&\f(CW\*(C`Sys::Syslog::win32::Win32\*(C'\fR
910
+ .PP
911
+ perlre documentation updated to reflect the differences between
912
+ \&\f(CW\*(C`[[:xxxxx:]]\*(C'\fR and \f(CW\*(C`\ep{IsXxxxx}\*(C'\fR matches. Also added section on \f(CW\*(C`/g\*(C'\fR and
913
+ \&\f(CW\*(C`/c\*(C'\fR modifiers.
914
+ .PP
915
+ perlreguts describe the internals of the regular expressions engine. It has
916
+ been contributed by Yves Orton.
917
+ .PP
918
+ perlrebackslash describes all perl regular expression backslash and escape
919
+ sequences.
920
+ .PP
921
+ perlrecharclass describes the syntax and use of character classes in
922
+ Perl Regular Expressions.
923
+ .PP
924
+ perlrun is updated to clarify on the hash seed \fI\s-1PERL_HASH_SEED\s0\fR. Also more
925
+ information in options \f(CW\*(C`\-x\*(C'\fR and \f(CW\*(C`\-u\*(C'\fR.
926
+ .PP
927
+ perlsub example is updated to use a lexical variable for \f(CW\*(C`opendir\*(C'\fR syntax.
928
+ .PP
929
+ perlvar fixes confusion about real \s-1GID\s0 \f(CW$(\fR and effective \s-1GID\s0 \f(CW$)\fR.
930
+ .PP
931
+ Perl thread tutorial example is fixed in section
932
+ \&\*(L"Queues: Passing Data Around\*(R" in perlthrtut and perlthrtut.
933
+ .PP
934
+ perlhack documentation extensively improved by Jarkko Hietaniemi and others.
935
+ .PP
936
+ perltoot provides information on modifying \f(CW@UNIVERSAL::ISA\fR.
937
+ .PP
938
+ perlport documentation extended to include different \f(CW\*(C`kill(\-9, ...)\*(C'\fR
939
+ semantics on Windows. It also clearly states \f(CW\*(C`dump\*(C'\fR is not supported on Win32
940
+ and cygwin.
941
+ .PP
942
+ \&\fI\s-1INSTALL\s0\fR has been updated and modernised.
943
+ .SH "Performance Enhancements"
944
+ .IX Header "Performance Enhancements"
945
+ .IP "\(bu" 4
946
+ The default since perl 5.000 has been for perl to create an empty scalar
947
+ with every new typeglob. The increased use of lexical variables means that
948
+ most are now unused. Thanks to Nicholas Clark's efforts, Perl can now be
949
+ compiled with \f(CW\*(C`\-DPERL_DONT_CREATE_GVSV\*(C'\fR to avoid creating these empty scalars.
950
+ This will significantly decrease the number of scalars allocated for all
951
+ configurations, and the number of scalars that need to be copied for ithread
952
+ creation. Whilst this option is binary compatible with existing perl
953
+ installations, it does change a long-standing assumption about the
954
+ internals, hence it is not enabled by default, as some third party code may
955
+ rely on the old behaviour.
956
+ .Sp
957
+ We would recommend testing with this configuration on new deployments of
958
+ perl, particularly for multi-threaded servers, to see whether all third party
959
+ code is compatible with it, as this configuration may give useful performance
960
+ improvements. For existing installations we would not recommend changing to
961
+ this configuration unless thorough testing is performed before deployment.
962
+ .IP "\(bu" 4
963
+ \&\f(CW\*(C`diagnostics\*(C'\fR no longer uses \f(CW$&\fR, which results in large speedups
964
+ for regexp matching in all code using it.
965
+ .IP "\(bu" 4
966
+ Regular expressions classes of a single character are now treated the same as
967
+ if the character had been used as a literal, meaning that code that uses
968
+ char-classes as an escaping mechanism will see a speedup. (Yves Orton)
969
+ .IP "\(bu" 4
970
+ Creating anonymous array and hash references (ie. \f(CW\*(C`[]\*(C'\fR and \f(CW\*(C`{}\*(C'\fR) now incurs
971
+ no more overhead than creating an anonymous list or hash. Nicholas Clark
972
+ provided changes with a saving of two ops and one stack push, which was measured
973
+ as a slightly better than 5% improvement for these operations.
974
+ .IP "\(bu" 4
975
+ Many calls to \f(CW\*(C`strlen()\*(C'\fR have been eliminated, either because the length was
976
+ already known, or by adopting or enhancing APIs that pass lengths. This has
977
+ been aided by the adoption of a \f(CW\*(C`my_sprintf()\*(C'\fR wrapper, which returns the
978
+ correct C89 value \- the length of the formatted string. Previously we could
979
+ not rely on the return value of \f(CW\*(C`sprintf()\*(C'\fR, because on some ancient but
980
+ extant platforms it still returns \f(CW\*(C`char *\*(C'\fR.
981
+ .IP "\(bu" 4
982
+ \&\f(CW\*(C`index\*(C'\fR is now faster if the search string is stored in \s-1UTF\-8\s0 but only contains
983
+ characters in the Latin\-1 range.
984
+ .IP "\(bu" 4
985
+ The Unicode swatch cache inside the regexp engine is now used. (the lookup had
986
+ a key mismatch, present since the initial implementation). [\s-1RT\s0 #42839]
987
+ .SH "Installation and Configuration Improvements"
988
+ .IX Header "Installation and Configuration Improvements"
989
+ .SS "Relocatable installations"
990
+ .IX Subsection "Relocatable installations"
991
+ There is now \fIConfigure\fR support for creating a relocatable perl tree. If
992
+ you \fIConfigure\fR with \f(CW\*(C`\-Duserelocatableinc\*(C'\fR, then the paths in \f(CW@INC\fR (and
993
+ everything else in \f(CW%Config\fR) can be optionally located via the path of the
994
+ \&\fIperl\fR executable.
995
+ .PP
996
+ At start time, if any paths in \f(CW@INC\fR or \f(CW\*(C`Config\*(C'\fR that \fIConfigure\fR marked
997
+ as relocatable (by starting them with \f(CW".../"\fR), then they are prefixed the
998
+ directory of \f(CW$^X\fR. This allows the relocation can be configured on a
999
+ per-directory basis, although the default with \f(CW\*(C`\-Duserelocatableinc\*(C'\fR is that
1000
+ everything is relocated. The initial install is done to the original configured
1001
+ prefix.
1002
+ .SS "Configuration improvements"
1003
+ .IX Subsection "Configuration improvements"
1004
+ \&\fIConfigure\fR is now better at removing temporary files. Tom Callaway
1005
+ (from RedHat) also contributed patches that complete the set of flags
1006
+ passed to the compiler and the linker, in particular that \f(CW\*(C`\-fPIC\*(C'\fR is now
1007
+ enabled on Linux. It will also croak when your \fI/dev/null\fR isn't a device.
1008
+ .PP
1009
+ A new configuration variable \f(CW\*(C`d_pseudofork\*(C'\fR has been to \fIConfigure\fR, and is
1010
+ available as \f(CW$Config{d_pseudofork}\fR in the \f(CW\*(C`Config\*(C'\fR module. This
1011
+ distinguishes real \f(CW\*(C`fork\*(C'\fR support from the pseudofork emulation used on
1012
+ Windows platforms.
1013
+ .PP
1014
+ \&\fIConfig.pod\fR and \fIconfig.sh\fR are now placed correctly for cross-compilation.
1015
+ .PP
1016
+ \&\f(CW$Config{useshrplib}\fR is now 'true' rather than 'yes' when using a shared perl
1017
+ library.
1018
+ .SS "Compilation improvements"
1019
+ .IX Subsection "Compilation improvements"
1020
+ Parallel makes should work properly now, although there may still be problems
1021
+ if \f(CW\*(C`make test\*(C'\fR is instructed to run in parallel.
1022
+ .PP
1023
+ Many compilation warnings have been cleaned up. A very stubborn compiler
1024
+ warning in \f(CW\*(C`S_emulate_eaccess()\*(C'\fR was killed after six attempts.
1025
+ \&\fIg++\fR support has been tuned, especially for FreeBSD.
1026
+ .PP
1027
+ \&\fImkppport\fR has been integrated, and all \fIppport.h\fR files in the core will now
1028
+ be autogenerated at build time (and removed during cleanup).
1029
+ .SS "Installation improvements."
1030
+ .IX Subsection "Installation improvements."
1031
+ \&\fIinstallman\fR now works with \f(CW\*(C`\-Duserelocatableinc\*(C'\fR and \f(CW\*(C`DESTDIR\*(C'\fR.
1032
+ .PP
1033
+ \&\fIinstallperl\fR no longer installs:
1034
+ .IP "\(bu" 4
1035
+ static library files of statically linked extensions when a shared perl library
1036
+ is being used. (They are not needed. See \*(L"Windows\*(R" below).
1037
+ .IP "\(bu" 4
1038
+ \&\fI\s-1SIGNATURE\s0\fR and \fIPAUSE*.pub\fR (\s-1CPAN\s0 files)
1039
+ .IP "\(bu" 4
1040
+ \&\fI\s-1NOTES\s0\fR and \fI\s-1PATCHING\s0\fR (ExtUtils files)
1041
+ .IP "\(bu" 4
1042
+ \&\fIperlld\fR and \fIld2\fR (Cygwin files)
1043
+ .SS "Platform Specific Changes"
1044
+ .IX Subsection "Platform Specific Changes"
1045
+ There are improved hints for \s-1AIX,\s0 Cygwin, \s-1DEC/OSF,\s0 FreeBSD, \s-1HP/UX,\s0 Irix 6
1046
+ Linux, MachTen, NetBSD, \s-1OS/390, QNX, SCO,\s0 Solaris, SunOS, System V Release 5.x
1047
+ (UnixWare 7, OpenUNIX 8), Ultrix, \s-1UMIPS,\s0 uts and \s-1VOS.\s0
1048
+ .PP
1049
+ \fIFreeBSD\fR
1050
+ .IX Subsection "FreeBSD"
1051
+ .IP "\(bu" 4
1052
+ Drop \f(CW\*(C`\-std=c89\*(C'\fR and \f(CW\*(C`\-ansi\*(C'\fR if using \f(CW\*(C`long long\*(C'\fR as the main integral type,
1053
+ else in FreeBSD 6.2 (and perhaps other releases), system headers do not
1054
+ declare some functions required by perl.
1055
+ .PP
1056
+ \fISolaris\fR
1057
+ .IX Subsection "Solaris"
1058
+ .IP "\(bu" 4
1059
+ Starting with Solaris 10, we do not want versioned shared libraries, because
1060
+ those often indicate a private use only library. These problems could often
1061
+ be triggered when SUNWbdb (Berkeley \s-1DB\s0) was installed. Hence if Solaris 10
1062
+ is detected set \f(CW\*(C`ignore_versioned_solibs=y\*(C'\fR.
1063
+ .PP
1064
+ \fI\s-1VMS\s0\fR
1065
+ .IX Subsection "VMS"
1066
+ .IP "\(bu" 4
1067
+ Allow \s-1IEEE\s0 math to be deselected on OpenVMS I64 (but it remains the default).
1068
+ .IP "\(bu" 4
1069
+ Record \s-1IEEE\s0 usage in \f(CW\*(C`config.h\*(C'\fR
1070
+ .IP "\(bu" 4
1071
+ Help older \s-1VMS\s0 compilers by using \f(CW\*(C`ccflags\*(C'\fR when building \f(CW\*(C`munchconfig.exe\*(C'\fR.
1072
+ .IP "\(bu" 4
1073
+ Don't try to build old \f(CW\*(C`Thread\*(C'\fR extension on \s-1VMS\s0 when \f(CW\*(C`\-Duseithreads\*(C'\fR has
1074
+ been chosen.
1075
+ .IP "\(bu" 4
1076
+ Passing a raw string of \*(L"NaN\*(R" to \fInawk\fR causes a core dump \- so the string
1077
+ has been changed to \*(L"*NaN*\*(R"
1078
+ .IP "\(bu" 4
1079
+ \&\fIt/op/stat.t\fR tests will now test hard links on \s-1VMS\s0 if they are supported.
1080
+ .PP
1081
+ \fIWindows\fR
1082
+ .IX Subsection "Windows"
1083
+ .IP "\(bu" 4
1084
+ When using a shared perl library \fIinstallperl\fR no longer installs static
1085
+ library files, import library files and export library files (of statically
1086
+ linked extensions) and empty bootstrap files (of dynamically linked
1087
+ extensions). This fixes a problem building PAR-Packer on Win32 with a debug
1088
+ build of perl.
1089
+ .IP "\(bu" 4
1090
+ Various improvements to the win32 build process, including support for Visual
1091
+ \&\*(C+ 2005 Express Edition (aka Visual \*(C+ 8.x).
1092
+ .IP "\(bu" 4
1093
+ \&\fIperl.exe\fR will now have an icon if built with MinGW or Borland.
1094
+ .IP "\(bu" 4
1095
+ Improvements to the perl\-static.exe build process.
1096
+ .IP "\(bu" 4
1097
+ Add Win32 makefile option to link all extensions statically.
1098
+ .IP "\(bu" 4
1099
+ The \fIWinCE\fR directory has been merged into the \fIWin32\fR directory.
1100
+ .IP "\(bu" 4
1101
+ \&\f(CW\*(C`setlocale\*(C'\fR tests have been re-enabled for Windows \s-1XP\s0 onwards.
1102
+ .SH "Selected Bug Fixes"
1103
+ .IX Header "Selected Bug Fixes"
1104
+ .SS "Unicode"
1105
+ .IX Subsection "Unicode"
1106
+ Many many bugs related to the internal Unicode implementation (\s-1UTF\-8\s0) have
1107
+ been fixed. In particular, long standing bugs related to returning Unicode
1108
+ via \f(CW\*(C`tie\*(C'\fR, overloading or \f(CW$@\fR are now gone, some of which were never
1109
+ reported.
1110
+ .PP
1111
+ \&\f(CW\*(C`unpack\*(C'\fR will internally convert the string back from \s-1UTF\-8\s0 on numeric types.
1112
+ This is a compromise between the full consistency now in 5.10, and the current
1113
+ behaviour, which is often used as a \*(L"feature\*(R" on string types.
1114
+ .PP
1115
+ Using \f(CW\*(C`:crlf\*(C'\fR and \f(CW\*(C`UTF\-16\*(C'\fR \s-1IO\s0 layers together will now work.
1116
+ .PP
1117
+ Fixed problems with \f(CW\*(C`split\*(C'\fR, Unicode \f(CW\*(C`/\es+/\*(C'\fR and \f(CW\*(C`/ \e0/\*(C'\fR.
1118
+ .PP
1119
+ Fixed bug \s-1RT\s0 #40641 \- encoding of Unicode characters in regular expressions.
1120
+ .PP
1121
+ Fixed a bug where using certain patterns in a regexp led to a panic.
1122
+ [\s-1RT\s0 #45337]
1123
+ .PP
1124
+ Perl no longer segfaults (due to infinite internal recursion) if the locale's
1125
+ character is not \s-1UTF\-8\s0 [\s-1RT\s0 #41442]:
1126
+ .PP
1127
+ .Vb 2
1128
+ \& use open \*(Aq:locale\*(Aq;
1129
+ \& print STDERR "\ex{201e}"; # &bdquo;
1130
+ .Ve
1131
+ .SS "PerlIO"
1132
+ .IX Subsection "PerlIO"
1133
+ Inconsistencies have been fixed in the reference counting PerlIO uses to keep
1134
+ track of Unix file descriptors, and the \s-1API\s0 used by \s-1XS\s0 code to manage getting
1135
+ and releasing \f(CW\*(C`FILE *\*(C'\fRs
1136
+ .SS "Magic"
1137
+ .IX Subsection "Magic"
1138
+ Several bugs have been fixed in Magic, the internal system used to implement
1139
+ features such as \f(CW\*(C`tie\*(C'\fR, tainting and threads sharing.
1140
+ .PP
1141
+ \&\f(CW\*(C`undef @array\*(C'\fR on a tied array now correctly calls the \f(CW\*(C`CLEAR\*(C'\fR method.
1142
+ .PP
1143
+ Some of the bitwise ops were not checking whether their arguments were magical
1144
+ before using them. [\s-1RT\s0 #24816]
1145
+ .PP
1146
+ Magic is no longer invoked twice by the expression \f(CW\*(C`\e&$x\*(C'\fR
1147
+ .PP
1148
+ A bug with assigning large numbers and tainting has been resolved.
1149
+ [\s-1RT\s0 #40708]
1150
+ .PP
1151
+ A new entry has been added to the \s-1MAGIC\s0 vtable \- \f(CW\*(C`svt_local\*(C'\fR. This is used
1152
+ when copying magic to the new value during \f(CW\*(C`local\*(C'\fR, allowing certain problems
1153
+ with localising shared variables to be resolved.
1154
+ .PP
1155
+ For the implementation details, see \*(L"Magic Virtual Tables\*(R" in perlguts.
1156
+ .SS "Reblessing overloaded objects now works"
1157
+ .IX Subsection "Reblessing overloaded objects now works"
1158
+ Internally, perl object-ness is on the referent, not the reference, even
1159
+ though methods can only be called via a reference. However, the original
1160
+ implementation of overloading stored flags related to overloading on the
1161
+ reference, relying on the flags being copied when the reference was copied,
1162
+ or set at the creation of a new reference. This manifests in a bug \- if you
1163
+ rebless an object from a class that has overloading, into one that does not,
1164
+ then any other existing references think that they (still) point to an
1165
+ overloaded object, choose these C code paths, and then throw errors.
1166
+ Analogously, blessing into an overloaded class when other references exist will
1167
+ result in them not using overloading.
1168
+ .PP
1169
+ The implementation has been fixed for 5.10, but this fix changes the semantics
1170
+ of flag bits, so is not binary compatible, so can't be applied to 5.8.9.
1171
+ However, 5.8.9 has a work-around that implements the same bug fix. If the
1172
+ referent has multiple references, then all the other references are located and
1173
+ corrected. A full search is avoided whenever possible by scanning lexicals
1174
+ outwards from the current subroutine, and the argument stack.
1175
+ .PP
1176
+ A certain well known Linux vendor applied incomplete versions of this bug fix
1177
+ to their \fI/usr/bin/perl\fR and then prematurely closed bug reports about
1178
+ performance issues without consulting back upstream. This not being enough,
1179
+ they then proceeded to ignore the necessary fixes to these unreleased changes
1180
+ for 11 months, until massive pressure was applied by their long-suffering
1181
+ paying customers, catalysed by the failings being featured on a prominent blog
1182
+ and Slashdot.
1183
+ .ie n .SS """strict"" now propagates correctly into string evals"
1184
+ .el .SS "\f(CWstrict\fP now propagates correctly into string evals"
1185
+ .IX Subsection "strict now propagates correctly into string evals"
1186
+ Under 5.8.8 and earlier:
1187
+ .PP
1188
+ .Vb 3
1189
+ \& $ perl5.8.8 \-e \*(Aquse strict; eval "use foo bar" or die $@\*(Aq
1190
+ \& Can\*(Aqt locate foo.pm in @INC (@INC contains: ... .) at (eval 1) line 2.
1191
+ \& BEGIN failed\-\-compilation aborted at (eval 1) line 2.
1192
+ .Ve
1193
+ .PP
1194
+ Under 5.8.9 and later:
1195
+ .PP
1196
+ .Vb 2
1197
+ \& $ perl5.8.9 \-e \*(Aquse strict; eval "use foo bar" or die $@\*(Aq
1198
+ \& Bareword "bar" not allowed while "strict subs" in use at (eval 1) line 1.
1199
+ .Ve
1200
+ .PP
1201
+ This may cause problems with programs that parse the error message and rely
1202
+ on the buggy behaviour.
1203
+ .SS "Other fixes"
1204
+ .IX Subsection "Other fixes"
1205
+ .IP "\(bu" 4
1206
+ The tokenizer no longer treats \f(CW\*(C`=cute\*(C'\fR (and other words beginning
1207
+ with \f(CW\*(C`=cut\*(C'\fR) as a synonym for \f(CW\*(C`=cut\*(C'\fR.
1208
+ .IP "\(bu" 4
1209
+ Calling \f(CW\*(C`CORE::require\*(C'\fR
1210
+ .Sp
1211
+ \&\f(CW\*(C`CORE::require\*(C'\fR and \f(CW\*(C`CORE::do\*(C'\fR were always parsed as \f(CW\*(C`require\*(C'\fR and \f(CW\*(C`do\*(C'\fR
1212
+ when they were overridden. This is now fixed.
1213
+ .IP "\(bu" 4
1214
+ Stopped memory leak on long \fI/etc/groups\fR entries.
1215
+ .IP "\(bu" 4
1216
+ \&\f(CW\*(C`while (my $x ...) { ...; redo }\*(C'\fR shouldn't \f(CW\*(C`undef $x\*(C'\fR.
1217
+ .Sp
1218
+ In the presence of \f(CW\*(C`my\*(C'\fR in the conditional of a \f(CW\*(C`while()\*(C'\fR, \f(CW\*(C`until()\*(C'\fR,
1219
+ or \f(CW\*(C`for(;;)\*(C'\fR loop, we now add an extra scope to the body so that \f(CW\*(C`redo\*(C'\fR
1220
+ doesn't \f(CW\*(C`undef\*(C'\fR the lexical.
1221
+ .IP "\(bu" 4
1222
+ The \f(CW\*(C`encoding\*(C'\fR pragma now correctly ignores anything following an \f(CW\*(C`@\*(C'\fR
1223
+ character in the \f(CW\*(C`LC_ALL\*(C'\fR and \f(CW\*(C`LANG\*(C'\fR environment variables. [\s-1RT\s0 # 49646]
1224
+ .IP "\(bu" 4
1225
+ A segfault observed with some \fIgcc\fR 3.3 optimisations is resolved.
1226
+ .IP "\(bu" 4
1227
+ A possible segfault when \f(CW\*(C`unpack\*(C'\fR used in scalar context with \f(CW\*(C`()\*(C'\fR groups
1228
+ is resolved. [\s-1RT\s0 #50256]
1229
+ .IP "\(bu" 4
1230
+ Resolved issue where \f(CW$!\fR could be changed by a signal handler interrupting
1231
+ a \f(CW\*(C`system\*(C'\fR call.
1232
+ .IP "\(bu" 4
1233
+ Fixed bug \s-1RT\s0 #37886, symbolic dereferencing was allowed in the argument of
1234
+ \&\f(CW\*(C`defined\*(C'\fR even under the influence of \f(CW\*(C`use strict \*(Aqrefs\*(Aq\*(C'\fR.
1235
+ .IP "\(bu" 4
1236
+ Fixed bug \s-1RT\s0 #43207, where \f(CW\*(C`lc\*(C'\fR/\f(CW\*(C`uc\*(C'\fR inside \f(CW\*(C`sort\*(C'\fR affected the return
1237
+ value.
1238
+ .IP "\(bu" 4
1239
+ Fixed bug \s-1RT\s0 #45607, where \f(CW\*(C`*{"BONK"} = \e&{"BONK"}\*(C'\fR didn't work correctly.
1240
+ .IP "\(bu" 4
1241
+ Fixed bug \s-1RT\s0 #35878, croaking from a \s-1XSUB\s0 called via \f(CW\*(C`goto &xsub\*(C'\fR corrupts perl
1242
+ internals.
1243
+ .IP "\(bu" 4
1244
+ Fixed bug \s-1RT\s0 #32539, \fIDynaLoader.o\fR is moved into \fIlibperl.so\fR to avoid the
1245
+ need to statically link DynaLoader into the stub perl executable. With this
1246
+ \&\fIlibperl.so\fR provides everything needed to get a functional embedded perl
1247
+ interpreter to run.
1248
+ .IP "\(bu" 4
1249
+ Fix bug \s-1RT\s0 #36267 so that assigning to a tied hash doesn't change the
1250
+ underlying hash.
1251
+ .IP "\(bu" 4
1252
+ Fix bug \s-1RT\s0 #6006, regexp replaces using large replacement variables
1253
+ fail some of the time, \fIi.e.\fR when substitution contains something
1254
+ like \f(CW\*(C`${10}\*(C'\fR (note the bracket) instead of just \f(CW$10\fR.
1255
+ .IP "\(bu" 4
1256
+ Fix bug \s-1RT\s0 #45053, \f(CW\*(C`Perl_newCONSTSUB()\*(C'\fR is now thread safe.
1257
+ .SS "Platform Specific Fixes"
1258
+ .IX Subsection "Platform Specific Fixes"
1259
+ \fIDarwin / MacOS X\fR
1260
+ .IX Subsection "Darwin / MacOS X"
1261
+ .IP "\(bu" 4
1262
+ Various improvements to 64 bit builds.
1263
+ .IP "\(bu" 4
1264
+ Mutex protection added in \f(CW\*(C`PerlIOStdio_close()\*(C'\fR to avoid race conditions.
1265
+ Hopefully this fixes failures in the threads tests \fIfree.t\fR and \fIblocks.t\fR.
1266
+ .IP "\(bu" 4
1267
+ Added forked terminal support to the debugger, with the ability to update the
1268
+ window title.
1269
+ .PP
1270
+ \fI\s-1OS/2\s0\fR
1271
+ .IX Subsection "OS/2"
1272
+ .IP "\(bu" 4
1273
+ A build problem with specifying \f(CW\*(C`USE_MULTI\*(C'\fR and \f(CW\*(C`USE_ITHREADS\*(C'\fR but without
1274
+ \&\f(CW\*(C`USE_IMP_SYS\*(C'\fR has been fixed.
1275
+ .IP "\(bu" 4
1276
+ \&\f(CW\*(C`OS2::REXX\*(C'\fR upgraded to version 1.04
1277
+ .PP
1278
+ \fITru64\fR
1279
+ .IX Subsection "Tru64"
1280
+ .IP "\(bu" 4
1281
+ Aligned floating point build policies for \fIcc\fR and \fIgcc\fR.
1282
+ .PP
1283
+ \fIRedHat Linux\fR
1284
+ .IX Subsection "RedHat Linux"
1285
+ .IP "\(bu" 4
1286
+ Revisited a patch from 5.6.1 for \s-1RH7.2\s0 for Intel's \fIicc\fR [\s-1RT\s0 #7916], added an
1287
+ additional check for \f(CW$Config{gccversion}\fR.
1288
+ .PP
1289
+ \fISolaris/i386\fR
1290
+ .IX Subsection "Solaris/i386"
1291
+ .IP "\(bu" 4
1292
+ Use \f(CW\*(C`\-DPTR_IS_LONG\*(C'\fR when using 64 bit integers
1293
+ .PP
1294
+ \fI\s-1VMS\s0\fR
1295
+ .IX Subsection "VMS"
1296
+ .IP "\(bu" 4
1297
+ Fixed \f(CW\*(C`PerlIO::Scalar\*(C'\fR in-memory file record-style reads.
1298
+ .IP "\(bu" 4
1299
+ pipe shutdown at process exit should now be more robust.
1300
+ .IP "\(bu" 4
1301
+ Bugs in \s-1VMS\s0 exit handling tickled by \f(CW\*(C`Test::Harness\*(C'\fR 2.64 have been fixed.
1302
+ .IP "\(bu" 4
1303
+ Fix \f(CW\*(C`fcntl()\*(C'\fR locking capability test in \fIconfigure.com\fR.
1304
+ .IP "\(bu" 4
1305
+ Replaced \f(CW\*(C`shrplib=\*(Aqdefine\*(Aq\*(C'\fR with \f(CW\*(C`useshrplib=\*(Aqtrue\*(Aq\*(C'\fR on \s-1VMS.\s0
1306
+ .PP
1307
+ \fIWindows\fR
1308
+ .IX Subsection "Windows"
1309
+ .IP "\(bu" 4
1310
+ \&\f(CW\*(C`File::Find\*(C'\fR used to fail when the target directory is a bare drive letter and
1311
+ \&\f(CW\*(C`no_chdir\*(C'\fR is 1 (the default is 0). [\s-1RT\s0 #41555]
1312
+ .IP "\(bu" 4
1313
+ A build problem with specifying \f(CW\*(C`USE_MULTI\*(C'\fR and \f(CW\*(C`USE_ITHREADS\*(C'\fR but without
1314
+ \&\f(CW\*(C`USE_IMP_SYS\*(C'\fR has been fixed.
1315
+ .IP "\(bu" 4
1316
+ The process id is no longer truncated to 16 bits on some Windows platforms
1317
+ ( http://bugs.activestate.com/show_bug.cgi?id=72443 )
1318
+ .IP "\(bu" 4
1319
+ Fixed bug \s-1RT\s0 #54828 in \fIperlio.c\fR where calling \f(CW\*(C`binmode\*(C'\fR on Win32 and Cygwin
1320
+ may cause a segmentation fault.
1321
+ .SS "Smaller fixes"
1322
+ .IX Subsection "Smaller fixes"
1323
+ .IP "\(bu" 4
1324
+ It is now possible to overload \f(CW\*(C`eq\*(C'\fR when using \f(CW\*(C`nomethod\*(C'\fR.
1325
+ .IP "\(bu" 4
1326
+ Various problems using \f(CW\*(C`overload\*(C'\fR with 64 bit integers corrected.
1327
+ .IP "\(bu" 4
1328
+ The reference count of \f(CW\*(C`PerlIO\*(C'\fR file descriptors is now correctly handled.
1329
+ .IP "\(bu" 4
1330
+ On \s-1VMS,\s0 escaped dots will be preserved when converted to Unix syntax.
1331
+ .IP "\(bu" 4
1332
+ \&\f(CW\*(C`keys %+\*(C'\fR no longer throws an \f(CW\*(Aqambiguous\*(Aq\fR warning.
1333
+ .IP "\(bu" 4
1334
+ Using \f(CW\*(C`#!perl \-d\*(C'\fR could trigger an assertion, which has been fixed.
1335
+ .IP "\(bu" 4
1336
+ Don't stringify tied code references in \f(CW@INC\fR when calling \f(CW\*(C`require\*(C'\fR.
1337
+ .IP "\(bu" 4
1338
+ Code references in \f(CW@INC\fR report the correct file name when \f(CW\*(C`_\|_FILE_\|_\*(C'\fR is
1339
+ used.
1340
+ .IP "\(bu" 4
1341
+ Width and precision in sprintf didn't handle characters above 255 correctly.
1342
+ [\s-1RT\s0 #40473]
1343
+ .IP "\(bu" 4
1344
+ List slices with indices out of range now work more consistently.
1345
+ [\s-1RT\s0 #39882]
1346
+ .IP "\(bu" 4
1347
+ A change introduced with perl 5.8.1 broke the parsing of arguments of the form
1348
+ \&\f(CW\*(C`\-foo=bar\*(C'\fR with the \f(CW\*(C`\-s\*(C'\fR on the <#!> line. This has been fixed. See
1349
+ http://bugs.activestate.com/show_bug.cgi?id=43483
1350
+ .IP "\(bu" 4
1351
+ \&\f(CW\*(C`tr///\*(C'\fR is now threadsafe. Previously it was storing a swash inside its \s-1OP,\s0
1352
+ rather than in a pad.
1353
+ .IP "\(bu" 4
1354
+ \&\fIpod2html\fR labels anchors more consistently and handles nested definition
1355
+ lists better.
1356
+ .IP "\(bu" 4
1357
+ \&\f(CW\*(C`threads\*(C'\fR cleanup veto has been extended to include \f(CW\*(C`perl_free()\*(C'\fR and
1358
+ \&\f(CW\*(C`perl_destruct()\*(C'\fR
1359
+ .IP "\(bu" 4
1360
+ On some systems, changes to \f(CW$ENV{TZ}\fR would not always be
1361
+ respected by the underlying calls to \f(CW\*(C`localtime_r()\*(C'\fR. Perl now
1362
+ forces the inspection of the environment on these systems.
1363
+ .IP "\(bu" 4
1364
+ The special variable \f(CW$^R\fR is now more consistently set when executing
1365
+ regexps using the \f(CW\*(C`(?{...})\*(C'\fR construct. In particular, it will still
1366
+ be set even if backreferences or optional sub-patterns \f(CW\*(C`(?:...)?\*(C'\fR are
1367
+ used.
1368
+ .SH "New or Changed Diagnostics"
1369
+ .IX Header "New or Changed Diagnostics"
1370
+ .ie n .SS "panic: sv_chop %s"
1371
+ .el .SS "panic: sv_chop \f(CW%s\fP"
1372
+ .IX Subsection "panic: sv_chop %s"
1373
+ This new fatal error occurs when the C routine \f(CW\*(C`Perl_sv_chop()\*(C'\fR was passed a
1374
+ position that is not within the scalar's string buffer. This is caused by
1375
+ buggy \s-1XS\s0 code, and at this point recovery is not possible.
1376
+ .SS "Maximal count of pending signals (%s) exceeded"
1377
+ .IX Subsection "Maximal count of pending signals (%s) exceeded"
1378
+ This new fatal error occurs when the perl process has to abort due to
1379
+ too many pending signals, which is bound to prevent perl from being
1380
+ able to handle further incoming signals safely.
1381
+ .ie n .SS "panic: attempt to call %s in %s"
1382
+ .el .SS "panic: attempt to call \f(CW%s\fP in \f(CW%s\fP"
1383
+ .IX Subsection "panic: attempt to call %s in %s"
1384
+ This new fatal error occurs when the \s-1ACL\s0 version file test operator is used
1385
+ where it is not available on the current platform. Earlier checks mean that
1386
+ it should never be possible to get this.
1387
+ .SS "\s-1FETCHSIZE\s0 returned a negative value"
1388
+ .IX Subsection "FETCHSIZE returned a negative value"
1389
+ New error indicating that a tied array has claimed to have a negative
1390
+ number of elements.
1391
+ .ie n .SS "Can't upgrade %s (%d) to %d"
1392
+ .el .SS "Can't upgrade \f(CW%s\fP (%d) to \f(CW%d\fP"
1393
+ .IX Subsection "Can't upgrade %s (%d) to %d"
1394
+ Previously the internal error from the \s-1SV\s0 upgrade code was the less informative
1395
+ \&\fICan't upgrade that kind of scalar\fR. It now reports the current internal type,
1396
+ and the new type requested.
1397
+ .ie n .SS "%s argument is not a \s-1HASH\s0 or \s-1ARRAY\s0 element or a subroutine"
1398
+ .el .SS "\f(CW%s\fP argument is not a \s-1HASH\s0 or \s-1ARRAY\s0 element or a subroutine"
1399
+ .IX Subsection "%s argument is not a HASH or ARRAY element or a subroutine"
1400
+ This error, thrown if an invalid argument is provided to \f(CW\*(C`exists\*(C'\fR now
1401
+ correctly includes \*(L"or a subroutine\*(R". [\s-1RT\s0 #38955]
1402
+ .ie n .SS "Cannot make the non-overridable builtin %s fatal"
1403
+ .el .SS "Cannot make the non-overridable builtin \f(CW%s\fP fatal"
1404
+ .IX Subsection "Cannot make the non-overridable builtin %s fatal"
1405
+ This error in \f(CW\*(C`Fatal\*(C'\fR previously did not show the name of the builtin in
1406
+ question (now represented by \f(CW%s\fR above).
1407
+ .ie n .SS "Unrecognized character '%s' in column %d"
1408
+ .el .SS "Unrecognized character '%s' in column \f(CW%d\fP"
1409
+ .IX Subsection "Unrecognized character '%s' in column %d"
1410
+ This error previously did not state the column.
1411
+ .SS "Offset outside string"
1412
+ .IX Subsection "Offset outside string"
1413
+ This can now also be generated by a \f(CW\*(C`seek\*(C'\fR on a file handle using
1414
+ \&\f(CW\*(C`PerlIO::scalar\*(C'\fR.
1415
+ .SS "Invalid escape in the specified encoding in regexp; marked by <\-\- \s-1HERE\s0 in m/%s/"
1416
+ .IX Subsection "Invalid escape in the specified encoding in regexp; marked by <-- HERE in m/%s/"
1417
+ New error, introduced as part of the fix to \s-1RT\s0 #40641 to handle encoding
1418
+ of Unicode characters in regular expression comments.
1419
+ .SS "Your machine doesn't support dump/undump."
1420
+ .IX Subsection "Your machine doesn't support dump/undump."
1421
+ A more informative fatal error issued when calling \f(CW\*(C`dump\*(C'\fR on Win32 and
1422
+ Cygwin. (Given that the purpose of \f(CW\*(C`dump\*(C'\fR is to abort with a core dump,
1423
+ and core dumps can't be produced on these platforms, this is more useful than
1424
+ silently exiting.)
1425
+ .SH "Changed Internals"
1426
+ .IX Header "Changed Internals"
1427
+ The perl sources can now be compiled with a \*(C+ compiler instead of a C
1428
+ compiler. A necessary implementation details is that under \*(C+, the macro
1429
+ \&\f(CW\*(C`XS\*(C'\fR used to define XSUBs now includes an \f(CW\*(C`extern "C"\*(C'\fR definition. A side
1430
+ effect of this is that \fB\*(C+\fR code that used the construction
1431
+ .PP
1432
+ .Vb 1
1433
+ \& typedef XS(SwigPerlWrapper);
1434
+ .Ve
1435
+ .PP
1436
+ now needs to be written
1437
+ .PP
1438
+ .Vb 1
1439
+ \& typedef XSPROTO(SwigPerlWrapper);
1440
+ .Ve
1441
+ .PP
1442
+ using the new \f(CW\*(C`XSPROTO\*(C'\fR macro, in order to compile. C extensions are
1443
+ unaffected, although C extensions are encouraged to use \f(CW\*(C`XSPROTO\*(C'\fR too.
1444
+ This change was present in the 5.10.0 release of perl, so any actively
1445
+ maintained code that happened to use this construction should already have
1446
+ been adapted. Code that needs changing will fail with a compilation error.
1447
+ .PP
1448
+ \&\f(CW\*(C`set\*(C'\fR magic on localizing/assigning to a magic variable will now only
1449
+ trigger for \fIcontainer magics\fR, i.e. it will for \f(CW%ENV\fR or \f(CW%SIG\fR
1450
+ but not for \f(CW$#array\fR.
1451
+ .PP
1452
+ The new \s-1API\s0 macro \f(CW\*(C`newSVpvs()\*(C'\fR can be used in place of constructions such as
1453
+ \&\f(CW\*(C`newSVpvn("ISA", 3)\*(C'\fR. It takes a single string constant, and at C compile
1454
+ time determines its length.
1455
+ .PP
1456
+ The new \s-1API\s0 function \f(CW\*(C`Perl_newSV_type()\*(C'\fR can be used as a more efficient
1457
+ replacement of the common idiom
1458
+ .PP
1459
+ .Vb 2
1460
+ \& sv = newSV(0);
1461
+ \& sv_upgrade(sv, type);
1462
+ .Ve
1463
+ .PP
1464
+ Similarly \f(CW\*(C`Perl_newSVpvn_flags()\*(C'\fR can be used to combine
1465
+ \&\f(CW\*(C`Perl_newSVpv()\*(C'\fR with \f(CW\*(C`Perl_sv_2mortal()\*(C'\fR or the equivalent
1466
+ \&\f(CW\*(C`Perl_sv_newmortal()\*(C'\fR with \f(CW\*(C`Perl_sv_setpvn()\*(C'\fR
1467
+ .PP
1468
+ Two new macros \f(CW\*(C`mPUSHs()\*(C'\fR and \f(CW\*(C`mXPUSHs()\*(C'\fR are added, to make it easier to
1469
+ push mortal SVs onto the stack. They were then used to fix several bugs where
1470
+ values on the stack had not been mortalised.
1471
+ .PP
1472
+ A \f(CW\*(C`Perl_signbit()\*(C'\fR function was added to test the sign of an \f(CW\*(C`NV\*(C'\fR. It
1473
+ maps to the system one when available.
1474
+ .PP
1475
+ \&\f(CW\*(C`Perl_av_reify()\*(C'\fR, \f(CW\*(C`Perl_lex_end()\*(C'\fR, \f(CW\*(C`Perl_mod()\*(C'\fR, \f(CW\*(C`Perl_op_clear()\*(C'\fR,
1476
+ \&\f(CW\*(C`Perl_pop_return()\*(C'\fR, \f(CW\*(C`Perl_qerror()\*(C'\fR, \f(CW\*(C`Perl_setdefout()\*(C'\fR,
1477
+ \&\f(CW\*(C`Perl_vivify_defelem()\*(C'\fR and \f(CW\*(C`Perl_yylex()\*(C'\fR are now visible to extensions.
1478
+ This was required to allow \f(CW\*(C`Data::Alias\*(C'\fR to work on Windows.
1479
+ .PP
1480
+ \&\f(CW\*(C`Perl_find_runcv()\*(C'\fR is now visible to perl core extensions. This was required
1481
+ to allow \f(CW\*(C`Sub::Current\*(C'\fR to work on Windows.
1482
+ .PP
1483
+ \&\f(CW\*(C`ptr_table*\*(C'\fR functions are now available in unthreaded perl. \f(CW\*(C`Storable\*(C'\fR
1484
+ takes advantage of this.
1485
+ .PP
1486
+ There have been many small cleanups made to the internals. In particular,
1487
+ \&\f(CW\*(C`Perl_sv_upgrade()\*(C'\fR has been simplified considerably, with a straight-through
1488
+ code path that uses \f(CW\*(C`memset()\*(C'\fR and \f(CW\*(C`memcpy()\*(C'\fR to initialise the new body,
1489
+ rather than assignment via multiple temporary variables. It has also
1490
+ benefited from simplification and de-duplication of the arena management
1491
+ code.
1492
+ .PP
1493
+ A lot of small improvements in the code base were made due to reports from
1494
+ the Coverity static code analyzer.
1495
+ .PP
1496
+ Corrected use and documentation of \f(CW\*(C`Perl_gv_stashpv()\*(C'\fR, \f(CW\*(C`Perl_gv_stashpvn()\*(C'\fR,
1497
+ \&\f(CW\*(C`Perl_gv_stashsv()\*(C'\fR functions (last parameter is a bitmask, not boolean).
1498
+ .PP
1499
+ \&\f(CW\*(C`PERL_SYS_INIT\*(C'\fR, \f(CW\*(C`PERL_SYS_INIT3\*(C'\fR and \f(CW\*(C`PERL_SYS_TERM\*(C'\fR macros have been
1500
+ changed into functions.
1501
+ .PP
1502
+ \&\f(CW\*(C`PERLSYS_TERM\*(C'\fR no longer requires a context. \f(CW\*(C`PerlIO_teardown()\*(C'\fR
1503
+ is now called without a context, and debugging output in this function has
1504
+ been disabled because that required that an interpreter was present, an invalid
1505
+ assumption at termination time.
1506
+ .PP
1507
+ All compile time options which affect binary compatibility have been grouped
1508
+ together into a global variable (\f(CW\*(C`PL_bincompat_options\*(C'\fR).
1509
+ .PP
1510
+ The values of \f(CW\*(C`PERL_REVISION\*(C'\fR, \f(CW\*(C`PERL_VERSION\*(C'\fR and \f(CW\*(C`PERL_SUBVERSION\*(C'\fR are
1511
+ now baked into global variables (and hence into any shared perl library).
1512
+ Additionally under \f(CW\*(C`MULTIPLICITY\*(C'\fR, the perl executable now records the size of
1513
+ the interpreter structure (total, and for this version). Coupled with
1514
+ \&\f(CW\*(C`PL_bincompat_options\*(C'\fR this will allow 5.8.10 (and later), when compiled with a
1515
+ shared perl library, to perform sanity checks in \f(CW\*(C`main()\*(C'\fR to verify that the
1516
+ shared library is indeed binary compatible.
1517
+ .PP
1518
+ Symbolic references can now have embedded NULs. The new public function
1519
+ \&\f(CW\*(C`Perl_get_cvn_flags()\*(C'\fR can be used in extensions if you have to handle them.
1520
+ .SS "Macro cleanups"
1521
+ .IX Subsection "Macro cleanups"
1522
+ The core code, and \s-1XS\s0 code in \fIext\fR that is not dual-lived on \s-1CPAN,\s0 no longer
1523
+ uses the macros \f(CW\*(C`PL_na\*(C'\fR, \f(CW\*(C`NEWSV()\*(C'\fR, \f(CW\*(C`Null()\*(C'\fR, \f(CW\*(C`Nullav\*(C'\fR, \f(CW\*(C`Nullcv\*(C'\fR,
1524
+ \&\f(CW\*(C`Nullhv\*(C'\fR, \f(CW\*(C`Nullhv\*(C'\fR \fIetc\fR. Their use is discouraged in new code,
1525
+ particularly \f(CW\*(C`PL_na\*(C'\fR, which is a small performance hit.
1526
+ .SH "New Tests"
1527
+ .IX Header "New Tests"
1528
+ Many modules updated from \s-1CPAN\s0 incorporate new tests. Some core specific
1529
+ tests have been added:
1530
+ .IP "ext/DynaLoader/t/DynaLoader.t" 4
1531
+ .IX Item "ext/DynaLoader/t/DynaLoader.t"
1532
+ Tests for the \f(CW\*(C`DynaLoader\*(C'\fR module.
1533
+ .IP "t/comp/fold.t" 4
1534
+ .IX Item "t/comp/fold.t"
1535
+ Tests for compile-time constant folding.
1536
+ .IP "t/io/pvbm.t" 4
1537
+ .IX Item "t/io/pvbm.t"
1538
+ Tests incorporated from 5.10.0 which check that there is no unexpected
1539
+ interaction between the internal types \f(CW\*(C`PVBM\*(C'\fR and \f(CW\*(C`PVGV\*(C'\fR.
1540
+ .IP "t/lib/proxy_constant_subs.t" 4
1541
+ .IX Item "t/lib/proxy_constant_subs.t"
1542
+ Tests for the new form of constant subroutines.
1543
+ .IP "t/op/attrhand.t" 4
1544
+ .IX Item "t/op/attrhand.t"
1545
+ Tests for \f(CW\*(C`Attribute::Handlers\*(C'\fR.
1546
+ .IP "t/op/dbm.t" 4
1547
+ .IX Item "t/op/dbm.t"
1548
+ Tests for \f(CW\*(C`dbmopen\*(C'\fR.
1549
+ .IP "t/op/inccode\-tie.t" 4
1550
+ .IX Item "t/op/inccode-tie.t"
1551
+ Calls all tests in \fIt/op/inccode.t\fR after first tying \f(CW@INC\fR.
1552
+ .IP "t/op/incfilter.t" 4
1553
+ .IX Item "t/op/incfilter.t"
1554
+ Tests for source filters returned from code references in \f(CW@INC\fR.
1555
+ .IP "t/op/kill0.t" 4
1556
+ .IX Item "t/op/kill0.t"
1557
+ Tests for \s-1RT\s0 #30970.
1558
+ .IP "t/op/qrstack.t" 4
1559
+ .IX Item "t/op/qrstack.t"
1560
+ Tests for \s-1RT\s0 #41484.
1561
+ .IP "t/op/qr.t" 4
1562
+ .IX Item "t/op/qr.t"
1563
+ Tests for the \f(CW\*(C`qr//\*(C'\fR construct.
1564
+ .IP "t/op/regexp_qr_embed.t" 4
1565
+ .IX Item "t/op/regexp_qr_embed.t"
1566
+ Tests for the \f(CW\*(C`qr//\*(C'\fR construct within another regexp.
1567
+ .IP "t/op/regexp_qr.t" 4
1568
+ .IX Item "t/op/regexp_qr.t"
1569
+ Tests for the \f(CW\*(C`qr//\*(C'\fR construct.
1570
+ .IP "t/op/rxcode.t" 4
1571
+ .IX Item "t/op/rxcode.t"
1572
+ Tests for \s-1RT\s0 #32840.
1573
+ .IP "t/op/studytied.t" 4
1574
+ .IX Item "t/op/studytied.t"
1575
+ Tests for \f(CW\*(C`study\*(C'\fR on tied scalars.
1576
+ .IP "t/op/substT.t" 4
1577
+ .IX Item "t/op/substT.t"
1578
+ Tests for \f(CW\*(C`subst\*(C'\fR run under \f(CW\*(C`\-T\*(C'\fR mode.
1579
+ .IP "t/op/symbolcache.t" 4
1580
+ .IX Item "t/op/symbolcache.t"
1581
+ Tests for \f(CW\*(C`undef\*(C'\fR and \f(CW\*(C`delete\*(C'\fR on stash entries that are bound to
1582
+ subroutines or methods.
1583
+ .IP "t/op/upgrade.t" 4
1584
+ .IX Item "t/op/upgrade.t"
1585
+ Tests for \f(CW\*(C`Perl_sv_upgrade()\*(C'\fR.
1586
+ .IP "t/mro/package_aliases.t" 4
1587
+ .IX Item "t/mro/package_aliases.t"
1588
+ \&\s-1MRO\s0 tests for \f(CW\*(C`isa\*(C'\fR and package aliases.
1589
+ .IP "t/pod/twice.t" 4
1590
+ .IX Item "t/pod/twice.t"
1591
+ Tests for calling \f(CW\*(C`Pod::Parser\*(C'\fR twice.
1592
+ .IP "t/run/cloexec.t" 4
1593
+ .IX Item "t/run/cloexec.t"
1594
+ Tests for inheriting file descriptors across \f(CW\*(C`exec\*(C'\fR (close-on-exec).
1595
+ .IP "t/uni/cache.t" 4
1596
+ .IX Item "t/uni/cache.t"
1597
+ Tests for the \s-1UTF\-8\s0 caching code.
1598
+ .IP "t/uni/chr.t" 4
1599
+ .IX Item "t/uni/chr.t"
1600
+ Test that strange encodings do not upset \f(CW\*(C`Perl_pp_chr()\*(C'\fR.
1601
+ .IP "t/uni/greek.t" 4
1602
+ .IX Item "t/uni/greek.t"
1603
+ Tests for \s-1RT\s0 #40641.
1604
+ .IP "t/uni/latin2.t" 4
1605
+ .IX Item "t/uni/latin2.t"
1606
+ Tests for \s-1RT\s0 #40641.
1607
+ .IP "t/uni/overload.t" 4
1608
+ .IX Item "t/uni/overload.t"
1609
+ Tests for returning Unicode from overloaded values.
1610
+ .IP "t/uni/tie.t" 4
1611
+ .IX Item "t/uni/tie.t"
1612
+ Tests for returning Unicode from tied variables.
1613
+ .SH "Known Problems"
1614
+ .IX Header "Known Problems"
1615
+ There are no known new bugs.
1616
+ .PP
1617
+ However, programs that rely on bugs that have been fixed will have problems.
1618
+ Also, many bug fixes present in 5.10.0 can't be back-ported to the 5.8.x
1619
+ branch, because they require changes that are binary incompatible, or because
1620
+ the code changes are too large and hence too risky to incorporate.
1621
+ .PP
1622
+ We have only limited volunteer labour, and the maintenance burden is
1623
+ getting increasingly complex. Hence this will be the last significant
1624
+ release of the 5.8.x series. Any future releases of 5.8.x will likely
1625
+ only be to deal with security issues, and platform build
1626
+ failures. Hence you should look to migrating to 5.10.x, if you have
1627
+ not started already. Alternatively, if business requirements constrain
1628
+ you to continue to use 5.8.x, you may wish to consider commercial
1629
+ support from firms such as ActiveState.
1630
+ .SH "Platform Specific Notes"
1631
+ .IX Header "Platform Specific Notes"
1632
+ .SS "Win32"
1633
+ .IX Subsection "Win32"
1634
+ \&\f(CW\*(C`readdir()\*(C'\fR, \f(CW\*(C`cwd()\*(C'\fR, \f(CW$^X\fR and \f(CW@INC\fR now use the alternate (short)
1635
+ filename if the long name is outside the current codepage (Jan Dubois).
1636
+ .PP
1637
+ \fIUpdated Modules\fR
1638
+ .IX Subsection "Updated Modules"
1639
+ .IP "\(bu" 4
1640
+ \&\f(CW\*(C`Win32\*(C'\fR upgraded to version 0.38. Now has a documented 'WinVista' response
1641
+ from \f(CW\*(C`GetOSName\*(C'\fR and support for Vista's privilege elevation in \f(CW\*(C`IsAdminUser\*(C'\fR.
1642
+ Support for Unicode characters in path names. Improved cygwin and Win64
1643
+ compatibility.
1644
+ .IP "\(bu" 4
1645
+ \&\f(CW\*(C`Win32API\*(C'\fR updated to 0.1001_01
1646
+ .IP "\(bu" 4
1647
+ \&\f(CW\*(C`killpg()\*(C'\fR support added to \f(CW\*(C`MSWin32\*(C'\fR (Jan Dubois).
1648
+ .IP "\(bu" 4
1649
+ \&\f(CW\*(C`File::Spec::Win32\*(C'\fR upgraded to version 3.2701
1650
+ .SS "\s-1OS/2\s0"
1651
+ .IX Subsection "OS/2"
1652
+ \fIUpdated Modules\fR
1653
+ .IX Subsection "Updated Modules"
1654
+ .IP "\(bu" 4
1655
+ \&\f(CW\*(C`OS2::Process\*(C'\fR upgraded to 1.03
1656
+ .Sp
1657
+ Ilya Zakharevich has added and documented several \f(CW\*(C`Window*\*(C'\fR and \f(CW\*(C`Clipbrd*\*(C'\fR
1658
+ functions.
1659
+ .IP "\(bu" 4
1660
+ \&\f(CW\*(C`OS2::REXX::DLL\*(C'\fR, \f(CW\*(C`OS2::REXX\*(C'\fR updated to version 1.03
1661
+ .SS "\s-1VMS\s0"
1662
+ .IX Subsection "VMS"
1663
+ \fIUpdated Modules\fR
1664
+ .IX Subsection "Updated Modules"
1665
+ .IP "\(bu" 4
1666
+ \&\f(CW\*(C`DCLsym\*(C'\fR upgraded to version 1.03
1667
+ .IP "\(bu" 4
1668
+ \&\f(CW\*(C`Stdio\*(C'\fR upgraded to version 2.4
1669
+ .IP "\(bu" 4
1670
+ \&\f(CW\*(C`VMS::XSSymSet\*(C'\fR upgraded to 1.1.
1671
+ .SH "Obituary"
1672
+ .IX Header "Obituary"
1673
+ Nick Ing-Simmons, long time Perl hacker, author of the \f(CW\*(C`Tk\*(C'\fR and \f(CW\*(C`Encode\*(C'\fR
1674
+ modules, \fIperlio.c\fR in the core, and 5.003_02 pumpking, died of a heart
1675
+ attack on 25th September 2006. He will be missed.
1676
+ .SH "Acknowledgements"
1677
+ .IX Header "Acknowledgements"
1678
+ Some of the work in this release was funded by a \s-1TPF\s0 grant.
1679
+ .PP
1680
+ Steve Hay worked behind the scenes working out the causes of the differences
1681
+ between core modules, their \s-1CPAN\s0 releases, and previous core releases, and
1682
+ the best way to rectify them. He doesn't want to do it again. I know this
1683
+ feeling, and I'm very glad he did it this time, instead of me.
1684
+ .PP
1685
+ Paul Fenwick assembled a team of 18 volunteers, who broke the back of writing
1686
+ this document. In particular, Bradley Dean, Eddy Tan, and Vincent Pit
1687
+ provided half the team's contribution.
1688
+ .PP
1689
+ Schwern verified the list of updated module versions, correcting quite a few
1690
+ errors that I (and everyone else) had missed, both wrongly stated module
1691
+ versions, and changed modules that had not been listed.
1692
+ .PP
1693
+ The crack Berlin-based \s-1QA\s0 team of Andreas Ko\*:nig and Slaven Rezic
1694
+ tirelessly re-built snapshots, tested most everything \s-1CPAN\s0 against
1695
+ them, and then identified the changes responsible for any module regressions,
1696
+ ensuring that several show-stopper bugs were stomped before the first release
1697
+ candidate was cut.
1698
+ .PP
1699
+ The other core committers contributed most of the changes, and applied most
1700
+ of the patches sent in by the hundreds of contributors listed in \fI\s-1AUTHORS\s0\fR.
1701
+ .PP
1702
+ And obviously, Larry Wall, without whom we wouldn't have Perl.
1703
+ .SH "Reporting Bugs"
1704
+ .IX Header "Reporting Bugs"
1705
+ If you find what you think is a bug, you might check the articles
1706
+ recently posted to the comp.lang.perl.misc newsgroup and the perl
1707
+ bug database at http://bugs.perl.org. There may also be
1708
+ information at http://www.perl.org, the Perl Home Page.
1709
+ .PP
1710
+ If you believe you have an unreported bug, please run the \fBperlbug\fR
1711
+ program included with your release. Be sure to trim your bug down
1712
+ to a tiny but sufficient test case. Your bug report, along with the
1713
+ output of \f(CW\*(C`perl \-V\*(C'\fR, will be sent off to perlbug@perl.org to be
1714
+ analysed by the Perl porting team. You can browse and search
1715
+ the Perl 5 bugs at http://bugs.perl.org/
1716
+ .PP
1717
+ If the bug you are reporting has security implications, which make it
1718
+ inappropriate to send to a publicly archived mailing list, then please send
1719
+ it to perl5\-security\-report@perl.org. This points to a closed subscription
1720
+ unarchived mailing list, which includes
1721
+ all the core committers, who will be able
1722
+ to help assess the impact of issues, figure out a resolution, and help
1723
+ co-ordinate the release of patches to mitigate or fix the problem across all
1724
+ platforms on which Perl is supported. Please only use this address for security
1725
+ issues in the Perl core, not for modules independently distributed on \s-1CPAN.\s0
1726
+ .SH "SEE ALSO"
1727
+ .IX Header "SEE ALSO"
1728
+ The \fIChanges\fR file for exhaustive details on what changed.
1729
+ .PP
1730
+ The \fI\s-1INSTALL\s0\fR file for how to build Perl.
1731
+ .PP
1732
+ The \fI\s-1README\s0\fR file for general stuff.
1733
+ .PP
1734
+ The \fIArtistic\fR and \fICopying\fR files for copyright information.
data/miniconda3/man/man1/perlaix.1 ADDED
@@ -0,0 +1,665 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "PERLAIX 1"
136
+ .TH PERLAIX 1 "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
+ perlaix \- Perl version 5 on IBM AIX (UNIX) systems
143
+ .SH "DESCRIPTION"
144
+ .IX Header "DESCRIPTION"
145
+ This document describes various features of \s-1IBM\s0's \s-1UNIX\s0 operating
146
+ system \s-1AIX\s0 that will affect how Perl version 5 (hereafter just Perl)
147
+ is compiled and/or runs.
148
+ .SS "Compiling Perl 5 on \s-1AIX\s0"
149
+ .IX Subsection "Compiling Perl 5 on AIX"
150
+ For information on compilers on older versions of \s-1AIX,\s0 see \*(L"Compiling
151
+ Perl 5 on older \s-1AIX\s0 versions up to 4.3.3\*(R".
152
+ .PP
153
+ When compiling Perl, you must use an \s-1ANSI C\s0 compiler. \s-1AIX\s0 does not ship
154
+ an \s-1ANSI\s0 compliant C compiler with \s-1AIX\s0 by default, but binary builds of
155
+ gcc for \s-1AIX\s0 are widely available. A version of gcc is also included in
156
+ the \s-1AIX\s0 Toolbox which is shipped with \s-1AIX.\s0
157
+ .SS "Supported Compilers"
158
+ .IX Subsection "Supported Compilers"
159
+ Currently all versions of \s-1IBM\s0's \*(L"xlc\*(R", \*(L"xlc_r\*(R", \*(L"cc\*(R", \*(L"cc_r\*(R" or
160
+ \&\*(L"vac\*(R" \s-1ANSI/C\s0 compiler will work for building Perl if that compiler
161
+ works on your system.
162
+ .PP
163
+ If you plan to link Perl to any module that requires thread-support,
164
+ like DBD::Oracle, it is better to use the _r version of the compiler.
165
+ This will not build a threaded Perl, but a thread-enabled Perl. See
166
+ also \*(L"Threaded Perl\*(R" later on.
167
+ .PP
168
+ As of writing (2010\-09) only the \fI\s-1IBM XL C\s0 for \s-1AIX\s0\fR or \fI\s-1IBM XL C/\*(C+\s0
169
+ for \s-1AIX\s0\fR compiler is supported by \s-1IBM\s0 on \s-1AIX 5L/6.1/7.1.\s0
170
+ .PP
171
+ The following compiler versions are currently supported by \s-1IBM:\s0
172
+ .PP
173
+ .Vb 1
174
+ \& IBM XL C and IBM XL C/C++ V8, V9, V10, V11
175
+ .Ve
176
+ .PP
177
+ The \s-1XL C\s0 for \s-1AIX\s0 is integrated in the \s-1XL C/\*(C+\s0 for \s-1AIX\s0 compiler and
178
+ therefore also supported.
179
+ .PP
180
+ If you choose \s-1XL C/\*(C+ V9\s0 you need \s-1APAR IZ35785\s0 installed
181
+ otherwise the integrated SDBM_File do not compile correctly due
182
+ to an optimization bug. You can circumvent this problem by
183
+ adding \-qipa to the optimization flags (\-Doptimize='\-O \-qipa').
184
+ The \s-1PTF\s0 for \s-1APAR IZ35785\s0 which solves this problem is available
185
+ from \s-1IBM\s0 (April 2009 \s-1PTF\s0 for \s-1XL C/\*(C+\s0 Enterprise Edition for \s-1AIX, V9.0\s0).
186
+ .PP
187
+ If you choose \s-1XL C/\*(C+ V11\s0 you need the April 2010 \s-1PTF\s0 (or newer)
188
+ installed otherwise you will not get a working Perl version.
189
+ .PP
190
+ Perl can be compiled with either \s-1IBM\s0's \s-1ANSI C\s0 compiler or with gcc.
191
+ The former is recommended, as not only it can compile Perl with no
192
+ difficulty, but also can take advantage of features listed later
193
+ that require the use of \s-1IBM\s0 compiler-specific command-line flags.
194
+ .PP
195
+ If you decide to use gcc, make sure your installation is recent and
196
+ complete, and be sure to read the Perl \s-1INSTALL\s0 file for more gcc-specific
197
+ details. Please report any hoops you had to jump through to the
198
+ development team.
199
+ .SS "Incompatibility with \s-1AIX\s0 Toolbox lib gdbm"
200
+ .IX Subsection "Incompatibility with AIX Toolbox lib gdbm"
201
+ If the \s-1AIX\s0 Toolbox version of lib gdbm < 1.8.3\-5 is installed on your
202
+ system then Perl will not work. This library contains the header files
203
+ /opt/freeware/include/gdbm/dbm.h|ndbm.h which conflict with the \s-1AIX\s0
204
+ system versions. The lib gdbm will be automatically removed from the
205
+ wanted libraries if the presence of one of these two header files is
206
+ detected. If you want to build Perl with \s-1GDBM\s0 support then please install
207
+ at least gdbm\-devel\-1.8.3\-5 (or higher).
208
+ .SS "Perl 5 was successfully compiled and tested on:"
209
+ .IX Subsection "Perl 5 was successfully compiled and tested on:"
210
+ .Vb 10
211
+ \& Perl | AIX Level | Compiler Level | w th | w/o th
212
+ \& \-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-+\-\-\-\-\-\-\-
213
+ \& 5.12.2 |5.1 TL9 32 bit | XL C/C++ V7 | OK | OK
214
+ \& 5.12.2 |5.1 TL9 64 bit | XL C/C++ V7 | OK | OK
215
+ \& 5.12.2 |5.2 TL10 SP8 32 bit | XL C/C++ V8 | OK | OK
216
+ \& 5.12.2 |5.2 TL10 SP8 32 bit | gcc 3.2.2 | OK | OK
217
+ \& 5.12.2 |5.2 TL10 SP8 64 bit | XL C/C++ V8 | OK | OK
218
+ \& 5.12.2 |5.3 TL8 SP8 32 bit | XL C/C++ V9 + IZ35785 | OK | OK
219
+ \& 5.12.2 |5.3 TL8 SP8 32 bit | gcc 4.2.4 | OK | OK
220
+ \& 5.12.2 |5.3 TL8 SP8 64 bit | XL C/C++ V9 + IZ35785 | OK | OK
221
+ \& 5.12.2 |5.3 TL10 SP3 32 bit | XL C/C++ V11 + Apr 2010 | OK | OK
222
+ \& 5.12.2 |5.3 TL10 SP3 64 bit | XL C/C++ V11 + Apr 2010 | OK | OK
223
+ \& 5.12.2 |6.1 TL1 SP7 32 bit | XL C/C++ V10 | OK | OK
224
+ \& 5.12.2 |6.1 TL1 SP7 64 bit | XL C/C++ V10 | OK | OK
225
+ \& 5.13 |7.1 TL0 SP1 32 bit | XL C/C++ V11 + Jul 2010 | OK | OK
226
+ \& 5.13 |7.1 TL0 SP1 64 bit | XL C/C++ V11 + Jul 2010 | OK | OK
227
+ \&
228
+ \& w th = with thread support
229
+ \& w/o th = without thread support
230
+ \& OK = tested
231
+ .Ve
232
+ .PP
233
+ Successfully tested means that all \*(L"make test\*(R" runs finish with a
234
+ result of 100% \s-1OK.\s0 All tests were conducted with \-Duseshrplib set.
235
+ .PP
236
+ All tests were conducted on the oldest supported \s-1AIX\s0 technology level
237
+ with the latest support package applied. If the tested \s-1AIX\s0 version is
238
+ out of support (\s-1AIX 4.3.3, 5.1, 5.2\s0) then the last available support
239
+ level was used.
240
+ .SS "Building Dynamic Extensions on \s-1AIX\s0"
241
+ .IX Subsection "Building Dynamic Extensions on AIX"
242
+ Starting from Perl 5.7.2 (and consequently 5.8.x / 5.10.x / 5.12.x)
243
+ and \s-1AIX 4.3\s0 or newer Perl uses the \s-1AIX\s0 native dynamic loading interface
244
+ in the so called runtime linking mode instead of the emulated interface
245
+ that was used in Perl releases 5.6.1 and earlier or, for \s-1AIX\s0 releases
246
+ 4.2 and earlier. This change does break backward compatibility with
247
+ compiled modules from earlier Perl releases. The change was made to make
248
+ Perl more compliant with other applications like Apache/mod_perl which are
249
+ using the \s-1AIX\s0 native interface. This change also enables the use of
250
+ \&\*(C+ code with static constructors and destructors in Perl extensions,
251
+ which was not possible using the emulated interface.
252
+ .PP
253
+ It is highly recommended to use the new interface.
254
+ .SS "Using Large Files with Perl"
255
+ .IX Subsection "Using Large Files with Perl"
256
+ Should yield no problems.
257
+ .SS "Threaded Perl"
258
+ .IX Subsection "Threaded Perl"
259
+ Should yield no problems with \s-1AIX 5.1 / 5.2 / 5.3 / 6.1 / 7.1.\s0
260
+ .PP
261
+ \&\s-1IBM\s0 uses the \s-1AIX\s0 system Perl (V5.6.0 on \s-1AIX 5.1\s0 and V5.8.2 on
262
+ \&\s-1AIX 5.2 / 5.3\s0 and 6.1; V5.8.8 on \s-1AIX 5.3 TL11\s0 and \s-1AIX 6.1 TL4\s0; V5.10.1
263
+ on \s-1AIX 7.1\s0) for some \s-1AIX\s0 system scripts. If you switch the links in
264
+ /usr/bin from the \s-1AIX\s0 system Perl (/usr/opt/perl5) to the newly build
265
+ Perl then you get the same features as with the \s-1IBM AIX\s0 system Perl if
266
+ the threaded options are used.
267
+ .PP
268
+ The threaded Perl build works also on \s-1AIX 5.1\s0 but the \s-1IBM\s0 Perl
269
+ build (Perl v5.6.0) is not threaded on \s-1AIX 5.1.\s0
270
+ .PP
271
+ Perl 5.12 an newer is not compatible with the \s-1IBM\s0 fileset perl.libext.
272
+ .SS "64\-bit Perl"
273
+ .IX Subsection "64-bit Perl"
274
+ If your \s-1AIX\s0 system is installed with 64\-bit support, you can expect 64\-bit
275
+ configurations to work. If you want to use 64\-bit Perl on \s-1AIX 6.1\s0
276
+ you need an \s-1APAR\s0 for a libc.a bug which affects (n)dbm_XXX functions.
277
+ The \s-1APAR\s0 number for this problem is \s-1IZ39077.\s0
278
+ .PP
279
+ If you need more memory (larger data segment) for your Perl programs you
280
+ can set:
281
+ .PP
282
+ .Vb 3
283
+ \& /etc/security/limits
284
+ \& default: (or your user)
285
+ \& data = \-1 (default is 262144 * 512 byte)
286
+ .Ve
287
+ .PP
288
+ With the default setting the size is limited to 128MB.
289
+ The \-1 removes this limit. If the \*(L"make test\*(R" fails please change
290
+ your /etc/security/limits as stated above.
291
+ .SS "Long doubles"
292
+ .IX Subsection "Long doubles"
293
+ \&\s-1IBM\s0 calls its implementation of long doubles 128\-bit, but it is not
294
+ the \s-1IEEE\s0 128\-bit (\*(L"quadruple precision\*(R") which would give 116 bit of
295
+ mantissa (nor it is implemented in hardware), instead it's a special
296
+ software implementation called \*(L"double-double\*(R", which gives 106 bits
297
+ of mantissa.
298
+ .PP
299
+ There seem to be various problems in this long double implementation.
300
+ If Configure detects this brokenness, it will disable the long double support.
301
+ This can be overridden with explicit \f(CW\*(C`\-Duselongdouble\*(C'\fR (or \f(CW\*(C`\-Dusemorebits\*(C'\fR,
302
+ which enables both long doubles and 64 bit integers). If you decide to
303
+ enable long doubles, for most of the broken things Perl has implemented
304
+ workarounds, but the handling of the special values infinity and NaN
305
+ remains badly broken: for example infinity plus zero results in NaN.
306
+ .SS "Recommended Options \s-1AIX 5.1/5.2/5.3/6.1\s0 and 7.1 (threaded/32\-bit)"
307
+ .IX Subsection "Recommended Options AIX 5.1/5.2/5.3/6.1 and 7.1 (threaded/32-bit)"
308
+ With the following options you get a threaded Perl version which
309
+ passes all make tests in threaded 32\-bit mode, which is the default
310
+ configuration for the Perl builds that \s-1AIX\s0 ships with.
311
+ .PP
312
+ .Vb 7
313
+ \& rm config.sh
314
+ \& ./Configure \e
315
+ \& \-d \e
316
+ \& \-Dcc=cc_r \e
317
+ \& \-Duseshrplib \e
318
+ \& \-Dusethreads \e
319
+ \& \-Dprefix=/usr/opt/perl5_32
320
+ .Ve
321
+ .PP
322
+ The \-Dprefix option will install Perl in a directory parallel to the
323
+ \&\s-1IBM AIX\s0 system Perl installation.
324
+ .SS "Recommended Options \s-1AIX 5.1/5.2/5.3/6.1\s0 and 7.1 (32\-bit)"
325
+ .IX Subsection "Recommended Options AIX 5.1/5.2/5.3/6.1 and 7.1 (32-bit)"
326
+ With the following options you get a Perl version which passes
327
+ all make tests in 32\-bit mode.
328
+ .PP
329
+ .Vb 6
330
+ \& rm config.sh
331
+ \& ./Configure \e
332
+ \& \-d \e
333
+ \& \-Dcc=cc_r \e
334
+ \& \-Duseshrplib \e
335
+ \& \-Dprefix=/usr/opt/perl5_32
336
+ .Ve
337
+ .PP
338
+ The \-Dprefix option will install Perl in a directory parallel to the
339
+ \&\s-1IBM AIX\s0 system Perl installation.
340
+ .SS "Recommended Options \s-1AIX 5.1/5.2/5.3/6.1\s0 and 7.1 (threaded/64\-bit)"
341
+ .IX Subsection "Recommended Options AIX 5.1/5.2/5.3/6.1 and 7.1 (threaded/64-bit)"
342
+ With the following options you get a threaded Perl version which
343
+ passes all make tests in 64\-bit mode.
344
+ .PP
345
+ .Vb 1
346
+ \& export OBJECT_MODE=64 / setenv OBJECT_MODE 64 (depending on your shell)
347
+ \&
348
+ \& rm config.sh
349
+ \& ./Configure \e
350
+ \& \-d \e
351
+ \& \-Dcc=cc_r \e
352
+ \& \-Duseshrplib \e
353
+ \& \-Dusethreads \e
354
+ \& \-Duse64bitall \e
355
+ \& \-Dprefix=/usr/opt/perl5_64
356
+ .Ve
357
+ .SS "Recommended Options \s-1AIX 5.1/5.2/5.3/6.1\s0 and 7.1 (64\-bit)"
358
+ .IX Subsection "Recommended Options AIX 5.1/5.2/5.3/6.1 and 7.1 (64-bit)"
359
+ With the following options you get a Perl version which passes all
360
+ make tests in 64\-bit mode.
361
+ .PP
362
+ .Vb 1
363
+ \& export OBJECT_MODE=64 / setenv OBJECT_MODE 64 (depending on your shell)
364
+ \&
365
+ \& rm config.sh
366
+ \& ./Configure \e
367
+ \& \-d \e
368
+ \& \-Dcc=cc_r \e
369
+ \& \-Duseshrplib \e
370
+ \& \-Duse64bitall \e
371
+ \& \-Dprefix=/usr/opt/perl5_64
372
+ .Ve
373
+ .PP
374
+ The \-Dprefix option will install Perl in a directory parallel to the
375
+ \&\s-1IBM AIX\s0 system Perl installation.
376
+ .PP
377
+ If you choose gcc to compile 64\-bit Perl then you need to add the
378
+ following option:
379
+ .PP
380
+ .Vb 1
381
+ \& \-Dcc=\*(Aqgcc \-maix64\*(Aq
382
+ .Ve
383
+ .SS "Compiling Perl 5 on \s-1AIX 7.1.0\s0"
384
+ .IX Subsection "Compiling Perl 5 on AIX 7.1.0"
385
+ A regression in \s-1AIX 7\s0 causes a failure in make test in Time::Piece during
386
+ daylight savings time. \s-1APAR IV16514\s0 provides the fix for this. A quick
387
+ test to see if it's required, assuming it is currently daylight savings
388
+ in Eastern Time, would be to run \f(CW\*(C` TZ=EST5 date +%Z \*(C'\fR. This will come
389
+ back with \f(CW\*(C`EST\*(C'\fR normally, but nothing if you have the problem.
390
+ .SS "Compiling Perl 5 on older \s-1AIX\s0 versions up to 4.3.3"
391
+ .IX Subsection "Compiling Perl 5 on older AIX versions up to 4.3.3"
392
+ Due to the fact that \s-1AIX 4.3.3\s0 reached end-of-service in December 31,
393
+ 2003 this information is provided as is. The Perl versions prior to
394
+ Perl 5.8.9 could be compiled on \s-1AIX\s0 up to 4.3.3 with the following
395
+ settings (your mileage may vary):
396
+ .PP
397
+ When compiling Perl, you must use an \s-1ANSI C\s0 compiler. \s-1AIX\s0 does not ship
398
+ an \s-1ANSI\s0 compliant C\-compiler with \s-1AIX\s0 by default, but binary builds of
399
+ gcc for \s-1AIX\s0 are widely available.
400
+ .PP
401
+ At the moment of writing, \s-1AIX\s0 supports two different native C compilers,
402
+ for which you have to pay: \fBxlC\fR and \fBvac\fR. If you decide to use either
403
+ of these two (which is quite a lot easier than using gcc), be sure to
404
+ upgrade to the latest available patch level. Currently:
405
+ .PP
406
+ .Vb 2
407
+ \& xlC.C 3.1.4.10 or 3.6.6.0 or 4.0.2.2 or 5.0.2.9 or 6.0.0.3
408
+ \& vac.C 4.4.0.3 or 5.0.2.6 or 6.0.0.1
409
+ .Ve
410
+ .PP
411
+ note that xlC has the \s-1OS\s0 version in the name as of version 4.0.2.0, so
412
+ you will find xlC.C for \s-1AIX\-5.0\s0 as package
413
+ .PP
414
+ .Vb 1
415
+ \& xlC.aix50.rte 5.0.2.0 or 6.0.0.3
416
+ .Ve
417
+ .PP
418
+ subversions are not the same \*(L"latest\*(R" on all \s-1OS\s0 versions. For example,
419
+ the latest xlC\-5 on aix41 is 5.0.2.9, while on aix43, it is 5.0.2.7.
420
+ .PP
421
+ Perl can be compiled with either \s-1IBM\s0's \s-1ANSI C\s0 compiler or with gcc.
422
+ The former is recommended, as not only can it compile Perl with no
423
+ difficulty, but also can take advantage of features listed later that
424
+ require the use of \s-1IBM\s0 compiler-specific command-line flags.
425
+ .PP
426
+ The \s-1IBM\s0's compiler patch levels 5.0.0.0 and 5.0.1.0 have compiler
427
+ optimization bugs that affect compiling perl.c and regcomp.c,
428
+ respectively. If Perl's configuration detects those compiler patch
429
+ levels, optimization is turned off for the said source code files.
430
+ Upgrading to at least 5.0.2.0 is recommended.
431
+ .PP
432
+ If you decide to use gcc, make sure your installation is recent and
433
+ complete, and be sure to read the Perl \s-1INSTALL\s0 file for more gcc-specific
434
+ details. Please report any hoops you had to jump through to the development
435
+ team.
436
+ .SS "\s-1OS\s0 level"
437
+ .IX Subsection "OS level"
438
+ Before installing the patches to the \s-1IBM\s0 C\-compiler you need to know the
439
+ level of patching for the Operating System. \s-1IBM\s0's command 'oslevel' will
440
+ show the base, but is not always complete (in this example oslevel shows
441
+ 4.3.NULL, whereas the system might run most of 4.3.THREE):
442
+ .PP
443
+ .Vb 6
444
+ \& # oslevel
445
+ \& 4.3.0.0
446
+ \& # lslpp \-l | grep \*(Aqbos.rte \*(Aq
447
+ \& bos.rte 4.3.3.75 COMMITTED Base Operating System Runtime
448
+ \& bos.rte 4.3.2.0 COMMITTED Base Operating System Runtime
449
+ \& #
450
+ .Ve
451
+ .PP
452
+ The same might happen to \s-1AIX 5.1\s0 or other \s-1OS\s0 levels. As a side note, Perl
453
+ cannot be built without bos.adt.syscalls and bos.adt.libm installed
454
+ .PP
455
+ .Vb 4
456
+ \& # lslpp \-l | egrep "syscalls|libm"
457
+ \& bos.adt.libm 5.1.0.25 COMMITTED Base Application Development
458
+ \& bos.adt.syscalls 5.1.0.36 COMMITTED System Calls Application
459
+ \& #
460
+ .Ve
461
+ .SS "Building Dynamic Extensions on \s-1AIX\s0 < 5L"
462
+ .IX Subsection "Building Dynamic Extensions on AIX < 5L"
463
+ \&\s-1AIX\s0 supports dynamically loadable objects as well as shared libraries.
464
+ Shared libraries by convention end with the suffix .a, which is a bit
465
+ misleading, as an archive can contain static as well as dynamic members.
466
+ For Perl dynamically loaded objects we use the .so suffix also used on
467
+ many other platforms.
468
+ .PP
469
+ Note that starting from Perl 5.7.2 (and consequently 5.8.0) and \s-1AIX 4.3\s0
470
+ or newer Perl uses the \s-1AIX\s0 native dynamic loading interface in the so
471
+ called runtime linking mode instead of the emulated interface that was
472
+ used in Perl releases 5.6.1 and earlier or, for \s-1AIX\s0 releases 4.2 and
473
+ earlier. This change does break backward compatibility with compiled
474
+ modules from earlier Perl releases. The change was made to make Perl
475
+ more compliant with other applications like Apache/mod_perl which are
476
+ using the \s-1AIX\s0 native interface. This change also enables the use of \*(C+
477
+ code with static constructors and destructors in Perl extensions, which
478
+ was not possible using the emulated interface.
479
+ .SS "The \s-1IBM ANSI C\s0 Compiler"
480
+ .IX Subsection "The IBM ANSI C Compiler"
481
+ All defaults for Configure can be used.
482
+ .PP
483
+ If you've chosen to use vac 4, be sure to run 4.4.0.3. Older versions
484
+ will turn up nasty later on. For vac 5 be sure to run at least 5.0.1.0,
485
+ but vac 5.0.2.6 or up is highly recommended. Note that since \s-1IBM\s0 has
486
+ removed vac 5.0.2.1 through 5.0.2.5 from the software depot, these
487
+ versions should be considered obsolete.
488
+ .PP
489
+ Here's a brief lead of how to upgrade the compiler to the latest
490
+ level. Of course this is subject to changes. You can only upgrade
491
+ versions from ftp-available updates if the first three digit groups
492
+ are the same (in where you can skip intermediate unlike the patches
493
+ in the developer snapshots of Perl), or to one version up where the
494
+ \&\*(L"base\*(R" is available. In other words, the \s-1AIX\s0 compiler patches are
495
+ cumulative.
496
+ .PP
497
+ .Vb 3
498
+ \& vac.C.4.4.0.1 => vac.C.4.4.0.3 is OK (vac.C.4.4.0.2 not needed)
499
+ \& xlC.C.3.1.3.3 => xlC.C.3.1.4.10 is NOT OK (xlC.C.3.1.4.0 is not
500
+ \& available)
501
+ \&
502
+ \& # ftp ftp.software.ibm.com
503
+ \& Connected to service.boulder.ibm.com.
504
+ \& : welcome message ...
505
+ \& Name (ftp.software.ibm.com:merijn): anonymous
506
+ \& 331 Guest login ok, send your complete e\-mail address as password.
507
+ \& Password:
508
+ \& ... accepted login stuff
509
+ \& ftp> cd /aix/fixes/v4/
510
+ \& ftp> dir other other.ll
511
+ \& output to local\-file: other.ll? y
512
+ \& 200 PORT command successful.
513
+ \& 150 Opening ASCII mode data connection for /bin/ls.
514
+ \& 226 Transfer complete.
515
+ \& ftp> dir xlc xlc.ll
516
+ \& output to local\-file: xlc.ll? y
517
+ \& 200 PORT command successful.
518
+ \& 150 Opening ASCII mode data connection for /bin/ls.
519
+ \& 226 Transfer complete.
520
+ \& ftp> bye
521
+ \& ... goodbye messages
522
+ \& # ls \-l *.ll
523
+ \& \-rw\-rw\-rw\- 1 merijn system 1169432 Nov 2 17:29 other.ll
524
+ \& \-rw\-rw\-rw\- 1 merijn system 29170 Nov 2 17:29 xlc.ll
525
+ .Ve
526
+ .PP
527
+ On \s-1AIX 4.2\s0 using xlC, we continue:
528
+ .PP
529
+ .Vb 10
530
+ \& # lslpp \-l | fgrep \*(AqxlC.C \*(Aq
531
+ \& xlC.C 3.1.4.9 COMMITTED C for AIX Compiler
532
+ \& xlC.C 3.1.4.0 COMMITTED C for AIX Compiler
533
+ \& # grep \*(AqxlC.C.3.1.4.*.bff\*(Aq xlc.ll
534
+ \& \-rw\-r\-\-r\-\- 1 45776101 1 6286336 Jul 22 1996 xlC.C.3.1.4.1.bff
535
+ \& \-rw\-rw\-r\-\- 1 45776101 1 6173696 Aug 24 1998 xlC.C.3.1.4.10.bff
536
+ \& \-rw\-r\-\-r\-\- 1 45776101 1 6319104 Aug 14 1996 xlC.C.3.1.4.2.bff
537
+ \& \-rw\-r\-\-r\-\- 1 45776101 1 6316032 Oct 21 1996 xlC.C.3.1.4.3.bff
538
+ \& \-rw\-r\-\-r\-\- 1 45776101 1 6315008 Dec 20 1996 xlC.C.3.1.4.4.bff
539
+ \& \-rw\-rw\-r\-\- 1 45776101 1 6178816 Mar 28 1997 xlC.C.3.1.4.5.bff
540
+ \& \-rw\-rw\-r\-\- 1 45776101 1 6188032 May 22 1997 xlC.C.3.1.4.6.bff
541
+ \& \-rw\-rw\-r\-\- 1 45776101 1 6191104 Sep 5 1997 xlC.C.3.1.4.7.bff
542
+ \& \-rw\-rw\-r\-\- 1 45776101 1 6185984 Jan 13 1998 xlC.C.3.1.4.8.bff
543
+ \& \-rw\-rw\-r\-\- 1 45776101 1 6169600 May 27 1998 xlC.C.3.1.4.9.bff
544
+ \& # wget ftp://ftp.software.ibm.com/aix/fixes/v4/xlc/xlC.C.3.1.4.10.bff
545
+ \& #
546
+ .Ve
547
+ .PP
548
+ On \s-1AIX 4.3\s0 using vac, we continue:
549
+ .PP
550
+ .Vb 10
551
+ \& # lslpp \-l | grep \*(Aqvac.C \*(Aq
552
+ \& vac.C 5.0.2.2 COMMITTED C for AIX Compiler
553
+ \& vac.C 5.0.2.0 COMMITTED C for AIX Compiler
554
+ \& # grep \*(Aqvac.C.5.0.2.*.bff\*(Aq other.ll
555
+ \& \-rw\-rw\-r\-\- 1 45776101 1 13592576 Apr 16 2001 vac.C.5.0.2.0.bff
556
+ \& \-rw\-rw\-r\-\- 1 45776101 1 14133248 Apr 9 2002 vac.C.5.0.2.3.bff
557
+ \& \-rw\-rw\-r\-\- 1 45776101 1 14173184 May 20 2002 vac.C.5.0.2.4.bff
558
+ \& \-rw\-rw\-r\-\- 1 45776101 1 14192640 Nov 22 2002 vac.C.5.0.2.6.bff
559
+ \& # wget ftp://ftp.software.ibm.com/aix/fixes/v4/other/vac.C.5.0.2.6.bff
560
+ \& #
561
+ .Ve
562
+ .PP
563
+ Likewise on all other \s-1OS\s0 levels. Then execute the following command, and
564
+ fill in its choices
565
+ .PP
566
+ .Vb 5
567
+ \& # smit install_update
568
+ \& \-> Install and Update from LATEST Available Software
569
+ \& * INPUT device / directory for software [ vac.C.5.0.2.6.bff ]
570
+ \& [ OK ]
571
+ \& [ OK ]
572
+ .Ve
573
+ .PP
574
+ Follow the messages ... and you're done.
575
+ .PP
576
+ If you like a more web-like approach, a good start point can be
577
+ <http://www14.software.ibm.com/webapp/download/downloadaz.jsp> and click
578
+ \&\*(L"C for \s-1AIX\*(R",\s0 and follow the instructions.
579
+ .SS "The usenm option"
580
+ .IX Subsection "The usenm option"
581
+ If linking miniperl
582
+ .PP
583
+ .Vb 1
584
+ \& cc \-o miniperl ... miniperlmain.o opmini.o perl.o ... \-lm \-lc ...
585
+ .Ve
586
+ .PP
587
+ causes error like this
588
+ .PP
589
+ .Vb 9
590
+ \& ld: 0711\-317 ERROR: Undefined symbol: .aintl
591
+ \& ld: 0711\-317 ERROR: Undefined symbol: .copysignl
592
+ \& ld: 0711\-317 ERROR: Undefined symbol: .syscall
593
+ \& ld: 0711\-317 ERROR: Undefined symbol: .eaccess
594
+ \& ld: 0711\-317 ERROR: Undefined symbol: .setresuid
595
+ \& ld: 0711\-317 ERROR: Undefined symbol: .setresgid
596
+ \& ld: 0711\-317 ERROR: Undefined symbol: .setproctitle
597
+ \& ld: 0711\-345 Use the \-bloadmap or \-bnoquiet option to obtain more
598
+ \& information.
599
+ .Ve
600
+ .PP
601
+ you could retry with
602
+ .PP
603
+ .Vb 3
604
+ \& make realclean
605
+ \& rm config.sh
606
+ \& ./Configure \-Dusenm ...
607
+ .Ve
608
+ .PP
609
+ which makes Configure to use the \f(CW\*(C`nm\*(C'\fR tool when scanning for library
610
+ symbols, which usually is not done in \s-1AIX.\s0
611
+ .PP
612
+ Related to this, you probably should not use the \f(CW\*(C`\-r\*(C'\fR option of
613
+ Configure in \s-1AIX,\s0 because that affects of how the \f(CW\*(C`nm\*(C'\fR tool is used.
614
+ .SS "Using \s-1GNU\s0's gcc for building Perl"
615
+ .IX Subsection "Using GNU's gcc for building Perl"
616
+ Using gcc\-3.x (tested with 3.0.4, 3.1, and 3.2) now works out of the box,
617
+ as do recent gcc\-2.9 builds available directly from \s-1IBM\s0 as part of their
618
+ Linux compatibility packages, available here:
619
+ .PP
620
+ .Vb 1
621
+ \& http://www.ibm.com/servers/aix/products/aixos/linux/
622
+ .Ve
623
+ .SS "Using Large Files with Perl < 5L"
624
+ .IX Subsection "Using Large Files with Perl < 5L"
625
+ Should yield no problems.
626
+ .SS "Threaded Perl < 5L"
627
+ .IX Subsection "Threaded Perl < 5L"
628
+ Threads seem to work \s-1OK,\s0 though at the moment not all tests pass when
629
+ threads are used in combination with 64\-bit configurations.
630
+ .PP
631
+ You may get a warning when doing a threaded build:
632
+ .PP
633
+ .Vb 2
634
+ \& "pp_sys.c", line 4640.39: 1506\-280 (W) Function argument assignment
635
+ \& between types "unsigned char*" and "const void*" is not allowed.
636
+ .Ve
637
+ .PP
638
+ The exact line number may vary, but if the warning (W) comes from a line
639
+ line this
640
+ .PP
641
+ .Vb 1
642
+ \& hent = PerlSock_gethostbyaddr(addr, (Netdb_hlen_t) addrlen, addrtype);
643
+ .Ve
644
+ .PP
645
+ in the \*(L"pp_ghostent\*(R" function, you may ignore it safely. The warning
646
+ is caused by the reentrant variant of \fBgethostbyaddr()\fR having a slightly
647
+ different prototype than its non-reentrant variant, but the difference
648
+ is not really significant here.
649
+ .SS "64\-bit Perl < 5L"
650
+ .IX Subsection "64-bit Perl < 5L"
651
+ If your \s-1AIX\s0 is installed with 64\-bit support, you can expect 64\-bit
652
+ configurations to work. In combination with threads some tests might
653
+ still fail.
654
+ .SS "\s-1AIX 4.2\s0 and extensions using \*(C+ with statics"
655
+ .IX Subsection "AIX 4.2 and extensions using with statics"
656
+ In \s-1AIX 4.2\s0 Perl extensions that use \*(C+ functions that use statics
657
+ may have problems in that the statics are not getting initialized.
658
+ In newer \s-1AIX\s0 releases this has been solved by linking Perl with
659
+ the libC_r library, but unfortunately in \s-1AIX 4.2\s0 the said library
660
+ has an obscure bug where the various functions related to time
661
+ (such as \fBtime()\fR and \fBgettimeofday()\fR) return broken values, and
662
+ therefore in \s-1AIX 4.2\s0 Perl is not linked against the libC_r.
663
+ .SH "AUTHORS"
664
+ .IX Header "AUTHORS"
665
+ Rainer Tammer <tammer@tammer.net>
data/miniconda3/man/man1/perlandroid.1 ADDED
@@ -0,0 +1,352 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "PERLANDROID 1"
136
+ .TH PERLANDROID 1 "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
+ perlandroid \- Perl under Android
143
+ .SH "SYNOPSIS"
144
+ .IX Header "SYNOPSIS"
145
+ The first portions of this document contains instructions
146
+ to cross-compile Perl for Android 2.0 and later, using the
147
+ binaries provided by Google. The latter portions describe how to build
148
+ perl native using one of the toolchains available on the Play Store.
149
+ .SH "DESCRIPTION"
150
+ .IX Header "DESCRIPTION"
151
+ This document describes how to set up your host environment when
152
+ attempting to build Perl for Android.
153
+ .SH "Cross-compilation"
154
+ .IX Header "Cross-compilation"
155
+ These instructions assume an Unixish build environment on your host system;
156
+ they've been tested on Linux and \s-1OS X,\s0 and may work on Cygwin and \s-1MSYS.\s0
157
+ While Google also provides an \s-1NDK\s0 for Windows, these steps won't work
158
+ native there, although it may be possible to cross-compile through different
159
+ means.
160
+ .PP
161
+ If your host system's architecture is 32 bits, remember to change the
162
+ \&\f(CW\*(C`x86_64\*(C'\fR's below to \f(CW\*(C`x86\*(C'\fR's. On a similar vein, the examples below
163
+ use the 4.8 toolchain; if you want to use something older or newer (for
164
+ example, the 4.4.3 toolchain included in the 8th revision of the \s-1NDK\s0), just
165
+ change those to the relevant version.
166
+ .SS "Get the Android Native Development Kit (\s-1NDK\s0)"
167
+ .IX Subsection "Get the Android Native Development Kit (NDK)"
168
+ You can download the \s-1NDK\s0 from <https://developer.android.com/tools/sdk/ndk/index.html>.
169
+ You'll want the normal, non-legacy version.
170
+ .SS "Determine the architecture you'll be cross-compiling for"
171
+ .IX Subsection "Determine the architecture you'll be cross-compiling for"
172
+ There's three possible options: arm-linux-androideabi for \s-1ARM,\s0
173
+ mipsel-linux-android for \s-1MIPS,\s0 and simply x86 for x86.
174
+ As of 2014, most Android devices run on \s-1ARM,\s0 so that is generally a safe bet.
175
+ .PP
176
+ With those two in hand, you should add
177
+ .PP
178
+ .Vb 1
179
+ \& $ANDROID_NDK/toolchains/$TARGETARCH\-4.8/prebuilt/\`uname | tr \*(Aq[A\-Z]\*(Aq \*(Aq[a\-z]\*(Aq\`\-x86_64/bin
180
+ .Ve
181
+ .PP
182
+ to your \f(CW\*(C`PATH\*(C'\fR, where \f(CW$ANDROID_NDK\fR is the location where you unpacked the
183
+ \&\s-1NDK,\s0 and \f(CW$TARGETARCH\fR is your target's architecture.
184
+ .SS "Set up a standalone toolchain"
185
+ .IX Subsection "Set up a standalone toolchain"
186
+ This creates a working sysroot that we can feed to Configure later.
187
+ .PP
188
+ .Vb 7
189
+ \& $ export ANDROID_TOOLCHAIN=/tmp/my\-toolchain\-$TARGETARCH
190
+ \& $ export SYSROOT=$ANDROID_TOOLCHAIN/sysroot
191
+ \& $ $ANDROID_NDK/build/tools/make\-standalone\-toolchain.sh \e
192
+ \& \-\-platform=android\-9 \e
193
+ \& \-\-install\-dir=$ANDROID_TOOLCHAIN \e
194
+ \& \-\-system=\`uname | tr \*(Aq[A\-Z]\*(Aq \*(Aq[a\-z]\*(Aq\`\-x86_64 \e
195
+ \& \-\-toolchain=$TARGETARCH\-4.8
196
+ .Ve
197
+ .SS "adb or ssh?"
198
+ .IX Subsection "adb or ssh?"
199
+ adb is the Android Debug Bridge. For our purposes, it's basically a way
200
+ of establishing an ssh connection to an Android device without having to
201
+ install anything on the device itself, as long as the device is either on
202
+ the same local network as the host, or it is connected to the host through
203
+ \&\s-1USB.\s0
204
+ .PP
205
+ Perl can be cross-compiled using either adb or a normal ssh connection;
206
+ in general, if you can connect your device to the host using a \s-1USB\s0 port,
207
+ or if you don't feel like installing an sshd app on your device,
208
+ you may want to use adb, although you may be forced to switch to ssh if
209
+ your device is not rooted and you're unlucky \*(-- more on that later.
210
+ Alternatively, if you're cross-compiling to an emulator, you'll have to
211
+ use adb.
212
+ .PP
213
+ \fIadb\fR
214
+ .IX Subsection "adb"
215
+ .PP
216
+ To use adb, download the Android \s-1SDK\s0 from <https://developer.android.com/sdk/index.html>.
217
+ The \*(L"\s-1SDK\s0 Tools Only\*(R" version should suffice \*(-- if you downloaded the \s-1ADT\s0
218
+ Bundle, you can find the sdk under \fI\f(CI$ADT_BUNDLE\fI/sdk/\fR.
219
+ .PP
220
+ Add \fI\f(CI$ANDROID_SDK\fI/platform\-tools\fR to your \f(CW\*(C`PATH\*(C'\fR, which should give you access
221
+ to adb. You'll now have to find your device's name using \f(CW\*(C`adb devices\*(C'\fR,
222
+ and later pass that to Configure through \f(CW\*(C`\-Dtargethost=$DEVICE\*(C'\fR.
223
+ .PP
224
+ However, before calling Configure, you need to check if using adb is a
225
+ viable choice in the first place. Because Android doesn't have a \fI/tmp\fR,
226
+ nor does it allow executables in the sdcard, we need to find somewhere in
227
+ the device for Configure to put some files in, as well as for the tests
228
+ to run in. If your device is rooted, then you're good. Try running these:
229
+ .PP
230
+ .Vb 2
231
+ \& $ export TARGETDIR=/mnt/asec/perl
232
+ \& $ adb \-s $DEVICE shell "echo sh \-c \*(Aq\e"mkdir $TARGETDIR\e"\*(Aq | su \-\-"
233
+ .Ve
234
+ .PP
235
+ Which will create the directory we need, and you can move on to the next
236
+ step. \fI/mnt/asec\fR is mounted as a tmpfs in Android, but it's only
237
+ accessible to root.
238
+ .PP
239
+ If your device is not rooted, you may still be in luck. Try running this:
240
+ .PP
241
+ .Vb 2
242
+ \& $ export TARGETDIR=/data/local/tmp/perl
243
+ \& $ adb \-s $DEVICE shell "mkdir $TARGETDIR"
244
+ .Ve
245
+ .PP
246
+ If the command works, you can move to the next step, but beware:
247
+ \&\fBYou'll have to remove the directory from the device once you are done!
248
+ Unlike \f(BI/mnt/asec\fB, \f(BI/data/local/tmp\fB may not get automatically garbage
249
+ collected once you shut off the phone\fR.
250
+ .PP
251
+ If neither of those work, then you can't use adb to cross-compile to your
252
+ device. Either try rooting it, or go for the ssh route.
253
+ .PP
254
+ \fIssh\fR
255
+ .IX Subsection "ssh"
256
+ .PP
257
+ To use ssh, you'll need to install and run a sshd app and set it up
258
+ properly. There are several paid and free apps that do this rather
259
+ easily, so you should be able to spot one on the store.
260
+ Remember that Perl requires a passwordless connection, so set up a
261
+ public key.
262
+ .PP
263
+ Note that several apps spew crap to stderr every time you
264
+ connect, which can throw off Configure. You may need to monkeypatch
265
+ the part of Configure that creates \f(CW\*(C`run\-ssh\*(C'\fR to have it discard stderr.
266
+ .PP
267
+ Since you're using ssh, you'll have to pass some extra arguments to
268
+ Configure:
269
+ .PP
270
+ .Vb 1
271
+ \& \-Dtargetrun=ssh \-Dtargethost=$TARGETHOST \-Dtargetuser=$TARGETUSER \-Dtargetport=$TARGETPORT
272
+ .Ve
273
+ .SS "Configure and beyond"
274
+ .IX Subsection "Configure and beyond"
275
+ With all of the previous done, you're now ready to call Configure.
276
+ .PP
277
+ If using adb, a \*(L"basic\*(R" Configure line will look like this:
278
+ .PP
279
+ .Vb 5
280
+ \& $ ./Configure \-des \-Dusedevel \-Dusecrosscompile \-Dtargetrun=adb \e
281
+ \& \-Dcc=$TARGETARCH\-gcc \e
282
+ \& \-Dsysroot=$SYSROOT \e
283
+ \& \-Dtargetdir=$TARGETDIR \e
284
+ \& \-Dtargethost=$DEVICE
285
+ .Ve
286
+ .PP
287
+ If using ssh, it's not too different \*(-- we just change targetrun to ssh,
288
+ and pass in targetuser and targetport. It ends up looking like this:
289
+ .PP
290
+ .Vb 7
291
+ \& $ ./Configure \-des \-Dusedevel \-Dusecrosscompile \-Dtargetrun=ssh \e
292
+ \& \-Dcc=$TARGETARCH\-gcc \e
293
+ \& \-Dsysroot=$SYSROOT \e
294
+ \& \-Dtargetdir=$TARGETDIR \e
295
+ \& \-Dtargethost="$TARGETHOST" \e
296
+ \& \-Dtargetuser=$TARGETUSER \e
297
+ \& \-Dtargetport=$TARGETPORT
298
+ .Ve
299
+ .PP
300
+ Now you're ready to run \f(CW\*(C`make\*(C'\fR and \f(CW\*(C`make test\*(C'\fR!
301
+ .PP
302
+ As a final word of warning, if you're using adb, \f(CW\*(C`make test\*(C'\fR may appear to
303
+ hang; this is because it doesn't output anything until it finishes
304
+ running all tests. You can check its progress by logging into the
305
+ device, moving to \fI\f(CI$TARGETDIR\fI\fR, and looking at the file \fIoutput.stdout\fR.
306
+ .PP
307
+ \fINotes\fR
308
+ .IX Subsection "Notes"
309
+ .IP "\(bu" 4
310
+ If you are targetting x86 Android, you will have to change \f(CW\*(C`$TARGETARCH\-gcc\*(C'\fR
311
+ to \f(CW\*(C`i686\-linux\-android\-gcc\*(C'\fR.
312
+ .IP "\(bu" 4
313
+ On some older low-end devices \*(-- think early 2.2 era \*(-- some tests,
314
+ particularly \fIt/re/uniprops.t\fR, may crash the phone, causing it to turn
315
+ itself off once, and then back on again.
316
+ .SH "Native Builds"
317
+ .IX Header "Native Builds"
318
+ While Google doesn't provide a native toolchain for Android,
319
+ you can still get one from the Play Store.
320
+ .SS "CCTools"
321
+ .IX Subsection "CCTools"
322
+ You may be able to get the CCTools app, which is free.
323
+ Keep in mind that you want a full toolchain;
324
+ some apps tend to default to installing only a barebones
325
+ version without some important utilities, like ar or nm.
326
+ .PP
327
+ Once you have the toolchain set up properly, the only
328
+ remaining hurdle is actually locating where in the device it was installed
329
+ in. For example, CCTools installs its toolchain in
330
+ \&\fI/data/data/com.pdaxrom.cctools/root/cctools\fR. With the path in hand,
331
+ compiling perl is little more than:
332
+ .PP
333
+ .Vb 3
334
+ \& export SYSROOT=<location of the native toolchain>
335
+ \& export LD_LIBRARY_PATH="$SYSROOT/lib:\`pwd\`:\`pwd\`/lib:\`pwd\`/lib/auto:$LD_LIBRARY_PATH"
336
+ \& sh Configure \-des \-Dsysroot=$SYSROOT \-Alibpth="/system/lib /vendor/lib"
337
+ .Ve
338
+ .SS "Termux"
339
+ .IX Subsection "Termux"
340
+ Termux <https://termux.com/> provides an Android terminal emulator and Linux environment.
341
+ It comes with a cross-compiled perl already installed.
342
+ .PP
343
+ Natively compiling perl 5.30 or later should be as straightforward as:
344
+ .PP
345
+ .Vb 1
346
+ \& sh Configure \-des \-Alibpth="/system/lib /vendor/lib"
347
+ .Ve
348
+ .PP
349
+ This certainly works on Android 8.1 (Oreo) at least...
350
+ .SH "AUTHOR"
351
+ .IX Header "AUTHOR"
352
+ Brian Fraser <fraserbn@gmail.com>
data/miniconda3/man/man1/perlapi.1 ADDED
The diff for this file is too large to render. See raw diff
 
data/miniconda3/man/man1/perlartistic.1 ADDED
@@ -0,0 +1,323 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "PERLARTISTIC 1"
136
+ .TH PERLARTISTIC 1 "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
+ perlartistic \- the Perl Artistic License
143
+ .SH "SYNOPSIS"
144
+ .IX Header "SYNOPSIS"
145
+ .Vb 2
146
+ \& You can refer to this document in Pod via "L<perlartistic>"
147
+ \& Or you can see this document by entering "perldoc perlartistic"
148
+ .Ve
149
+ .SH "DESCRIPTION"
150
+ .IX Header "DESCRIPTION"
151
+ Perl is free software; you can redistribute it and/or modify
152
+ it under the terms of either:
153
+ .PP
154
+ .Vb 3
155
+ \& a) the GNU General Public License as published by the Free
156
+ \& Software Foundation; either version 1, or (at your option) any
157
+ \& later version, or
158
+ \&
159
+ \& b) the "Artistic License" which comes with this Kit.
160
+ .Ve
161
+ .PP
162
+ This is \fB\*(L"The Artistic License\*(R"\fR.
163
+ It's here so that modules, programs, etc., that want to declare
164
+ this as their distribution license can link to it.
165
+ .PP
166
+ For the \s-1GNU\s0 General Public License, see perlgpl.
167
+ .ie n .SH "The ""Artistic License"""
168
+ .el .SH "The ``Artistic License''"
169
+ .IX Header "The Artistic License"
170
+ .SS "Preamble"
171
+ .IX Subsection "Preamble"
172
+ The intent of this document is to state the conditions under which a
173
+ Package may be copied, such that the Copyright Holder maintains some
174
+ semblance of artistic control over the development of the package,
175
+ while giving the users of the package the right to use and distribute
176
+ the Package in a more-or-less customary fashion, plus the right to make
177
+ reasonable modifications.
178
+ .SS "Definitions"
179
+ .IX Subsection "Definitions"
180
+ .ie n .IP """Package""" 4
181
+ .el .IP "``Package''" 4
182
+ .IX Item "Package"
183
+ refers to the collection of files distributed by the
184
+ Copyright Holder, and derivatives of that collection of files created
185
+ through textual modification.
186
+ .ie n .IP """Standard Version""" 4
187
+ .el .IP "``Standard Version''" 4
188
+ .IX Item "Standard Version"
189
+ refers to such a Package if it has not been
190
+ modified, or has been modified in accordance with the wishes of the
191
+ Copyright Holder as specified below.
192
+ .ie n .IP """Copyright Holder""" 4
193
+ .el .IP "``Copyright Holder''" 4
194
+ .IX Item "Copyright Holder"
195
+ is whoever is named in the copyright or
196
+ copyrights for the package.
197
+ .ie n .IP """You""" 4
198
+ .el .IP "``You''" 4
199
+ .IX Item "You"
200
+ is you, if you're thinking about copying or distributing this Package.
201
+ .ie n .IP """Reasonable copying fee""" 4
202
+ .el .IP "``Reasonable copying fee''" 4
203
+ .IX Item "Reasonable copying fee"
204
+ is whatever you can justify on the basis
205
+ of media cost, duplication charges, time of people involved, and so on.
206
+ (You will not be required to justify it to the Copyright Holder, but
207
+ only to the computing community at large as a market that must bear the
208
+ fee.)
209
+ .ie n .IP """Freely Available""" 4
210
+ .el .IP "``Freely Available''" 4
211
+ .IX Item "Freely Available"
212
+ means that no fee is charged for the item
213
+ itself, though there may be fees involved in handling the item. It also
214
+ means that recipients of the item may redistribute it under the same
215
+ conditions they received it.
216
+ .SS "Conditions"
217
+ .IX Subsection "Conditions"
218
+ .IP "1." 4
219
+ You may make and give away verbatim copies of the source form of the
220
+ Standard Version of this Package without restriction, provided that you
221
+ duplicate all of the original copyright notices and associated disclaimers.
222
+ .IP "2." 4
223
+ You may apply bug fixes, portability fixes and other modifications
224
+ derived from the Public Domain or from the Copyright Holder. A Package
225
+ modified in such a way shall still be considered the Standard Version.
226
+ .IP "3." 4
227
+ You may otherwise modify your copy of this Package in any way, provided
228
+ that you insert a prominent notice in each changed file stating how and
229
+ when you changed that file, and provided that you do at least \s-1ONE\s0 of the
230
+ following:
231
+ .RS 4
232
+ .IP "a)" 4
233
+ .IX Item "a)"
234
+ place your modifications in the Public Domain or otherwise make them
235
+ Freely Available, such as by posting said modifications to Usenet or an
236
+ equivalent medium, or placing the modifications on a major archive site
237
+ such as uunet.uu.net, or by allowing the Copyright Holder to include
238
+ your modifications in the Standard Version of the Package.
239
+ .IP "b)" 4
240
+ .IX Item "b)"
241
+ use the modified Package only within your corporation or organization.
242
+ .IP "c)" 4
243
+ .IX Item "c)"
244
+ rename any non-standard executables so the names do not conflict with
245
+ standard executables, which must also be provided, and provide a
246
+ separate manual page for each non-standard executable that clearly
247
+ documents how it differs from the Standard Version.
248
+ .IP "d)" 4
249
+ .IX Item "d)"
250
+ make other distribution arrangements with the Copyright Holder.
251
+ .RE
252
+ .RS 4
253
+ .RE
254
+ .IP "4." 4
255
+ You may distribute the programs of this Package in object code or
256
+ executable form, provided that you do at least \s-1ONE\s0 of the following:
257
+ .RS 4
258
+ .IP "a)" 4
259
+ .IX Item "a)"
260
+ distribute a Standard Version of the executables and library files,
261
+ together with instructions (in the manual page or equivalent) on where
262
+ to get the Standard Version.
263
+ .IP "b)" 4
264
+ .IX Item "b)"
265
+ accompany the distribution with the machine-readable source of the
266
+ Package with your modifications.
267
+ .IP "c)" 4
268
+ .IX Item "c)"
269
+ give non-standard executables non-standard names, and clearly
270
+ document the differences in manual pages (or equivalent), together with
271
+ instructions on where to get the Standard Version.
272
+ .IP "d)" 4
273
+ .IX Item "d)"
274
+ make other distribution arrangements with the Copyright Holder.
275
+ .RE
276
+ .RS 4
277
+ .RE
278
+ .IP "5." 4
279
+ You may charge a reasonable copying fee for any distribution of this
280
+ Package. You may charge any fee you choose for support of this
281
+ Package. You may not charge a fee for this Package itself. However,
282
+ you may distribute this Package in aggregate with other (possibly
283
+ commercial) programs as part of a larger (possibly commercial) software
284
+ distribution provided that you do not advertise this Package as a
285
+ product of your own. You may embed this Package's interpreter within
286
+ an executable of yours (by linking); this shall be construed as a mere
287
+ form of aggregation, provided that the complete Standard Version of the
288
+ interpreter is so embedded.
289
+ .IP "6." 4
290
+ The scripts and library files supplied as input to or produced as
291
+ output from the programs of this Package do not automatically fall
292
+ under the copyright of this Package, but belong to whoever generated
293
+ them, and may be sold commercially, and may be aggregated with this
294
+ Package. If such scripts or library files are aggregated with this
295
+ Package via the so-called \*(L"undump\*(R" or \*(L"unexec\*(R" methods of producing a
296
+ binary executable image, then distribution of such an image shall
297
+ neither be construed as a distribution of this Package nor shall it
298
+ fall under the restrictions of Paragraphs 3 and 4, provided that you do
299
+ not represent such an executable image as a Standard Version of this
300
+ Package.
301
+ .IP "7." 4
302
+ C subroutines (or comparably compiled subroutines in other
303
+ languages) supplied by you and linked into this Package in order to
304
+ emulate subroutines and variables of the language defined by this
305
+ Package shall not be considered part of this Package, but are the
306
+ equivalent of input as in Paragraph 6, provided these subroutines do
307
+ not change the language in any way that would cause it to fail the
308
+ regression tests for the language.
309
+ .IP "8." 4
310
+ Aggregation of this Package with a commercial distribution is always
311
+ permitted provided that the use of this Package is embedded; that is,
312
+ when no overt attempt is made to make this Package's interfaces visible
313
+ to the end user of the commercial distribution. Such use shall not be
314
+ construed as a distribution of this Package.
315
+ .IP "9." 4
316
+ The name of the Copyright Holder may not be used to endorse or promote
317
+ products derived from this software without specific prior written permission.
318
+ .IP "10." 4
319
+ \&\s-1THIS PACKAGE IS PROVIDED \*(L"AS IS\*(R" AND WITHOUT ANY EXPRESS OR
320
+ IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
321
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.\s0
322
+ .PP
323
+ The End
data/miniconda3/man/man1/perlbook.1 ADDED
@@ -0,0 +1,451 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "PERLBOOK 1"
136
+ .TH PERLBOOK 1 "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
+ perlbook \- Books about and related to Perl
143
+ .SH "DESCRIPTION"
144
+ .IX Header "DESCRIPTION"
145
+ There are many books on Perl and Perl-related. A few of these are
146
+ good, some are \s-1OK,\s0 but many aren't worth your money. There is a list
147
+ of these books, some with extensive reviews, at
148
+ <https://www.perl.org/books/library.html> . We list some of the books here, and while
149
+ listing a book implies our
150
+ endorsement, don't think that not including a book means anything.
151
+ .PP
152
+ Most of these books are available online through Safari Books Online
153
+ ( <http://safaribooksonline.com/> ).
154
+ .SS "The most popular books"
155
+ .IX Subsection "The most popular books"
156
+ The major reference book on Perl, written by the creator of Perl, is
157
+ \&\fIProgramming Perl\fR:
158
+ .ie n .IP "\fIProgramming Perl\fR (the ""Camel Book""):" 4
159
+ .el .IP "\fIProgramming Perl\fR (the ``Camel Book''):" 4
160
+ .IX Item "Programming Perl (the Camel Book):"
161
+ .Vb 4
162
+ \& by Tom Christiansen, brian d foy, Larry Wall with Jon Orwant
163
+ \& ISBN 978\-0\-596\-00492\-7 [4th edition February 2012]
164
+ \& ISBN 978\-1\-4493\-9890\-3 [ebook]
165
+ \& https://oreilly.com/catalog/9780596004927
166
+ .Ve
167
+ .PP
168
+ The Ram is a cookbook with hundreds of examples of using Perl to
169
+ accomplish specific tasks:
170
+ .ie n .IP "\fIThe Perl Cookbook\fR (the ""Ram Book""):" 4
171
+ .el .IP "\fIThe Perl Cookbook\fR (the ``Ram Book''):" 4
172
+ .IX Item "The Perl Cookbook (the Ram Book):"
173
+ .Vb 5
174
+ \& by Tom Christiansen and Nathan Torkington,
175
+ \& with Foreword by Larry Wall
176
+ \& ISBN 978\-0\-596\-00313\-5 [2nd Edition August 2003]
177
+ \& ISBN 978\-0\-596\-15888\-0 [ebook]
178
+ \& https://oreilly.com/catalog/9780596003135/
179
+ .Ve
180
+ .PP
181
+ If you want to learn the basics of Perl, you might start with the
182
+ Llama book, which assumes that you already know a little about
183
+ programming:
184
+ .ie n .IP "\fILearning Perl\fR (the ""Llama Book"")" 4
185
+ .el .IP "\fILearning Perl\fR (the ``Llama Book'')" 4
186
+ .IX Item "Learning Perl (the Llama Book)"
187
+ .Vb 4
188
+ \& by Randal L. Schwartz, Tom Phoenix, and brian d foy
189
+ \& ISBN 978\-1\-4493\-0358\-7 [6th edition June 2011]
190
+ \& ISBN 978\-1\-4493\-0458\-4 [ebook]
191
+ \& https://www.learning\-perl.com/
192
+ .Ve
193
+ .PP
194
+ The tutorial started in the Llama continues in the Alpaca, which
195
+ introduces the intermediate features of references, data structures,
196
+ object-oriented programming, and modules:
197
+ .ie n .IP "\fIIntermediate Perl\fR (the ""Alpaca Book"")" 4
198
+ .el .IP "\fIIntermediate Perl\fR (the ``Alpaca Book'')" 4
199
+ .IX Item "Intermediate Perl (the Alpaca Book)"
200
+ .Vb 5
201
+ \& by Randal L. Schwartz and brian d foy, with Tom Phoenix
202
+ \& foreword by Damian Conway
203
+ \& ISBN 978\-1\-4493\-9309\-0 [2nd edition August 2012]
204
+ \& ISBN 978\-1\-4493\-0459\-1 [ebook]
205
+ \& https://www.intermediateperl.com/
206
+ .Ve
207
+ .SS "References"
208
+ .IX Subsection "References"
209
+ You might want to keep these desktop references close by your keyboard:
210
+ .IP "\fIPerl 5 Pocket Reference\fR" 4
211
+ .IX Item "Perl 5 Pocket Reference"
212
+ .Vb 4
213
+ \& by Johan Vromans
214
+ \& ISBN 978\-1\-4493\-0370\-9 [5th edition July 2011]
215
+ \& ISBN 978\-1\-4493\-0813\-1 [ebook]
216
+ \& https://oreilly.com/catalog/0636920018476/
217
+ .Ve
218
+ .IP "\fIPerl Debugger Pocket Reference\fR" 4
219
+ .IX Item "Perl Debugger Pocket Reference"
220
+ .Vb 4
221
+ \& by Richard Foley
222
+ \& ISBN 978\-0\-596\-00503\-0 [1st edition January 2004]
223
+ \& ISBN 978\-0\-596\-55625\-9 [ebook]
224
+ \& https://oreilly.com/catalog/9780596005030/
225
+ .Ve
226
+ .IP "\fIRegular Expression Pocket Reference\fR" 4
227
+ .IX Item "Regular Expression Pocket Reference"
228
+ .Vb 4
229
+ \& by Tony Stubblebine
230
+ \& ISBN 978\-0\-596\-51427\-3 [2nd edition July 2007]
231
+ \& ISBN 978\-0\-596\-55782\-9 [ebook]
232
+ \& https://oreilly.com/catalog/9780596514273/
233
+ .Ve
234
+ .SS "Tutorials"
235
+ .IX Subsection "Tutorials"
236
+ .IP "\fIBeginning Perl\fR" 4
237
+ .IX Item "Beginning Perl"
238
+ (There are 2 books with this title)
239
+ .Sp
240
+ .Vb 3
241
+ \& by Curtis \*(AqOvid\*(Aq Poe
242
+ \& ISBN 978\-1\-118\-01384\-7
243
+ \& http://www.wrox.com/WileyCDA/WroxTitle/productCd\-1118013840.html
244
+ \&
245
+ \& by James Lee
246
+ \& ISBN 1\-59059\-391\-X [3rd edition April 2010 & ebook]
247
+ \& https://www.apress.com/9781430227939
248
+ .Ve
249
+ .ie n .IP "\fILearning Perl\fR (the ""Llama Book"")" 4
250
+ .el .IP "\fILearning Perl\fR (the ``Llama Book'')" 4
251
+ .IX Item "Learning Perl (the Llama Book)"
252
+ .Vb 4
253
+ \& by Randal L. Schwartz, Tom Phoenix, and brian d foy
254
+ \& ISBN 978\-1\-4493\-0358\-7 [6th edition June 2011]
255
+ \& ISBN 978\-1\-4493\-0458\-4 [ebook]
256
+ \& https://www.learning\-perl.com/
257
+ .Ve
258
+ .ie n .IP "\fIIntermediate Perl\fR (the ""Alpaca Book"")" 4
259
+ .el .IP "\fIIntermediate Perl\fR (the ``Alpaca Book'')" 4
260
+ .IX Item "Intermediate Perl (the Alpaca Book)"
261
+ .Vb 5
262
+ \& by Randal L. Schwartz and brian d foy, with Tom Phoenix
263
+ \& foreword by Damian Conway
264
+ \& ISBN 978\-1\-4493\-9309\-0 [2nd edition August 2012]
265
+ \& ISBN 978\-1\-4493\-0459\-1 [ebook]
266
+ \& https://www.intermediateperl.com/
267
+ .Ve
268
+ .IP "\fIMastering Perl\fR" 4
269
+ .IX Item "Mastering Perl"
270
+ .Vb 4
271
+ \& by brian d foy
272
+ \& ISBN 9978\-1\-4493\-9311\-3 [2st edition January 2014]
273
+ \& ISBN 978\-1\-4493\-6487\-8 [ebook]
274
+ \& https://www.masteringperl.org/
275
+ .Ve
276
+ .IP "\fIEffective Perl Programming\fR" 4
277
+ .IX Item "Effective Perl Programming"
278
+ .Vb 3
279
+ \& by Joseph N. Hall, Joshua A. McAdams, brian d foy
280
+ \& ISBN 0\-321\-49694\-9 [2nd edition 2010]
281
+ \& https://www.effectiveperlprogramming.com/
282
+ .Ve
283
+ .SS "Task-Oriented"
284
+ .IX Subsection "Task-Oriented"
285
+ .IP "\fIWriting Perl Modules for \s-1CPAN\s0\fR" 4
286
+ .IX Item "Writing Perl Modules for CPAN"
287
+ .Vb 3
288
+ \& by Sam Tregar
289
+ \& ISBN 1\-59059\-018\-X [1st edition August 2002 & ebook]
290
+ \& https://www.apress.com/9781590590188
291
+ .Ve
292
+ .IP "\fIThe Perl Cookbook\fR" 4
293
+ .IX Item "The Perl Cookbook"
294
+ .Vb 5
295
+ \& by Tom Christiansen and Nathan Torkington,
296
+ \& with Foreword by Larry Wall
297
+ \& ISBN 978\-0\-596\-00313\-5 [2nd Edition August 2003]
298
+ \& ISBN 978\-0\-596\-15888\-0 [ebook]
299
+ \& https://oreilly.com/catalog/9780596003135/
300
+ .Ve
301
+ .IP "\fIAutomating System Administration with Perl\fR" 4
302
+ .IX Item "Automating System Administration with Perl"
303
+ .Vb 4
304
+ \& by David N. Blank\-Edelman
305
+ \& ISBN 978\-0\-596\-00639\-6 [2nd edition May 2009]
306
+ \& ISBN 978\-0\-596\-80251\-6 [ebook]
307
+ \& https://oreilly.com/catalog/9780596006396
308
+ .Ve
309
+ .IP "\fIReal World \s-1SQL\s0 Server Administration with Perl\fR" 4
310
+ .IX Item "Real World SQL Server Administration with Perl"
311
+ .Vb 3
312
+ \& by Linchi Shea
313
+ \& ISBN 1\-59059\-097\-X [1st edition July 2003 & ebook]
314
+ \& https://www.apress.com/9781590590973
315
+ .Ve
316
+ .SS "Special Topics"
317
+ .IX Subsection "Special Topics"
318
+ .IP "\fIRegular Expressions Cookbook\fR" 4
319
+ .IX Item "Regular Expressions Cookbook"
320
+ .Vb 4
321
+ \& by Jan Goyvaerts and Steven Levithan
322
+ \& ISBN 978\-1\-4493\-1943\-4 [2nd edition August 2012]
323
+ \& ISBN 978\-1\-4493\-2747\-7 [ebook]
324
+ \& https://shop.oreilly.com/product/0636920023630.do
325
+ .Ve
326
+ .IP "\fIProgramming the Perl \s-1DBI\s0\fR" 4
327
+ .IX Item "Programming the Perl DBI"
328
+ .Vb 4
329
+ \& by Tim Bunce and Alligator Descartes
330
+ \& ISBN 978\-1\-56592\-699\-8 [February 2000]
331
+ \& ISBN 978\-1\-4493\-8670\-2 [ebook]
332
+ \& https://oreilly.com/catalog/9781565926998
333
+ .Ve
334
+ .IP "\fIPerl Best Practices\fR" 4
335
+ .IX Item "Perl Best Practices"
336
+ .Vb 4
337
+ \& by Damian Conway
338
+ \& ISBN 978\-0\-596\-00173\-5 [1st edition July 2005]
339
+ \& ISBN 978\-0\-596\-15900\-9 [ebook]
340
+ \& https://oreilly.com/catalog/9780596001735
341
+ .Ve
342
+ .IP "\fIHigher-Order Perl\fR" 4
343
+ .IX Item "Higher-Order Perl"
344
+ .Vb 4
345
+ \& by Mark\-Jason Dominus
346
+ \& ISBN 1\-55860\-701\-3 [1st edition March 2005]
347
+ \& free ebook https://hop.perl.plover.com/book/
348
+ \& https://hop.perl.plover.com/
349
+ .Ve
350
+ .IP "\fIMastering Regular Expressions\fR" 4
351
+ .IX Item "Mastering Regular Expressions"
352
+ .Vb 4
353
+ \& by Jeffrey E. F. Friedl
354
+ \& ISBN 978\-0\-596\-52812\-6 [3rd edition August 2006]
355
+ \& ISBN 978\-0\-596\-55899\-4 [ebook]
356
+ \& https://oreilly.com/catalog/9780596528126
357
+ .Ve
358
+ .IP "\fINetwork Programming with Perl\fR" 4
359
+ .IX Item "Network Programming with Perl"
360
+ .Vb 3
361
+ \& by Lincoln Stein
362
+ \& ISBN 0\-201\-61571\-1 [1st edition 2001]
363
+ \& https://www.pearsonhighered.com/educator/product/Network\-Programming\-with\-Perl/9780201615715.page
364
+ .Ve
365
+ .IP "\fIPerl Template Toolkit\fR" 4
366
+ .IX Item "Perl Template Toolkit"
367
+ .Vb 4
368
+ \& by Darren Chamberlain, Dave Cross, and Andy Wardley
369
+ \& ISBN 978\-0\-596\-00476\-7 [December 2003]
370
+ \& ISBN 978\-1\-4493\-8647\-4 [ebook]
371
+ \& https://oreilly.com/catalog/9780596004767
372
+ .Ve
373
+ .IP "\fIObject Oriented Perl\fR" 4
374
+ .IX Item "Object Oriented Perl"
375
+ .Vb 4
376
+ \& by Damian Conway
377
+ \& with foreword by Randal L. Schwartz
378
+ \& ISBN 1\-884777\-79\-1 [1st edition August 1999 & ebook]
379
+ \& https://www.manning.com/conway/
380
+ .Ve
381
+ .IP "\fIData Munging with Perl\fR" 4
382
+ .IX Item "Data Munging with Perl"
383
+ .Vb 3
384
+ \& by Dave Cross
385
+ \& ISBN 1\-930110\-00\-6 [1st edition 2001 & ebook]
386
+ \& https://www.manning.com/cross
387
+ .Ve
388
+ .IP "\fIMastering Perl/Tk\fR" 4
389
+ .IX Item "Mastering Perl/Tk"
390
+ .Vb 4
391
+ \& by Steve Lidie and Nancy Walsh
392
+ \& ISBN 978\-1\-56592\-716\-2 [1st edition January 2002]
393
+ \& ISBN 978\-0\-596\-10344\-6 [ebook]
394
+ \& https://oreilly.com/catalog/9781565927162
395
+ .Ve
396
+ .IP "\fIExtending and Embedding Perl\fR" 4
397
+ .IX Item "Extending and Embedding Perl"
398
+ .Vb 3
399
+ \& by Tim Jenness and Simon Cozens
400
+ \& ISBN 1\-930110\-82\-0 [1st edition August 2002 & ebook]
401
+ \& https://www.manning.com/jenness
402
+ .Ve
403
+ .IP "\fIPro Perl Debugging\fR" 4
404
+ .IX Item "Pro Perl Debugging"
405
+ .Vb 3
406
+ \& by Richard Foley with Andy Lester
407
+ \& ISBN 1\-59059\-454\-1 [1st edition July 2005 & ebook]
408
+ \& https://www.apress.com/9781590594544
409
+ .Ve
410
+ .SS "Free (as in beer) books"
411
+ .IX Subsection "Free (as in beer) books"
412
+ Some of these books are available as free downloads.
413
+ .PP
414
+ \&\fIHigher-Order Perl\fR: <https://hop.perl.plover.com/>
415
+ .PP
416
+ \&\fIModern Perl\fR: <http://onyxneon.com/books/modern_perl/>
417
+ .SS "Other interesting, non-Perl books"
418
+ .IX Subsection "Other interesting, non-Perl books"
419
+ You might notice several familiar Perl concepts in this collection of
420
+ \&\s-1ACM\s0 columns from Jon Bentley. The similarity to the title of the major
421
+ Perl book (which came later) is not completely accidental:
422
+ .IP "\fIProgramming Pearls\fR" 4
423
+ .IX Item "Programming Pearls"
424
+ .Vb 2
425
+ \& by Jon Bentley
426
+ \& ISBN 978\-0\-201\-65788\-3 [2 edition, October 1999]
427
+ .Ve
428
+ .IP "\fIMore Programming Pearls\fR" 4
429
+ .IX Item "More Programming Pearls"
430
+ .Vb 2
431
+ \& by Jon Bentley
432
+ \& ISBN 0\-201\-11889\-0 [January 1988]
433
+ .Ve
434
+ .SS "A note on freshness"
435
+ .IX Subsection "A note on freshness"
436
+ Each version of Perl comes with the documentation that was current at
437
+ the time of release. This poses a problem for content such as book
438
+ lists. There are probably very nice books published after this list
439
+ was included in your Perl release, and you can check the latest
440
+ released version at <https://perldoc.perl.org/perlbook.html> .
441
+ .PP
442
+ Some of the books we've listed appear almost ancient in internet
443
+ scale, but we've included those books because they still describe the
444
+ current way of doing things. Not everything in Perl changes every day.
445
+ Many of the beginner-level books, too, go over basic features and
446
+ techniques that are still valid today. In general though, we try to
447
+ limit this list to books published in the past five years.
448
+ .SS "Get your book listed"
449
+ .IX Subsection "Get your book listed"
450
+ If your Perl book isn't listed and you think it should be, let us know.
451
+ <mailto:perl5\-porters@perl.org>
data/miniconda3/man/man1/perlboot.1 ADDED
@@ -0,0 +1,149 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "PERLBOOT 1"
136
+ .TH PERLBOOT 1 "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
+ perlboot \- Links to information on object\-oriented programming in Perl
143
+ .SH "DESCRIPTION"
144
+ .IX Header "DESCRIPTION"
145
+ For information on \s-1OO\s0 programming with Perl, please see perlootut
146
+ and perlobj.
147
+ .PP
148
+ (The above documents supersede the tutorial that was formerly here in
149
+ perlboot.)
data/miniconda3/man/man1/perlbs2000.1 ADDED
@@ -0,0 +1,369 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "PERLBS2000 1"
136
+ .TH PERLBS2000 1 "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
+ perlbs2000 \- building and installing Perl for BS2000.
143
+ .PP
144
+ This document needs to be updated, but we don't know what it should say.
145
+ Please submit comments to <https://github.com/Perl/perl5/issues>.
146
+ .SH "SYNOPSIS"
147
+ .IX Header "SYNOPSIS"
148
+ This document will help you Configure, build, test and install Perl
149
+ on \s-1BS2000\s0 in the \s-1POSIX\s0 subsystem.
150
+ .SH "DESCRIPTION"
151
+ .IX Header "DESCRIPTION"
152
+ This is a ported perl for the \s-1POSIX\s0 subsystem in \s-1BS2000 VERSION OSD
153
+ V3.1A\s0 or later. It may work on other versions, but we started porting
154
+ and testing it with 3.1A and are currently using Version V4.0A.
155
+ .PP
156
+ You may need the following \s-1GNU\s0 programs in order to install perl:
157
+ .SS "gzip on \s-1BS2000\s0"
158
+ .IX Subsection "gzip on BS2000"
159
+ We used version 1.2.4, which could be installed out of the box with
160
+ one failure during 'make check'.
161
+ .SS "bison on \s-1BS2000\s0"
162
+ .IX Subsection "bison on BS2000"
163
+ The yacc coming with \s-1BS2000 POSIX\s0 didn't work for us. So we had to
164
+ use bison. We had to make a few changes to perl in order to use the
165
+ pure (reentrant) parser of bison. We used version 1.25, but we had to
166
+ add a few changes due to \s-1EBCDIC.\s0 See below for more details
167
+ concerning yacc.
168
+ .SS "Unpacking Perl Distribution on \s-1BS2000\s0"
169
+ .IX Subsection "Unpacking Perl Distribution on BS2000"
170
+ To extract an \s-1ASCII\s0 tar archive on \s-1BS2000 POSIX\s0 you need an \s-1ASCII\s0
171
+ filesystem (we used the mountpoint /usr/local/ascii for this). Now
172
+ you extract the archive in the \s-1ASCII\s0 filesystem without
173
+ I/O\-conversion:
174
+ .PP
175
+ cd /usr/local/ascii
176
+ export IO_CONVERSION=NO
177
+ gunzip < /usr/local/src/perl.tar.gz | pax \-r
178
+ .PP
179
+ You may ignore the error message for the first element of the archive
180
+ (this doesn't look like a tar archive / skipping to next file...),
181
+ it's only the directory which will be created automatically anyway.
182
+ .PP
183
+ After extracting the archive you copy the whole directory tree to your
184
+ \&\s-1EBCDIC\s0 filesystem. \fBThis time you use I/O\-conversion\fR:
185
+ .PP
186
+ cd /usr/local/src
187
+ IO_CONVERSION=YES
188
+ cp \-r /usr/local/ascii/perl5.005_02 ./
189
+ .SS "Compiling Perl on \s-1BS2000\s0"
190
+ .IX Subsection "Compiling Perl on BS2000"
191
+ There is a \*(L"hints\*(R" file for \s-1BS2000\s0 called hints.posix\-bc (because
192
+ posix-bc is the \s-1OS\s0 name given by `uname`) that specifies the correct
193
+ values for most things. The major problem is (of course) the \s-1EBCDIC\s0
194
+ character set. We have german \s-1EBCDIC\s0 version.
195
+ .PP
196
+ Because of our problems with the native yacc we used \s-1GNU\s0 bison to
197
+ generate a pure (=reentrant) parser for perly.y. So our yacc is
198
+ really the following script:
199
+ .PP
200
+ \&\-\-\-\-\-8<\-\-\-\-\-/usr/local/bin/yacc\-\-\-\-\-8<\-\-\-\-\-
201
+ #! /usr/bin/sh
202
+ .PP
203
+ # Bison as a reentrant yacc:
204
+ .PP
205
+ # save parameters:
206
+ params="\*(L"
207
+ while [[ $# \-gt 1 ]]; do
208
+ params=\*(R"$params \f(CW$1\fR"
209
+ shift
210
+ done
211
+ .PP
212
+ # add flag \f(CW%pure_parser:\fR
213
+ .PP
214
+ tmpfile=/tmp/bison.$$.y
215
+ echo \f(CW%pure_parser\fR > \f(CW$tmpfile\fR
216
+ cat \f(CW$1\fR >> \f(CW$tmpfile\fR
217
+ .PP
218
+ # call bison:
219
+ .PP
220
+ echo \*(L"/usr/local/bin/bison \-\-yacc \f(CW$params\fR \f(CW$1\fR\et\et\et(Pure Parser)\*(R"
221
+ /usr/local/bin/bison \-\-yacc \f(CW$params\fR \f(CW$tmpfile\fR
222
+ .PP
223
+ # cleanup:
224
+ .PP
225
+ rm \-f \f(CW$tmpfile\fR
226
+ \&\-\-\-\-\-8<\-\-\-\-\-\-\-\-\-\-8<\-\-\-\-\-
227
+ .PP
228
+ We still use the normal yacc for a2p.y though!!! We made a softlink
229
+ called byacc to distinguish between the two versions:
230
+ .PP
231
+ ln \-s /usr/bin/yacc /usr/local/bin/byacc
232
+ .PP
233
+ We build perl using \s-1GNU\s0 make. We tried the native make once and it
234
+ worked too.
235
+ .SS "Testing Perl on \s-1BS2000\s0"
236
+ .IX Subsection "Testing Perl on BS2000"
237
+ We still got a few errors during \f(CW\*(C`make test\*(C'\fR. Some of them are the
238
+ result of using bison. Bison prints \fIparser error\fR instead of \fIsyntax
239
+ error\fR, so we may ignore them. The following list shows
240
+ our errors, your results may differ:
241
+ .PP
242
+ op/numconvert.......FAILED tests 1409\-1440
243
+ op/regexp...........FAILED tests 483, 496
244
+ op/regexp_noamp.....FAILED tests 483, 496
245
+ pragma/overload.....FAILED tests 152\-153, 170\-171
246
+ pragma/warnings.....FAILED tests 14, 82, 129, 155, 192, 205, 207
247
+ lib/bigfloat........FAILED tests 351\-352, 355
248
+ lib/bigfltpm........FAILED tests 354\-355, 358
249
+ lib/complex.........FAILED tests 267, 487
250
+ lib/dumper..........FAILED tests 43, 45
251
+ Failed 11/231 test scripts, 95.24% okay. 57/10595 subtests failed, 99.46% okay.
252
+ .SS "Installing Perl on \s-1BS2000\s0"
253
+ .IX Subsection "Installing Perl on BS2000"
254
+ We have no nroff on \s-1BS2000 POSIX\s0 (yet), so we ignored any errors while
255
+ installing the documentation.
256
+ .SS "Using Perl in the Posix-Shell of \s-1BS2000\s0"
257
+ .IX Subsection "Using Perl in the Posix-Shell of BS2000"
258
+ \&\s-1BS2000 POSIX\s0 doesn't support the shebang notation
259
+ (\f(CW\*(C`#!/usr/local/bin/perl\*(C'\fR), so you have to use the following lines
260
+ instead:
261
+ .PP
262
+ : # use perl
263
+ eval 'exec /usr/local/bin/perl \-S \f(CW$0\fR ${1+\*(L"$@\*(R"}'
264
+ if \f(CW$running_under_some_shell\fR;
265
+ .ie n .SS "Using Perl in ""native"" \s-1BS2000\s0"
266
+ .el .SS "Using Perl in ``native'' \s-1BS2000\s0"
267
+ .IX Subsection "Using Perl in native BS2000"
268
+ We don't have much experience with this yet, but try the following:
269
+ .PP
270
+ Copy your Perl executable to a \s-1BS2000 LLM\s0 using bs2cp:
271
+ .PP
272
+ \&\f(CW\*(C`bs2cp /usr/local/bin/perl \*(Aqbs2:perl(perl,l)\*(Aq\*(C'\fR
273
+ .PP
274
+ Now you can start it with the following (\s-1SDF\s0) command:
275
+ .PP
276
+ \&\f(CW\*(C`/START\-PROG FROM\-FILE=*MODULE(PERL,PERL),PROG\-MODE=*ANY,RUN\-MODE=*ADV\*(C'\fR
277
+ .PP
278
+ First you get the \s-1BS2000\s0 commandline prompt ('*'). Here you may enter
279
+ your parameters, e.g. \f(CW\*(C`\-e \*(Aqprint "Hello World!\e\en";\*(Aq\*(C'\fR (note the
280
+ double backslash!) or \f(CW\*(C`\-w\*(C'\fR and the name of your Perl script.
281
+ Filenames starting with \f(CW\*(C`/\*(C'\fR are searched in the Posix filesystem,
282
+ others are searched in the \s-1BS2000\s0 filesystem. You may even use
283
+ wildcards if you put a \f(CW\*(C`%\*(C'\fR in front of your filename (e.g. \f(CW\*(C`\-w
284
+ checkfiles.pl %*.c\*(C'\fR). Read your C/\*(C+ manual for additional
285
+ possibilities of the commandline prompt (look for
286
+ PARAMETER-PROMPTING).
287
+ .SS "Floating point anomalies on \s-1BS2000\s0"
288
+ .IX Subsection "Floating point anomalies on BS2000"
289
+ There appears to be a bug in the floating point implementation on \s-1BS2000 POSIX\s0
290
+ systems such that calling \fBint()\fR on the product of a number and a small
291
+ magnitude number is not the same as calling \fBint()\fR on the quotient of
292
+ that number and a large magnitude number. For example, in the following
293
+ Perl code:
294
+ .PP
295
+ .Vb 4
296
+ \& my $x = 100000.0;
297
+ \& my $y = int($x * 1e\-5) * 1e5; # \*(Aq0\*(Aq
298
+ \& my $z = int($x / 1e+5) * 1e5; # \*(Aq100000\*(Aq
299
+ \& print "\e$y is $y and \e$z is $z\en"; # $y is 0 and $z is 100000
300
+ .Ve
301
+ .PP
302
+ Although one would expect the quantities \f(CW$y\fR and \f(CW$z\fR to be the same and equal
303
+ to 100000 they will differ and instead will be 0 and 100000 respectively.
304
+ .SS "Using PerlIO and different encodings on \s-1ASCII\s0 and \s-1EBCDIC\s0 partitions"
305
+ .IX Subsection "Using PerlIO and different encodings on ASCII and EBCDIC partitions"
306
+ Since version 5.8 Perl uses the new PerlIO on \s-1BS2000.\s0 This enables
307
+ you using different encodings per \s-1IO\s0 channel. For example you may use
308
+ .PP
309
+ .Vb 9
310
+ \& use Encode;
311
+ \& open($f, ">:encoding(ascii)", "test.ascii");
312
+ \& print $f "Hello World!\en";
313
+ \& open($f, ">:encoding(posix\-bc)", "test.ebcdic");
314
+ \& print $f "Hello World!\en";
315
+ \& open($f, ">:encoding(latin1)", "test.latin1");
316
+ \& print $f "Hello World!\en";
317
+ \& open($f, ">:encoding(utf8)", "test.utf8");
318
+ \& print $f "Hello World!\en";
319
+ .Ve
320
+ .PP
321
+ to get two files containing \*(L"Hello World!\en\*(R" in \s-1ASCII, EBCDIC, ISO\s0
322
+ Latin\-1 (in this example identical to \s-1ASCII\s0) respective UTF-EBCDIC (in
323
+ this example identical to normal \s-1EBCDIC\s0). See the documentation of
324
+ Encode::PerlIO for details.
325
+ .PP
326
+ As the PerlIO layer uses raw \s-1IO\s0 internally, all this totally ignores
327
+ the type of your filesystem (\s-1ASCII\s0 or \s-1EBCDIC\s0) and the \s-1IO_CONVERSION\s0
328
+ environment variable. If you want to get the old behavior, that the
329
+ \&\s-1BS2000 IO\s0 functions determine conversion depending on the filesystem
330
+ PerlIO still is your friend. You use \s-1IO_CONVERSION\s0 as usual and tell
331
+ Perl, that it should use the native \s-1IO\s0 layer:
332
+ .PP
333
+ .Vb 2
334
+ \& export IO_CONVERSION=YES
335
+ \& export PERLIO=stdio
336
+ .Ve
337
+ .PP
338
+ Now your \s-1IO\s0 would be \s-1ASCII\s0 on \s-1ASCII\s0 partitions and \s-1EBCDIC\s0 on \s-1EBCDIC\s0
339
+ partitions. See the documentation of PerlIO (without \f(CW\*(C`Encode::\*(C'\fR!)
340
+ for further possibilities.
341
+ .SH "AUTHORS"
342
+ .IX Header "AUTHORS"
343
+ Thomas Dorner
344
+ .SH "SEE ALSO"
345
+ .IX Header "SEE ALSO"
346
+ \&\s-1INSTALL\s0, perlport.
347
+ .SS "Mailing list"
348
+ .IX Subsection "Mailing list"
349
+ If you are interested in the z/OS (formerly known as \s-1OS/390\s0)
350
+ and POSIX-BC (\s-1BS2000\s0) ports of Perl then see the perl-mvs mailing list.
351
+ To subscribe, send an empty message to perl\-mvs\-subscribe@perl.org.
352
+ .PP
353
+ See also:
354
+ .PP
355
+ .Vb 1
356
+ \& https://lists.perl.org/list/perl\-mvs.html
357
+ .Ve
358
+ .PP
359
+ There are web archives of the mailing list at:
360
+ .PP
361
+ .Vb 1
362
+ \& https://www.nntp.perl.org/group/perl.mvs/
363
+ .Ve
364
+ .SH "HISTORY"
365
+ .IX Header "HISTORY"
366
+ This document was originally written by Thomas Dorner for the 5.005
367
+ release of Perl.
368
+ .PP
369
+ This document was podified for the 5.6 release of perl 11 July 2000.
data/miniconda3/man/man1/perlcommunity.1 ADDED
@@ -0,0 +1,297 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "PERLCOMMUNITY 1"
136
+ .TH PERLCOMMUNITY 1 "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
+ perlcommunity \- a brief overview of the Perl community
143
+ .SH "DESCRIPTION"
144
+ .IX Header "DESCRIPTION"
145
+ This document aims to provide an overview of the vast perl community, which is
146
+ far too large and diverse to provide a detailed listing. If any specific niche
147
+ has been forgotten, it is not meant as an insult but an omission for the sake
148
+ of brevity.
149
+ .PP
150
+ The Perl community is as diverse as Perl, and there is a large amount of
151
+ evidence that the Perl users apply \s-1TMTOWTDI\s0 to all endeavors, not just
152
+ programming. From websites, to \s-1IRC,\s0 to mailing lists, there is more than one
153
+ way to get involved in the community.
154
+ .SS "Where to Find the Community"
155
+ .IX Subsection "Where to Find the Community"
156
+ There is a central directory for the Perl community: <https://perl.org>
157
+ maintained by the Perl Foundation (<https://www.perlfoundation.org/>),
158
+ which tracks and provides services for a variety of other community sites.
159
+ .SS "Mailing Lists and Newsgroups"
160
+ .IX Subsection "Mailing Lists and Newsgroups"
161
+ Perl runs on e\-mail; there is no doubt about it. The Camel book was originally
162
+ written mostly over e\-mail and today Perl's development is co-ordinated through
163
+ mailing lists. The largest repository of Perl mailing lists is located at
164
+ <https://lists.perl.org>.
165
+ .PP
166
+ Most Perl-related projects set up mailing lists for both users and
167
+ contributors. If you don't see a certain project listed at
168
+ <https://lists.perl.org>, check the particular website for that project.
169
+ Most mailing lists are archived at <https://www.nntp.perl.org/>.
170
+ .SS "\s-1IRC\s0"
171
+ .IX Subsection "IRC"
172
+ The Perl community has a rather large \s-1IRC\s0 presence. For starters, it has its
173
+ own \s-1IRC\s0 network, <irc://irc.perl.org>. General (not help-oriented) chat can be
174
+ found at <irc://irc.perl.org/#perl>. Many other more specific chats are also
175
+ hosted on the network. Information about irc.perl.org is located on the
176
+ network's website: <https://www.irc.perl.org>. For a more help-oriented #perl,
177
+ check out <irc://irc.freenode.net/#perl>. Raku development also has a
178
+ presence in <irc://irc.freenode.net/#raku\-dev>. Most Perl-related channels
179
+ will be kind enough to point you in the right direction if you ask nicely.
180
+ .PP
181
+ Any large \s-1IRC\s0 network (Dalnet, EFnet) is also likely to have a #perl channel,
182
+ with varying activity levels.
183
+ .SS "Websites"
184
+ .IX Subsection "Websites"
185
+ Perl websites come in a variety of forms, but they fit into two large
186
+ categories: forums and news websites. There are many Perl-related
187
+ websites, so only a few of the community's largest are mentioned here.
188
+ .PP
189
+ \fINews sites\fR
190
+ .IX Subsection "News sites"
191
+ .IP "<https://perl.com/>" 4
192
+ .IX Item "<https://perl.com/>"
193
+ Originally run by O'Reilly Media (the publisher of the Camel Book,
194
+ this site provides quality articles mostly about technical details of Perl.
195
+ .IP "<http://blogs.perl.org/>" 4
196
+ .IX Item "<http://blogs.perl.org/>"
197
+ Many members of the community have a Perl-related blog on this site. If
198
+ you'd like to join them, you can sign up for free.
199
+ .IP "<http://perlsphere.net/>" 4
200
+ .IX Item "<http://perlsphere.net/>"
201
+ Perlsphere is one of several aggregators of Perl-related blog feeds.
202
+ .IP "<http://perlweekly.com/>" 4
203
+ .IX Item "<http://perlweekly.com/>"
204
+ Perl Weekly is a weekly mailing list that keeps you up to date on conferences,
205
+ releases and notable blog posts.
206
+ .PP
207
+ \fIForums\fR
208
+ .IX Subsection "Forums"
209
+ .IP "<https://www.perlmonks.org/>" 4
210
+ .IX Item "<https://www.perlmonks.org/>"
211
+ PerlMonks is one of the largest Perl forums, and describes itself as \*(L"A place
212
+ for individuals to polish, improve, and showcase their Perl skills.\*(R" and \*(L"A
213
+ community which allows everyone to grow and learn from each other.\*(R"
214
+ .IP "<https://stackoverflow.com/>" 4
215
+ .IX Item "<https://stackoverflow.com/>"
216
+ Stack Overflow is a free question-and-answer site for programmers. It's not
217
+ focussed solely on Perl, but it does have an active group of users who do
218
+ their best to help people with their Perl programming questions.
219
+ .IP "<http://prepan.org/>" 4
220
+ .IX Item "<http://prepan.org/>"
221
+ PrePAN is used as a place to discuss modules that you're considering uploading
222
+ to the \s-1CPAN.\s0 You can get feedback on their design before you upload.
223
+ .SS "User Groups"
224
+ .IX Subsection "User Groups"
225
+ Many cities around the world have local Perl Mongers chapters. A Perl Mongers
226
+ chapter is a local user group which typically holds regular in-person meetings,
227
+ both social and technical; helps organize local conferences, workshops, and
228
+ hackathons; and provides a mailing list or other continual contact method for
229
+ its members to keep in touch.
230
+ .PP
231
+ To find your local Perl Mongers (or \s-1PM\s0 as they're commonly abbreviated) group
232
+ check the international Perl Mongers directory at <https://www.pm.org/>.
233
+ .SS "Workshops"
234
+ .IX Subsection "Workshops"
235
+ Perl workshops are, as the name might suggest, workshops where Perl is taught
236
+ in a variety of ways. At the workshops, subjects range from a beginner's
237
+ introduction (such as the Pittsburgh Perl Workshop's \*(L"Zero To Perl\*(R") to much
238
+ more advanced subjects.
239
+ .PP
240
+ There are several great resources for locating workshops: the
241
+ websites mentioned above, the
242
+ calendar mentioned below, and the \s-1YAPC\s0 Europe
243
+ website, <http://www.yapceurope.org/>, which is probably the best resource for
244
+ European Perl events.
245
+ .SS "Hackathons"
246
+ .IX Subsection "Hackathons"
247
+ Hackathons are a very different kind of gathering where Perl hackers gather to
248
+ do just that, hack nonstop for an extended (several day) period on a specific
249
+ project or projects. Information about hackathons can be located in the same
250
+ place as information about workshops as well as in
251
+ <irc://irc.perl.org/#perl>.
252
+ .PP
253
+ If you have never been to a hackathon, here are a few basic things you need to
254
+ know before attending: have a working laptop and know how to use it; check out
255
+ the involved projects beforehand; have the necessary version control client;
256
+ and bring backup equipment (an extra \s-1LAN\s0 cable, additional power strips, etc.)
257
+ because someone will forget.
258
+ .SS "Conventions"
259
+ .IX Subsection "Conventions"
260
+ Perl had two major annual conventions: The Perl Conference (now part of \s-1OSCON\s0),
261
+ put on by O'Reilly, and Yet Another Perl Conference or \s-1YAPC\s0 (pronounced
262
+ yap-see), which is localized into several regional YAPCs (North America,
263
+ Europe, Asia) in a stunning grassroots display by the Perl community.
264
+ .PP
265
+ In 2016, \s-1YAPC\s0 was rebranded as The Perl Conference again. It is now referred
266
+ to as The Perl and Raku Conference.
267
+ .PP
268
+ \&\s-1OSCON\s0 had been discontinued.
269
+ .PP
270
+ For more information about either conference, check out their respective web
271
+ pages:
272
+ .IP "\(bu" 4
273
+ The Perl Conference
274
+ .Sp
275
+ <http://perlconference.us/>.
276
+ .IP "\(bu" 4
277
+ \&\s-1OSCON\s0
278
+ .Sp
279
+ <https://www.oreilly.com/conferences/>
280
+ .PP
281
+ An additional conference franchise with a large Perl portion was the
282
+ Open Source Developers Conference or \s-1OSDC.\s0 First held in Australia, it
283
+ also spread to Israel and France. More information can be found at:
284
+ <http://www.osdc.org.il> for Israel, and <http://www.osdc.fr/> for France.
285
+ .SS "Calendar of Perl Events"
286
+ .IX Subsection "Calendar of Perl Events"
287
+ The Perl Review, <http://www.theperlreview.com> maintains a website
288
+ and Google calendar for tracking
289
+ workshops, hackathons, Perl Mongers meetings, and other events. A view
290
+ of this calendar is available at <https://www.perl.org/events.html>.
291
+ .PP
292
+ Not every event or Perl Mongers group is on that calendar, so don't lose
293
+ heart if you don't see yours posted. To have your event or group listed,
294
+ contact brian d foy (brian@theperlreview.com).
295
+ .SH "AUTHOR"
296
+ .IX Header "AUTHOR"
297
+ Edgar \*(L"Trizor\*(R" Bering <trizor@gmail.com>
data/miniconda3/man/man1/perldata.1 ADDED
@@ -0,0 +1,1443 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "PERLDATA 1"
136
+ .TH PERLDATA 1 "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
+ perldata \- Perl data types
143
+ .SH "DESCRIPTION"
144
+ .IX Header "DESCRIPTION"
145
+ .SS "Variable names"
146
+ .IX Xref "variable, name variable name data type type"
147
+ .IX Subsection "Variable names"
148
+ Perl has three built-in data types: scalars, arrays of scalars, and
149
+ associative arrays of scalars, known as \*(L"hashes\*(R". A scalar is a
150
+ single string (of any size, limited only by the available memory),
151
+ number, or a reference to something (which will be discussed
152
+ in perlref). Normal arrays are ordered lists of scalars indexed
153
+ by number, starting with 0. Hashes are unordered collections of scalar
154
+ values indexed by their associated string key.
155
+ .PP
156
+ Values are usually referred to by name, or through a named reference.
157
+ The first character of the name tells you to what sort of data
158
+ structure it refers. The rest of the name tells you the particular
159
+ value to which it refers. Usually this name is a single \fIidentifier\fR,
160
+ that is, a string beginning with a letter or underscore, and
161
+ containing letters, underscores, and digits. In some cases, it may
162
+ be a chain of identifiers, separated by \f(CW\*(C`::\*(C'\fR (or by the slightly
163
+ archaic \f(CW\*(C`\*(Aq\*(C'\fR); all but the last are interpreted as names of packages,
164
+ to locate the namespace in which to look up the final identifier
165
+ (see \*(L"Packages\*(R" in perlmod for details). For a more in-depth discussion
166
+ on identifiers, see \*(L"Identifier parsing\*(R". It's possible to
167
+ substitute for a simple identifier, an expression that produces a reference
168
+ to the value at runtime. This is described in more detail below
169
+ and in perlref.
170
+ .IX Xref "identifier"
171
+ .PP
172
+ Perl also has its own built-in variables whose names don't follow
173
+ these rules. They have strange names so they don't accidentally
174
+ collide with one of your normal variables. Strings that match
175
+ parenthesized parts of a regular expression are saved under names
176
+ containing only digits after the \f(CW\*(C`$\*(C'\fR (see perlop and perlre).
177
+ In addition, several special variables that provide windows into
178
+ the inner working of Perl have names containing punctuation characters.
179
+ These are documented in perlvar.
180
+ .IX Xref "variable, built-in"
181
+ .PP
182
+ Scalar values are always named with '$', even when referring to a
183
+ scalar that is part of an array or a hash. The '$' symbol works
184
+ semantically like the English word \*(L"the\*(R" in that it indicates a
185
+ single value is expected.
186
+ .IX Xref "scalar"
187
+ .PP
188
+ .Vb 4
189
+ \& $days # the simple scalar value "days"
190
+ \& $days[28] # the 29th element of array @days
191
+ \& $days{\*(AqFeb\*(Aq} # the \*(AqFeb\*(Aq value from hash %days
192
+ \& $#days # the last index of array @days
193
+ .Ve
194
+ .PP
195
+ Entire arrays (and slices of arrays and hashes) are denoted by '@',
196
+ which works much as the word \*(L"these\*(R" or \*(L"those\*(R" does in English,
197
+ in that it indicates multiple values are expected.
198
+ .IX Xref "array"
199
+ .PP
200
+ .Vb 3
201
+ \& @days # ($days[0], $days[1],... $days[n])
202
+ \& @days[3,4,5] # same as ($days[3],$days[4],$days[5])
203
+ \& @days{\*(Aqa\*(Aq,\*(Aqc\*(Aq} # same as ($days{\*(Aqa\*(Aq},$days{\*(Aqc\*(Aq})
204
+ .Ve
205
+ .PP
206
+ Entire hashes are denoted by '%':
207
+ .IX Xref "hash"
208
+ .PP
209
+ .Vb 1
210
+ \& %days # (key1, val1, key2, val2 ...)
211
+ .Ve
212
+ .PP
213
+ In addition, subroutines are named with an initial '&', though this
214
+ is optional when unambiguous, just as the word \*(L"do\*(R" is often redundant
215
+ in English. Symbol table entries can be named with an initial '*',
216
+ but you don't really care about that yet (if ever :\-).
217
+ .PP
218
+ Every variable type has its own namespace, as do several
219
+ non-variable identifiers. This means that you can, without fear
220
+ of conflict, use the same name for a scalar variable, an array, or
221
+ a hash\*(--or, for that matter, for a filehandle, a directory handle, a
222
+ subroutine name, a format name, or a label. This means that \f(CW$foo\fR
223
+ and \f(CW@foo\fR are two different variables. It also means that \f(CW$foo[1]\fR
224
+ is a part of \f(CW@foo\fR, not a part of \f(CW$foo\fR. This may seem a bit weird,
225
+ but that's okay, because it is weird.
226
+ .IX Xref "namespace"
227
+ .PP
228
+ Because variable references always start with '$', '@', or '%', the
229
+ \&\*(L"reserved\*(R" words aren't in fact reserved with respect to variable
230
+ names. They \fIare\fR reserved with respect to labels and filehandles,
231
+ however, which don't have an initial special character. You can't
232
+ have a filehandle named \*(L"log\*(R", for instance. Hint: you could say
233
+ \&\f(CW\*(C`open(LOG,\*(Aqlogfile\*(Aq)\*(C'\fR rather than \f(CW\*(C`open(log,\*(Aqlogfile\*(Aq)\*(C'\fR. Using
234
+ uppercase filehandles also improves readability and protects you
235
+ from conflict with future reserved words. Case \fIis\fR significant\-\-\*(L"\s-1FOO\*(R",\s0
236
+ \&\*(L"Foo\*(R", and \*(L"foo\*(R" are all different names. Names that start with a
237
+ letter or underscore may also contain digits and underscores.
238
+ .IX Xref "identifier, case sensitivity case"
239
+ .PP
240
+ It is possible to replace such an alphanumeric name with an expression
241
+ that returns a reference to the appropriate type. For a description
242
+ of this, see perlref.
243
+ .PP
244
+ Names that start with a digit may contain only more digits. Names
245
+ that do not start with a letter, underscore, digit or a caret are
246
+ limited to one character, e.g., \f(CW$%\fR or
247
+ \&\f(CW$$\fR. (Most of these one character names have a predefined
248
+ significance to Perl. For instance, \f(CW$$\fR is the current process
249
+ id. And all such names are reserved for Perl's possible use.)
250
+ .SS "Identifier parsing"
251
+ .IX Xref "identifiers"
252
+ .IX Subsection "Identifier parsing"
253
+ Up until Perl 5.18, the actual rules of what a valid identifier
254
+ was were a bit fuzzy. However, in general, anything defined here should
255
+ work on previous versions of Perl, while the opposite \*(-- edge cases
256
+ that work in previous versions, but aren't defined here \*(-- probably
257
+ won't work on newer versions.
258
+ As an important side note, please note that the following only applies
259
+ to bareword identifiers as found in Perl source code, not identifiers
260
+ introduced through symbolic references, which have much fewer
261
+ restrictions.
262
+ If working under the effect of the \f(CW\*(C`use utf8;\*(C'\fR pragma, the following
263
+ rules apply:
264
+ .PP
265
+ .Vb 2
266
+ \& / (?[ ( \ep{Word} & \ep{XID_Start} ) + [_] ])
267
+ \& (?[ ( \ep{Word} & \ep{XID_Continue} ) ]) * /x
268
+ .Ve
269
+ .PP
270
+ That is, a \*(L"start\*(R" character followed by any number of \*(L"continue\*(R"
271
+ characters. Perl requires every character in an identifier to also
272
+ match \f(CW\*(C`\ew\*(C'\fR (this prevents some problematic cases); and Perl
273
+ additionally accepts identfier names beginning with an underscore.
274
+ .PP
275
+ If not under \f(CW\*(C`use utf8\*(C'\fR, the source is treated as \s-1ASCII + 128\s0 extra
276
+ generic characters, and identifiers should match
277
+ .PP
278
+ .Vb 1
279
+ \& / (?aa) (?!\ed) \ew+ /x
280
+ .Ve
281
+ .PP
282
+ That is, any word character in the \s-1ASCII\s0 range, as long as the first
283
+ character is not a digit.
284
+ .PP
285
+ There are two package separators in Perl: A double colon (\f(CW\*(C`::\*(C'\fR) and a single
286
+ quote (\f(CW\*(C`\*(Aq\*(C'\fR). Normal identifiers can start or end with a double colon, and
287
+ can contain several parts delimited by double colons.
288
+ Single quotes have similar rules, but with the exception that they are not
289
+ legal at the end of an identifier: That is, \f(CW\*(C`$\*(Aqfoo\*(C'\fR and \f(CW\*(C`$foo\*(Aqbar\*(C'\fR are
290
+ legal, but \f(CW\*(C`$foo\*(Aqbar\*(Aq\*(C'\fR is not.
291
+ .PP
292
+ Additionally, if the identifier is preceded by a sigil \*(--
293
+ that is, if the identifier is part of a variable name \*(-- it
294
+ may optionally be enclosed in braces.
295
+ .PP
296
+ While you can mix double colons with singles quotes, the quotes must come
297
+ after the colons: \f(CW\*(C`$::::\*(Aqfoo\*(C'\fR and \f(CW\*(C`$foo::\*(Aqbar\*(C'\fR are legal, but \f(CW\*(C`$::\*(Aq::foo\*(C'\fR
298
+ and \f(CW\*(C`$foo\*(Aq::bar\*(C'\fR are not.
299
+ .PP
300
+ Put together, a grammar to match a basic identifier becomes
301
+ .PP
302
+ .Vb 10
303
+ \& /
304
+ \& (?(DEFINE)
305
+ \& (?<variable>
306
+ \& (?&sigil)
307
+ \& (?:
308
+ \& (?&normal_identifier)
309
+ \& | \e{ \es* (?&normal_identifier) \es* \e}
310
+ \& )
311
+ \& )
312
+ \& (?<normal_identifier>
313
+ \& (?: :: )* \*(Aq?
314
+ \& (?&basic_identifier)
315
+ \& (?: (?= (?: :: )+ \*(Aq? | (?: :: )* \*(Aq ) (?&normal_identifier) )?
316
+ \& (?: :: )*
317
+ \& )
318
+ \& (?<basic_identifier>
319
+ \& # is use utf8 on?
320
+ \& (?(?{ (caller(0))[8] & $utf8::hint_bits })
321
+ \& (?&Perl_XIDS) (?&Perl_XIDC)*
322
+ \& | (?aa) (?!\ed) \ew+
323
+ \& )
324
+ \& )
325
+ \& (?<sigil> [&*\e$\e@\e%])
326
+ \& (?<Perl_XIDS> (?[ ( \ep{Word} & \ep{XID_Start} ) + [_] ]) )
327
+ \& (?<Perl_XIDC> (?[ \ep{Word} & \ep{XID_Continue} ]) )
328
+ \& )
329
+ \& /x
330
+ .Ve
331
+ .PP
332
+ Meanwhile, special identifiers don't follow the above rules; For the most
333
+ part, all of the identifiers in this category have a special meaning given
334
+ by Perl. Because they have special parsing rules, these generally can't be
335
+ fully-qualified. They come in six forms (but don't use forms 5 and 6):
336
+ .IP "1." 4
337
+ A sigil, followed solely by digits matching \f(CW\*(C`\ep{POSIX_Digit}\*(C'\fR, like
338
+ \&\f(CW$0\fR, \f(CW$1\fR, or \f(CW$10000\fR.
339
+ .IP "2." 4
340
+ A sigil followed by a single character matching the \f(CW\*(C`\ep{POSIX_Punct}\*(C'\fR
341
+ property, like \f(CW$!\fR or \f(CW\*(C`%+\*(C'\fR, except the character \f(CW"{"\fR doesn't work.
342
+ .IP "3." 4
343
+ A sigil, followed by a caret and any one of the characters
344
+ \&\f(CW\*(C`[][A\-Z^_?\e]\*(C'\fR, like \f(CW$^V\fR or \f(CW$^]\fR.
345
+ .IP "4." 4
346
+ Similar to the above, a sigil, followed by bareword text in braces,
347
+ where the first character is a caret. The next character is any one of
348
+ the characters \f(CW\*(C`[][A\-Z^_?\e]\*(C'\fR, followed by \s-1ASCII\s0 word characters. An
349
+ example is \f(CW\*(C`${^GLOBAL_PHASE}\*(C'\fR.
350
+ .IP "5." 4
351
+ A sigil, followed by any single character in the range \f(CW\*(C`[\exA1\-\exAC\exAE\-\exFF]\*(C'\fR
352
+ when not under \f(CW"use\ utf8"\fR. (Under \f(CW"use\ utf8"\fR, the normal
353
+ identifier rules given earlier in this section apply.) Use of
354
+ non-graphic characters (the C1 controls, the NO-BREAK \s-1SPACE,\s0 and the
355
+ \&\s-1SOFT HYPHEN\s0) has been disallowed since v5.26.0.
356
+ The use of the other characters is unwise, as these are all
357
+ reserved to have special meaning to Perl, and none of them currently
358
+ do have special meaning, though this could change without notice.
359
+ .Sp
360
+ Note that an implication of this form is that there are identifiers only
361
+ legal under \f(CW"use\ utf8"\fR, and vice-versa, for example the identifier
362
+ \&\f(CW\*(C`$e\*'tat\*(C'\fR is legal under \f(CW"use\ utf8"\fR, but is otherwise
363
+ considered to be the single character variable \f(CW\*(C`$e\*'\*(C'\fR followed by
364
+ the bareword \f(CW"tat"\fR, the combination of which is a syntax error.
365
+ .IP "6." 4
366
+ This is a combination of the previous two forms. It is valid only when
367
+ not under \f(CW"use\ utf8"\fR (normal identifier rules apply when under
368
+ \&\f(CW"use\ utf8"\fR). The form is a sigil, followed by text in braces,
369
+ where the first character is any one of the characters in the range
370
+ \&\f(CW\*(C`[\ex80\-\exFF]\*(C'\fR followed by \s-1ASCII\s0 word characters up to the trailing
371
+ brace.
372
+ .Sp
373
+ The same caveats as the previous form apply: The non-graphic
374
+ characters are no longer allowed with \*(L"use\ utf8\*(R", it is unwise
375
+ to use this form at all, and utf8ness makes a big difference.
376
+ .PP
377
+ Prior to Perl v5.24, non-graphical \s-1ASCII\s0 control characters were also
378
+ allowed in some situations; this had been deprecated since v5.20.
379
+ .SS "Context"
380
+ .IX Xref "context scalar context list context"
381
+ .IX Subsection "Context"
382
+ The interpretation of operations and values in Perl sometimes depends
383
+ on the requirements of the context around the operation or value.
384
+ There are two major contexts: list and scalar. Certain operations
385
+ return list values in contexts wanting a list, and scalar values
386
+ otherwise. If this is true of an operation it will be mentioned in
387
+ the documentation for that operation. In other words, Perl overloads
388
+ certain operations based on whether the expected return value is
389
+ singular or plural. Some words in English work this way, like \*(L"fish\*(R"
390
+ and \*(L"sheep\*(R".
391
+ .PP
392
+ In a reciprocal fashion, an operation provides either a scalar or a
393
+ list context to each of its arguments. For example, if you say
394
+ .PP
395
+ .Vb 1
396
+ \& int( <STDIN> )
397
+ .Ve
398
+ .PP
399
+ the integer operation provides scalar context for the <>
400
+ operator, which responds by reading one line from \s-1STDIN\s0 and passing it
401
+ back to the integer operation, which will then find the integer value
402
+ of that line and return that. If, on the other hand, you say
403
+ .PP
404
+ .Vb 1
405
+ \& sort( <STDIN> )
406
+ .Ve
407
+ .PP
408
+ then the sort operation provides list context for <>, which
409
+ will proceed to read every line available up to the end of file, and
410
+ pass that list of lines back to the sort routine, which will then
411
+ sort those lines and return them as a list to whatever the context
412
+ of the sort was.
413
+ .PP
414
+ Assignment is a little bit special in that it uses its left argument
415
+ to determine the context for the right argument. Assignment to a
416
+ scalar evaluates the right-hand side in scalar context, while
417
+ assignment to an array or hash evaluates the righthand side in list
418
+ context. Assignment to a list (or slice, which is just a list
419
+ anyway) also evaluates the right-hand side in list context.
420
+ .PP
421
+ When you use the \f(CW\*(C`use warnings\*(C'\fR pragma or Perl's \fB\-w\fR command-line
422
+ option, you may see warnings
423
+ about useless uses of constants or functions in \*(L"void context\*(R".
424
+ Void context just means the value has been discarded, such as a
425
+ statement containing only \f(CW\*(C`"fred";\*(C'\fR or \f(CW\*(C`getpwuid(0);\*(C'\fR. It still
426
+ counts as scalar context for functions that care whether or not
427
+ they're being called in list context.
428
+ .PP
429
+ User-defined subroutines may choose to care whether they are being
430
+ called in a void, scalar, or list context. Most subroutines do not
431
+ need to bother, though. That's because both scalars and lists are
432
+ automatically interpolated into lists. See \*(L"wantarray\*(R" in perlfunc
433
+ for how you would dynamically discern your function's calling
434
+ context.
435
+ .SS "Scalar values"
436
+ .IX Xref "scalar number string reference"
437
+ .IX Subsection "Scalar values"
438
+ All data in Perl is a scalar, an array of scalars, or a hash of
439
+ scalars. A scalar may contain one single value in any of three
440
+ different flavors: a number, a string, or a reference. In general,
441
+ conversion from one form to another is transparent. Although a
442
+ scalar may not directly hold multiple values, it may contain a
443
+ reference to an array or hash which in turn contains multiple values.
444
+ .PP
445
+ Scalars aren't necessarily one thing or another. There's no place
446
+ to declare a scalar variable to be of type \*(L"string\*(R", type \*(L"number\*(R",
447
+ type \*(L"reference\*(R", or anything else. Because of the automatic
448
+ conversion of scalars, operations that return scalars don't need
449
+ to care (and in fact, cannot care) whether their caller is looking
450
+ for a string, a number, or a reference. Perl is a contextually
451
+ polymorphic language whose scalars can be strings, numbers, or
452
+ references (which includes objects). Although strings and numbers
453
+ are considered pretty much the same thing for nearly all purposes,
454
+ references are strongly-typed, uncastable pointers with builtin
455
+ reference-counting and destructor invocation.
456
+ .PP
457
+
458
+
459
+ A scalar value is interpreted as \s-1FALSE\s0 in the Boolean sense
460
+ if it is undefined, the null string or the number 0 (or its
461
+ string equivalent, \*(L"0\*(R"), and \s-1TRUE\s0 if it is anything else. The
462
+ Boolean context is just a special kind of scalar context where no
463
+ conversion to a string or a number is ever performed.
464
+ Negation of a true value by \f(CW\*(C`!\*(C'\fR or \f(CW\*(C`not\*(C'\fR returns a special false value.
465
+ When evaluated as a string it is treated as \f(CW""\fR, but as a number, it
466
+ is treated as 0. Most Perl operators
467
+ that return true or false behave this way.
468
+ .IX Xref "truth falsehood true false ! not negation 0 boolean bool"
469
+ .PP
470
+ There are actually two varieties of null strings (sometimes referred
471
+ to as \*(L"empty\*(R" strings), a defined one and an undefined one. The
472
+ defined version is just a string of length zero, such as \f(CW""\fR.
473
+ The undefined version is the value that indicates that there is
474
+ no real value for something, such as when there was an error, or
475
+ at end of file, or when you refer to an uninitialized variable or
476
+ element of an array or hash. Although in early versions of Perl,
477
+ an undefined scalar could become defined when first used in a
478
+ place expecting a defined value, this no longer happens except for
479
+ rare cases of autovivification as explained in perlref. You can
480
+ use the \fBdefined()\fR operator to determine whether a scalar value is
481
+ defined (this has no meaning on arrays or hashes), and the \fBundef()\fR
482
+ operator to produce an undefined value.
483
+ .IX Xref "defined undefined undef null string, null"
484
+ .PP
485
+ To find out whether a given string is a valid non-zero number, it's
486
+ sometimes enough to test it against both numeric 0 and also lexical
487
+ \&\*(L"0\*(R" (although this will cause noises if warnings are on). That's
488
+ because strings that aren't numbers count as 0, just as they do in \fBawk\fR:
489
+ .PP
490
+ .Vb 3
491
+ \& if ($str == 0 && $str ne "0") {
492
+ \& warn "That doesn\*(Aqt look like a number";
493
+ \& }
494
+ .Ve
495
+ .PP
496
+ That method may be best because otherwise you won't treat \s-1IEEE\s0
497
+ notations like \f(CW\*(C`NaN\*(C'\fR or \f(CW\*(C`Infinity\*(C'\fR properly. At other times, you
498
+ might prefer to determine whether string data can be used numerically
499
+ by calling the \fBPOSIX::strtod()\fR function or by inspecting your string
500
+ with a regular expression (as documented in perlre).
501
+ .PP
502
+ .Vb 8
503
+ \& warn "has nondigits" if /\eD/;
504
+ \& warn "not a natural number" unless /^\ed+$/; # rejects \-3
505
+ \& warn "not an integer" unless /^\-?\ed+$/; # rejects +3
506
+ \& warn "not an integer" unless /^[+\-]?\ed+$/;
507
+ \& warn "not a decimal number" unless /^\-?\ed+\e.?\ed*$/; # rejects .2
508
+ \& warn "not a decimal number" unless /^\-?(?:\ed+(?:\e.\ed*)?|\e.\ed+)$/;
509
+ \& warn "not a C float"
510
+ \& unless /^([+\-]?)(?=\ed|\e.\ed)\ed*(\e.\ed*)?([Ee]([+\-]?\ed+))?$/;
511
+ .Ve
512
+ .PP
513
+ The length of an array is a scalar value. You may find the length
514
+ of array \f(CW@days\fR by evaluating \f(CW$#days\fR, as in \fBcsh\fR. However, this
515
+ isn't the length of the array; it's the subscript of the last element,
516
+ which is a different value since there is ordinarily a 0th element.
517
+ Assigning to \f(CW$#days\fR actually changes the length of the array.
518
+ Shortening an array this way destroys intervening values. Lengthening
519
+ an array that was previously shortened does not recover values
520
+ that were in those elements.
521
+ .IX Xref "$# array, length"
522
+ .PP
523
+ You can also gain some minuscule measure of efficiency by pre-extending
524
+ an array that is going to get big. You can also extend an array
525
+ by assigning to an element that is off the end of the array. You
526
+ can truncate an array down to nothing by assigning the null list
527
+ () to it. The following are equivalent:
528
+ .PP
529
+ .Vb 2
530
+ \& @whatever = ();
531
+ \& $#whatever = \-1;
532
+ .Ve
533
+ .PP
534
+ If you evaluate an array in scalar context, it returns the length
535
+ of the array. (Note that this is not true of lists, which return
536
+ the last value, like the C comma operator, nor of built-in functions,
537
+ which return whatever they feel like returning.) The following is
538
+ always true:
539
+ .IX Xref "array, length"
540
+ .PP
541
+ .Vb 1
542
+ \& scalar(@whatever) == $#whatever + 1;
543
+ .Ve
544
+ .PP
545
+ Some programmers choose to use an explicit conversion so as to
546
+ leave nothing to doubt:
547
+ .PP
548
+ .Vb 1
549
+ \& $element_count = scalar(@whatever);
550
+ .Ve
551
+ .PP
552
+ If you evaluate a hash in scalar context, it returns a false value if
553
+ the hash is empty. If there are any key/value pairs, it returns a
554
+ true value. A more precise definition is version dependent.
555
+ .PP
556
+ Prior to Perl 5.25 the value returned was a string consisting of the
557
+ number of used buckets and the number of allocated buckets, separated
558
+ by a slash. This is pretty much useful only to find out whether
559
+ Perl's internal hashing algorithm is performing poorly on your data
560
+ set. For example, you stick 10,000 things in a hash, but evaluating
561
+ \&\f(CW%HASH\fR in scalar context reveals \f(CW"1/16"\fR, which means only one out
562
+ of sixteen buckets has been touched, and presumably contains all
563
+ 10,000 of your items. This isn't supposed to happen.
564
+ .PP
565
+ As of Perl 5.25 the return was changed to be the count of keys in the
566
+ hash. If you need access to the old behavior you can use
567
+ \&\f(CW\*(C`Hash::Util::bucket_ratio()\*(C'\fR instead.
568
+ .PP
569
+ If a tied hash is evaluated in scalar context, the \f(CW\*(C`SCALAR\*(C'\fR method is
570
+ called (with a fallback to \f(CW\*(C`FIRSTKEY\*(C'\fR).
571
+ .IX Xref "hash, scalar context hash, bucket bucket"
572
+ .PP
573
+ You can preallocate space for a hash by assigning to the \fBkeys()\fR function.
574
+ This rounds up the allocated buckets to the next power of two:
575
+ .PP
576
+ .Vb 1
577
+ \& keys(%users) = 1000; # allocate 1024 buckets
578
+ .Ve
579
+ .SS "Scalar value constructors"
580
+ .IX Xref "scalar, literal scalar, constant"
581
+ .IX Subsection "Scalar value constructors"
582
+ Numeric literals are specified in any of the following floating point or
583
+ integer formats:
584
+ .PP
585
+ .Vb 10
586
+ \& 12345
587
+ \& 12345.67
588
+ \& .23E\-10 # a very small number
589
+ \& 3.14_15_92 # a very important number
590
+ \& 4_294_967_296 # underscore for legibility
591
+ \& 0xff # hex
592
+ \& 0xdead_beef # more hex
593
+ \& 0377 # octal (only numbers, begins with 0)
594
+ \& 0b011011 # binary
595
+ \& 0x1.999ap\-4 # hexadecimal floating point (the \*(Aqp\*(Aq is required)
596
+ .Ve
597
+ .PP
598
+ You are allowed to use underscores (underbars) in numeric literals
599
+ between digits for legibility (but not multiple underscores in a row:
600
+ \&\f(CW\*(C`23_\|_500\*(C'\fR is not legal; \f(CW\*(C`23_500\*(C'\fR is).
601
+ You could, for example, group binary
602
+ digits by threes (as for a Unix-style mode argument such as 0b110_100_100)
603
+ or by fours (to represent nibbles, as in 0b1010_0110) or in other groups.
604
+ .IX Xref "number, literal"
605
+ .PP
606
+ String literals are usually delimited by either single or double
607
+ quotes. They work much like quotes in the standard Unix shells:
608
+ double-quoted string literals are subject to backslash and variable
609
+ substitution; single-quoted strings are not (except for \f(CW\*(C`\e\*(Aq\*(C'\fR and
610
+ \&\f(CW\*(C`\e\e\*(C'\fR). The usual C\-style backslash rules apply for making
611
+ characters such as newline, tab, etc., as well as some more exotic
612
+ forms. See \*(L"Quote and Quote-like Operators\*(R" in perlop for a list.
613
+ .IX Xref "string, literal"
614
+ .PP
615
+ Hexadecimal, octal, or binary, representations in string literals
616
+ (e.g. '0xff') are not automatically converted to their integer
617
+ representation. The \fBhex()\fR and \fBoct()\fR functions make these conversions
618
+ for you. See \*(L"hex\*(R" in perlfunc and \*(L"oct\*(R" in perlfunc for more details.
619
+ .PP
620
+ Hexadecimal floating point can start just like a hexadecimal literal,
621
+ and it can be followed by an optional fractional hexadecimal part,
622
+ but it must be followed by \f(CW\*(C`p\*(C'\fR, an optional sign, and a power of two.
623
+ The format is useful for accurately presenting floating point values,
624
+ avoiding conversions to or from decimal floating point, and therefore
625
+ avoiding possible loss in precision. Notice that while most current
626
+ platforms use the 64\-bit \s-1IEEE 754\s0 floating point, not all do. Another
627
+ potential source of (low-order) differences are the floating point
628
+ rounding modes, which can differ between CPUs, operating systems,
629
+ and compilers, and which Perl doesn't control.
630
+ .PP
631
+ You can also embed newlines directly in your strings, i.e., they can end
632
+ on a different line than they begin. This is nice, but if you forget
633
+ your trailing quote, the error will not be reported until Perl finds
634
+ another line containing the quote character, which may be much further
635
+ on in the script. Variable substitution inside strings is limited to
636
+ scalar variables, arrays, and array or hash slices. (In other words,
637
+ names beginning with $ or @, followed by an optional bracketed
638
+ expression as a subscript.) The following code segment prints out \*(L"The
639
+ price is \f(CW$100\fR.\*(R"
640
+ .IX Xref "interpolation"
641
+ .PP
642
+ .Vb 2
643
+ \& $Price = \*(Aq$100\*(Aq; # not interpolated
644
+ \& print "The price is $Price.\en"; # interpolated
645
+ .Ve
646
+ .PP
647
+ There is no double interpolation in Perl, so the \f(CW$100\fR is left as is.
648
+ .PP
649
+ By default floating point numbers substituted inside strings use the
650
+ dot (\*(L".\*(R") as the decimal separator. If \f(CW\*(C`use locale\*(C'\fR is in effect,
651
+ and \fBPOSIX::setlocale()\fR has been called, the character used for the
652
+ decimal separator is affected by the \s-1LC_NUMERIC\s0 locale.
653
+ See perllocale and \s-1POSIX\s0.
654
+ .PP
655
+ As in some shells, you can enclose the variable name in braces to
656
+ disambiguate it from following alphanumerics (and underscores).
657
+ You must also do
658
+ this when interpolating a variable into a string to separate the
659
+ variable name from a following double-colon or an apostrophe, since
660
+ these would be otherwise treated as a package separator:
661
+ .IX Xref "interpolation"
662
+ .PP
663
+ .Vb 3
664
+ \& $who = "Larry";
665
+ \& print PASSWD "${who}::0:0:Superuser:/:/bin/perl\en";
666
+ \& print "We use ${who}speak when ${who}\*(Aqs here.\en";
667
+ .Ve
668
+ .PP
669
+ Without the braces, Perl would have looked for a \f(CW$whospeak\fR, a
670
+ \&\f(CW$who::0\fR, and a \f(CW\*(C`$who\*(Aqs\*(C'\fR variable. The last two would be the
671
+ \&\f(CW$0\fR and the \f(CW$s\fR variables in the (presumably) non-existent package
672
+ \&\f(CW\*(C`who\*(C'\fR.
673
+ .PP
674
+ In fact, a simple identifier within such curlies is forced to be
675
+ a string, and likewise within a hash subscript. Neither need
676
+ quoting. Our earlier example, \f(CW$days{\*(AqFeb\*(Aq}\fR can be written as
677
+ \&\f(CW$days{Feb}\fR and the quotes will be assumed automatically. But
678
+ anything more complicated in the subscript will be interpreted as an
679
+ expression. This means for example that \f(CW\*(C`$version{2.0}++\*(C'\fR is
680
+ equivalent to \f(CW\*(C`$version{2}++\*(C'\fR, not to \f(CW\*(C`$version{\*(Aq2.0\*(Aq}++\*(C'\fR.
681
+ .PP
682
+ \fISpecial floating point: infinity (Inf) and not-a-number (NaN)\fR
683
+ .IX Subsection "Special floating point: infinity (Inf) and not-a-number (NaN)"
684
+ .PP
685
+ Floating point values include the special values \f(CW\*(C`Inf\*(C'\fR and \f(CW\*(C`NaN\*(C'\fR,
686
+ for infinity and not-a-number. The infinity can be also negative.
687
+ .PP
688
+ The infinity is the result of certain math operations that overflow
689
+ the floating point range, like 9**9**9. The not-a-number is the
690
+ result when the result is undefined or unrepresentable. Though note
691
+ that you cannot get \f(CW\*(C`NaN\*(C'\fR from some common \*(L"undefined\*(R" or
692
+ \&\*(L"out-of-range\*(R" operations like dividing by zero, or square root of
693
+ a negative number, since Perl generates fatal errors for those.
694
+ .PP
695
+ The infinity and not-a-number have their own special arithmetic rules.
696
+ The general rule is that they are \*(L"contagious\*(R": \f(CW\*(C`Inf\*(C'\fR plus one is
697
+ \&\f(CW\*(C`Inf\*(C'\fR, and \f(CW\*(C`NaN\*(C'\fR plus one is \f(CW\*(C`NaN\*(C'\fR. Where things get interesting
698
+ is when you combine infinities and not-a-numbers: \f(CW\*(C`Inf\*(C'\fR minus \f(CW\*(C`Inf\*(C'\fR
699
+ and \f(CW\*(C`Inf\*(C'\fR divided by \f(CW\*(C`Inf\*(C'\fR are \f(CW\*(C`NaN\*(C'\fR (while \f(CW\*(C`Inf\*(C'\fR plus \f(CW\*(C`Inf\*(C'\fR is
700
+ \&\f(CW\*(C`Inf\*(C'\fR and \f(CW\*(C`Inf\*(C'\fR times \f(CW\*(C`Inf\*(C'\fR is \f(CW\*(C`Inf\*(C'\fR). \f(CW\*(C`NaN\*(C'\fR is also curious
701
+ in that it does not equal any number, \fIincluding\fR itself:
702
+ \&\f(CW\*(C`NaN\*(C'\fR != \f(CW\*(C`NaN\*(C'\fR.
703
+ .PP
704
+ Perl doesn't understand \f(CW\*(C`Inf\*(C'\fR and \f(CW\*(C`NaN\*(C'\fR as numeric literals, but
705
+ you can have them as strings, and Perl will convert them as needed:
706
+ \&\*(L"Inf\*(R" + 1. (You can, however, import them from the \s-1POSIX\s0 extension;
707
+ \&\f(CW\*(C`use POSIX qw(Inf NaN);\*(C'\fR and then use them as literals.)
708
+ .PP
709
+ Note that on input (string to number) Perl accepts \f(CW\*(C`Inf\*(C'\fR and \f(CW\*(C`NaN\*(C'\fR
710
+ in many forms. Case is ignored, and the Win32\-specific forms like
711
+ \&\f(CW\*(C`1.#INF\*(C'\fR are understood, but on output the values are normalized to
712
+ \&\f(CW\*(C`Inf\*(C'\fR and \f(CW\*(C`NaN\*(C'\fR.
713
+ .PP
714
+ \fIVersion Strings\fR
715
+ .IX Xref "version string vstring v-string"
716
+ .IX Subsection "Version Strings"
717
+ .PP
718
+ A literal of the form \f(CW\*(C`v1.20.300.4000\*(C'\fR is parsed as a string composed
719
+ of characters with the specified ordinals. This form, known as
720
+ v\-strings, provides an alternative, more readable way to construct
721
+ strings, rather than use the somewhat less readable interpolation form
722
+ \&\f(CW"\ex{1}\ex{14}\ex{12c}\ex{fa0}"\fR. This is useful for representing
723
+ Unicode strings, and for comparing version \*(L"numbers\*(R" using the string
724
+ comparison operators, \f(CW\*(C`cmp\*(C'\fR, \f(CW\*(C`gt\*(C'\fR, \f(CW\*(C`lt\*(C'\fR etc. If there are two or
725
+ more dots in the literal, the leading \f(CW\*(C`v\*(C'\fR may be omitted.
726
+ .PP
727
+ .Vb 3
728
+ \& print v9786; # prints SMILEY, "\ex{263a}"
729
+ \& print v102.111.111; # prints "foo"
730
+ \& print 102.111.111; # same
731
+ .Ve
732
+ .PP
733
+ Such literals are accepted by both \f(CW\*(C`require\*(C'\fR and \f(CW\*(C`use\*(C'\fR for
734
+ doing a version check. Note that using the v\-strings for IPv4
735
+ addresses is not portable unless you also use the
736
+ \&\fBinet_aton()\fR/\fBinet_ntoa()\fR routines of the Socket package.
737
+ .PP
738
+ Note that since Perl 5.8.1 the single-number v\-strings (like \f(CW\*(C`v65\*(C'\fR)
739
+ are not v\-strings before the \f(CW\*(C`=>\*(C'\fR operator (which is usually used
740
+ to separate a hash key from a hash value); instead they are interpreted
741
+ as literal strings ('v65'). They were v\-strings from Perl 5.6.0 to
742
+ Perl 5.8.0, but that caused more confusion and breakage than good.
743
+ Multi-number v\-strings like \f(CW\*(C`v65.66\*(C'\fR and \f(CW65.66.67\fR continue to
744
+ be v\-strings always.
745
+ .PP
746
+ \fISpecial Literals\fR
747
+ .IX Xref "special literal __END__ __DATA__ END DATA end data ^D ^Z"
748
+ .IX Subsection "Special Literals"
749
+ .PP
750
+ The special literals _\|_FILE_\|_, _\|_LINE_\|_, and _\|_PACKAGE_\|_
751
+ represent the current filename, line number, and package name at that
752
+ point in your program. _\|_SUB_\|_ gives a reference to the current
753
+ subroutine. They may be used only as separate tokens; they
754
+ will not be interpolated into strings. If there is no current package
755
+ (due to an empty \f(CW\*(C`package;\*(C'\fR directive), _\|_PACKAGE_\|_ is the undefined
756
+ value. (But the empty \f(CW\*(C`package;\*(C'\fR is no longer supported, as of version
757
+ 5.10.) Outside of a subroutine, _\|_SUB_\|_ is the undefined value. _\|_SUB_\|_
758
+ is only available in 5.16 or higher, and only with a \f(CW\*(C`use v5.16\*(C'\fR or
759
+ \&\f(CW\*(C`use feature "current_sub"\*(C'\fR declaration.
760
+ .IX Xref "__FILE__ __LINE__ __PACKAGE__ __SUB__ line file package"
761
+ .PP
762
+ The two control characters ^D and ^Z, and the tokens _\|_END_\|_ and _\|_DATA_\|_
763
+ may be used to indicate the logical end of the script before the actual
764
+ end of file. Any following text is ignored.
765
+ .PP
766
+ Text after _\|_DATA_\|_ may be read via the filehandle \f(CW\*(C`PACKNAME::DATA\*(C'\fR,
767
+ where \f(CW\*(C`PACKNAME\*(C'\fR is the package that was current when the _\|_DATA_\|_
768
+ token was encountered. The filehandle is left open pointing to the
769
+ line after _\|_DATA_\|_. The program should \f(CW\*(C`close DATA\*(C'\fR when it is done
770
+ reading from it. (Leaving it open leaks filehandles if the module is
771
+ reloaded for any reason, so it's a safer practice to close it.) For
772
+ compatibility with older scripts written before _\|_DATA_\|_ was
773
+ introduced, _\|_END_\|_ behaves like _\|_DATA_\|_ in the top level script (but
774
+ not in files loaded with \f(CW\*(C`require\*(C'\fR or \f(CW\*(C`do\*(C'\fR) and leaves the remaining
775
+ contents of the file accessible via \f(CW\*(C`main::DATA\*(C'\fR.
776
+ .PP
777
+ The \f(CW\*(C`DATA\*(C'\fR file handle by default has whatever PerlIO layers were
778
+ in place when Perl read the file to parse the source. Normally that
779
+ means that the file is being read bytewise, as if it were encoded in
780
+ Latin\-1, but there are two major ways for it to be otherwise. Firstly,
781
+ if the \f(CW\*(C`_\|_END_\|_\*(C'\fR/\f(CW\*(C`_\|_DATA_\|_\*(C'\fR token is in the scope of a \f(CW\*(C`use utf8\*(C'\fR
782
+ pragma then the \f(CW\*(C`DATA\*(C'\fR handle will be in \s-1UTF\-8\s0 mode. And secondly,
783
+ if the source is being read from perl's standard input then the \f(CW\*(C`DATA\*(C'\fR
784
+ file handle is actually aliased to the \f(CW\*(C`STDIN\*(C'\fR file handle, and may
785
+ be in \s-1UTF\-8\s0 mode because of the \f(CW\*(C`PERL_UNICODE\*(C'\fR environment variable or
786
+ perl's command-line switches.
787
+ .PP
788
+ See SelfLoader for more description of _\|_DATA_\|_, and
789
+ an example of its use. Note that you cannot read from the \s-1DATA\s0
790
+ filehandle in a \s-1BEGIN\s0 block: the \s-1BEGIN\s0 block is executed as soon
791
+ as it is seen (during compilation), at which point the corresponding
792
+ _\|_DATA_\|_ (or _\|_END_\|_) token has not yet been seen.
793
+ .PP
794
+ \fIBarewords\fR
795
+ .IX Xref "bareword"
796
+ .IX Subsection "Barewords"
797
+ .PP
798
+ A word that has no other interpretation in the grammar will
799
+ be treated as if it were a quoted string. These are known as
800
+ \&\*(L"barewords\*(R". As with filehandles and labels, a bareword that consists
801
+ entirely of lowercase letters risks conflict with future reserved
802
+ words, and if you use the \f(CW\*(C`use warnings\*(C'\fR pragma or the \fB\-w\fR switch,
803
+ Perl will warn you about any such words. Perl limits barewords (like
804
+ identifiers) to about 250 characters. Future versions of Perl are likely
805
+ to eliminate these arbitrary limitations.
806
+ .PP
807
+ Some people may wish to outlaw barewords entirely. If you
808
+ say
809
+ .PP
810
+ .Vb 1
811
+ \& use strict \*(Aqsubs\*(Aq;
812
+ .Ve
813
+ .PP
814
+ then any bareword that would \s-1NOT\s0 be interpreted as a subroutine call
815
+ produces a compile-time error instead. The restriction lasts to the
816
+ end of the enclosing block. An inner block may countermand this
817
+ by saying \f(CW\*(C`no strict \*(Aqsubs\*(Aq\*(C'\fR.
818
+ .PP
819
+ \fIArray Interpolation\fR
820
+ .IX Xref "array, interpolation interpolation, array $"""
821
+ .IX Subsection "Array Interpolation"
822
+ .PP
823
+ Arrays and slices are interpolated into double-quoted strings
824
+ by joining the elements with the delimiter specified in the \f(CW$"\fR
825
+ variable (\f(CW$LIST_SEPARATOR\fR if \*(L"use English;\*(R" is specified),
826
+ space by default. The following are equivalent:
827
+ .PP
828
+ .Vb 2
829
+ \& $temp = join($", @ARGV);
830
+ \& system "echo $temp";
831
+ \&
832
+ \& system "echo @ARGV";
833
+ .Ve
834
+ .PP
835
+ Within search patterns (which also undergo double-quotish substitution)
836
+ there is an unfortunate ambiguity: Is \f(CW\*(C`/$foo[bar]/\*(C'\fR to be interpreted as
837
+ \&\f(CW\*(C`/${foo}[bar]/\*(C'\fR (where \f(CW\*(C`[bar]\*(C'\fR is a character class for the regular
838
+ expression) or as \f(CW\*(C`/${foo[bar]}/\*(C'\fR (where \f(CW\*(C`[bar]\*(C'\fR is the subscript to array
839
+ \&\f(CW@foo\fR)? If \f(CW@foo\fR doesn't otherwise exist, then it's obviously a
840
+ character class. If \f(CW@foo\fR exists, Perl takes a good guess about \f(CW\*(C`[bar]\*(C'\fR,
841
+ and is almost always right. If it does guess wrong, or if you're just
842
+ plain paranoid, you can force the correct interpretation with curly
843
+ braces as above.
844
+ .PP
845
+ If you're looking for the information on how to use here-documents,
846
+ which used to be here, that's been moved to
847
+ \&\*(L"Quote and Quote-like Operators\*(R" in perlop.
848
+ .SS "List value constructors"
849
+ .IX Xref "list"
850
+ .IX Subsection "List value constructors"
851
+ List values are denoted by separating individual values by commas
852
+ (and enclosing the list in parentheses where precedence requires it):
853
+ .PP
854
+ .Vb 1
855
+ \& (LIST)
856
+ .Ve
857
+ .PP
858
+ In a context not requiring a list value, the value of what appears
859
+ to be a list literal is simply the value of the final element, as
860
+ with the C comma operator. For example,
861
+ .PP
862
+ .Vb 1
863
+ \& @foo = (\*(Aqcc\*(Aq, \*(Aq\-E\*(Aq, $bar);
864
+ .Ve
865
+ .PP
866
+ assigns the entire list value to array \f(CW@foo\fR, but
867
+ .PP
868
+ .Vb 1
869
+ \& $foo = (\*(Aqcc\*(Aq, \*(Aq\-E\*(Aq, $bar);
870
+ .Ve
871
+ .PP
872
+ assigns the value of variable \f(CW$bar\fR to the scalar variable \f(CW$foo\fR.
873
+ Note that the value of an actual array in scalar context is the
874
+ length of the array; the following assigns the value 3 to \f(CW$foo:\fR
875
+ .PP
876
+ .Vb 2
877
+ \& @foo = (\*(Aqcc\*(Aq, \*(Aq\-E\*(Aq, $bar);
878
+ \& $foo = @foo; # $foo gets 3
879
+ .Ve
880
+ .PP
881
+ You may have an optional comma before the closing parenthesis of a
882
+ list literal, so that you can say:
883
+ .PP
884
+ .Vb 5
885
+ \& @foo = (
886
+ \& 1,
887
+ \& 2,
888
+ \& 3,
889
+ \& );
890
+ .Ve
891
+ .PP
892
+ To use a here-document to assign an array, one line per element,
893
+ you might use an approach like this:
894
+ .PP
895
+ .Vb 7
896
+ \& @sauces = <<End_Lines =~ m/(\eS.*\eS)/g;
897
+ \& normal tomato
898
+ \& spicy tomato
899
+ \& green chile
900
+ \& pesto
901
+ \& white wine
902
+ \& End_Lines
903
+ .Ve
904
+ .PP
905
+ LISTs do automatic interpolation of sublists. That is, when a \s-1LIST\s0 is
906
+ evaluated, each element of the list is evaluated in list context, and
907
+ the resulting list value is interpolated into \s-1LIST\s0 just as if each
908
+ individual element were a member of \s-1LIST.\s0 Thus arrays and hashes lose their
909
+ identity in a LIST\*(--the list
910
+ .PP
911
+ .Vb 1
912
+ \& (@foo,@bar,&SomeSub,%glarch)
913
+ .Ve
914
+ .PP
915
+ contains all the elements of \f(CW@foo\fR followed by all the elements of \f(CW@bar\fR,
916
+ followed by all the elements returned by the subroutine named SomeSub
917
+ called in list context, followed by the key/value pairs of \f(CW%glarch\fR.
918
+ To make a list reference that does \fI\s-1NOT\s0\fR interpolate, see perlref.
919
+ .PP
920
+ The null list is represented by (). Interpolating it in a list
921
+ has no effect. Thus ((),(),()) is equivalent to (). Similarly,
922
+ interpolating an array with no elements is the same as if no
923
+ array had been interpolated at that point.
924
+ .PP
925
+ This interpolation combines with the facts that the opening
926
+ and closing parentheses are optional (except when necessary for
927
+ precedence) and lists may end with an optional comma to mean that
928
+ multiple commas within lists are legal syntax. The list \f(CW\*(C`1,,3\*(C'\fR is a
929
+ concatenation of two lists, \f(CW\*(C`1,\*(C'\fR and \f(CW3\fR, the first of which ends
930
+ with that optional comma. \f(CW\*(C`1,,3\*(C'\fR is \f(CW\*(C`(1,),(3)\*(C'\fR is \f(CW\*(C`1,3\*(C'\fR (And
931
+ similarly for \f(CW\*(C`1,,,3\*(C'\fR is \f(CW\*(C`(1,),(,),3\*(C'\fR is \f(CW\*(C`1,3\*(C'\fR and so on.) Not that
932
+ we'd advise you to use this obfuscation.
933
+ .PP
934
+ A list value may also be subscripted like a normal array. You must
935
+ put the list in parentheses to avoid ambiguity. For example:
936
+ .PP
937
+ .Vb 2
938
+ \& # Stat returns list value.
939
+ \& $time = (stat($file))[8];
940
+ \&
941
+ \& # SYNTAX ERROR HERE.
942
+ \& $time = stat($file)[8]; # OOPS, FORGOT PARENTHESES
943
+ \&
944
+ \& # Find a hex digit.
945
+ \& $hexdigit = (\*(Aqa\*(Aq,\*(Aqb\*(Aq,\*(Aqc\*(Aq,\*(Aqd\*(Aq,\*(Aqe\*(Aq,\*(Aqf\*(Aq)[$digit\-10];
946
+ \&
947
+ \& # A "reverse comma operator".
948
+ \& return (pop(@foo),pop(@foo))[0];
949
+ .Ve
950
+ .PP
951
+ Lists may be assigned to only when each element of the list
952
+ is itself legal to assign to:
953
+ .PP
954
+ .Vb 1
955
+ \& ($x, $y, $z) = (1, 2, 3);
956
+ \&
957
+ \& ($map{\*(Aqred\*(Aq}, $map{\*(Aqblue\*(Aq}, $map{\*(Aqgreen\*(Aq}) = (0x00f, 0x0f0, 0xf00);
958
+ .Ve
959
+ .PP
960
+ An exception to this is that you may assign to \f(CW\*(C`undef\*(C'\fR in a list.
961
+ This is useful for throwing away some of the return values of a
962
+ function:
963
+ .PP
964
+ .Vb 1
965
+ \& ($dev, $ino, undef, undef, $uid, $gid) = stat($file);
966
+ .Ve
967
+ .PP
968
+ As of Perl 5.22, you can also use \f(CW\*(C`(undef)x2\*(C'\fR instead of \f(CW\*(C`undef, undef\*(C'\fR.
969
+ (You can also do \f(CW\*(C`($x) x 2\*(C'\fR, which is less useful, because it assigns to
970
+ the same variable twice, clobbering the first value assigned.)
971
+ .PP
972
+ When you assign a list of scalars to an array, all previous values in that
973
+ array are wiped out and the number of elements in the array will now be equal to
974
+ the number of elements in the right-hand list \*(-- the list from which
975
+ assignment was made. The array will automatically resize itself to precisely
976
+ accommodate each element in the right-hand list.
977
+ .PP
978
+ .Vb 2
979
+ \& use warnings;
980
+ \& my (@xyz, $x, $y, $z);
981
+ \&
982
+ \& @xyz = (1, 2, 3);
983
+ \& print "@xyz\en"; # 1 2 3
984
+ \&
985
+ \& @xyz = (\*(Aqal\*(Aq, \*(Aqbe\*(Aq, \*(Aqga\*(Aq, \*(Aqde\*(Aq);
986
+ \& print "@xyz\en"; # al be ga de
987
+ \&
988
+ \& @xyz = (101, 102);
989
+ \& print "@xyz\en"; # 101 102
990
+ .Ve
991
+ .PP
992
+ When, however, you assign a list of scalars to another list of scalars, the
993
+ results differ according to whether the left-hand list \*(-- the list being
994
+ assigned to \*(-- has the same, more or fewer elements than the right-hand list.
995
+ .PP
996
+ .Vb 2
997
+ \& ($x, $y, $z) = (1, 2, 3);
998
+ \& print "$x $y $z\en"; # 1 2 3
999
+ \&
1000
+ \& ($x, $y, $z) = (\*(Aqal\*(Aq, \*(Aqbe\*(Aq, \*(Aqga\*(Aq, \*(Aqde\*(Aq);
1001
+ \& print "$x $y $z\en"; # al be ga
1002
+ \&
1003
+ \& ($x, $y, $z) = (101, 102);
1004
+ \& print "$x $y $z\en"; # 101 102
1005
+ \& # Use of uninitialized value $z in concatenation (.)
1006
+ \& # or string at [program] line [line number].
1007
+ .Ve
1008
+ .PP
1009
+ If the number of scalars in the left-hand list is less than that in the
1010
+ right-hand list, the \*(L"extra\*(R" scalars in the right-hand list will simply not be
1011
+ assigned.
1012
+ .PP
1013
+ If the number of scalars in the left-hand list is greater than that in the
1014
+ left-hand list, the \*(L"missing\*(R" scalars will become undefined.
1015
+ .PP
1016
+ .Vb 6
1017
+ \& ($x, $y, $z) = (101, 102);
1018
+ \& for my $el ($x, $y, $z) {
1019
+ \& (defined $el) ? print "$el " : print "<undef>";
1020
+ \& }
1021
+ \& print "\en";
1022
+ \& # 101 102 <undef>
1023
+ .Ve
1024
+ .PP
1025
+ List assignment in scalar context returns the number of elements
1026
+ produced by the expression on the right side of the assignment:
1027
+ .PP
1028
+ .Vb 2
1029
+ \& $x = (($foo,$bar) = (3,2,1)); # set $x to 3, not 2
1030
+ \& $x = (($foo,$bar) = f()); # set $x to f()\*(Aqs return count
1031
+ .Ve
1032
+ .PP
1033
+ This is handy when you want to do a list assignment in a Boolean
1034
+ context, because most list functions return a null list when finished,
1035
+ which when assigned produces a 0, which is interpreted as \s-1FALSE.\s0
1036
+ .PP
1037
+ It's also the source of a useful idiom for executing a function or
1038
+ performing an operation in list context and then counting the number of
1039
+ return values, by assigning to an empty list and then using that
1040
+ assignment in scalar context. For example, this code:
1041
+ .PP
1042
+ .Vb 1
1043
+ \& $count = () = $string =~ /\ed+/g;
1044
+ .Ve
1045
+ .PP
1046
+ will place into \f(CW$count\fR the number of digit groups found in \f(CW$string\fR.
1047
+ This happens because the pattern match is in list context (since it
1048
+ is being assigned to the empty list), and will therefore return a list
1049
+ of all matching parts of the string. The list assignment in scalar
1050
+ context will translate that into the number of elements (here, the
1051
+ number of times the pattern matched) and assign that to \f(CW$count\fR. Note
1052
+ that simply using
1053
+ .PP
1054
+ .Vb 1
1055
+ \& $count = $string =~ /\ed+/g;
1056
+ .Ve
1057
+ .PP
1058
+ would not have worked, since a pattern match in scalar context will
1059
+ only return true or false, rather than a count of matches.
1060
+ .PP
1061
+ The final element of a list assignment may be an array or a hash:
1062
+ .PP
1063
+ .Vb 2
1064
+ \& ($x, $y, @rest) = split;
1065
+ \& my($x, $y, %rest) = @_;
1066
+ .Ve
1067
+ .PP
1068
+ You can actually put an array or hash anywhere in the list, but the first one
1069
+ in the list will soak up all the values, and anything after it will become
1070
+ undefined. This may be useful in a \fBmy()\fR or \fBlocal()\fR.
1071
+ .PP
1072
+ A hash can be initialized using a literal list holding pairs of
1073
+ items to be interpreted as a key and a value:
1074
+ .PP
1075
+ .Vb 2
1076
+ \& # same as map assignment above
1077
+ \& %map = (\*(Aqred\*(Aq,0x00f,\*(Aqblue\*(Aq,0x0f0,\*(Aqgreen\*(Aq,0xf00);
1078
+ .Ve
1079
+ .PP
1080
+ While literal lists and named arrays are often interchangeable, that's
1081
+ not the case for hashes. Just because you can subscript a list value like
1082
+ a normal array does not mean that you can subscript a list value as a
1083
+ hash. Likewise, hashes included as parts of other lists (including
1084
+ parameters lists and return lists from functions) always flatten out into
1085
+ key/value pairs. That's why it's good to use references sometimes.
1086
+ .PP
1087
+ It is often more readable to use the \f(CW\*(C`=>\*(C'\fR operator between key/value
1088
+ pairs. The \f(CW\*(C`=>\*(C'\fR operator is mostly just a more visually distinctive
1089
+ synonym for a comma, but it also arranges for its left-hand operand to be
1090
+ interpreted as a string if it's a bareword that would be a legal simple
1091
+ identifier. \f(CW\*(C`=>\*(C'\fR doesn't quote compound identifiers, that contain
1092
+ double colons. This makes it nice for initializing hashes:
1093
+ .PP
1094
+ .Vb 5
1095
+ \& %map = (
1096
+ \& red => 0x00f,
1097
+ \& blue => 0x0f0,
1098
+ \& green => 0xf00,
1099
+ \& );
1100
+ .Ve
1101
+ .PP
1102
+ or for initializing hash references to be used as records:
1103
+ .PP
1104
+ .Vb 5
1105
+ \& $rec = {
1106
+ \& witch => \*(AqMable the Merciless\*(Aq,
1107
+ \& cat => \*(AqFluffy the Ferocious\*(Aq,
1108
+ \& date => \*(Aq10/31/1776\*(Aq,
1109
+ \& };
1110
+ .Ve
1111
+ .PP
1112
+ or for using call-by-named-parameter to complicated functions:
1113
+ .PP
1114
+ .Vb 7
1115
+ \& $field = $query\->radio_group(
1116
+ \& name => \*(Aqgroup_name\*(Aq,
1117
+ \& values => [\*(Aqeenie\*(Aq,\*(Aqmeenie\*(Aq,\*(Aqminie\*(Aq],
1118
+ \& default => \*(Aqmeenie\*(Aq,
1119
+ \& linebreak => \*(Aqtrue\*(Aq,
1120
+ \& labels => \e%labels
1121
+ \& );
1122
+ .Ve
1123
+ .PP
1124
+ Note that just because a hash is initialized in that order doesn't
1125
+ mean that it comes out in that order. See \*(L"sort\*(R" in perlfunc for examples
1126
+ of how to arrange for an output ordering.
1127
+ .PP
1128
+ If a key appears more than once in the initializer list of a hash, the last
1129
+ occurrence wins:
1130
+ .PP
1131
+ .Vb 7
1132
+ \& %circle = (
1133
+ \& center => [5, 10],
1134
+ \& center => [27, 9],
1135
+ \& radius => 100,
1136
+ \& color => [0xDF, 0xFF, 0x00],
1137
+ \& radius => 54,
1138
+ \& );
1139
+ \&
1140
+ \& # same as
1141
+ \& %circle = (
1142
+ \& center => [27, 9],
1143
+ \& color => [0xDF, 0xFF, 0x00],
1144
+ \& radius => 54,
1145
+ \& );
1146
+ .Ve
1147
+ .PP
1148
+ This can be used to provide overridable configuration defaults:
1149
+ .PP
1150
+ .Vb 2
1151
+ \& # values in %args take priority over %config_defaults
1152
+ \& %config = (%config_defaults, %args);
1153
+ .Ve
1154
+ .SS "Subscripts"
1155
+ .IX Subsection "Subscripts"
1156
+ An array can be accessed one scalar at a
1157
+ time by specifying a dollar sign (\f(CW\*(C`$\*(C'\fR), then the
1158
+ name of the array (without the leading \f(CW\*(C`@\*(C'\fR), then the subscript inside
1159
+ square brackets. For example:
1160
+ .PP
1161
+ .Vb 2
1162
+ \& @myarray = (5, 50, 500, 5000);
1163
+ \& print "The Third Element is", $myarray[2], "\en";
1164
+ .Ve
1165
+ .PP
1166
+ The array indices start with 0. A negative subscript retrieves its
1167
+ value from the end. In our example, \f(CW$myarray[\-1]\fR would have been
1168
+ 5000, and \f(CW$myarray[\-2]\fR would have been 500.
1169
+ .PP
1170
+ Hash subscripts are similar, only instead of square brackets curly brackets
1171
+ are used. For example:
1172
+ .PP
1173
+ .Vb 7
1174
+ \& %scientists =
1175
+ \& (
1176
+ \& "Newton" => "Isaac",
1177
+ \& "Einstein" => "Albert",
1178
+ \& "Darwin" => "Charles",
1179
+ \& "Feynman" => "Richard",
1180
+ \& );
1181
+ \&
1182
+ \& print "Darwin\*(Aqs First Name is ", $scientists{"Darwin"}, "\en";
1183
+ .Ve
1184
+ .PP
1185
+ You can also subscript a list to get a single element from it:
1186
+ .PP
1187
+ .Vb 1
1188
+ \& $dir = (getpwnam("daemon"))[7];
1189
+ .Ve
1190
+ .SS "Multi-dimensional array emulation"
1191
+ .IX Subsection "Multi-dimensional array emulation"
1192
+ Multidimensional arrays may be emulated by subscripting a hash with a
1193
+ list. The elements of the list are joined with the subscript separator
1194
+ (see \*(L"$;\*(R" in perlvar).
1195
+ .PP
1196
+ .Vb 1
1197
+ \& $foo{$x,$y,$z}
1198
+ .Ve
1199
+ .PP
1200
+ is equivalent to
1201
+ .PP
1202
+ .Vb 1
1203
+ \& $foo{join($;, $x, $y, $z)}
1204
+ .Ve
1205
+ .PP
1206
+ The default subscript separator is \*(L"\e034\*(R", the same as \s-1SUBSEP\s0 in \fBawk\fR.
1207
+ .SS "Slices"
1208
+ .IX Xref "slice array, slice hash, slice"
1209
+ .IX Subsection "Slices"
1210
+ A slice accesses several elements of a list, an array, or a hash
1211
+ simultaneously using a list of subscripts. It's more convenient
1212
+ than writing out the individual elements as a list of separate
1213
+ scalar values.
1214
+ .PP
1215
+ .Vb 4
1216
+ \& ($him, $her) = @folks[0,\-1]; # array slice
1217
+ \& @them = @folks[0 .. 3]; # array slice
1218
+ \& ($who, $home) = @ENV{"USER", "HOME"}; # hash slice
1219
+ \& ($uid, $dir) = (getpwnam("daemon"))[2,7]; # list slice
1220
+ .Ve
1221
+ .PP
1222
+ Since you can assign to a list of variables, you can also assign to
1223
+ an array or hash slice.
1224
+ .PP
1225
+ .Vb 4
1226
+ \& @days[3..5] = qw/Wed Thu Fri/;
1227
+ \& @colors{\*(Aqred\*(Aq,\*(Aqblue\*(Aq,\*(Aqgreen\*(Aq}
1228
+ \& = (0xff0000, 0x0000ff, 0x00ff00);
1229
+ \& @folks[0, \-1] = @folks[\-1, 0];
1230
+ .Ve
1231
+ .PP
1232
+ The previous assignments are exactly equivalent to
1233
+ .PP
1234
+ .Vb 4
1235
+ \& ($days[3], $days[4], $days[5]) = qw/Wed Thu Fri/;
1236
+ \& ($colors{\*(Aqred\*(Aq}, $colors{\*(Aqblue\*(Aq}, $colors{\*(Aqgreen\*(Aq})
1237
+ \& = (0xff0000, 0x0000ff, 0x00ff00);
1238
+ \& ($folks[0], $folks[\-1]) = ($folks[\-1], $folks[0]);
1239
+ .Ve
1240
+ .PP
1241
+ Since changing a slice changes the original array or hash that it's
1242
+ slicing, a \f(CW\*(C`foreach\*(C'\fR construct will alter some\*(--or even all\*(--of the
1243
+ values of the array or hash.
1244
+ .PP
1245
+ .Vb 1
1246
+ \& foreach (@array[ 4 .. 10 ]) { s/peter/paul/ }
1247
+ \&
1248
+ \& foreach (@hash{qw[key1 key2]}) {
1249
+ \& s/^\es+//; # trim leading whitespace
1250
+ \& s/\es+$//; # trim trailing whitespace
1251
+ \& s/(\ew+)/\eu\eL$1/g; # "titlecase" words
1252
+ \& }
1253
+ .Ve
1254
+ .PP
1255
+ As a special exception, when you slice a list (but not an array or a hash),
1256
+ if the list evaluates to empty, then taking a slice of that empty list will
1257
+ always yield the empty list in turn. Thus:
1258
+ .PP
1259
+ .Vb 6
1260
+ \& @a = ()[0,1]; # @a has no elements
1261
+ \& @b = (@a)[0,1]; # @b has no elements
1262
+ \& @c = (sub{}\->())[0,1]; # @c has no elements
1263
+ \& @d = (\*(Aqa\*(Aq,\*(Aqb\*(Aq)[0,1]; # @d has two elements
1264
+ \& @e = (@d)[0,1,8,9]; # @e has four elements
1265
+ \& @f = (@d)[8,9]; # @f has two elements
1266
+ .Ve
1267
+ .PP
1268
+ This makes it easy to write loops that terminate when a null list
1269
+ is returned:
1270
+ .PP
1271
+ .Vb 3
1272
+ \& while ( ($home, $user) = (getpwent)[7,0] ) {
1273
+ \& printf "%\-8s %s\en", $user, $home;
1274
+ \& }
1275
+ .Ve
1276
+ .PP
1277
+ As noted earlier in this document, the scalar sense of list assignment
1278
+ is the number of elements on the right-hand side of the assignment.
1279
+ The null list contains no elements, so when the password file is
1280
+ exhausted, the result is 0, not 2.
1281
+ .PP
1282
+ Slices in scalar context return the last item of the slice.
1283
+ .PP
1284
+ .Vb 4
1285
+ \& @a = qw/first second third/;
1286
+ \& %h = (first => \*(AqA\*(Aq, second => \*(AqB\*(Aq);
1287
+ \& $t = @a[0, 1]; # $t is now \*(Aqsecond\*(Aq
1288
+ \& $u = @h{\*(Aqfirst\*(Aq, \*(Aqsecond\*(Aq}; # $u is now \*(AqB\*(Aq
1289
+ .Ve
1290
+ .PP
1291
+ If you're confused about why you use an '@' there on a hash slice
1292
+ instead of a '%', think of it like this. The type of bracket (square
1293
+ or curly) governs whether it's an array or a hash being looked at.
1294
+ On the other hand, the leading symbol ('$' or '@') on the array or
1295
+ hash indicates whether you are getting back a singular value (a
1296
+ scalar) or a plural one (a list).
1297
+ .PP
1298
+ \fIKey/Value Hash Slices\fR
1299
+ .IX Subsection "Key/Value Hash Slices"
1300
+ .PP
1301
+ Starting in Perl 5.20, a hash slice operation
1302
+ with the % symbol is a variant of slice operation
1303
+ returning a list of key/value pairs rather than just values:
1304
+ .PP
1305
+ .Vb 6
1306
+ \& %h = (blonk => 2, foo => 3, squink => 5, bar => 8);
1307
+ \& %subset = %h{\*(Aqfoo\*(Aq, \*(Aqbar\*(Aq}; # key/value hash slice
1308
+ \& # %subset is now (foo => 3, bar => 8)
1309
+ \& %removed = delete %h{\*(Aqfoo\*(Aq, \*(Aqbar\*(Aq};
1310
+ \& # %removed is now (foo => 3, bar => 8)
1311
+ \& # %h is now (blonk => 2, squink => 5)
1312
+ .Ve
1313
+ .PP
1314
+ However, the result of such a slice cannot be localized or assigned to.
1315
+ These are otherwise very much consistent with hash slices
1316
+ using the @ symbol.
1317
+ .PP
1318
+ \fIIndex/Value Array Slices\fR
1319
+ .IX Subsection "Index/Value Array Slices"
1320
+ .PP
1321
+ Similar to key/value hash slices (and also introduced
1322
+ in Perl 5.20), the % array slice syntax returns a list
1323
+ of index/value pairs:
1324
+ .PP
1325
+ .Vb 6
1326
+ \& @a = "a".."z";
1327
+ \& @list = %a[3,4,6];
1328
+ \& # @list is now (3, "d", 4, "e", 6, "g")
1329
+ \& @removed = delete %a[3,4,6]
1330
+ \& # @removed is now (3, "d", 4, "e", 6, "g")
1331
+ \& # @list[3,4,6] are now undef
1332
+ .Ve
1333
+ .PP
1334
+ Note that calling \f(CW\*(C`delete\*(C'\fR on array values is
1335
+ strongly discouraged.
1336
+ .SS "Typeglobs and Filehandles"
1337
+ .IX Xref "typeglob filehandle *"
1338
+ .IX Subsection "Typeglobs and Filehandles"
1339
+ Perl uses an internal type called a \fItypeglob\fR to hold an entire
1340
+ symbol table entry. The type prefix of a typeglob is a \f(CW\*(C`*\*(C'\fR, because
1341
+ it represents all types. This used to be the preferred way to
1342
+ pass arrays and hashes by reference into a function, but now that
1343
+ we have real references, this is seldom needed.
1344
+ .PP
1345
+ The main use of typeglobs in modern Perl is create symbol table aliases.
1346
+ This assignment:
1347
+ .PP
1348
+ .Vb 1
1349
+ \& *this = *that;
1350
+ .Ve
1351
+ .PP
1352
+ makes \f(CW$this\fR an alias for \f(CW$that\fR, \f(CW@this\fR an alias for \f(CW@that\fR, \f(CW%this\fR an alias
1353
+ for \f(CW%that\fR, &this an alias for &that, etc. Much safer is to use a reference.
1354
+ This:
1355
+ .PP
1356
+ .Vb 1
1357
+ \& local *Here::blue = \e$There::green;
1358
+ .Ve
1359
+ .PP
1360
+ temporarily makes \f(CW$Here::blue\fR an alias for \f(CW$There::green\fR, but doesn't
1361
+ make \f(CW@Here::blue\fR an alias for \f(CW@There::green\fR, or \f(CW%Here::blue\fR an alias for
1362
+ \&\f(CW%There::green\fR, etc. See \*(L"Symbol Tables\*(R" in perlmod for more examples
1363
+ of this. Strange though this may seem, this is the basis for the whole
1364
+ module import/export system.
1365
+ .PP
1366
+ Another use for typeglobs is to pass filehandles into a function or
1367
+ to create new filehandles. If you need to use a typeglob to save away
1368
+ a filehandle, do it this way:
1369
+ .PP
1370
+ .Vb 1
1371
+ \& $fh = *STDOUT;
1372
+ .Ve
1373
+ .PP
1374
+ or perhaps as a real reference, like this:
1375
+ .PP
1376
+ .Vb 1
1377
+ \& $fh = \e*STDOUT;
1378
+ .Ve
1379
+ .PP
1380
+ See perlsub for examples of using these as indirect filehandles
1381
+ in functions.
1382
+ .PP
1383
+ Typeglobs are also a way to create a local filehandle using the \fBlocal()\fR
1384
+ operator. These last until their block is exited, but may be passed back.
1385
+ For example:
1386
+ .PP
1387
+ .Vb 7
1388
+ \& sub newopen {
1389
+ \& my $path = shift;
1390
+ \& local *FH; # not my!
1391
+ \& open (FH, $path) or return undef;
1392
+ \& return *FH;
1393
+ \& }
1394
+ \& $fh = newopen(\*(Aq/etc/passwd\*(Aq);
1395
+ .Ve
1396
+ .PP
1397
+ Now that we have the \f(CW*foo{THING}\fR notation, typeglobs aren't used as much
1398
+ for filehandle manipulations, although they're still needed to pass brand
1399
+ new file and directory handles into or out of functions. That's because
1400
+ \&\f(CW*HANDLE{IO}\fR only works if \s-1HANDLE\s0 has already been used as a handle.
1401
+ In other words, \f(CW*FH\fR must be used to create new symbol table entries;
1402
+ \&\f(CW*foo{THING}\fR cannot. When in doubt, use \f(CW*FH\fR.
1403
+ .PP
1404
+ All functions that are capable of creating filehandles (\fBopen()\fR,
1405
+ \&\fBopendir()\fR, \fBpipe()\fR, \fBsocketpair()\fR, \fBsysopen()\fR, \fBsocket()\fR, and \fBaccept()\fR)
1406
+ automatically create an anonymous filehandle if the handle passed to
1407
+ them is an uninitialized scalar variable. This allows the constructs
1408
+ such as \f(CW\*(C`open(my $fh, ...)\*(C'\fR and \f(CW\*(C`open(local $fh,...)\*(C'\fR to be used to
1409
+ create filehandles that will conveniently be closed automatically when
1410
+ the scope ends, provided there are no other references to them. This
1411
+ largely eliminates the need for typeglobs when opening filehandles
1412
+ that must be passed around, as in the following example:
1413
+ .PP
1414
+ .Vb 5
1415
+ \& sub myopen {
1416
+ \& open my $fh, "@_"
1417
+ \& or die "Can\*(Aqt open \*(Aq@_\*(Aq: $!";
1418
+ \& return $fh;
1419
+ \& }
1420
+ \&
1421
+ \& {
1422
+ \& my $f = myopen("</etc/motd");
1423
+ \& print <$f>;
1424
+ \& # $f implicitly closed here
1425
+ \& }
1426
+ .Ve
1427
+ .PP
1428
+ Note that if an initialized scalar variable is used instead the
1429
+ result is different: \f(CW\*(C`my $fh=\*(Aqzzz\*(Aq; open($fh, ...)\*(C'\fR is equivalent
1430
+ to \f(CW\*(C`open( *{\*(Aqzzz\*(Aq}, ...)\*(C'\fR.
1431
+ \&\f(CW\*(C`use strict \*(Aqrefs\*(Aq\*(C'\fR forbids such practice.
1432
+ .PP
1433
+ Another way to create anonymous filehandles is with the Symbol
1434
+ module or with the IO::Handle module and its ilk. These modules
1435
+ have the advantage of not hiding different types of the same name
1436
+ during the \fBlocal()\fR. See the bottom of \*(L"open\*(R" in perlfunc for an
1437
+ example.
1438
+ .SH "SEE ALSO"
1439
+ .IX Header "SEE ALSO"
1440
+ See perlvar for a description of Perl's built-in variables and
1441
+ a discussion of legal variable names. See perlref, perlsub,
1442
+ and \*(L"Symbol Tables\*(R" in perlmod for more discussion on typeglobs and
1443
+ the \f(CW*foo{THING}\fR syntax.
data/miniconda3/man/man1/perldebtut.1 ADDED
@@ -0,0 +1,948 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "PERLDEBTUT 1"
136
+ .TH PERLDEBTUT 1 "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
+ perldebtut \- Perl debugging tutorial
143
+ .SH "DESCRIPTION"
144
+ .IX Header "DESCRIPTION"
145
+ A (very) lightweight introduction in the use of the perl debugger, and a
146
+ pointer to existing, deeper sources of information on the subject of debugging
147
+ perl programs.
148
+ .PP
149
+ There's an extraordinary number of people out there who don't appear to know
150
+ anything about using the perl debugger, though they use the language every
151
+ day.
152
+ This is for them.
153
+ .SH "use strict"
154
+ .IX Header "use strict"
155
+ First of all, there's a few things you can do to make your life a lot more
156
+ straightforward when it comes to debugging perl programs, without using the
157
+ debugger at all. To demonstrate, here's a simple script, named \*(L"hello\*(R", with
158
+ a problem:
159
+ .PP
160
+ .Vb 1
161
+ \& #!/usr/bin/perl
162
+ \&
163
+ \& $var1 = \*(AqHello World\*(Aq; # always wanted to do that :\-)
164
+ \& $var2 = "$varl\en";
165
+ \&
166
+ \& print $var2;
167
+ \& exit;
168
+ .Ve
169
+ .PP
170
+ While this compiles and runs happily, it probably won't do what's expected,
171
+ namely it doesn't print \*(L"Hello World\en\*(R" at all; It will on the other hand do
172
+ exactly what it was told to do, computers being a bit that way inclined. That
173
+ is, it will print out a newline character, and you'll get what looks like a
174
+ blank line. It looks like there's 2 variables when (because of the typo)
175
+ there's really 3:
176
+ .PP
177
+ .Vb 3
178
+ \& $var1 = \*(AqHello World\*(Aq;
179
+ \& $varl = undef;
180
+ \& $var2 = "\en";
181
+ .Ve
182
+ .PP
183
+ To catch this kind of problem, we can force each variable to be declared
184
+ before use by pulling in the strict module, by putting 'use strict;' after the
185
+ first line of the script.
186
+ .PP
187
+ Now when you run it, perl complains about the 3 undeclared variables and we
188
+ get four error messages because one variable is referenced twice:
189
+ .PP
190
+ .Vb 5
191
+ \& Global symbol "$var1" requires explicit package name at ./t1 line 4.
192
+ \& Global symbol "$var2" requires explicit package name at ./t1 line 5.
193
+ \& Global symbol "$varl" requires explicit package name at ./t1 line 5.
194
+ \& Global symbol "$var2" requires explicit package name at ./t1 line 7.
195
+ \& Execution of ./hello aborted due to compilation errors.
196
+ .Ve
197
+ .PP
198
+ Luvverly! and to fix this we declare all variables explicitly and now our
199
+ script looks like this:
200
+ .PP
201
+ .Vb 2
202
+ \& #!/usr/bin/perl
203
+ \& use strict;
204
+ \&
205
+ \& my $var1 = \*(AqHello World\*(Aq;
206
+ \& my $varl = undef;
207
+ \& my $var2 = "$varl\en";
208
+ \&
209
+ \& print $var2;
210
+ \& exit;
211
+ .Ve
212
+ .PP
213
+ We then do (always a good idea) a syntax check before we try to run it again:
214
+ .PP
215
+ .Vb 2
216
+ \& > perl \-c hello
217
+ \& hello syntax OK
218
+ .Ve
219
+ .PP
220
+ And now when we run it, we get \*(L"\en\*(R" still, but at least we know why. Just
221
+ getting this script to compile has exposed the '$varl' (with the letter 'l')
222
+ variable, and simply changing \f(CW$varl\fR to \f(CW$var1\fR solves the problem.
223
+ .SH "Looking at data and \-w and v"
224
+ .IX Header "Looking at data and -w and v"
225
+ Ok, but how about when you want to really see your data, what's in that
226
+ dynamic variable, just before using it?
227
+ .PP
228
+ .Vb 2
229
+ \& #!/usr/bin/perl
230
+ \& use strict;
231
+ \&
232
+ \& my $key = \*(Aqwelcome\*(Aq;
233
+ \& my %data = (
234
+ \& \*(Aqthis\*(Aq => qw(that),
235
+ \& \*(Aqtom\*(Aq => qw(and jerry),
236
+ \& \*(Aqwelcome\*(Aq => q(Hello World),
237
+ \& \*(Aqzip\*(Aq => q(welcome),
238
+ \& );
239
+ \& my @data = keys %data;
240
+ \&
241
+ \& print "$data{$key}\en";
242
+ \& exit;
243
+ .Ve
244
+ .PP
245
+ Looks \s-1OK,\s0 after it's been through the syntax check (perl \-c scriptname), we
246
+ run it and all we get is a blank line again! Hmmmm.
247
+ .PP
248
+ One common debugging approach here, would be to liberally sprinkle a few print
249
+ statements, to add a check just before we print out our data, and another just
250
+ after:
251
+ .PP
252
+ .Vb 3
253
+ \& print "All OK\en" if grep($key, keys %data);
254
+ \& print "$data{$key}\en";
255
+ \& print "done: \*(Aq$data{$key}\*(Aq\en";
256
+ .Ve
257
+ .PP
258
+ And try again:
259
+ .PP
260
+ .Vb 2
261
+ \& > perl data
262
+ \& All OK
263
+ \&
264
+ \& done: \*(Aq\*(Aq
265
+ .Ve
266
+ .PP
267
+ After much staring at the same piece of code and not seeing the wood for the
268
+ trees for some time, we get a cup of coffee and try another approach. That
269
+ is, we bring in the cavalry by giving perl the '\fB\-d\fR' switch on the command
270
+ line:
271
+ .PP
272
+ .Vb 2
273
+ \& > perl \-d data
274
+ \& Default die handler restored.
275
+ \&
276
+ \& Loading DB routines from perl5db.pl version 1.07
277
+ \& Editor support available.
278
+ \&
279
+ \& Enter h or \`h h\*(Aq for help, or \`man perldebug\*(Aq for more help.
280
+ \&
281
+ \& main::(./data:4): my $key = \*(Aqwelcome\*(Aq;
282
+ .Ve
283
+ .PP
284
+ Now, what we've done here is to launch the built-in perl debugger on our
285
+ script. It's stopped at the first line of executable code and is waiting for
286
+ input.
287
+ .PP
288
+ Before we go any further, you'll want to know how to quit the debugger: use
289
+ just the letter '\fBq\fR', not the words 'quit' or 'exit':
290
+ .PP
291
+ .Vb 2
292
+ \& DB<1> q
293
+ \& >
294
+ .Ve
295
+ .PP
296
+ That's it, you're back on home turf again.
297
+ .SH "help"
298
+ .IX Header "help"
299
+ Fire the debugger up again on your script and we'll look at the help menu.
300
+ There's a couple of ways of calling help: a simple '\fBh\fR' will get the summary
301
+ help list, '\fB|h\fR' (pipe-h) will pipe the help through your pager (which is
302
+ (probably 'more' or 'less'), and finally, '\fBh h\fR' (h\-space-h) will give you
303
+ the entire help screen. Here is the summary page:
304
+ .PP
305
+ D\fB1\fRh
306
+ .PP
307
+ .Vb 10
308
+ \& List/search source lines: Control script execution:
309
+ \& l [ln|sub] List source code T Stack trace
310
+ \& \- or . List previous/current line s [expr] Single step
311
+ \& [in expr]
312
+ \& v [line] View around line n [expr] Next, steps over
313
+ \& subs
314
+ \& f filename View source in file <CR/Enter> Repeat last n or s
315
+ \& /pattern/ ?patt? Search forw/backw r Return from
316
+ \& subroutine
317
+ \& M Show module versions c [ln|sub] Continue until
318
+ \& position
319
+ \& Debugger controls: L List break/watch/
320
+ \& actions
321
+ \& o [...] Set debugger options t [expr] Toggle trace
322
+ \& [trace expr]
323
+ \& <[<]|{[{]|>[>] [cmd] Do pre/post\-prompt b [ln|event|sub] [cnd] Set
324
+ \& breakpoint
325
+ \& ! [N|pat] Redo a previous command B ln|* Delete a/all
326
+ \& breakpoints
327
+ \& H [\-num] Display last num commands a [ln] cmd Do cmd before line
328
+ \& = [a val] Define/list an alias A ln|* Delete a/all
329
+ \& actions
330
+ \& h [db_cmd] Get help on command w expr Add a watch
331
+ \& expression
332
+ \& h h Complete help page W expr|* Delete a/all watch
333
+ \& exprs
334
+ \& |[|]db_cmd Send output to pager ![!] syscmd Run cmd in a
335
+ \& subprocess
336
+ \& q or ^D Quit R Attempt a restart
337
+ \& Data Examination: expr Execute perl code, also see: s,n,t expr
338
+ \& x|m expr Evals expr in list context, dumps the result or lists
339
+ \& methods.
340
+ \& p expr Print expression (uses script\*(Aqs current package).
341
+ \& S [[!]pat] List subroutine names [not] matching pattern
342
+ \& V [Pk [Vars]] List Variables in Package. Vars can be ~pattern or
343
+ \& !pattern.
344
+ \& X [Vars] Same as "V current_package [Vars]".
345
+ \& y [n [Vars]] List lexicals in higher scope <n>. Vars same as V.
346
+ \& For more help, type h cmd_letter, or run man perldebug for all docs.
347
+ .Ve
348
+ .PP
349
+ More confusing options than you can shake a big stick at! It's not as bad as
350
+ it looks and it's very useful to know more about all of it, and fun too!
351
+ .PP
352
+ There's a couple of useful ones to know about straight away. You wouldn't
353
+ think we're using any libraries at all at the moment, but '\fBM\fR' will show
354
+ which modules are currently loaded, and their version number, while '\fBm\fR'
355
+ will show the methods, and '\fBS\fR' shows all subroutines (by pattern) as
356
+ shown below. '\fBV\fR' and '\fBX\fR' show variables in the program by package
357
+ scope and can be constrained by pattern.
358
+ .PP
359
+ .Vb 5
360
+ \& DB<2>S str
361
+ \& dumpvar::stringify
362
+ \& strict::bits
363
+ \& strict::import
364
+ \& strict::unimport
365
+ .Ve
366
+ .PP
367
+ Using 'X' and cousins requires you not to use the type identifiers ($@%), just
368
+ the 'name':
369
+ .PP
370
+ .Vb 2
371
+ \& DM<3>X ~err
372
+ \& FileHandle(stderr) => fileno(2)
373
+ .Ve
374
+ .PP
375
+ Remember we're in our tiny program with a problem, we should have a look at
376
+ where we are, and what our data looks like. First of all let's view some code
377
+ at our present position (the first line of code in this case), via '\fBv\fR':
378
+ .PP
379
+ .Vb 11
380
+ \& DB<4> v
381
+ \& 1 #!/usr/bin/perl
382
+ \& 2: use strict;
383
+ \& 3
384
+ \& 4==> my $key = \*(Aqwelcome\*(Aq;
385
+ \& 5: my %data = (
386
+ \& 6 \*(Aqthis\*(Aq => qw(that),
387
+ \& 7 \*(Aqtom\*(Aq => qw(and jerry),
388
+ \& 8 \*(Aqwelcome\*(Aq => q(Hello World),
389
+ \& 9 \*(Aqzip\*(Aq => q(welcome),
390
+ \& 10 );
391
+ .Ve
392
+ .PP
393
+ At line number 4 is a helpful pointer, that tells you where you are now. To
394
+ see more code, type 'v' again:
395
+ .PP
396
+ .Vb 9
397
+ \& DB<4> v
398
+ \& 8 \*(Aqwelcome\*(Aq => q(Hello World),
399
+ \& 9 \*(Aqzip\*(Aq => q(welcome),
400
+ \& 10 );
401
+ \& 11: my @data = keys %data;
402
+ \& 12: print "All OK\en" if grep($key, keys %data);
403
+ \& 13: print "$data{$key}\en";
404
+ \& 14: print "done: \*(Aq$data{$key}\*(Aq\en";
405
+ \& 15: exit;
406
+ .Ve
407
+ .PP
408
+ And if you wanted to list line 5 again, type 'l 5', (note the space):
409
+ .PP
410
+ .Vb 2
411
+ \& DB<4> l 5
412
+ \& 5: my %data = (
413
+ .Ve
414
+ .PP
415
+ In this case, there's not much to see, but of course normally there's pages of
416
+ stuff to wade through, and 'l' can be very useful. To reset your view to the
417
+ line we're about to execute, type a lone period '.':
418
+ .PP
419
+ .Vb 2
420
+ \& DB<5> .
421
+ \& main::(./data_a:4): my $key = \*(Aqwelcome\*(Aq;
422
+ .Ve
423
+ .PP
424
+ The line shown is the one that is about to be executed \fBnext\fR, it hasn't
425
+ happened yet. So while we can print a variable with the letter '\fBp\fR', at
426
+ this point all we'd get is an empty (undefined) value back. What we need to
427
+ do is to step through the next executable statement with an '\fBs\fR':
428
+ .PP
429
+ .Vb 7
430
+ \& DB<6> s
431
+ \& main::(./data_a:5): my %data = (
432
+ \& main::(./data_a:6): \*(Aqthis\*(Aq => qw(that),
433
+ \& main::(./data_a:7): \*(Aqtom\*(Aq => qw(and jerry),
434
+ \& main::(./data_a:8): \*(Aqwelcome\*(Aq => q(Hello World),
435
+ \& main::(./data_a:9): \*(Aqzip\*(Aq => q(welcome),
436
+ \& main::(./data_a:10): );
437
+ .Ve
438
+ .PP
439
+ Now we can have a look at that first ($key) variable:
440
+ .PP
441
+ .Vb 2
442
+ \& DB<7> p $key
443
+ \& welcome
444
+ .Ve
445
+ .PP
446
+ line 13 is where the action is, so let's continue down to there via the letter
447
+ \&'\fBc\fR', which by the way, inserts a 'one\-time\-only' breakpoint at the given
448
+ line or sub routine:
449
+ .PP
450
+ .Vb 3
451
+ \& DB<8> c 13
452
+ \& All OK
453
+ \& main::(./data_a:13): print "$data{$key}\en";
454
+ .Ve
455
+ .PP
456
+ We've gone past our check (where 'All \s-1OK\s0' was printed) and have stopped just
457
+ before the meat of our task. We could try to print out a couple of variables
458
+ to see what is happening:
459
+ .PP
460
+ .Vb 1
461
+ \& DB<9> p $data{$key}
462
+ .Ve
463
+ .PP
464
+ Not much in there, lets have a look at our hash:
465
+ .PP
466
+ .Vb 2
467
+ \& DB<10> p %data
468
+ \& Hello Worldziptomandwelcomejerrywelcomethisthat
469
+ \&
470
+ \& DB<11> p keys %data
471
+ \& Hello Worldtomwelcomejerrythis
472
+ .Ve
473
+ .PP
474
+ Well, this isn't very easy to read, and using the helpful manual (\fBh h\fR), the
475
+ \&'\fBx\fR' command looks promising:
476
+ .PP
477
+ .Vb 11
478
+ \& DB<12> x %data
479
+ \& 0 \*(AqHello World\*(Aq
480
+ \& 1 \*(Aqzip\*(Aq
481
+ \& 2 \*(Aqtom\*(Aq
482
+ \& 3 \*(Aqand\*(Aq
483
+ \& 4 \*(Aqwelcome\*(Aq
484
+ \& 5 undef
485
+ \& 6 \*(Aqjerry\*(Aq
486
+ \& 7 \*(Aqwelcome\*(Aq
487
+ \& 8 \*(Aqthis\*(Aq
488
+ \& 9 \*(Aqthat\*(Aq
489
+ .Ve
490
+ .PP
491
+ That's not much help, a couple of welcomes in there, but no indication of
492
+ which are keys, and which are values, it's just a listed array dump and, in
493
+ this case, not particularly helpful. The trick here, is to use a \fBreference\fR
494
+ to the data structure:
495
+ .PP
496
+ .Vb 7
497
+ \& DB<13> x \e%data
498
+ \& 0 HASH(0x8194bc4)
499
+ \& \*(AqHello World\*(Aq => \*(Aqzip\*(Aq
500
+ \& \*(Aqjerry\*(Aq => \*(Aqwelcome\*(Aq
501
+ \& \*(Aqthis\*(Aq => \*(Aqthat\*(Aq
502
+ \& \*(Aqtom\*(Aq => \*(Aqand\*(Aq
503
+ \& \*(Aqwelcome\*(Aq => undef
504
+ .Ve
505
+ .PP
506
+ The reference is truly dumped and we can finally see what we're dealing with.
507
+ Our quoting was perfectly valid but wrong for our purposes, with 'and jerry'
508
+ being treated as 2 separate words rather than a phrase, thus throwing the
509
+ evenly paired hash structure out of alignment.
510
+ .PP
511
+ The '\fB\-w\fR' switch would have told us about this, had we used it at the start,
512
+ and saved us a lot of trouble:
513
+ .PP
514
+ .Vb 2
515
+ \& > perl \-w data
516
+ \& Odd number of elements in hash assignment at ./data line 5.
517
+ .Ve
518
+ .PP
519
+ We fix our quoting: 'tom' => q(and jerry), and run it again, this time we get
520
+ our expected output:
521
+ .PP
522
+ .Vb 2
523
+ \& > perl \-w data
524
+ \& Hello World
525
+ .Ve
526
+ .PP
527
+ While we're here, take a closer look at the '\fBx\fR' command, it's really useful
528
+ and will merrily dump out nested references, complete objects, partial objects
529
+ \&\- just about whatever you throw at it:
530
+ .PP
531
+ Let's make a quick object and x\-plode it, first we'll start the debugger:
532
+ it wants some form of input from \s-1STDIN,\s0 so we give it something non-committal,
533
+ a zero:
534
+ .PP
535
+ .Vb 2
536
+ \& > perl \-de 0
537
+ \& Default die handler restored.
538
+ \&
539
+ \& Loading DB routines from perl5db.pl version 1.07
540
+ \& Editor support available.
541
+ \&
542
+ \& Enter h or \`h h\*(Aq for help, or \`man perldebug\*(Aq for more help.
543
+ \&
544
+ \& main::(\-e:1): 0
545
+ .Ve
546
+ .PP
547
+ Now build an on-the-fly object over a couple of lines (note the backslash):
548
+ .PP
549
+ .Vb 2
550
+ \& DB<1> $obj = bless({\*(Aqunique_id\*(Aq=>\*(Aq123\*(Aq, \*(Aqattr\*(Aq=> \e
551
+ \& cont: {\*(Aqcol\*(Aq => \*(Aqblack\*(Aq, \*(Aqthings\*(Aq => [qw(this that etc)]}}, \*(AqMY_class\*(Aq)
552
+ .Ve
553
+ .PP
554
+ And let's have a look at it:
555
+ .PP
556
+ .Vb 10
557
+ \& DB<2> x $obj
558
+ \& 0 MY_class=HASH(0x828ad98)
559
+ \& \*(Aqattr\*(Aq => HASH(0x828ad68)
560
+ \& \*(Aqcol\*(Aq => \*(Aqblack\*(Aq
561
+ \& \*(Aqthings\*(Aq => ARRAY(0x828abb8)
562
+ \& 0 \*(Aqthis\*(Aq
563
+ \& 1 \*(Aqthat\*(Aq
564
+ \& 2 \*(Aqetc\*(Aq
565
+ \& \*(Aqunique_id\*(Aq => 123
566
+ \& DB<3>
567
+ .Ve
568
+ .PP
569
+ Useful, huh? You can eval nearly anything in there, and experiment with bits
570
+ of code or regexes until the cows come home:
571
+ .PP
572
+ .Vb 1
573
+ \& DB<3> @data = qw(this that the other atheism leather theory scythe)
574
+ \&
575
+ \& DB<4> p \*(Aqsaw \-> \*(Aq.($cnt += map { print "\et:\et$_\en" } grep(/the/, sort @data))
576
+ \& atheism
577
+ \& leather
578
+ \& other
579
+ \& scythe
580
+ \& the
581
+ \& theory
582
+ \& saw \-> 6
583
+ .Ve
584
+ .PP
585
+ If you want to see the command History, type an '\fBH\fR':
586
+ .PP
587
+ .Vb 7
588
+ \& DB<5> H
589
+ \& 4: p \*(Aqsaw \-> \*(Aq.($cnt += map { print "\et:\et$_\en" } grep(/the/, sort @data))
590
+ \& 3: @data = qw(this that the other atheism leather theory scythe)
591
+ \& 2: x $obj
592
+ \& 1: $obj = bless({\*(Aqunique_id\*(Aq=>\*(Aq123\*(Aq, \*(Aqattr\*(Aq=>
593
+ \& {\*(Aqcol\*(Aq => \*(Aqblack\*(Aq, \*(Aqthings\*(Aq => [qw(this that etc)]}}, \*(AqMY_class\*(Aq)
594
+ \& DB<5>
595
+ .Ve
596
+ .PP
597
+ And if you want to repeat any previous command, use the exclamation: '\fB!\fR':
598
+ .PP
599
+ .Vb 9
600
+ \& DB<5> !4
601
+ \& p \*(Aqsaw \-> \*(Aq.($cnt += map { print "$_\en" } grep(/the/, sort @data))
602
+ \& atheism
603
+ \& leather
604
+ \& other
605
+ \& scythe
606
+ \& the
607
+ \& theory
608
+ \& saw \-> 12
609
+ .Ve
610
+ .PP
611
+ For more on references see perlref and perlreftut
612
+ .SH "Stepping through code"
613
+ .IX Header "Stepping through code"
614
+ Here's a simple program which converts between Celsius and Fahrenheit, it too
615
+ has a problem:
616
+ .PP
617
+ .Vb 2
618
+ \& #!/usr/bin/perl \-w
619
+ \& use strict;
620
+ \&
621
+ \& my $arg = $ARGV[0] || \*(Aq\-c20\*(Aq;
622
+ \&
623
+ \& if ($arg =~ /^\e\-(c|f)((\e\-|\e+)*\ed+(\e.\ed+)*)$/) {
624
+ \& my ($deg, $num) = ($1, $2);
625
+ \& my ($in, $out) = ($num, $num);
626
+ \& if ($deg eq \*(Aqc\*(Aq) {
627
+ \& $deg = \*(Aqf\*(Aq;
628
+ \& $out = &c2f($num);
629
+ \& } else {
630
+ \& $deg = \*(Aqc\*(Aq;
631
+ \& $out = &f2c($num);
632
+ \& }
633
+ \& $out = sprintf(\*(Aq%0.2f\*(Aq, $out);
634
+ \& $out =~ s/^((\e\-|\e+)*\ed+)\e.0+$/$1/;
635
+ \& print "$out $deg\en";
636
+ \& } else {
637
+ \& print "Usage: $0 \-[c|f] num\en";
638
+ \& }
639
+ \& exit;
640
+ \&
641
+ \& sub f2c {
642
+ \& my $f = shift;
643
+ \& my $c = 5 * $f \- 32 / 9;
644
+ \& return $c;
645
+ \& }
646
+ \&
647
+ \& sub c2f {
648
+ \& my $c = shift;
649
+ \& my $f = 9 * $c / 5 + 32;
650
+ \& return $f;
651
+ \& }
652
+ .Ve
653
+ .PP
654
+ For some reason, the Fahrenheit to Celsius conversion fails to return the
655
+ expected output. This is what it does:
656
+ .PP
657
+ .Vb 2
658
+ \& > temp \-c0.72
659
+ \& 33.30 f
660
+ \&
661
+ \& > temp \-f33.3
662
+ \& 162.94 c
663
+ .Ve
664
+ .PP
665
+ Not very consistent! We'll set a breakpoint in the code manually and run it
666
+ under the debugger to see what's going on. A breakpoint is a flag, to which
667
+ the debugger will run without interruption, when it reaches the breakpoint, it
668
+ will stop execution and offer a prompt for further interaction. In normal
669
+ use, these debugger commands are completely ignored, and they are safe \- if a
670
+ little messy, to leave in production code.
671
+ .PP
672
+ .Vb 4
673
+ \& my ($in, $out) = ($num, $num);
674
+ \& $DB::single=2; # insert at line 9!
675
+ \& if ($deg eq \*(Aqc\*(Aq)
676
+ \& ...
677
+ \&
678
+ \& > perl \-d temp \-f33.3
679
+ \& Default die handler restored.
680
+ \&
681
+ \& Loading DB routines from perl5db.pl version 1.07
682
+ \& Editor support available.
683
+ \&
684
+ \& Enter h or \`h h\*(Aq for help, or \`man perldebug\*(Aq for more help.
685
+ \&
686
+ \& main::(temp:4): my $arg = $ARGV[0] || \*(Aq\-c100\*(Aq;
687
+ .Ve
688
+ .PP
689
+ We'll simply continue down to our pre-set breakpoint with a '\fBc\fR':
690
+ .PP
691
+ .Vb 2
692
+ \& DB<1> c
693
+ \& main::(temp:10): if ($deg eq \*(Aqc\*(Aq) {
694
+ .Ve
695
+ .PP
696
+ Followed by a view command to see where we are:
697
+ .PP
698
+ .Vb 11
699
+ \& DB<1> v
700
+ \& 7: my ($deg, $num) = ($1, $2);
701
+ \& 8: my ($in, $out) = ($num, $num);
702
+ \& 9: $DB::single=2;
703
+ \& 10==> if ($deg eq \*(Aqc\*(Aq) {
704
+ \& 11: $deg = \*(Aqf\*(Aq;
705
+ \& 12: $out = &c2f($num);
706
+ \& 13 } else {
707
+ \& 14: $deg = \*(Aqc\*(Aq;
708
+ \& 15: $out = &f2c($num);
709
+ \& 16 }
710
+ .Ve
711
+ .PP
712
+ And a print to show what values we're currently using:
713
+ .PP
714
+ .Vb 2
715
+ \& DB<1> p $deg, $num
716
+ \& f33.3
717
+ .Ve
718
+ .PP
719
+ We can put another break point on any line beginning with a colon, we'll use
720
+ line 17 as that's just as we come out of the subroutine, and we'd like to
721
+ pause there later on:
722
+ .PP
723
+ .Vb 1
724
+ \& DB<2> b 17
725
+ .Ve
726
+ .PP
727
+ There's no feedback from this, but you can see what breakpoints are set by
728
+ using the list 'L' command:
729
+ .PP
730
+ .Vb 4
731
+ \& DB<3> L
732
+ \& temp:
733
+ \& 17: print "$out $deg\en";
734
+ \& break if (1)
735
+ .Ve
736
+ .PP
737
+ Note that to delete a breakpoint you use 'B'.
738
+ .PP
739
+ Now we'll continue down into our subroutine, this time rather than by line
740
+ number, we'll use the subroutine name, followed by the now familiar 'v':
741
+ .PP
742
+ .Vb 2
743
+ \& DB<3> c f2c
744
+ \& main::f2c(temp:30): my $f = shift;
745
+ \&
746
+ \& DB<4> v
747
+ \& 24: exit;
748
+ \& 25
749
+ \& 26 sub f2c {
750
+ \& 27==> my $f = shift;
751
+ \& 28: my $c = 5 * $f \- 32 / 9;
752
+ \& 29: return $c;
753
+ \& 30 }
754
+ \& 31
755
+ \& 32 sub c2f {
756
+ \& 33: my $c = shift;
757
+ .Ve
758
+ .PP
759
+ Note that if there was a subroutine call between us and line 29, and we wanted
760
+ to \fBsingle-step\fR through it, we could use the '\fBs\fR' command, and to step
761
+ over it we would use '\fBn\fR' which would execute the sub, but not descend into
762
+ it for inspection. In this case though, we simply continue down to line 29:
763
+ .PP
764
+ .Vb 2
765
+ \& DB<4> c 29
766
+ \& main::f2c(temp:29): return $c;
767
+ .Ve
768
+ .PP
769
+ And have a look at the return value:
770
+ .PP
771
+ .Vb 2
772
+ \& DB<5> p $c
773
+ \& 162.944444444444
774
+ .Ve
775
+ .PP
776
+ This is not the right answer at all, but the sum looks correct. I wonder if
777
+ it's anything to do with operator precedence? We'll try a couple of other
778
+ possibilities with our sum:
779
+ .PP
780
+ .Vb 2
781
+ \& DB<6> p (5 * $f \- 32 / 9)
782
+ \& 162.944444444444
783
+ \&
784
+ \& DB<7> p 5 * $f \- (32 / 9)
785
+ \& 162.944444444444
786
+ \&
787
+ \& DB<8> p (5 * $f) \- 32 / 9
788
+ \& 162.944444444444
789
+ \&
790
+ \& DB<9> p 5 * ($f \- 32) / 9
791
+ \& 0.722222222222221
792
+ .Ve
793
+ .PP
794
+ :\-) that's more like it! Ok, now we can set our return variable and we'll
795
+ return out of the sub with an 'r':
796
+ .PP
797
+ .Vb 1
798
+ \& DB<10> $c = 5 * ($f \- 32) / 9
799
+ \&
800
+ \& DB<11> r
801
+ \& scalar context return from main::f2c: 0.722222222222221
802
+ .Ve
803
+ .PP
804
+ Looks good, let's just continue off the end of the script:
805
+ .PP
806
+ .Vb 5
807
+ \& DB<12> c
808
+ \& 0.72 c
809
+ \& Debugged program terminated. Use q to quit or R to restart,
810
+ \& use O inhibit_exit to avoid stopping after program termination,
811
+ \& h q, h R or h O to get additional info.
812
+ .Ve
813
+ .PP
814
+ A quick fix to the offending line (insert the missing parentheses) in the
815
+ actual program and we're finished.
816
+ .SH "Placeholder for a, w, t, T"
817
+ .IX Header "Placeholder for a, w, t, T"
818
+ Actions, watch variables, stack traces etc.: on the \s-1TODO\s0 list.
819
+ .PP
820
+ .Vb 1
821
+ \& a
822
+ \&
823
+ \& w
824
+ \&
825
+ \& t
826
+ \&
827
+ \& T
828
+ .Ve
829
+ .SH "REGULAR EXPRESSIONS"
830
+ .IX Header "REGULAR EXPRESSIONS"
831
+ Ever wanted to know what a regex looked like? You'll need perl compiled with
832
+ the \s-1DEBUGGING\s0 flag for this one:
833
+ .PP
834
+ .Vb 10
835
+ \& > perl \-Dr \-e \*(Aq/^pe(a)*rl$/i\*(Aq
836
+ \& Compiling REx \`^pe(a)*rl$\*(Aq
837
+ \& size 17 first at 2
838
+ \& rarest char
839
+ \& at 0
840
+ \& 1: BOL(2)
841
+ \& 2: EXACTF <pe>(4)
842
+ \& 4: CURLYN[1] {0,32767}(14)
843
+ \& 6: NOTHING(8)
844
+ \& 8: EXACTF <a>(0)
845
+ \& 12: WHILEM(0)
846
+ \& 13: NOTHING(14)
847
+ \& 14: EXACTF <rl>(16)
848
+ \& 16: EOL(17)
849
+ \& 17: END(0)
850
+ \& floating \`\*(Aq$ at 4..2147483647 (checking floating) stclass
851
+ \& \`EXACTF <pe>\*(Aq anchored(BOL) minlen 4
852
+ \& Omitting $\` $& $\*(Aq support.
853
+ \&
854
+ \& EXECUTING...
855
+ \&
856
+ \& Freeing REx: \`^pe(a)*rl$\*(Aq
857
+ .Ve
858
+ .PP
859
+ Did you really want to know? :\-)
860
+ For more gory details on getting regular expressions to work, have a look at
861
+ perlre, perlretut, and to decode the mysterious labels (\s-1BOL\s0 and \s-1CURLYN,\s0
862
+ etc. above), see perldebguts.
863
+ .SH "OUTPUT TIPS"
864
+ .IX Header "OUTPUT TIPS"
865
+ To get all the output from your error log, and not miss any messages via
866
+ helpful operating system buffering, insert a line like this, at the start of
867
+ your script:
868
+ .PP
869
+ .Vb 1
870
+ \& $|=1;
871
+ .Ve
872
+ .PP
873
+ To watch the tail of a dynamically growing logfile, (from the command line):
874
+ .PP
875
+ .Vb 1
876
+ \& tail \-f $error_log
877
+ .Ve
878
+ .PP
879
+ Wrapping all die calls in a handler routine can be useful to see how, and from
880
+ where, they're being called, perlvar has more information:
881
+ .PP
882
+ .Vb 1
883
+ \& BEGIN { $SIG{_\|_DIE_\|_} = sub { require Carp; Carp::confess(@_) } }
884
+ .Ve
885
+ .PP
886
+ Various useful techniques for the redirection of \s-1STDOUT\s0 and \s-1STDERR\s0 filehandles
887
+ are explained in perlopentut and perlfaq8.
888
+ .SH "CGI"
889
+ .IX Header "CGI"
890
+ Just a quick hint here for all those \s-1CGI\s0 programmers who can't figure out how
891
+ on earth to get past that 'waiting for input' prompt, when running their \s-1CGI\s0
892
+ script from the command-line, try something like this:
893
+ .PP
894
+ .Vb 1
895
+ \& > perl \-d my_cgi.pl \-nodebug
896
+ .Ve
897
+ .PP
898
+ Of course \s-1CGI\s0 and perlfaq9 will tell you more.
899
+ .SH "GUIs"
900
+ .IX Header "GUIs"
901
+ The command line interface is tightly integrated with an \fBemacs\fR extension
902
+ and there's a \fBvi\fR interface too.
903
+ .PP
904
+ You don't have to do this all on the command line, though, there are a few \s-1GUI\s0
905
+ options out there. The nice thing about these is you can wave a mouse over a
906
+ variable and a dump of its data will appear in an appropriate window, or in a
907
+ popup balloon, no more tiresome typing of 'x \f(CW$varname\fR' :\-)
908
+ .PP
909
+ In particular have a hunt around for the following:
910
+ .PP
911
+ \&\fBptkdb\fR perlTK based wrapper for the built-in debugger
912
+ .PP
913
+ \&\fBddd\fR data display debugger
914
+ .PP
915
+ \&\fBPerlDevKit\fR and \fBPerlBuilder\fR are \s-1NT\s0 specific
916
+ .PP
917
+ \&\s-1NB.\s0 (more info on these and others would be appreciated).
918
+ .SH "SUMMARY"
919
+ .IX Header "SUMMARY"
920
+ We've seen how to encourage good coding practices with \fBuse strict\fR and
921
+ \&\fB\-w\fR. We can run the perl debugger \fBperl \-d scriptname\fR to inspect your
922
+ data from within the perl debugger with the \fBp\fR and \fBx\fR commands. You can
923
+ walk through your code, set breakpoints with \fBb\fR and step through that code
924
+ with \fBs\fR or \fBn\fR, continue with \fBc\fR and return from a sub with \fBr\fR. Fairly
925
+ intuitive stuff when you get down to it.
926
+ .PP
927
+ There is of course lots more to find out about, this has just scratched the
928
+ surface. The best way to learn more is to use perldoc to find out more about
929
+ the language, to read the on-line help (perldebug is probably the next
930
+ place to go), and of course, experiment.
931
+ .SH "SEE ALSO"
932
+ .IX Header "SEE ALSO"
933
+ perldebug,
934
+ perldebguts,
935
+ perldiag,
936
+ perlrun
937
+ .SH "AUTHOR"
938
+ .IX Header "AUTHOR"
939
+ Richard Foley <richard.foley@rfi.net> Copyright (c) 2000
940
+ .SH "CONTRIBUTORS"
941
+ .IX Header "CONTRIBUTORS"
942
+ Various people have made helpful suggestions and contributions, in particular:
943
+ .PP
944
+ Ronald J Kimball <rjk@linguist.dartmouth.edu>
945
+ .PP
946
+ Hugo van der Sanden <hv@crypt0.demon.co.uk>
947
+ .PP
948
+ Peter Scott <Peter@PSDT.com>
data/miniconda3/man/man1/perldebug.1 ADDED
@@ -0,0 +1,1274 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "PERLDEBUG 1"
136
+ .TH PERLDEBUG 1 "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
+ perldebug \- Perl debugging
143
+ .IX Xref "debug debugger"
144
+ .SH "DESCRIPTION"
145
+ .IX Header "DESCRIPTION"
146
+ First of all, have you tried using \f(CW\*(C`use strict;\*(C'\fR and
147
+ \&\f(CW\*(C`use warnings;\*(C'\fR?
148
+ .PP
149
+ If you're new to the Perl debugger, you may prefer to read
150
+ perldebtut, which is a tutorial introduction to the debugger.
151
+ .PP
152
+ If you're looking for the nitty gritty details of how the debugger is
153
+ \&\fIimplemented\fR, you may prefer to read perldebguts.
154
+ .SH "The Perl Debugger"
155
+ .IX Header "The Perl Debugger"
156
+ If you invoke Perl with the \fB\-d\fR switch, your script runs under the
157
+ Perl source debugger. This works like an interactive Perl
158
+ environment, prompting for debugger commands that let you examine
159
+ source code, set breakpoints, get stack backtraces, change the values of
160
+ variables, etc. This is so convenient that you often fire up
161
+ the debugger all by itself just to test out Perl constructs
162
+ interactively to see what they do. For example:
163
+ .IX Xref "-d"
164
+ .PP
165
+ .Vb 1
166
+ \& $ perl \-d \-e 42
167
+ .Ve
168
+ .PP
169
+ In Perl, the debugger is not a separate program the way it usually is in the
170
+ typical compiled environment. Instead, the \fB\-d\fR flag tells the compiler
171
+ to insert source information into the parse trees it's about to hand off
172
+ to the interpreter. That means your code must first compile correctly
173
+ for the debugger to work on it. Then when the interpreter starts up, it
174
+ preloads a special Perl library file containing the debugger.
175
+ .PP
176
+ The program will halt \fIright before\fR the first run-time executable
177
+ statement (but see below regarding compile-time statements) and ask you
178
+ to enter a debugger command. Contrary to popular expectations, whenever
179
+ the debugger halts and shows you a line of code, it always displays the
180
+ line it's \fIabout\fR to execute, rather than the one it has just executed.
181
+ .PP
182
+ Any command not recognized by the debugger is directly executed
183
+ (\f(CW\*(C`eval\*(C'\fR'd) as Perl code in the current package. (The debugger
184
+ uses the \s-1DB\s0 package for keeping its own state information.)
185
+ .PP
186
+ Note that the said \f(CW\*(C`eval\*(C'\fR is bound by an implicit scope. As a
187
+ result any newly introduced lexical variable or any modified
188
+ capture buffer content is lost after the eval. The debugger is a
189
+ nice environment to learn Perl, but if you interactively experiment using
190
+ material which should be in the same scope, stuff it in one line.
191
+ .PP
192
+ For any text entered at the debugger prompt, leading and trailing whitespace
193
+ is first stripped before further processing. If a debugger command
194
+ coincides with some function in your own program, merely precede the
195
+ function with something that doesn't look like a debugger command, such
196
+ as a leading \f(CW\*(C`;\*(C'\fR or perhaps a \f(CW\*(C`+\*(C'\fR, or by wrapping it with parentheses
197
+ or braces.
198
+ .SS "Calling the Debugger"
199
+ .IX Subsection "Calling the Debugger"
200
+ There are several ways to call the debugger:
201
+ .IP "perl \-d program_name" 4
202
+ .IX Item "perl -d program_name"
203
+ On the given program identified by \f(CW\*(C`program_name\*(C'\fR.
204
+ .IP "perl \-d \-e 0" 4
205
+ .IX Item "perl -d -e 0"
206
+ Interactively supply an arbitrary \f(CW\*(C`expression\*(C'\fR using \f(CW\*(C`\-e\*(C'\fR.
207
+ .IP "perl \-d:ptkdb program_name" 4
208
+ .IX Item "perl -d:ptkdb program_name"
209
+ Debug a given program via the \f(CW\*(C`Devel::ptkdb\*(C'\fR \s-1GUI.\s0
210
+ .IP "perl \-dt threaded_program_name" 4
211
+ .IX Item "perl -dt threaded_program_name"
212
+ Debug a given program using threads (experimental).
213
+ .SS "Debugger Commands"
214
+ .IX Subsection "Debugger Commands"
215
+ The interactive debugger understands the following commands:
216
+ .IP "h" 12
217
+ .IX Xref "debugger command, h"
218
+ .IX Item "h"
219
+ Prints out a summary help message
220
+ .IP "h [command]" 12
221
+ .IX Item "h [command]"
222
+ Prints out a help message for the given debugger command.
223
+ .IP "h h" 12
224
+ .IX Item "h h"
225
+ The special argument of \f(CW\*(C`h h\*(C'\fR produces the entire help page, which is quite long.
226
+ .Sp
227
+ If the output of the \f(CW\*(C`h h\*(C'\fR command (or any command, for that matter) scrolls
228
+ past your screen, precede the command with a leading pipe symbol so
229
+ that it's run through your pager, as in
230
+ .Sp
231
+ .Vb 1
232
+ \& DB> |h h
233
+ .Ve
234
+ .Sp
235
+ You may change the pager which is used via \f(CW\*(C`o pager=...\*(C'\fR command.
236
+ .IP "p expr" 12
237
+ .IX Xref "debugger command, p"
238
+ .IX Item "p expr"
239
+ Same as \f(CW\*(C`print {$DB::OUT} expr\*(C'\fR in the current package. In particular,
240
+ because this is just Perl's own \f(CW\*(C`print\*(C'\fR function, this means that nested
241
+ data structures and objects are not dumped, unlike with the \f(CW\*(C`x\*(C'\fR command.
242
+ .Sp
243
+ The \f(CW\*(C`DB::OUT\*(C'\fR filehandle is opened to \fI/dev/tty\fR, regardless of
244
+ where \s-1STDOUT\s0 may be redirected to.
245
+ .IP "x [maxdepth] expr" 12
246
+ .IX Xref "debugger command, x"
247
+ .IX Item "x [maxdepth] expr"
248
+ Evaluates its expression in list context and dumps out the result in a
249
+ pretty-printed fashion. Nested data structures are printed out
250
+ recursively, unlike the real \f(CW\*(C`print\*(C'\fR function in Perl. When dumping
251
+ hashes, you'll probably prefer 'x \e%h' rather than 'x \f(CW%h\fR'.
252
+ See Dumpvalue if you'd like to do this yourself.
253
+ .Sp
254
+ The output format is governed by multiple options described under
255
+ \&\*(L"Configurable Options\*(R".
256
+ .Sp
257
+ If the \f(CW\*(C`maxdepth\*(C'\fR is included, it must be a numeral \fIN\fR; the value is
258
+ dumped only \fIN\fR levels deep, as if the \f(CW\*(C`dumpDepth\*(C'\fR option had been
259
+ temporarily set to \fIN\fR.
260
+ .IP "V [pkg [vars]]" 12
261
+ .IX Xref "debugger command, V"
262
+ .IX Item "V [pkg [vars]]"
263
+ Display all (or some) variables in package (defaulting to \f(CW\*(C`main\*(C'\fR)
264
+ using a data pretty-printer (hashes show their keys and values so
265
+ you see what's what, control characters are made printable, etc.).
266
+ Make sure you don't put the type specifier (like \f(CW\*(C`$\*(C'\fR) there, just
267
+ the symbol names, like this:
268
+ .Sp
269
+ .Vb 1
270
+ \& V DB filename line
271
+ .Ve
272
+ .Sp
273
+ Use \f(CW\*(C`~pattern\*(C'\fR and \f(CW\*(C`!pattern\*(C'\fR for positive and negative regexes.
274
+ .Sp
275
+ This is similar to calling the \f(CW\*(C`x\*(C'\fR command on each applicable var.
276
+ .IP "X [vars]" 12
277
+ .IX Xref "debugger command, X"
278
+ .IX Item "X [vars]"
279
+ Same as \f(CW\*(C`V currentpackage [vars]\*(C'\fR.
280
+ .IP "y [level [vars]]" 12
281
+ .IX Xref "debugger command, y"
282
+ .IX Item "y [level [vars]]"
283
+ Display all (or some) lexical variables (mnemonic: \f(CW\*(C`mY\*(C'\fR variables)
284
+ in the current scope or \fIlevel\fR scopes higher. You can limit the
285
+ variables that you see with \fIvars\fR which works exactly as it does
286
+ for the \f(CW\*(C`V\*(C'\fR and \f(CW\*(C`X\*(C'\fR commands. Requires the \f(CW\*(C`PadWalker\*(C'\fR module
287
+ version 0.08 or higher; will warn if this isn't installed. Output
288
+ is pretty-printed in the same style as for \f(CW\*(C`V\*(C'\fR and the format is
289
+ controlled by the same options.
290
+ .IP "T" 12
291
+ .IX Xref "debugger command, T backtrace stack, backtrace"
292
+ .IX Item "T"
293
+ Produce a stack backtrace. See below for details on its output.
294
+ .IP "s [expr]" 12
295
+ .IX Xref "debugger command, s step"
296
+ .IX Item "s [expr]"
297
+ Single step. Executes until the beginning of another
298
+ statement, descending into subroutine calls. If an expression is
299
+ supplied that includes function calls, it too will be single-stepped.
300
+ .IP "n [expr]" 12
301
+ .IX Xref "debugger command, n"
302
+ .IX Item "n [expr]"
303
+ Next. Executes over subroutine calls, until the beginning
304
+ of the next statement. If an expression is supplied that includes
305
+ function calls, those functions will be executed with stops before
306
+ each statement.
307
+ .IP "r" 12
308
+ .IX Xref "debugger command, r"
309
+ .IX Item "r"
310
+ Continue until the return from the current subroutine.
311
+ Dump the return value if the \f(CW\*(C`PrintRet\*(C'\fR option is set (default).
312
+ .IP "<\s-1CR\s0>" 12
313
+ .IX Item "<CR>"
314
+ Repeat last \f(CW\*(C`n\*(C'\fR or \f(CW\*(C`s\*(C'\fR command.
315
+ .IP "c [line|sub]" 12
316
+ .IX Xref "debugger command, c"
317
+ .IX Item "c [line|sub]"
318
+ Continue, optionally inserting a one-time-only breakpoint
319
+ at the specified line or subroutine.
320
+ .IP "l" 12
321
+ .IX Xref "debugger command, l"
322
+ .IX Item "l"
323
+ List next window of lines.
324
+ .IP "l min+incr" 12
325
+ .IX Item "l min+incr"
326
+ List \f(CW\*(C`incr+1\*(C'\fR lines starting at \f(CW\*(C`min\*(C'\fR.
327
+ .IP "l min-max" 12
328
+ .IX Item "l min-max"
329
+ List lines \f(CW\*(C`min\*(C'\fR through \f(CW\*(C`max\*(C'\fR. \f(CW\*(C`l \-\*(C'\fR is synonymous to \f(CW\*(C`\-\*(C'\fR.
330
+ .IP "l line" 12
331
+ .IX Item "l line"
332
+ List a single line.
333
+ .IP "l subname" 12
334
+ .IX Item "l subname"
335
+ List first window of lines from subroutine. \fIsubname\fR may
336
+ be a variable that contains a code reference.
337
+ .IP "\-" 12
338
+ .IX Xref "debugger command, -"
339
+ List previous window of lines.
340
+ .IP "v [line]" 12
341
+ .IX Xref "debugger command, v"
342
+ .IX Item "v [line]"
343
+ View a few lines of code around the current line.
344
+ .IP "." 12
345
+ .IX Xref "debugger command, ."
346
+ Return the internal debugger pointer to the line last
347
+ executed, and print out that line.
348
+ .IP "f filename" 12
349
+ .IX Xref "debugger command, f"
350
+ .IX Item "f filename"
351
+ Switch to viewing a different file or \f(CW\*(C`eval\*(C'\fR statement. If \fIfilename\fR
352
+ is not a full pathname found in the values of \f(CW%INC\fR, it is considered
353
+ a regex.
354
+ .Sp
355
+ \&\f(CW\*(C`eval\*(C'\fRed strings (when accessible) are considered to be filenames:
356
+ \&\f(CW\*(C`f (eval 7)\*(C'\fR and \f(CW\*(C`f eval 7\eb\*(C'\fR access the body of the 7th \f(CW\*(C`eval\*(C'\fRed string
357
+ (in the order of execution). The bodies of the currently executed \f(CW\*(C`eval\*(C'\fR
358
+ and of \f(CW\*(C`eval\*(C'\fRed strings that define subroutines are saved and thus
359
+ accessible.
360
+ .IP "/pattern/" 12
361
+ .IX Item "/pattern/"
362
+ Search forwards for pattern (a Perl regex); final / is optional.
363
+ The search is case-insensitive by default.
364
+ .IP "?pattern?" 12
365
+ .IX Item "?pattern?"
366
+ Search backwards for pattern; final ? is optional.
367
+ The search is case-insensitive by default.
368
+ .IP "L [abw]" 12
369
+ .IX Xref "debugger command, L"
370
+ .IX Item "L [abw]"
371
+ List (default all) actions, breakpoints and watch expressions
372
+ .IP "S [[!]regex]" 12
373
+ .IX Xref "debugger command, S"
374
+ .IX Item "S [[!]regex]"
375
+ List subroutine names [not] matching the regex.
376
+ .IP "t [n]" 12
377
+ .IX Xref "debugger command, t"
378
+ .IX Item "t [n]"
379
+ Toggle trace mode (see also the \f(CW\*(C`AutoTrace\*(C'\fR option).
380
+ Optional argument is the maximum number of levels to trace below
381
+ the current one; anything deeper than that will be silent.
382
+ .IP "t [n] expr" 12
383
+ .IX Xref "debugger command, t"
384
+ .IX Item "t [n] expr"
385
+ Trace through execution of \f(CW\*(C`expr\*(C'\fR.
386
+ Optional first argument is the maximum number of levels to trace below
387
+ the current one; anything deeper than that will be silent.
388
+ See \*(L"Frame Listing Output Examples\*(R" in perldebguts for examples.
389
+ .IP "b" 12
390
+ .IX Xref "breakpoint debugger command, b"
391
+ .IX Item "b"
392
+ Sets breakpoint on current line
393
+ .IP "b [line] [condition]" 12
394
+ .IX Xref "breakpoint debugger command, b"
395
+ .IX Item "b [line] [condition]"
396
+ Set a breakpoint before the given line. If a condition
397
+ is specified, it's evaluated each time the statement is reached: a
398
+ breakpoint is taken only if the condition is true. Breakpoints may
399
+ only be set on lines that begin an executable statement. Conditions
400
+ don't use \f(CW\*(C`if\*(C'\fR:
401
+ .Sp
402
+ .Vb 3
403
+ \& b 237 $x > 30
404
+ \& b 237 ++$count237 < 11
405
+ \& b 33 /pattern/i
406
+ .Ve
407
+ .Sp
408
+ If the line number is \f(CW\*(C`.\*(C'\fR, sets a breakpoint on the current line:
409
+ .Sp
410
+ .Vb 1
411
+ \& b . $n > 100
412
+ .Ve
413
+ .IP "b [file]:[line] [condition]" 12
414
+ .IX Xref "breakpoint debugger command, b"
415
+ .IX Item "b [file]:[line] [condition]"
416
+ Set a breakpoint before the given line in a (possibly different) file. If a
417
+ condition is specified, it's evaluated each time the statement is reached: a
418
+ breakpoint is taken only if the condition is true. Breakpoints may only be set
419
+ on lines that begin an executable statement. Conditions don't use \f(CW\*(C`if\*(C'\fR:
420
+ .Sp
421
+ .Vb 2
422
+ \& b lib/MyModule.pm:237 $x > 30
423
+ \& b /usr/lib/perl5/site_perl/CGI.pm:100 ++$count100 < 11
424
+ .Ve
425
+ .IP "b subname [condition]" 12
426
+ .IX Xref "breakpoint debugger command, b"
427
+ .IX Item "b subname [condition]"
428
+ Set a breakpoint before the first line of the named subroutine. \fIsubname\fR may
429
+ be a variable containing a code reference (in this case \fIcondition\fR
430
+ is not supported).
431
+ .IP "b postpone subname [condition]" 12
432
+ .IX Xref "breakpoint debugger command, b"
433
+ .IX Item "b postpone subname [condition]"
434
+ Set a breakpoint at first line of subroutine after it is compiled.
435
+ .IP "b load filename" 12
436
+ .IX Xref "breakpoint debugger command, b"
437
+ .IX Item "b load filename"
438
+ Set a breakpoint before the first executed line of the \fIfilename\fR,
439
+ which should be a full pathname found amongst the \f(CW%INC\fR values.
440
+ .IP "b compile subname" 12
441
+ .IX Xref "breakpoint debugger command, b"
442
+ .IX Item "b compile subname"
443
+ Sets a breakpoint before the first statement executed after the specified
444
+ subroutine is compiled.
445
+ .IP "B line" 12
446
+ .IX Xref "breakpoint debugger command, B"
447
+ .IX Item "B line"
448
+ Delete a breakpoint from the specified \fIline\fR.
449
+ .IP "B *" 12
450
+ .IX Xref "breakpoint debugger command, B"
451
+ .IX Item "B *"
452
+ Delete all installed breakpoints.
453
+ .IP "disable [file]:[line]" 12
454
+ .IX Xref "breakpoint debugger command, disable disable"
455
+ .IX Item "disable [file]:[line]"
456
+ Disable the breakpoint so it won't stop the execution of the program.
457
+ Breakpoints are enabled by default and can be re-enabled using the \f(CW\*(C`enable\*(C'\fR
458
+ command.
459
+ .IP "disable [line]" 12
460
+ .IX Xref "breakpoint debugger command, disable disable"
461
+ .IX Item "disable [line]"
462
+ Disable the breakpoint so it won't stop the execution of the program.
463
+ Breakpoints are enabled by default and can be re-enabled using the \f(CW\*(C`enable\*(C'\fR
464
+ command.
465
+ .Sp
466
+ This is done for a breakpoint in the current file.
467
+ .IP "enable [file]:[line]" 12
468
+ .IX Xref "breakpoint debugger command, disable disable"
469
+ .IX Item "enable [file]:[line]"
470
+ Enable the breakpoint so it will stop the execution of the program.
471
+ .IP "enable [line]" 12
472
+ .IX Xref "breakpoint debugger command, disable disable"
473
+ .IX Item "enable [line]"
474
+ Enable the breakpoint so it will stop the execution of the program.
475
+ .Sp
476
+ This is done for a breakpoint in the current file.
477
+ .IP "a [line] command" 12
478
+ .IX Xref "debugger command, a"
479
+ .IX Item "a [line] command"
480
+ Set an action to be done before the line is executed. If \fIline\fR is
481
+ omitted, set an action on the line about to be executed.
482
+ The sequence of steps taken by the debugger is
483
+ .Sp
484
+ .Vb 5
485
+ \& 1. check for a breakpoint at this line
486
+ \& 2. print the line if necessary (tracing)
487
+ \& 3. do any actions associated with that line
488
+ \& 4. prompt user if at a breakpoint or in single\-step
489
+ \& 5. evaluate line
490
+ .Ve
491
+ .Sp
492
+ For example, this will print out \f(CW$foo\fR every time line
493
+ 53 is passed:
494
+ .Sp
495
+ .Vb 1
496
+ \& a 53 print "DB FOUND $foo\en"
497
+ .Ve
498
+ .IP "A line" 12
499
+ .IX Xref "debugger command, A"
500
+ .IX Item "A line"
501
+ Delete an action from the specified line.
502
+ .IP "A *" 12
503
+ .IX Xref "debugger command, A"
504
+ .IX Item "A *"
505
+ Delete all installed actions.
506
+ .IP "w expr" 12
507
+ .IX Xref "debugger command, w"
508
+ .IX Item "w expr"
509
+ Add a global watch-expression. Whenever a watched global changes the
510
+ debugger will stop and display the old and new values.
511
+ .IP "W expr" 12
512
+ .IX Xref "debugger command, W"
513
+ .IX Item "W expr"
514
+ Delete watch-expression
515
+ .IP "W *" 12
516
+ .IX Xref "debugger command, W"
517
+ .IX Item "W *"
518
+ Delete all watch-expressions.
519
+ .IP "o" 12
520
+ .IX Xref "debugger command, o"
521
+ .IX Item "o"
522
+ Display all options.
523
+ .IP "o booloption ..." 12
524
+ .IX Xref "debugger command, o"
525
+ .IX Item "o booloption ..."
526
+ Set each listed Boolean option to the value \f(CW1\fR.
527
+ .IP "o anyoption? ..." 12
528
+ .IX Xref "debugger command, o"
529
+ .IX Item "o anyoption? ..."
530
+ Print out the value of one or more options.
531
+ .IP "o option=value ..." 12
532
+ .IX Xref "debugger command, o"
533
+ .IX Item "o option=value ..."
534
+ Set the value of one or more options. If the value has internal
535
+ whitespace, it should be quoted. For example, you could set \f(CW\*(C`o
536
+ pager="less \-MQeicsNfr"\*(C'\fR to call \fBless\fR with those specific options.
537
+ You may use either single or double quotes, but if you do, you must
538
+ escape any embedded instances of same sort of quote you began with,
539
+ as well as any escaping any escapes that immediately precede that
540
+ quote but which are not meant to escape the quote itself. In other
541
+ words, you follow single-quoting rules irrespective of the quote;
542
+ eg: \f(CW\*(C`o option=\*(Aqthis isn\e\*(Aqt bad\*(Aq\*(C'\fR or \f(CW\*(C`o option="She said, \e"Isn\*(Aqt
543
+ it?\e""\*(C'\fR.
544
+ .Sp
545
+ For historical reasons, the \f(CW\*(C`=value\*(C'\fR is optional, but defaults to
546
+ 1 only where it is safe to do so\*(--that is, mostly for Boolean
547
+ options. It is always better to assign a specific value using \f(CW\*(C`=\*(C'\fR.
548
+ The \f(CW\*(C`option\*(C'\fR can be abbreviated, but for clarity probably should
549
+ not be. Several options can be set together. See \*(L"Configurable Options\*(R"
550
+ for a list of these.
551
+ .IP "< ?" 12
552
+ .IX Xref "debugger command, <"
553
+ List out all pre-prompt Perl command actions.
554
+ .IP "< [ command ]" 12
555
+ .IX Xref "debugger command, <"
556
+ .IX Item "< [ command ]"
557
+ Set an action (Perl command) to happen before every debugger prompt.
558
+ A multi-line command may be entered by backslashing the newlines.
559
+ .IP "< *" 12
560
+ .IX Xref "debugger command, <"
561
+ Delete all pre-prompt Perl command actions.
562
+ .IP "<< command" 12
563
+ .IX Xref "debugger command, <<"
564
+ .IX Item "<< command"
565
+ Add an action (Perl command) to happen before every debugger prompt.
566
+ A multi-line command may be entered by backwhacking the newlines.
567
+ .IP "> ?" 12
568
+ .IX Xref "debugger command, >"
569
+ List out post-prompt Perl command actions.
570
+ .IP "> command" 12
571
+ .IX Xref "debugger command, >"
572
+ .IX Item "> command"
573
+ Set an action (Perl command) to happen after the prompt when you've
574
+ just given a command to return to executing the script. A multi-line
575
+ command may be entered by backslashing the newlines (we bet you
576
+ couldn't have guessed this by now).
577
+ .IP "> *" 12
578
+ .IX Xref "debugger command, >"
579
+ Delete all post-prompt Perl command actions.
580
+ .IP ">> command" 12
581
+ .IX Xref "debugger command, >>"
582
+ .IX Item ">> command"
583
+ Adds an action (Perl command) to happen after the prompt when you've
584
+ just given a command to return to executing the script. A multi-line
585
+ command may be entered by backslashing the newlines.
586
+ .IP "{ ?" 12
587
+ .IX Xref "debugger command, {"
588
+ List out pre-prompt debugger commands.
589
+ .IP "{ [ command ]" 12
590
+ .IX Item "{ [ command ]"
591
+ Set an action (debugger command) to happen before every debugger prompt.
592
+ A multi-line command may be entered in the customary fashion.
593
+ .Sp
594
+ Because this command is in some senses new, a warning is issued if
595
+ you appear to have accidentally entered a block instead. If that's
596
+ what you mean to do, write it as with \f(CW\*(C`;{ ... }\*(C'\fR or even
597
+ \&\f(CW\*(C`do { ... }\*(C'\fR.
598
+ .IP "{ *" 12
599
+ .IX Xref "debugger command, {"
600
+ Delete all pre-prompt debugger commands.
601
+ .IP "{{ command" 12
602
+ .IX Xref "debugger command, {{"
603
+ .IX Item "{{ command"
604
+ Add an action (debugger command) to happen before every debugger prompt.
605
+ A multi-line command may be entered, if you can guess how: see above.
606
+ .IP "! number" 12
607
+ .IX Xref "debugger command, !"
608
+ .IX Item "! number"
609
+ Redo a previous command (defaults to the previous command).
610
+ .IP "! \-number" 12
611
+ .IX Xref "debugger command, !"
612
+ .IX Item "! -number"
613
+ Redo number'th previous command.
614
+ .IP "! pattern" 12
615
+ .IX Xref "debugger command, !"
616
+ .IX Item "! pattern"
617
+ Redo last command that started with pattern.
618
+ See \f(CW\*(C`o recallCommand\*(C'\fR, too.
619
+ .IP "!! cmd" 12
620
+ .IX Xref "debugger command, !!"
621
+ .IX Item "!! cmd"
622
+ Run cmd in a subprocess (reads from \s-1DB::IN,\s0 writes to \s-1DB::OUT\s0) See
623
+ \&\f(CW\*(C`o shellBang\*(C'\fR, also. Note that the user's current shell (well,
624
+ their \f(CW$ENV{SHELL}\fR variable) will be used, which can interfere
625
+ with proper interpretation of exit status or signal and coredump
626
+ information.
627
+ .IP "source file" 12
628
+ .IX Xref "debugger command, source"
629
+ .IX Item "source file"
630
+ Read and execute debugger commands from \fIfile\fR.
631
+ \&\fIfile\fR may itself contain \f(CW\*(C`source\*(C'\fR commands.
632
+ .IP "H \-number" 12
633
+ .IX Xref "debugger command, H"
634
+ .IX Item "H -number"
635
+ Display last n commands. Only commands longer than one character are
636
+ listed. If \fInumber\fR is omitted, list them all.
637
+ .IP "q or ^D" 12
638
+ .IX Xref "debugger command, q debugger command, ^D"
639
+ .IX Item "q or ^D"
640
+ Quit. (\*(L"quit\*(R" doesn't work for this, unless you've made an alias)
641
+ This is the only supported way to exit the debugger, though typing
642
+ \&\f(CW\*(C`exit\*(C'\fR twice might work.
643
+ .Sp
644
+ Set the \f(CW\*(C`inhibit_exit\*(C'\fR option to 0 if you want to be able to step
645
+ off the end the script. You may also need to set \f(CW$finished\fR to 0
646
+ if you want to step through global destruction.
647
+ .IP "R" 12
648
+ .IX Xref "debugger command, R"
649
+ .IX Item "R"
650
+ Restart the debugger by \f(CW\*(C`exec()\*(C'\fRing a new session. We try to maintain
651
+ your history across this, but internal settings and command-line options
652
+ may be lost.
653
+ .Sp
654
+ The following setting are currently preserved: history, breakpoints,
655
+ actions, debugger options, and the Perl command-line
656
+ options \fB\-w\fR, \fB\-I\fR, and \fB\-e\fR.
657
+ .IP "|dbcmd" 12
658
+ .IX Xref "debugger command, |"
659
+ .IX Item "|dbcmd"
660
+ Run the debugger command, piping \s-1DB::OUT\s0 into your current pager.
661
+ .IP "||dbcmd" 12
662
+ .IX Xref "debugger command, ||"
663
+ .IX Item "||dbcmd"
664
+ Same as \f(CW\*(C`|dbcmd\*(C'\fR but \s-1DB::OUT\s0 is temporarily \f(CW\*(C`select\*(C'\fRed as well.
665
+ .IP "= [alias value]" 12
666
+ .IX Xref "debugger command, ="
667
+ .IX Item "= [alias value]"
668
+ Define a command alias, like
669
+ .Sp
670
+ .Vb 1
671
+ \& = quit q
672
+ .Ve
673
+ .Sp
674
+ or list current aliases.
675
+ .IP "command" 12
676
+ .IX Item "command"
677
+ Execute command as a Perl statement. A trailing semicolon will be
678
+ supplied. If the Perl statement would otherwise be confused for a
679
+ Perl debugger, use a leading semicolon, too.
680
+ .IP "m expr" 12
681
+ .IX Xref "debugger command, m"
682
+ .IX Item "m expr"
683
+ List which methods may be called on the result of the evaluated
684
+ expression. The expression may evaluated to a reference to a
685
+ blessed object, or to a package name.
686
+ .IP "M" 12
687
+ .IX Xref "debugger command, M"
688
+ .IX Item "M"
689
+ Display all loaded modules and their versions.
690
+ .IP "man [manpage]" 12
691
+ .IX Xref "debugger command, man"
692
+ .IX Item "man [manpage]"
693
+ Despite its name, this calls your system's default documentation
694
+ viewer on the given page, or on the viewer itself if \fImanpage\fR is
695
+ omitted. If that viewer is \fBman\fR, the current \f(CW\*(C`Config\*(C'\fR information
696
+ is used to invoke \fBman\fR using the proper \s-1MANPATH\s0 or \fB\-M\fR\ \fImanpath\fR option. Failed lookups of the form \f(CW\*(C`XXX\*(C'\fR that match
697
+ known manpages of the form \fIperlXXX\fR will be retried. This lets
698
+ you type \f(CW\*(C`man debug\*(C'\fR or \f(CW\*(C`man op\*(C'\fR from the debugger.
699
+ .Sp
700
+ On systems traditionally bereft of a usable \fBman\fR command, the
701
+ debugger invokes \fBperldoc\fR. Occasionally this determination is
702
+ incorrect due to recalcitrant vendors or rather more felicitously,
703
+ to enterprising users. If you fall into either category, just
704
+ manually set the \f(CW$DB::doccmd\fR variable to whatever viewer to view
705
+ the Perl documentation on your system. This may be set in an rc
706
+ file, or through direct assignment. We're still waiting for a
707
+ working example of something along the lines of:
708
+ .Sp
709
+ .Vb 1
710
+ \& $DB::doccmd = \*(Aqnetscape \-remote http://something.here/\*(Aq;
711
+ .Ve
712
+ .SS "Configurable Options"
713
+ .IX Subsection "Configurable Options"
714
+ The debugger has numerous options settable using the \f(CW\*(C`o\*(C'\fR command,
715
+ either interactively or from the environment or an rc file.
716
+ (./.perldb or ~/.perldb under Unix.)
717
+ .ie n .IP """recallCommand"", ""ShellBang""" 12
718
+ .el .IP "\f(CWrecallCommand\fR, \f(CWShellBang\fR" 12
719
+ .IX Xref "debugger option, recallCommand debugger option, ShellBang"
720
+ .IX Item "recallCommand, ShellBang"
721
+ The characters used to recall a command or spawn a shell. By
722
+ default, both are set to \f(CW\*(C`!\*(C'\fR, which is unfortunate.
723
+ .ie n .IP """pager""" 12
724
+ .el .IP "\f(CWpager\fR" 12
725
+ .IX Xref "debugger option, pager"
726
+ .IX Item "pager"
727
+ Program to use for output of pager-piped commands (those beginning
728
+ with a \f(CW\*(C`|\*(C'\fR character.) By default, \f(CW$ENV{PAGER}\fR will be used.
729
+ Because the debugger uses your current terminal characteristics
730
+ for bold and underlining, if the chosen pager does not pass escape
731
+ sequences through unchanged, the output of some debugger commands
732
+ will not be readable when sent through the pager.
733
+ .ie n .IP """tkRunning""" 12
734
+ .el .IP "\f(CWtkRunning\fR" 12
735
+ .IX Xref "debugger option, tkRunning"
736
+ .IX Item "tkRunning"
737
+ Run Tk while prompting (with ReadLine).
738
+ .ie n .IP """signalLevel"", ""warnLevel"", ""dieLevel""" 12
739
+ .el .IP "\f(CWsignalLevel\fR, \f(CWwarnLevel\fR, \f(CWdieLevel\fR" 12
740
+ .IX Xref "debugger option, signalLevel debugger option, warnLevel debugger option, dieLevel"
741
+ .IX Item "signalLevel, warnLevel, dieLevel"
742
+ Level of verbosity. By default, the debugger leaves your exceptions
743
+ and warnings alone, because altering them can break correctly running
744
+ programs. It will attempt to print a message when uncaught \s-1INT, BUS,\s0 or
745
+ \&\s-1SEGV\s0 signals arrive. (But see the mention of signals in \*(L"\s-1BUGS\*(R"\s0 below.)
746
+ .Sp
747
+ To disable this default safe mode, set these values to something higher
748
+ than 0. At a level of 1, you get backtraces upon receiving any kind
749
+ of warning (this is often annoying) or exception (this is
750
+ often valuable). Unfortunately, the debugger cannot discern fatal
751
+ exceptions from non-fatal ones. If \f(CW\*(C`dieLevel\*(C'\fR is even 1, then your
752
+ non-fatal exceptions are also traced and unceremoniously altered if they
753
+ came from \f(CW\*(C`eval\*(Aqed\*(C'\fR strings or from any kind of \f(CW\*(C`eval\*(C'\fR within modules
754
+ you're attempting to load. If \f(CW\*(C`dieLevel\*(C'\fR is 2, the debugger doesn't
755
+ care where they came from: It usurps your exception handler and prints
756
+ out a trace, then modifies all exceptions with its own embellishments.
757
+ This may perhaps be useful for some tracing purposes, but tends to hopelessly
758
+ destroy any program that takes its exception handling seriously.
759
+ .ie n .IP """AutoTrace""" 12
760
+ .el .IP "\f(CWAutoTrace\fR" 12
761
+ .IX Xref "debugger option, AutoTrace"
762
+ .IX Item "AutoTrace"
763
+ Trace mode (similar to \f(CW\*(C`t\*(C'\fR command, but can be put into
764
+ \&\f(CW\*(C`PERLDB_OPTS\*(C'\fR).
765
+ .ie n .IP """LineInfo""" 12
766
+ .el .IP "\f(CWLineInfo\fR" 12
767
+ .IX Xref "debugger option, LineInfo"
768
+ .IX Item "LineInfo"
769
+ File or pipe to print line number info to. If it is a pipe (say,
770
+ \&\f(CW\*(C`|visual_perl_db\*(C'\fR), then a short message is used. This is the
771
+ mechanism used to interact with a slave editor or visual debugger,
772
+ such as the special \f(CW\*(C`vi\*(C'\fR or \f(CW\*(C`emacs\*(C'\fR hooks, or the \f(CW\*(C`ddd\*(C'\fR graphical
773
+ debugger.
774
+ .ie n .IP """inhibit_exit""" 12
775
+ .el .IP "\f(CWinhibit_exit\fR" 12
776
+ .IX Xref "debugger option, inhibit_exit"
777
+ .IX Item "inhibit_exit"
778
+ If 0, allows \fIstepping off\fR the end of the script.
779
+ .ie n .IP """PrintRet""" 12
780
+ .el .IP "\f(CWPrintRet\fR" 12
781
+ .IX Xref "debugger option, PrintRet"
782
+ .IX Item "PrintRet"
783
+ Print return value after \f(CW\*(C`r\*(C'\fR command if set (default).
784
+ .ie n .IP """ornaments""" 12
785
+ .el .IP "\f(CWornaments\fR" 12
786
+ .IX Xref "debugger option, ornaments"
787
+ .IX Item "ornaments"
788
+ Affects screen appearance of the command line (see Term::ReadLine).
789
+ There is currently no way to disable these, which can render
790
+ some output illegible on some displays, or with some pagers.
791
+ This is considered a bug.
792
+ .ie n .IP """frame""" 12
793
+ .el .IP "\f(CWframe\fR" 12
794
+ .IX Xref "debugger option, frame"
795
+ .IX Item "frame"
796
+ Affects the printing of messages upon entry and exit from subroutines. If
797
+ \&\f(CW\*(C`frame & 2\*(C'\fR is false, messages are printed on entry only. (Printing
798
+ on exit might be useful if interspersed with other messages.)
799
+ .Sp
800
+ If \f(CW\*(C`frame & 4\*(C'\fR, arguments to functions are printed, plus context
801
+ and caller info. If \f(CW\*(C`frame & 8\*(C'\fR, overloaded \f(CW\*(C`stringify\*(C'\fR and
802
+ \&\f(CW\*(C`tie\*(C'\fRd \f(CW\*(C`FETCH\*(C'\fR is enabled on the printed arguments. If \f(CW\*(C`frame
803
+ & 16\*(C'\fR, the return value from the subroutine is printed.
804
+ .Sp
805
+ The length at which the argument list is truncated is governed by the
806
+ next option:
807
+ .ie n .IP """maxTraceLen""" 12
808
+ .el .IP "\f(CWmaxTraceLen\fR" 12
809
+ .IX Xref "debugger option, maxTraceLen"
810
+ .IX Item "maxTraceLen"
811
+ Length to truncate the argument list when the \f(CW\*(C`frame\*(C'\fR option's
812
+ bit 4 is set.
813
+ .ie n .IP """windowSize""" 12
814
+ .el .IP "\f(CWwindowSize\fR" 12
815
+ .IX Xref "debugger option, windowSize"
816
+ .IX Item "windowSize"
817
+ Change the size of code list window (default is 10 lines).
818
+ .PP
819
+ The following options affect what happens with \f(CW\*(C`V\*(C'\fR, \f(CW\*(C`X\*(C'\fR, and \f(CW\*(C`x\*(C'\fR
820
+ commands:
821
+ .ie n .IP """arrayDepth"", ""hashDepth""" 12
822
+ .el .IP "\f(CWarrayDepth\fR, \f(CWhashDepth\fR" 12
823
+ .IX Xref "debugger option, arrayDepth debugger option, hashDepth"
824
+ .IX Item "arrayDepth, hashDepth"
825
+ Print only first N elements ('' for all).
826
+ .ie n .IP """dumpDepth""" 12
827
+ .el .IP "\f(CWdumpDepth\fR" 12
828
+ .IX Xref "debugger option, dumpDepth"
829
+ .IX Item "dumpDepth"
830
+ Limit recursion depth to N levels when dumping structures.
831
+ Negative values are interpreted as infinity. Default: infinity.
832
+ .ie n .IP """compactDump"", ""veryCompact""" 12
833
+ .el .IP "\f(CWcompactDump\fR, \f(CWveryCompact\fR" 12
834
+ .IX Xref "debugger option, compactDump debugger option, veryCompact"
835
+ .IX Item "compactDump, veryCompact"
836
+ Change the style of array and hash output. If \f(CW\*(C`compactDump\*(C'\fR, short array
837
+ may be printed on one line.
838
+ .ie n .IP """globPrint""" 12
839
+ .el .IP "\f(CWglobPrint\fR" 12
840
+ .IX Xref "debugger option, globPrint"
841
+ .IX Item "globPrint"
842
+ Whether to print contents of globs.
843
+ .ie n .IP """DumpDBFiles""" 12
844
+ .el .IP "\f(CWDumpDBFiles\fR" 12
845
+ .IX Xref "debugger option, DumpDBFiles"
846
+ .IX Item "DumpDBFiles"
847
+ Dump arrays holding debugged files.
848
+ .ie n .IP """DumpPackages""" 12
849
+ .el .IP "\f(CWDumpPackages\fR" 12
850
+ .IX Xref "debugger option, DumpPackages"
851
+ .IX Item "DumpPackages"
852
+ Dump symbol tables of packages.
853
+ .ie n .IP """DumpReused""" 12
854
+ .el .IP "\f(CWDumpReused\fR" 12
855
+ .IX Xref "debugger option, DumpReused"
856
+ .IX Item "DumpReused"
857
+ Dump contents of \*(L"reused\*(R" addresses.
858
+ .ie n .IP """quote"", ""HighBit"", ""undefPrint""" 12
859
+ .el .IP "\f(CWquote\fR, \f(CWHighBit\fR, \f(CWundefPrint\fR" 12
860
+ .IX Xref "debugger option, quote debugger option, HighBit debugger option, undefPrint"
861
+ .IX Item "quote, HighBit, undefPrint"
862
+ Change the style of string dump. The default value for \f(CW\*(C`quote\*(C'\fR
863
+ is \f(CW\*(C`auto\*(C'\fR; one can enable double-quotish or single-quotish format
864
+ by setting it to \f(CW\*(C`"\*(C'\fR or \f(CW\*(C`\*(Aq\*(C'\fR, respectively. By default, characters
865
+ with their high bit set are printed verbatim.
866
+ .ie n .IP """UsageOnly""" 12
867
+ .el .IP "\f(CWUsageOnly\fR" 12
868
+ .IX Xref "debugger option, UsageOnly"
869
+ .IX Item "UsageOnly"
870
+ Rudimentary per-package memory usage dump. Calculates total
871
+ size of strings found in variables in the package. This does not
872
+ include lexicals in a module's file scope, or lost in closures.
873
+ .ie n .IP """HistFile""" 12
874
+ .el .IP "\f(CWHistFile\fR" 12
875
+ .IX Xref "debugger option, history, HistFile"
876
+ .IX Item "HistFile"
877
+ The path of the file from which the history (assuming a usable
878
+ Term::ReadLine backend) will be read on the debugger's startup, and to which
879
+ it will be saved on shutdown (for persistence across sessions). Similar in
880
+ concept to Bash's \f(CW\*(C`.bash_history\*(C'\fR file.
881
+ .ie n .IP """HistSize""" 12
882
+ .el .IP "\f(CWHistSize\fR" 12
883
+ .IX Xref "debugger option, history, HistSize"
884
+ .IX Item "HistSize"
885
+ The count of the saved lines in the history (assuming \f(CW\*(C`HistFile\*(C'\fR above).
886
+ .PP
887
+ After the rc file is read, the debugger reads the \f(CW$ENV{PERLDB_OPTS}\fR
888
+ environment variable and parses this as the remainder of a \*(L"O ...\*(R"
889
+ line as one might enter at the debugger prompt. You may place the
890
+ initialization options \f(CW\*(C`TTY\*(C'\fR, \f(CW\*(C`noTTY\*(C'\fR, \f(CW\*(C`ReadLine\*(C'\fR, and \f(CW\*(C`NonStop\*(C'\fR
891
+ there.
892
+ .PP
893
+ If your rc file contains:
894
+ .PP
895
+ .Vb 1
896
+ \& parse_options("NonStop=1 LineInfo=db.out AutoTrace");
897
+ .Ve
898
+ .PP
899
+ then your script will run without human intervention, putting trace
900
+ information into the file \fIdb.out\fR. (If you interrupt it, you'd
901
+ better reset \f(CW\*(C`LineInfo\*(C'\fR to \fI/dev/tty\fR if you expect to see anything.)
902
+ .ie n .IP """TTY""" 12
903
+ .el .IP "\f(CWTTY\fR" 12
904
+ .IX Xref "debugger option, TTY"
905
+ .IX Item "TTY"
906
+ The \s-1TTY\s0 to use for debugging I/O.
907
+ .ie n .IP """noTTY""" 12
908
+ .el .IP "\f(CWnoTTY\fR" 12
909
+ .IX Xref "debugger option, noTTY"
910
+ .IX Item "noTTY"
911
+ If set, the debugger goes into \f(CW\*(C`NonStop\*(C'\fR mode and will not connect to a \s-1TTY.\s0 If
912
+ interrupted (or if control goes to the debugger via explicit setting of
913
+ \&\f(CW$DB::signal\fR or \f(CW$DB::single\fR from the Perl script), it connects to a \s-1TTY\s0
914
+ specified in the \f(CW\*(C`TTY\*(C'\fR option at startup, or to a tty found at
915
+ runtime using the \f(CW\*(C`Term::Rendezvous\*(C'\fR module of your choice.
916
+ .Sp
917
+ This module should implement a method named \f(CW\*(C`new\*(C'\fR that returns an object
918
+ with two methods: \f(CW\*(C`IN\*(C'\fR and \f(CW\*(C`OUT\*(C'\fR. These should return filehandles to use
919
+ for debugging input and output correspondingly. The \f(CW\*(C`new\*(C'\fR method should
920
+ inspect an argument containing the value of \f(CW$ENV{PERLDB_NOTTY}\fR at
921
+ startup, or \f(CW"$ENV{HOME}/.perldbtty$$"\fR otherwise. This file is not
922
+ inspected for proper ownership, so security hazards are theoretically
923
+ possible.
924
+ .ie n .IP """ReadLine""" 12
925
+ .el .IP "\f(CWReadLine\fR" 12
926
+ .IX Xref "debugger option, ReadLine"
927
+ .IX Item "ReadLine"
928
+ If false, readline support in the debugger is disabled in order
929
+ to debug applications that themselves use ReadLine.
930
+ .ie n .IP """NonStop""" 12
931
+ .el .IP "\f(CWNonStop\fR" 12
932
+ .IX Xref "debugger option, NonStop"
933
+ .IX Item "NonStop"
934
+ If set, the debugger goes into non-interactive mode until interrupted, or
935
+ programmatically by setting \f(CW$DB::signal\fR or \f(CW$DB::single\fR.
936
+ .PP
937
+ Here's an example of using the \f(CW$ENV{PERLDB_OPTS}\fR variable:
938
+ .PP
939
+ .Vb 1
940
+ \& $ PERLDB_OPTS="NonStop frame=2" perl \-d myprogram
941
+ .Ve
942
+ .PP
943
+ That will run the script \fBmyprogram\fR without human intervention,
944
+ printing out the call tree with entry and exit points. Note that
945
+ \&\f(CW\*(C`NonStop=1 frame=2\*(C'\fR is equivalent to \f(CW\*(C`N f=2\*(C'\fR, and that originally,
946
+ options could be uniquely abbreviated by the first letter (modulo
947
+ the \f(CW\*(C`Dump*\*(C'\fR options). It is nevertheless recommended that you
948
+ always spell them out in full for legibility and future compatibility.
949
+ .PP
950
+ Other examples include
951
+ .PP
952
+ .Vb 1
953
+ \& $ PERLDB_OPTS="NonStop LineInfo=listing frame=2" perl \-d myprogram
954
+ .Ve
955
+ .PP
956
+ which runs script non-interactively, printing info on each entry
957
+ into a subroutine and each executed line into the file named \fIlisting\fR.
958
+ (If you interrupt it, you would better reset \f(CW\*(C`LineInfo\*(C'\fR to something
959
+ \&\*(L"interactive\*(R"!)
960
+ .PP
961
+ Other examples include (using standard shell syntax to show environment
962
+ variable settings):
963
+ .PP
964
+ .Vb 2
965
+ \& $ ( PERLDB_OPTS="NonStop frame=1 AutoTrace LineInfo=tperl.out"
966
+ \& perl \-d myprogram )
967
+ .Ve
968
+ .PP
969
+ which may be useful for debugging a program that uses \f(CW\*(C`Term::ReadLine\*(C'\fR
970
+ itself. Do not forget to detach your shell from the \s-1TTY\s0 in the window that
971
+ corresponds to \fI/dev/ttyXX\fR, say, by issuing a command like
972
+ .PP
973
+ .Vb 1
974
+ \& $ sleep 1000000
975
+ .Ve
976
+ .PP
977
+ See \*(L"Debugger Internals\*(R" in perldebguts for details.
978
+ .SS "Debugger Input/Output"
979
+ .IX Subsection "Debugger Input/Output"
980
+ .IP "Prompt" 8
981
+ .IX Item "Prompt"
982
+ The debugger prompt is something like
983
+ .Sp
984
+ .Vb 1
985
+ \& DB<8>
986
+ .Ve
987
+ .Sp
988
+ or even
989
+ .Sp
990
+ .Vb 1
991
+ \& DB<<17>>
992
+ .Ve
993
+ .Sp
994
+ where that number is the command number, and which you'd use to
995
+ access with the built-in \fBcsh\fR\-like history mechanism. For example,
996
+ \&\f(CW\*(C`!17\*(C'\fR would repeat command number 17. The depth of the angle
997
+ brackets indicates the nesting depth of the debugger. You could
998
+ get more than one set of brackets, for example, if you'd already
999
+ at a breakpoint and then printed the result of a function call that
1000
+ itself has a breakpoint, or you step into an expression via \f(CW\*(C`s/n/t
1001
+ expression\*(C'\fR command.
1002
+ .IP "Multiline commands" 8
1003
+ .IX Item "Multiline commands"
1004
+ If you want to enter a multi-line command, such as a subroutine
1005
+ definition with several statements or a format, escape the newline
1006
+ that would normally end the debugger command with a backslash.
1007
+ Here's an example:
1008
+ .Sp
1009
+ .Vb 7
1010
+ \& DB<1> for (1..4) { \e
1011
+ \& cont: print "ok\en"; \e
1012
+ \& cont: }
1013
+ \& ok
1014
+ \& ok
1015
+ \& ok
1016
+ \& ok
1017
+ .Ve
1018
+ .Sp
1019
+ Note that this business of escaping a newline is specific to interactive
1020
+ commands typed into the debugger.
1021
+ .IP "Stack backtrace" 8
1022
+ .IX Xref "backtrace stack, backtrace"
1023
+ .IX Item "Stack backtrace"
1024
+ Here's an example of what a stack backtrace via \f(CW\*(C`T\*(C'\fR command might
1025
+ look like:
1026
+ .Sp
1027
+ .Vb 5
1028
+ \& $ = main::infested called from file \*(AqAmbulation.pm\*(Aq line 10
1029
+ \& @ = Ambulation::legs(1, 2, 3, 4) called from file \*(Aqcamel_flea\*(Aq
1030
+ \& line 7
1031
+ \& $ = main::pests(\*(Aqbactrian\*(Aq, 4) called from file \*(Aqcamel_flea\*(Aq
1032
+ \& line 4
1033
+ .Ve
1034
+ .Sp
1035
+ The left-hand character up there indicates the context in which the
1036
+ function was called, with \f(CW\*(C`$\*(C'\fR and \f(CW\*(C`@\*(C'\fR meaning scalar or list
1037
+ contexts respectively, and \f(CW\*(C`.\*(C'\fR meaning void context (which is
1038
+ actually a sort of scalar context). The display above says
1039
+ that you were in the function \f(CW\*(C`main::infested\*(C'\fR when you ran the
1040
+ stack dump, and that it was called in scalar context from line
1041
+ 10 of the file \fIAmbulation.pm\fR, but without any arguments at all,
1042
+ meaning it was called as \f(CW&infested\fR. The next stack frame shows
1043
+ that the function \f(CW\*(C`Ambulation::legs\*(C'\fR was called in list context
1044
+ from the \fIcamel_flea\fR file with four arguments. The last stack
1045
+ frame shows that \f(CW\*(C`main::pests\*(C'\fR was called in scalar context,
1046
+ also from \fIcamel_flea\fR, but from line 4.
1047
+ .Sp
1048
+ If you execute the \f(CW\*(C`T\*(C'\fR command from inside an active \f(CW\*(C`use\*(C'\fR
1049
+ statement, the backtrace will contain both a \f(CW\*(C`require\*(C'\fR frame and
1050
+ an \f(CW\*(C`eval\*(C'\fR frame.
1051
+ .IP "Line Listing Format" 8
1052
+ .IX Item "Line Listing Format"
1053
+ This shows the sorts of output the \f(CW\*(C`l\*(C'\fR command can produce:
1054
+ .Sp
1055
+ .Vb 11
1056
+ \& DB<<13>> l
1057
+ \& 101: @i{@i} = ();
1058
+ \& 102:b @isa{@i,$pack} = ()
1059
+ \& 103 if(exists $i{$prevpack} || exists $isa{$pack});
1060
+ \& 104 }
1061
+ \& 105
1062
+ \& 106 next
1063
+ \& 107==> if(exists $isa{$pack});
1064
+ \& 108
1065
+ \& 109:a if ($extra\-\- > 0) {
1066
+ \& 110: %isa = ($pack,1);
1067
+ .Ve
1068
+ .Sp
1069
+ Breakable lines are marked with \f(CW\*(C`:\*(C'\fR. Lines with breakpoints are
1070
+ marked by \f(CW\*(C`b\*(C'\fR and those with actions by \f(CW\*(C`a\*(C'\fR. The line that's
1071
+ about to be executed is marked by \f(CW\*(C`==>\*(C'\fR.
1072
+ .Sp
1073
+ Please be aware that code in debugger listings may not look the same
1074
+ as your original source code. Line directives and external source
1075
+ filters can alter the code before Perl sees it, causing code to move
1076
+ from its original positions or take on entirely different forms.
1077
+ .IP "Frame listing" 8
1078
+ .IX Item "Frame listing"
1079
+ When the \f(CW\*(C`frame\*(C'\fR option is set, the debugger would print entered (and
1080
+ optionally exited) subroutines in different styles. See perldebguts
1081
+ for incredibly long examples of these.
1082
+ .SS "Debugging Compile-Time Statements"
1083
+ .IX Subsection "Debugging Compile-Time Statements"
1084
+ If you have compile-time executable statements (such as code within
1085
+ \&\s-1BEGIN, UNITCHECK\s0 and \s-1CHECK\s0 blocks or \f(CW\*(C`use\*(C'\fR statements), these will
1086
+ \&\fInot\fR be stopped by debugger, although \f(CW\*(C`require\*(C'\fRs and \s-1INIT\s0 blocks
1087
+ will, and compile-time statements can be traced with the \f(CW\*(C`AutoTrace\*(C'\fR
1088
+ option set in \f(CW\*(C`PERLDB_OPTS\*(C'\fR). From your own Perl code, however, you
1089
+ can transfer control back to the debugger using the following
1090
+ statement, which is harmless if the debugger is not running:
1091
+ .PP
1092
+ .Vb 1
1093
+ \& $DB::single = 1;
1094
+ .Ve
1095
+ .PP
1096
+ If you set \f(CW$DB::single\fR to 2, it's equivalent to having
1097
+ just typed the \f(CW\*(C`n\*(C'\fR command, whereas a value of 1 means the \f(CW\*(C`s\*(C'\fR
1098
+ command. The \f(CW$DB::trace\fR variable should be set to 1 to simulate
1099
+ having typed the \f(CW\*(C`t\*(C'\fR command.
1100
+ .PP
1101
+ Another way to debug compile-time code is to start the debugger, set a
1102
+ breakpoint on the \fIload\fR of some module:
1103
+ .PP
1104
+ .Vb 2
1105
+ \& DB<7> b load f:/perllib/lib/Carp.pm
1106
+ \& Will stop on load of \*(Aqf:/perllib/lib/Carp.pm\*(Aq.
1107
+ .Ve
1108
+ .PP
1109
+ and then restart the debugger using the \f(CW\*(C`R\*(C'\fR command (if possible). One can use \f(CW\*(C`b
1110
+ compile subname\*(C'\fR for the same purpose.
1111
+ .SS "Debugger Customization"
1112
+ .IX Subsection "Debugger Customization"
1113
+ The debugger probably contains enough configuration hooks that you
1114
+ won't ever have to modify it yourself. You may change the behaviour
1115
+ of the debugger from within the debugger using its \f(CW\*(C`o\*(C'\fR command, from
1116
+ the command line via the \f(CW\*(C`PERLDB_OPTS\*(C'\fR environment variable, and
1117
+ from customization files.
1118
+ .PP
1119
+ You can do some customization by setting up a \fI.perldb\fR file, which
1120
+ contains initialization code. For instance, you could make aliases
1121
+ like these (the last one is one people expect to be there):
1122
+ .PP
1123
+ .Vb 4
1124
+ \& $DB::alias{\*(Aqlen\*(Aq} = \*(Aqs/^len(.*)/p length($1)/\*(Aq;
1125
+ \& $DB::alias{\*(Aqstop\*(Aq} = \*(Aqs/^stop (at|in)/b/\*(Aq;
1126
+ \& $DB::alias{\*(Aqps\*(Aq} = \*(Aqs/^ps\eb/p scalar /\*(Aq;
1127
+ \& $DB::alias{\*(Aqquit\*(Aq} = \*(Aqs/^quit(\es*)/exit/\*(Aq;
1128
+ .Ve
1129
+ .PP
1130
+ You can change options from \fI.perldb\fR by using calls like this one;
1131
+ .PP
1132
+ .Vb 1
1133
+ \& parse_options("NonStop=1 LineInfo=db.out AutoTrace=1 frame=2");
1134
+ .Ve
1135
+ .PP
1136
+ The code is executed in the package \f(CW\*(C`DB\*(C'\fR. Note that \fI.perldb\fR is
1137
+ processed before processing \f(CW\*(C`PERLDB_OPTS\*(C'\fR. If \fI.perldb\fR defines the
1138
+ subroutine \f(CW\*(C`afterinit\*(C'\fR, that function is called after debugger
1139
+ initialization ends. \fI.perldb\fR may be contained in the current
1140
+ directory, or in the home directory. Because this file is sourced
1141
+ in by Perl and may contain arbitrary commands, for security reasons,
1142
+ it must be owned by the superuser or the current user, and writable
1143
+ by no one but its owner.
1144
+ .PP
1145
+ You can mock \s-1TTY\s0 input to debugger by adding arbitrary commands to
1146
+ \&\f(CW@DB::typeahead\fR. For example, your \fI.perldb\fR file might contain:
1147
+ .PP
1148
+ .Vb 1
1149
+ \& sub afterinit { push @DB::typeahead, "b 4", "b 6"; }
1150
+ .Ve
1151
+ .PP
1152
+ Which would attempt to set breakpoints on lines 4 and 6 immediately
1153
+ after debugger initialization. Note that \f(CW@DB::typeahead\fR is not a supported
1154
+ interface and is subject to change in future releases.
1155
+ .PP
1156
+ If you want to modify the debugger, copy \fIperl5db.pl\fR from the
1157
+ Perl library to another name and hack it to your heart's content.
1158
+ You'll then want to set your \f(CW\*(C`PERL5DB\*(C'\fR environment variable to say
1159
+ something like this:
1160
+ .PP
1161
+ .Vb 1
1162
+ \& BEGIN { require "myperl5db.pl" }
1163
+ .Ve
1164
+ .PP
1165
+ As a last resort, you could also use \f(CW\*(C`PERL5DB\*(C'\fR to customize the debugger
1166
+ by directly setting internal variables or calling debugger functions.
1167
+ .PP
1168
+ Note that any variables and functions that are not documented in
1169
+ this document (or in perldebguts) are considered for internal
1170
+ use only, and as such are subject to change without notice.
1171
+ .SS "Readline Support / History in the Debugger"
1172
+ .IX Subsection "Readline Support / History in the Debugger"
1173
+ As shipped, the only command-line history supplied is a simplistic one
1174
+ that checks for leading exclamation points. However, if you install
1175
+ the Term::ReadKey and Term::ReadLine modules from \s-1CPAN\s0 (such as
1176
+ Term::ReadLine::Gnu, Term::ReadLine::Perl, ...) you will
1177
+ have full editing capabilities much like those \s-1GNU\s0 \fIreadline\fR(3) provides.
1178
+ Look for these in the \fImodules/by\-module/Term\fR directory on \s-1CPAN.\s0
1179
+ These do not support normal \fBvi\fR command-line editing, however.
1180
+ .PP
1181
+ A rudimentary command-line completion is also available, including
1182
+ lexical variables in the current scope if the \f(CW\*(C`PadWalker\*(C'\fR module
1183
+ is installed.
1184
+ .PP
1185
+ Without Readline support you may see the symbols \*(L"^[[A\*(R", \*(L"^[[C\*(R", \*(L"^[[B\*(R",
1186
+ \&\*(L"^[[D\*(R"\*(L", \*(R"^H", ... when using the arrow keys and/or the backspace key.
1187
+ .SS "Editor Support for Debugging"
1188
+ .IX Subsection "Editor Support for Debugging"
1189
+ If you have the \s-1GNU\s0's version of \fBemacs\fR installed on your system,
1190
+ it can interact with the Perl debugger to provide an integrated
1191
+ software development environment reminiscent of its interactions
1192
+ with C debuggers.
1193
+ .PP
1194
+ Recent versions of Emacs come with a
1195
+ start file for making \fBemacs\fR act like a
1196
+ syntax-directed editor that understands (some of) Perl's syntax.
1197
+ See perlfaq3.
1198
+ .PP
1199
+ Users of \fBvi\fR should also look into \fBvim\fR and \fBgvim\fR, the mousey
1200
+ and windy version, for coloring of Perl keywords.
1201
+ .PP
1202
+ Note that only perl can truly parse Perl, so all such \s-1CASE\s0 tools
1203
+ fall somewhat short of the mark, especially if you don't program
1204
+ your Perl as a C programmer might.
1205
+ .SS "The Perl Profiler"
1206
+ .IX Xref "profile profiling profiler"
1207
+ .IX Subsection "The Perl Profiler"
1208
+ If you wish to supply an alternative debugger for Perl to run,
1209
+ invoke your script with a colon and a package argument given to the
1210
+ \&\fB\-d\fR flag. Perl's alternative debuggers include a Perl profiler,
1211
+ Devel::NYTProf, which is available separately as a \s-1CPAN\s0
1212
+ distribution. To profile your Perl program in the file \fImycode.pl\fR,
1213
+ just type:
1214
+ .PP
1215
+ .Vb 1
1216
+ \& $ perl \-d:NYTProf mycode.pl
1217
+ .Ve
1218
+ .PP
1219
+ When the script terminates the profiler will create a database of the
1220
+ profile information that you can turn into reports using the profiler's
1221
+ tools. See <perlperf> for details.
1222
+ .SH "Debugging Regular Expressions"
1223
+ .IX Xref "regular expression, debugging regex, debugging regexp, debugging"
1224
+ .IX Header "Debugging Regular Expressions"
1225
+ \&\f(CW\*(C`use re \*(Aqdebug\*(Aq\*(C'\fR enables you to see the gory details of how the Perl
1226
+ regular expression engine works. In order to understand this typically
1227
+ voluminous output, one must not only have some idea about how regular
1228
+ expression matching works in general, but also know how Perl's regular
1229
+ expressions are internally compiled into an automaton. These matters
1230
+ are explored in some detail in
1231
+ \&\*(L"Debugging Regular Expressions\*(R" in perldebguts.
1232
+ .SH "Debugging Memory Usage"
1233
+ .IX Xref "memory usage"
1234
+ .IX Header "Debugging Memory Usage"
1235
+ Perl contains internal support for reporting its own memory usage,
1236
+ but this is a fairly advanced concept that requires some understanding
1237
+ of how memory allocation works.
1238
+ See \*(L"Debugging Perl Memory Usage\*(R" in perldebguts for the details.
1239
+ .SH "SEE ALSO"
1240
+ .IX Header "SEE ALSO"
1241
+ You do have \f(CW\*(C`use strict\*(C'\fR and \f(CW\*(C`use warnings\*(C'\fR enabled, don't you?
1242
+ .PP
1243
+ perldebtut,
1244
+ perldebguts,
1245
+ re,
1246
+ \&\s-1DB\s0,
1247
+ Devel::NYTProf,
1248
+ Dumpvalue,
1249
+ and
1250
+ perlrun.
1251
+ .PP
1252
+ When debugging a script that uses #! and is thus normally found in
1253
+ \&\f(CW$PATH\fR, the \-S option causes perl to search \f(CW$PATH\fR for it, so you don't
1254
+ have to type the path or \f(CW\*(C`which $scriptname\*(C'\fR.
1255
+ .PP
1256
+ .Vb 1
1257
+ \& $ perl \-Sd foo.pl
1258
+ .Ve
1259
+ .SH "BUGS"
1260
+ .IX Header "BUGS"
1261
+ You cannot get stack frame information or in any fashion debug functions
1262
+ that were not compiled by Perl, such as those from C or \*(C+ extensions.
1263
+ .PP
1264
+ If you alter your \f(CW@_\fR arguments in a subroutine (such as with \f(CW\*(C`shift\*(C'\fR
1265
+ or \f(CW\*(C`pop\*(C'\fR), the stack backtrace will not show the original values.
1266
+ .PP
1267
+ The debugger does not currently work in conjunction with the \fB\-W\fR
1268
+ command-line switch, because it itself is not free of warnings.
1269
+ .PP
1270
+ If you're in a slow syscall (like \f(CW\*(C`wait\*(C'\fRing, \f(CW\*(C`accept\*(C'\fRing, or \f(CW\*(C`read\*(C'\fRing
1271
+ from your keyboard or a socket) and haven't set up your own \f(CW$SIG{INT}\fR
1272
+ handler, then you won't be able to CTRL-C your way back to the debugger,
1273
+ because the debugger's own \f(CW$SIG{INT}\fR handler doesn't understand that
1274
+ it needs to raise an exception to \fBlongjmp\fR\|(3) out of slow syscalls.
data/miniconda3/man/man1/perldoc.1 ADDED
@@ -0,0 +1,416 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "PERLDOC 1"
136
+ .TH PERLDOC 1 "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
+ perldoc \- Look up Perl documentation in Pod format.
143
+ .SH "SYNOPSIS"
144
+ .IX Header "SYNOPSIS"
145
+ .Vb 10
146
+ \& perldoc [\-h] [\-D] [\-t] [\-u] [\-m] [\-l] [\-U] [\-F]
147
+ \& [\-i] [\-V] [\-T] [\-r]
148
+ \& [\-d destination_file]
149
+ \& [\-o formatname]
150
+ \& [\-M FormatterClassName]
151
+ \& [\-w formatteroption:value]
152
+ \& [\-n nroff\-replacement]
153
+ \& [\-X]
154
+ \& [\-L language_code]
155
+ \& PageName|ModuleName|ProgramName|URL
156
+ .Ve
157
+ .PP
158
+ Examples:
159
+ .PP
160
+ .Vb 1
161
+ \& perldoc \-f BuiltinFunction
162
+ \&
163
+ \& perldoc \-L it \-f BuiltinFunction
164
+ \&
165
+ \& perldoc \-q FAQ Keyword
166
+ \&
167
+ \& perldoc \-L fr \-q FAQ Keyword
168
+ \&
169
+ \& perldoc \-v PerlVariable
170
+ \&
171
+ \& perldoc \-a PerlAPI
172
+ .Ve
173
+ .PP
174
+ See below for more description of the switches.
175
+ .SH "DESCRIPTION"
176
+ .IX Header "DESCRIPTION"
177
+ \&\fBperldoc\fR looks up documentation in .pod format that is embedded in the perl
178
+ installation tree or in a perl script, and displays it using a variety of
179
+ formatters. This is primarily used for the documentation for the perl library
180
+ modules.
181
+ .PP
182
+ Your system may also have man pages installed for those modules, in
183
+ which case you can probably just use the \fBman\fR\|(1) command.
184
+ .PP
185
+ If you are looking for a table of contents to the Perl library modules
186
+ documentation, see the perltoc page.
187
+ .SH "OPTIONS"
188
+ .IX Header "OPTIONS"
189
+ .IP "\fB\-h\fR" 5
190
+ .IX Item "-h"
191
+ Prints out a brief \fBh\fRelp message.
192
+ .IP "\fB\-D\fR" 5
193
+ .IX Item "-D"
194
+ \&\fBD\fRescribes search for the item in \fBd\fRetail.
195
+ .IP "\fB\-t\fR" 5
196
+ .IX Item "-t"
197
+ Display docs using plain \fBt\fRext converter, instead of nroff. This may be faster,
198
+ but it probably won't look as nice.
199
+ .IP "\fB\-u\fR" 5
200
+ .IX Item "-u"
201
+ Skip the real Pod formatting, and just show the raw Pod source (\fBU\fRnformatted)
202
+ .IP "\fB\-m\fR \fImodule\fR" 5
203
+ .IX Item "-m module"
204
+ Display the entire module: both code and unformatted pod documentation.
205
+ This may be useful if the docs don't explain a function in the detail
206
+ you need, and you'd like to inspect the code directly; perldoc will find
207
+ the file for you and simply hand it off for display.
208
+ .IP "\fB\-l\fR" 5
209
+ .IX Item "-l"
210
+ Display on\fBl\fRy the file name of the module found.
211
+ .IP "\fB\-U\fR" 5
212
+ .IX Item "-U"
213
+ When running as the superuser, don't attempt drop privileges for security.
214
+ This option is implied with \fB\-F\fR.
215
+ .Sp
216
+ \&\fB\s-1NOTE\s0\fR: Please see the heading \s-1SECURITY\s0 below for more information.
217
+ .IP "\fB\-F\fR" 5
218
+ .IX Item "-F"
219
+ Consider arguments as file names; no search in directories will be performed.
220
+ Implies \fB\-U\fR if run as the superuser.
221
+ .IP "\fB\-f\fR \fIperlfunc\fR" 5
222
+ .IX Item "-f perlfunc"
223
+ The \fB\-f\fR option followed by the name of a perl built-in function will
224
+ extract the documentation of this function from perlfunc.
225
+ .Sp
226
+ Example:
227
+ .Sp
228
+ .Vb 1
229
+ \& perldoc \-f sprintf
230
+ .Ve
231
+ .IP "\fB\-q\fR \fIperlfaq-search-regexp\fR" 5
232
+ .IX Item "-q perlfaq-search-regexp"
233
+ The \fB\-q\fR option takes a regular expression as an argument. It will search
234
+ the \fBq\fRuestion headings in perlfaq[1\-9] and print the entries matching
235
+ the regular expression.
236
+ .Sp
237
+ Example:
238
+ .Sp
239
+ .Vb 1
240
+ \& perldoc \-q shuffle
241
+ .Ve
242
+ .IP "\fB\-a\fR \fIperlapifunc\fR" 5
243
+ .IX Item "-a perlapifunc"
244
+ The \fB\-a\fR option followed by the name of a perl api function will
245
+ extract the documentation of this function from perlapi.
246
+ .Sp
247
+ Example:
248
+ .Sp
249
+ .Vb 1
250
+ \& perldoc \-a newHV
251
+ .Ve
252
+ .IP "\fB\-v\fR \fIperlvar\fR" 5
253
+ .IX Item "-v perlvar"
254
+ The \fB\-v\fR option followed by the name of a Perl predefined variable will
255
+ extract the documentation of this variable from perlvar.
256
+ .Sp
257
+ Examples:
258
+ .Sp
259
+ .Vb 3
260
+ \& perldoc \-v \*(Aq$"\*(Aq
261
+ \& perldoc \-v @+
262
+ \& perldoc \-v DATA
263
+ .Ve
264
+ .IP "\fB\-T\fR" 5
265
+ .IX Item "-T"
266
+ This specifies that the output is not to be sent to a pager, but is to
267
+ be sent directly to \s-1STDOUT.\s0
268
+ .IP "\fB\-d\fR \fIdestination-filename\fR" 5
269
+ .IX Item "-d destination-filename"
270
+ This specifies that the output is to be sent neither to a pager nor
271
+ to \s-1STDOUT,\s0 but is to be saved to the specified filename. Example:
272
+ \&\f(CW\*(C`perldoc \-oLaTeX \-dtextwrapdocs.tex Text::Wrap\*(C'\fR
273
+ .IP "\fB\-o\fR \fIoutput-formatname\fR" 5
274
+ .IX Item "-o output-formatname"
275
+ This specifies that you want Perldoc to try using a Pod-formatting
276
+ class for the output format that you specify. For example:
277
+ \&\f(CW\*(C`\-oman\*(C'\fR. This is actually just a wrapper around the \f(CW\*(C`\-M\*(C'\fR switch;
278
+ using \f(CW\*(C`\-o\f(CIformatname\f(CW\*(C'\fR just looks for a loadable class by adding
279
+ that format name (with different capitalizations) to the end of
280
+ different classname prefixes.
281
+ .Sp
282
+ For example, \f(CW\*(C`\-oLaTeX\*(C'\fR currently tries all of the following classes:
283
+ Pod::Perldoc::ToLaTeX Pod::Perldoc::Tolatex Pod::Perldoc::ToLatex
284
+ Pod::Perldoc::ToLATEX Pod::Simple::LaTeX Pod::Simple::latex
285
+ Pod::Simple::Latex Pod::Simple::LATEX Pod::LaTeX Pod::latex Pod::Latex
286
+ Pod::LATEX.
287
+ .IP "\fB\-M\fR \fImodule-name\fR" 5
288
+ .IX Item "-M module-name"
289
+ This specifies the module that you want to try using for formatting the
290
+ pod. The class must at least provide a \f(CW\*(C`parse_from_file\*(C'\fR method.
291
+ For example: \f(CW\*(C`perldoc \-MPod::Perldoc::ToChecker\*(C'\fR.
292
+ .Sp
293
+ You can specify several classes to try by joining them with commas
294
+ or semicolons, as in \f(CW\*(C`\-MTk::SuperPod;Tk::Pod\*(C'\fR.
295
+ .IP "\fB\-w\fR \fIoption:value\fR or \fB\-w\fR \fIoption\fR" 5
296
+ .IX Item "-w option:value or -w option"
297
+ This specifies an option to call the formatter \fBw\fRith. For example,
298
+ \&\f(CW\*(C`\-w textsize:15\*(C'\fR will call
299
+ \&\f(CW\*(C`$formatter\->textsize(15)\*(C'\fR on the formatter object before it is
300
+ used to format the object. For this to be valid, the formatter class
301
+ must provide such a method, and the value you pass should be valid.
302
+ (So if \f(CW\*(C`textsize\*(C'\fR expects an integer, and you do \f(CW\*(C`\-w textsize:big\*(C'\fR,
303
+ expect trouble.)
304
+ .Sp
305
+ You can use \f(CW\*(C`\-w optionname\*(C'\fR (without a value) as shorthand for
306
+ \&\f(CW\*(C`\-w optionname:\f(CITRUE\f(CW\*(C'\fR. This is presumably useful in cases of on/off
307
+ features like: \f(CW\*(C`\-w page_numbering\*(C'\fR.
308
+ .Sp
309
+ You can use an \*(L"=\*(R" instead of the \*(L":\*(R", as in: \f(CW\*(C`\-w textsize=15\*(C'\fR. This
310
+ might be more (or less) convenient, depending on what shell you use.
311
+ .IP "\fB\-X\fR" 5
312
+ .IX Item "-X"
313
+ Use an index if it is present. The \fB\-X\fR option looks for an entry
314
+ whose basename matches the name given on the command line in the file
315
+ \&\f(CW\*(C`$Config{archlib}/pod.idx\*(C'\fR. The \fIpod.idx\fR file should contain fully
316
+ qualified filenames, one per line.
317
+ .IP "\fB\-L\fR \fIlanguage_code\fR" 5
318
+ .IX Item "-L language_code"
319
+ This allows one to specify the \fIlanguage code\fR for the desired language
320
+ translation. If the \f(CW\*(C`POD2::<language_code>\*(C'\fR package isn't
321
+ installed in your system, the switch is ignored.
322
+ All available translation packages are to be found under the \f(CW\*(C`POD2::\*(C'\fR
323
+ namespace. See \s-1POD2::IT\s0 (or \s-1POD2::FR\s0) to see how to create new
324
+ localized \f(CW\*(C`POD2::*\*(C'\fR documentation packages and integrate them into
325
+ Pod::Perldoc.
326
+ .IP "\fBPageName|ModuleName|ProgramName|URL\fR" 5
327
+ .IX Item "PageName|ModuleName|ProgramName|URL"
328
+ The item you want to look up. Nested modules (such as \f(CW\*(C`File::Basename\*(C'\fR)
329
+ are specified either as \f(CW\*(C`File::Basename\*(C'\fR or \f(CW\*(C`File/Basename\*(C'\fR. You may also
330
+ give a descriptive name of a page, such as \f(CW\*(C`perlfunc\*(C'\fR. For URLs, \s-1HTTP\s0 and
331
+ \&\s-1HTTPS\s0 are the only kind currently supported.
332
+ .Sp
333
+ For simple names like 'foo', when the normal search fails to find
334
+ a matching page, a search with the \*(L"perl\*(R" prefix is tried as well.
335
+ So \*(L"perldoc intro\*(R" is enough to find/render \*(L"perlintro.pod\*(R".
336
+ .IP "\fB\-n\fR \fIsome-formatter\fR" 5
337
+ .IX Item "-n some-formatter"
338
+ Specify replacement for groff
339
+ .IP "\fB\-r\fR" 5
340
+ .IX Item "-r"
341
+ Recursive search.
342
+ .IP "\fB\-i\fR" 5
343
+ .IX Item "-i"
344
+ Ignore case.
345
+ .IP "\fB\-V\fR" 5
346
+ .IX Item "-V"
347
+ Displays the version of perldoc you're running.
348
+ .SH "SECURITY"
349
+ .IX Header "SECURITY"
350
+ Because \fBperldoc\fR does not run properly tainted, and is known to
351
+ have security issues, when run as the superuser it will attempt to
352
+ drop privileges by setting the effective and real IDs to nobody's
353
+ or nouser's account, or \-2 if unavailable. If it cannot relinquish
354
+ its privileges, it will not run.
355
+ .PP
356
+ See the \f(CW\*(C`\-U\*(C'\fR option if you do not want this behavior but \fBbeware\fR
357
+ that there are significant security risks if you choose to use \f(CW\*(C`\-U\*(C'\fR.
358
+ .PP
359
+ Since 3.26, using \f(CW\*(C`\-F\*(C'\fR as the superuser also implies \f(CW\*(C`\-U\*(C'\fR as opening
360
+ most files and traversing directories requires privileges that are
361
+ above the nobody/nogroup level.
362
+ .SH "ENVIRONMENT"
363
+ .IX Header "ENVIRONMENT"
364
+ Any switches in the \f(CW\*(C`PERLDOC\*(C'\fR environment variable will be used before the
365
+ command line arguments.
366
+ .PP
367
+ Useful values for \f(CW\*(C`PERLDOC\*(C'\fR include \f(CW\*(C`\-oterm\*(C'\fR, \f(CW\*(C`\-otext\*(C'\fR, \f(CW\*(C`\-ortf\*(C'\fR,
368
+ \&\f(CW\*(C`\-oxml\*(C'\fR, and so on, depending on what modules you have on hand; or
369
+ the formatter class may be specified exactly with \f(CW\*(C`\-MPod::Perldoc::ToTerm\*(C'\fR
370
+ or the like.
371
+ .PP
372
+ \&\f(CW\*(C`perldoc\*(C'\fR also searches directories
373
+ specified by the \f(CW\*(C`PERL5LIB\*(C'\fR (or \f(CW\*(C`PERLLIB\*(C'\fR if \f(CW\*(C`PERL5LIB\*(C'\fR is not
374
+ defined) and \f(CW\*(C`PATH\*(C'\fR environment variables.
375
+ (The latter is so that embedded pods for executables, such as
376
+ \&\f(CW\*(C`perldoc\*(C'\fR itself, are available.)
377
+ .PP
378
+ In directories where either \f(CW\*(C`Makefile.PL\*(C'\fR or \f(CW\*(C`Build.PL\*(C'\fR exist, \f(CW\*(C`perldoc\*(C'\fR
379
+ will add \f(CW\*(C`.\*(C'\fR and \f(CW\*(C`lib\*(C'\fR first to its search path, and as long as you're not
380
+ the superuser will add \f(CW\*(C`blib\*(C'\fR too. This is really helpful if you're working
381
+ inside of a build directory and want to read through the docs even if you
382
+ have a version of a module previously installed.
383
+ .PP
384
+ \&\f(CW\*(C`perldoc\*(C'\fR will use, in order of preference, the pager defined in
385
+ \&\f(CW\*(C`PERLDOC_PAGER\*(C'\fR, \f(CW\*(C`MANPAGER\*(C'\fR, or \f(CW\*(C`PAGER\*(C'\fR before trying to find a pager
386
+ on its own. (\f(CW\*(C`MANPAGER\*(C'\fR is not used if \f(CW\*(C`perldoc\*(C'\fR was told to display
387
+ plain text or unformatted pod.)
388
+ .PP
389
+ When using perldoc in it's \f(CW\*(C`\-m\*(C'\fR mode (display module source code),
390
+ \&\f(CW\*(C`perldoc\*(C'\fR will attempt to use the pager set in \f(CW\*(C`PERLDOC_SRC_PAGER\*(C'\fR.
391
+ A useful setting for this command is your favorite editor as in
392
+ \&\f(CW\*(C`/usr/bin/nano\*(C'\fR. (Don't judge me.)
393
+ .PP
394
+ One useful value for \f(CW\*(C`PERLDOC_PAGER\*(C'\fR is \f(CW\*(C`less \-+C \-E\*(C'\fR.
395
+ .PP
396
+ Having \s-1PERLDOCDEBUG\s0 set to a positive integer will make perldoc emit
397
+ even more descriptive output than the \f(CW\*(C`\-D\*(C'\fR switch does; the higher the
398
+ number, the more it emits.
399
+ .SH "CHANGES"
400
+ .IX Header "CHANGES"
401
+ Up to 3.14_05, the switch \fB\-v\fR was used to produce verbose
402
+ messages of \fBperldoc\fR operation, which is now enabled by \fB\-D\fR.
403
+ .SH "SEE ALSO"
404
+ .IX Header "SEE ALSO"
405
+ perlpod, Pod::Perldoc
406
+ .SH "AUTHOR"
407
+ .IX Header "AUTHOR"
408
+ Current maintainer: Mark Allen \f(CW\*(C`<mallen@cpan.org>\*(C'\fR
409
+ .PP
410
+ Past contributors are:
411
+ brian d foy \f(CW\*(C`<bdfoy@cpan.org>\*(C'\fR
412
+ Adriano R. Ferreira \f(CW\*(C`<ferreira@cpan.org>\*(C'\fR,
413
+ Sean M. Burke \f(CW\*(C`<sburke@cpan.org>\*(C'\fR,
414
+ Kenneth Albanowski \f(CW\*(C`<kjahds@kjahds.com>\*(C'\fR,
415
+ Andy Dougherty \f(CW\*(C`<doughera@lafcol.lafayette.edu>\*(C'\fR,
416
+ and many others.
data/miniconda3/man/man1/perldtrace.1 ADDED
@@ -0,0 +1,356 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "PERLDTRACE 1"
136
+ .TH PERLDTRACE 1 "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
+ perldtrace \- Perl's support for DTrace
143
+ .SH "SYNOPSIS"
144
+ .IX Header "SYNOPSIS"
145
+ .Vb 2
146
+ \& # dtrace \-Zn \*(Aqperl::sub\-entry, perl::sub\-return { trace(copyinstr(arg0)) }\*(Aq
147
+ \& dtrace: description \*(Aqperl::sub\-entry, perl::sub\-return \*(Aq matched 10 probes
148
+ \&
149
+ \& # perl \-E \*(Aqsub outer { inner(@_) } sub inner { say shift } outer("hello")\*(Aq
150
+ \& hello
151
+ \&
152
+ \& (dtrace output)
153
+ \& CPU ID FUNCTION:NAME
154
+ \& 0 75915 Perl_pp_entersub:sub\-entry BEGIN
155
+ \& 0 75915 Perl_pp_entersub:sub\-entry import
156
+ \& 0 75922 Perl_pp_leavesub:sub\-return import
157
+ \& 0 75922 Perl_pp_leavesub:sub\-return BEGIN
158
+ \& 0 75915 Perl_pp_entersub:sub\-entry outer
159
+ \& 0 75915 Perl_pp_entersub:sub\-entry inner
160
+ \& 0 75922 Perl_pp_leavesub:sub\-return inner
161
+ \& 0 75922 Perl_pp_leavesub:sub\-return outer
162
+ .Ve
163
+ .SH "DESCRIPTION"
164
+ .IX Header "DESCRIPTION"
165
+ DTrace is a framework for comprehensive system\- and application-level
166
+ tracing. Perl is a DTrace \fIprovider\fR, meaning it exposes several
167
+ \&\fIprobes\fR for instrumentation. You can use these in conjunction
168
+ with kernel-level probes, as well as probes from other providers
169
+ such as MySQL, in order to diagnose software defects, or even just
170
+ your application's bottlenecks.
171
+ .PP
172
+ Perl must be compiled with the \f(CW\*(C`\-Dusedtrace\*(C'\fR option in order to
173
+ make use of the provided probes. While DTrace aims to have no
174
+ overhead when its instrumentation is not active, Perl's support
175
+ itself cannot uphold that guarantee, so it is built without DTrace
176
+ probes under most systems. One notable exception is that Mac \s-1OS X\s0
177
+ ships a \fI/usr/bin/perl\fR with DTrace support enabled.
178
+ .SH "HISTORY"
179
+ .IX Header "HISTORY"
180
+ .IP "5.10.1" 4
181
+ .IX Item "5.10.1"
182
+ Perl's initial DTrace support was added, providing \f(CW\*(C`sub\-entry\*(C'\fR and
183
+ \&\f(CW\*(C`sub\-return\*(C'\fR probes.
184
+ .IP "5.14.0" 4
185
+ .IX Item "5.14.0"
186
+ The \f(CW\*(C`sub\-entry\*(C'\fR and \f(CW\*(C`sub\-return\*(C'\fR probes gain a fourth argument: the
187
+ package name of the function.
188
+ .IP "5.16.0" 4
189
+ .IX Item "5.16.0"
190
+ The \f(CW\*(C`phase\-change\*(C'\fR probe was added.
191
+ .IP "5.18.0" 4
192
+ .IX Item "5.18.0"
193
+ The \f(CW\*(C`op\-entry\*(C'\fR, \f(CW\*(C`loading\-file\*(C'\fR, and \f(CW\*(C`loaded\-file\*(C'\fR probes were added.
194
+ .SH "PROBES"
195
+ .IX Header "PROBES"
196
+ .IP "sub\-entry(\s-1SUBNAME, FILE, LINE, PACKAGE\s0)" 4
197
+ .IX Item "sub-entry(SUBNAME, FILE, LINE, PACKAGE)"
198
+ Traces the entry of any subroutine. Note that all of the variables
199
+ refer to the subroutine that is being invoked; there is currently
200
+ no way to get ahold of any information about the subroutine's
201
+ \&\fIcaller\fR from a DTrace action.
202
+ .Sp
203
+ .Vb 4
204
+ \& :*perl*::sub\-entry {
205
+ \& printf("%s::%s entered at %s line %d\en",
206
+ \& copyinstr(arg3), copyinstr(arg0), copyinstr(arg1), arg2);
207
+ \& }
208
+ .Ve
209
+ .IP "sub\-return(\s-1SUBNAME, FILE, LINE, PACKAGE\s0)" 4
210
+ .IX Item "sub-return(SUBNAME, FILE, LINE, PACKAGE)"
211
+ Traces the exit of any subroutine. Note that all of the variables
212
+ refer to the subroutine that is returning; there is currently no
213
+ way to get ahold of any information about the subroutine's \fIcaller\fR
214
+ from a DTrace action.
215
+ .Sp
216
+ .Vb 4
217
+ \& :*perl*::sub\-return {
218
+ \& printf("%s::%s returned at %s line %d\en",
219
+ \& copyinstr(arg3), copyinstr(arg0), copyinstr(arg1), arg2);
220
+ \& }
221
+ .Ve
222
+ .IP "phase\-change(\s-1NEWPHASE, OLDPHASE\s0)" 4
223
+ .IX Item "phase-change(NEWPHASE, OLDPHASE)"
224
+ Traces changes to Perl's interpreter state. You can internalize this
225
+ as tracing changes to Perl's \f(CW\*(C`${^GLOBAL_PHASE}\*(C'\fR variable, especially
226
+ since the values for \f(CW\*(C`NEWPHASE\*(C'\fR and \f(CW\*(C`OLDPHASE\*(C'\fR are the strings that
227
+ \&\f(CW\*(C`${^GLOBAL_PHASE}\*(C'\fR reports.
228
+ .Sp
229
+ .Vb 4
230
+ \& :*perl*::phase\-change {
231
+ \& printf("Phase changed from %s to %s\en",
232
+ \& copyinstr(arg1), copyinstr(arg0));
233
+ \& }
234
+ .Ve
235
+ .IP "op\-entry(\s-1OPNAME\s0)" 4
236
+ .IX Item "op-entry(OPNAME)"
237
+ Traces the execution of each opcode in the Perl runloop. This probe
238
+ is fired before the opcode is executed. When the Perl debugger is
239
+ enabled, the DTrace probe is fired \fIafter\fR the debugger hooks (but
240
+ still before the opcode itself is executed).
241
+ .Sp
242
+ .Vb 3
243
+ \& :*perl*::op\-entry {
244
+ \& printf("About to execute opcode %s\en", copyinstr(arg0));
245
+ \& }
246
+ .Ve
247
+ .IP "loading\-file(\s-1FILENAME\s0)" 4
248
+ .IX Item "loading-file(FILENAME)"
249
+ Fires when Perl is about to load an individual file, whether from
250
+ \&\f(CW\*(C`use\*(C'\fR, \f(CW\*(C`require\*(C'\fR, or \f(CW\*(C`do\*(C'\fR. This probe fires before the file is
251
+ read from disk. The filename argument is converted to local filesystem
252
+ paths instead of providing \f(CW\*(C`Module::Name\*(C'\fR\-style names.
253
+ .Sp
254
+ .Vb 3
255
+ \& :*perl*:loading\-file {
256
+ \& printf("About to load %s\en", copyinstr(arg0));
257
+ \& }
258
+ .Ve
259
+ .IP "loaded\-file(\s-1FILENAME\s0)" 4
260
+ .IX Item "loaded-file(FILENAME)"
261
+ Fires when Perl has successfully loaded an individual file, whether
262
+ from \f(CW\*(C`use\*(C'\fR, \f(CW\*(C`require\*(C'\fR, or \f(CW\*(C`do\*(C'\fR. This probe fires after the file
263
+ is read from disk and its contents evaluated. The filename argument
264
+ is converted to local filesystem paths instead of providing
265
+ \&\f(CW\*(C`Module::Name\*(C'\fR\-style names.
266
+ .Sp
267
+ .Vb 3
268
+ \& :*perl*:loaded\-file {
269
+ \& printf("Successfully loaded %s\en", copyinstr(arg0));
270
+ \& }
271
+ .Ve
272
+ .SH "EXAMPLES"
273
+ .IX Header "EXAMPLES"
274
+ .IP "Most frequently called functions" 4
275
+ .IX Item "Most frequently called functions"
276
+ .Vb 1
277
+ \& # dtrace \-qZn \*(Aqsub\-entry { @[strjoin(strjoin(copyinstr(arg3),"::"),copyinstr(arg0))] = count() } END {trunc(@, 10)}\*(Aq
278
+ \&
279
+ \& Class::MOP::Attribute::slots 400
280
+ \& Try::Tiny::catch 411
281
+ \& Try::Tiny::try 411
282
+ \& Class::MOP::Instance::inline_slot_access 451
283
+ \& Class::MOP::Class::Immutable::Trait:::around 472
284
+ \& Class::MOP::Mixin::AttributeCore::has_initializer 496
285
+ \& Class::MOP::Method::Wrapped::_\|_ANON_\|_ 544
286
+ \& Class::MOP::Package::_package_stash 737
287
+ \& Class::MOP::Class::initialize 1128
288
+ \& Class::MOP::get_metaclass_by_name 1204
289
+ .Ve
290
+ .IP "Trace function calls" 4
291
+ .IX Item "Trace function calls"
292
+ .Vb 1
293
+ \& # dtrace \-qFZn \*(Aqsub\-entry, sub\-return { trace(copyinstr(arg0)) }\*(Aq
294
+ \&
295
+ \& 0 \-> Perl_pp_entersub BEGIN
296
+ \& 0 <\- Perl_pp_leavesub BEGIN
297
+ \& 0 \-> Perl_pp_entersub BEGIN
298
+ \& 0 \-> Perl_pp_entersub import
299
+ \& 0 <\- Perl_pp_leavesub import
300
+ \& 0 <\- Perl_pp_leavesub BEGIN
301
+ \& 0 \-> Perl_pp_entersub BEGIN
302
+ \& 0 \-> Perl_pp_entersub dress
303
+ \& 0 <\- Perl_pp_leavesub dress
304
+ \& 0 \-> Perl_pp_entersub dirty
305
+ \& 0 <\- Perl_pp_leavesub dirty
306
+ \& 0 \-> Perl_pp_entersub whiten
307
+ \& 0 <\- Perl_pp_leavesub whiten
308
+ \& 0 <\- Perl_dounwind BEGIN
309
+ .Ve
310
+ .IP "Function calls during interpreter cleanup" 4
311
+ .IX Item "Function calls during interpreter cleanup"
312
+ .Vb 1
313
+ \& # dtrace \-Zn \*(Aqphase\-change /copyinstr(arg0) == "END"/ { self\->ending = 1 } sub\-entry /self\->ending/ { trace(copyinstr(arg0)) }\*(Aq
314
+ \&
315
+ \& CPU ID FUNCTION:NAME
316
+ \& 1 77214 Perl_pp_entersub:sub\-entry END
317
+ \& 1 77214 Perl_pp_entersub:sub\-entry END
318
+ \& 1 77214 Perl_pp_entersub:sub\-entry cleanup
319
+ \& 1 77214 Perl_pp_entersub:sub\-entry _force_writable
320
+ \& 1 77214 Perl_pp_entersub:sub\-entry _force_writable
321
+ .Ve
322
+ .IP "System calls at compile time" 4
323
+ .IX Item "System calls at compile time"
324
+ .Vb 1
325
+ \& # dtrace \-qZn \*(Aqphase\-change /copyinstr(arg0) == "START"/ { self\->interesting = 1 } phase\-change /copyinstr(arg0) == "RUN"/ { self\->interesting = 0 } syscall::: /self\->interesting/ { @[probefunc] = count() } END { trunc(@, 3) }\*(Aq
326
+ \&
327
+ \& lseek 310
328
+ \& read 374
329
+ \& stat64 1056
330
+ .Ve
331
+ .IP "Perl functions that execute the most opcodes" 4
332
+ .IX Item "Perl functions that execute the most opcodes"
333
+ .Vb 1
334
+ \& # dtrace \-qZn \*(Aqsub\-entry { self\->fqn = strjoin(copyinstr(arg3), strjoin("::", copyinstr(arg0))) } op\-entry /self\->fqn != ""/ { @[self\->fqn] = count() } END { trunc(@, 3) }\*(Aq
335
+ \&
336
+ \& warnings::unimport 4589
337
+ \& Exporter::Heavy::_rebuild_cache 5039
338
+ \& Exporter::import 14578
339
+ .Ve
340
+ .SH "REFERENCES"
341
+ .IX Header "REFERENCES"
342
+ .IP "DTrace Dynamic Tracing Guide" 4
343
+ .IX Item "DTrace Dynamic Tracing Guide"
344
+ <http://dtrace.org/guide/preface.html>
345
+ .IP "DTrace: Dynamic Tracing in Oracle Solaris, Mac \s-1OS X\s0 and FreeBSD" 4
346
+ .IX Item "DTrace: Dynamic Tracing in Oracle Solaris, Mac OS X and FreeBSD"
347
+ <https://www.amazon.com/DTrace\-Dynamic\-Tracing\-Solaris\-FreeBSD/dp/0132091518/>
348
+ .SH "SEE ALSO"
349
+ .IX Header "SEE ALSO"
350
+ .IP "Devel::DTrace::Provider" 4
351
+ .IX Item "Devel::DTrace::Provider"
352
+ This \s-1CPAN\s0 module lets you create application-level DTrace probes written in
353
+ Perl.
354
+ .SH "AUTHORS"
355
+ .IX Header "AUTHORS"
356
+ Shawn M Moore \f(CW\*(C`sartak@gmail.com\*(C'\fR
data/miniconda3/man/man1/perlebcdic.1 ADDED
The diff for this file is too large to render. See raw diff
 
data/miniconda3/man/man1/perlembed.1 ADDED
@@ -0,0 +1,1324 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "PERLEMBED 1"
136
+ .TH PERLEMBED 1 "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
+ perlembed \- how to embed perl in your C program
143
+ .SH "DESCRIPTION"
144
+ .IX Header "DESCRIPTION"
145
+ .SS "\s-1PREAMBLE\s0"
146
+ .IX Subsection "PREAMBLE"
147
+ Do you want to:
148
+ .IP "\fBUse C from Perl?\fR" 5
149
+ .IX Item "Use C from Perl?"
150
+ Read perlxstut, perlxs, h2xs, perlguts, and perlapi.
151
+ .IP "\fBUse a Unix program from Perl?\fR" 5
152
+ .IX Item "Use a Unix program from Perl?"
153
+ Read about back-quotes and about \f(CW\*(C`system\*(C'\fR and \f(CW\*(C`exec\*(C'\fR in perlfunc.
154
+ .IP "\fBUse Perl from Perl?\fR" 5
155
+ .IX Item "Use Perl from Perl?"
156
+ Read about \*(L"do\*(R" in perlfunc and \*(L"eval\*(R" in perlfunc and \*(L"require\*(R" in perlfunc
157
+ and \*(L"use\*(R" in perlfunc.
158
+ .IP "\fBUse C from C?\fR" 5
159
+ .IX Item "Use C from C?"
160
+ Rethink your design.
161
+ .IP "\fBUse Perl from C?\fR" 5
162
+ .IX Item "Use Perl from C?"
163
+ Read on...
164
+ .SS "\s-1ROADMAP\s0"
165
+ .IX Subsection "ROADMAP"
166
+ .IP "\(bu" 5
167
+ Compiling your C program
168
+ .IP "\(bu" 5
169
+ Adding a Perl interpreter to your C program
170
+ .IP "\(bu" 5
171
+ Calling a Perl subroutine from your C program
172
+ .IP "\(bu" 5
173
+ Evaluating a Perl statement from your C program
174
+ .IP "\(bu" 5
175
+ Performing Perl pattern matches and substitutions from your C program
176
+ .IP "\(bu" 5
177
+ Fiddling with the Perl stack from your C program
178
+ .IP "\(bu" 5
179
+ Maintaining a persistent interpreter
180
+ .IP "\(bu" 5
181
+ Maintaining multiple interpreter instances
182
+ .IP "\(bu" 5
183
+ Using Perl modules, which themselves use C libraries, from your C program
184
+ .IP "\(bu" 5
185
+ Embedding Perl under Win32
186
+ .SS "Compiling your C program"
187
+ .IX Subsection "Compiling your C program"
188
+ If you have trouble compiling the scripts in this documentation,
189
+ you're not alone. The cardinal rule: \s-1COMPILE THE PROGRAMS IN EXACTLY
190
+ THE SAME WAY THAT YOUR PERL WAS COMPILED.\s0 (Sorry for yelling.)
191
+ .PP
192
+ Also, every C program that uses Perl must link in the \fIperl library\fR.
193
+ What's that, you ask? Perl is itself written in C; the perl library
194
+ is the collection of compiled C programs that were used to create your
195
+ perl executable (\fI/usr/bin/perl\fR or equivalent). (Corollary: you
196
+ can't use Perl from your C program unless Perl has been compiled on
197
+ your machine, or installed properly\*(--that's why you shouldn't blithely
198
+ copy Perl executables from machine to machine without also copying the
199
+ \&\fIlib\fR directory.)
200
+ .PP
201
+ When you use Perl from C, your C program will\*(--usually\-\-allocate,
202
+ \&\*(L"run\*(R", and deallocate a \fIPerlInterpreter\fR object, which is defined by
203
+ the perl library.
204
+ .PP
205
+ If your copy of Perl is recent enough to contain this documentation
206
+ (version 5.002 or later), then the perl library (and \fI\s-1EXTERN\s0.h\fR and
207
+ \&\fIperl.h\fR, which you'll also need) will reside in a directory
208
+ that looks like this:
209
+ .PP
210
+ .Vb 1
211
+ \& /usr/local/lib/perl5/your_architecture_here/CORE
212
+ .Ve
213
+ .PP
214
+ or perhaps just
215
+ .PP
216
+ .Vb 1
217
+ \& /usr/local/lib/perl5/CORE
218
+ .Ve
219
+ .PP
220
+ or maybe something like
221
+ .PP
222
+ .Vb 1
223
+ \& /usr/opt/perl5/CORE
224
+ .Ve
225
+ .PP
226
+ Execute this statement for a hint about where to find \s-1CORE:\s0
227
+ .PP
228
+ .Vb 1
229
+ \& perl \-MConfig \-e \*(Aqprint $Config{archlib}\*(Aq
230
+ .Ve
231
+ .PP
232
+ Here's how you'd compile the example in the next section,
233
+ \&\*(L"Adding a Perl interpreter to your C program\*(R", on my Linux box:
234
+ .PP
235
+ .Vb 4
236
+ \& % gcc \-O2 \-Dbool=char \-DHAS_BOOL \-I/usr/local/include
237
+ \& \-I/usr/local/lib/perl5/i586\-linux/5.003/CORE
238
+ \& \-L/usr/local/lib/perl5/i586\-linux/5.003/CORE
239
+ \& \-o interp interp.c \-lperl \-lm
240
+ .Ve
241
+ .PP
242
+ (That's all one line.) On my \s-1DEC\s0 Alpha running old 5.003_05, the
243
+ incantation is a bit different:
244
+ .PP
245
+ .Vb 4
246
+ \& % cc \-O2 \-Olimit 2900 \-I/usr/local/include
247
+ \& \-I/usr/local/lib/perl5/alpha\-dec_osf/5.00305/CORE
248
+ \& \-L/usr/local/lib/perl5/alpha\-dec_osf/5.00305/CORE \-L/usr/local/lib
249
+ \& \-D_\|_LANGUAGE_C_\|_ \-D_NO_PROTO \-o interp interp.c \-lperl \-lm
250
+ .Ve
251
+ .PP
252
+ How can you figure out what to add? Assuming your Perl is post\-5.001,
253
+ execute a \f(CW\*(C`perl \-V\*(C'\fR command and pay special attention to the \*(L"cc\*(R" and
254
+ \&\*(L"ccflags\*(R" information.
255
+ .PP
256
+ You'll have to choose the appropriate compiler (\fIcc\fR, \fIgcc\fR, et al.) for
257
+ your machine: \f(CW\*(C`perl \-MConfig \-e \*(Aqprint $Config{cc}\*(Aq\*(C'\fR will tell you what
258
+ to use.
259
+ .PP
260
+ You'll also have to choose the appropriate library directory
261
+ (\fI/usr/local/lib/...\fR) for your machine. If your compiler complains
262
+ that certain functions are undefined, or that it can't locate
263
+ \&\fI\-lperl\fR, then you need to change the path following the \f(CW\*(C`\-L\*(C'\fR. If it
264
+ complains that it can't find \fI\s-1EXTERN\s0.h\fR and \fIperl.h\fR, you need to
265
+ change the path following the \f(CW\*(C`\-I\*(C'\fR.
266
+ .PP
267
+ You may have to add extra libraries as well. Which ones?
268
+ Perhaps those printed by
269
+ .PP
270
+ .Vb 1
271
+ \& perl \-MConfig \-e \*(Aqprint $Config{libs}\*(Aq
272
+ .Ve
273
+ .PP
274
+ Provided your perl binary was properly configured and installed the
275
+ \&\fBExtUtils::Embed\fR module will determine all of this information for
276
+ you:
277
+ .PP
278
+ .Vb 1
279
+ \& % cc \-o interp interp.c \`perl \-MExtUtils::Embed \-e ccopts \-e ldopts\`
280
+ .Ve
281
+ .PP
282
+ If the \fBExtUtils::Embed\fR module isn't part of your Perl distribution,
283
+ you can retrieve it from
284
+ <https://metacpan.org/pod/ExtUtils::Embed>
285
+ (If this documentation came from your Perl distribution, then you're
286
+ running 5.004 or better and you already have it.)
287
+ .PP
288
+ The \fBExtUtils::Embed\fR kit on \s-1CPAN\s0 also contains all source code for
289
+ the examples in this document, tests, additional examples and other
290
+ information you may find useful.
291
+ .SS "Adding a Perl interpreter to your C program"
292
+ .IX Subsection "Adding a Perl interpreter to your C program"
293
+ In a sense, perl (the C program) is a good example of embedding Perl
294
+ (the language), so I'll demonstrate embedding with \fIminiperlmain.c\fR,
295
+ included in the source distribution. Here's a bastardized, non-portable
296
+ version of \fIminiperlmain.c\fR containing the essentials of embedding:
297
+ .PP
298
+ .Vb 2
299
+ \& #include <EXTERN.h> /* from the Perl distribution */
300
+ \& #include <perl.h> /* from the Perl distribution */
301
+ \&
302
+ \& static PerlInterpreter *my_perl; /*** The Perl interpreter ***/
303
+ \&
304
+ \& int main(int argc, char **argv, char **env)
305
+ \& {
306
+ \& PERL_SYS_INIT3(&argc,&argv,&env);
307
+ \& my_perl = perl_alloc();
308
+ \& perl_construct(my_perl);
309
+ \& PL_exit_flags |= PERL_EXIT_DESTRUCT_END;
310
+ \& perl_parse(my_perl, NULL, argc, argv, (char **)NULL);
311
+ \& perl_run(my_perl);
312
+ \& perl_destruct(my_perl);
313
+ \& perl_free(my_perl);
314
+ \& PERL_SYS_TERM();
315
+ \& exit(EXIT_SUCCESS);
316
+ \& }
317
+ .Ve
318
+ .PP
319
+ Notice that we don't use the \f(CW\*(C`env\*(C'\fR pointer. Normally handed to
320
+ \&\f(CW\*(C`perl_parse\*(C'\fR as its final argument, \f(CW\*(C`env\*(C'\fR here is replaced by
321
+ \&\f(CW\*(C`NULL\*(C'\fR, which means that the current environment will be used.
322
+ .PP
323
+ The macros \s-1\fBPERL_SYS_INIT3\s0()\fR and \s-1\fBPERL_SYS_TERM\s0()\fR provide system-specific
324
+ tune up of the C runtime environment necessary to run Perl interpreters;
325
+ they should only be called once regardless of how many interpreters you
326
+ create or destroy. Call \s-1\fBPERL_SYS_INIT3\s0()\fR before you create your first
327
+ interpreter, and \s-1\fBPERL_SYS_TERM\s0()\fR after you free your last interpreter.
328
+ .PP
329
+ Since \s-1\fBPERL_SYS_INIT3\s0()\fR may change \f(CW\*(C`env\*(C'\fR, it may be more appropriate to
330
+ provide \f(CW\*(C`env\*(C'\fR as an argument to \fBperl_parse()\fR.
331
+ .PP
332
+ Also notice that no matter what arguments you pass to \fBperl_parse()\fR,
333
+ \&\s-1\fBPERL_SYS_INIT3\s0()\fR must be invoked on the C \fBmain()\fR argc, argv and env and
334
+ only once.
335
+ .PP
336
+ Mind that argv[argc] must be \s-1NULL,\s0 same as those passed to a main
337
+ function in C.
338
+ .PP
339
+ Now compile this program (I'll call it \fIinterp.c\fR) into an executable:
340
+ .PP
341
+ .Vb 1
342
+ \& % cc \-o interp interp.c \`perl \-MExtUtils::Embed \-e ccopts \-e ldopts\`
343
+ .Ve
344
+ .PP
345
+ After a successful compilation, you'll be able to use \fIinterp\fR just
346
+ like perl itself:
347
+ .PP
348
+ .Vb 6
349
+ \& % interp
350
+ \& print "Pretty Good Perl \en";
351
+ \& print "10890 \- 9801 is ", 10890 \- 9801;
352
+ \& <CTRL\-D>
353
+ \& Pretty Good Perl
354
+ \& 10890 \- 9801 is 1089
355
+ .Ve
356
+ .PP
357
+ or
358
+ .PP
359
+ .Vb 2
360
+ \& % interp \-e \*(Aqprintf("%x", 3735928559)\*(Aq
361
+ \& deadbeef
362
+ .Ve
363
+ .PP
364
+ You can also read and execute Perl statements from a file while in the
365
+ midst of your C program, by placing the filename in \fIargv[1]\fR before
366
+ calling \fIperl_run\fR.
367
+ .SS "Calling a Perl subroutine from your C program"
368
+ .IX Subsection "Calling a Perl subroutine from your C program"
369
+ To call individual Perl subroutines, you can use any of the \fBcall_*\fR
370
+ functions documented in perlcall.
371
+ In this example we'll use \f(CW\*(C`call_argv\*(C'\fR.
372
+ .PP
373
+ That's shown below, in a program I'll call \fIshowtime.c\fR.
374
+ .PP
375
+ .Vb 2
376
+ \& #include <EXTERN.h>
377
+ \& #include <perl.h>
378
+ \&
379
+ \& static PerlInterpreter *my_perl;
380
+ \&
381
+ \& int main(int argc, char **argv, char **env)
382
+ \& {
383
+ \& char *args[] = { NULL };
384
+ \& PERL_SYS_INIT3(&argc,&argv,&env);
385
+ \& my_perl = perl_alloc();
386
+ \& perl_construct(my_perl);
387
+ \&
388
+ \& perl_parse(my_perl, NULL, argc, argv, NULL);
389
+ \& PL_exit_flags |= PERL_EXIT_DESTRUCT_END;
390
+ \&
391
+ \& /*** skipping perl_run() ***/
392
+ \&
393
+ \& call_argv("showtime", G_DISCARD | G_NOARGS, args);
394
+ \&
395
+ \& perl_destruct(my_perl);
396
+ \& perl_free(my_perl);
397
+ \& PERL_SYS_TERM();
398
+ \& exit(EXIT_SUCCESS);
399
+ \& }
400
+ .Ve
401
+ .PP
402
+ where \fIshowtime\fR is a Perl subroutine that takes no arguments (that's the
403
+ \&\fIG_NOARGS\fR) and for which I'll ignore the return value (that's the
404
+ \&\fIG_DISCARD\fR). Those flags, and others, are discussed in perlcall.
405
+ .PP
406
+ I'll define the \fIshowtime\fR subroutine in a file called \fIshowtime.pl\fR:
407
+ .PP
408
+ .Vb 1
409
+ \& print "I shan\*(Aqt be printed.";
410
+ \&
411
+ \& sub showtime {
412
+ \& print time;
413
+ \& }
414
+ .Ve
415
+ .PP
416
+ Simple enough. Now compile and run:
417
+ .PP
418
+ .Vb 4
419
+ \& % cc \-o showtime showtime.c \e
420
+ \& \`perl \-MExtUtils::Embed \-e ccopts \-e ldopts\`
421
+ \& % showtime showtime.pl
422
+ \& 818284590
423
+ .Ve
424
+ .PP
425
+ yielding the number of seconds that elapsed between January 1, 1970
426
+ (the beginning of the Unix epoch), and the moment I began writing this
427
+ sentence.
428
+ .PP
429
+ In this particular case we don't have to call \fIperl_run\fR, as we set
430
+ the PL_exit_flag \s-1PERL_EXIT_DESTRUCT_END\s0 which executes \s-1END\s0 blocks in
431
+ perl_destruct.
432
+ .PP
433
+ If you want to pass arguments to the Perl subroutine, you can add
434
+ strings to the \f(CW\*(C`NULL\*(C'\fR\-terminated \f(CW\*(C`args\*(C'\fR list passed to
435
+ \&\fIcall_argv\fR. For other data types, or to examine return values,
436
+ you'll need to manipulate the Perl stack. That's demonstrated in
437
+ \&\*(L"Fiddling with the Perl stack from your C program\*(R".
438
+ .SS "Evaluating a Perl statement from your C program"
439
+ .IX Subsection "Evaluating a Perl statement from your C program"
440
+ Perl provides two \s-1API\s0 functions to evaluate pieces of Perl code.
441
+ These are \*(L"eval_sv\*(R" in perlapi and \*(L"eval_pv\*(R" in perlapi.
442
+ .PP
443
+ Arguably, these are the only routines you'll ever need to execute
444
+ snippets of Perl code from within your C program. Your code can be as
445
+ long as you wish; it can contain multiple statements; it can employ
446
+ \&\*(L"use\*(R" in perlfunc, \*(L"require\*(R" in perlfunc, and \*(L"do\*(R" in perlfunc to
447
+ include external Perl files.
448
+ .PP
449
+ \&\fIeval_pv\fR lets us evaluate individual Perl strings, and then
450
+ extract variables for coercion into C types. The following program,
451
+ \&\fIstring.c\fR, executes three Perl strings, extracting an \f(CW\*(C`int\*(C'\fR from
452
+ the first, a \f(CW\*(C`float\*(C'\fR from the second, and a \f(CW\*(C`char *\*(C'\fR from the third.
453
+ .PP
454
+ .Vb 2
455
+ \& #include <EXTERN.h>
456
+ \& #include <perl.h>
457
+ \&
458
+ \& static PerlInterpreter *my_perl;
459
+ \&
460
+ \& main (int argc, char **argv, char **env)
461
+ \& {
462
+ \& char *embedding[] = { "", "\-e", "0", NULL };
463
+ \&
464
+ \& PERL_SYS_INIT3(&argc,&argv,&env);
465
+ \& my_perl = perl_alloc();
466
+ \& perl_construct( my_perl );
467
+ \&
468
+ \& perl_parse(my_perl, NULL, 3, embedding, NULL);
469
+ \& PL_exit_flags |= PERL_EXIT_DESTRUCT_END;
470
+ \& perl_run(my_perl);
471
+ \&
472
+ \& /** Treat $a as an integer **/
473
+ \& eval_pv("$a = 3; $a **= 2", TRUE);
474
+ \& printf("a = %d\en", SvIV(get_sv("a", 0)));
475
+ \&
476
+ \& /** Treat $a as a float **/
477
+ \& eval_pv("$a = 3.14; $a **= 2", TRUE);
478
+ \& printf("a = %f\en", SvNV(get_sv("a", 0)));
479
+ \&
480
+ \& /** Treat $a as a string **/
481
+ \& eval_pv(
482
+ \& "$a = \*(AqrekcaH lreP rehtonA tsuJ\*(Aq; $a = reverse($a);", TRUE);
483
+ \& printf("a = %s\en", SvPV_nolen(get_sv("a", 0)));
484
+ \&
485
+ \& perl_destruct(my_perl);
486
+ \& perl_free(my_perl);
487
+ \& PERL_SYS_TERM();
488
+ \& }
489
+ .Ve
490
+ .PP
491
+ All of those strange functions with \fIsv\fR in their names help convert Perl
492
+ scalars to C types. They're described in perlguts and perlapi.
493
+ .PP
494
+ If you compile and run \fIstring.c\fR, you'll see the results of using
495
+ \&\fI\f(BISvIV()\fI\fR to create an \f(CW\*(C`int\*(C'\fR, \fI\f(BISvNV()\fI\fR to create a \f(CW\*(C`float\*(C'\fR, and
496
+ \&\fI\f(BISvPV()\fI\fR to create a string:
497
+ .PP
498
+ .Vb 3
499
+ \& a = 9
500
+ \& a = 9.859600
501
+ \& a = Just Another Perl Hacker
502
+ .Ve
503
+ .PP
504
+ In the example above, we've created a global variable to temporarily
505
+ store the computed value of our eval'ed expression. It is also
506
+ possible and in most cases a better strategy to fetch the return value
507
+ from \fI\f(BIeval_pv()\fI\fR instead. Example:
508
+ .PP
509
+ .Vb 4
510
+ \& ...
511
+ \& SV *val = eval_pv("reverse \*(AqrekcaH lreP rehtonA tsuJ\*(Aq", TRUE);
512
+ \& printf("%s\en", SvPV_nolen(val));
513
+ \& ...
514
+ .Ve
515
+ .PP
516
+ This way, we avoid namespace pollution by not creating global
517
+ variables and we've simplified our code as well.
518
+ .SS "Performing Perl pattern matches and substitutions from your C program"
519
+ .IX Subsection "Performing Perl pattern matches and substitutions from your C program"
520
+ The \fI\f(BIeval_sv()\fI\fR function lets us evaluate strings of Perl code, so we can
521
+ define some functions that use it to \*(L"specialize\*(R" in matches and
522
+ substitutions: \fI\f(BImatch()\fI\fR, \fI\f(BIsubstitute()\fI\fR, and \fI\f(BImatches()\fI\fR.
523
+ .PP
524
+ .Vb 1
525
+ \& I32 match(SV *string, char *pattern);
526
+ .Ve
527
+ .PP
528
+ Given a string and a pattern (e.g., \f(CW\*(C`m/clasp/\*(C'\fR or \f(CW\*(C`/\eb\ew*\eb/\*(C'\fR, which
529
+ in your C program might appear as \*(L"/\e\eb\e\ew*\e\eb/\*(R"), \fBmatch()\fR
530
+ returns 1 if the string matches the pattern and 0 otherwise.
531
+ .PP
532
+ .Vb 1
533
+ \& int substitute(SV **string, char *pattern);
534
+ .Ve
535
+ .PP
536
+ Given a pointer to an \f(CW\*(C`SV\*(C'\fR and an \f(CW\*(C`=~\*(C'\fR operation (e.g.,
537
+ \&\f(CW\*(C`s/bob/robert/g\*(C'\fR or \f(CW\*(C`tr[A\-Z][a\-z]\*(C'\fR), \fBsubstitute()\fR modifies the string
538
+ within the \f(CW\*(C`SV\*(C'\fR as according to the operation, returning the number of
539
+ substitutions made.
540
+ .PP
541
+ .Vb 1
542
+ \& SSize_t matches(SV *string, char *pattern, AV **matches);
543
+ .Ve
544
+ .PP
545
+ Given an \f(CW\*(C`SV\*(C'\fR, a pattern, and a pointer to an empty \f(CW\*(C`AV\*(C'\fR,
546
+ \&\fBmatches()\fR evaluates \f(CW\*(C`$string =~ $pattern\*(C'\fR in a list context, and
547
+ fills in \fImatches\fR with the array elements, returning the number of matches
548
+ found.
549
+ .PP
550
+ Here's a sample program, \fImatch.c\fR, that uses all three (long lines have
551
+ been wrapped here):
552
+ .PP
553
+ .Vb 2
554
+ \& #include <EXTERN.h>
555
+ \& #include <perl.h>
556
+ \&
557
+ \& static PerlInterpreter *my_perl;
558
+ \&
559
+ \& /** my_eval_sv(code, error_check)
560
+ \& ** kinda like eval_sv(),
561
+ \& ** but we pop the return value off the stack
562
+ \& **/
563
+ \& SV* my_eval_sv(SV *sv, I32 croak_on_error)
564
+ \& {
565
+ \& dSP;
566
+ \& SV* retval;
567
+ \&
568
+ \&
569
+ \& PUSHMARK(SP);
570
+ \& eval_sv(sv, G_SCALAR);
571
+ \&
572
+ \& SPAGAIN;
573
+ \& retval = POPs;
574
+ \& PUTBACK;
575
+ \&
576
+ \& if (croak_on_error && SvTRUE(ERRSV))
577
+ \& croak_sv(ERRSV);
578
+ \&
579
+ \& return retval;
580
+ \& }
581
+ \&
582
+ \& /** match(string, pattern)
583
+ \& **
584
+ \& ** Used for matches in a scalar context.
585
+ \& **
586
+ \& ** Returns 1 if the match was successful; 0 otherwise.
587
+ \& **/
588
+ \&
589
+ \& I32 match(SV *string, char *pattern)
590
+ \& {
591
+ \& SV *command = newSV(0), *retval;
592
+ \&
593
+ \& sv_setpvf(command, "my $string = \*(Aq%s\*(Aq; $string =~ %s",
594
+ \& SvPV_nolen(string), pattern);
595
+ \&
596
+ \& retval = my_eval_sv(command, TRUE);
597
+ \& SvREFCNT_dec(command);
598
+ \&
599
+ \& return SvIV(retval);
600
+ \& }
601
+ \&
602
+ \& /** substitute(string, pattern)
603
+ \& **
604
+ \& ** Used for =~ operations that
605
+ \& ** modify their left\-hand side (s/// and tr///)
606
+ \& **
607
+ \& ** Returns the number of successful matches, and
608
+ \& ** modifies the input string if there were any.
609
+ \& **/
610
+ \&
611
+ \& I32 substitute(SV **string, char *pattern)
612
+ \& {
613
+ \& SV *command = newSV(0), *retval;
614
+ \&
615
+ \& sv_setpvf(command, "$string = \*(Aq%s\*(Aq; ($string =~ %s)",
616
+ \& SvPV_nolen(*string), pattern);
617
+ \&
618
+ \& retval = my_eval_sv(command, TRUE);
619
+ \& SvREFCNT_dec(command);
620
+ \&
621
+ \& *string = get_sv("string", 0);
622
+ \& return SvIV(retval);
623
+ \& }
624
+ \&
625
+ \& /** matches(string, pattern, matches)
626
+ \& **
627
+ \& ** Used for matches in a list context.
628
+ \& **
629
+ \& ** Returns the number of matches,
630
+ \& ** and fills in **matches with the matching substrings
631
+ \& **/
632
+ \&
633
+ \& SSize_t matches(SV *string, char *pattern, AV **match_list)
634
+ \& {
635
+ \& SV *command = newSV(0);
636
+ \& SSize_t num_matches;
637
+ \&
638
+ \& sv_setpvf(command, "my $string = \*(Aq%s\*(Aq; @array = ($string =~ %s)",
639
+ \& SvPV_nolen(string), pattern);
640
+ \&
641
+ \& my_eval_sv(command, TRUE);
642
+ \& SvREFCNT_dec(command);
643
+ \&
644
+ \& *match_list = get_av("array", 0);
645
+ \& num_matches = av_top_index(*match_list) + 1;
646
+ \&
647
+ \& return num_matches;
648
+ \& }
649
+ \&
650
+ \& main (int argc, char **argv, char **env)
651
+ \& {
652
+ \& char *embedding[] = { "", "\-e", "0", NULL };
653
+ \& AV *match_list;
654
+ \& I32 num_matches, i;
655
+ \& SV *text;
656
+ \&
657
+ \& PERL_SYS_INIT3(&argc,&argv,&env);
658
+ \& my_perl = perl_alloc();
659
+ \& perl_construct(my_perl);
660
+ \& perl_parse(my_perl, NULL, 3, embedding, NULL);
661
+ \& PL_exit_flags |= PERL_EXIT_DESTRUCT_END;
662
+ \&
663
+ \& text = newSV(0);
664
+ \& sv_setpv(text, "When he is at a convenience store and the "
665
+ \& "bill comes to some amount like 76 cents, Maynard is "
666
+ \& "aware that there is something he *should* do, something "
667
+ \& "that will enable him to get back a quarter, but he has "
668
+ \& "no idea *what*. He fumbles through his red squeezey "
669
+ \& "changepurse and gives the boy three extra pennies with "
670
+ \& "his dollar, hoping that he might luck into the correct "
671
+ \& "amount. The boy gives him back two of his own pennies "
672
+ \& "and then the big shiny quarter that is his prize. "
673
+ \& "\-RICHH");
674
+ \&
675
+ \& if (match(text, "m/quarter/")) /** Does text contain \*(Aqquarter\*(Aq? **/
676
+ \& printf("match: Text contains the word \*(Aqquarter\*(Aq.\en\en");
677
+ \& else
678
+ \& printf("match: Text doesn\*(Aqt contain the word \*(Aqquarter\*(Aq.\en\en");
679
+ \&
680
+ \& if (match(text, "m/eighth/")) /** Does text contain \*(Aqeighth\*(Aq? **/
681
+ \& printf("match: Text contains the word \*(Aqeighth\*(Aq.\en\en");
682
+ \& else
683
+ \& printf("match: Text doesn\*(Aqt contain the word \*(Aqeighth\*(Aq.\en\en");
684
+ \&
685
+ \& /** Match all occurrences of /wi../ **/
686
+ \& num_matches = matches(text, "m/(wi..)/g", &match_list);
687
+ \& printf("matches: m/(wi..)/g found %d matches...\en", num_matches);
688
+ \&
689
+ \& for (i = 0; i < num_matches; i++)
690
+ \& printf("match: %s\en",
691
+ \& SvPV_nolen(*av_fetch(match_list, i, FALSE)));
692
+ \& printf("\en");
693
+ \&
694
+ \& /** Remove all vowels from text **/
695
+ \& num_matches = substitute(&text, "s/[aeiou]//gi");
696
+ \& if (num_matches) {
697
+ \& printf("substitute: s/[aeiou]//gi...%lu substitutions made.\en",
698
+ \& (unsigned long)num_matches);
699
+ \& printf("Now text is: %s\en\en", SvPV_nolen(text));
700
+ \& }
701
+ \&
702
+ \& /** Attempt a substitution **/
703
+ \& if (!substitute(&text, "s/Perl/C/")) {
704
+ \& printf("substitute: s/Perl/C...No substitution made.\en\en");
705
+ \& }
706
+ \&
707
+ \& SvREFCNT_dec(text);
708
+ \& PL_perl_destruct_level = 1;
709
+ \& perl_destruct(my_perl);
710
+ \& perl_free(my_perl);
711
+ \& PERL_SYS_TERM();
712
+ \& }
713
+ .Ve
714
+ .PP
715
+ which produces the output (again, long lines have been wrapped here)
716
+ .PP
717
+ .Vb 1
718
+ \& match: Text contains the word \*(Aqquarter\*(Aq.
719
+ \&
720
+ \& match: Text doesn\*(Aqt contain the word \*(Aqeighth\*(Aq.
721
+ \&
722
+ \& matches: m/(wi..)/g found 2 matches...
723
+ \& match: will
724
+ \& match: with
725
+ \&
726
+ \& substitute: s/[aeiou]//gi...139 substitutions made.
727
+ \& Now text is: Whn h s t cnvnnc str nd th bll cms t sm mnt lk 76 cnts,
728
+ \& Mynrd s wr tht thr s smthng h *shld* d, smthng tht wll nbl hm t gt
729
+ \& bck qrtr, bt h hs n d *wht*. H fmbls thrgh hs rd sqzy chngprs nd
730
+ \& gvs th by thr xtr pnns wth hs dllr, hpng tht h mght lck nt th crrct
731
+ \& mnt. Th by gvs hm bck tw f hs wn pnns nd thn th bg shny qrtr tht s
732
+ \& hs prz. \-RCHH
733
+ \&
734
+ \& substitute: s/Perl/C...No substitution made.
735
+ .Ve
736
+ .SS "Fiddling with the Perl stack from your C program"
737
+ .IX Subsection "Fiddling with the Perl stack from your C program"
738
+ When trying to explain stacks, most computer science textbooks mumble
739
+ something about spring-loaded columns of cafeteria plates: the last
740
+ thing you pushed on the stack is the first thing you pop off. That'll
741
+ do for our purposes: your C program will push some arguments onto \*(L"the Perl
742
+ stack\*(R", shut its eyes while some magic happens, and then pop the
743
+ results\*(--the return value of your Perl subroutine\*(--off the stack.
744
+ .PP
745
+ First you'll need to know how to convert between C types and Perl
746
+ types, with \fBnewSViv()\fR and \fBsv_setnv()\fR and \fBnewAV()\fR and all their
747
+ friends. They're described in perlguts and perlapi.
748
+ .PP
749
+ Then you'll need to know how to manipulate the Perl stack. That's
750
+ described in perlcall.
751
+ .PP
752
+ Once you've understood those, embedding Perl in C is easy.
753
+ .PP
754
+ Because C has no builtin function for integer exponentiation, let's
755
+ make Perl's ** operator available to it (this is less useful than it
756
+ sounds, because Perl implements ** with C's \fI\f(BIpow()\fI\fR function). First
757
+ I'll create a stub exponentiation function in \fIpower.pl\fR:
758
+ .PP
759
+ .Vb 4
760
+ \& sub expo {
761
+ \& my ($a, $b) = @_;
762
+ \& return $a ** $b;
763
+ \& }
764
+ .Ve
765
+ .PP
766
+ Now I'll create a C program, \fIpower.c\fR, with a function
767
+ \&\fI\f(BIPerlPower()\fI\fR that contains all the perlguts necessary to push the
768
+ two arguments into \fI\f(BIexpo()\fI\fR and to pop the return value out. Take a
769
+ deep breath...
770
+ .PP
771
+ .Vb 2
772
+ \& #include <EXTERN.h>
773
+ \& #include <perl.h>
774
+ \&
775
+ \& static PerlInterpreter *my_perl;
776
+ \&
777
+ \& static void
778
+ \& PerlPower(int a, int b)
779
+ \& {
780
+ \& dSP; /* initialize stack pointer */
781
+ \& ENTER; /* everything created after here */
782
+ \& SAVETMPS; /* ...is a temporary variable. */
783
+ \& PUSHMARK(SP); /* remember the stack pointer */
784
+ \& XPUSHs(sv_2mortal(newSViv(a))); /* push the base onto the stack */
785
+ \& XPUSHs(sv_2mortal(newSViv(b))); /* push the exponent onto stack */
786
+ \& PUTBACK; /* make local stack pointer global */
787
+ \& call_pv("expo", G_SCALAR); /* call the function */
788
+ \& SPAGAIN; /* refresh stack pointer */
789
+ \& /* pop the return value from stack */
790
+ \& printf ("%d to the %dth power is %d.\en", a, b, POPi);
791
+ \& PUTBACK;
792
+ \& FREETMPS; /* free that return value */
793
+ \& LEAVE; /* ...and the XPUSHed "mortal" args.*/
794
+ \& }
795
+ \&
796
+ \& int main (int argc, char **argv, char **env)
797
+ \& {
798
+ \& char *my_argv[] = { "", "power.pl", NULL };
799
+ \&
800
+ \& PERL_SYS_INIT3(&argc,&argv,&env);
801
+ \& my_perl = perl_alloc();
802
+ \& perl_construct( my_perl );
803
+ \&
804
+ \& perl_parse(my_perl, NULL, 2, my_argv, (char **)NULL);
805
+ \& PL_exit_flags |= PERL_EXIT_DESTRUCT_END;
806
+ \& perl_run(my_perl);
807
+ \&
808
+ \& PerlPower(3, 4); /*** Compute 3 ** 4 ***/
809
+ \&
810
+ \& perl_destruct(my_perl);
811
+ \& perl_free(my_perl);
812
+ \& PERL_SYS_TERM();
813
+ \& exit(EXIT_SUCCESS);
814
+ \& }
815
+ .Ve
816
+ .PP
817
+ Compile and run:
818
+ .PP
819
+ .Vb 1
820
+ \& % cc \-o power power.c \`perl \-MExtUtils::Embed \-e ccopts \-e ldopts\`
821
+ \&
822
+ \& % power
823
+ \& 3 to the 4th power is 81.
824
+ .Ve
825
+ .SS "Maintaining a persistent interpreter"
826
+ .IX Subsection "Maintaining a persistent interpreter"
827
+ When developing interactive and/or potentially long-running
828
+ applications, it's a good idea to maintain a persistent interpreter
829
+ rather than allocating and constructing a new interpreter multiple
830
+ times. The major reason is speed: since Perl will only be loaded into
831
+ memory once.
832
+ .PP
833
+ However, you have to be more cautious with namespace and variable
834
+ scoping when using a persistent interpreter. In previous examples
835
+ we've been using global variables in the default package \f(CW\*(C`main\*(C'\fR. We
836
+ knew exactly what code would be run, and assumed we could avoid
837
+ variable collisions and outrageous symbol table growth.
838
+ .PP
839
+ Let's say your application is a server that will occasionally run Perl
840
+ code from some arbitrary file. Your server has no way of knowing what
841
+ code it's going to run. Very dangerous.
842
+ .PP
843
+ If the file is pulled in by \f(CW\*(C`perl_parse()\*(C'\fR, compiled into a newly
844
+ constructed interpreter, and subsequently cleaned out with
845
+ \&\f(CW\*(C`perl_destruct()\*(C'\fR afterwards, you're shielded from most namespace
846
+ troubles.
847
+ .PP
848
+ One way to avoid namespace collisions in this scenario is to translate
849
+ the filename into a guaranteed-unique package name, and then compile
850
+ the code into that package using \*(L"eval\*(R" in perlfunc. In the example
851
+ below, each file will only be compiled once. Or, the application
852
+ might choose to clean out the symbol table associated with the file
853
+ after it's no longer needed. Using \*(L"call_argv\*(R" in perlapi, We'll
854
+ call the subroutine \f(CW\*(C`Embed::Persistent::eval_file\*(C'\fR which lives in the
855
+ file \f(CW\*(C`persistent.pl\*(C'\fR and pass the filename and boolean cleanup/cache
856
+ flag as arguments.
857
+ .PP
858
+ Note that the process will continue to grow for each file that it
859
+ uses. In addition, there might be \f(CW\*(C`AUTOLOAD\*(C'\fRed subroutines and other
860
+ conditions that cause Perl's symbol table to grow. You might want to
861
+ add some logic that keeps track of the process size, or restarts
862
+ itself after a certain number of requests, to ensure that memory
863
+ consumption is minimized. You'll also want to scope your variables
864
+ with \*(L"my\*(R" in perlfunc whenever possible.
865
+ .PP
866
+ .Vb 2
867
+ \& package Embed::Persistent;
868
+ \& #persistent.pl
869
+ \&
870
+ \& use strict;
871
+ \& our %Cache;
872
+ \& use Symbol qw(delete_package);
873
+ \&
874
+ \& sub valid_package_name {
875
+ \& my($string) = @_;
876
+ \& $string =~ s/([^A\-Za\-z0\-9\e/])/sprintf("_%2x",unpack("C",$1))/eg;
877
+ \& # second pass only for words starting with a digit
878
+ \& $string =~ s|/(\ed)|sprintf("/_%2x",unpack("C",$1))|eg;
879
+ \&
880
+ \& # Dress it up as a real package name
881
+ \& $string =~ s|/|::|g;
882
+ \& return "Embed" . $string;
883
+ \& }
884
+ \&
885
+ \& sub eval_file {
886
+ \& my($filename, $delete) = @_;
887
+ \& my $package = valid_package_name($filename);
888
+ \& my $mtime = \-M $filename;
889
+ \& if(defined $Cache{$package}{mtime}
890
+ \& &&
891
+ \& $Cache{$package}{mtime} <= $mtime)
892
+ \& {
893
+ \& # we have compiled this subroutine already,
894
+ \& # it has not been updated on disk, nothing left to do
895
+ \& print STDERR "already compiled $package\->handler\en";
896
+ \& }
897
+ \& else {
898
+ \& local *FH;
899
+ \& open FH, $filename or die "open \*(Aq$filename\*(Aq $!";
900
+ \& local($/) = undef;
901
+ \& my $sub = <FH>;
902
+ \& close FH;
903
+ \&
904
+ \& #wrap the code into a subroutine inside our unique package
905
+ \& my $eval = qq{package $package; sub handler { $sub; }};
906
+ \& {
907
+ \& # hide our variables within this block
908
+ \& my($filename,$mtime,$package,$sub);
909
+ \& eval $eval;
910
+ \& }
911
+ \& die $@ if $@;
912
+ \&
913
+ \& #cache it unless we\*(Aqre cleaning out each time
914
+ \& $Cache{$package}{mtime} = $mtime unless $delete;
915
+ \& }
916
+ \&
917
+ \& eval {$package\->handler;};
918
+ \& die $@ if $@;
919
+ \&
920
+ \& delete_package($package) if $delete;
921
+ \&
922
+ \& #take a look if you want
923
+ \& #print Devel::Symdump\->rnew($package)\->as_string, $/;
924
+ \& }
925
+ \&
926
+ \& 1;
927
+ \&
928
+ \& _\|_END_\|_
929
+ \&
930
+ \& /* persistent.c */
931
+ \& #include <EXTERN.h>
932
+ \& #include <perl.h>
933
+ \&
934
+ \& /* 1 = clean out filename\*(Aqs symbol table after each request,
935
+ \& 0 = don\*(Aqt
936
+ \& */
937
+ \& #ifndef DO_CLEAN
938
+ \& #define DO_CLEAN 0
939
+ \& #endif
940
+ \&
941
+ \& #define BUFFER_SIZE 1024
942
+ \&
943
+ \& static PerlInterpreter *my_perl = NULL;
944
+ \&
945
+ \& int
946
+ \& main(int argc, char **argv, char **env)
947
+ \& {
948
+ \& char *embedding[] = { "", "persistent.pl", NULL };
949
+ \& char *args[] = { "", DO_CLEAN, NULL };
950
+ \& char filename[BUFFER_SIZE];
951
+ \& int failing, exitstatus;
952
+ \&
953
+ \& PERL_SYS_INIT3(&argc,&argv,&env);
954
+ \& if((my_perl = perl_alloc()) == NULL) {
955
+ \& fprintf(stderr, "no memory!");
956
+ \& exit(EXIT_FAILURE);
957
+ \& }
958
+ \& perl_construct(my_perl);
959
+ \&
960
+ \& PL_origalen = 1; /* don\*(Aqt let $0 assignment update the
961
+ \& proctitle or embedding[0] */
962
+ \& failing = perl_parse(my_perl, NULL, 2, embedding, NULL);
963
+ \& PL_exit_flags |= PERL_EXIT_DESTRUCT_END;
964
+ \& if(!failing)
965
+ \& failing = perl_run(my_perl);
966
+ \& if(!failing) {
967
+ \& while(printf("Enter file name: ") &&
968
+ \& fgets(filename, BUFFER_SIZE, stdin)) {
969
+ \&
970
+ \& filename[strlen(filename)\-1] = \*(Aq\e0\*(Aq; /* strip \en */
971
+ \& /* call the subroutine,
972
+ \& passing it the filename as an argument */
973
+ \& args[0] = filename;
974
+ \& call_argv("Embed::Persistent::eval_file",
975
+ \& G_DISCARD | G_EVAL, args);
976
+ \&
977
+ \& /* check $@ */
978
+ \& if(SvTRUE(ERRSV))
979
+ \& fprintf(stderr, "eval error: %s\en", SvPV_nolen(ERRSV));
980
+ \& }
981
+ \& }
982
+ \&
983
+ \& PL_perl_destruct_level = 0;
984
+ \& exitstatus = perl_destruct(my_perl);
985
+ \& perl_free(my_perl);
986
+ \& PERL_SYS_TERM();
987
+ \& exit(exitstatus);
988
+ \& }
989
+ .Ve
990
+ .PP
991
+ Now compile:
992
+ .PP
993
+ .Vb 2
994
+ \& % cc \-o persistent persistent.c \e
995
+ \& \`perl \-MExtUtils::Embed \-e ccopts \-e ldopts\`
996
+ .Ve
997
+ .PP
998
+ Here's an example script file:
999
+ .PP
1000
+ .Vb 3
1001
+ \& #test.pl
1002
+ \& my $string = "hello";
1003
+ \& foo($string);
1004
+ \&
1005
+ \& sub foo {
1006
+ \& print "foo says: @_\en";
1007
+ \& }
1008
+ .Ve
1009
+ .PP
1010
+ Now run:
1011
+ .PP
1012
+ .Vb 7
1013
+ \& % persistent
1014
+ \& Enter file name: test.pl
1015
+ \& foo says: hello
1016
+ \& Enter file name: test.pl
1017
+ \& already compiled Embed::test_2epl\->handler
1018
+ \& foo says: hello
1019
+ \& Enter file name: ^C
1020
+ .Ve
1021
+ .SS "Execution of \s-1END\s0 blocks"
1022
+ .IX Subsection "Execution of END blocks"
1023
+ Traditionally \s-1END\s0 blocks have been executed at the end of the perl_run.
1024
+ This causes problems for applications that never call perl_run. Since
1025
+ perl 5.7.2 you can specify \f(CW\*(C`PL_exit_flags |= PERL_EXIT_DESTRUCT_END\*(C'\fR
1026
+ to get the new behaviour. This also enables the running of \s-1END\s0 blocks if
1027
+ the perl_parse fails and \f(CW\*(C`perl_destruct\*(C'\fR will return the exit value.
1028
+ .ie n .SS "$0 assignments"
1029
+ .el .SS "\f(CW$0\fP assignments"
1030
+ .IX Subsection "$0 assignments"
1031
+ When a perl script assigns a value to \f(CW$0\fR then the perl runtime will
1032
+ try to make this value show up as the program name reported by \*(L"ps\*(R" by
1033
+ updating the memory pointed to by the argv passed to \fBperl_parse()\fR and
1034
+ also calling \s-1API\s0 functions like \fBsetproctitle()\fR where available. This
1035
+ behaviour might not be appropriate when embedding perl and can be
1036
+ disabled by assigning the value \f(CW1\fR to the variable \f(CW\*(C`PL_origalen\*(C'\fR
1037
+ before \fBperl_parse()\fR is called.
1038
+ .PP
1039
+ The \fIpersistent.c\fR example above is for instance likely to segfault
1040
+ when \f(CW$0\fR is assigned to if the \f(CW\*(C`PL_origalen = 1;\*(C'\fR assignment is
1041
+ removed. This because perl will try to write to the read only memory
1042
+ of the \f(CW\*(C`embedding[]\*(C'\fR strings.
1043
+ .SS "Maintaining multiple interpreter instances"
1044
+ .IX Subsection "Maintaining multiple interpreter instances"
1045
+ Some rare applications will need to create more than one interpreter
1046
+ during a session. Such an application might sporadically decide to
1047
+ release any resources associated with the interpreter.
1048
+ .PP
1049
+ The program must take care to ensure that this takes place \fIbefore\fR
1050
+ the next interpreter is constructed. By default, when perl is not
1051
+ built with any special options, the global variable
1052
+ \&\f(CW\*(C`PL_perl_destruct_level\*(C'\fR is set to \f(CW0\fR, since extra cleaning isn't
1053
+ usually needed when a program only ever creates a single interpreter
1054
+ in its entire lifetime.
1055
+ .PP
1056
+ Setting \f(CW\*(C`PL_perl_destruct_level\*(C'\fR to \f(CW1\fR makes everything squeaky clean:
1057
+ .PP
1058
+ .Vb 10
1059
+ \& while(1) {
1060
+ \& ...
1061
+ \& /* reset global variables here with PL_perl_destruct_level = 1 */
1062
+ \& PL_perl_destruct_level = 1;
1063
+ \& perl_construct(my_perl);
1064
+ \& ...
1065
+ \& /* clean and reset _everything_ during perl_destruct */
1066
+ \& PL_perl_destruct_level = 1;
1067
+ \& perl_destruct(my_perl);
1068
+ \& perl_free(my_perl);
1069
+ \& ...
1070
+ \& /* let\*(Aqs go do it again! */
1071
+ \& }
1072
+ .Ve
1073
+ .PP
1074
+ When \fI\f(BIperl_destruct()\fI\fR is called, the interpreter's syntax parse tree
1075
+ and symbol tables are cleaned up, and global variables are reset. The
1076
+ second assignment to \f(CW\*(C`PL_perl_destruct_level\*(C'\fR is needed because
1077
+ perl_construct resets it to \f(CW0\fR.
1078
+ .PP
1079
+ Now suppose we have more than one interpreter instance running at the
1080
+ same time. This is feasible, but only if you used the Configure option
1081
+ \&\f(CW\*(C`\-Dusemultiplicity\*(C'\fR or the options \f(CW\*(C`\-Dusethreads \-Duseithreads\*(C'\fR when
1082
+ building perl. By default, enabling one of these Configure options
1083
+ sets the per-interpreter global variable \f(CW\*(C`PL_perl_destruct_level\*(C'\fR to
1084
+ \&\f(CW1\fR, so that thorough cleaning is automatic and interpreter variables
1085
+ are initialized correctly. Even if you don't intend to run two or
1086
+ more interpreters at the same time, but to run them sequentially, like
1087
+ in the above example, it is recommended to build perl with the
1088
+ \&\f(CW\*(C`\-Dusemultiplicity\*(C'\fR option otherwise some interpreter variables may
1089
+ not be initialized correctly between consecutive runs and your
1090
+ application may crash.
1091
+ .PP
1092
+ See also \*(L"Thread-aware system interfaces\*(R" in perlxs.
1093
+ .PP
1094
+ Using \f(CW\*(C`\-Dusethreads \-Duseithreads\*(C'\fR rather than \f(CW\*(C`\-Dusemultiplicity\*(C'\fR
1095
+ is more appropriate if you intend to run multiple interpreters
1096
+ concurrently in different threads, because it enables support for
1097
+ linking in the thread libraries of your system with the interpreter.
1098
+ .PP
1099
+ Let's give it a try:
1100
+ .PP
1101
+ .Vb 2
1102
+ \& #include <EXTERN.h>
1103
+ \& #include <perl.h>
1104
+ \&
1105
+ \& /* we\*(Aqre going to embed two interpreters */
1106
+ \&
1107
+ \& #define SAY_HELLO "\-e", "print qq(Hi, I\*(Aqm $^X\en)"
1108
+ \&
1109
+ \& int main(int argc, char **argv, char **env)
1110
+ \& {
1111
+ \& PerlInterpreter *one_perl, *two_perl;
1112
+ \& char *one_args[] = { "one_perl", SAY_HELLO, NULL };
1113
+ \& char *two_args[] = { "two_perl", SAY_HELLO, NULL };
1114
+ \&
1115
+ \& PERL_SYS_INIT3(&argc,&argv,&env);
1116
+ \& one_perl = perl_alloc();
1117
+ \& two_perl = perl_alloc();
1118
+ \&
1119
+ \& PERL_SET_CONTEXT(one_perl);
1120
+ \& perl_construct(one_perl);
1121
+ \& PERL_SET_CONTEXT(two_perl);
1122
+ \& perl_construct(two_perl);
1123
+ \&
1124
+ \& PERL_SET_CONTEXT(one_perl);
1125
+ \& perl_parse(one_perl, NULL, 3, one_args, (char **)NULL);
1126
+ \& PERL_SET_CONTEXT(two_perl);
1127
+ \& perl_parse(two_perl, NULL, 3, two_args, (char **)NULL);
1128
+ \&
1129
+ \& PERL_SET_CONTEXT(one_perl);
1130
+ \& perl_run(one_perl);
1131
+ \& PERL_SET_CONTEXT(two_perl);
1132
+ \& perl_run(two_perl);
1133
+ \&
1134
+ \& PERL_SET_CONTEXT(one_perl);
1135
+ \& perl_destruct(one_perl);
1136
+ \& PERL_SET_CONTEXT(two_perl);
1137
+ \& perl_destruct(two_perl);
1138
+ \&
1139
+ \& PERL_SET_CONTEXT(one_perl);
1140
+ \& perl_free(one_perl);
1141
+ \& PERL_SET_CONTEXT(two_perl);
1142
+ \& perl_free(two_perl);
1143
+ \& PERL_SYS_TERM();
1144
+ \& exit(EXIT_SUCCESS);
1145
+ \& }
1146
+ .Ve
1147
+ .PP
1148
+ Note the calls to \s-1\fBPERL_SET_CONTEXT\s0()\fR. These are necessary to initialize
1149
+ the global state that tracks which interpreter is the \*(L"current\*(R" one on
1150
+ the particular process or thread that may be running it. It should
1151
+ always be used if you have more than one interpreter and are making
1152
+ perl \s-1API\s0 calls on both interpreters in an interleaved fashion.
1153
+ .PP
1154
+ \&\s-1PERL_SET_CONTEXT\s0(interp) should also be called whenever \f(CW\*(C`interp\*(C'\fR is
1155
+ used by a thread that did not create it (using either \fBperl_alloc()\fR, or
1156
+ the more esoteric \fBperl_clone()\fR).
1157
+ .PP
1158
+ Compile as usual:
1159
+ .PP
1160
+ .Vb 2
1161
+ \& % cc \-o multiplicity multiplicity.c \e
1162
+ \& \`perl \-MExtUtils::Embed \-e ccopts \-e ldopts\`
1163
+ .Ve
1164
+ .PP
1165
+ Run it, Run it:
1166
+ .PP
1167
+ .Vb 3
1168
+ \& % multiplicity
1169
+ \& Hi, I\*(Aqm one_perl
1170
+ \& Hi, I\*(Aqm two_perl
1171
+ .Ve
1172
+ .SS "Using Perl modules, which themselves use C libraries, from your C program"
1173
+ .IX Subsection "Using Perl modules, which themselves use C libraries, from your C program"
1174
+ If you've played with the examples above and tried to embed a script
1175
+ that \fI\f(BIuse()\fI\fRs a Perl module (such as \fISocket\fR) which itself uses a C or \*(C+
1176
+ library, this probably happened:
1177
+ .PP
1178
+ .Vb 3
1179
+ \& Can\*(Aqt load module Socket, dynamic loading not available in this perl.
1180
+ \& (You may need to build a new perl executable which either supports
1181
+ \& dynamic loading or has the Socket module statically linked into it.)
1182
+ .Ve
1183
+ .PP
1184
+ What's wrong?
1185
+ .PP
1186
+ Your interpreter doesn't know how to communicate with these extensions
1187
+ on its own. A little glue will help. Up until now you've been
1188
+ calling \fI\f(BIperl_parse()\fI\fR, handing it \s-1NULL\s0 for the second argument:
1189
+ .PP
1190
+ .Vb 1
1191
+ \& perl_parse(my_perl, NULL, argc, my_argv, NULL);
1192
+ .Ve
1193
+ .PP
1194
+ That's where the glue code can be inserted to create the initial contact
1195
+ between Perl and linked C/\*(C+ routines. Let's take a look some pieces of
1196
+ \&\fIperlmain.c\fR to see how Perl does this:
1197
+ .PP
1198
+ .Vb 1
1199
+ \& static void xs_init (pTHX);
1200
+ \&
1201
+ \& EXTERN_C void boot_DynaLoader (pTHX_ CV* cv);
1202
+ \& EXTERN_C void boot_Socket (pTHX_ CV* cv);
1203
+ \&
1204
+ \&
1205
+ \& EXTERN_C void
1206
+ \& xs_init(pTHX)
1207
+ \& {
1208
+ \& char *file = _\|_FILE_\|_;
1209
+ \& /* DynaLoader is a special case */
1210
+ \& newXS("DynaLoader::boot_DynaLoader", boot_DynaLoader, file);
1211
+ \& newXS("Socket::bootstrap", boot_Socket, file);
1212
+ \& }
1213
+ .Ve
1214
+ .PP
1215
+ Simply put: for each extension linked with your Perl executable
1216
+ (determined during its initial configuration on your
1217
+ computer or when adding a new extension),
1218
+ a Perl subroutine is created to incorporate the extension's
1219
+ routines. Normally, that subroutine is named
1220
+ \&\fI\f(BIModule::bootstrap()\fI\fR and is invoked when you say \fIuse Module\fR. In
1221
+ turn, this hooks into an \s-1XSUB,\s0 \fIboot_Module\fR, which creates a Perl
1222
+ counterpart for each of the extension's XSUBs. Don't worry about this
1223
+ part; leave that to the \fIxsubpp\fR and extension authors. If your
1224
+ extension is dynamically loaded, DynaLoader creates \fI\f(BIModule::bootstrap()\fI\fR
1225
+ for you on the fly. In fact, if you have a working DynaLoader then there
1226
+ is rarely any need to link in any other extensions statically.
1227
+ .PP
1228
+ Once you have this code, slap it into the second argument of \fI\f(BIperl_parse()\fI\fR:
1229
+ .PP
1230
+ .Vb 1
1231
+ \& perl_parse(my_perl, xs_init, argc, my_argv, NULL);
1232
+ .Ve
1233
+ .PP
1234
+ Then compile:
1235
+ .PP
1236
+ .Vb 1
1237
+ \& % cc \-o interp interp.c \`perl \-MExtUtils::Embed \-e ccopts \-e ldopts\`
1238
+ \&
1239
+ \& % interp
1240
+ \& use Socket;
1241
+ \& use SomeDynamicallyLoadedModule;
1242
+ \&
1243
+ \& print "Now I can use extensions!\en"\*(Aq
1244
+ .Ve
1245
+ .PP
1246
+ \&\fBExtUtils::Embed\fR can also automate writing the \fIxs_init\fR glue code.
1247
+ .PP
1248
+ .Vb 4
1249
+ \& % perl \-MExtUtils::Embed \-e xsinit \-\- \-o perlxsi.c
1250
+ \& % cc \-c perlxsi.c \`perl \-MExtUtils::Embed \-e ccopts\`
1251
+ \& % cc \-c interp.c \`perl \-MExtUtils::Embed \-e ccopts\`
1252
+ \& % cc \-o interp perlxsi.o interp.o \`perl \-MExtUtils::Embed \-e ldopts\`
1253
+ .Ve
1254
+ .PP
1255
+ Consult perlxs, perlguts, and perlapi for more details.
1256
+ .SS "Using embedded Perl with \s-1POSIX\s0 locales"
1257
+ .IX Subsection "Using embedded Perl with POSIX locales"
1258
+ (See perllocale for information about these.)
1259
+ When a Perl interpreter normally starts up, it tells the system it wants
1260
+ to use the system's default locale. This is often, but not necessarily,
1261
+ the \*(L"C\*(R" or \*(L"\s-1POSIX\*(R"\s0 locale. Absent a \f(CW"use\ locale"\fR within the perl
1262
+ code, this mostly has no effect (but see \*(L"Not within the
1263
+ scope of \*(R"use locale"" in perllocale). Also, there is not a problem if the
1264
+ locale you want to use in your embedded perl is the same as the system
1265
+ default. However, this doesn't work if you have set up and want to use
1266
+ a locale that isn't the system default one. Starting in Perl v5.20, you
1267
+ can tell the embedded Perl interpreter that the locale is already
1268
+ properly set up, and to skip doing its own normal initialization. It
1269
+ skips if the environment variable \f(CW\*(C`PERL_SKIP_LOCALE_INIT\*(C'\fR is set (even
1270
+ if set to 0 or \f(CW""\fR). A perl that has this capability will define the
1271
+ C pre-processor symbol \f(CW\*(C`HAS_SKIP_LOCALE_INIT\*(C'\fR. This allows code that
1272
+ has to work with multiple Perl versions to do some sort of work-around
1273
+ when confronted with an earlier Perl.
1274
+ .PP
1275
+ If your program is using the \s-1POSIX 2008\s0 multi-thread locale
1276
+ functionality, you should switch into the global locale and set that up
1277
+ properly before starting the Perl interpreter. It will then properly
1278
+ switch back to using the thread-safe functions.
1279
+ .SH "Hiding Perl_"
1280
+ .IX Header "Hiding Perl_"
1281
+ If you completely hide the short forms of the Perl public \s-1API,\s0
1282
+ add \-DPERL_NO_SHORT_NAMES to the compilation flags. This means that
1283
+ for example instead of writing
1284
+ .PP
1285
+ .Vb 1
1286
+ \& warn("%d bottles of beer on the wall", bottlecount);
1287
+ .Ve
1288
+ .PP
1289
+ you will have to write the explicit full form
1290
+ .PP
1291
+ .Vb 1
1292
+ \& Perl_warn(aTHX_ "%d bottles of beer on the wall", bottlecount);
1293
+ .Ve
1294
+ .PP
1295
+ (See \*(L"Background and \s-1PERL_IMPLICIT_CONTEXT\*(R"\s0 in perlguts for the explanation
1296
+ of the \f(CW\*(C`aTHX_\*(C'\fR. ) Hiding the short forms is very useful for avoiding
1297
+ all sorts of nasty (C preprocessor or otherwise) conflicts with other
1298
+ software packages (Perl defines about 2400 APIs with these short names,
1299
+ take or leave few hundred, so there certainly is room for conflict.)
1300
+ .SH "MORAL"
1301
+ .IX Header "MORAL"
1302
+ You can sometimes \fIwrite faster code\fR in C, but
1303
+ you can always \fIwrite code faster\fR in Perl. Because you can use
1304
+ each from the other, combine them as you wish.
1305
+ .SH "AUTHOR"
1306
+ .IX Header "AUTHOR"
1307
+ Jon Orwant <\fIorwant@media.mit.edu\fR> and Doug MacEachern
1308
+ <\fIdougm@covalent.net\fR>, with small contributions from Tim Bunce, Tom
1309
+ Christiansen, Guy Decoux, Hallvard Furuseth, Dov Grobgeld, and Ilya
1310
+ Zakharevich.
1311
+ .PP
1312
+ Doug MacEachern has an article on embedding in Volume 1, Issue 4 of
1313
+ The Perl Journal ( <http://www.tpj.com/> ). Doug is also the developer of the
1314
+ most widely-used Perl embedding: the mod_perl system
1315
+ (perl.apache.org), which embeds Perl in the Apache web server.
1316
+ Oracle, Binary Evolution, ActiveState, and Ben Sugars's nsapi_perl
1317
+ have used this model for Oracle, Netscape and Internet Information
1318
+ Server Perl plugins.
1319
+ .SH "COPYRIGHT"
1320
+ .IX Header "COPYRIGHT"
1321
+ Copyright (C) 1995, 1996, 1997, 1998 Doug MacEachern and Jon Orwant. All
1322
+ Rights Reserved.
1323
+ .PP
1324
+ This document may be distributed under the same terms as Perl itself.
data/miniconda3/man/man1/perlexperiment.1 ADDED
@@ -0,0 +1,453 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "PERLEXPERIMENT 1"
136
+ .TH PERLEXPERIMENT 1 "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
+ perlexperiment \- A listing of experimental features in Perl
143
+ .SH "DESCRIPTION"
144
+ .IX Header "DESCRIPTION"
145
+ This document lists the current and past experimental features in the perl
146
+ core. Although all of these are documented with their appropriate topics,
147
+ this succinct listing gives you an overview and basic facts about their
148
+ status.
149
+ .PP
150
+ So far we've merely tried to find and list the experimental features and infer
151
+ their inception, versions, etc. There's a lot of speculation here.
152
+ .SS "Current experiments"
153
+ .IX Subsection "Current experiments"
154
+ .ie n .IP "Smart match (""~~"")" 8
155
+ .el .IP "Smart match (\f(CW~~\fR)" 8
156
+ .IX Item "Smart match (~~)"
157
+ Introduced in Perl 5.10.0
158
+ .Sp
159
+ Modified in Perl 5.10.1, 5.12.0
160
+ .Sp
161
+ Using this feature triggers warnings in the category
162
+ \&\f(CW\*(C`experimental::smartmatch\*(C'\fR.
163
+ .Sp
164
+ The ticket for this feature is
165
+ [perl #13173] <https://github.com/Perl/perl5/issues/13173>.
166
+ .IP "Pluggable keywords" 8
167
+ .IX Item "Pluggable keywords"
168
+ The ticket for this feature is
169
+ [perl #13199] <https://github.com/Perl/perl5/issues/13199>.
170
+ .Sp
171
+ See \*(L"PL_keyword_plugin\*(R" in perlapi for the mechanism.
172
+ .Sp
173
+ Introduced in Perl 5.11.2
174
+ .IP "Regular Expression Set Operations" 8
175
+ .IX Item "Regular Expression Set Operations"
176
+ Introduced in Perl 5.18
177
+ .Sp
178
+ The ticket for this feature is
179
+ [perl #13197] <https://github.com/Perl/perl5/issues/13197>.
180
+ .Sp
181
+ See also: \*(L"Extended Bracketed Character Classes\*(R" in perlrecharclass
182
+ .Sp
183
+ Using this feature triggers warnings in the category
184
+ \&\f(CW\*(C`experimental::regex_sets\*(C'\fR.
185
+ .IP "Subroutine signatures" 8
186
+ .IX Item "Subroutine signatures"
187
+ Introduced in Perl 5.20.0
188
+ .Sp
189
+ Using this feature triggers warnings in the category
190
+ \&\f(CW\*(C`experimental::signatures\*(C'\fR.
191
+ .Sp
192
+ The ticket for this feature is
193
+ [perl #13681] <https://github.com/Perl/perl5/issues/13681>.
194
+ .IP "Aliasing via reference" 8
195
+ .IX Item "Aliasing via reference"
196
+ Introduced in Perl 5.22.0
197
+ .Sp
198
+ Using this feature triggers warnings in the category
199
+ \&\f(CW\*(C`experimental::refaliasing\*(C'\fR.
200
+ .Sp
201
+ The ticket for this feature is
202
+ [perl #14150] <https://github.com/Perl/perl5/issues/14150>.
203
+ .Sp
204
+ See also: \*(L"Assigning to References\*(R" in perlref
205
+ .ie n .IP "The ""const"" attribute" 8
206
+ .el .IP "The ``const'' attribute" 8
207
+ .IX Item "The const attribute"
208
+ Introduced in Perl 5.22.0
209
+ .Sp
210
+ Using this feature triggers warnings in the category
211
+ \&\f(CW\*(C`experimental::const_attr\*(C'\fR.
212
+ .Sp
213
+ The ticket for this feature is
214
+ [perl #14428] <https://github.com/Perl/perl5/issues/14428>.
215
+ .Sp
216
+ See also: \*(L"Constant Functions\*(R" in perlsub
217
+ .IP "use re 'strict';" 8
218
+ .IX Item "use re 'strict';"
219
+ Introduced in Perl 5.22.0
220
+ .Sp
221
+ Using this feature triggers warnings in the category
222
+ \&\f(CW\*(C`experimental::re_strict\*(C'\fR.
223
+ .Sp
224
+ See \*(L"'strict' mode\*(R" in re
225
+ .IP "The <:win32> \s-1IO\s0 pseudolayer" 8
226
+ .IX Item "The <:win32> IO pseudolayer"
227
+ The ticket for this feature is
228
+ [perl #13198] <https://github.com/Perl/perl5/issues/13198>.
229
+ .Sp
230
+ See also \*(L"\s-1PERLIO\*(R"\s0 in perlrun
231
+ .IP "Declaring a reference to a variable" 8
232
+ .IX Item "Declaring a reference to a variable"
233
+ Introduced in Perl 5.26.0
234
+ .Sp
235
+ Using this feature triggers warnings in the category
236
+ \&\f(CW\*(C`experimental::declared_refs\*(C'\fR.
237
+ .Sp
238
+ The ticket for this feature is
239
+ [perl #15458] <https://github.com/Perl/perl5/issues/15458>.
240
+ .Sp
241
+ See also: \*(L"Declaring a Reference to a Variable\*(R" in perlref
242
+ .ie n .IP "There is an ""installhtml"" target in the Makefile." 8
243
+ .el .IP "There is an \f(CWinstallhtml\fR target in the Makefile." 8
244
+ .IX Item "There is an installhtml target in the Makefile."
245
+ The ticket for this feature is
246
+ [perl #12726] <https://github.com/Perl/perl5/issues/12726>.
247
+ .IP "(Limited) Variable-length look-behind" 8
248
+ .IX Item "(Limited) Variable-length look-behind"
249
+ Introduced in Perl 5.30.0. Variability of up to 255 characters is
250
+ handled.
251
+ .Sp
252
+ Using this feature triggers warnings in the category
253
+ \&\f(CW\*(C`experimental::vlb\*(C'\fR.
254
+ .Sp
255
+ See also: "(*positive_lookbehind:\fIpattern\fR)" in perlre and
256
+ "(*negative_lookbehind:\fIpattern\fR)" in perlre
257
+ .SS "Accepted features"
258
+ .IX Subsection "Accepted features"
259
+ These features were so wildly successful and played so well with others that
260
+ we decided to remove their experimental status and admit them as full, stable
261
+ features in the world of Perl, lavishing all the benefits and luxuries thereof.
262
+ They are also awarded +5 Stability and +3 Charisma.
263
+ .IP "64\-bit support" 8
264
+ .IX Item "64-bit support"
265
+ Introduced in Perl 5.005
266
+ .IP "die accepts a reference" 8
267
+ .IX Item "die accepts a reference"
268
+ Introduced in Perl 5.005
269
+ .IP "\s-1DB\s0 module" 8
270
+ .IX Item "DB module"
271
+ Introduced in Perl 5.6.0
272
+ .Sp
273
+ See also perldebug, perldebtut
274
+ .IP "Weak references" 8
275
+ .IX Item "Weak references"
276
+ Introduced in Perl 5.6.0
277
+ .IP "Internal file glob" 8
278
+ .IX Item "Internal file glob"
279
+ Introduced in Perl 5.6.0
280
+ .IP "\fBfork()\fR emulation" 8
281
+ .IX Item "fork() emulation"
282
+ Introduced in Perl 5.6.1
283
+ .Sp
284
+ See also perlfork
285
+ .IP "\-Dusemultiplicity \-Duseithreads" 8
286
+ .IX Item "-Dusemultiplicity -Duseithreads"
287
+ Introduced in Perl 5.6.0
288
+ .Sp
289
+ Accepted in Perl 5.8.0
290
+ .IP "Support for long doubles" 8
291
+ .IX Item "Support for long doubles"
292
+ Introduced in Perl 5.6.0
293
+ .Sp
294
+ Accepted in Perl 5.8.1
295
+ .ie n .IP "The ""\eN"" regex character class" 8
296
+ .el .IP "The \f(CW\eN\fR regex character class" 8
297
+ .IX Item "The N regex character class"
298
+ The \f(CW\*(C`\eN\*(C'\fR character class, not to be confused with the named character
299
+ sequence \f(CW\*(C`\eN{NAME}\*(C'\fR, denotes any non-newline character in a regular
300
+ expression.
301
+ .Sp
302
+ Introduced in Perl 5.12
303
+ .Sp
304
+ Exact version of acceptance unclear, but no later than Perl 5.18.
305
+ .ie n .IP """(?{code})"" and ""(??{ code })""" 8
306
+ .el .IP "\f(CW(?{code})\fR and \f(CW(??{ code })\fR" 8
307
+ .IX Item "(?{code}) and (??{ code })"
308
+ Introduced in Perl 5.6.0
309
+ .Sp
310
+ Accepted in Perl 5.20.0
311
+ .Sp
312
+ See also perlre
313
+ .IP "Linux abstract Unix domain sockets" 8
314
+ .IX Item "Linux abstract Unix domain sockets"
315
+ Introduced in Perl 5.9.2
316
+ .Sp
317
+ Accepted before Perl 5.20.0. The Socket library is now primarily maintained
318
+ on \s-1CPAN,\s0 rather than in the perl core.
319
+ .Sp
320
+ See also Socket
321
+ .IP "Lvalue subroutines" 8
322
+ .IX Item "Lvalue subroutines"
323
+ Introduced in Perl 5.6.0
324
+ .Sp
325
+ Accepted in Perl 5.20.0
326
+ .Sp
327
+ See also perlsub
328
+ .IP "Backtracking control verbs" 8
329
+ .IX Item "Backtracking control verbs"
330
+ \&\f(CW\*(C`(*ACCEPT)\*(C'\fR
331
+ .Sp
332
+ Introduced in Perl 5.10
333
+ .Sp
334
+ Accepted in Perl 5.20.0
335
+ .IP "The <:pop> \s-1IO\s0 pseudolayer" 8
336
+ .IX Item "The <:pop> IO pseudolayer"
337
+ See also \*(L"\s-1PERLIO\*(R"\s0 in perlrun
338
+ .Sp
339
+ Accepted in Perl 5.20.0
340
+ .ie n .IP """\es"" in regexp matches vertical tab" 8
341
+ .el .IP "\f(CW\es\fR in regexp matches vertical tab" 8
342
+ .IX Item "s in regexp matches vertical tab"
343
+ Accepted in Perl 5.22.0
344
+ .IP "Postfix dereference syntax" 8
345
+ .IX Item "Postfix dereference syntax"
346
+ Introduced in Perl 5.20.0
347
+ .Sp
348
+ Accepted in Perl 5.24.0
349
+ .IP "Lexical subroutines" 8
350
+ .IX Item "Lexical subroutines"
351
+ Introduced in Perl 5.18.0
352
+ .Sp
353
+ Accepted in Perl 5.26.0
354
+ .IP "String\- and number-specific bitwise operators" 8
355
+ .IX Item "String- and number-specific bitwise operators"
356
+ Introduced in Perl 5.22.0
357
+ .Sp
358
+ Accepted in Perl 5.28.0
359
+ .IP "Alphabetic assertions" 8
360
+ .IX Item "Alphabetic assertions"
361
+ Introduced in Perl 5.28.0
362
+ .Sp
363
+ Accepted in Perl 5.32.0
364
+ .IP "Script runs" 8
365
+ .IX Item "Script runs"
366
+ Introduced in Perl 5.28.0
367
+ .Sp
368
+ Accepted in Perl 5.32.0
369
+ .SS "Removed features"
370
+ .IX Subsection "Removed features"
371
+ These features are no longer considered experimental and their functionality
372
+ has disappeared. It's your own fault if you wrote production programs using
373
+ these features after we explicitly told you not to (see perlpolicy).
374
+ .IP "5.005\-style threading" 8
375
+ .IX Item "5.005-style threading"
376
+ Introduced in Perl 5.005
377
+ .Sp
378
+ Removed in Perl 5.10
379
+ .IP "perlcc" 8
380
+ .IX Item "perlcc"
381
+ Introduced in Perl 5.005
382
+ .Sp
383
+ Moved from Perl 5.9.0 to \s-1CPAN\s0
384
+ .IP "The pseudo-hash data type" 8
385
+ .IX Item "The pseudo-hash data type"
386
+ Introduced in Perl 5.6.0
387
+ .Sp
388
+ Removed in Perl 5.9.0
389
+ .IP "GetOpt::Long Options can now take multiple values at once (experimental)" 8
390
+ .IX Item "GetOpt::Long Options can now take multiple values at once (experimental)"
391
+ \&\f(CW\*(C`Getopt::Long\*(C'\fR upgraded to version 2.35
392
+ .Sp
393
+ Removed in Perl 5.8.8
394
+ .IP "Assertions" 8
395
+ .IX Item "Assertions"
396
+ The \f(CW\*(C`\-A\*(C'\fR command line switch
397
+ .Sp
398
+ Introduced in Perl 5.9.0
399
+ .Sp
400
+ Removed in Perl 5.9.5
401
+ .IP "Test::Harness::Straps" 8
402
+ .IX Item "Test::Harness::Straps"
403
+ Moved from Perl 5.10.1 to \s-1CPAN\s0
404
+ .ie n .IP """legacy""" 8
405
+ .el .IP "\f(CWlegacy\fR" 8
406
+ .IX Item "legacy"
407
+ The experimental \f(CW\*(C`legacy\*(C'\fR pragma was swallowed by the \f(CW\*(C`feature\*(C'\fR pragma.
408
+ .Sp
409
+ Introduced in Perl 5.11.2
410
+ .Sp
411
+ Removed in Perl 5.11.3
412
+ .ie n .IP "Lexical $_" 8
413
+ .el .IP "Lexical \f(CW$_\fR" 8
414
+ .IX Item "Lexical $_"
415
+ Using this feature triggered warnings in the category
416
+ \&\f(CW\*(C`experimental::lexical_topic\*(C'\fR.
417
+ .Sp
418
+ Introduced in Perl 5.10.0
419
+ .Sp
420
+ Removed in Perl 5.24.0
421
+ .IP "Array and hash container functions accept references" 8
422
+ .IX Item "Array and hash container functions accept references"
423
+ Using this feature triggered warnings in the category
424
+ \&\f(CW\*(C`experimental::autoderef\*(C'\fR.
425
+ .Sp
426
+ Superseded by \*(L"Postfix dereference syntax\*(R".
427
+ .Sp
428
+ Introduced in Perl 5.14.0
429
+ .Sp
430
+ Removed in Perl 5.24.0
431
+ .ie n .IP """our"" can have an experimental optional attribute ""unique""" 8
432
+ .el .IP "\f(CWour\fR can have an experimental optional attribute \f(CWunique\fR" 8
433
+ .IX Item "our can have an experimental optional attribute unique"
434
+ Introduced in Perl 5.8.0
435
+ .Sp
436
+ Deprecated in Perl 5.10.0
437
+ .Sp
438
+ Removed in Perl 5.28.0
439
+ .SH "SEE ALSO"
440
+ .IX Header "SEE ALSO"
441
+ For a complete list of features check feature.
442
+ .SH "AUTHORS"
443
+ .IX Header "AUTHORS"
444
+ brian d foy \f(CW\*(C`<brian.d.foy@gmail.com>\*(C'\fR
445
+ .PP
446
+ Se\*'bastien Aperghis-Tramoni \f(CW\*(C`<saper@cpan.org>\*(C'\fR
447
+ .SH "COPYRIGHT"
448
+ .IX Header "COPYRIGHT"
449
+ Copyright 2010, brian d foy \f(CW\*(C`<brian.d.foy@gmail.com>\*(C'\fR
450
+ .SH "LICENSE"
451
+ .IX Header "LICENSE"
452
+ You can use and redistribute this document under the same terms as Perl
453
+ itself.
data/miniconda3/man/man1/perlfaq1.1 ADDED
@@ -0,0 +1,450 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "PERLFAQ1 1"
136
+ .TH PERLFAQ1 1 "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
+ perlfaq1 \- General Questions About Perl
143
+ .SH "VERSION"
144
+ .IX Header "VERSION"
145
+ version 5.20200523
146
+ .SH "DESCRIPTION"
147
+ .IX Header "DESCRIPTION"
148
+ This section of the \s-1FAQ\s0 answers very general, high-level questions
149
+ about Perl.
150
+ .SS "What is Perl?"
151
+ .IX Subsection "What is Perl?"
152
+ Perl is a high-level programming language with an eclectic heritage
153
+ written by Larry Wall and a cast of thousands.
154
+ .PP
155
+ Perl's process, file, and text manipulation facilities make it
156
+ particularly well-suited for tasks involving quick prototyping, system
157
+ utilities, software tools, system management tasks, database access,
158
+ graphical programming, networking, and web programming.
159
+ .PP
160
+ Perl derives from the ubiquitous C programming language and to a
161
+ lesser extent from sed, awk, the Unix shell, and many other tools
162
+ and languages.
163
+ .PP
164
+ These strengths make it especially popular with web developers
165
+ and system administrators. Mathematicians, geneticists, journalists,
166
+ managers and many other people also use Perl.
167
+ .SS "Who supports Perl? Who develops it? Why is it free?"
168
+ .IX Subsection "Who supports Perl? Who develops it? Why is it free?"
169
+ The original culture of the pre-populist Internet and the deeply-held
170
+ beliefs of Perl's author, Larry Wall, gave rise to the free and open
171
+ distribution policy of Perl. Perl is supported by its users. The
172
+ core, the standard Perl library, the optional modules, and the
173
+ documentation you're reading now were all written by volunteers.
174
+ .PP
175
+ The core development team (known as the Perl Porters)
176
+ are a group of highly altruistic individuals committed to
177
+ producing better software for free than you could hope to purchase for
178
+ money. You may snoop on pending developments via the
179
+ archives <http://www.nntp.perl.org/group/perl.perl5.porters/>
180
+ or you can subscribe to the mailing list by sending
181
+ perl5\-porters\-subscribe@perl.org a subscription request
182
+ (an empty message with no subject is fine).
183
+ .PP
184
+ While the \s-1GNU\s0 project includes Perl in its distributions, there's no
185
+ such thing as \*(L"\s-1GNU\s0 Perl\*(R". Perl is not produced nor maintained by the
186
+ Free Software Foundation. Perl's licensing terms are also more open
187
+ than \s-1GNU\s0 software's tend to be.
188
+ .PP
189
+ You can get commercial support of Perl if you wish, although for most
190
+ users the informal support will more than suffice. See the answer to
191
+ \&\*(L"Where can I buy a commercial version of Perl?\*(R" for more information.
192
+ .SS "Which version of Perl should I use?"
193
+ .IX Subsection "Which version of Perl should I use?"
194
+ (contributed by brian d foy with updates from others)
195
+ .PP
196
+ There is often a matter of opinion and taste, and there isn't any one
197
+ answer that fits everyone. In general, you want to use either the current
198
+ stable release, or the stable release immediately prior to that one.
199
+ .PP
200
+ Beyond that, you have to consider several things and decide which is best
201
+ for you.
202
+ .IP "\(bu" 4
203
+ If things aren't broken, upgrading perl may break them (or at least issue
204
+ new warnings).
205
+ .IP "\(bu" 4
206
+ The latest versions of perl have more bug fixes.
207
+ .IP "\(bu" 4
208
+ The latest versions of perl may contain performance improvements and
209
+ features not present in older versions. There have been many changes
210
+ in perl since perl5 was first introduced.
211
+ .IP "\(bu" 4
212
+ The Perl community is geared toward supporting the most recent releases,
213
+ so you'll have an easier time finding help for those.
214
+ .IP "\(bu" 4
215
+ Older versions of perl may have security vulnerabilities, some of which
216
+ are serious (see perlsec and search
217
+ CVEs <https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=Perl> for more
218
+ information).
219
+ .IP "\(bu" 4
220
+ The latest versions are probably the least deployed and widely tested, so
221
+ you may want to wait a few months after their release and see what
222
+ problems others have if you are risk averse.
223
+ .IP "\(bu" 4
224
+ The immediate, in addition to the current stable release, the previous
225
+ stable release is maintained. See
226
+ \&\*(L"\s-1MAINTENANCE AND SUPPORT\*(R"\s0 in perlpolicy for more information.
227
+ .IP "\(bu" 4
228
+ There are really two tracks of perl development: a maintenance version
229
+ and an experimental version. The maintenance versions are stable, and
230
+ have an even number as the minor release (i.e. perl5.24.x, where 24 is the
231
+ minor release). The experimental versions may include features that
232
+ don't make it into the stable versions, and have an odd number as the
233
+ minor release (i.e. perl5.25.x, where 25 is the minor release).
234
+ .IP "\(bu" 4
235
+ You can consult releases <http://dev.perl.org/perl5> to determine the
236
+ current stable release of Perl.
237
+ .SS "What are Perl 4, Perl 5, or Raku (Perl 6)?"
238
+ .IX Subsection "What are Perl 4, Perl 5, or Raku (Perl 6)?"
239
+ In short, Perl 4 is the parent to both Perl 5 and Raku (formerly known as
240
+ Perl 6). Perl 5 is the older sibling, and though they are different languages,
241
+ someone who knows one will spot many similarities in the other.
242
+ .PP
243
+ The number after Perl (i.e. the 5 after Perl 5) is the major release
244
+ of the perl interpreter as well as the version of the language. Each
245
+ major version has significant differences that earlier versions cannot
246
+ support.
247
+ .PP
248
+ The current major release of Perl is Perl 5, first released in
249
+ 1994. It can run scripts from the previous major release, Perl 4
250
+ (March 1991), but has significant differences.
251
+ .PP
252
+ Raku is a reinvention of Perl, a language in the same lineage but
253
+ not compatible. The two are complementary, not mutually exclusive. Raku is
254
+ not meant to replace Perl, and vice versa. See \*(L"What is Raku (Perl 6)?\*(R"
255
+ below to find out more.
256
+ .PP
257
+ See perlhist for a history of Perl revisions.
258
+ .SS "What is Raku (Perl 6)?"
259
+ .IX Subsection "What is Raku (Perl 6)?"
260
+ Raku (formerly known as Perl 6) was \fIoriginally\fR described as the community's
261
+ rewrite of Perl, however as the language evolved, it became clear that it is
262
+ a separate language, but in the same language family as Perl.
263
+ .PP
264
+ Raku is not intended primarily as a replacement for Perl, but as its
265
+ own thing \- and libraries exist to allow you to call Perl code from Raku
266
+ programs and vice versa.
267
+ .PP
268
+ Contrary to popular belief, Raku and Perl peacefully coexist with one
269
+ another. Raku has proven to be a fascinating source of ideas for those
270
+ using Perl (the Moose object system is a well-known example). There is
271
+ overlap in the communities, and this overlap fosters the tradition of sharing
272
+ and borrowing that have been instrumental to Perl's success.
273
+ .PP
274
+ For more about Raku see <https://www.raku.org/>.
275
+ .PP
276
+ \&\*(L"We're really serious about reinventing everything that needs reinventing.\*(R"
277
+ \&\-\-Larry Wall
278
+ .SS "How stable is Perl?"
279
+ .IX Subsection "How stable is Perl?"
280
+ Production releases, which incorporate bug fixes and new functionality,
281
+ are widely tested before release. Since the 5.000 release, we have
282
+ averaged about one production release per year.
283
+ .PP
284
+ The Perl development team occasionally make changes to the
285
+ internal core of the language, but all possible efforts are made toward
286
+ backward compatibility.
287
+ .SS "How often are new versions of Perl released?"
288
+ .IX Subsection "How often are new versions of Perl released?"
289
+ Recently, the plan has been to release a new version of Perl roughly every
290
+ April, but getting the release right is more important than sticking rigidly to
291
+ a calendar date, so the release date is somewhat flexible. The historical
292
+ release dates can be viewed at <http://www.cpan.org/src/README.html>.
293
+ .PP
294
+ Even numbered minor versions (5.14, 5.16, 5.18) are production versions, and
295
+ odd numbered minor versions (5.15, 5.17, 5.19) are development versions. Unless
296
+ you want to try out an experimental feature, you probably never want to install
297
+ a development version of Perl.
298
+ .PP
299
+ The Perl development team are called Perl 5 Porters, and their
300
+ organization is described at <http://perldoc.perl.org/perlpolicy.html>.
301
+ The organizational rules really just boil down to one: Larry is always
302
+ right, even when he was wrong.
303
+ .SS "Is Perl difficult to learn?"
304
+ .IX Subsection "Is Perl difficult to learn?"
305
+ No, Perl is easy to start learning <http://learn.perl.org/> \-\-and easy to keep learning. It looks
306
+ like most programming languages you're likely to have experience
307
+ with, so if you've ever written a C program, an awk script, a shell
308
+ script, or even a \s-1BASIC\s0 program, you're already partway there.
309
+ .PP
310
+ Most tasks only require a small subset of the Perl language. One of
311
+ the guiding mottos for Perl development is \*(L"there's more than one way
312
+ to do it\*(R" (\s-1TMTOWTDI,\s0 sometimes pronounced \*(L"tim toady\*(R"). Perl's
313
+ learning curve is therefore shallow (easy to learn) and long (there's
314
+ a whole lot you can do if you really want).
315
+ .PP
316
+ Finally, because Perl is frequently (but not always, and certainly not by
317
+ definition) an interpreted language, you can write your programs and test
318
+ them without an intermediate compilation step, allowing you to experiment
319
+ and test/debug quickly and easily. This ease of experimentation flattens
320
+ the learning curve even more.
321
+ .PP
322
+ Things that make Perl easier to learn: Unix experience, almost any kind
323
+ of programming experience, an understanding of regular expressions, and
324
+ the ability to understand other people's code. If there's something you
325
+ need to do, then it's probably already been done, and a working example is
326
+ usually available for free. Don't forget Perl modules, either.
327
+ They're discussed in Part 3 of this \s-1FAQ,\s0 along with \s-1CPAN\s0 <http://www.cpan.org/>, which is
328
+ discussed in Part 2.
329
+ .SS "How does Perl compare with other languages like Java, Python, \s-1REXX,\s0 Scheme, or Tcl?"
330
+ .IX Subsection "How does Perl compare with other languages like Java, Python, REXX, Scheme, or Tcl?"
331
+ Perl can be used for almost any coding problem, even ones which require
332
+ integrating specialist C code for extra speed. As with any tool it can
333
+ be used well or badly. Perl has many strengths, and a few weaknesses,
334
+ precisely which areas are good and bad is often a personal choice.
335
+ .PP
336
+ When choosing a language you should also be influenced by the
337
+ resources <http://www.cpan.org/>, testing culture <http://www.cpantesters.org/>
338
+ and community <http://www.perl.org/community.html> which surrounds it.
339
+ .PP
340
+ For comparisons to a specific language it is often best to create
341
+ a small project in both languages and compare the results, make sure
342
+ to use all the resources <http://www.cpan.org/> of each language,
343
+ as a language is far more than just it's syntax.
344
+ .SS "Can I do [task] in Perl?"
345
+ .IX Subsection "Can I do [task] in Perl?"
346
+ Perl is flexible and extensible enough for you to use on virtually any
347
+ task, from one-line file-processing tasks to large, elaborate systems.
348
+ .PP
349
+ For many people, Perl serves as a great replacement for shell scripting.
350
+ For others, it serves as a convenient, high-level replacement for most of
351
+ what they'd program in low-level languages like C or \*(C+. It's ultimately
352
+ up to you (and possibly your management) which tasks you'll use Perl
353
+ for and which you won't.
354
+ .PP
355
+ If you have a library that provides an \s-1API,\s0 you can make any component
356
+ of it available as just another Perl function or variable using a Perl
357
+ extension written in C or \*(C+ and dynamically linked into your main
358
+ perl interpreter. You can also go the other direction, and write your
359
+ main program in C or \*(C+, and then link in some Perl code on the fly,
360
+ to create a powerful application. See perlembed.
361
+ .PP
362
+ That said, there will always be small, focused, special-purpose
363
+ languages dedicated to a specific problem domain that are simply more
364
+ convenient for certain kinds of problems. Perl tries to be all things
365
+ to all people, but nothing special to anyone. Examples of specialized
366
+ languages that come to mind include prolog and matlab.
367
+ .SS "When shouldn't I program in Perl?"
368
+ .IX Subsection "When shouldn't I program in Perl?"
369
+ One good reason is when you already have an existing
370
+ application written in another language that's all done (and done
371
+ well), or you have an application language specifically designed for a
372
+ certain task (e.g. prolog, make).
373
+ .PP
374
+ If you find that you need to speed up a specific part of a Perl
375
+ application (not something you often need) you may want to use C,
376
+ but you can access this from your Perl code with perlxs.
377
+ .ie n .SS "What's the difference between ""perl"" and ""Perl""?"
378
+ .el .SS "What's the difference between ``perl'' and ``Perl''?"
379
+ .IX Subsection "What's the difference between perl and Perl?"
380
+ \&\*(L"Perl\*(R" is the name of the language. Only the \*(L"P\*(R" is capitalized.
381
+ The name of the interpreter (the program which runs the Perl script)
382
+ is \*(L"perl\*(R" with a lowercase \*(L"p\*(R".
383
+ .PP
384
+ You may or may not choose to follow this usage. But never write \*(L"\s-1PERL\*(R",\s0
385
+ because perl is not an acronym.
386
+ .SS "What is a \s-1JAPH\s0?"
387
+ .IX Subsection "What is a JAPH?"
388
+ (contributed by brian d foy)
389
+ .PP
390
+ \&\s-1JAPH\s0 stands for \*(L"Just another Perl hacker,\*(R", which Randal Schwartz used
391
+ to sign email and usenet messages starting in the late 1980s. He
392
+ previously used the phrase with many subjects (\*(L"Just another x hacker,\*(R"),
393
+ so to distinguish his \s-1JAPH,\s0 he started to write them as Perl programs:
394
+ .PP
395
+ .Vb 1
396
+ \& print "Just another Perl hacker,";
397
+ .Ve
398
+ .PP
399
+ Other people picked up on this and started to write clever or obfuscated
400
+ programs to produce the same output, spinning things quickly out of
401
+ control while still providing hours of amusement for their creators and
402
+ readers.
403
+ .PP
404
+ \&\s-1CPAN\s0 has several \s-1JAPH\s0 programs at <http://www.cpan.org/misc/japh>.
405
+ .SS "How can I convince others to use Perl?"
406
+ .IX Subsection "How can I convince others to use Perl?"
407
+ (contributed by brian d foy)
408
+ .PP
409
+ Appeal to their self interest! If Perl is new (and thus scary) to them,
410
+ find something that Perl can do to solve one of their problems. That
411
+ might mean that Perl either saves them something (time, headaches, money)
412
+ or gives them something (flexibility, power, testability).
413
+ .PP
414
+ In general, the benefit of a language is closely related to the skill of
415
+ the people using that language. If you or your team can be faster,
416
+ better, and stronger through Perl, you'll deliver more value. Remember,
417
+ people often respond better to what they get out of it. If you run
418
+ into resistance, figure out what those people get out of the other
419
+ choice and how Perl might satisfy that requirement.
420
+ .PP
421
+ You don't have to worry about finding or paying for Perl; it's freely
422
+ available and several popular operating systems come with Perl. Community
423
+ support in places such as Perlmonks ( <http://www.perlmonks.com> )
424
+ and the various Perl mailing lists ( <http://lists.perl.org> ) means that
425
+ you can usually get quick answers to your problems.
426
+ .PP
427
+ Finally, keep in mind that Perl might not be the right tool for every
428
+ job. You're a much better advocate if your claims are reasonable and
429
+ grounded in reality. Dogmatically advocating anything tends to make
430
+ people discount your message. Be honest about possible disadvantages
431
+ to your choice of Perl since any choice has trade-offs.
432
+ .PP
433
+ You might find these links useful:
434
+ .IP "\(bu" 4
435
+ <http://www.perl.org/about.html>
436
+ .IP "\(bu" 4
437
+ <http://perltraining.com.au/whyperl.html>
438
+ .SH "AUTHOR AND COPYRIGHT"
439
+ .IX Header "AUTHOR AND COPYRIGHT"
440
+ Copyright (c) 1997\-2010 Tom Christiansen, Nathan Torkington, and
441
+ other authors as noted. All rights reserved.
442
+ .PP
443
+ This documentation is free; you can redistribute it and/or modify it
444
+ under the same terms as Perl itself.
445
+ .PP
446
+ Irrespective of its distribution, all code examples here are in the public
447
+ domain. You are permitted and encouraged to use this code and any
448
+ derivatives thereof in your own programs for fun or for profit as you
449
+ see fit. A simple comment in the code giving credit to the \s-1FAQ\s0 would
450
+ be courteous but is not required.
data/miniconda3/man/man1/perlfaq2.1 ADDED
@@ -0,0 +1,366 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "PERLFAQ2 1"
136
+ .TH PERLFAQ2 1 "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
+ perlfaq2 \- Obtaining and Learning about Perl
143
+ .SH "VERSION"
144
+ .IX Header "VERSION"
145
+ version 5.20200523
146
+ .SH "DESCRIPTION"
147
+ .IX Header "DESCRIPTION"
148
+ This section of the \s-1FAQ\s0 answers questions about where to find
149
+ source and documentation for Perl, support, and
150
+ related matters.
151
+ .SS "What machines support Perl? Where do I get it?"
152
+ .IX Subsection "What machines support Perl? Where do I get it?"
153
+ The standard release of Perl (the one maintained by the Perl
154
+ development team) is distributed only in source code form. You
155
+ can find the latest releases at <http://www.cpan.org/src/>.
156
+ .PP
157
+ Perl builds and runs on a bewildering number of platforms. Virtually
158
+ all known and current Unix derivatives are supported (perl's native
159
+ platform), as are other systems like \s-1VMS, DOS, OS/2,\s0 Windows,
160
+ \&\s-1QNX,\s0 BeOS, \s-1OS X,\s0 MPE/iX and the Amiga.
161
+ .PP
162
+ Binary distributions for some proprietary platforms can be found
163
+ <http://www.cpan.org/ports/> directory. Because these are not part of
164
+ the standard distribution, they may and in fact do differ from the
165
+ base perl port in a variety of ways. You'll have to check their
166
+ respective release notes to see just what the differences are. These
167
+ differences can be either positive (e.g. extensions for the features
168
+ of the particular platform that are not supported in the source
169
+ release of perl) or negative (e.g. might be based upon a less current
170
+ source release of perl).
171
+ .SS "How can I get a binary version of Perl?"
172
+ .IX Subsection "How can I get a binary version of Perl?"
173
+ See \s-1CPAN\s0 Ports <http://www.cpan.org/ports/>
174
+ .SS "I don't have a C compiler. How can I build my own Perl interpreter?"
175
+ .IX Subsection "I don't have a C compiler. How can I build my own Perl interpreter?"
176
+ For Windows, use a binary version of Perl,
177
+ Strawberry Perl <http://strawberryperl.com/> and
178
+ ActivePerl <http://www.activestate.com/activeperl> come with a
179
+ bundled C compiler.
180
+ .PP
181
+ Otherwise if you really do want to build Perl, you need to get a
182
+ binary version of \f(CW\*(C`gcc\*(C'\fR for your system first. Use a search
183
+ engine to find out how to do this for your operating system.
184
+ .SS "I copied the Perl binary from one machine to another, but scripts don't work."
185
+ .IX Subsection "I copied the Perl binary from one machine to another, but scripts don't work."
186
+ That's probably because you forgot libraries, or library paths differ.
187
+ You really should build the whole distribution on the machine it will
188
+ eventually live on, and then type \f(CW\*(C`make install\*(C'\fR. Most other
189
+ approaches are doomed to failure.
190
+ .PP
191
+ One simple way to check that things are in the right place is to print out
192
+ the hard-coded \f(CW@INC\fR that perl looks through for libraries:
193
+ .PP
194
+ .Vb 1
195
+ \& % perl \-le \*(Aqprint for @INC\*(Aq
196
+ .Ve
197
+ .PP
198
+ If this command lists any paths that don't exist on your system, then you
199
+ may need to move the appropriate libraries to these locations, or create
200
+ symbolic links, aliases, or shortcuts appropriately. \f(CW@INC\fR is also printed as
201
+ part of the output of
202
+ .PP
203
+ .Vb 1
204
+ \& % perl \-V
205
+ .Ve
206
+ .PP
207
+ You might also want to check out
208
+ \&\*(L"How do I keep my own module/library directory?\*(R" in perlfaq8.
209
+ .SS "I grabbed the sources and tried to compile but gdbm/dynamic loading/malloc/linking/... failed. How do I make it work?"
210
+ .IX Subsection "I grabbed the sources and tried to compile but gdbm/dynamic loading/malloc/linking/... failed. How do I make it work?"
211
+ Read the \fI\s-1INSTALL\s0\fR file, which is part of the source distribution.
212
+ It describes in detail how to cope with most idiosyncrasies that the
213
+ \&\f(CW\*(C`Configure\*(C'\fR script can't work around for any given system or
214
+ architecture.
215
+ .SS "What modules and extensions are available for Perl? What is \s-1CPAN\s0?"
216
+ .IX Subsection "What modules and extensions are available for Perl? What is CPAN?"
217
+ \&\s-1CPAN\s0 stands for Comprehensive Perl Archive Network, a multi-gigabyte
218
+ archive replicated on hundreds of machines all over the world. \s-1CPAN\s0
219
+ contains tens of thousands of modules and extensions, source code
220
+ and documentation, designed for \fIeverything\fR from commercial
221
+ database interfaces to keyboard/screen control and running large web sites.
222
+ .PP
223
+ You can search \s-1CPAN\s0 on <http://metacpan.org>.
224
+ .PP
225
+ The master web site for \s-1CPAN\s0 is <http://www.cpan.org/>,
226
+ <http://www.cpan.org/SITES.html> lists all mirrors.
227
+ .PP
228
+ See the \s-1CPAN FAQ\s0 at <http://www.cpan.org/misc/cpan\-faq.html> for answers
229
+ to the most frequently asked questions about \s-1CPAN.\s0
230
+ .PP
231
+ The Task::Kensho module has a list of recommended modules which
232
+ you should review as a good starting point.
233
+ .SS "Where can I get information on Perl?"
234
+ .IX Subsection "Where can I get information on Perl?"
235
+ .IP "\(bu" 4
236
+ <http://www.perl.org/>
237
+ .IP "\(bu" 4
238
+ <http://perldoc.perl.org/>
239
+ .IP "\(bu" 4
240
+ <http://learn.perl.org/>
241
+ .PP
242
+ The complete Perl documentation is available with the Perl distribution.
243
+ If you have Perl installed locally, you probably have the documentation
244
+ installed as well: type \f(CW\*(C`perldoc perl\*(C'\fR in a terminal or
245
+ view online <http://perldoc.perl.org/perl.html>.
246
+ .PP
247
+ (Some operating system distributions may ship the documentation in a different
248
+ package; for instance, on Debian, you need to install the \f(CW\*(C`perl\-doc\*(C'\fR package.)
249
+ .PP
250
+ Many good books have been written about Perl\*(--see the section later in
251
+ perlfaq2 for more details.
252
+ .SS "What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org?"
253
+ .IX Subsection "What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org?"
254
+ Perl.com <http://www.perl.com/> used to be part of the O'Reilly
255
+ Network, a subsidiary of O'Reilly Media. Although it retains most of
256
+ the original content from its O'Reilly Network, it is now hosted by
257
+ The Perl Foundation <http://www.perlfoundation.org/>.
258
+ .PP
259
+ The Perl Foundation is an advocacy organization for the Perl language
260
+ which maintains the web site <http://www.perl.org/> as a general
261
+ advocacy site for the Perl language. It uses the domain to provide
262
+ general support services to the Perl community, including the hosting
263
+ of mailing lists, web sites, and other services. There are also many
264
+ other sub-domains for special topics like learning Perl and jobs in Perl,
265
+ such as:
266
+ .IP "\(bu" 4
267
+ <http://www.perl.org/>
268
+ .IP "\(bu" 4
269
+ <http://learn.perl.org/>
270
+ .IP "\(bu" 4
271
+ <http://jobs.perl.org/>
272
+ .IP "\(bu" 4
273
+ <http://lists.perl.org/>
274
+ .PP
275
+ Perl Mongers <http://www.pm.org/> uses the pm.org domain for services
276
+ related to local Perl user groups, including the hosting of mailing lists
277
+ and web sites. See the Perl Mongers web site <http://www.pm.org/> for more
278
+ information about joining, starting, or requesting services for a
279
+ Perl user group.
280
+ .PP
281
+ \&\s-1CPAN,\s0 or the Comprehensive Perl Archive Network <http://www.cpan.org/>,
282
+ is a replicated, worldwide repository of Perl software.
283
+ See What is \s-1CPAN\s0?.
284
+ .SS "Where can I post questions?"
285
+ .IX Subsection "Where can I post questions?"
286
+ There are many Perl mailing lists for various
287
+ topics, specifically the beginners list <http://lists.perl.org/list/beginners.html>
288
+ may be of use.
289
+ .PP
290
+ Other places to ask questions are on the
291
+ PerlMonks site <http://www.perlmonks.org/> or
292
+ stackoverflow <http://stackoverflow.com/questions/tagged/perl>.
293
+ .SS "Perl Books"
294
+ .IX Subsection "Perl Books"
295
+ There are many good books on Perl <http://www.perl.org/books/library.html>.
296
+ .SS "Which magazines have Perl content?"
297
+ .IX Subsection "Which magazines have Perl content?"
298
+ There's also \fI\f(CI$foo\fI Magazin\fR, a German magazine dedicated to Perl, at
299
+ ( <http://www.foo\-magazin.de> ). The \fIPerl-Zeitung\fR is another
300
+ German-speaking magazine for Perl beginners (see
301
+ <http://perl\-zeitung.at.tf> ).
302
+ .PP
303
+ Several Unix/Linux related magazines frequently include articles on Perl.
304
+ .SS "Which Perl blogs should I read?"
305
+ .IX Subsection "Which Perl blogs should I read?"
306
+ Perl News <http://perlnews.org/> covers some of the major events in the Perl
307
+ world, Perl Weekly <http://perlweekly.com/> is a weekly e\-mail
308
+ (and \s-1RSS\s0 feed) of hand-picked Perl articles.
309
+ .PP
310
+ <http://blogs.perl.org/> hosts many Perl blogs, there are also
311
+ several blog aggregators: Perlsphere <http://perlsphere.net/> and
312
+ IronMan <http://ironman.enlightenedperl.org/> are two of them.
313
+ .SS "What mailing lists are there for Perl?"
314
+ .IX Subsection "What mailing lists are there for Perl?"
315
+ A comprehensive list of Perl-related mailing lists can be found at
316
+ <http://lists.perl.org/>
317
+ .SS "Where can I buy a commercial version of Perl?"
318
+ .IX Subsection "Where can I buy a commercial version of Perl?"
319
+ Perl already \fIis\fR commercial software: it has a license
320
+ that you can grab and carefully read to your manager. It is distributed
321
+ in releases and comes in well-defined packages. There is a very large
322
+ and supportive user community and an extensive literature.
323
+ .PP
324
+ If you still need commercial support
325
+ ActiveState <http://www.activestate.com/activeperl> offers
326
+ this.
327
+ .SS "Where do I send bug reports?"
328
+ .IX Subsection "Where do I send bug reports?"
329
+ (contributed by brian d foy)
330
+ .PP
331
+ First, ensure that you've found an actual bug. Second, ensure you've
332
+ found an actual bug.
333
+ .PP
334
+ If you've found a bug with the perl interpreter or one of the modules
335
+ in the standard library (those that come with Perl), you can submit a
336
+ bug report to the GitHub issue tracker at
337
+ <https://github.com/Perl/perl5/issues>.
338
+ .PP
339
+ To determine if a module came with your version of Perl, you can
340
+ install and use the Module::CoreList module. It has the information
341
+ about the modules (with their versions) included with each release
342
+ of Perl.
343
+ .PP
344
+ Every \s-1CPAN\s0 module has a bug tracker set up in \s-1RT,\s0 <http://rt.cpan.org>.
345
+ You can submit bugs to \s-1RT\s0 either through its web interface or by
346
+ email. To email a bug report, send it to
347
+ bug\-<distribution\-name>@rt.cpan.org . For example, if you
348
+ wanted to report a bug in Business::ISBN, you could send a message to
349
+ bug\-Business\-ISBN@rt.cpan.org .
350
+ .PP
351
+ Some modules might have special reporting requirements, such as a
352
+ Github or Google Code tracking system, so you should check the
353
+ module documentation too.
354
+ .SH "AUTHOR AND COPYRIGHT"
355
+ .IX Header "AUTHOR AND COPYRIGHT"
356
+ Copyright (c) 1997\-2010 Tom Christiansen, Nathan Torkington, and
357
+ other authors as noted. All rights reserved.
358
+ .PP
359
+ This documentation is free; you can redistribute it and/or modify it
360
+ under the same terms as Perl itself.
361
+ .PP
362
+ Irrespective of its distribution, all code examples here are in the public
363
+ domain. You are permitted and encouraged to use this code and any
364
+ derivatives thereof in your own programs for fun or for profit as you
365
+ see fit. A simple comment in the code giving credit to the \s-1FAQ\s0 would
366
+ be courteous but is not required.
data/miniconda3/man/man1/perlfaq3.1 ADDED
@@ -0,0 +1,1239 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "PERLFAQ3 1"
136
+ .TH PERLFAQ3 1 "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
+ perlfaq3 \- Programming Tools
143
+ .SH "VERSION"
144
+ .IX Header "VERSION"
145
+ version 5.20200523
146
+ .SH "DESCRIPTION"
147
+ .IX Header "DESCRIPTION"
148
+ This section of the \s-1FAQ\s0 answers questions related to programmer tools
149
+ and programming support.
150
+ .SS "How do I do (anything)?"
151
+ .IX Subsection "How do I do (anything)?"
152
+ Have you looked at \s-1CPAN\s0 (see perlfaq2)? The chances are that
153
+ someone has already written a module that can solve your problem.
154
+ Have you read the appropriate manpages? Here's a brief index:
155
+ .IP "Basics" 4
156
+ .IX Item "Basics"
157
+ .RS 4
158
+ .PD 0
159
+ .IP "perldata \- Perl data types" 4
160
+ .IX Item "perldata - Perl data types"
161
+ .IP "perlvar \- Perl pre-defined variables" 4
162
+ .IX Item "perlvar - Perl pre-defined variables"
163
+ .IP "perlsyn \- Perl syntax" 4
164
+ .IX Item "perlsyn - Perl syntax"
165
+ .IP "perlop \- Perl operators and precedence" 4
166
+ .IX Item "perlop - Perl operators and precedence"
167
+ .IP "perlsub \- Perl subroutines" 4
168
+ .IX Item "perlsub - Perl subroutines"
169
+ .RE
170
+ .RS 4
171
+ .RE
172
+ .IP "Execution" 4
173
+ .IX Item "Execution"
174
+ .RS 4
175
+ .IP "perlrun \- how to execute the Perl interpreter" 4
176
+ .IX Item "perlrun - how to execute the Perl interpreter"
177
+ .IP "perldebug \- Perl debugging" 4
178
+ .IX Item "perldebug - Perl debugging"
179
+ .RE
180
+ .RS 4
181
+ .RE
182
+ .IP "Functions" 4
183
+ .IX Item "Functions"
184
+ .RS 4
185
+ .IP "perlfunc \- Perl builtin functions" 4
186
+ .IX Item "perlfunc - Perl builtin functions"
187
+ .RE
188
+ .RS 4
189
+ .RE
190
+ .IP "Objects" 4
191
+ .IX Item "Objects"
192
+ .RS 4
193
+ .IP "perlref \- Perl references and nested data structures" 4
194
+ .IX Item "perlref - Perl references and nested data structures"
195
+ .IP "perlmod \- Perl modules (packages and symbol tables)" 4
196
+ .IX Item "perlmod - Perl modules (packages and symbol tables)"
197
+ .IP "perlobj \- Perl objects" 4
198
+ .IX Item "perlobj - Perl objects"
199
+ .IP "perltie \- how to hide an object class in a simple variable" 4
200
+ .IX Item "perltie - how to hide an object class in a simple variable"
201
+ .RE
202
+ .RS 4
203
+ .RE
204
+ .IP "Data Structures" 4
205
+ .IX Item "Data Structures"
206
+ .RS 4
207
+ .IP "perlref \- Perl references and nested data structures" 4
208
+ .IX Item "perlref - Perl references and nested data structures"
209
+ .IP "perllol \- Manipulating arrays of arrays in Perl" 4
210
+ .IX Item "perllol - Manipulating arrays of arrays in Perl"
211
+ .IP "perldsc \- Perl Data Structures Cookbook" 4
212
+ .IX Item "perldsc - Perl Data Structures Cookbook"
213
+ .RE
214
+ .RS 4
215
+ .RE
216
+ .IP "Modules" 4
217
+ .IX Item "Modules"
218
+ .RS 4
219
+ .IP "perlmod \- Perl modules (packages and symbol tables)" 4
220
+ .IX Item "perlmod - Perl modules (packages and symbol tables)"
221
+ .IP "perlmodlib \- constructing new Perl modules and finding existing ones" 4
222
+ .IX Item "perlmodlib - constructing new Perl modules and finding existing ones"
223
+ .RE
224
+ .RS 4
225
+ .RE
226
+ .IP "Regexes" 4
227
+ .IX Item "Regexes"
228
+ .RS 4
229
+ .IP "perlre \- Perl regular expressions" 4
230
+ .IX Item "perlre - Perl regular expressions"
231
+ .IP "perlfunc \- Perl builtin functions>" 4
232
+ .IX Item "perlfunc - Perl builtin functions>"
233
+ .IP "perlop \- Perl operators and precedence" 4
234
+ .IX Item "perlop - Perl operators and precedence"
235
+ .IP "perllocale \- Perl locale handling (internationalization and localization)" 4
236
+ .IX Item "perllocale - Perl locale handling (internationalization and localization)"
237
+ .RE
238
+ .RS 4
239
+ .RE
240
+ .IP "Moving to perl5" 4
241
+ .IX Item "Moving to perl5"
242
+ .RS 4
243
+ .IP "perltrap \- Perl traps for the unwary" 4
244
+ .IX Item "perltrap - Perl traps for the unwary"
245
+ .IP "perl" 4
246
+ .IX Item "perl"
247
+ .RE
248
+ .RS 4
249
+ .RE
250
+ .IP "Linking with C" 4
251
+ .IX Item "Linking with C"
252
+ .RS 4
253
+ .IP "perlxstut \- Tutorial for writing XSUBs" 4
254
+ .IX Item "perlxstut - Tutorial for writing XSUBs"
255
+ .IP "perlxs \- \s-1XS\s0 language reference manual" 4
256
+ .IX Item "perlxs - XS language reference manual"
257
+ .IP "perlcall \- Perl calling conventions from C" 4
258
+ .IX Item "perlcall - Perl calling conventions from C"
259
+ .IP "perlguts \- Introduction to the Perl \s-1API\s0" 4
260
+ .IX Item "perlguts - Introduction to the Perl API"
261
+ .IP "perlembed \- how to embed perl in your C program" 4
262
+ .IX Item "perlembed - how to embed perl in your C program"
263
+ .RE
264
+ .RS 4
265
+ .RE
266
+ .IP "Various" 4
267
+ .IX Item "Various"
268
+ .PD
269
+ <http://www.cpan.org/misc/olddoc/FMTEYEWTK.tgz>
270
+ (not a man-page but still useful, a collection of various essays on
271
+ Perl techniques)
272
+ .PP
273
+ A crude table of contents for the Perl manpage set is found in perltoc.
274
+ .SS "How can I use Perl interactively?"
275
+ .IX Subsection "How can I use Perl interactively?"
276
+ The typical approach uses the Perl debugger, described in the
277
+ \&\fBperldebug\fR\|(1) manpage, on an \*(L"empty\*(R" program, like this:
278
+ .PP
279
+ .Vb 1
280
+ \& perl \-de 42
281
+ .Ve
282
+ .PP
283
+ Now just type in any legal Perl code, and it will be immediately
284
+ evaluated. You can also examine the symbol table, get stack
285
+ backtraces, check variable values, set breakpoints, and other
286
+ operations typically found in symbolic debuggers.
287
+ .PP
288
+ You can also use Devel::REPL which is an interactive shell for Perl,
289
+ commonly known as a \s-1REPL\s0 \- Read, Evaluate, Print, Loop. It provides
290
+ various handy features.
291
+ .SS "How do I find which modules are installed on my system?"
292
+ .IX Subsection "How do I find which modules are installed on my system?"
293
+ From the command line, you can use the \f(CW\*(C`cpan\*(C'\fR command's \f(CW\*(C`\-l\*(C'\fR switch:
294
+ .PP
295
+ .Vb 1
296
+ \& $ cpan \-l
297
+ .Ve
298
+ .PP
299
+ You can also use \f(CW\*(C`cpan\*(C'\fR's \f(CW\*(C`\-a\*(C'\fR switch to create an autobundle file
300
+ that \f(CW\*(C`CPAN.pm\*(C'\fR understands and can use to re-install every module:
301
+ .PP
302
+ .Vb 1
303
+ \& $ cpan \-a
304
+ .Ve
305
+ .PP
306
+ Inside a Perl program, you can use the ExtUtils::Installed module to
307
+ show all installed distributions, although it can take awhile to do
308
+ its magic. The standard library which comes with Perl just shows up
309
+ as \*(L"Perl\*(R" (although you can get those with Module::CoreList).
310
+ .PP
311
+ .Vb 1
312
+ \& use ExtUtils::Installed;
313
+ \&
314
+ \& my $inst = ExtUtils::Installed\->new();
315
+ \& my @modules = $inst\->modules();
316
+ .Ve
317
+ .PP
318
+ If you want a list of all of the Perl module filenames, you
319
+ can use File::Find::Rule:
320
+ .PP
321
+ .Vb 1
322
+ \& use File::Find::Rule;
323
+ \&
324
+ \& my @files = File::Find::Rule\->
325
+ \& extras({follow => 1})\->
326
+ \& file()\->
327
+ \& name( \*(Aq*.pm\*(Aq )\->
328
+ \& in( @INC )
329
+ \& ;
330
+ .Ve
331
+ .PP
332
+ If you do not have that module, you can do the same thing
333
+ with File::Find which is part of the standard library:
334
+ .PP
335
+ .Vb 2
336
+ \& use File::Find;
337
+ \& my @files;
338
+ \&
339
+ \& find(
340
+ \& {
341
+ \& wanted => sub {
342
+ \& push @files, $File::Find::fullname
343
+ \& if \-f $File::Find::fullname && /\e.pm$/
344
+ \& },
345
+ \& follow => 1,
346
+ \& follow_skip => 2,
347
+ \& },
348
+ \& @INC
349
+ \& );
350
+ \&
351
+ \& print join "\en", @files;
352
+ .Ve
353
+ .PP
354
+ If you simply need to check quickly to see if a module is
355
+ available, you can check for its documentation. If you can
356
+ read the documentation the module is most likely installed.
357
+ If you cannot read the documentation, the module might not
358
+ have any (in rare cases):
359
+ .PP
360
+ .Vb 1
361
+ \& $ perldoc Module::Name
362
+ .Ve
363
+ .PP
364
+ You can also try to include the module in a one-liner to see if
365
+ perl finds it:
366
+ .PP
367
+ .Vb 1
368
+ \& $ perl \-MModule::Name \-e1
369
+ .Ve
370
+ .PP
371
+ (If you don't receive a \*(L"Can't locate ... in \f(CW@INC\fR\*(R" error message, then Perl
372
+ found the module name you asked for.)
373
+ .SS "How do I debug my Perl programs?"
374
+ .IX Subsection "How do I debug my Perl programs?"
375
+ (contributed by brian d foy)
376
+ .PP
377
+ Before you do anything else, you can help yourself by ensuring that
378
+ you let Perl tell you about problem areas in your code. By turning
379
+ on warnings and strictures, you can head off many problems before
380
+ they get too big. You can find out more about these in strict
381
+ and warnings.
382
+ .PP
383
+ .Vb 3
384
+ \& #!/usr/bin/perl
385
+ \& use strict;
386
+ \& use warnings;
387
+ .Ve
388
+ .PP
389
+ Beyond that, the simplest debugger is the \f(CW\*(C`print\*(C'\fR function. Use it
390
+ to look at values as you run your program:
391
+ .PP
392
+ .Vb 1
393
+ \& print STDERR "The value is [$value]\en";
394
+ .Ve
395
+ .PP
396
+ The Data::Dumper module can pretty-print Perl data structures:
397
+ .PP
398
+ .Vb 2
399
+ \& use Data::Dumper qw( Dumper );
400
+ \& print STDERR "The hash is " . Dumper( \e%hash ) . "\en";
401
+ .Ve
402
+ .PP
403
+ Perl comes with an interactive debugger, which you can start with the
404
+ \&\f(CW\*(C`\-d\*(C'\fR switch. It's fully explained in perldebug.
405
+ .PP
406
+ If you'd like a graphical user interface and you have Tk, you can use
407
+ \&\f(CW\*(C`ptkdb\*(C'\fR. It's on \s-1CPAN\s0 and available for free.
408
+ .PP
409
+ If you need something much more sophisticated and controllable, Leon
410
+ Brocard's Devel::ebug (which you can call with the \f(CW\*(C`\-D\*(C'\fR switch as \f(CW\*(C`\-Debug\*(C'\fR)
411
+ gives you the programmatic hooks into everything you need to write your
412
+ own (without too much pain and suffering).
413
+ .PP
414
+ You can also use a commercial debugger such as Affrus (Mac \s-1OS X\s0), Komodo
415
+ from Activestate (Windows and Mac \s-1OS X\s0), or \s-1EPIC\s0 (most platforms).
416
+ .SS "How do I profile my Perl programs?"
417
+ .IX Subsection "How do I profile my Perl programs?"
418
+ (contributed by brian d foy, updated Fri Jul 25 12:22:26 \s-1PDT 2008\s0)
419
+ .PP
420
+ The \f(CW\*(C`Devel\*(C'\fR namespace has several modules which you can use to
421
+ profile your Perl programs.
422
+ .PP
423
+ The Devel::NYTProf (New York Times Profiler) does both statement
424
+ and subroutine profiling. It's available from \s-1CPAN\s0 and you also invoke
425
+ it with the \f(CW\*(C`\-d\*(C'\fR switch:
426
+ .PP
427
+ .Vb 1
428
+ \& perl \-d:NYTProf some_perl.pl
429
+ .Ve
430
+ .PP
431
+ It creates a database of the profile information that you can turn into
432
+ reports. The \f(CW\*(C`nytprofhtml\*(C'\fR command turns the data into an \s-1HTML\s0 report
433
+ similar to the Devel::Cover report:
434
+ .PP
435
+ .Vb 1
436
+ \& nytprofhtml
437
+ .Ve
438
+ .PP
439
+ You might also be interested in using the Benchmark to
440
+ measure and compare code snippets.
441
+ .PP
442
+ You can read more about profiling in \fIProgramming Perl\fR, chapter 20,
443
+ or \fIMastering Perl\fR, chapter 5.
444
+ .PP
445
+ perldebguts documents creating a custom debugger if you need to
446
+ create a special sort of profiler. brian d foy describes the process
447
+ in \fIThe Perl Journal\fR, \*(L"Creating a Perl Debugger\*(R",
448
+ <http://www.ddj.com/184404522> , and \*(L"Profiling in Perl\*(R"
449
+ <http://www.ddj.com/184404580> .
450
+ .PP
451
+ Perl.com has two interesting articles on profiling: \*(L"Profiling Perl\*(R",
452
+ by Simon Cozens, <https://www.perl.com/pub/2004/06/25/profiling.html/>
453
+ and \*(L"Debugging and Profiling mod_perl Applications\*(R", by Frank Wiles,
454
+ <http://www.perl.com/pub/a/2006/02/09/debug_mod_perl.html> .
455
+ .PP
456
+ Randal L. Schwartz writes about profiling in \*(L"Speeding up Your Perl
457
+ Programs\*(R" for \fIUnix Review\fR,
458
+ <http://www.stonehenge.com/merlyn/UnixReview/col49.html> , and \*(L"Profiling
459
+ in Template Toolkit via Overriding\*(R" for \fILinux Magazine\fR,
460
+ <http://www.stonehenge.com/merlyn/LinuxMag/col75.html> .
461
+ .SS "How do I cross-reference my Perl programs?"
462
+ .IX Subsection "How do I cross-reference my Perl programs?"
463
+ The B::Xref module can be used to generate cross-reference reports
464
+ for Perl programs.
465
+ .PP
466
+ .Vb 1
467
+ \& perl \-MO=Xref[,OPTIONS] scriptname.plx
468
+ .Ve
469
+ .SS "Is there a pretty-printer (formatter) for Perl?"
470
+ .IX Subsection "Is there a pretty-printer (formatter) for Perl?"
471
+ Perl::Tidy comes with a perl script perltidy which indents and
472
+ reformats Perl scripts to make them easier to read by trying to follow
473
+ the rules of the perlstyle. If you write Perl, or spend much time reading
474
+ Perl, you will probably find it useful.
475
+ .PP
476
+ Of course, if you simply follow the guidelines in perlstyle,
477
+ you shouldn't need to reformat. The habit of formatting your code
478
+ as you write it will help prevent bugs. Your editor can and should
479
+ help you with this. The perl-mode or newer cperl-mode for emacs
480
+ can provide remarkable amounts of help with most (but not all)
481
+ code, and even less programmable editors can provide significant
482
+ assistance. Tom Christiansen and many other \s-1VI\s0 users swear by
483
+ the following settings in vi and its clones:
484
+ .PP
485
+ .Vb 2
486
+ \& set ai sw=4
487
+ \& map! ^O {^M}^[O^T
488
+ .Ve
489
+ .PP
490
+ Put that in your \fI.exrc\fR file (replacing the caret characters
491
+ with control characters) and away you go. In insert mode, ^T is
492
+ for indenting, ^D is for undenting, and ^O is for blockdenting\*(--as
493
+ it were. A more complete example, with comments, can be found at
494
+ <http://www.cpan.org/authors/id/T/TO/TOMC/scripts/toms.exrc.gz>
495
+ .SS "Is there an \s-1IDE\s0 or Windows Perl Editor?"
496
+ .IX Subsection "Is there an IDE or Windows Perl Editor?"
497
+ Perl programs are just plain text, so any editor will do.
498
+ .PP
499
+ If you're on Unix, you already have an IDE\*(--Unix itself. The Unix
500
+ philosophy is the philosophy of several small tools that each do one
501
+ thing and do it well. It's like a carpenter's toolbox.
502
+ .PP
503
+ If you want an \s-1IDE,\s0 check the following (in alphabetical order, not
504
+ order of preference):
505
+ .IP "Eclipse" 4
506
+ .IX Item "Eclipse"
507
+ <http://e\-p\-i\-c.sf.net/>
508
+ .Sp
509
+ The Eclipse Perl Integration Project integrates Perl
510
+ editing/debugging with Eclipse.
511
+ .IP "Enginsite" 4
512
+ .IX Item "Enginsite"
513
+ <http://www.enginsite.com/>
514
+ .Sp
515
+ Perl Editor by EngInSite is a complete integrated development
516
+ environment (\s-1IDE\s0) for creating, testing, and debugging Perl scripts;
517
+ the tool runs on Windows 9x/NT/2000/XP or later.
518
+ .IP "IntelliJ \s-1IDEA\s0" 4
519
+ .IX Item "IntelliJ IDEA"
520
+ <https://plugins.jetbrains.com/plugin/7796>
521
+ .Sp
522
+ Camelcade plugin provides Perl5 support in IntelliJ \s-1IDEA\s0 and other JetBrains IDEs.
523
+ .IP "Kephra" 4
524
+ .IX Item "Kephra"
525
+ <http://kephra.sf.net>
526
+ .Sp
527
+ \&\s-1GUI\s0 editor written in Perl using wxWidgets and Scintilla with lots of smaller features.
528
+ Aims for a \s-1UI\s0 based on Perl principles like \s-1TIMTOWTDI\s0 and \*(L"easy things should be easy,
529
+ hard things should be possible\*(R".
530
+ .IP "Komodo" 4
531
+ .IX Item "Komodo"
532
+ <http://www.ActiveState.com/Products/Komodo/>
533
+ .Sp
534
+ ActiveState's cross-platform (as of October 2004, that's Windows, Linux,
535
+ and Solaris), multi-language \s-1IDE\s0 has Perl support, including a regular expression
536
+ debugger and remote debugging.
537
+ .IP "Notepad++" 4
538
+ .IX Item "Notepad++"
539
+ <http://notepad\-plus.sourceforge.net/>
540
+ .IP "Open Perl \s-1IDE\s0" 4
541
+ .IX Item "Open Perl IDE"
542
+ <http://open\-perl\-ide.sourceforge.net/>
543
+ .Sp
544
+ Open Perl \s-1IDE\s0 is an integrated development environment for writing
545
+ and debugging Perl scripts with ActiveState's ActivePerl distribution
546
+ under Windows 95/98/NT/2000.
547
+ .IP "OptiPerl" 4
548
+ .IX Item "OptiPerl"
549
+ <http://www.optiperl.com/>
550
+ .Sp
551
+ OptiPerl is a Windows \s-1IDE\s0 with simulated \s-1CGI\s0 environment, including
552
+ debugger and syntax-highlighting editor.
553
+ .IP "Padre" 4
554
+ .IX Item "Padre"
555
+ <http://padre.perlide.org/>
556
+ .Sp
557
+ Padre is cross-platform \s-1IDE\s0 for Perl written in Perl using wxWidgets to provide
558
+ a native look and feel. It's open source under the Artistic License. It
559
+ is one of the newer Perl IDEs.
560
+ .IP "PerlBuilder" 4
561
+ .IX Item "PerlBuilder"
562
+ <http://www.solutionsoft.com/perl.htm>
563
+ .Sp
564
+ PerlBuilder is an integrated development environment for Windows that
565
+ supports Perl development.
566
+ .IP "visiPerl+" 4
567
+ .IX Item "visiPerl+"
568
+ <http://helpconsulting.net/visiperl/index.html>
569
+ .Sp
570
+ From Help Consulting, for Windows.
571
+ .IP "Visual Perl" 4
572
+ .IX Item "Visual Perl"
573
+ <http://www.activestate.com/Products/Visual_Perl/>
574
+ .Sp
575
+ Visual Perl is a Visual Studio.NET plug-in from ActiveState.
576
+ .IP "Zeus" 4
577
+ .IX Item "Zeus"
578
+ <http://www.zeusedit.com/lookmain.html>
579
+ .Sp
580
+ Zeus for Windows is another Win32 multi-language editor/IDE
581
+ that comes with support for Perl.
582
+ .PP
583
+ For editors: if you're on Unix you probably have vi or a vi clone
584
+ already, and possibly an emacs too, so you may not need to download
585
+ anything. In any emacs the cperl-mode (M\-x cperl-mode) gives you
586
+ perhaps the best available Perl editing mode in any editor.
587
+ .PP
588
+ If you are using Windows, you can use any editor that lets you work
589
+ with plain text, such as NotePad or WordPad. Word processors, such as
590
+ Microsoft Word or WordPerfect, typically do not work since they insert
591
+ all sorts of behind-the-scenes information, although some allow you to
592
+ save files as \*(L"Text Only\*(R". You can also download text editors designed
593
+ specifically for programming, such as Textpad (
594
+ <http://www.textpad.com/> ) and UltraEdit ( <http://www.ultraedit.com/> ),
595
+ among others.
596
+ .PP
597
+ If you are using MacOS, the same concerns apply. MacPerl (for Classic
598
+ environments) comes with a simple editor. Popular external editors are
599
+ BBEdit ( <http://www.barebones.com/products/bbedit/> ) or Alpha (
600
+ <http://www.his.com/~jguyer/Alpha/Alpha8.html> ). MacOS X users can use
601
+ Unix editors as well.
602
+ .IP "\s-1GNU\s0 Emacs" 4
603
+ .IX Item "GNU Emacs"
604
+ <http://www.gnu.org/software/emacs/windows/ntemacs.html>
605
+ .IP "MicroEMACS" 4
606
+ .IX Item "MicroEMACS"
607
+ <http://www.microemacs.de/>
608
+ .IP "XEmacs" 4
609
+ .IX Item "XEmacs"
610
+ <http://www.xemacs.org/Download/index.html>
611
+ .IP "Jed" 4
612
+ .IX Item "Jed"
613
+ <http://space.mit.edu/~davis/jed/>
614
+ .PP
615
+ or a vi clone such as
616
+ .IP "Vim" 4
617
+ .IX Item "Vim"
618
+ <http://www.vim.org/>
619
+ .IP "Vile" 4
620
+ .IX Item "Vile"
621
+ <http://invisible\-island.net/vile/vile.html>
622
+ .PP
623
+ The following are Win32 multilanguage editor/IDEs that support Perl:
624
+ .IP "MultiEdit" 4
625
+ .IX Item "MultiEdit"
626
+ <http://www.MultiEdit.com/>
627
+ .IP "SlickEdit" 4
628
+ .IX Item "SlickEdit"
629
+ <http://www.slickedit.com/>
630
+ .IP "ConTEXT" 4
631
+ .IX Item "ConTEXT"
632
+ <http://www.contexteditor.org/>
633
+ .PP
634
+ There is also a toyedit Text widget based editor written in Perl
635
+ that is distributed with the Tk module on \s-1CPAN.\s0 The ptkdb
636
+ ( <http://ptkdb.sourceforge.net/> ) is a Perl/Tk\-based debugger that
637
+ acts as a development environment of sorts. Perl Composer
638
+ ( <http://perlcomposer.sourceforge.net/> ) is an \s-1IDE\s0 for Perl/Tk
639
+ \&\s-1GUI\s0 creation.
640
+ .PP
641
+ In addition to an editor/IDE you might be interested in a more
642
+ powerful shell environment for Win32. Your options include
643
+ .IP "bash" 4
644
+ .IX Item "bash"
645
+ from the Cygwin package ( <http://cygwin.com/> )
646
+ .IP "zsh" 4
647
+ .IX Item "zsh"
648
+ <http://www.zsh.org/>
649
+ .PP
650
+ Cygwin is covered by the \s-1GNU\s0 General Public
651
+ License (but that shouldn't matter for Perl use). Cygwin
652
+ contains (in addition to the shell) a comprehensive set
653
+ of standard Unix toolkit utilities.
654
+ .IP "BBEdit and TextWrangler" 4
655
+ .IX Item "BBEdit and TextWrangler"
656
+ are text editors for \s-1OS X\s0 that have a Perl sensitivity mode
657
+ ( <http://www.barebones.com/> ).
658
+ .SS "Where can I get Perl macros for vi?"
659
+ .IX Subsection "Where can I get Perl macros for vi?"
660
+ For a complete version of Tom Christiansen's vi configuration file,
661
+ see <http://www.cpan.org/authors/id/T/TO/TOMC/scripts/toms.exrc.gz> ,
662
+ the standard benchmark file for vi emulators. The file runs best with nvi,
663
+ the current version of vi out of Berkeley, which incidentally can be built
664
+ with an embedded Perl interpreter\*(--see <http://www.cpan.org/src/misc/> .
665
+ .SS "Where can I get perl-mode or cperl-mode for emacs?"
666
+ .IX Xref "emacs"
667
+ .IX Subsection "Where can I get perl-mode or cperl-mode for emacs?"
668
+ Since Emacs version 19 patchlevel 22 or so, there have been both a
669
+ perl\-mode.el and support for the Perl debugger built in. These should
670
+ come with the standard Emacs 19 distribution.
671
+ .PP
672
+ Note that the perl-mode of emacs will have fits with \f(CW"main\*(Aqfoo"\fR
673
+ (single quote), and mess up the indentation and highlighting. You
674
+ are probably using \f(CW"main::foo"\fR in new Perl code anyway, so this
675
+ shouldn't be an issue.
676
+ .PP
677
+ For CPerlMode, see <http://www.emacswiki.org/cgi\-bin/wiki/CPerlMode>
678
+ .SS "How can I use curses with Perl?"
679
+ .IX Subsection "How can I use curses with Perl?"
680
+ The Curses module from \s-1CPAN\s0 provides a dynamically loadable object
681
+ module interface to a curses library. A small demo can be found at the
682
+ directory <http://www.cpan.org/authors/id/T/TO/TOMC/scripts/rep.gz> ;
683
+ this program repeats a command and updates the screen as needed, rendering
684
+ \&\fBrep ps axu\fR similar to \fBtop\fR.
685
+ .SS "How can I write a \s-1GUI\s0 (X, Tk, Gtk, etc.) in Perl?"
686
+ .IX Xref "GUI Tk Wx WxWidgets Gtk Gtk2 CamelBones Qt"
687
+ .IX Subsection "How can I write a GUI (X, Tk, Gtk, etc.) in Perl?"
688
+ (contributed by Ben Morrow)
689
+ .PP
690
+ There are a number of modules which let you write GUIs in Perl. Most
691
+ \&\s-1GUI\s0 toolkits have a perl interface: an incomplete list follows.
692
+ .IP "Tk" 4
693
+ .IX Item "Tk"
694
+ This works under Unix and Windows, and the current version doesn't
695
+ look half as bad under Windows as it used to. Some of the gui elements
696
+ still don't 'feel' quite right, though. The interface is very natural
697
+ and 'perlish', making it easy to use in small scripts that just need a
698
+ simple gui. It hasn't been updated in a while.
699
+ .IP "Wx" 4
700
+ .IX Item "Wx"
701
+ This is a Perl binding for the cross-platform wxWidgets toolkit
702
+ ( <http://www.wxwidgets.org> ). It works under Unix, Win32 and Mac \s-1OS X,\s0
703
+ using native widgets (Gtk under Unix). The interface follows the \*(C+
704
+ interface closely, but the documentation is a little sparse for someone
705
+ who doesn't know the library, mostly just referring you to the \*(C+
706
+ documentation.
707
+ .IP "Gtk and Gtk2" 4
708
+ .IX Item "Gtk and Gtk2"
709
+ These are Perl bindings for the Gtk toolkit ( <http://www.gtk.org> ). The
710
+ interface changed significantly between versions 1 and 2 so they have
711
+ separate Perl modules. It runs under Unix, Win32 and Mac \s-1OS X\s0 (currently
712
+ it requires an X server on Mac \s-1OS,\s0 but a 'native' port is underway), and
713
+ the widgets look the same on every platform: i.e., they don't match the
714
+ native widgets. As with Wx, the Perl bindings follow the C \s-1API\s0 closely,
715
+ and the documentation requires you to read the C documentation to
716
+ understand it.
717
+ .IP "Win32::GUI" 4
718
+ .IX Item "Win32::GUI"
719
+ This provides access to most of the Win32 \s-1GUI\s0 widgets from Perl.
720
+ Obviously, it only runs under Win32, and uses native widgets. The Perl
721
+ interface doesn't really follow the C interface: it's been made more
722
+ Perlish, and the documentation is pretty good. More advanced stuff may
723
+ require familiarity with the C Win32 APIs, or reference to \s-1MSDN.\s0
724
+ .IP "CamelBones" 4
725
+ .IX Item "CamelBones"
726
+ CamelBones ( <http://camelbones.sourceforge.net> ) is a Perl interface to
727
+ Mac \s-1OS X\s0's Cocoa \s-1GUI\s0 toolkit, and as such can be used to produce native
728
+ GUIs on Mac \s-1OS X.\s0 It's not on \s-1CPAN,\s0 as it requires frameworks that
729
+ \&\s-1CPAN\s0.pm doesn't know how to install, but installation is via the
730
+ standard \s-1OSX\s0 package installer. The Perl \s-1API\s0 is, again, very close to
731
+ the ObjC \s-1API\s0 it's wrapping, and the documentation just tells you how to
732
+ translate from one to the other.
733
+ .IP "Qt" 4
734
+ .IX Item "Qt"
735
+ There is a Perl interface to TrollTech's Qt toolkit, but it does not
736
+ appear to be maintained.
737
+ .IP "Athena" 4
738
+ .IX Item "Athena"
739
+ Sx is an interface to the Athena widget set which comes with X, but
740
+ again it appears not to be much used nowadays.
741
+ .SS "How can I make my Perl program run faster?"
742
+ .IX Subsection "How can I make my Perl program run faster?"
743
+ The best way to do this is to come up with a better algorithm. This
744
+ can often make a dramatic difference. Jon Bentley's book
745
+ \&\fIProgramming Pearls\fR (that's not a misspelling!) has some good tips
746
+ on optimization, too. Advice on benchmarking boils down to: benchmark
747
+ and profile to make sure you're optimizing the right part, look for
748
+ better algorithms instead of microtuning your code, and when all else
749
+ fails consider just buying faster hardware. You will probably want to
750
+ read the answer to the earlier question \*(L"How do I profile my Perl
751
+ programs?\*(R" if you haven't done so already.
752
+ .PP
753
+ A different approach is to autoload seldom-used Perl code. See the
754
+ AutoSplit and AutoLoader modules in the standard distribution for
755
+ that. Or you could locate the bottleneck and think about writing just
756
+ that part in C, the way we used to take bottlenecks in C code and
757
+ write them in assembler. Similar to rewriting in C, modules that have
758
+ critical sections can be written in C (for instance, the \s-1PDL\s0 module
759
+ from \s-1CPAN\s0).
760
+ .PP
761
+ If you're currently linking your perl executable to a shared
762
+ \&\fIlibc.so\fR, you can often gain a 10\-25% performance benefit by
763
+ rebuilding it to link with a static libc.a instead. This will make a
764
+ bigger perl executable, but your Perl programs (and programmers) may
765
+ thank you for it. See the \fI\s-1INSTALL\s0\fR file in the source distribution
766
+ for more information.
767
+ .PP
768
+ The undump program was an ancient attempt to speed up Perl program by
769
+ storing the already-compiled form to disk. This is no longer a viable
770
+ option, as it only worked on a few architectures, and wasn't a good
771
+ solution anyway.
772
+ .SS "How can I make my Perl program take less memory?"
773
+ .IX Subsection "How can I make my Perl program take less memory?"
774
+ When it comes to time-space tradeoffs, Perl nearly always prefers to
775
+ throw memory at a problem. Scalars in Perl use more memory than
776
+ strings in C, arrays take more than that, and hashes use even more. While
777
+ there's still a lot to be done, recent releases have been addressing
778
+ these issues. For example, as of 5.004, duplicate hash keys are
779
+ shared amongst all hashes using them, so require no reallocation.
780
+ .PP
781
+ In some cases, using \fBsubstr()\fR or \fBvec()\fR to simulate arrays can be
782
+ highly beneficial. For example, an array of a thousand booleans will
783
+ take at least 20,000 bytes of space, but it can be turned into one
784
+ 125\-byte bit vector\*(--a considerable memory savings. The standard
785
+ Tie::SubstrHash module can also help for certain types of data
786
+ structure. If you're working with specialist data structures
787
+ (matrices, for instance) modules that implement these in C may use
788
+ less memory than equivalent Perl modules.
789
+ .PP
790
+ Another thing to try is learning whether your Perl was compiled with
791
+ the system malloc or with Perl's builtin malloc. Whichever one it
792
+ is, try using the other one and see whether this makes a difference.
793
+ Information about malloc is in the \fI\s-1INSTALL\s0\fR file in the source
794
+ distribution. You can find out whether you are using perl's malloc by
795
+ typing \f(CW\*(C`perl \-V:usemymalloc\*(C'\fR.
796
+ .PP
797
+ Of course, the best way to save memory is to not do anything to waste
798
+ it in the first place. Good programming practices can go a long way
799
+ toward this:
800
+ .IP "Don't slurp!" 4
801
+ .IX Item "Don't slurp!"
802
+ Don't read an entire file into memory if you can process it line
803
+ by line. Or more concretely, use a loop like this:
804
+ .Sp
805
+ .Vb 6
806
+ \& #
807
+ \& # Good Idea
808
+ \& #
809
+ \& while (my $line = <$file_handle>) {
810
+ \& # ...
811
+ \& }
812
+ .Ve
813
+ .Sp
814
+ instead of this:
815
+ .Sp
816
+ .Vb 7
817
+ \& #
818
+ \& # Bad Idea
819
+ \& #
820
+ \& my @data = <$file_handle>;
821
+ \& foreach (@data) {
822
+ \& # ...
823
+ \& }
824
+ .Ve
825
+ .Sp
826
+ When the files you're processing are small, it doesn't much matter which
827
+ way you do it, but it makes a huge difference when they start getting
828
+ larger.
829
+ .IP "Use map and grep selectively" 4
830
+ .IX Item "Use map and grep selectively"
831
+ Remember that both map and grep expect a \s-1LIST\s0 argument, so doing this:
832
+ .Sp
833
+ .Vb 1
834
+ \& @wanted = grep {/pattern/} <$file_handle>;
835
+ .Ve
836
+ .Sp
837
+ will cause the entire file to be slurped. For large files, it's better
838
+ to loop:
839
+ .Sp
840
+ .Vb 3
841
+ \& while (<$file_handle>) {
842
+ \& push(@wanted, $_) if /pattern/;
843
+ \& }
844
+ .Ve
845
+ .IP "Avoid unnecessary quotes and stringification" 4
846
+ .IX Item "Avoid unnecessary quotes and stringification"
847
+ Don't quote large strings unless absolutely necessary:
848
+ .Sp
849
+ .Vb 1
850
+ \& my $copy = "$large_string";
851
+ .Ve
852
+ .Sp
853
+ makes 2 copies of \f(CW$large_string\fR (one for \f(CW$copy\fR and another for the
854
+ quotes), whereas
855
+ .Sp
856
+ .Vb 1
857
+ \& my $copy = $large_string;
858
+ .Ve
859
+ .Sp
860
+ only makes one copy.
861
+ .Sp
862
+ Ditto for stringifying large arrays:
863
+ .Sp
864
+ .Vb 4
865
+ \& {
866
+ \& local $, = "\en";
867
+ \& print @big_array;
868
+ \& }
869
+ .Ve
870
+ .Sp
871
+ is much more memory-efficient than either
872
+ .Sp
873
+ .Vb 1
874
+ \& print join "\en", @big_array;
875
+ .Ve
876
+ .Sp
877
+ or
878
+ .Sp
879
+ .Vb 4
880
+ \& {
881
+ \& local $" = "\en";
882
+ \& print "@big_array";
883
+ \& }
884
+ .Ve
885
+ .IP "Pass by reference" 4
886
+ .IX Item "Pass by reference"
887
+ Pass arrays and hashes by reference, not by value. For one thing, it's
888
+ the only way to pass multiple lists or hashes (or both) in a single
889
+ call/return. It also avoids creating a copy of all the contents. This
890
+ requires some judgement, however, because any changes will be propagated
891
+ back to the original data. If you really want to mangle (er, modify) a
892
+ copy, you'll have to sacrifice the memory needed to make one.
893
+ .IP "Tie large variables to disk" 4
894
+ .IX Item "Tie large variables to disk"
895
+ For \*(L"big\*(R" data stores (i.e. ones that exceed available memory) consider
896
+ using one of the \s-1DB\s0 modules to store it on disk instead of in \s-1RAM.\s0 This
897
+ will incur a penalty in access time, but that's probably better than
898
+ causing your hard disk to thrash due to massive swapping.
899
+ .SS "Is it safe to return a reference to local or lexical data?"
900
+ .IX Subsection "Is it safe to return a reference to local or lexical data?"
901
+ Yes. Perl's garbage collection system takes care of this so
902
+ everything works out right.
903
+ .PP
904
+ .Vb 4
905
+ \& sub makeone {
906
+ \& my @a = ( 1 .. 10 );
907
+ \& return \e@a;
908
+ \& }
909
+ \&
910
+ \& for ( 1 .. 10 ) {
911
+ \& push @many, makeone();
912
+ \& }
913
+ \&
914
+ \& print $many[4][5], "\en";
915
+ \&
916
+ \& print "@many\en";
917
+ .Ve
918
+ .SS "How can I free an array or hash so my program shrinks?"
919
+ .IX Subsection "How can I free an array or hash so my program shrinks?"
920
+ (contributed by Michael Carman)
921
+ .PP
922
+ You usually can't. Memory allocated to lexicals (i.e. \fBmy()\fR variables)
923
+ cannot be reclaimed or reused even if they go out of scope. It is
924
+ reserved in case the variables come back into scope. Memory allocated
925
+ to global variables can be reused (within your program) by using
926
+ \&\fBundef()\fR and/or \fBdelete()\fR.
927
+ .PP
928
+ On most operating systems, memory allocated to a program can never be
929
+ returned to the system. That's why long-running programs sometimes re\-
930
+ exec themselves. Some operating systems (notably, systems that use
931
+ \&\fBmmap\fR\|(2) for allocating large chunks of memory) can reclaim memory that
932
+ is no longer used, but on such systems, perl must be configured and
933
+ compiled to use the \s-1OS\s0's malloc, not perl's.
934
+ .PP
935
+ In general, memory allocation and de-allocation isn't something you can
936
+ or should be worrying about much in Perl.
937
+ .PP
938
+ See also \*(L"How can I make my Perl program take less memory?\*(R"
939
+ .SS "How can I make my \s-1CGI\s0 script more efficient?"
940
+ .IX Subsection "How can I make my CGI script more efficient?"
941
+ Beyond the normal measures described to make general Perl programs
942
+ faster or smaller, a \s-1CGI\s0 program has additional issues. It may be run
943
+ several times per second. Given that each time it runs it will need
944
+ to be re-compiled and will often allocate a megabyte or more of system
945
+ memory, this can be a killer. Compiling into C \fBisn't going to help
946
+ you\fR because the process start-up overhead is where the bottleneck is.
947
+ .PP
948
+ There are three popular ways to avoid this overhead. One solution
949
+ involves running the Apache \s-1HTTP\s0 server (available from
950
+ <http://www.apache.org/> ) with either of the mod_perl or mod_fastcgi
951
+ plugin modules.
952
+ .PP
953
+ With mod_perl and the Apache::Registry module (distributed with
954
+ mod_perl), httpd will run with an embedded Perl interpreter which
955
+ pre-compiles your script and then executes it within the same address
956
+ space without forking. The Apache extension also gives Perl access to
957
+ the internal server \s-1API,\s0 so modules written in Perl can do just about
958
+ anything a module written in C can. For more on mod_perl, see
959
+ <http://perl.apache.org/>
960
+ .PP
961
+ With the \s-1FCGI\s0 module (from \s-1CPAN\s0) and the mod_fastcgi
962
+ module (available from <http://www.fastcgi.com/> ) each of your Perl
963
+ programs becomes a permanent \s-1CGI\s0 daemon process.
964
+ .PP
965
+ Finally, Plack is a Perl module and toolkit that contains \s-1PSGI\s0 middleware,
966
+ helpers and adapters to web servers, allowing you to easily deploy scripts which
967
+ can continue running, and provides flexibility with regards to which web server
968
+ you use. It can allow existing \s-1CGI\s0 scripts to enjoy this flexibility and
969
+ performance with minimal changes, or can be used along with modern Perl web
970
+ frameworks to make writing and deploying web services with Perl a breeze.
971
+ .PP
972
+ These solutions can have far-reaching effects on your system and on the way you
973
+ write your \s-1CGI\s0 programs, so investigate them with care.
974
+ .PP
975
+ See also
976
+ <http://www.cpan.org/modules/by\-category/15_World_Wide_Web_HTML_HTTP_CGI/> .
977
+ .SS "How can I hide the source for my Perl program?"
978
+ .IX Subsection "How can I hide the source for my Perl program?"
979
+ Delete it. :\-) Seriously, there are a number of (mostly
980
+ unsatisfactory) solutions with varying levels of \*(L"security\*(R".
981
+ .PP
982
+ First of all, however, you \fIcan't\fR take away read permission, because
983
+ the source code has to be readable in order to be compiled and
984
+ interpreted. (That doesn't mean that a \s-1CGI\s0 script's source is
985
+ readable by people on the web, though\*(--only by people with access to
986
+ the filesystem.) So you have to leave the permissions at the socially
987
+ friendly 0755 level.
988
+ .PP
989
+ Some people regard this as a security problem. If your program does
990
+ insecure things and relies on people not knowing how to exploit those
991
+ insecurities, it is not secure. It is often possible for someone to
992
+ determine the insecure things and exploit them without viewing the
993
+ source. Security through obscurity, the name for hiding your bugs
994
+ instead of fixing them, is little security indeed.
995
+ .PP
996
+ You can try using encryption via source filters (Starting from Perl
997
+ 5.8 the Filter::Simple and Filter::Util::Call modules are included in
998
+ the standard distribution), but any decent programmer will be able to
999
+ decrypt it. You can try using the byte code compiler and interpreter
1000
+ described later in perlfaq3, but the curious might still be able to
1001
+ de-compile it. You can try using the native-code compiler described
1002
+ later, but crackers might be able to disassemble it. These pose
1003
+ varying degrees of difficulty to people wanting to get at your code,
1004
+ but none can definitively conceal it (true of every language, not just
1005
+ Perl).
1006
+ .PP
1007
+ It is very easy to recover the source of Perl programs. You simply
1008
+ feed the program to the perl interpreter and use the modules in
1009
+ the B:: hierarchy. The B::Deparse module should be able to
1010
+ defeat most attempts to hide source. Again, this is not
1011
+ unique to Perl.
1012
+ .PP
1013
+ If you're concerned about people profiting from your code, then the
1014
+ bottom line is that nothing but a restrictive license will give you
1015
+ legal security. License your software and pepper it with threatening
1016
+ statements like \*(L"This is unpublished proprietary software of \s-1XYZ\s0 Corp.
1017
+ Your access to it does not give you permission to use it blah blah
1018
+ blah.\*(R" We are not lawyers, of course, so you should see a lawyer if
1019
+ you want to be sure your license's wording will stand up in court.
1020
+ .SS "How can I compile my Perl program into byte code or C?"
1021
+ .IX Subsection "How can I compile my Perl program into byte code or C?"
1022
+ (contributed by brian d foy)
1023
+ .PP
1024
+ In general, you can't do this. There are some things that may work
1025
+ for your situation though. People usually ask this question
1026
+ because they want to distribute their works without giving away
1027
+ the source code, and most solutions trade disk space for convenience.
1028
+ You probably won't see much of a speed increase either, since most
1029
+ solutions simply bundle a Perl interpreter in the final product
1030
+ (but see \*(L"How can I make my Perl program run faster?\*(R").
1031
+ .PP
1032
+ The Perl Archive Toolkit is Perl's analog to Java's \s-1JAR.\s0 It's freely
1033
+ available and on \s-1CPAN\s0 ( <https://metacpan.org/pod/PAR> ).
1034
+ .PP
1035
+ There are also some commercial products that may work for you, although
1036
+ you have to buy a license for them.
1037
+ .PP
1038
+ The Perl Dev Kit ( <http://www.activestate.com/Products/Perl_Dev_Kit/> )
1039
+ from ActiveState can \*(L"Turn your Perl programs into ready-to-run
1040
+ executables for HP-UX, Linux, Solaris and Windows.\*(R"
1041
+ .PP
1042
+ Perl2Exe ( <http://www.indigostar.com/perl2exe.htm> ) is a command line
1043
+ program for converting perl scripts to executable files. It targets both
1044
+ Windows and Unix platforms.
1045
+ .ie n .SS "How can I get ""#!perl"" to work on [\s-1MS\-DOS,NT,...\s0]?"
1046
+ .el .SS "How can I get \f(CW#!perl\fP to work on [\s-1MS\-DOS,NT,...\s0]?"
1047
+ .IX Subsection "How can I get #!perl to work on [MS-DOS,NT,...]?"
1048
+ For \s-1OS/2\s0 just use
1049
+ .PP
1050
+ .Vb 1
1051
+ \& extproc perl \-S \-your_switches
1052
+ .Ve
1053
+ .PP
1054
+ as the first line in \f(CW\*(C`*.cmd\*(C'\fR file (\f(CW\*(C`\-S\*(C'\fR due to a bug in cmd.exe's
1055
+ \&\*(L"extproc\*(R" handling). For \s-1DOS\s0 one should first invent a corresponding
1056
+ batch file and codify it in \f(CW\*(C`ALTERNATE_SHEBANG\*(C'\fR (see the
1057
+ \&\fIdosish.h\fR file in the source distribution for more information).
1058
+ .PP
1059
+ The Win95/NT installation, when using the ActiveState port of Perl,
1060
+ will modify the Registry to associate the \f(CW\*(C`.pl\*(C'\fR extension with the
1061
+ perl interpreter. If you install another port, perhaps even building
1062
+ your own Win95/NT Perl from the standard sources by using a Windows port
1063
+ of gcc (e.g., with cygwin or mingw32), then you'll have to modify
1064
+ the Registry yourself. In addition to associating \f(CW\*(C`.pl\*(C'\fR with the
1065
+ interpreter, \s-1NT\s0 people can use: \f(CW\*(C`SET PATHEXT=%PATHEXT%;.PL\*(C'\fR to let them
1066
+ run the program \f(CW\*(C`install\-linux.pl\*(C'\fR merely by typing \f(CW\*(C`install\-linux\*(C'\fR.
1067
+ .PP
1068
+ Under \*(L"Classic\*(R" MacOS, a perl program will have the appropriate Creator and
1069
+ Type, so that double-clicking them will invoke the MacPerl application.
1070
+ Under Mac \s-1OS X,\s0 clickable apps can be made from any \f(CW\*(C`#!\*(C'\fR script using Wil
1071
+ Sanchez' DropScript utility: <http://www.wsanchez.net/software/> .
1072
+ .PP
1073
+ \&\fI\s-1IMPORTANT\s0!\fR: Whatever you do, \s-1PLEASE\s0 don't get frustrated, and just
1074
+ throw the perl interpreter into your cgi-bin directory, in order to
1075
+ get your programs working for a web server. This is an \s-1EXTREMELY\s0 big
1076
+ security risk. Take the time to figure out how to do it correctly.
1077
+ .SS "Can I write useful Perl programs on the command line?"
1078
+ .IX Subsection "Can I write useful Perl programs on the command line?"
1079
+ Yes. Read perlrun for more information. Some examples follow.
1080
+ (These assume standard Unix shell quoting rules.)
1081
+ .PP
1082
+ .Vb 2
1083
+ \& # sum first and last fields
1084
+ \& perl \-lane \*(Aqprint $F[0] + $F[\-1]\*(Aq *
1085
+ \&
1086
+ \& # identify text files
1087
+ \& perl \-le \*(Aqfor(@ARGV) {print if \-f && \-T _}\*(Aq *
1088
+ \&
1089
+ \& # remove (most) comments from C program
1090
+ \& perl \-0777 \-pe \*(Aqs{/\e*.*?\e*/}{}gs\*(Aq foo.c
1091
+ \&
1092
+ \& # make file a month younger than today, defeating reaper daemons
1093
+ \& perl \-e \*(Aq$X=24*60*60; utime(time(),time() + 30 * $X,@ARGV)\*(Aq *
1094
+ \&
1095
+ \& # find first unused uid
1096
+ \& perl \-le \*(Aq$i++ while getpwuid($i); print $i\*(Aq
1097
+ \&
1098
+ \& # display reasonable manpath
1099
+ \& echo $PATH | perl \-nl \-072 \-e \*(Aq
1100
+ \& s![^/+]*$!man!&&\-d&&!$s{$_}++&&push@m,$_;END{print"@m"}\*(Aq
1101
+ .Ve
1102
+ .PP
1103
+ \&\s-1OK,\s0 the last one was actually an Obfuscated Perl Contest entry. :\-)
1104
+ .SS "Why don't Perl one-liners work on my DOS/Mac/VMS system?"
1105
+ .IX Subsection "Why don't Perl one-liners work on my DOS/Mac/VMS system?"
1106
+ The problem is usually that the command interpreters on those systems
1107
+ have rather different ideas about quoting than the Unix shells under
1108
+ which the one-liners were created. On some systems, you may have to
1109
+ change single-quotes to double ones, which you must \fI\s-1NOT\s0\fR do on Unix
1110
+ or Plan9 systems. You might also have to change a single % to a %%.
1111
+ .PP
1112
+ For example:
1113
+ .PP
1114
+ .Vb 2
1115
+ \& # Unix (including Mac OS X)
1116
+ \& perl \-e \*(Aqprint "Hello world\en"\*(Aq
1117
+ \&
1118
+ \& # DOS, etc.
1119
+ \& perl \-e "print \e"Hello world\en\e""
1120
+ \&
1121
+ \& # Mac Classic
1122
+ \& print "Hello world\en"
1123
+ \& (then Run "Myscript" or Shift\-Command\-R)
1124
+ \&
1125
+ \& # MPW
1126
+ \& perl \-e \*(Aqprint "Hello world\en"\*(Aq
1127
+ \&
1128
+ \& # VMS
1129
+ \& perl \-e "print ""Hello world\en"""
1130
+ .Ve
1131
+ .PP
1132
+ The problem is that none of these examples are reliable: they depend on the
1133
+ command interpreter. Under Unix, the first two often work. Under \s-1DOS,\s0
1134
+ it's entirely possible that neither works. If 4DOS was the command shell,
1135
+ you'd probably have better luck like this:
1136
+ .PP
1137
+ .Vb 1
1138
+ \& perl \-e "print <Ctrl\-x>"Hello world\en<Ctrl\-x>""
1139
+ .Ve
1140
+ .PP
1141
+ Under the Mac, it depends which environment you are using. The MacPerl
1142
+ shell, or \s-1MPW,\s0 is much like Unix shells in its support for several
1143
+ quoting variants, except that it makes free use of the Mac's non-ASCII
1144
+ characters as control characters.
1145
+ .PP
1146
+ Using \fBqq()\fR, q(), and \fBqx()\fR, instead of \*(L"double quotes\*(R", 'single
1147
+ quotes', and `backticks`, may make one-liners easier to write.
1148
+ .PP
1149
+ There is no general solution to all of this. It is a mess.
1150
+ .PP
1151
+ [Some of this answer was contributed by Kenneth Albanowski.]
1152
+ .SS "Where can I learn about \s-1CGI\s0 or Web programming in Perl?"
1153
+ .IX Subsection "Where can I learn about CGI or Web programming in Perl?"
1154
+ For modules, get the \s-1CGI\s0 or \s-1LWP\s0 modules from \s-1CPAN.\s0 For textbooks,
1155
+ see the two especially dedicated to web stuff in the question on
1156
+ books. For problems and questions related to the web, like \*(L"Why
1157
+ do I get 500 Errors\*(R" or \*(L"Why doesn't it run from the browser right
1158
+ when it runs fine on the command line\*(R", see the troubleshooting
1159
+ guides and references in perlfaq9 or in the \s-1CGI\s0 MetaFAQ:
1160
+ .PP
1161
+ .Vb 1
1162
+ \& L<http://www.perl.org/CGI_MetaFAQ.html>
1163
+ .Ve
1164
+ .PP
1165
+ Looking into <https://plackperl.org> and modern Perl web frameworks is highly recommended,
1166
+ though; web programming in Perl has evolved a long way from the old days of
1167
+ simple \s-1CGI\s0 scripts.
1168
+ .SS "Where can I learn about object-oriented Perl programming?"
1169
+ .IX Subsection "Where can I learn about object-oriented Perl programming?"
1170
+ A good place to start is perlootut, and you can use perlobj for
1171
+ reference.
1172
+ .PP
1173
+ A good book on \s-1OO\s0 on Perl is the \*(L"Object-Oriented Perl\*(R"
1174
+ by Damian Conway from Manning Publications, or \*(L"Intermediate Perl\*(R"
1175
+ by Randal Schwartz, brian d foy, and Tom Phoenix from O'Reilly Media.
1176
+ .SS "Where can I learn about linking C with Perl?"
1177
+ .IX Subsection "Where can I learn about linking C with Perl?"
1178
+ If you want to call C from Perl, start with perlxstut,
1179
+ moving on to perlxs, xsubpp, and perlguts. If you want to
1180
+ call Perl from C, then read perlembed, perlcall, and
1181
+ perlguts. Don't forget that you can learn a lot from looking at
1182
+ how the authors of existing extension modules wrote their code and
1183
+ solved their problems.
1184
+ .PP
1185
+ You might not need all the power of \s-1XS.\s0 The Inline::C module lets
1186
+ you put C code directly in your Perl source. It handles all the
1187
+ magic to make it work. You still have to learn at least some of
1188
+ the perl \s-1API\s0 but you won't have to deal with the complexity of the
1189
+ \&\s-1XS\s0 support files.
1190
+ .SS "I've read perlembed, perlguts, etc., but I can't embed perl in my C program; what am I doing wrong?"
1191
+ .IX Subsection "I've read perlembed, perlguts, etc., but I can't embed perl in my C program; what am I doing wrong?"
1192
+ Download the ExtUtils::Embed kit from \s-1CPAN\s0 and run `make test'. If
1193
+ the tests pass, read the pods again and again and again. If they
1194
+ fail, submit a bug report to <https://github.com/Perl/perl5/issues>
1195
+ with the output of
1196
+ \&\f(CW\*(C`make test TEST_VERBOSE=1\*(C'\fR along with \f(CW\*(C`perl \-V\*(C'\fR.
1197
+ .SS "When I tried to run my script, I got this message. What does it mean?"
1198
+ .IX Subsection "When I tried to run my script, I got this message. What does it mean?"
1199
+ A complete list of Perl's error messages and warnings with explanatory
1200
+ text can be found in perldiag. You can also use the splain program
1201
+ (distributed with Perl) to explain the error messages:
1202
+ .PP
1203
+ .Vb 2
1204
+ \& perl program 2>diag.out
1205
+ \& splain [\-v] [\-p] diag.out
1206
+ .Ve
1207
+ .PP
1208
+ or change your program to explain the messages for you:
1209
+ .PP
1210
+ .Vb 1
1211
+ \& use diagnostics;
1212
+ .Ve
1213
+ .PP
1214
+ or
1215
+ .PP
1216
+ .Vb 1
1217
+ \& use diagnostics \-verbose;
1218
+ .Ve
1219
+ .SS "What's MakeMaker?"
1220
+ .IX Subsection "What's MakeMaker?"
1221
+ (contributed by brian d foy)
1222
+ .PP
1223
+ The ExtUtils::MakeMaker module, better known simply as \*(L"MakeMaker\*(R",
1224
+ turns a Perl script, typically called \f(CW\*(C`Makefile.PL\*(C'\fR, into a Makefile.
1225
+ The Unix tool \f(CW\*(C`make\*(C'\fR uses this file to manage dependencies and actions
1226
+ to process and install a Perl distribution.
1227
+ .SH "AUTHOR AND COPYRIGHT"
1228
+ .IX Header "AUTHOR AND COPYRIGHT"
1229
+ Copyright (c) 1997\-2010 Tom Christiansen, Nathan Torkington, and
1230
+ other authors as noted. All rights reserved.
1231
+ .PP
1232
+ This documentation is free; you can redistribute it and/or modify it
1233
+ under the same terms as Perl itself.
1234
+ .PP
1235
+ Irrespective of its distribution, all code examples here are in the public
1236
+ domain. You are permitted and encouraged to use this code and any
1237
+ derivatives thereof in your own programs for fun or for profit as you
1238
+ see fit. A simple comment in the code giving credit to the \s-1FAQ\s0 would
1239
+ be courteous but is not required.
data/miniconda3/man/man1/perlfaq8.1 ADDED
@@ -0,0 +1,1659 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "PERLFAQ8 1"
136
+ .TH PERLFAQ8 1 "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
+ perlfaq8 \- System Interaction
143
+ .SH "VERSION"
144
+ .IX Header "VERSION"
145
+ version 5.20200523
146
+ .SH "DESCRIPTION"
147
+ .IX Header "DESCRIPTION"
148
+ This section of the Perl \s-1FAQ\s0 covers questions involving operating
149
+ system interaction. Topics include interprocess communication (\s-1IPC\s0),
150
+ control over the user-interface (keyboard, screen and pointing
151
+ devices), and most anything else not related to data manipulation.
152
+ .PP
153
+ Read the FAQs and documentation specific to the port of perl to your
154
+ operating system (eg, perlvms, perlplan9, ...). These should
155
+ contain more detailed information on the vagaries of your perl.
156
+ .SS "How do I find out which operating system I'm running under?"
157
+ .IX Subsection "How do I find out which operating system I'm running under?"
158
+ The \f(CW$^O\fR variable (\f(CW$OSNAME\fR if you use \f(CW\*(C`English\*(C'\fR) contains an
159
+ indication of the name of the operating system (not its release
160
+ number) that your perl binary was built for.
161
+ .SS "How come \fBexec()\fP doesn't return?"
162
+ .IX Xref "exec system fork open pipe"
163
+ .IX Subsection "How come exec() doesn't return?"
164
+ (contributed by brian d foy)
165
+ .PP
166
+ The \f(CW\*(C`exec\*(C'\fR function's job is to turn your process into another
167
+ command and never to return. If that's not what you want to do, don't
168
+ use \f(CW\*(C`exec\*(C'\fR. :)
169
+ .PP
170
+ If you want to run an external command and still keep your Perl process
171
+ going, look at a piped \f(CW\*(C`open\*(C'\fR, \f(CW\*(C`fork\*(C'\fR, or \f(CW\*(C`system\*(C'\fR.
172
+ .SS "How do I do fancy stuff with the keyboard/screen/mouse?"
173
+ .IX Subsection "How do I do fancy stuff with the keyboard/screen/mouse?"
174
+ How you access/control keyboards, screens, and pointing devices
175
+ (\*(L"mice\*(R") is system-dependent. Try the following modules:
176
+ .IP "Keyboard" 4
177
+ .IX Item "Keyboard"
178
+ .Vb 5
179
+ \& Term::Cap Standard perl distribution
180
+ \& Term::ReadKey CPAN
181
+ \& Term::ReadLine::Gnu CPAN
182
+ \& Term::ReadLine::Perl CPAN
183
+ \& Term::Screen CPAN
184
+ .Ve
185
+ .IP "Screen" 4
186
+ .IX Item "Screen"
187
+ .Vb 3
188
+ \& Term::Cap Standard perl distribution
189
+ \& Curses CPAN
190
+ \& Term::ANSIColor CPAN
191
+ .Ve
192
+ .IP "Mouse" 4
193
+ .IX Item "Mouse"
194
+ .Vb 4
195
+ \& Tk CPAN
196
+ \& Wx CPAN
197
+ \& Gtk2 CPAN
198
+ \& Qt4 kdebindings4 package
199
+ .Ve
200
+ .PP
201
+ Some of these specific cases are shown as examples in other answers
202
+ in this section of the perlfaq.
203
+ .SS "How do I print something out in color?"
204
+ .IX Subsection "How do I print something out in color?"
205
+ In general, you don't, because you don't know whether
206
+ the recipient has a color-aware display device. If you
207
+ know that they have an \s-1ANSI\s0 terminal that understands
208
+ color, you can use the Term::ANSIColor module from \s-1CPAN:\s0
209
+ .PP
210
+ .Vb 3
211
+ \& use Term::ANSIColor;
212
+ \& print color("red"), "Stop!\en", color("reset");
213
+ \& print color("green"), "Go!\en", color("reset");
214
+ .Ve
215
+ .PP
216
+ Or like this:
217
+ .PP
218
+ .Vb 3
219
+ \& use Term::ANSIColor qw(:constants);
220
+ \& print RED, "Stop!\en", RESET;
221
+ \& print GREEN, "Go!\en", RESET;
222
+ .Ve
223
+ .SS "How do I read just one key without waiting for a return key?"
224
+ .IX Subsection "How do I read just one key without waiting for a return key?"
225
+ Controlling input buffering is a remarkably system-dependent matter.
226
+ On many systems, you can just use the \fBstty\fR command as shown in
227
+ \&\*(L"getc\*(R" in perlfunc, but as you see, that's already getting you into
228
+ portability snags.
229
+ .PP
230
+ .Vb 6
231
+ \& open(TTY, "+</dev/tty") or die "no tty: $!";
232
+ \& system "stty cbreak </dev/tty >/dev/tty 2>&1";
233
+ \& $key = getc(TTY); # perhaps this works
234
+ \& # OR ELSE
235
+ \& sysread(TTY, $key, 1); # probably this does
236
+ \& system "stty \-cbreak </dev/tty >/dev/tty 2>&1";
237
+ .Ve
238
+ .PP
239
+ The Term::ReadKey module from \s-1CPAN\s0 offers an easy-to-use interface that
240
+ should be more efficient than shelling out to \fBstty\fR for each key.
241
+ It even includes limited support for Windows.
242
+ .PP
243
+ .Vb 4
244
+ \& use Term::ReadKey;
245
+ \& ReadMode(\*(Aqcbreak\*(Aq);
246
+ \& $key = ReadKey(0);
247
+ \& ReadMode(\*(Aqnormal\*(Aq);
248
+ .Ve
249
+ .PP
250
+ However, using the code requires that you have a working C compiler
251
+ and can use it to build and install a \s-1CPAN\s0 module. Here's a solution
252
+ using the standard \s-1POSIX\s0 module, which is already on your system
253
+ (assuming your system supports \s-1POSIX\s0).
254
+ .PP
255
+ .Vb 2
256
+ \& use HotKey;
257
+ \& $key = readkey();
258
+ .Ve
259
+ .PP
260
+ And here's the \f(CW\*(C`HotKey\*(C'\fR module, which hides the somewhat mystifying calls
261
+ to manipulate the \s-1POSIX\s0 termios structures.
262
+ .PP
263
+ .Vb 2
264
+ \& # HotKey.pm
265
+ \& package HotKey;
266
+ \&
267
+ \& use strict;
268
+ \& use warnings;
269
+ \&
270
+ \& use parent \*(AqExporter\*(Aq;
271
+ \& our @EXPORT = qw(cbreak cooked readkey);
272
+ \&
273
+ \& use POSIX qw(:termios_h);
274
+ \& my ($term, $oterm, $echo, $noecho, $fd_stdin);
275
+ \&
276
+ \& $fd_stdin = fileno(STDIN);
277
+ \& $term = POSIX::Termios\->new();
278
+ \& $term\->getattr($fd_stdin);
279
+ \& $oterm = $term\->getlflag();
280
+ \&
281
+ \& $echo = ECHO | ECHOK | ICANON;
282
+ \& $noecho = $oterm & ~$echo;
283
+ \&
284
+ \& sub cbreak {
285
+ \& $term\->setlflag($noecho); # ok, so i don\*(Aqt want echo either
286
+ \& $term\->setcc(VTIME, 1);
287
+ \& $term\->setattr($fd_stdin, TCSANOW);
288
+ \& }
289
+ \&
290
+ \& sub cooked {
291
+ \& $term\->setlflag($oterm);
292
+ \& $term\->setcc(VTIME, 0);
293
+ \& $term\->setattr($fd_stdin, TCSANOW);
294
+ \& }
295
+ \&
296
+ \& sub readkey {
297
+ \& my $key = \*(Aq\*(Aq;
298
+ \& cbreak();
299
+ \& sysread(STDIN, $key, 1);
300
+ \& cooked();
301
+ \& return $key;
302
+ \& }
303
+ \&
304
+ \& END { cooked() }
305
+ \&
306
+ \& 1;
307
+ .Ve
308
+ .SS "How do I check whether input is ready on the keyboard?"
309
+ .IX Subsection "How do I check whether input is ready on the keyboard?"
310
+ The easiest way to do this is to read a key in nonblocking mode with the
311
+ Term::ReadKey module from \s-1CPAN,\s0 passing it an argument of \-1 to indicate
312
+ not to block:
313
+ .PP
314
+ .Vb 1
315
+ \& use Term::ReadKey;
316
+ \&
317
+ \& ReadMode(\*(Aqcbreak\*(Aq);
318
+ \&
319
+ \& if (defined (my $char = ReadKey(\-1)) ) {
320
+ \& # input was waiting and it was $char
321
+ \& } else {
322
+ \& # no input was waiting
323
+ \& }
324
+ \&
325
+ \& ReadMode(\*(Aqnormal\*(Aq); # restore normal tty settings
326
+ .Ve
327
+ .SS "How do I clear the screen?"
328
+ .IX Subsection "How do I clear the screen?"
329
+ (contributed by brian d foy)
330
+ .PP
331
+ To clear the screen, you just have to print the special sequence
332
+ that tells the terminal to clear the screen. Once you have that
333
+ sequence, output it when you want to clear the screen.
334
+ .PP
335
+ You can use the Term::ANSIScreen module to get the special
336
+ sequence. Import the \f(CW\*(C`cls\*(C'\fR function (or the \f(CW\*(C`:screen\*(C'\fR tag):
337
+ .PP
338
+ .Vb 2
339
+ \& use Term::ANSIScreen qw(cls);
340
+ \& my $clear_screen = cls();
341
+ \&
342
+ \& print $clear_screen;
343
+ .Ve
344
+ .PP
345
+ The Term::Cap module can also get the special sequence if you want
346
+ to deal with the low-level details of terminal control. The \f(CW\*(C`Tputs\*(C'\fR
347
+ method returns the string for the given capability:
348
+ .PP
349
+ .Vb 1
350
+ \& use Term::Cap;
351
+ \&
352
+ \& my $terminal = Term::Cap\->Tgetent( { OSPEED => 9600 } );
353
+ \& my $clear_screen = $terminal\->Tputs(\*(Aqcl\*(Aq);
354
+ \&
355
+ \& print $clear_screen;
356
+ .Ve
357
+ .PP
358
+ On Windows, you can use the Win32::Console module. After creating
359
+ an object for the output filehandle you want to affect, call the
360
+ \&\f(CW\*(C`Cls\*(C'\fR method:
361
+ .PP
362
+ .Vb 1
363
+ \& Win32::Console;
364
+ \&
365
+ \& my $OUT = Win32::Console\->new(STD_OUTPUT_HANDLE);
366
+ \& my $clear_string = $OUT\->Cls;
367
+ \&
368
+ \& print $clear_screen;
369
+ .Ve
370
+ .PP
371
+ If you have a command-line program that does the job, you can call
372
+ it in backticks to capture whatever it outputs so you can use it
373
+ later:
374
+ .PP
375
+ .Vb 1
376
+ \& my $clear_string = \`clear\`;
377
+ \&
378
+ \& print $clear_string;
379
+ .Ve
380
+ .SS "How do I get the screen size?"
381
+ .IX Subsection "How do I get the screen size?"
382
+ If you have Term::ReadKey module installed from \s-1CPAN,\s0
383
+ you can use it to fetch the width and height in characters
384
+ and in pixels:
385
+ .PP
386
+ .Vb 2
387
+ \& use Term::ReadKey;
388
+ \& my ($wchar, $hchar, $wpixels, $hpixels) = GetTerminalSize();
389
+ .Ve
390
+ .PP
391
+ This is more portable than the raw \f(CW\*(C`ioctl\*(C'\fR, but not as
392
+ illustrative:
393
+ .PP
394
+ .Vb 10
395
+ \& require \*(Aq./sys/ioctl.ph\*(Aq;
396
+ \& die "no TIOCGWINSZ " unless defined &TIOCGWINSZ;
397
+ \& open(my $tty_fh, "+</dev/tty") or die "No tty: $!";
398
+ \& unless (ioctl($tty_fh, &TIOCGWINSZ, $winsize=\*(Aq\*(Aq)) {
399
+ \& die sprintf "$0: ioctl TIOCGWINSZ (%08x: $!)\en", &TIOCGWINSZ;
400
+ \& }
401
+ \& my ($row, $col, $xpixel, $ypixel) = unpack(\*(AqS4\*(Aq, $winsize);
402
+ \& print "(row,col) = ($row,$col)";
403
+ \& print " (xpixel,ypixel) = ($xpixel,$ypixel)" if $xpixel || $ypixel;
404
+ \& print "\en";
405
+ .Ve
406
+ .SS "How do I ask the user for a password?"
407
+ .IX Subsection "How do I ask the user for a password?"
408
+ (This question has nothing to do with the web. See a different
409
+ \&\s-1FAQ\s0 for that.)
410
+ .PP
411
+ There's an example of this in \*(L"crypt\*(R" in perlfunc. First, you put the
412
+ terminal into \*(L"no echo\*(R" mode, then just read the password normally.
413
+ You may do this with an old-style \f(CW\*(C`ioctl()\*(C'\fR function, \s-1POSIX\s0 terminal
414
+ control (see \s-1POSIX\s0 or its documentation the Camel Book), or a call
415
+ to the \fBstty\fR program, with varying degrees of portability.
416
+ .PP
417
+ You can also do this for most systems using the Term::ReadKey module
418
+ from \s-1CPAN,\s0 which is easier to use and in theory more portable.
419
+ .PP
420
+ .Vb 1
421
+ \& use Term::ReadKey;
422
+ \&
423
+ \& ReadMode(\*(Aqnoecho\*(Aq);
424
+ \& my $password = ReadLine(0);
425
+ .Ve
426
+ .SS "How do I read and write the serial port?"
427
+ .IX Subsection "How do I read and write the serial port?"
428
+ This depends on which operating system your program is running on. In
429
+ the case of Unix, the serial ports will be accessible through files in
430
+ \&\f(CW\*(C`/dev\*(C'\fR; on other systems, device names will doubtless differ.
431
+ Several problem areas common to all device interaction are the
432
+ following:
433
+ .IP "lockfiles" 4
434
+ .IX Item "lockfiles"
435
+ Your system may use lockfiles to control multiple access. Make sure
436
+ you follow the correct protocol. Unpredictable behavior can result
437
+ from multiple processes reading from one device.
438
+ .IP "open mode" 4
439
+ .IX Item "open mode"
440
+ If you expect to use both read and write operations on the device,
441
+ you'll have to open it for update (see \*(L"open\*(R" in perlfunc for
442
+ details). You may wish to open it without running the risk of
443
+ blocking by using \f(CW\*(C`sysopen()\*(C'\fR and \f(CW\*(C`O_RDWR|O_NDELAY|O_NOCTTY\*(C'\fR from the
444
+ Fcntl module (part of the standard perl distribution). See
445
+ \&\*(L"sysopen\*(R" in perlfunc for more on this approach.
446
+ .IP "end of line" 4
447
+ .IX Item "end of line"
448
+ Some devices will be expecting a \*(L"\er\*(R" at the end of each line rather
449
+ than a \*(L"\en\*(R". In some ports of perl, \*(L"\er\*(R" and \*(L"\en\*(R" are different from
450
+ their usual (Unix) \s-1ASCII\s0 values of \*(L"\e015\*(R" and \*(L"\e012\*(R". You may have to
451
+ give the numeric values you want directly, using octal (\*(L"\e015\*(R"), hex
452
+ (\*(L"0x0D\*(R"), or as a control-character specification (\*(L"\ecM\*(R").
453
+ .Sp
454
+ .Vb 2
455
+ \& print DEV "atv1\e012"; # wrong, for some devices
456
+ \& print DEV "atv1\e015"; # right, for some devices
457
+ .Ve
458
+ .Sp
459
+ Even though with normal text files a \*(L"\en\*(R" will do the trick, there is
460
+ still no unified scheme for terminating a line that is portable
461
+ between Unix, DOS/Win, and Macintosh, except to terminate \fI\s-1ALL\s0\fR line
462
+ ends with \*(L"\e015\e012\*(R", and strip what you don't need from the output.
463
+ This applies especially to socket I/O and autoflushing, discussed
464
+ next.
465
+ .IP "flushing output" 4
466
+ .IX Item "flushing output"
467
+ If you expect characters to get to your device when you \f(CW\*(C`print()\*(C'\fR them,
468
+ you'll want to autoflush that filehandle. You can use \f(CW\*(C`select()\*(C'\fR
469
+ and the \f(CW$|\fR variable to control autoflushing (see \*(L"$|\*(R" in perlvar
470
+ and \*(L"select\*(R" in perlfunc, or perlfaq5, \*(L"How do I flush/unbuffer an
471
+ output filehandle? Why must I do this?\*(R"):
472
+ .Sp
473
+ .Vb 3
474
+ \& my $old_handle = select($dev_fh);
475
+ \& $| = 1;
476
+ \& select($old_handle);
477
+ .Ve
478
+ .Sp
479
+ You'll also see code that does this without a temporary variable, as in
480
+ .Sp
481
+ .Vb 1
482
+ \& select((select($deb_handle), $| = 1)[0]);
483
+ .Ve
484
+ .Sp
485
+ Or if you don't mind pulling in a few thousand lines
486
+ of code just because you're afraid of a little \f(CW$|\fR variable:
487
+ .Sp
488
+ .Vb 2
489
+ \& use IO::Handle;
490
+ \& $dev_fh\->autoflush(1);
491
+ .Ve
492
+ .Sp
493
+ As mentioned in the previous item, this still doesn't work when using
494
+ socket I/O between Unix and Macintosh. You'll need to hard code your
495
+ line terminators, in that case.
496
+ .IP "non-blocking input" 4
497
+ .IX Item "non-blocking input"
498
+ If you are doing a blocking \f(CW\*(C`read()\*(C'\fR or \f(CW\*(C`sysread()\*(C'\fR, you'll have to
499
+ arrange for an alarm handler to provide a timeout (see
500
+ \&\*(L"alarm\*(R" in perlfunc). If you have a non-blocking open, you'll likely
501
+ have a non-blocking read, which means you may have to use a 4\-arg
502
+ \&\f(CW\*(C`select()\*(C'\fR to determine whether I/O is ready on that device (see
503
+ \&\*(L"select\*(R" in perlfunc.
504
+ .PP
505
+ While trying to read from his caller-id box, the notorious Jamie
506
+ Zawinski \f(CW\*(C`<jwz@netscape.com>\*(C'\fR, after much gnashing of teeth and
507
+ fighting with \f(CW\*(C`sysread\*(C'\fR, \f(CW\*(C`sysopen\*(C'\fR, \s-1POSIX\s0's \f(CW\*(C`tcgetattr\*(C'\fR business,
508
+ and various other functions that go bump in the night, finally came up
509
+ with this:
510
+ .PP
511
+ .Vb 10
512
+ \& sub open_modem {
513
+ \& use IPC::Open2;
514
+ \& my $stty = \`/bin/stty \-g\`;
515
+ \& open2( \e*MODEM_IN, \e*MODEM_OUT, "cu \-l$modem_device \-s2400 2>&1");
516
+ \& # starting cu hoses /dev/tty\*(Aqs stty settings, even when it has
517
+ \& # been opened on a pipe...
518
+ \& system("/bin/stty $stty");
519
+ \& $_ = <MODEM_IN>;
520
+ \& chomp;
521
+ \& if ( !m/^Connected/ ) {
522
+ \& print STDERR "$0: cu printed \`$_\*(Aq instead of \`Connected\*(Aq\en";
523
+ \& }
524
+ \& }
525
+ .Ve
526
+ .SS "How do I decode encrypted password files?"
527
+ .IX Subsection "How do I decode encrypted password files?"
528
+ You spend lots and lots of money on dedicated hardware, but this is
529
+ bound to get you talked about.
530
+ .PP
531
+ Seriously, you can't if they are Unix password files\*(--the Unix
532
+ password system employs one-way encryption. It's more like hashing
533
+ than encryption. The best you can do is check whether something else
534
+ hashes to the same string. You can't turn a hash back into the
535
+ original string. Programs like Crack can forcibly (and intelligently)
536
+ try to guess passwords, but don't (can't) guarantee quick success.
537
+ .PP
538
+ If you're worried about users selecting bad passwords, you should
539
+ proactively check when they try to change their password (by modifying
540
+ \&\fBpasswd\fR\|(1), for example).
541
+ .SS "How do I start a process in the background?"
542
+ .IX Subsection "How do I start a process in the background?"
543
+ (contributed by brian d foy)
544
+ .PP
545
+ There's not a single way to run code in the background so you don't
546
+ have to wait for it to finish before your program moves on to other
547
+ tasks. Process management depends on your particular operating system,
548
+ and many of the techniques are covered in perlipc.
549
+ .PP
550
+ Several \s-1CPAN\s0 modules may be able to help, including IPC::Open2 or
551
+ IPC::Open3, IPC::Run, Parallel::Jobs,
552
+ Parallel::ForkManager, \s-1POE\s0, Proc::Background, and
553
+ Win32::Process. There are many other modules you might use, so
554
+ check those namespaces for other options too.
555
+ .PP
556
+ If you are on a Unix-like system, you might be able to get away with a
557
+ system call where you put an \f(CW\*(C`&\*(C'\fR on the end of the command:
558
+ .PP
559
+ .Vb 1
560
+ \& system("cmd &")
561
+ .Ve
562
+ .PP
563
+ You can also try using \f(CW\*(C`fork\*(C'\fR, as described in perlfunc (although
564
+ this is the same thing that many of the modules will do for you).
565
+ .IP "\s-1STDIN, STDOUT,\s0 and \s-1STDERR\s0 are shared" 4
566
+ .IX Item "STDIN, STDOUT, and STDERR are shared"
567
+ Both the main process and the backgrounded one (the \*(L"child\*(R" process)
568
+ share the same \s-1STDIN, STDOUT\s0 and \s-1STDERR\s0 filehandles. If both try to
569
+ access them at once, strange things can happen. You may want to close
570
+ or reopen these for the child. You can get around this with
571
+ \&\f(CW\*(C`open\*(C'\fRing a pipe (see \*(L"open\*(R" in perlfunc) but on some systems this
572
+ means that the child process cannot outlive the parent.
573
+ .IP "Signals" 4
574
+ .IX Item "Signals"
575
+ You'll have to catch the \s-1SIGCHLD\s0 signal, and possibly \s-1SIGPIPE\s0 too.
576
+ \&\s-1SIGCHLD\s0 is sent when the backgrounded process finishes. \s-1SIGPIPE\s0 is
577
+ sent when you write to a filehandle whose child process has closed (an
578
+ untrapped \s-1SIGPIPE\s0 can cause your program to silently die). This is
579
+ not an issue with \f(CW\*(C`system("cmd&")\*(C'\fR.
580
+ .IP "Zombies" 4
581
+ .IX Item "Zombies"
582
+ You have to be prepared to \*(L"reap\*(R" the child process when it finishes.
583
+ .Sp
584
+ .Vb 1
585
+ \& $SIG{CHLD} = sub { wait };
586
+ \&
587
+ \& $SIG{CHLD} = \*(AqIGNORE\*(Aq;
588
+ .Ve
589
+ .Sp
590
+ You can also use a double fork. You immediately \f(CW\*(C`wait()\*(C'\fR for your
591
+ first child, and the init daemon will \f(CW\*(C`wait()\*(C'\fR for your grandchild once
592
+ it exits.
593
+ .Sp
594
+ .Vb 8
595
+ \& unless ($pid = fork) {
596
+ \& unless (fork) {
597
+ \& exec "what you really wanna do";
598
+ \& die "exec failed!";
599
+ \& }
600
+ \& exit 0;
601
+ \& }
602
+ \& waitpid($pid, 0);
603
+ .Ve
604
+ .Sp
605
+ See \*(L"Signals\*(R" in perlipc for other examples of code to do this.
606
+ Zombies are not an issue with \f(CW\*(C`system("prog &")\*(C'\fR.
607
+ .SS "How do I trap control characters/signals?"
608
+ .IX Subsection "How do I trap control characters/signals?"
609
+ You don't actually \*(L"trap\*(R" a control character. Instead, that character
610
+ generates a signal which is sent to your terminal's currently
611
+ foregrounded process group, which you then trap in your process.
612
+ Signals are documented in \*(L"Signals\*(R" in perlipc and the
613
+ section on \*(L"Signals\*(R" in the Camel.
614
+ .PP
615
+ You can set the values of the \f(CW%SIG\fR hash to be the functions you want
616
+ to handle the signal. After perl catches the signal, it looks in \f(CW%SIG\fR
617
+ for a key with the same name as the signal, then calls the subroutine
618
+ value for that key.
619
+ .PP
620
+ .Vb 1
621
+ \& # as an anonymous subroutine
622
+ \&
623
+ \& $SIG{INT} = sub { syswrite(STDERR, "ouch\en", 5 ) };
624
+ \&
625
+ \& # or a reference to a function
626
+ \&
627
+ \& $SIG{INT} = \e&ouch;
628
+ \&
629
+ \& # or the name of the function as a string
630
+ \&
631
+ \& $SIG{INT} = "ouch";
632
+ .Ve
633
+ .PP
634
+ Perl versions before 5.8 had in its C source code signal handlers which
635
+ would catch the signal and possibly run a Perl function that you had set
636
+ in \f(CW%SIG\fR. This violated the rules of signal handling at that level
637
+ causing perl to dump core. Since version 5.8.0, perl looks at \f(CW%SIG\fR
638
+ \&\fBafter\fR the signal has been caught, rather than while it is being caught.
639
+ Previous versions of this answer were incorrect.
640
+ .SS "How do I modify the shadow password file on a Unix system?"
641
+ .IX Subsection "How do I modify the shadow password file on a Unix system?"
642
+ If perl was installed correctly and your shadow library was written
643
+ properly, the \f(CW\*(C`getpw*()\*(C'\fR functions described in perlfunc should in
644
+ theory provide (read-only) access to entries in the shadow password
645
+ file. To change the file, make a new shadow password file (the format
646
+ varies from system to system\*(--see \fBpasswd\fR\|(1) for specifics) and use
647
+ \&\f(CWpwd_mkdb(8)\fR to install it (see \fBpwd_mkdb\fR\|(8) for more details).
648
+ .SS "How do I set the time and date?"
649
+ .IX Subsection "How do I set the time and date?"
650
+ Assuming you're running under sufficient permissions, you should be
651
+ able to set the system-wide date and time by running the \f(CWdate(1)\fR
652
+ program. (There is no way to set the time and date on a per-process
653
+ basis.) This mechanism will work for Unix, MS-DOS, Windows, and \s-1NT\s0;
654
+ the \s-1VMS\s0 equivalent is \f(CW\*(C`set time\*(C'\fR.
655
+ .PP
656
+ However, if all you want to do is change your time zone, you can
657
+ probably get away with setting an environment variable:
658
+ .PP
659
+ .Vb 3
660
+ \& $ENV{TZ} = "MST7MDT"; # Unixish
661
+ \& $ENV{\*(AqSYS$TIMEZONE_DIFFERENTIAL\*(Aq}="\-5" # vms
662
+ \& system(\*(Aqtrn\*(Aq, \*(Aqcomp.lang.perl.misc\*(Aq);
663
+ .Ve
664
+ .SS "How can I \fBsleep()\fP or \fBalarm()\fP for under a second?"
665
+ .IX Xref "Time::HiRes BSD::Itimer sleep select"
666
+ .IX Subsection "How can I sleep() or alarm() for under a second?"
667
+ If you want finer granularity than the 1 second that the \f(CW\*(C`sleep()\*(C'\fR
668
+ function provides, the easiest way is to use the \f(CW\*(C`select()\*(C'\fR function as
669
+ documented in \*(L"select\*(R" in perlfunc. Try the Time::HiRes and
670
+ the BSD::Itimer modules (available from \s-1CPAN,\s0 and starting from
671
+ Perl 5.8 Time::HiRes is part of the standard distribution).
672
+ .SS "How can I measure time under a second?"
673
+ .IX Xref "Time::HiRes BSD::Itimer sleep select"
674
+ .IX Subsection "How can I measure time under a second?"
675
+ (contributed by brian d foy)
676
+ .PP
677
+ The Time::HiRes module (part of the standard distribution as of
678
+ Perl 5.8) measures time with the \f(CW\*(C`gettimeofday()\*(C'\fR system call, which
679
+ returns the time in microseconds since the epoch. If you can't install
680
+ Time::HiRes for older Perls and you are on a Unixish system, you
681
+ may be able to call \f(CWgettimeofday(2)\fR directly. See
682
+ \&\*(L"syscall\*(R" in perlfunc.
683
+ .SS "How can I do an \fBatexit()\fP or \fBsetjmp()\fP/\fBlongjmp()\fP? (Exception handling)"
684
+ .IX Subsection "How can I do an atexit() or setjmp()/longjmp()? (Exception handling)"
685
+ You can use the \f(CW\*(C`END\*(C'\fR block to simulate \f(CW\*(C`atexit()\*(C'\fR. Each package's
686
+ \&\f(CW\*(C`END\*(C'\fR block is called when the program or thread ends. See the perlmod
687
+ manpage for more details about \f(CW\*(C`END\*(C'\fR blocks.
688
+ .PP
689
+ For example, you can use this to make sure your filter program managed
690
+ to finish its output without filling up the disk:
691
+ .PP
692
+ .Vb 3
693
+ \& END {
694
+ \& close(STDOUT) || die "stdout close failed: $!";
695
+ \& }
696
+ .Ve
697
+ .PP
698
+ The \f(CW\*(C`END\*(C'\fR block isn't called when untrapped signals kill the program,
699
+ though, so if you use \f(CW\*(C`END\*(C'\fR blocks you should also use
700
+ .PP
701
+ .Vb 1
702
+ \& use sigtrap qw(die normal\-signals);
703
+ .Ve
704
+ .PP
705
+ Perl's exception-handling mechanism is its \f(CW\*(C`eval()\*(C'\fR operator. You
706
+ can use \f(CW\*(C`eval()\*(C'\fR as \f(CW\*(C`setjmp\*(C'\fR and \f(CW\*(C`die()\*(C'\fR as \f(CW\*(C`longjmp\*(C'\fR. For
707
+ details of this, see the section on signals, especially the time-out
708
+ handler for a blocking \f(CW\*(C`flock()\*(C'\fR in \*(L"Signals\*(R" in perlipc or the
709
+ section on \*(L"Signals\*(R" in \fIProgramming Perl\fR.
710
+ .PP
711
+ If exception handling is all you're interested in, use one of the
712
+ many \s-1CPAN\s0 modules that handle exceptions, such as Try::Tiny.
713
+ .PP
714
+ If you want the \f(CW\*(C`atexit()\*(C'\fR syntax (and an \f(CW\*(C`rmexit()\*(C'\fR as well), try the
715
+ \&\f(CW\*(C`AtExit\*(C'\fR module available from \s-1CPAN.\s0
716
+ .ie n .SS "Why doesn't my sockets program work under System V (Solaris)? What does the error message ""Protocol not supported"" mean?"
717
+ .el .SS "Why doesn't my sockets program work under System V (Solaris)? What does the error message ``Protocol not supported'' mean?"
718
+ .IX Subsection "Why doesn't my sockets program work under System V (Solaris)? What does the error message Protocol not supported mean?"
719
+ Some Sys-V based systems, notably Solaris 2.X, redefined some of the
720
+ standard socket constants. Since these were constant across all
721
+ architectures, they were often hardwired into perl code. The proper
722
+ way to deal with this is to \*(L"use Socket\*(R" to get the correct values.
723
+ .PP
724
+ Note that even though SunOS and Solaris are binary compatible, these
725
+ values are different. Go figure.
726
+ .SS "How can I call my system's unique C functions from Perl?"
727
+ .IX Subsection "How can I call my system's unique C functions from Perl?"
728
+ In most cases, you write an external module to do it\*(--see the answer
729
+ to \*(L"Where can I learn about linking C with Perl? [h2xs, xsubpp]\*(R".
730
+ However, if the function is a system call, and your system supports
731
+ \&\f(CW\*(C`syscall()\*(C'\fR, you can use the \f(CW\*(C`syscall\*(C'\fR function (documented in
732
+ perlfunc).
733
+ .PP
734
+ Remember to check the modules that came with your distribution, and
735
+ \&\s-1CPAN\s0 as well\*(--someone may already have written a module to do it. On
736
+ Windows, try Win32::API. On Macs, try Mac::Carbon. If no module
737
+ has an interface to the C function, you can inline a bit of C in your
738
+ Perl source with Inline::C.
739
+ .SS "Where do I get the include files to do \fBioctl()\fP or \fBsyscall()\fP?"
740
+ .IX Subsection "Where do I get the include files to do ioctl() or syscall()?"
741
+ Historically, these would be generated by the h2ph tool, part of the
742
+ standard perl distribution. This program converts \f(CWcpp(1)\fR directives
743
+ in C header files to files containing subroutine definitions, like
744
+ \&\f(CW\*(C`SYS_getitimer()\*(C'\fR, which you can use as arguments to your functions.
745
+ It doesn't work perfectly, but it usually gets most of the job done.
746
+ Simple files like \fIerrno.h\fR, \fIsyscall.h\fR, and \fIsocket.h\fR were fine,
747
+ but the hard ones like \fIioctl.h\fR nearly always need to be hand-edited.
748
+ Here's how to install the *.ph files:
749
+ .PP
750
+ .Vb 3
751
+ \& 1. Become the super\-user
752
+ \& 2. cd /usr/include
753
+ \& 3. h2ph *.h */*.h
754
+ .Ve
755
+ .PP
756
+ If your system supports dynamic loading, for reasons of portability and
757
+ sanity you probably ought to use h2xs (also part of the standard perl
758
+ distribution). This tool converts C header files to Perl extensions.
759
+ See perlxstut for how to get started with h2xs.
760
+ .PP
761
+ If your system doesn't support dynamic loading, you still probably
762
+ ought to use h2xs. See perlxstut and ExtUtils::MakeMaker for
763
+ more information (in brief, just use \fBmake perl\fR instead of a plain
764
+ \&\fBmake\fR to rebuild perl with a new static extension).
765
+ .SS "Why do setuid perl scripts complain about kernel problems?"
766
+ .IX Subsection "Why do setuid perl scripts complain about kernel problems?"
767
+ Some operating systems have bugs in the kernel that make setuid
768
+ scripts inherently insecure. Perl gives you a number of options
769
+ (described in perlsec) to work around such systems.
770
+ .SS "How can I open a pipe both to and from a command?"
771
+ .IX Subsection "How can I open a pipe both to and from a command?"
772
+ The IPC::Open2 module (part of the standard perl distribution) is
773
+ an easy-to-use approach that internally uses \f(CW\*(C`pipe()\*(C'\fR, \f(CW\*(C`fork()\*(C'\fR, and
774
+ \&\f(CW\*(C`exec()\*(C'\fR to do the job. Make sure you read the deadlock warnings in
775
+ its documentation, though (see IPC::Open2). See
776
+ \&\*(L"Bidirectional Communication with Another Process\*(R" in perlipc and
777
+ \&\*(L"Bidirectional Communication with Yourself\*(R" in perlipc
778
+ .PP
779
+ You may also use the IPC::Open3 module (part of the standard perl
780
+ distribution), but be warned that it has a different order of
781
+ arguments from IPC::Open2 (see IPC::Open3).
782
+ .SS "Why can't I get the output of a command with \fBsystem()\fP?"
783
+ .IX Subsection "Why can't I get the output of a command with system()?"
784
+ You're confusing the purpose of \f(CW\*(C`system()\*(C'\fR and backticks (``). \f(CW\*(C`system()\*(C'\fR
785
+ runs a command and returns exit status information (as a 16 bit value:
786
+ the low 7 bits are the signal the process died from, if any, and
787
+ the high 8 bits are the actual exit value). Backticks (``) run a
788
+ command and return what it sent to \s-1STDOUT.\s0
789
+ .PP
790
+ .Vb 2
791
+ \& my $exit_status = system("mail\-users");
792
+ \& my $output_string = \`ls\`;
793
+ .Ve
794
+ .SS "How can I capture \s-1STDERR\s0 from an external command?"
795
+ .IX Subsection "How can I capture STDERR from an external command?"
796
+ There are three basic ways of running external commands:
797
+ .PP
798
+ .Vb 3
799
+ \& system $cmd; # using system()
800
+ \& my $output = \`$cmd\`; # using backticks (\`\`)
801
+ \& open (my $pipe_fh, "$cmd |"); # using open()
802
+ .Ve
803
+ .PP
804
+ With \f(CW\*(C`system()\*(C'\fR, both \s-1STDOUT\s0 and \s-1STDERR\s0 will go the same place as the
805
+ script's \s-1STDOUT\s0 and \s-1STDERR,\s0 unless the \f(CW\*(C`system()\*(C'\fR command redirects them.
806
+ Backticks and \f(CW\*(C`open()\*(C'\fR read \fBonly\fR the \s-1STDOUT\s0 of your command.
807
+ .PP
808
+ You can also use the \f(CW\*(C`open3()\*(C'\fR function from IPC::Open3. Benjamin
809
+ Goldberg provides some sample code:
810
+ .PP
811
+ To capture a program's \s-1STDOUT,\s0 but discard its \s-1STDERR:\s0
812
+ .PP
813
+ .Vb 7
814
+ \& use IPC::Open3;
815
+ \& use File::Spec;
816
+ \& my $in = \*(Aq\*(Aq;
817
+ \& open(NULL, ">", File::Spec\->devnull);
818
+ \& my $pid = open3($in, \e*PH, ">&NULL", "cmd");
819
+ \& while( <PH> ) { }
820
+ \& waitpid($pid, 0);
821
+ .Ve
822
+ .PP
823
+ To capture a program's \s-1STDERR,\s0 but discard its \s-1STDOUT:\s0
824
+ .PP
825
+ .Vb 7
826
+ \& use IPC::Open3;
827
+ \& use File::Spec;
828
+ \& my $in = \*(Aq\*(Aq;
829
+ \& open(NULL, ">", File::Spec\->devnull);
830
+ \& my $pid = open3($in, ">&NULL", \e*PH, "cmd");
831
+ \& while( <PH> ) { }
832
+ \& waitpid($pid, 0);
833
+ .Ve
834
+ .PP
835
+ To capture a program's \s-1STDERR,\s0 and let its \s-1STDOUT\s0 go to our own \s-1STDERR:\s0
836
+ .PP
837
+ .Vb 5
838
+ \& use IPC::Open3;
839
+ \& my $in = \*(Aq\*(Aq;
840
+ \& my $pid = open3($in, ">&STDERR", \e*PH, "cmd");
841
+ \& while( <PH> ) { }
842
+ \& waitpid($pid, 0);
843
+ .Ve
844
+ .PP
845
+ To read both a command's \s-1STDOUT\s0 and its \s-1STDERR\s0 separately, you can
846
+ redirect them to temp files, let the command run, then read the temp
847
+ files:
848
+ .PP
849
+ .Vb 10
850
+ \& use IPC::Open3;
851
+ \& use IO::File;
852
+ \& my $in = \*(Aq\*(Aq;
853
+ \& local *CATCHOUT = IO::File\->new_tmpfile;
854
+ \& local *CATCHERR = IO::File\->new_tmpfile;
855
+ \& my $pid = open3($in, ">&CATCHOUT", ">&CATCHERR", "cmd");
856
+ \& waitpid($pid, 0);
857
+ \& seek $_, 0, 0 for \e*CATCHOUT, \e*CATCHERR;
858
+ \& while( <CATCHOUT> ) {}
859
+ \& while( <CATCHERR> ) {}
860
+ .Ve
861
+ .PP
862
+ But there's no real need for \fBboth\fR to be tempfiles... the following
863
+ should work just as well, without deadlocking:
864
+ .PP
865
+ .Vb 9
866
+ \& use IPC::Open3;
867
+ \& my $in = \*(Aq\*(Aq;
868
+ \& use IO::File;
869
+ \& local *CATCHERR = IO::File\->new_tmpfile;
870
+ \& my $pid = open3($in, \e*CATCHOUT, ">&CATCHERR", "cmd");
871
+ \& while( <CATCHOUT> ) {}
872
+ \& waitpid($pid, 0);
873
+ \& seek CATCHERR, 0, 0;
874
+ \& while( <CATCHERR> ) {}
875
+ .Ve
876
+ .PP
877
+ And it'll be faster, too, since we can begin processing the program's
878
+ stdout immediately, rather than waiting for the program to finish.
879
+ .PP
880
+ With any of these, you can change file descriptors before the call:
881
+ .PP
882
+ .Vb 2
883
+ \& open(STDOUT, ">logfile");
884
+ \& system("ls");
885
+ .Ve
886
+ .PP
887
+ or you can use Bourne shell file-descriptor redirection:
888
+ .PP
889
+ .Vb 2
890
+ \& $output = \`$cmd 2>some_file\`;
891
+ \& open (PIPE, "cmd 2>some_file |");
892
+ .Ve
893
+ .PP
894
+ You can also use file-descriptor redirection to make \s-1STDERR\s0 a
895
+ duplicate of \s-1STDOUT:\s0
896
+ .PP
897
+ .Vb 2
898
+ \& $output = \`$cmd 2>&1\`;
899
+ \& open (PIPE, "cmd 2>&1 |");
900
+ .Ve
901
+ .PP
902
+ Note that you \fIcannot\fR simply open \s-1STDERR\s0 to be a dup of \s-1STDOUT\s0
903
+ in your Perl program and avoid calling the shell to do the redirection.
904
+ This doesn't work:
905
+ .PP
906
+ .Vb 2
907
+ \& open(STDERR, ">&STDOUT");
908
+ \& $alloutput = \`cmd args\`; # stderr still escapes
909
+ .Ve
910
+ .PP
911
+ This fails because the \f(CW\*(C`open()\*(C'\fR makes \s-1STDERR\s0 go to where \s-1STDOUT\s0 was
912
+ going at the time of the \f(CW\*(C`open()\*(C'\fR. The backticks then make \s-1STDOUT\s0 go to
913
+ a string, but don't change \s-1STDERR\s0 (which still goes to the old
914
+ \&\s-1STDOUT\s0).
915
+ .PP
916
+ Note that you \fImust\fR use Bourne shell (\f(CWsh(1)\fR) redirection syntax in
917
+ backticks, not \f(CWcsh(1)\fR! Details on why Perl's \f(CW\*(C`system()\*(C'\fR and backtick
918
+ and pipe opens all use the Bourne shell are in the
919
+ \&\fIversus/csh.whynot\fR article in the \*(L"Far More Than You Ever Wanted To
920
+ Know\*(R" collection in <http://www.cpan.org/misc/olddoc/FMTEYEWTK.tgz> . To
921
+ capture a command's \s-1STDERR\s0 and \s-1STDOUT\s0 together:
922
+ .PP
923
+ .Vb 3
924
+ \& $output = \`cmd 2>&1\`; # either with backticks
925
+ \& $pid = open(PH, "cmd 2>&1 |"); # or with an open pipe
926
+ \& while (<PH>) { } # plus a read
927
+ .Ve
928
+ .PP
929
+ To capture a command's \s-1STDOUT\s0 but discard its \s-1STDERR:\s0
930
+ .PP
931
+ .Vb 3
932
+ \& $output = \`cmd 2>/dev/null\`; # either with backticks
933
+ \& $pid = open(PH, "cmd 2>/dev/null |"); # or with an open pipe
934
+ \& while (<PH>) { } # plus a read
935
+ .Ve
936
+ .PP
937
+ To capture a command's \s-1STDERR\s0 but discard its \s-1STDOUT:\s0
938
+ .PP
939
+ .Vb 3
940
+ \& $output = \`cmd 2>&1 1>/dev/null\`; # either with backticks
941
+ \& $pid = open(PH, "cmd 2>&1 1>/dev/null |"); # or with an open pipe
942
+ \& while (<PH>) { } # plus a read
943
+ .Ve
944
+ .PP
945
+ To exchange a command's \s-1STDOUT\s0 and \s-1STDERR\s0 in order to capture the \s-1STDERR\s0
946
+ but leave its \s-1STDOUT\s0 to come out our old \s-1STDERR:\s0
947
+ .PP
948
+ .Vb 3
949
+ \& $output = \`cmd 3>&1 1>&2 2>&3 3>&\-\`; # either with backticks
950
+ \& $pid = open(PH, "cmd 3>&1 1>&2 2>&3 3>&\-|");# or with an open pipe
951
+ \& while (<PH>) { } # plus a read
952
+ .Ve
953
+ .PP
954
+ To read both a command's \s-1STDOUT\s0 and its \s-1STDERR\s0 separately, it's easiest
955
+ to redirect them separately to files, and then read from those files
956
+ when the program is done:
957
+ .PP
958
+ .Vb 1
959
+ \& system("program args 1>program.stdout 2>program.stderr");
960
+ .Ve
961
+ .PP
962
+ Ordering is important in all these examples. That's because the shell
963
+ processes file descriptor redirections in strictly left to right order.
964
+ .PP
965
+ .Vb 2
966
+ \& system("prog args 1>tmpfile 2>&1");
967
+ \& system("prog args 2>&1 1>tmpfile");
968
+ .Ve
969
+ .PP
970
+ The first command sends both standard out and standard error to the
971
+ temporary file. The second command sends only the old standard output
972
+ there, and the old standard error shows up on the old standard out.
973
+ .SS "Why doesn't \fBopen()\fP return an error when a pipe open fails?"
974
+ .IX Subsection "Why doesn't open() return an error when a pipe open fails?"
975
+ If the second argument to a piped \f(CW\*(C`open()\*(C'\fR contains shell
976
+ metacharacters, perl \f(CW\*(C`fork()\*(C'\fRs, then \f(CW\*(C`exec()\*(C'\fRs a shell to decode the
977
+ metacharacters and eventually run the desired program. If the program
978
+ couldn't be run, it's the shell that gets the message, not Perl. All
979
+ your Perl program can find out is whether the shell itself could be
980
+ successfully started. You can still capture the shell's \s-1STDERR\s0 and
981
+ check it for error messages. See \*(L"How can I capture \s-1STDERR\s0 from an
982
+ external command?\*(R" elsewhere in this document, or use the
983
+ IPC::Open3 module.
984
+ .PP
985
+ If there are no shell metacharacters in the argument of \f(CW\*(C`open()\*(C'\fR, Perl
986
+ runs the command directly, without using the shell, and can correctly
987
+ report whether the command started.
988
+ .SS "What's wrong with using backticks in a void context?"
989
+ .IX Subsection "What's wrong with using backticks in a void context?"
990
+ Strictly speaking, nothing. Stylistically speaking, it's not a good
991
+ way to write maintainable code. Perl has several operators for
992
+ running external commands. Backticks are one; they collect the output
993
+ from the command for use in your program. The \f(CW\*(C`system\*(C'\fR function is
994
+ another; it doesn't do this.
995
+ .PP
996
+ Writing backticks in your program sends a clear message to the readers
997
+ of your code that you wanted to collect the output of the command.
998
+ Why send a clear message that isn't true?
999
+ .PP
1000
+ Consider this line:
1001
+ .PP
1002
+ .Vb 1
1003
+ \& \`cat /etc/termcap\`;
1004
+ .Ve
1005
+ .PP
1006
+ You forgot to check \f(CW$?\fR to see whether the program even ran
1007
+ correctly. Even if you wrote
1008
+ .PP
1009
+ .Vb 1
1010
+ \& print \`cat /etc/termcap\`;
1011
+ .Ve
1012
+ .PP
1013
+ this code could and probably should be written as
1014
+ .PP
1015
+ .Vb 2
1016
+ \& system("cat /etc/termcap") == 0
1017
+ \& or die "cat program failed!";
1018
+ .Ve
1019
+ .PP
1020
+ which will echo the cat command's output as it is generated, instead
1021
+ of waiting until the program has completed to print it out. It also
1022
+ checks the return value.
1023
+ .PP
1024
+ \&\f(CW\*(C`system\*(C'\fR also provides direct control over whether shell wildcard
1025
+ processing may take place, whereas backticks do not.
1026
+ .SS "How can I call backticks without shell processing?"
1027
+ .IX Subsection "How can I call backticks without shell processing?"
1028
+ This is a bit tricky. You can't simply write the command
1029
+ like this:
1030
+ .PP
1031
+ .Vb 1
1032
+ \& @ok = \`grep @opts \*(Aq$search_string\*(Aq @filenames\`;
1033
+ .Ve
1034
+ .PP
1035
+ As of Perl 5.8.0, you can use \f(CW\*(C`open()\*(C'\fR with multiple arguments.
1036
+ Just like the list forms of \f(CW\*(C`system()\*(C'\fR and \f(CW\*(C`exec()\*(C'\fR, no shell
1037
+ escapes happen.
1038
+ .PP
1039
+ .Vb 3
1040
+ \& open( GREP, "\-|", \*(Aqgrep\*(Aq, @opts, $search_string, @filenames );
1041
+ \& chomp(@ok = <GREP>);
1042
+ \& close GREP;
1043
+ .Ve
1044
+ .PP
1045
+ You can also:
1046
+ .PP
1047
+ .Vb 10
1048
+ \& my @ok = ();
1049
+ \& if (open(GREP, "\-|")) {
1050
+ \& while (<GREP>) {
1051
+ \& chomp;
1052
+ \& push(@ok, $_);
1053
+ \& }
1054
+ \& close GREP;
1055
+ \& } else {
1056
+ \& exec \*(Aqgrep\*(Aq, @opts, $search_string, @filenames;
1057
+ \& }
1058
+ .Ve
1059
+ .PP
1060
+ Just as with \f(CW\*(C`system()\*(C'\fR, no shell escapes happen when you \f(CW\*(C`exec()\*(C'\fR a
1061
+ list. Further examples of this can be found in \*(L"Safe Pipe
1062
+ Opens\*(R" in perlipc.
1063
+ .PP
1064
+ Note that if you're using Windows, no solution to this vexing issue is
1065
+ even possible. Even though Perl emulates \f(CW\*(C`fork()\*(C'\fR, you'll still be
1066
+ stuck, because Windows does not have an argc/argv\-style \s-1API.\s0
1067
+ .SS "Why can't my script read from \s-1STDIN\s0 after I gave it \s-1EOF\s0 (^D on Unix, ^Z on MS-DOS)?"
1068
+ .IX Subsection "Why can't my script read from STDIN after I gave it EOF (^D on Unix, ^Z on MS-DOS)?"
1069
+ This happens only if your perl is compiled to use stdio instead of
1070
+ perlio, which is the default. Some (maybe all?) stdios set error and
1071
+ eof flags that you may need to clear. The \s-1POSIX\s0 module defines
1072
+ \&\f(CW\*(C`clearerr()\*(C'\fR that you can use. That is the technically correct way to
1073
+ do it. Here are some less reliable workarounds:
1074
+ .IP "1." 4
1075
+ Try keeping around the seekpointer and go there, like this:
1076
+ .Sp
1077
+ .Vb 2
1078
+ \& my $where = tell($log_fh);
1079
+ \& seek($log_fh, $where, 0);
1080
+ .Ve
1081
+ .IP "2." 4
1082
+ If that doesn't work, try seeking to a different part of the file and
1083
+ then back.
1084
+ .IP "3." 4
1085
+ If that doesn't work, try seeking to a different part of
1086
+ the file, reading something, and then seeking back.
1087
+ .IP "4." 4
1088
+ If that doesn't work, give up on your stdio package and use sysread.
1089
+ .SS "How can I convert my shell script to perl?"
1090
+ .IX Subsection "How can I convert my shell script to perl?"
1091
+ Learn Perl and rewrite it. Seriously, there's no simple converter.
1092
+ Things that are awkward to do in the shell are easy to do in Perl, and
1093
+ this very awkwardness is what would make a shell\->perl converter
1094
+ nigh-on impossible to write. By rewriting it, you'll think about what
1095
+ you're really trying to do, and hopefully will escape the shell's
1096
+ pipeline datastream paradigm, which while convenient for some matters,
1097
+ causes many inefficiencies.
1098
+ .SS "Can I use perl to run a telnet or ftp session?"
1099
+ .IX Subsection "Can I use perl to run a telnet or ftp session?"
1100
+ Try the Net::FTP, TCP::Client, and Net::Telnet modules
1101
+ (available from \s-1CPAN\s0).
1102
+ <http://www.cpan.org/scripts/netstuff/telnet.emul.shar> will also help
1103
+ for emulating the telnet protocol, but Net::Telnet is quite
1104
+ probably easier to use.
1105
+ .PP
1106
+ If all you want to do is pretend to be telnet but don't need
1107
+ the initial telnet handshaking, then the standard dual-process
1108
+ approach will suffice:
1109
+ .PP
1110
+ .Vb 12
1111
+ \& use IO::Socket; # new in 5.004
1112
+ \& my $handle = IO::Socket::INET\->new(\*(Aqwww.perl.com:80\*(Aq)
1113
+ \& or die "can\*(Aqt connect to port 80 on www.perl.com $!";
1114
+ \& $handle\->autoflush(1);
1115
+ \& if (fork()) { # XXX: undef means failure
1116
+ \& select($handle);
1117
+ \& print while <STDIN>; # everything from stdin to socket
1118
+ \& } else {
1119
+ \& print while <$handle>; # everything from socket to stdout
1120
+ \& }
1121
+ \& close $handle;
1122
+ \& exit;
1123
+ .Ve
1124
+ .SS "How can I write expect in Perl?"
1125
+ .IX Subsection "How can I write expect in Perl?"
1126
+ Once upon a time, there was a library called \fIchat2.pl\fR (part of the
1127
+ standard perl distribution), which never really got finished. If you
1128
+ find it somewhere, \fIdon't use it\fR. These days, your best bet is to
1129
+ look at the Expect module available from \s-1CPAN,\s0 which also requires two
1130
+ other modules from \s-1CPAN,\s0 IO::Pty and IO::Stty.
1131
+ .ie n .SS "Is there a way to hide perl's command line from programs such as ""ps""?"
1132
+ .el .SS "Is there a way to hide perl's command line from programs such as ``ps''?"
1133
+ .IX Subsection "Is there a way to hide perl's command line from programs such as ps?"
1134
+ First of all note that if you're doing this for security reasons (to
1135
+ avoid people seeing passwords, for example) then you should rewrite
1136
+ your program so that critical information is never given as an
1137
+ argument. Hiding the arguments won't make your program completely
1138
+ secure.
1139
+ .PP
1140
+ To actually alter the visible command line, you can assign to the
1141
+ variable \f(CW$0\fR as documented in perlvar. This won't work on all
1142
+ operating systems, though. Daemon programs like sendmail place their
1143
+ state there, as in:
1144
+ .PP
1145
+ .Vb 1
1146
+ \& $0 = "orcus [accepting connections]";
1147
+ .Ve
1148
+ .SS "I {changed directory, modified my environment} in a perl script. How come the change disappeared when I exited the script? How do I get my changes to be visible?"
1149
+ .IX Subsection "I {changed directory, modified my environment} in a perl script. How come the change disappeared when I exited the script? How do I get my changes to be visible?"
1150
+ .IP "Unix" 4
1151
+ .IX Item "Unix"
1152
+ In the strictest sense, it can't be done\*(--the script executes as a
1153
+ different process from the shell it was started from. Changes to a
1154
+ process are not reflected in its parent\*(--only in any children
1155
+ created after the change. There is shell magic that may allow you to
1156
+ fake it by \f(CW\*(C`eval()\*(C'\fRing the script's output in your shell; check out the
1157
+ comp.unix.questions \s-1FAQ\s0 for details.
1158
+ .SS "How do I close a process's filehandle without waiting for it to complete?"
1159
+ .IX Subsection "How do I close a process's filehandle without waiting for it to complete?"
1160
+ Assuming your system supports such things, just send an appropriate signal
1161
+ to the process (see \*(L"kill\*(R" in perlfunc). It's common to first send a \s-1TERM\s0
1162
+ signal, wait a little bit, and then send a \s-1KILL\s0 signal to finish it off.
1163
+ .SS "How do I fork a daemon process?"
1164
+ .IX Subsection "How do I fork a daemon process?"
1165
+ If by daemon process you mean one that's detached (disassociated from
1166
+ its tty), then the following process is reported to work on most
1167
+ Unixish systems. Non-Unix users should check their Your_OS::Process
1168
+ module for other solutions.
1169
+ .IP "\(bu" 4
1170
+ Open /dev/tty and use the \s-1TIOCNOTTY\s0 ioctl on it. See \fBtty\fR\|(1)
1171
+ for details. Or better yet, you can just use the \f(CW\*(C`POSIX::setsid()\*(C'\fR
1172
+ function, so you don't have to worry about process groups.
1173
+ .IP "\(bu" 4
1174
+ Change directory to /
1175
+ .IP "\(bu" 4
1176
+ Reopen \s-1STDIN, STDOUT,\s0 and \s-1STDERR\s0 so they're not connected to the old
1177
+ tty.
1178
+ .IP "\(bu" 4
1179
+ Background yourself like this:
1180
+ .Sp
1181
+ .Vb 1
1182
+ \& fork && exit;
1183
+ .Ve
1184
+ .PP
1185
+ The Proc::Daemon module, available from \s-1CPAN,\s0 provides a function to
1186
+ perform these actions for you.
1187
+ .SS "How do I find out if I'm running interactively or not?"
1188
+ .IX Subsection "How do I find out if I'm running interactively or not?"
1189
+ (contributed by brian d foy)
1190
+ .PP
1191
+ This is a difficult question to answer, and the best answer is
1192
+ only a guess.
1193
+ .PP
1194
+ What do you really want to know? If you merely want to know if one of
1195
+ your filehandles is connected to a terminal, you can try the \f(CW\*(C`\-t\*(C'\fR
1196
+ file test:
1197
+ .PP
1198
+ .Vb 3
1199
+ \& if( \-t STDOUT ) {
1200
+ \& print "I\*(Aqm connected to a terminal!\en";
1201
+ \& }
1202
+ .Ve
1203
+ .PP
1204
+ However, you might be out of luck if you expect that means there is a
1205
+ real person on the other side. With the Expect module, another
1206
+ program can pretend to be a person. The program might even come close
1207
+ to passing the Turing test.
1208
+ .PP
1209
+ The IO::Interactive module does the best it can to give you an
1210
+ answer. Its \f(CW\*(C`is_interactive\*(C'\fR function returns an output filehandle;
1211
+ that filehandle points to standard output if the module thinks the
1212
+ session is interactive. Otherwise, the filehandle is a null handle
1213
+ that simply discards the output:
1214
+ .PP
1215
+ .Vb 1
1216
+ \& use IO::Interactive;
1217
+ \&
1218
+ \& print { is_interactive } "I might go to standard output!\en";
1219
+ .Ve
1220
+ .PP
1221
+ This still doesn't guarantee that a real person is answering your
1222
+ prompts or reading your output.
1223
+ .PP
1224
+ If you want to know how to handle automated testing for your
1225
+ distribution, you can check the environment. The \s-1CPAN\s0
1226
+ Testers, for instance, set the value of \f(CW\*(C`AUTOMATED_TESTING\*(C'\fR:
1227
+ .PP
1228
+ .Vb 3
1229
+ \& unless( $ENV{AUTOMATED_TESTING} ) {
1230
+ \& print "Hello interactive tester!\en";
1231
+ \& }
1232
+ .Ve
1233
+ .SS "How do I timeout a slow event?"
1234
+ .IX Subsection "How do I timeout a slow event?"
1235
+ Use the \f(CW\*(C`alarm()\*(C'\fR function, probably in conjunction with a signal
1236
+ handler, as documented in \*(L"Signals\*(R" in perlipc and the section on
1237
+ \&\*(L"Signals\*(R" in the Camel. You may instead use the more flexible
1238
+ Sys::AlarmCall module available from \s-1CPAN.\s0
1239
+ .PP
1240
+ The \f(CW\*(C`alarm()\*(C'\fR function is not implemented on all versions of Windows.
1241
+ Check the documentation for your specific version of Perl.
1242
+ .SS "How do I set \s-1CPU\s0 limits?"
1243
+ .IX Xref "BSD::Resource limit CPU"
1244
+ .IX Subsection "How do I set CPU limits?"
1245
+ (contributed by Xho)
1246
+ .PP
1247
+ Use the BSD::Resource module from \s-1CPAN.\s0 As an example:
1248
+ .PP
1249
+ .Vb 2
1250
+ \& use BSD::Resource;
1251
+ \& setrlimit(RLIMIT_CPU,10,20) or die $!;
1252
+ .Ve
1253
+ .PP
1254
+ This sets the soft and hard limits to 10 and 20 seconds, respectively.
1255
+ After 10 seconds of time spent running on the \s-1CPU\s0 (not \*(L"wall\*(R" time),
1256
+ the process will be sent a signal (\s-1XCPU\s0 on some systems) which, if not
1257
+ trapped, will cause the process to terminate. If that signal is
1258
+ trapped, then after 10 more seconds (20 seconds in total) the process
1259
+ will be killed with a non-trappable signal.
1260
+ .PP
1261
+ See the BSD::Resource and your systems documentation for the gory
1262
+ details.
1263
+ .SS "How do I avoid zombies on a Unix system?"
1264
+ .IX Subsection "How do I avoid zombies on a Unix system?"
1265
+ Use the reaper code from \*(L"Signals\*(R" in perlipc to call \f(CW\*(C`wait()\*(C'\fR when a
1266
+ \&\s-1SIGCHLD\s0 is received, or else use the double-fork technique described
1267
+ in \*(L"How do I start a process in the background?\*(R" in perlfaq8.
1268
+ .SS "How do I use an \s-1SQL\s0 database?"
1269
+ .IX Subsection "How do I use an SQL database?"
1270
+ The \s-1DBI\s0 module provides an abstract interface to most database
1271
+ servers and types, including Oracle, \s-1DB2,\s0 Sybase, mysql, Postgresql,
1272
+ \&\s-1ODBC,\s0 and flat files. The \s-1DBI\s0 module accesses each database type
1273
+ through a database driver, or \s-1DBD.\s0 You can see a complete list of
1274
+ available drivers on \s-1CPAN:\s0 <http://www.cpan.org/modules/by\-module/DBD/> .
1275
+ You can read more about \s-1DBI\s0 on <http://dbi.perl.org/> .
1276
+ .PP
1277
+ Other modules provide more specific access: Win32::ODBC, Alzabo,
1278
+ \&\f(CW\*(C`iodbc\*(C'\fR, and others found on \s-1CPAN\s0 Search: <https://metacpan.org/> .
1279
+ .SS "How do I make a \fBsystem()\fP exit on control-C?"
1280
+ .IX Subsection "How do I make a system() exit on control-C?"
1281
+ You can't. You need to imitate the \f(CW\*(C`system()\*(C'\fR call (see perlipc for
1282
+ sample code) and then have a signal handler for the \s-1INT\s0 signal that
1283
+ passes the signal on to the subprocess. Or you can check for it:
1284
+ .PP
1285
+ .Vb 2
1286
+ \& $rc = system($cmd);
1287
+ \& if ($rc & 127) { die "signal death" }
1288
+ .Ve
1289
+ .SS "How do I open a file without blocking?"
1290
+ .IX Subsection "How do I open a file without blocking?"
1291
+ If you're lucky enough to be using a system that supports
1292
+ non-blocking reads (most Unixish systems do), you need only to use the
1293
+ \&\f(CW\*(C`O_NDELAY\*(C'\fR or \f(CW\*(C`O_NONBLOCK\*(C'\fR flag from the \f(CW\*(C`Fcntl\*(C'\fR module in conjunction with
1294
+ \&\f(CW\*(C`sysopen()\*(C'\fR:
1295
+ .PP
1296
+ .Vb 3
1297
+ \& use Fcntl;
1298
+ \& sysopen(my $fh, "/foo/somefile", O_WRONLY|O_NDELAY|O_CREAT, 0644)
1299
+ \& or die "can\*(Aqt open /foo/somefile: $!":
1300
+ .Ve
1301
+ .SS "How do I tell the difference between errors from the shell and perl?"
1302
+ .IX Subsection "How do I tell the difference between errors from the shell and perl?"
1303
+ (answer contributed by brian d foy)
1304
+ .PP
1305
+ When you run a Perl script, something else is running the script for you,
1306
+ and that something else may output error messages. The script might
1307
+ emit its own warnings and error messages. Most of the time you cannot
1308
+ tell who said what.
1309
+ .PP
1310
+ You probably cannot fix the thing that runs perl, but you can change how
1311
+ perl outputs its warnings by defining a custom warning and die functions.
1312
+ .PP
1313
+ Consider this script, which has an error you may not notice immediately.
1314
+ .PP
1315
+ .Vb 1
1316
+ \& #!/usr/locl/bin/perl
1317
+ \&
1318
+ \& print "Hello World\en";
1319
+ .Ve
1320
+ .PP
1321
+ I get an error when I run this from my shell (which happens to be
1322
+ bash). That may look like perl forgot it has a \f(CW\*(C`print()\*(C'\fR function,
1323
+ but my shebang line is not the path to perl, so the shell runs the
1324
+ script, and I get the error.
1325
+ .PP
1326
+ .Vb 2
1327
+ \& $ ./test
1328
+ \& ./test: line 3: print: command not found
1329
+ .Ve
1330
+ .PP
1331
+ A quick and dirty fix involves a little bit of code, but this may be all
1332
+ you need to figure out the problem.
1333
+ .PP
1334
+ .Vb 1
1335
+ \& #!/usr/bin/perl \-w
1336
+ \&
1337
+ \& BEGIN {
1338
+ \& $SIG{_\|_WARN_\|_} = sub{ print STDERR "Perl: ", @_; };
1339
+ \& $SIG{_\|_DIE_\|_} = sub{ print STDERR "Perl: ", @_; exit 1};
1340
+ \& }
1341
+ \&
1342
+ \& $a = 1 + undef;
1343
+ \& $x / 0;
1344
+ \& _\|_END_\|_
1345
+ .Ve
1346
+ .PP
1347
+ The perl message comes out with \*(L"Perl\*(R" in front. The \f(CW\*(C`BEGIN\*(C'\fR block
1348
+ works at compile time so all of the compilation errors and warnings
1349
+ get the \*(L"Perl:\*(R" prefix too.
1350
+ .PP
1351
+ .Vb 7
1352
+ \& Perl: Useless use of division (/) in void context at ./test line 9.
1353
+ \& Perl: Name "main::a" used only once: possible typo at ./test line 8.
1354
+ \& Perl: Name "main::x" used only once: possible typo at ./test line 9.
1355
+ \& Perl: Use of uninitialized value in addition (+) at ./test line 8.
1356
+ \& Perl: Use of uninitialized value in division (/) at ./test line 9.
1357
+ \& Perl: Illegal division by zero at ./test line 9.
1358
+ \& Perl: Illegal division by zero at \-e line 3.
1359
+ .Ve
1360
+ .PP
1361
+ If I don't see that \*(L"Perl:\*(R", it's not from perl.
1362
+ .PP
1363
+ You could also just know all the perl errors, and although there are
1364
+ some people who may know all of them, you probably don't. However, they
1365
+ all should be in the perldiag manpage. If you don't find the error in
1366
+ there, it probably isn't a perl error.
1367
+ .PP
1368
+ Looking up every message is not the easiest way, so let perl to do it
1369
+ for you. Use the diagnostics pragma with turns perl's normal messages
1370
+ into longer discussions on the topic.
1371
+ .PP
1372
+ .Vb 1
1373
+ \& use diagnostics;
1374
+ .Ve
1375
+ .PP
1376
+ If you don't get a paragraph or two of expanded discussion, it
1377
+ might not be perl's message.
1378
+ .SS "How do I install a module from \s-1CPAN\s0?"
1379
+ .IX Subsection "How do I install a module from CPAN?"
1380
+ (contributed by brian d foy)
1381
+ .PP
1382
+ The easiest way is to have a module also named \s-1CPAN\s0 do it for you by using
1383
+ the \f(CW\*(C`cpan\*(C'\fR command that comes with Perl. You can give it a list of modules
1384
+ to install:
1385
+ .PP
1386
+ .Vb 1
1387
+ \& $ cpan IO::Interactive Getopt::Whatever
1388
+ .Ve
1389
+ .PP
1390
+ If you prefer \f(CW\*(C`CPANPLUS\*(C'\fR, it's just as easy:
1391
+ .PP
1392
+ .Vb 1
1393
+ \& $ cpanp i IO::Interactive Getopt::Whatever
1394
+ .Ve
1395
+ .PP
1396
+ If you want to install a distribution from the current directory, you can
1397
+ tell \f(CW\*(C`CPAN.pm\*(C'\fR to install \f(CW\*(C`.\*(C'\fR (the full stop):
1398
+ .PP
1399
+ .Vb 1
1400
+ \& $ cpan .
1401
+ .Ve
1402
+ .PP
1403
+ See the documentation for either of those commands to see what else
1404
+ you can do.
1405
+ .PP
1406
+ If you want to try to install a distribution by yourself, resolving
1407
+ all dependencies on your own, you follow one of two possible build
1408
+ paths.
1409
+ .PP
1410
+ For distributions that use \fIMakefile.PL\fR:
1411
+ .PP
1412
+ .Vb 2
1413
+ \& $ perl Makefile.PL
1414
+ \& $ make test install
1415
+ .Ve
1416
+ .PP
1417
+ For distributions that use \fIBuild.PL\fR:
1418
+ .PP
1419
+ .Vb 3
1420
+ \& $ perl Build.PL
1421
+ \& $ ./Build test
1422
+ \& $ ./Build install
1423
+ .Ve
1424
+ .PP
1425
+ Some distributions may need to link to libraries or other third-party
1426
+ code and their build and installation sequences may be more complicated.
1427
+ Check any \fI\s-1README\s0\fR or \fI\s-1INSTALL\s0\fR files that you may find.
1428
+ .SS "What's the difference between require and use?"
1429
+ .IX Subsection "What's the difference between require and use?"
1430
+ (contributed by brian d foy)
1431
+ .PP
1432
+ Perl runs \f(CW\*(C`require\*(C'\fR statement at run-time. Once Perl loads, compiles,
1433
+ and runs the file, it doesn't do anything else. The \f(CW\*(C`use\*(C'\fR statement
1434
+ is the same as a \f(CW\*(C`require\*(C'\fR run at compile-time, but Perl also calls the
1435
+ \&\f(CW\*(C`import\*(C'\fR method for the loaded package. These two are the same:
1436
+ .PP
1437
+ .Vb 1
1438
+ \& use MODULE qw(import list);
1439
+ \&
1440
+ \& BEGIN {
1441
+ \& require MODULE;
1442
+ \& MODULE\->import(import list);
1443
+ \& }
1444
+ .Ve
1445
+ .PP
1446
+ However, you can suppress the \f(CW\*(C`import\*(C'\fR by using an explicit, empty
1447
+ import list. Both of these still happen at compile-time:
1448
+ .PP
1449
+ .Vb 1
1450
+ \& use MODULE ();
1451
+ \&
1452
+ \& BEGIN {
1453
+ \& require MODULE;
1454
+ \& }
1455
+ .Ve
1456
+ .PP
1457
+ Since \f(CW\*(C`use\*(C'\fR will also call the \f(CW\*(C`import\*(C'\fR method, the actual value
1458
+ for \f(CW\*(C`MODULE\*(C'\fR must be a bareword. That is, \f(CW\*(C`use\*(C'\fR cannot load files
1459
+ by name, although \f(CW\*(C`require\*(C'\fR can:
1460
+ .PP
1461
+ .Vb 1
1462
+ \& require "$ENV{HOME}/lib/Foo.pm"; # no @INC searching!
1463
+ .Ve
1464
+ .PP
1465
+ See the entry for \f(CW\*(C`use\*(C'\fR in perlfunc for more details.
1466
+ .SS "How do I keep my own module/library directory?"
1467
+ .IX Subsection "How do I keep my own module/library directory?"
1468
+ When you build modules, tell Perl where to install the modules.
1469
+ .PP
1470
+ If you want to install modules for your own use, the easiest way might
1471
+ be local::lib, which you can download from \s-1CPAN.\s0 It sets various
1472
+ installation settings for you, and uses those same settings within
1473
+ your programs.
1474
+ .PP
1475
+ If you want more flexibility, you need to configure your \s-1CPAN\s0 client
1476
+ for your particular situation.
1477
+ .PP
1478
+ For \f(CW\*(C`Makefile.PL\*(C'\fR\-based distributions, use the \s-1INSTALL_BASE\s0 option
1479
+ when generating Makefiles:
1480
+ .PP
1481
+ .Vb 1
1482
+ \& perl Makefile.PL INSTALL_BASE=/mydir/perl
1483
+ .Ve
1484
+ .PP
1485
+ You can set this in your \f(CW\*(C`CPAN.pm\*(C'\fR configuration so modules
1486
+ automatically install in your private library directory when you use
1487
+ the \s-1CPAN\s0.pm shell:
1488
+ .PP
1489
+ .Vb 3
1490
+ \& % cpan
1491
+ \& cpan> o conf makepl_arg INSTALL_BASE=/mydir/perl
1492
+ \& cpan> o conf commit
1493
+ .Ve
1494
+ .PP
1495
+ For \f(CW\*(C`Build.PL\*(C'\fR\-based distributions, use the \-\-install_base option:
1496
+ .PP
1497
+ .Vb 1
1498
+ \& perl Build.PL \-\-install_base /mydir/perl
1499
+ .Ve
1500
+ .PP
1501
+ You can configure \f(CW\*(C`CPAN.pm\*(C'\fR to automatically use this option too:
1502
+ .PP
1503
+ .Vb 3
1504
+ \& % cpan
1505
+ \& cpan> o conf mbuild_arg "\-\-install_base /mydir/perl"
1506
+ \& cpan> o conf commit
1507
+ .Ve
1508
+ .PP
1509
+ \&\s-1INSTALL_BASE\s0 tells these tools to put your modules into
1510
+ \&\fI/mydir/perl/lib/perl5\fR. See \*(L"How do I add a directory to my
1511
+ include path (@INC) at runtime?\*(R" for details on how to run your newly
1512
+ installed modules.
1513
+ .PP
1514
+ There is one caveat with \s-1INSTALL_BASE,\s0 though, since it acts
1515
+ differently from the \s-1PREFIX\s0 and \s-1LIB\s0 settings that older versions of
1516
+ ExtUtils::MakeMaker advocated. \s-1INSTALL_BASE\s0 does not support
1517
+ installing modules for multiple versions of Perl or different
1518
+ architectures under the same directory. You should consider whether you
1519
+ really want that and, if you do, use the older \s-1PREFIX\s0 and \s-1LIB\s0
1520
+ settings. See the ExtUtils::Makemaker documentation for more details.
1521
+ .SS "How do I add the directory my program lives in to the module/library search path?"
1522
+ .IX Subsection "How do I add the directory my program lives in to the module/library search path?"
1523
+ (contributed by brian d foy)
1524
+ .PP
1525
+ If you know the directory already, you can add it to \f(CW@INC\fR as you would
1526
+ for any other directory. You might \f(CW\*(C`use lib\*(C'\fR if you know the directory
1527
+ at compile time:
1528
+ .PP
1529
+ .Vb 1
1530
+ \& use lib $directory;
1531
+ .Ve
1532
+ .PP
1533
+ The trick in this task is to find the directory. Before your script does
1534
+ anything else (such as a \f(CW\*(C`chdir\*(C'\fR), you can get the current working
1535
+ directory with the \f(CW\*(C`Cwd\*(C'\fR module, which comes with Perl:
1536
+ .PP
1537
+ .Vb 4
1538
+ \& BEGIN {
1539
+ \& use Cwd;
1540
+ \& our $directory = cwd;
1541
+ \& }
1542
+ \&
1543
+ \& use lib $directory;
1544
+ .Ve
1545
+ .PP
1546
+ You can do a similar thing with the value of \f(CW$0\fR, which holds the
1547
+ script name. That might hold a relative path, but \f(CW\*(C`rel2abs\*(C'\fR can turn
1548
+ it into an absolute path. Once you have the
1549
+ .PP
1550
+ .Vb 3
1551
+ \& BEGIN {
1552
+ \& use File::Spec::Functions qw(rel2abs);
1553
+ \& use File::Basename qw(dirname);
1554
+ \&
1555
+ \& my $path = rel2abs( $0 );
1556
+ \& our $directory = dirname( $path );
1557
+ \& }
1558
+ \&
1559
+ \& use lib $directory;
1560
+ .Ve
1561
+ .PP
1562
+ The FindBin module, which comes with Perl, might work. It finds the
1563
+ directory of the currently running script and puts it in \f(CW$Bin\fR, which
1564
+ you can then use to construct the right library path:
1565
+ .PP
1566
+ .Vb 1
1567
+ \& use FindBin qw($Bin);
1568
+ .Ve
1569
+ .PP
1570
+ You can also use local::lib to do much of the same thing. Install
1571
+ modules using local::lib's settings then use the module in your
1572
+ program:
1573
+ .PP
1574
+ .Vb 1
1575
+ \& use local::lib; # sets up a local lib at ~/perl5
1576
+ .Ve
1577
+ .PP
1578
+ See the local::lib documentation for more details.
1579
+ .SS "How do I add a directory to my include path (@INC) at runtime?"
1580
+ .IX Subsection "How do I add a directory to my include path (@INC) at runtime?"
1581
+ Here are the suggested ways of modifying your include path, including
1582
+ environment variables, run-time switches, and in-code statements:
1583
+ .ie n .IP "the ""PERLLIB"" environment variable" 4
1584
+ .el .IP "the \f(CWPERLLIB\fR environment variable" 4
1585
+ .IX Item "the PERLLIB environment variable"
1586
+ .Vb 2
1587
+ \& $ export PERLLIB=/path/to/my/dir
1588
+ \& $ perl program.pl
1589
+ .Ve
1590
+ .ie n .IP "the ""PERL5LIB"" environment variable" 4
1591
+ .el .IP "the \f(CWPERL5LIB\fR environment variable" 4
1592
+ .IX Item "the PERL5LIB environment variable"
1593
+ .Vb 2
1594
+ \& $ export PERL5LIB=/path/to/my/dir
1595
+ \& $ perl program.pl
1596
+ .Ve
1597
+ .ie n .IP "the ""perl \-Idir"" command line flag" 4
1598
+ .el .IP "the \f(CWperl \-Idir\fR command line flag" 4
1599
+ .IX Item "the perl -Idir command line flag"
1600
+ .Vb 1
1601
+ \& $ perl \-I/path/to/my/dir program.pl
1602
+ .Ve
1603
+ .ie n .IP "the ""lib"" pragma:" 4
1604
+ .el .IP "the \f(CWlib\fR pragma:" 4
1605
+ .IX Item "the lib pragma:"
1606
+ .Vb 1
1607
+ \& use lib "$ENV{HOME}/myown_perllib";
1608
+ .Ve
1609
+ .IP "the local::lib module:" 4
1610
+ .IX Item "the local::lib module:"
1611
+ .Vb 1
1612
+ \& use local::lib;
1613
+ \&
1614
+ \& use local::lib "~/myown_perllib";
1615
+ .Ve
1616
+ .SS "Where are modules installed?"
1617
+ .IX Subsection "Where are modules installed?"
1618
+ Modules are installed on a case-by-case basis (as provided by the methods
1619
+ described in the previous section), and in the operating system. All of these
1620
+ paths are stored in \f(CW@INC\fR, which you can display with the one-liner
1621
+ .PP
1622
+ .Vb 1
1623
+ \& perl \-e \*(Aqprint join("\en",@INC,"")\*(Aq
1624
+ .Ve
1625
+ .PP
1626
+ The same information is displayed at the end of the output from the command
1627
+ .PP
1628
+ .Vb 1
1629
+ \& perl \-V
1630
+ .Ve
1631
+ .PP
1632
+ To find out where a module's source code is located, use
1633
+ .PP
1634
+ .Vb 1
1635
+ \& perldoc \-l Encode
1636
+ .Ve
1637
+ .PP
1638
+ to display the path to the module. In some cases (for example, the \f(CW\*(C`AutoLoader\*(C'\fR
1639
+ module), this command will show the path to a separate \f(CW\*(C`pod\*(C'\fR file; the module
1640
+ itself should be in the same directory, with a 'pm' file extension.
1641
+ .SS "What is socket.ph and where do I get it?"
1642
+ .IX Subsection "What is socket.ph and where do I get it?"
1643
+ It's a Perl 4 style file defining values for system networking
1644
+ constants. Sometimes it is built using h2ph when Perl is installed,
1645
+ but other times it is not. Modern programs should use \f(CW\*(C`use Socket;\*(C'\fR
1646
+ instead.
1647
+ .SH "AUTHOR AND COPYRIGHT"
1648
+ .IX Header "AUTHOR AND COPYRIGHT"
1649
+ Copyright (c) 1997\-2010 Tom Christiansen, Nathan Torkington, and
1650
+ other authors as noted. All rights reserved.
1651
+ .PP
1652
+ This documentation is free; you can redistribute it and/or modify it
1653
+ under the same terms as Perl itself.
1654
+ .PP
1655
+ Irrespective of its distribution, all code examples in this file
1656
+ are hereby placed into the public domain. You are permitted and
1657
+ encouraged to use this code in your own programs for fun
1658
+ or for profit as you see fit. A simple comment in the code giving
1659
+ credit would be courteous but is not required.