Debian Codegraph @

templates/man1/perlfunc.1.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:34+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 # #-#-#-#-# fedora-44: perlfunc.1.pot (PACKAGE VERSION) #-#-#-#-#
20 #
21 # #-#-#-#-# fedora-rawhide: perlfunc.1.pot (PACKAGE VERSION) #-#-#-#-#
22 #
23 # #-#-#-#-# mageia-cauldron: perlfunc.1.pot (PACKAGE VERSION) #-#-#-#-#
24 #
25 # #-#-#-#-# opensuse-leap-16-1: perlfunc.1.pot (PACKAGE VERSION) #-#-#-#-#
26 #
27 # #-#-#-#-# opensuse-tumbleweed: perlfunc.1.pot (PACKAGE VERSION) #-#-#-#-#
28 #
29 #. #-#-#-#-# debian-trixie: perlfunc.1.pot (PACKAGE VERSION) #-#-#-#-#
30 #. ========================================================================
31 #. type: IX
32 #. #-#-#-#-# debian-unstable: perlfunc.1.pot (PACKAGE VERSION) #-#-#-#-#
33 #. ========================================================================
34 #. type: IX
35 #. #-#-#-#-# fedora-44: perlfunc.1.pot (PACKAGE VERSION) #-#-#-#-#
36 #. Required to disable full justification in groff 1.23.0.
37 #. ========================================================================
38 #. type: IX
39 #. #-#-#-#-# fedora-rawhide: perlfunc.1.pot (PACKAGE VERSION) #-#-#-#-#
40 #. Required to disable full justification in groff 1.23.0.
41 #. ========================================================================
42 #. type: IX
43 #. #-#-#-#-# mageia-cauldron: perlfunc.1.pot (PACKAGE VERSION) #-#-#-#-#
44 #. Required to disable full justification in groff 1.23.0.
45 #. ========================================================================
46 #. type: IX
47 #. #-#-#-#-# opensuse-leap-16-1: perlfunc.1.pot (PACKAGE VERSION) #-#-#-#-#
48 #. Required to disable full justification in groff 1.23.0.
49 #. ========================================================================
50 #. type: IX
51 #. #-#-#-#-# opensuse-tumbleweed: perlfunc.1.pot (PACKAGE VERSION) #-#-#-#-#
52 #. Required to disable full justification in groff 1.23.0.
53 #. ========================================================================
54 #. type: IX
55 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
56 #: opensuse-leap-16-1 opensuse-tumbleweed
57 #, no-wrap
58 msgid "Title"
59 msgstr ""
60
61 # #-#-#-#-# fedora-44: perlfunc.1.pot (PACKAGE VERSION) #-#-#-#-#
62 #
63 # #-#-#-#-# fedora-rawhide: perlfunc.1.pot (PACKAGE VERSION) #-#-#-#-#
64 #
65 # #-#-#-#-# mageia-cauldron: perlfunc.1.pot (PACKAGE VERSION) #-#-#-#-#
66 #
67 # #-#-#-#-# opensuse-leap-16-1: perlfunc.1.pot (PACKAGE VERSION) #-#-#-#-#
68 #
69 # #-#-#-#-# opensuse-tumbleweed: perlfunc.1.pot (PACKAGE VERSION) #-#-#-#-#
70 #
71 #. #-#-#-#-# debian-trixie: perlfunc.1.pot (PACKAGE VERSION) #-#-#-#-#
72 #. ========================================================================
73 #. type: IX
74 #. #-#-#-#-# debian-unstable: perlfunc.1.pot (PACKAGE VERSION) #-#-#-#-#
75 #. ========================================================================
76 #. type: IX
77 #. #-#-#-#-# fedora-44: perlfunc.1.pot (PACKAGE VERSION) #-#-#-#-#
78 #. Required to disable full justification in groff 1.23.0.
79 #. ========================================================================
80 #. type: IX
81 #. #-#-#-#-# fedora-rawhide: perlfunc.1.pot (PACKAGE VERSION) #-#-#-#-#
82 #. Required to disable full justification in groff 1.23.0.
83 #. ========================================================================
84 #. type: IX
85 #. #-#-#-#-# mageia-cauldron: perlfunc.1.pot (PACKAGE VERSION) #-#-#-#-#
86 #. Required to disable full justification in groff 1.23.0.
87 #. ========================================================================
88 #. type: IX
89 #. #-#-#-#-# opensuse-leap-16-1: perlfunc.1.pot (PACKAGE VERSION) #-#-#-#-#
90 #. Required to disable full justification in groff 1.23.0.
91 #. ========================================================================
92 #. type: IX
93 #. #-#-#-#-# opensuse-tumbleweed: perlfunc.1.pot (PACKAGE VERSION) #-#-#-#-#
94 #. Required to disable full justification in groff 1.23.0.
95 #. ========================================================================
96 #. type: IX
97 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
98 #: opensuse-leap-16-1 opensuse-tumbleweed
99 #, no-wrap
100 msgid "PERLFUNC 1"
101 msgstr ""
102
103 #. type: TH
104 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
105 #: opensuse-leap-16-1 opensuse-tumbleweed
106 #, no-wrap
107 msgid "PERLFUNC"
108 msgstr ""
109
110 #. type: TH
111 #: debian-trixie
112 #, no-wrap
113 msgid "2025-07-27"
114 msgstr ""
115
116 #. type: TH
117 #: debian-trixie debian-unstable
118 #, no-wrap
119 msgid "perl v5.40.1"
120 msgstr ""
121
122 #. type: TH
123 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
124 #: opensuse-leap-16-1 opensuse-tumbleweed
125 #, no-wrap
126 msgid "Perl Programmers Reference Guide"
127 msgstr ""
128
129 #. type: SH
130 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
131 #: opensuse-leap-16-1 opensuse-tumbleweed
132 #, no-wrap
133 msgid "NAME"
134 msgstr ""
135
136 #. type: Plain text
137 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
138 #: opensuse-leap-16-1 opensuse-tumbleweed
139 msgid "perlfunc - Perl builtin functions"
140 msgstr ""
141
142 #. type: IX
143 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
144 #: opensuse-leap-16-1 opensuse-tumbleweed
145 #, no-wrap
146 msgid "Xref"
147 msgstr ""
148
149 #. type: IX
150 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
151 #: opensuse-leap-16-1 opensuse-tumbleweed
152 #, no-wrap
153 msgid "function"
154 msgstr ""
155
156 #. type: IX
157 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
158 #: opensuse-leap-16-1 opensuse-tumbleweed
159 #, no-wrap
160 msgid "DESCRIPTION"
161 msgstr ""
162
163 #. type: IX
164 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
165 #: opensuse-leap-16-1 opensuse-tumbleweed
166 #, no-wrap
167 msgid "Header"
168 msgstr ""
169
170 #. type: Plain text
171 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
172 #: opensuse-leap-16-1 opensuse-tumbleweed
173 msgid ""
174 "The functions in this section can serve as terms in an expression. They "
175 "fall into two major categories: list operators and named unary operators. "
176 "These differ in their precedence relationship with a following comma. (See "
177 "the precedence table in perlop.) List operators take more than one "
178 "argument, while unary operators can never take more than one argument. "
179 "Thus, a comma terminates the argument of a unary operator, but merely "
180 "separates the arguments of a list operator. A unary operator generally "
181 "provides scalar context to its argument, while a list operator may provide "
182 "either scalar or list contexts for its arguments. If it does both, scalar "
183 "arguments come first and list argument follow, and there can only ever be "
184 "one such list argument. For instance, \\&CW<\\*(C`splice\\*(C'> has three "
185 "scalar arguments followed by a list, whereas CW<\\*(C`gethostbyname\\*(C'> "
186 "has four scalar arguments."
187 msgstr ""
188
189 #. type: Plain text
190 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
191 #: opensuse-leap-16-1 opensuse-tumbleweed
192 msgid ""
193 "In the syntax descriptions that follow, list operators that expect a list "
194 "(and provide list context for elements of the list) are shown with LIST as "
195 "an argument. Such a list may consist of any combination of scalar arguments "
196 "or list values; the list values will be included in the list as if each "
197 "individual element were interpolated at that point in the list, forming a "
198 "longer single-dimensional list value. Commas should separate literal "
199 "elements of the LIST."
200 msgstr ""
201
202 #. type: Plain text
203 #: debian-trixie debian-unstable
204 msgid ""
205 "Any function in the list below may be used either with or without "
206 "parentheses around its arguments. (The syntax descriptions omit the "
207 "parentheses.) If you use parentheses, the simple but occasionally "
208 "surprising rule is this: It I<looks> like a function, therefore it I<is> a "
209 "function, and precedence doesn't matter. Otherwise it's a list operator or "
210 "unary operator, and precedence does matter. Whitespace between the function "
211 "and left parenthesis doesn't count, so sometimes you need to be careful:"
212 msgstr ""
213
214 #. type: Plain text
215 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
216 #: opensuse-leap-16-1 opensuse-tumbleweed
217 #, no-wrap
218 msgid ""
219 "\\& print 1+2+4; # Prints 7.\n"
220 "\\& print(1+2) + 4; # Prints 3.\n"
221 "\\& print (1+2)+4; # Also prints 3!\n"
222 "\\& print +(1+2)+4; # Prints 7.\n"
223 "\\& print ((1+2)+4); # Prints 7.\n"
224 msgstr ""
225
226 #. type: Plain text
227 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
228 #: opensuse-leap-16-1 opensuse-tumbleweed
229 msgid ""
230 "If you run Perl with the CW<\\*(C`use warnings\\*(C'> pragma, it can warn "
231 "you about this. For example, the third line above produces:"
232 msgstr ""
233
234 #. type: Plain text
235 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
236 #: opensuse-leap-16-1 opensuse-tumbleweed
237 #, no-wrap
238 msgid ""
239 "\\& print (...) interpreted as function at - line 1.\n"
240 "\\& Useless use of integer addition in void context at - line 1.\n"
241 msgstr ""
242
243 #. type: Plain text
244 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
245 #: opensuse-leap-16-1 opensuse-tumbleweed
246 msgid ""
247 "A few functions take no arguments at all, and therefore work as neither "
248 "unary nor list operators. These include such functions as "
249 "\\&CW<\\*(C`time\\*(C'> and CW<\\*(C`endpwent\\*(C'>. For example, "
250 "\\&CW<\\*(C`time+86_400\\*(C'> always means CW<\\*(C`time() + 86_400\\*(C'>."
251 msgstr ""
252
253 #. type: Plain text
254 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
255 #: opensuse-leap-16-1 opensuse-tumbleweed
256 msgid ""
257 "For functions that can be used in either a scalar or list context, "
258 "nonabortive failure is generally indicated in scalar context by returning "
259 "the undefined value, and in list context by returning the empty list."
260 msgstr ""
261
262 #. type: Plain text
263 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
264 #: opensuse-leap-16-1 opensuse-tumbleweed
265 msgid ""
266 "Remember the following important rule: There is B<no rule> that relates the "
267 "behavior of an expression in list context to its behavior in scalar context, "
268 "or vice versa. It might do two totally different things. Each operator and "
269 "function decides which sort of value would be most appropriate to return in "
270 "scalar context. Some operators return the length of the list that would "
271 "have been returned in list context. Some operators return the first value "
272 "in the list. Some operators return the last value in the list. Some "
273 "operators return a count of successful operations. In general, they do what "
274 "you want, unless you want consistency."
275 msgstr ""
276
277 #. type: IX
278 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
279 #: opensuse-leap-16-1 opensuse-tumbleweed
280 #, no-wrap
281 msgid "context"
282 msgstr ""
283
284 #. type: Plain text
285 #: debian-trixie debian-unstable
286 msgid ""
287 "A named array in scalar context is quite different from what would at first "
288 "glance appear to be a list in scalar context. You can't get a list like "
289 "CW<\\*(C`(1,2,3)\\*(C'> into being in scalar context, because the compiler "
290 "knows the context at compile time. It would generate the scalar comma "
291 "operator there, not the list concatenation version of the comma. That means "
292 "it was never a list to start with."
293 msgstr ""
294
295 #. type: Plain text
296 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
297 #: opensuse-leap-16-1 opensuse-tumbleweed
298 msgid ""
299 "In general, functions in Perl that serve as wrappers for system calls "
300 "(\"syscalls\") of the same name (like B<chown>\\|(2), B<fork>\\|(2), "
301 "\\&B<closedir>\\|(2), etc.) return true when they succeed and "
302 "\\&CW<\\*(C`undef\\*(C'> otherwise, as is usually mentioned in the "
303 "descriptions below. This is different from the C interfaces, which return "
304 "CW<-1> on failure. Exceptions to this rule include \\&CW<\\*(C`wait\\*(C'>, "
305 "CW<\\*(C`waitpid\\*(C'>, and \\&CW<\\*(C`syscall\\*(C'>. System calls also "
306 "set the special \\&CW<$!> variable on failure. Other functions do not, "
307 "except accidentally."
308 msgstr ""
309
310 #. type: Plain text
311 #: debian-trixie debian-unstable
312 msgid ""
313 "Extension modules can also hook into the Perl parser to define new kinds of "
314 "keyword-headed expression. These may look like functions, but may also look "
315 "completely different. The syntax following the keyword is defined entirely "
316 "by the extension. If you are an implementor, see \"PL_keyword_plugin\" in "
317 "perlapi for the mechanism. If you are using such a module, see the module's "
318 "documentation for details of the syntax that it defines."
319 msgstr ""
320
321 #. type: IX
322 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
323 #: opensuse-leap-16-1 opensuse-tumbleweed
324 #, no-wrap
325 msgid "Perl Functions by Category"
326 msgstr ""
327
328 #. type: IX
329 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
330 #: opensuse-leap-16-1 opensuse-tumbleweed
331 #, no-wrap
332 msgid "Subsection"
333 msgstr ""
334
335 #. type: Plain text
336 #: debian-trixie debian-unstable
337 msgid ""
338 "Here are Perl's functions (including things that look like functions, like "
339 "some keywords and named operators) arranged by category. Some functions "
340 "appear in more than one place. Any warnings, including those produced by "
341 "keywords, are described in perldiag and warnings."
342 msgstr ""
343
344 #. type: IX
345 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
346 #: opensuse-leap-16-1 opensuse-tumbleweed
347 #, no-wrap
348 msgid "Functions for SCALARs or strings"
349 msgstr ""
350
351 #. type: IX
352 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
353 #: opensuse-leap-16-1 opensuse-tumbleweed
354 #, no-wrap
355 msgid "scalar string character"
356 msgstr ""
357
358 #. type: IX
359 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
360 #: opensuse-leap-16-1 opensuse-tumbleweed
361 #, no-wrap
362 msgid "Item"
363 msgstr ""
364
365 #. type: Plain text
366 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
367 #: opensuse-leap-16-1 opensuse-tumbleweed
368 msgid ""
369 "\\&CW<\\*(C`chomp\\*(C'>, CW<\\*(C`chop\\*(C'>, \\&CW<\\*(C`chr\\*(C'>, "
370 "CW<\\*(C`crypt\\*(C'>, \\&CW<\\*(C`fc\\*(C'>, CW<\\*(C`hex\\*(C'>, "
371 "\\&CW<\\*(C`index\\*(C'>, CW<\\*(C`lc\\*(C'>, \\&CW<\\*(C`lcfirst\\*(C'>, "
372 "CW<\\*(C`length\\*(C'>, \\&CW<\\*(C`oct\\*(C'>, CW<\\*(C`ord\\*(C'>, "
373 "\\&CW<\\*(C`pack\\*(C'>, \\&CW<\\*(C`q//\\*(C'>, \\&CW<\\*(C`qq//\\*(C'>, "
374 "CW<\\*(C`reverse\\*(C'>, \\&CW<\\*(C`rindex\\*(C'>, "
375 "\\&CW<\\*(C`sprintf\\*(C'>, \\&CW<\\*(C`substr\\*(C'>, \\&CW<\\*(C`tr///"
376 "\\*(C'>, CW<\\*(C`uc\\*(C'>, \\&CW<\\*(C`ucfirst\\*(C'>, \\&CW<\\*(C`y///"
377 "\\*(C'>"
378 msgstr ""
379
380 #. type: Plain text
381 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
382 #: opensuse-leap-16-1 opensuse-tumbleweed
383 msgid ""
384 "\\&CW<\\*(C`fc\\*(C'> is available only if the \\&CW<\"fc\"> feature is "
385 "enabled or if it is prefixed with CW<\\*(C`CORE::\\*(C'>. The \\&CW<\"fc\"> "
386 "feature is enabled automatically with a CW<\\*(C`use v5.16\\*(C'> (or "
387 "higher) declaration in the current scope."
388 msgstr ""
389
390 #. type: IX
391 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
392 #: opensuse-leap-16-1 opensuse-tumbleweed
393 #, no-wrap
394 msgid "Regular expressions and pattern matching"
395 msgstr ""
396
397 #. type: IX
398 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
399 #: opensuse-leap-16-1 opensuse-tumbleweed
400 #, no-wrap
401 msgid "regular expression regex regexp"
402 msgstr ""
403
404 #. type: Plain text
405 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
406 #: opensuse-leap-16-1 opensuse-tumbleweed
407 msgid ""
408 "\\&CW<\\*(C`m//\\*(C'>, CW<\\*(C`pos\\*(C'>, \\&CW<\\*(C`qr//\\*(C'>, "
409 "\\&CW<\\*(C`quotemeta\\*(C'>, \\&CW<\\*(C`s///\\*(C'>, "
410 "\\&CW<\\*(C`split\\*(C'>, \\&CW<\\*(C`study\\*(C'>"
411 msgstr ""
412
413 #. type: IX
414 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
415 #: opensuse-leap-16-1 opensuse-tumbleweed
416 #, no-wrap
417 msgid "Numeric functions"
418 msgstr ""
419
420 #. type: IX
421 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
422 #: opensuse-leap-16-1 opensuse-tumbleweed
423 #, no-wrap
424 msgid "numeric number trigonometric trigonometry"
425 msgstr ""
426
427 #. type: Plain text
428 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
429 #: opensuse-leap-16-1 opensuse-tumbleweed
430 msgid ""
431 "\\&CW<\\*(C`abs\\*(C'>, CW<\\*(C`atan2\\*(C'>, CW<\\*(C`cos\\*(C'>, "
432 "\\&CW<\\*(C`exp\\*(C'>, CW<\\*(C`hex\\*(C'>, CW<\\*(C`int\\*(C'>, "
433 "\\&CW<\\*(C`log\\*(C'>, CW<\\*(C`oct\\*(C'>, CW<\\*(C`rand\\*(C'>, "
434 "\\&CW<\\*(C`sin\\*(C'>, CW<\\*(C`sqrt\\*(C'>, CW<\\*(C`srand\\*(C'>"
435 msgstr ""
436
437 #. type: IX
438 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
439 #: opensuse-leap-16-1 opensuse-tumbleweed
440 #, no-wrap
441 msgid "array"
442 msgstr ""
443
444 #. type: IX
445 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
446 #: opensuse-leap-16-1 opensuse-tumbleweed
447 #, no-wrap
448 msgid "Functions for real @ARRAYs"
449 msgstr ""
450
451 #. type: Plain text
452 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
453 #: opensuse-leap-16-1 opensuse-tumbleweed
454 msgid ""
455 "\\&CW<\\*(C`each\\*(C'>, CW<\\*(C`keys\\*(C'>, CW<\\*(C`pop\\*(C'>, "
456 "\\&CW<\\*(C`push\\*(C'>, CW<\\*(C`shift\\*(C'>, \\&CW<\\*(C`splice\\*(C'>, "
457 "\\&CW<\\*(C`unshift\\*(C'>, CW<\\*(C`values\\*(C'>"
458 msgstr ""
459
460 #. type: IX
461 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
462 #: opensuse-leap-16-1 opensuse-tumbleweed
463 #, no-wrap
464 msgid "Functions for list data"
465 msgstr ""
466
467 #. type: IX
468 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
469 #: opensuse-leap-16-1 opensuse-tumbleweed
470 #, no-wrap
471 msgid "list"
472 msgstr ""
473
474 #. type: Plain text
475 #: debian-trixie debian-unstable
476 msgid ""
477 "\\&CW<\\*(C`grep\\*(C'>, CW<\\*(C`join\\*(C'>, \\&CW<\\*(C`map\\*(C'>, "
478 "CW<\\*(C`qw//\\*(C'>, \\&CW<\\*(C`reverse\\*(C'>, CW<\\*(C`sort\\*(C'>, "
479 "\\&CW<\\*(C`unpack\\*(C'>"
480 msgstr ""
481
482 #. type: IX
483 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
484 #: opensuse-leap-16-1 opensuse-tumbleweed
485 #, no-wrap
486 msgid "hash"
487 msgstr ""
488
489 #. type: IX
490 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
491 #: opensuse-leap-16-1 opensuse-tumbleweed
492 #, no-wrap
493 msgid "Functions for real %HASHes"
494 msgstr ""
495
496 #. type: Plain text
497 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
498 #: opensuse-leap-16-1 opensuse-tumbleweed
499 msgid ""
500 "\\&CW<\\*(C`delete\\*(C'>, CW<\\*(C`each\\*(C'>, \\&CW<\\*(C`exists\\*(C'>, "
501 "CW<\\*(C`keys\\*(C'>, \\&CW<\\*(C`values\\*(C'>"
502 msgstr ""
503
504 #. type: IX
505 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
506 #: opensuse-leap-16-1 opensuse-tumbleweed
507 #, no-wrap
508 msgid "Input and output functions"
509 msgstr ""
510
511 #. type: IX
512 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
513 #: opensuse-leap-16-1 opensuse-tumbleweed
514 #, no-wrap
515 msgid "I O input output dbm"
516 msgstr ""
517
518 #. type: Plain text
519 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
520 #: opensuse-leap-16-1 opensuse-tumbleweed
521 msgid ""
522 "\\&CW<\\*(C`binmode\\*(C'>, CW<\\*(C`close\\*(C'>, "
523 "\\&CW<\\*(C`closedir\\*(C'>, CW<\\*(C`dbmclose\\*(C'>, "
524 "\\&CW<\\*(C`dbmopen\\*(C'>, CW<\\*(C`die\\*(C'>, \\&CW<\\*(C`eof\\*(C'>, "
525 "CW<\\*(C`fileno\\*(C'>, \\&CW<\\*(C`flock\\*(C'>, CW<\\*(C`format\\*(C'>, "
526 "\\&CW<\\*(C`getc\\*(C'>, CW<\\*(C`print\\*(C'>, \\&CW<\\*(C`printf\\*(C'>, "
527 "\\&CW<\\*(C`read\\*(C'>, \\&CW<\\*(C`readdir\\*(C'>, "
528 "CW<\\*(C`readline\\*(C'>, \\&CW<\\*(C`rewinddir\\*(C'>, CW<\\*(C`say\\*(C'>, "
529 "\\&CW<\\*(C`seek\\*(C'>, \\&CW<\\*(C`seekdir\\*(C'>, "
530 "\\&CW<\\*(C`select\\*(C'>, \\&CW<\\*(C`syscall\\*(C'>, "
531 "\\&CW<\\*(C`sysread\\*(C'>, \\&CW<\\*(C`sysseek\\*(C'>, "
532 "\\&CW<\\*(C`syswrite\\*(C'>, \\&CW<\\*(C`tell\\*(C'>, "
533 "CW<\\*(C`telldir\\*(C'>, \\&CW<\\*(C`truncate\\*(C'>, CW<\\*(C`warn\\*(C'>, "
534 "\\&CW<\\*(C`write\\*(C'>"
535 msgstr ""
536
537 #. type: Plain text
538 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
539 #: opensuse-leap-16-1 opensuse-tumbleweed
540 msgid ""
541 "\\&CW<\\*(C`say\\*(C'> is available only if the \\&CW<\"say\"> feature is "
542 "enabled or if it is prefixed with CW<\\*(C`CORE::\\*(C'>. The "
543 "\\&CW<\"say\"> feature is enabled automatically with a CW<\\*(C`use "
544 "v5.10\\*(C'> (or higher) declaration in the current scope."
545 msgstr ""
546
547 #. type: IX
548 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
549 #: opensuse-leap-16-1 opensuse-tumbleweed
550 #, no-wrap
551 msgid "Functions for fixed-length data or records"
552 msgstr ""
553
554 #. type: Plain text
555 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
556 #: opensuse-leap-16-1 opensuse-tumbleweed
557 msgid ""
558 "\\&CW<\\*(C`pack\\*(C'>, \\&CW<\\*(C`read\\*(C'>, "
559 "\\&CW<\\*(C`syscall\\*(C'>, \\&CW<\\*(C`sysread\\*(C'>, "
560 "\\&CW<\\*(C`sysseek\\*(C'>, \\&CW<\\*(C`syswrite\\*(C'>, "
561 "\\&CW<\\*(C`unpack\\*(C'>, CW<\\*(C`vec\\*(C'>"
562 msgstr ""
563
564 #. type: IX
565 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
566 #: opensuse-leap-16-1 opensuse-tumbleweed
567 #, no-wrap
568 msgid "Functions for filehandles, files, or directories"
569 msgstr ""
570
571 #. type: IX
572 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
573 #: opensuse-leap-16-1 opensuse-tumbleweed
574 #, no-wrap
575 msgid "file filehandle directory pipe link symlink"
576 msgstr ""
577
578 #. type: Plain text
579 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
580 #: opensuse-leap-16-1 opensuse-tumbleweed
581 msgid ""
582 "\\&CW<\\*(C`->\\f(CIXCW<\\*(C'>, CW<\\*(C`chdir\\*(C'>, "
583 "\\&CW<\\*(C`chmod\\*(C'>, CW<\\*(C`chown\\*(C'>, \\&CW<\\*(C`chroot\\*(C'>, "
584 "\\&CW<\\*(C`fcntl\\*(C'>, CW<\\*(C`glob\\*(C'>, \\&CW<\\*(C`ioctl\\*(C'>, "
585 "\\&CW<\\*(C`link\\*(C'>, CW<\\*(C`lstat\\*(C'>, \\&CW<\\*(C`mkdir\\*(C'>, "
586 "CW<\\*(C`open\\*(C'>, \\&CW<\\*(C`opendir\\*(C'>, CW<\\*(C`readlink\\*(C'>, "
587 "\\&CW<\\*(C`rename\\*(C'>, CW<\\*(C`rmdir\\*(C'>, \\&CW<\\*(C`select\\*(C'>, "
588 "CW<\\*(C`stat\\*(C'>, \\&CW<\\*(C`symlink\\*(C'>, "
589 "\\&CW<\\*(C`sysopen\\*(C'>, \\&CW<\\*(C`umask\\*(C'>, "
590 "CW<\\*(C`unlink\\*(C'>, \\&CW<\\*(C`utime\\*(C'>"
591 msgstr ""
592
593 #. type: IX
594 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
595 #: opensuse-leap-16-1 opensuse-tumbleweed
596 #, no-wrap
597 msgid "Keywords related to the control flow of your Perl program"
598 msgstr ""
599
600 #. type: IX
601 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
602 #: opensuse-leap-16-1 opensuse-tumbleweed
603 #, no-wrap
604 msgid "control flow"
605 msgstr ""
606
607 #. type: Plain text
608 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
609 #: opensuse-leap-16-1 opensuse-tumbleweed
610 msgid ""
611 "\\&CW<\\*(C`break\\*(C'>, CW<\\*(C`caller\\*(C'>, "
612 "\\&CW<\\*(C`continue\\*(C'>, CW<\\*(C`die\\*(C'>, CW<\\*(C`do\\*(C'>, "
613 "\\&CW<\\*(C`dump\\*(C'>, CW<\\*(C`eval\\*(C'>, \\&CW<\\*(C`evalbytes\\*(C'>, "
614 "CW<\\*(C`exit\\*(C'>, \\&CW<\\*(C`_\\|_FILE_\\|_\\*(C'>, "
615 "CW<\\*(C`goto\\*(C'>, \\&CW<\\*(C`last\\*(C'>, CW<\\*(C`_\\|_LINE_\\|"
616 "_\\*(C'>, \\&CW<\\*(C`method\\*(C'>, \\&CW<\\*(C`next\\*(C'>, CW<\\*(C`_\\|"
617 "_PACKAGE_\\|_\\*(C'>, \\&CW<\\*(C`redo\\*(C'>, CW<\\*(C`return\\*(C'>, "
618 "\\&CW<\\*(C`sub\\*(C'>, CW<\\*(C`_\\|_SUB_\\|_\\*(C'>, "
619 "\\&CW<\\*(C`wantarray\\*(C'>"
620 msgstr ""
621
622 #. type: Plain text
623 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
624 #: opensuse-leap-16-1 opensuse-tumbleweed
625 msgid ""
626 "\\&CW<\\*(C`break\\*(C'> is available only if you enable the experimental "
627 "\\&CW<\"switch\"> feature or use the CW<\\*(C`CORE::\\*(C'> prefix. The "
628 "CW<\"switch\"> feature also enables the CW<\\*(C`default\\*(C'>, "
629 "CW<\\*(C`given\\*(C'> and CW<\\*(C`when\\*(C'> statements, which are "
630 "documented in \"Switch Statements\" in perlsyn. The CW<\"switch\"> feature "
631 "is enabled automatically with a CW<\\*(C`use v5.10\\*(C'> (or higher) "
632 "declaration in the current scope. In Perl v5.14 and earlier, "
633 "CW<\\*(C`continue\\*(C'> required the CW<\"switch\"> feature, like the other "
634 "keywords."
635 msgstr ""
636
637 #. type: Plain text
638 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
639 #: opensuse-leap-16-1 opensuse-tumbleweed
640 msgid ""
641 "\\&CW<\\*(C`evalbytes\\*(C'> is only available with the \\&CW<\"evalbytes\"> "
642 "feature (see feature) or if prefixed with CW<\\*(C`CORE::\\*(C'>. "
643 "CW<\\*(C`_\\|_SUB_\\|_\\*(C'> is only available with the "
644 "\\&CW<\"current_sub\"> feature or if prefixed with CW<\\*(C`CORE::\\*(C'>. "
645 "Both the \\&CW<\"evalbytes\"> and CW<\"current_sub\"> features are enabled "
646 "automatically with a CW<\\*(C`use v5.16\\*(C'> (or higher) declaration in "
647 "the current scope."
648 msgstr ""
649
650 #. type: IX
651 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
652 #: opensuse-leap-16-1 opensuse-tumbleweed
653 #, no-wrap
654 msgid "Keywords related to scoping"
655 msgstr ""
656
657 #. type: Plain text
658 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
659 #: opensuse-leap-16-1 opensuse-tumbleweed
660 msgid ""
661 "\\&CW<\\*(C`caller\\*(C'>, \\&CW<\\*(C`class\\*(C'>, "
662 "\\&CW<\\*(C`field\\*(C'>, \\&CW<\\*(C`import\\*(C'>, "
663 "\\&CW<\\*(C`local\\*(C'>, \\&CW<\\*(C`my\\*(C'>, \\&CW<\\*(C`our\\*(C'>, "
664 "\\&CW<\\*(C`package\\*(C'>, \\&CW<\\*(C`state\\*(C'>, \\&CW<\\*(C`use\\*(C'>"
665 msgstr ""
666
667 #. type: Plain text
668 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
669 #: opensuse-leap-16-1 opensuse-tumbleweed
670 msgid ""
671 "\\&CW<\\*(C`state\\*(C'> is available only if the \\&CW<\"state\"> feature "
672 "is enabled or if it is prefixed with CW<\\*(C`CORE::\\*(C'>. The "
673 "\\&CW<\"state\"> feature is enabled automatically with a CW<\\*(C`use "
674 "v5.10\\*(C'> (or higher) declaration in the current scope."
675 msgstr ""
676
677 #. type: IX
678 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
679 #: opensuse-leap-16-1 opensuse-tumbleweed
680 #, no-wrap
681 msgid "Miscellaneous functions"
682 msgstr ""
683
684 #. type: Plain text
685 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
686 #: opensuse-leap-16-1 opensuse-tumbleweed
687 msgid ""
688 "\\&CW<\\*(C`defined\\*(C'>, CW<\\*(C`formline\\*(C'>, "
689 "\\&CW<\\*(C`lock\\*(C'>, CW<\\*(C`prototype\\*(C'>, "
690 "\\&CW<\\*(C`reset\\*(C'>, CW<\\*(C`scalar\\*(C'>, \\&CW<\\*(C`undef\\*(C'>"
691 msgstr ""
692
693 #. type: IX
694 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
695 #: opensuse-leap-16-1 opensuse-tumbleweed
696 #, no-wrap
697 msgid "Functions for processes and process groups"
698 msgstr ""
699
700 #. type: IX
701 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
702 #: opensuse-leap-16-1 opensuse-tumbleweed
703 #, no-wrap
704 msgid "process pid process id"
705 msgstr ""
706
707 #. type: Plain text
708 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
709 #: opensuse-leap-16-1 opensuse-tumbleweed
710 msgid ""
711 "\\&CW<\\*(C`alarm\\*(C'>, CW<\\*(C`exec\\*(C'>, CW<\\*(C`fork\\*(C'>, "
712 "\\&CW<\\*(C`getpgrp\\*(C'>, CW<\\*(C`getppid\\*(C'>, "
713 "\\&CW<\\*(C`getpriority\\*(C'>, CW<\\*(C`kill\\*(C'>, "
714 "\\&CW<\\*(C`pipe\\*(C'>, \\&CW<\\*(C`qx//\\*(C'>, "
715 "\\&CW<\\*(C`readpipe\\*(C'>, CW<\\*(C`setpgrp\\*(C'>, "
716 "\\&CW<\\*(C`setpriority\\*(C'>, \\&CW<\\*(C`sleep\\*(C'>, "
717 "CW<\\*(C`system\\*(C'>, CW<\\*(C`times\\*(C'>, \\&CW<\\*(C`wait\\*(C'>, "
718 "CW<\\*(C`waitpid\\*(C'>"
719 msgstr ""
720
721 #. type: IX
722 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
723 #: opensuse-leap-16-1 opensuse-tumbleweed
724 #, no-wrap
725 msgid "Keywords related to Perl modules"
726 msgstr ""
727
728 #. type: IX
729 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
730 #: opensuse-leap-16-1 opensuse-tumbleweed
731 #, no-wrap
732 msgid "module"
733 msgstr ""
734
735 #. type: Plain text
736 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
737 #: opensuse-leap-16-1 opensuse-tumbleweed
738 msgid ""
739 "\\&CW<\\*(C`do\\*(C'>, CW<\\*(C`import\\*(C'>, \\&CW<\\*(C`no\\*(C'>, "
740 "CW<\\*(C`package\\*(C'>, \\&CW<\\*(C`require\\*(C'>, CW<\\*(C`use\\*(C'>"
741 msgstr ""
742
743 #. type: IX
744 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
745 #: opensuse-leap-16-1 opensuse-tumbleweed
746 #, no-wrap
747 msgid "Keywords related to classes and object-orientation"
748 msgstr ""
749
750 #. type: IX
751 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
752 #: opensuse-leap-16-1 opensuse-tumbleweed
753 #, no-wrap
754 msgid "object class package"
755 msgstr ""
756
757 #. type: Plain text
758 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
759 #: opensuse-leap-16-1 opensuse-tumbleweed
760 msgid ""
761 "\\&CW<\\*(C`bless\\*(C'>, \\&CW<\\*(C`class\\*(C'>, \\&CW<\\*(C`_\\|"
762 "_CLASS_\\|_\\*(C'>, \\&CW<\\*(C`dbmclose\\*(C'>, \\&CW<\\*(C`dbmopen\\*(C'>, "
763 "\\&CW<\\*(C`field\\*(C'>, \\&CW<\\*(C`method\\*(C'>, "
764 "\\&CW<\\*(C`package\\*(C'>, \\&CW<\\*(C`ref\\*(C'>, \\&CW<\\*(C`tie\\*(C'>, "
765 "\\&CW<\\*(C`tied\\*(C'>, \\&CW<\\*(C`untie\\*(C'>, \\&CW<\\*(C`use\\*(C'>"
766 msgstr ""
767
768 #. type: IX
769 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
770 #: opensuse-leap-16-1 opensuse-tumbleweed
771 #, no-wrap
772 msgid "Low-level socket functions"
773 msgstr ""
774
775 #. type: IX
776 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
777 #: opensuse-leap-16-1 opensuse-tumbleweed
778 #, no-wrap
779 msgid "socket sock"
780 msgstr ""
781
782 #. type: Plain text
783 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
784 #: opensuse-leap-16-1 opensuse-tumbleweed
785 msgid ""
786 "\\&CW<\\*(C`accept\\*(C'>, \\&CW<\\*(C`bind\\*(C'>, CW<\\*(C`connect\\*(C'>, "
787 "\\&CW<\\*(C`getpeername\\*(C'>, \\&CW<\\*(C`getsockname\\*(C'>, "
788 "\\&CW<\\*(C`getsockopt\\*(C'>, \\&CW<\\*(C`listen\\*(C'>, "
789 "\\&CW<\\*(C`recv\\*(C'>, \\&CW<\\*(C`send\\*(C'>, "
790 "\\&CW<\\*(C`setsockopt\\*(C'>, \\&CW<\\*(C`shutdown\\*(C'>, "
791 "\\&CW<\\*(C`socket\\*(C'>, \\&CW<\\*(C`socketpair\\*(C'>"
792 msgstr ""
793
794 #. type: IX
795 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
796 #: opensuse-leap-16-1 opensuse-tumbleweed
797 #, no-wrap
798 msgid "System V interprocess communication functions"
799 msgstr ""
800
801 #. type: IX
802 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
803 #: opensuse-leap-16-1 opensuse-tumbleweed
804 #, no-wrap
805 msgid "IPC System V semaphore shared memory memory message"
806 msgstr ""
807
808 #. type: Plain text
809 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
810 #: opensuse-leap-16-1 opensuse-tumbleweed
811 msgid ""
812 "\\&CW<\\*(C`msgctl\\*(C'>, CW<\\*(C`msgget\\*(C'>, "
813 "\\&CW<\\*(C`msgrcv\\*(C'>, \\&CW<\\*(C`msgsnd\\*(C'>, "
814 "\\&CW<\\*(C`semctl\\*(C'>, \\&CW<\\*(C`semget\\*(C'>, CW<\\*(C`semop\\*(C'>, "
815 "\\&CW<\\*(C`shmctl\\*(C'>, CW<\\*(C`shmget\\*(C'>, "
816 "\\&CW<\\*(C`shmread\\*(C'>, \\&CW<\\*(C`shmwrite\\*(C'>"
817 msgstr ""
818
819 #. type: IX
820 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
821 #: opensuse-leap-16-1 opensuse-tumbleweed
822 #, no-wrap
823 msgid "Fetching user and group info"
824 msgstr ""
825
826 #. type: IX
827 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
828 #: opensuse-leap-16-1 opensuse-tumbleweed
829 #, no-wrap
830 msgid "user group password uid gid passwd etc passwd"
831 msgstr ""
832
833 #. type: Plain text
834 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
835 #: opensuse-leap-16-1 opensuse-tumbleweed
836 msgid ""
837 "\\&CW<\\*(C`endgrent\\*(C'>, CW<\\*(C`endhostent\\*(C'>, "
838 "\\&CW<\\*(C`endnetent\\*(C'>, CW<\\*(C`endpwent\\*(C'>, "
839 "\\&CW<\\*(C`getgrent\\*(C'>, CW<\\*(C`getgrgid\\*(C'>, "
840 "\\&CW<\\*(C`getgrnam\\*(C'>, CW<\\*(C`getlogin\\*(C'>, "
841 "\\&CW<\\*(C`getpwent\\*(C'>, CW<\\*(C`getpwnam\\*(C'>, "
842 "\\&CW<\\*(C`getpwuid\\*(C'>, CW<\\*(C`setgrent\\*(C'>, "
843 "\\&CW<\\*(C`setpwent\\*(C'>"
844 msgstr ""
845
846 #. type: IX
847 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
848 #: opensuse-leap-16-1 opensuse-tumbleweed
849 #, no-wrap
850 msgid "Fetching network info"
851 msgstr ""
852
853 #. type: IX
854 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
855 #: opensuse-leap-16-1 opensuse-tumbleweed
856 #, no-wrap
857 msgid "network protocol host hostname IP address service"
858 msgstr ""
859
860 #. type: Plain text
861 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
862 #: opensuse-leap-16-1 opensuse-tumbleweed
863 msgid ""
864 "\\&CW<\\*(C`endprotoent\\*(C'>, CW<\\*(C`endservent\\*(C'>, "
865 "\\&CW<\\*(C`gethostbyaddr\\*(C'>, \\&CW<\\*(C`gethostbyname\\*(C'>, "
866 "CW<\\*(C`gethostent\\*(C'>, \\&CW<\\*(C`getnetbyaddr\\*(C'>, "
867 "\\&CW<\\*(C`getnetbyname\\*(C'>, CW<\\*(C`getnetent\\*(C'>, "
868 "\\&CW<\\*(C`getprotobyname\\*(C'>, \\&CW<\\*(C`getprotobynumber\\*(C'>, "
869 "\\&CW<\\*(C`getprotoent\\*(C'>, \\&CW<\\*(C`getservbyname\\*(C'>, "
870 "\\&CW<\\*(C`getservbyport\\*(C'>, \\&CW<\\*(C`getservent\\*(C'>, "
871 "CW<\\*(C`sethostent\\*(C'>, \\&CW<\\*(C`setnetent\\*(C'>, "
872 "\\&CW<\\*(C`setprotoent\\*(C'>, \\&CW<\\*(C`setservent\\*(C'>"
873 msgstr ""
874
875 #. type: IX
876 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
877 #: opensuse-leap-16-1 opensuse-tumbleweed
878 #, no-wrap
879 msgid "Time-related functions"
880 msgstr ""
881
882 #. type: IX
883 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
884 #: opensuse-leap-16-1 opensuse-tumbleweed
885 #, no-wrap
886 msgid "time date"
887 msgstr ""
888
889 #. type: Plain text
890 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
891 #: opensuse-leap-16-1 opensuse-tumbleweed
892 msgid ""
893 "\\&CW<\\*(C`gmtime\\*(C'>, CW<\\*(C`localtime\\*(C'>, "
894 "\\&CW<\\*(C`time\\*(C'>, CW<\\*(C`times\\*(C'>"
895 msgstr ""
896
897 #. type: IX
898 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
899 #: opensuse-leap-16-1 opensuse-tumbleweed
900 #, no-wrap
901 msgid "Non-function keywords"
902 msgstr ""
903
904 #. type: Plain text
905 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
906 #: opensuse-leap-16-1 opensuse-tumbleweed
907 msgid ""
908 "\\&CW<\\*(C`ADJUST\\*(C'>, \\&CW<\\*(C`and\\*(C'>, "
909 "\\&CW<\\*(C`AUTOLOAD\\*(C'>, \\&CW<\\*(C`BEGIN\\*(C'>, "
910 "\\&CW<\\*(C`catch\\*(C'>, \\&CW<\\*(C`CHECK\\*(C'>, \\&CW<\\*(C`cmp\\*(C'>, "
911 "\\&CW<\\*(C`CORE\\*(C'>, \\&CW<\\*(C`_\\|_DATA_\\|_\\*(C'>, "
912 "\\&CW<\\*(C`default\\*(C'>, \\&CW<\\*(C`defer\\*(C'>, "
913 "\\&CW<\\*(C`DESTROY\\*(C'>, \\&CW<\\*(C`else\\*(C'>, "
914 "\\&CW<\\*(C`elseif\\*(C'>, \\&CW<\\*(C`elsif\\*(C'>, \\&CW<\\*(C`END\\*(C'>, "
915 "\\&CW<\\*(C`_\\|_END_\\|_\\*(C'>, \\&CW<\\*(C`eq\\*(C'>, "
916 "\\&CW<\\*(C`finally\\*(C'>, \\&CW<\\*(C`for\\*(C'>, "
917 "\\&CW<\\*(C`foreach\\*(C'>, \\&CW<\\*(C`ge\\*(C'>, \\&CW<\\*(C`given\\*(C'>, "
918 "\\&CW<\\*(C`gt\\*(C'>, \\&CW<\\*(C`if\\*(C'>, \\&CW<\\*(C`INIT\\*(C'>, "
919 "\\&CW<\\*(C`isa\\*(C'>, \\&CW<\\*(C`le\\*(C'>, \\&CW<\\*(C`lt\\*(C'>, "
920 "\\&CW<\\*(C`ne\\*(C'>, \\&CW<\\*(C`not\\*(C'>, \\&CW<\\*(C`or\\*(C'>, "
921 "\\&CW<\\*(C`try\\*(C'>, \\&CW<\\*(C`UNITCHECK\\*(C'>, "
922 "\\&CW<\\*(C`unless\\*(C'>, \\&CW<\\*(C`until\\*(C'>, "
923 "\\&CW<\\*(C`when\\*(C'>, \\&CW<\\*(C`while\\*(C'>, \\&CW<\\*(C`x\\*(C'>, "
924 "\\&CW<\\*(C`xor\\*(C'>"
925 msgstr ""
926
927 #. type: IX
928 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
929 #: opensuse-leap-16-1 opensuse-tumbleweed
930 #, no-wrap
931 msgid "Portability"
932 msgstr ""
933
934 #. type: IX
935 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
936 #: opensuse-leap-16-1 opensuse-tumbleweed
937 #, no-wrap
938 msgid "portability Unix portable"
939 msgstr ""
940
941 #. type: Plain text
942 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
943 #: opensuse-leap-16-1 opensuse-tumbleweed
944 msgid ""
945 "Perl was born in Unix and can therefore access all common Unix system "
946 "calls. In non-Unix environments, the functionality of some Unix system "
947 "calls may not be available or details of the available functionality may "
948 "differ slightly. The Perl functions affected by this are:"
949 msgstr ""
950
951 #. type: Plain text
952 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
953 #: opensuse-leap-16-1 opensuse-tumbleweed
954 msgid ""
955 "\\&CW<\\*(C`->\\f(CIXCW<\\*(C'>, CW<\\*(C`binmode\\*(C'>, "
956 "\\&CW<\\*(C`chmod\\*(C'>, CW<\\*(C`chown\\*(C'>, \\&CW<\\*(C`chroot\\*(C'>, "
957 "CW<\\*(C`crypt\\*(C'>, \\&CW<\\*(C`dbmclose\\*(C'>, CW<\\*(C`dbmopen\\*(C'>, "
958 "\\&CW<\\*(C`dump\\*(C'>, CW<\\*(C`endgrent\\*(C'>, "
959 "\\&CW<\\*(C`endhostent\\*(C'>, CW<\\*(C`endnetent\\*(C'>, "
960 "\\&CW<\\*(C`endprotoent\\*(C'>, CW<\\*(C`endpwent\\*(C'>, "
961 "\\&CW<\\*(C`endservent\\*(C'>, CW<\\*(C`exec\\*(C'>, "
962 "\\&CW<\\*(C`fcntl\\*(C'>, \\&CW<\\*(C`flock\\*(C'>, CW<\\*(C`fork\\*(C'>, "
963 "\\&CW<\\*(C`getgrent\\*(C'>, CW<\\*(C`getgrgid\\*(C'>, "
964 "\\&CW<\\*(C`gethostbyname\\*(C'>, CW<\\*(C`gethostent\\*(C'>, "
965 "\\&CW<\\*(C`getlogin\\*(C'>, \\&CW<\\*(C`getnetbyaddr\\*(C'>, "
966 "\\&CW<\\*(C`getnetbyname\\*(C'>, CW<\\*(C`getnetent\\*(C'>, "
967 "\\&CW<\\*(C`getppid\\*(C'>, CW<\\*(C`getpgrp\\*(C'>, "
968 "\\&CW<\\*(C`getpriority\\*(C'>, \\&CW<\\*(C`getprotobynumber\\*(C'>, "
969 "\\&CW<\\*(C`getprotoent\\*(C'>, CW<\\*(C`getpwent\\*(C'>, "
970 "\\&CW<\\*(C`getpwnam\\*(C'>, CW<\\*(C`getpwuid\\*(C'>, "
971 "\\&CW<\\*(C`getservbyport\\*(C'>, \\&CW<\\*(C`getservent\\*(C'>, "
972 "\\&CW<\\*(C`getsockopt\\*(C'>, \\&CW<\\*(C`glob\\*(C'>, "
973 "CW<\\*(C`ioctl\\*(C'>, \\&CW<\\*(C`kill\\*(C'>, CW<\\*(C`link\\*(C'>, "
974 "\\&CW<\\*(C`lstat\\*(C'>, CW<\\*(C`msgctl\\*(C'>, \\&CW<\\*(C`msgget\\*(C'>, "
975 "\\&CW<\\*(C`msgrcv\\*(C'>, \\&CW<\\*(C`msgsnd\\*(C'>, CW<\\*(C`open\\*(C'>, "
976 "\\&CW<\\*(C`pipe\\*(C'>, CW<\\*(C`readlink\\*(C'>, "
977 "\\&CW<\\*(C`rename\\*(C'>, \\&CW<\\*(C`select\\*(C'>, "
978 "\\&CW<\\*(C`semctl\\*(C'>, \\&CW<\\*(C`semget\\*(C'>, CW<\\*(C`semop\\*(C'>, "
979 "\\&CW<\\*(C`setgrent\\*(C'>, CW<\\*(C`sethostent\\*(C'>, "
980 "\\&CW<\\*(C`setnetent\\*(C'>, CW<\\*(C`setpgrp\\*(C'>, "
981 "\\&CW<\\*(C`setpriority\\*(C'>, \\&CW<\\*(C`setprotoent\\*(C'>, "
982 "CW<\\*(C`setpwent\\*(C'>, \\&CW<\\*(C`setservent\\*(C'>, "
983 "\\&CW<\\*(C`setsockopt\\*(C'>, \\&CW<\\*(C`shmctl\\*(C'>, "
984 "CW<\\*(C`shmget\\*(C'>, \\&CW<\\*(C`shmread\\*(C'>, "
985 "\\&CW<\\*(C`shmwrite\\*(C'>, \\&CW<\\*(C`socket\\*(C'>, "
986 "\\&CW<\\*(C`socketpair\\*(C'>, \\&CW<\\*(C`stat\\*(C'>, "
987 "CW<\\*(C`symlink\\*(C'>, \\&CW<\\*(C`syscall\\*(C'>, "
988 "\\&CW<\\*(C`sysopen\\*(C'>, \\&CW<\\*(C`system\\*(C'>, "
989 "CW<\\*(C`times\\*(C'>, \\&CW<\\*(C`truncate\\*(C'>, CW<\\*(C`umask\\*(C'>, "
990 "\\&CW<\\*(C`unlink\\*(C'>, CW<\\*(C`utime\\*(C'>, CW<\\*(C`wait\\*(C'>, "
991 "\\&CW<\\*(C`waitpid\\*(C'>"
992 msgstr ""
993
994 #. type: Plain text
995 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
996 #: opensuse-leap-16-1 opensuse-tumbleweed
997 msgid ""
998 "For more information about the portability of these functions, see perlport "
999 "and other available platform-specific documentation."
1000 msgstr ""
1001
1002 #. type: IX
1003 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1004 #: opensuse-leap-16-1 opensuse-tumbleweed
1005 #, no-wrap
1006 msgid "Alphabetical Listing of Perl Functions"
1007 msgstr ""
1008
1009 #. type: IX
1010 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1011 #: opensuse-leap-16-1 opensuse-tumbleweed
1012 #, no-wrap
1013 msgid "-X FILEHANDLE"
1014 msgstr ""
1015
1016 #. type: IX
1017 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1018 #: opensuse-leap-16-1 opensuse-tumbleweed
1019 #, no-wrap
1020 msgid "-r -w -x -o -R -W -X -O -e -z -s -f -d -l -p -S -b -c -t -u -g -k -T -B -M -A -C"
1021 msgstr ""
1022
1023 #. type: IX
1024 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1025 #: opensuse-leap-16-1 opensuse-tumbleweed
1026 #, no-wrap
1027 msgid "-X EXPR"
1028 msgstr ""
1029
1030 #. type: IX
1031 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1032 #: opensuse-leap-16-1 opensuse-tumbleweed
1033 #, no-wrap
1034 msgid "-X DIRHANDLE"
1035 msgstr ""
1036
1037 #. type: IX
1038 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1039 #: opensuse-leap-16-1 opensuse-tumbleweed
1040 #, no-wrap
1041 msgid "-X"
1042 msgstr ""
1043
1044 #. type: Plain text
1045 #: debian-trixie debian-unstable
1046 msgid ""
1047 "A file test, where X is one of the letters listed below. This unary "
1048 "operator takes one argument, either a filename, a filehandle, or a "
1049 "dirhandle, and tests the associated file to see if something is true about "
1050 "it. If the argument is omitted, tests CW<$_>, except for CW<\\*(C`-"
1051 "t\\*(C'>, which tests STDIN. Unless otherwise documented, it returns CW<1> "
1052 "for true and \\&CW<\\*(Aq\\*(Aq> for false. If the file doesn't exist or "
1053 "can't be examined, it returns CW<\\*(C`undef\\*(C'> and sets CW<$!> "
1054 "(errno). With the exception of the CW<\\*(C`-l\\*(C'> test they all follow "
1055 "symbolic links because they use CW<stat()> and not CW<lstat()> (so dangling "
1056 "symlinks can't be examined and will therefore report failure)."
1057 msgstr ""
1058
1059 #. type: Plain text
1060 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1061 #: opensuse-leap-16-1 opensuse-tumbleweed
1062 msgid ""
1063 "Despite the funny names, precedence is the same as any other named unary "
1064 "operator. The operator may be any of:"
1065 msgstr ""
1066
1067 #. type: Plain text
1068 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1069 #: opensuse-leap-16-1 opensuse-tumbleweed
1070 #, no-wrap
1071 msgid ""
1072 "\\& -r File is readable by effective uid/gid.\n"
1073 "\\& -w File is writable by effective uid/gid.\n"
1074 "\\& -x File is executable by effective uid/gid.\n"
1075 "\\& -o File is owned by effective uid.\n"
1076 "\\&\n"
1077 "\\& -R File is readable by real uid/gid.\n"
1078 "\\& -W File is writable by real uid/gid.\n"
1079 "\\& -X File is executable by real uid/gid.\n"
1080 "\\& -O File is owned by real uid.\n"
1081 "\\&\n"
1082 "\\& -e File exists.\n"
1083 "\\& -z File has zero size (is empty).\n"
1084 "\\& -s File has nonzero size (returns size in bytes).\n"
1085 "\\&\n"
1086 "\\& -f File is a plain file.\n"
1087 "\\& -d File is a directory.\n"
1088 "\\& -l File is a symbolic link (false if symlinks aren\\*(Aqt\n"
1089 "\\& supported by the file system).\n"
1090 "\\& -p File is a named pipe (FIFO), or Filehandle is a pipe.\n"
1091 "\\& -S File is a socket.\n"
1092 "\\& -b File is a block special file.\n"
1093 "\\& -c File is a character special file.\n"
1094 "\\& -t Filehandle is opened to a tty.\n"
1095 "\\&\n"
1096 "\\& -u File has setuid bit set.\n"
1097 "\\& -g File has setgid bit set.\n"
1098 "\\& -k File has sticky bit set.\n"
1099 "\\&\n"
1100 "\\& -T File is an ASCII or UTF-8 text file (heuristic guess).\n"
1101 "\\& -B File is a \"binary\" file (opposite of -T).\n"
1102 "\\&\n"
1103 "\\& -M Script start time minus file modification time, in days.\n"
1104 "\\& -A Same for access time.\n"
1105 "\\& -C Same for inode change time (Unix, may differ for other\n"
1106 "\\& platforms)\n"
1107 msgstr ""
1108
1109 #. type: Plain text
1110 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1111 #: opensuse-leap-16-1 opensuse-tumbleweed
1112 msgid "Example:"
1113 msgstr ""
1114
1115 #. type: Plain text
1116 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1117 #: opensuse-leap-16-1 opensuse-tumbleweed
1118 #, no-wrap
1119 msgid ""
1120 "\\& while (E<lt>E<gt>) {\n"
1121 "\\& chomp;\n"
1122 "\\& next unless -f $_; # ignore specials\n"
1123 "\\& #...\n"
1124 "\\& }\n"
1125 msgstr ""
1126
1127 #. type: Plain text
1128 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1129 #: opensuse-leap-16-1 opensuse-tumbleweed
1130 msgid ""
1131 "Note that CW<\\*(C`-s/a/b/\\*(C'> does not do a negated substitution. "
1132 "Saying \\&CW<\\*(C`-exp($foo)\\*(C'> still works as expected, however: only "
1133 "single letters following a minus are interpreted as file tests."
1134 msgstr ""
1135
1136 #. type: Plain text
1137 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1138 #: opensuse-leap-16-1 opensuse-tumbleweed
1139 msgid ""
1140 "These operators are exempt from the \"looks like a function rule\" described "
1141 "above. That is, an opening parenthesis after the operator does not affect "
1142 "how much of the following code constitutes the argument. Put the opening "
1143 "parentheses before the operator to separate it from code that follows (this "
1144 "applies only to operators with higher precedence than unary operators, of "
1145 "course):"
1146 msgstr ""
1147
1148 #. type: Plain text
1149 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1150 #: opensuse-leap-16-1 opensuse-tumbleweed
1151 #, no-wrap
1152 msgid ""
1153 "\\& -s($file) + 1024 # probably wrong; same as -s($file + 1024)\n"
1154 "\\& (-s $file) + 1024 # correct\n"
1155 msgstr ""
1156
1157 #. type: Plain text
1158 #: debian-trixie debian-unstable
1159 msgid ""
1160 "The interpretation of the file permission operators CW<\\*(C`-r\\*(C'>, "
1161 "CW<\\*(C`-R\\*(C'>, \\&CW<\\*(C`-w\\*(C'>, CW<\\*(C`-W\\*(C'>, CW<\\*(C`-"
1162 "x\\*(C'>, and CW<\\*(C`-X\\*(C'> is by default based solely on the mode of "
1163 "the file and the uids and gids of the user. There may be other reasons you "
1164 "can't actually read, write, or execute the file: for example network "
1165 "filesystem access controls, ACLs (access control lists), read-only "
1166 "filesystems, and unrecognized executable formats. Note that the use of "
1167 "these six specific operators to verify if some operation is possible is "
1168 "usually a mistake, because it may be open to race conditions."
1169 msgstr ""
1170
1171 #. type: Plain text
1172 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1173 #: opensuse-leap-16-1 opensuse-tumbleweed
1174 msgid ""
1175 "Also note that, for the superuser on the local filesystems, the CW<\\*(C`-"
1176 "r\\*(C'>, \\&CW<\\*(C`-R\\*(C'>, CW<\\*(C`-w\\*(C'>, and CW<\\*(C`-W\\*(C'> "
1177 "tests always return 1, and CW<\\*(C`-x\\*(C'> and CW<\\*(C`-X\\*(C'> return "
1178 "1 if any execute bit is set in the mode. Scripts run by the superuser may "
1179 "thus need to do a CW<\\*(C`stat\\*(C'> to determine the actual mode of the "
1180 "file, or temporarily set their effective uid to something else."
1181 msgstr ""
1182
1183 #. type: Plain text
1184 #: debian-trixie debian-unstable
1185 msgid ""
1186 "If you are using ACLs, there is a pragma called CW<\\*(C`filetest\\*(C'> "
1187 "that may produce more accurate results than the bare \\&CW<\\*(C`stat\\*(C'> "
1188 "mode bits. When under CW<\\*(C`use filetest \\*(Aqaccess\\*(Aq\\*(C'>, the "
1189 "above-mentioned filetests test whether the permission can(not) be granted "
1190 "using the B<access>\\|(2) family of system calls. Also note that the "
1191 "CW<\\*(C`-x\\*(C'> and CW<\\*(C`-X\\*(C'> tests may under this pragma return "
1192 "true even if there are no execute permission bits set (nor any extra execute "
1193 "permission ACLs). This strangeness is due to the underlying system calls' "
1194 "definitions. Note also that, due to the implementation of CW<\\*(C`use "
1195 "filetest \\*(Aqaccess\\*(Aq\\*(C'>, the CW<\\*(C`_\\*(C'> special filehandle "
1196 "won't cache the results of the file tests when this pragma is in effect. "
1197 "Read the documentation for the CW<\\*(C`filetest\\*(C'> pragma for more "
1198 "information."
1199 msgstr ""
1200
1201 #. type: Plain text
1202 #: debian-trixie debian-unstable
1203 msgid ""
1204 "The CW<\\*(C`-T\\*(C'> and CW<\\*(C`-B\\*(C'> tests work as follows. The "
1205 "first block or so of the file is examined to see if it is valid UTF-8 that "
1206 "includes non-ASCII characters. If so, it's a CW<\\*(C`-T\\*(C'> file. "
1207 "Otherwise, that same portion of the file is examined for odd characters such "
1208 "as strange control codes or characters with the high bit set. If more than "
1209 "a third of the characters are strange, it's a CW<\\*(C`-B\\*(C'> file; "
1210 "otherwise it's a CW<\\*(C`-T\\*(C'> file. Also, any file containing a zero "
1211 "byte in the examined portion is considered a binary file. (If executed "
1212 "within the scope of a use\\ locale which includes CW<\\*(C`LC_CTYPE\\*(C'>, "
1213 "odd characters are anything that isn't a printable nor space in the current "
1214 "locale.) If \\&CW<\\*(C`-T\\*(C'> or CW<\\*(C`-B\\*(C'> is used on a "
1215 "filehandle, the current IO buffer is examined rather than the first block. "
1216 "Both CW<\\*(C`-T\\*(C'> and CW<\\*(C`-B\\*(C'> return true on an empty file, "
1217 "or a file at EOF when testing a filehandle. Because you have to read a file "
1218 "to do the CW<\\*(C`-T\\*(C'> test, on most occasions you want to use a "
1219 "CW<\\*(C`-f\\*(C'> against the file first, as in CW<\\*(C`next unless -f "
1220 "$file && -T $file\\*(C'>."
1221 msgstr ""
1222
1223 #. type: Plain text
1224 #: debian-trixie debian-unstable
1225 msgid ""
1226 "If any of the file tests (or either the CW<\\*(C`stat\\*(C'> or "
1227 "\\&CW<\\*(C`lstat\\*(C'> operator) is given the special filehandle "
1228 "consisting of a solitary underline, then the stat structure of the previous "
1229 "file test (or CW<\\*(C`stat\\*(C'> operator) is used, saving a system call. "
1230 "(This doesn't work with CW<\\*(C`-t\\*(C'>, and you need to remember that "
1231 "CW<\\*(C`lstat\\*(C'> and CW<\\*(C`-l\\*(C'> leave values in the stat "
1232 "structure for the symbolic link, not the real file.) (Also, if the stat "
1233 "buffer was filled by an CW<\\*(C`lstat\\*(C'> call, \\&CW<\\*(C`-T\\*(C'> "
1234 "and CW<\\*(C`-B\\*(C'> will reset it with the results of CW<\\*(C`stat "
1235 "_\\*(C'>). Example:"
1236 msgstr ""
1237
1238 #. type: Plain text
1239 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1240 #: opensuse-leap-16-1 opensuse-tumbleweed
1241 #, no-wrap
1242 msgid ""
1243 "\\& print \"Can do.\\en\" if -r $x || -w _ || -x _;\n"
1244 "\\&\n"
1245 "\\& stat($filename);\n"
1246 "\\& print \"Readable\\en\" if -r _;\n"
1247 "\\& print \"Writable\\en\" if -w _;\n"
1248 "\\& print \"Executable\\en\" if -x _;\n"
1249 "\\& print \"Setuid\\en\" if -u _;\n"
1250 "\\& print \"Setgid\\en\" if -g _;\n"
1251 "\\& print \"Sticky\\en\" if -k _;\n"
1252 "\\& print \"Text\\en\" if -T _;\n"
1253 "\\& print \"Binary\\en\" if -B _;\n"
1254 msgstr ""
1255
1256 #. type: Plain text
1257 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1258 #: opensuse-leap-16-1 opensuse-tumbleweed
1259 msgid ""
1260 "As of Perl 5.10.0, as a form of purely syntactic sugar, you can stack file "
1261 "test operators, in a way that CW<\\*(C`-f -w -x $file\\*(C'> is equivalent "
1262 "to \\&CW<\\*(C`-x $file && -w _ && -f _\\*(C'>. (This is only fancy syntax: "
1263 "if you use the return value of CW<\\*(C`-f $file\\*(C'> as an argument to "
1264 "another filetest operator, no special magic will happen.)"
1265 msgstr ""
1266
1267 #. type: Plain text
1268 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1269 #: opensuse-leap-16-1 opensuse-tumbleweed
1270 msgid "Portability issues: \"-X\" in perlport."
1271 msgstr ""
1272
1273 #. type: Plain text
1274 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1275 #: opensuse-leap-16-1 opensuse-tumbleweed
1276 msgid ""
1277 "To avoid confusing would-be users of your code with mysterious syntax "
1278 "errors, put something like this at the top of your script:"
1279 msgstr ""
1280
1281 #. type: Plain text
1282 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1283 #: opensuse-leap-16-1 opensuse-tumbleweed
1284 #, no-wrap
1285 msgid "\\& use v5.10; # so filetest ops can stack\n"
1286 msgstr ""
1287
1288 #. type: IX
1289 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1290 #: opensuse-leap-16-1 opensuse-tumbleweed
1291 #, no-wrap
1292 msgid "abs VALUE"
1293 msgstr ""
1294
1295 #. type: IX
1296 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1297 #: opensuse-leap-16-1 opensuse-tumbleweed
1298 #, no-wrap
1299 msgid "abs absolute"
1300 msgstr ""
1301
1302 #. type: IX
1303 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1304 #: opensuse-leap-16-1 opensuse-tumbleweed
1305 #, no-wrap
1306 msgid "abs"
1307 msgstr ""
1308
1309 #. type: Plain text
1310 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1311 #: opensuse-leap-16-1 opensuse-tumbleweed
1312 msgid ""
1313 "Returns the absolute value of its argument. If VALUE is omitted, uses "
1314 "CW<$_>."
1315 msgstr ""
1316
1317 #. type: IX
1318 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1319 #: opensuse-leap-16-1 opensuse-tumbleweed
1320 #, no-wrap
1321 msgid "accept NEWSOCKET,GENERICSOCKET"
1322 msgstr ""
1323
1324 #. type: IX
1325 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1326 #: opensuse-leap-16-1 opensuse-tumbleweed
1327 #, no-wrap
1328 msgid "accept"
1329 msgstr ""
1330
1331 #. type: Plain text
1332 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1333 #: opensuse-leap-16-1 opensuse-tumbleweed
1334 msgid ""
1335 "Accepts an incoming socket connect, just as B<accept>\\|(2) does. Returns "
1336 "the packed address if it succeeded, false otherwise. See the example in "
1337 "\"Sockets: Client/Server Communication\" in perlipc."
1338 msgstr ""
1339
1340 #. type: Plain text
1341 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1342 #: opensuse-leap-16-1 opensuse-tumbleweed
1343 msgid ""
1344 "On systems that support a close-on-exec flag on files, the flag will be set "
1345 "for the newly opened file descriptor, as determined by the value of "
1346 "CW<$^F>. See \"$^F\" in perlvar."
1347 msgstr ""
1348
1349 #. type: IX
1350 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1351 #: opensuse-leap-16-1 opensuse-tumbleweed
1352 #, no-wrap
1353 msgid "alarm SECONDS"
1354 msgstr ""
1355
1356 #. type: IX
1357 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1358 #: opensuse-leap-16-1 opensuse-tumbleweed
1359 #, no-wrap
1360 msgid "alarm SIGALRM timer"
1361 msgstr ""
1362
1363 #. type: IX
1364 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1365 #: opensuse-leap-16-1 opensuse-tumbleweed
1366 #, no-wrap
1367 msgid "alarm"
1368 msgstr ""
1369
1370 #. type: Plain text
1371 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1372 #: opensuse-leap-16-1 opensuse-tumbleweed
1373 msgid ""
1374 "Arranges to have a SIGALRM delivered to this process after the specified "
1375 "number of wallclock seconds has elapsed. If SECONDS is not specified, the "
1376 "value stored in CW<$_> is used. (On some machines, unfortunately, the "
1377 "elapsed time may be up to one second less or more than you specified because "
1378 "of how seconds are counted, and process scheduling may delay the delivery of "
1379 "the signal even further.)"
1380 msgstr ""
1381
1382 #. type: Plain text
1383 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1384 #: opensuse-leap-16-1 opensuse-tumbleweed
1385 msgid ""
1386 "Only one timer may be counting at once. Each call disables the previous "
1387 "timer, and an argument of CW<0> may be supplied to cancel the previous timer "
1388 "without starting a new one. The returned value is the amount of time "
1389 "remaining on the previous timer."
1390 msgstr ""
1391
1392 #. type: Plain text
1393 #: debian-trixie debian-unstable
1394 msgid ""
1395 "For delays of finer granularity than one second, the Time::HiRes module "
1396 "(from CPAN, and starting from Perl 5.8 part of the standard distribution) "
1397 "provides \\&CW<\\*(C`ualarm\\*(C'>. You may also use Perl's four-argument "
1398 "version of \\&CW<\\*(C`select\\*(C'> leaving the first three arguments "
1399 "undefined, or you might be able to use the \\&CW<\\*(C`syscall\\*(C'> "
1400 "interface to access B<setitimer>\\|(2) if your system supports it. See "
1401 "perlfaq8 for details."
1402 msgstr ""
1403
1404 #. type: Plain text
1405 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1406 #: opensuse-leap-16-1 opensuse-tumbleweed
1407 msgid ""
1408 "It is usually a mistake to intermix CW<\\*(C`alarm\\*(C'> and "
1409 "\\&CW<\\*(C`sleep\\*(C'> calls, because CW<\\*(C`sleep\\*(C'> may be "
1410 "internally implemented on your system with CW<\\*(C`alarm\\*(C'>."
1411 msgstr ""
1412
1413 #. type: Plain text
1414 #: debian-trixie debian-unstable
1415 msgid ""
1416 "If you want to use CW<\\*(C`alarm\\*(C'> to time out a system call you need "
1417 "to use an CW<\\*(C`eval\\*(C'>/CW<\\*(C`die\\*(C'> pair. You can't rely on "
1418 "the alarm causing the system call to fail with \\&CW<$!> set to "
1419 "CW<\\*(C`EINTR\\*(C'> because Perl sets up signal handlers to restart system "
1420 "calls on some systems. Using \\&CW<\\*(C`eval\\*(C'>/CW<\\*(C`die\\*(C'> "
1421 "always works, modulo the caveats given in \"Signals\" in perlipc."
1422 msgstr ""
1423
1424 #. type: Plain text
1425 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1426 #: opensuse-leap-16-1 opensuse-tumbleweed
1427 #, no-wrap
1428 msgid ""
1429 "\\& eval {\n"
1430 "\\& local $SIG{ALRM} = sub { die \"alarm\\en\" }; # NB: \\en required\n"
1431 "\\& alarm $timeout;\n"
1432 "\\& my $nread = sysread $socket, $buffer, $size;\n"
1433 "\\& alarm 0;\n"
1434 "\\& };\n"
1435 "\\& if ($@) {\n"
1436 "\\& die unless $@ eq \"alarm\\en\"; # propagate unexpected errors\n"
1437 "\\& # timed out\n"
1438 "\\& }\n"
1439 "\\& else {\n"
1440 "\\& # didn\\*(Aqt\n"
1441 "\\& }\n"
1442 msgstr ""
1443
1444 #. type: Plain text
1445 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1446 #: opensuse-leap-16-1 opensuse-tumbleweed
1447 msgid "For more information see perlipc."
1448 msgstr ""
1449
1450 #. type: Plain text
1451 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1452 #: opensuse-leap-16-1 opensuse-tumbleweed
1453 msgid "Portability issues: \"alarm\" in perlport."
1454 msgstr ""
1455
1456 #. type: IX
1457 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1458 #: opensuse-leap-16-1 opensuse-tumbleweed
1459 #, no-wrap
1460 msgid "atan2 Y,X"
1461 msgstr ""
1462
1463 #. type: IX
1464 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1465 #: opensuse-leap-16-1 opensuse-tumbleweed
1466 #, no-wrap
1467 msgid "atan2 arctangent tan tangent"
1468 msgstr ""
1469
1470 #. type: Plain text
1471 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1472 #: opensuse-leap-16-1 opensuse-tumbleweed
1473 msgid "Returns the arctangent of Y/X in the range -PI to PI."
1474 msgstr ""
1475
1476 #. type: Plain text
1477 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1478 #: opensuse-leap-16-1 opensuse-tumbleweed
1479 msgid ""
1480 "For the tangent operation, you may use the "
1481 "\\&CW<\\*(C`Math::Trig::tan\\*(C'> function, or use the familiar relation:"
1482 msgstr ""
1483
1484 #. type: Plain text
1485 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1486 #: opensuse-leap-16-1 opensuse-tumbleweed
1487 #, no-wrap
1488 msgid "\\& sub tan { sin($_[0]) / cos($_[0]) }\n"
1489 msgstr ""
1490
1491 #. type: Plain text
1492 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1493 #: opensuse-leap-16-1 opensuse-tumbleweed
1494 msgid ""
1495 "The return value for CW<\\*(C`atan2(0,0)\\*(C'> is implementation-defined; "
1496 "consult your B<atan2>\\|(3) manpage for more information."
1497 msgstr ""
1498
1499 #. type: Plain text
1500 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1501 #: opensuse-leap-16-1 opensuse-tumbleweed
1502 msgid "Portability issues: \"atan2\" in perlport."
1503 msgstr ""
1504
1505 #. type: IX
1506 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1507 #: opensuse-leap-16-1 opensuse-tumbleweed
1508 #, no-wrap
1509 msgid "bind SOCKET,NAME"
1510 msgstr ""
1511
1512 #. type: IX
1513 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1514 #: opensuse-leap-16-1 opensuse-tumbleweed
1515 #, no-wrap
1516 msgid "bind"
1517 msgstr ""
1518
1519 #. type: Plain text
1520 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1521 #: opensuse-leap-16-1 opensuse-tumbleweed
1522 msgid ""
1523 "Binds a network address to a socket, just as B<bind>\\|(2) does. Returns "
1524 "true if it succeeded, false otherwise. NAME should be a packed address of "
1525 "the appropriate type for the socket. See the examples in \"Sockets: Client/"
1526 "Server Communication\" in perlipc."
1527 msgstr ""
1528
1529 #. type: IX
1530 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1531 #: opensuse-leap-16-1 opensuse-tumbleweed
1532 #, no-wrap
1533 msgid "binmode FILEHANDLE, LAYER"
1534 msgstr ""
1535
1536 #. type: IX
1537 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1538 #: opensuse-leap-16-1 opensuse-tumbleweed
1539 #, no-wrap
1540 msgid "binmode binary text DOS Windows"
1541 msgstr ""
1542
1543 #. type: IX
1544 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1545 #: opensuse-leap-16-1 opensuse-tumbleweed
1546 #, no-wrap
1547 msgid "binmode FILEHANDLE"
1548 msgstr ""
1549
1550 #. type: Plain text
1551 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1552 #: opensuse-leap-16-1 opensuse-tumbleweed
1553 msgid ""
1554 "Arranges for FILEHANDLE to be read or written in \"binary\" or \"text\" mode "
1555 "on systems where the run-time libraries distinguish between binary and text "
1556 "files. If FILEHANDLE is an expression, the value is taken as the name of "
1557 "the filehandle. Returns true on success, otherwise it returns "
1558 "CW<\\*(C`undef\\*(C'> and sets \\&CW<$!> (errno)."
1559 msgstr ""
1560
1561 #. type: Plain text
1562 #: debian-trixie debian-unstable
1563 msgid ""
1564 "On some systems (in general, DOS- and Windows-based systems) "
1565 "\\&CW<\\*(C`binmode\\*(C'> is necessary when you're not working with a text "
1566 "file. For the sake of portability it is a good idea always to use it when "
1567 "appropriate, and never to use it when it isn't appropriate. Also, people "
1568 "can set their I/O to be by default UTF8-encoded Unicode, not bytes."
1569 msgstr ""
1570
1571 #. type: Plain text
1572 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1573 #: opensuse-leap-16-1 opensuse-tumbleweed
1574 msgid ""
1575 "In other words: regardless of platform, use \\&CW<\\*(C`binmode\\*(C'> on "
1576 "binary data, like images, for example."
1577 msgstr ""
1578
1579 #. type: Plain text
1580 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1581 #: opensuse-leap-16-1 opensuse-tumbleweed
1582 msgid ""
1583 "If LAYER is present it is a single string, but may contain multiple "
1584 "directives. The directives alter the behaviour of the filehandle. When "
1585 "LAYER is present, using binmode on a text file makes sense."
1586 msgstr ""
1587
1588 #. type: Plain text
1589 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1590 #: opensuse-leap-16-1 opensuse-tumbleweed
1591 msgid ""
1592 "If LAYER is omitted or specified as CW<\\*(C`:raw\\*(C'> the filehandle is "
1593 "made suitable for passing binary data. This includes turning off possible "
1594 "CRLF translation and marking it as bytes (as opposed to Unicode "
1595 "characters). Note that, despite what may be implied in I<\"Programming "
1596 "Perl\"> (the Camel, 3rd edition) or elsewhere, CW<\\*(C`:raw\\*(C'> is "
1597 "I<not> simply the inverse of CW<\\*(C`:crlf\\*(C'>. Other layers that would "
1598 "affect the binary nature of the stream are \\&I<also> disabled. See PerlIO, "
1599 "and the discussion about the PERLIO environment variable in perlrun."
1600 msgstr ""
1601
1602 #. type: Plain text
1603 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1604 #: opensuse-leap-16-1 opensuse-tumbleweed
1605 msgid ""
1606 "The CW<\\*(C`:bytes\\*(C'>, CW<\\*(C`:crlf\\*(C'>, CW<\\*(C`:utf8\\*(C'>, "
1607 "and any other directives of the form CW<\\*(C`:...\\*(C'>, are called I/O "
1608 "I<layers>. The open pragma can be used to establish default I/O layers."
1609 msgstr ""
1610
1611 #. type: Plain text
1612 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1613 #: opensuse-leap-16-1 opensuse-tumbleweed
1614 msgid ""
1615 "\\&I<The LAYER parameter of the >\\f(CI\\*(C`binmode\\*(C'I< function is "
1616 "described as \"DISCIPLINE\" in \"Programming Perl, 3rd Edition\". However, "
1617 "since the publishing of this book, by many known as \"Camel III\", the "
1618 "consensus of the naming of this functionality has moved from \"discipline\" "
1619 "to \"layer\". All documentation of this version of Perl therefore refers to "
1620 "\"layers\" rather than to \"disciplines\". Now back to the regularly "
1621 "scheduled documentation...>"
1622 msgstr ""
1623
1624 #. type: Plain text
1625 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1626 #: opensuse-leap-16-1 opensuse-tumbleweed
1627 msgid ""
1628 "To mark FILEHANDLE as UTF-8, use CW<\\*(C`:utf8\\*(C'> or "
1629 "CW<:encoding(UTF-8)>. \\&CW<\\*(C`:utf8\\*(C'> just marks the data as UTF-8 "
1630 "without further checking, while CW<:encoding(UTF-8)> checks the data for "
1631 "actually being valid UTF-8. More details can be found in PerlIO::encoding."
1632 msgstr ""
1633
1634 #. type: Plain text
1635 #: debian-trixie debian-unstable
1636 msgid ""
1637 "In general, CW<\\*(C`binmode\\*(C'> should be called after "
1638 "CW<\\*(C`open\\*(C'> but before any I/O is done on the filehandle. Calling "
1639 "CW<\\*(C`binmode\\*(C'> normally flushes any pending buffered output data "
1640 "(and perhaps pending input data) on the handle. An exception to this is the "
1641 "CW<\\*(C`:encoding\\*(C'> layer that changes the default character encoding "
1642 "of the handle. The CW<\\*(C`:encoding\\*(C'> layer sometimes needs to be "
1643 "called in mid-stream, and it doesn't flush the stream. "
1644 "CW<\\*(C`:encoding\\*(C'> also implicitly pushes on top of itself the "
1645 "CW<\\*(C`:utf8\\*(C'> layer because internally Perl operates on UTF8-encoded "
1646 "Unicode characters."
1647 msgstr ""
1648
1649 #. type: Plain text
1650 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1651 #: opensuse-leap-16-1 opensuse-tumbleweed
1652 msgid ""
1653 "The operating system, device drivers, C libraries, and Perl run-time system "
1654 "all conspire to let the programmer treat a single character "
1655 "(CW<\\*(C`\\en\\*(C'>) as the line terminator, irrespective of external "
1656 "representation. On many operating systems, the native text file "
1657 "representation matches the internal representation, but on some platforms "
1658 "the external representation of CW<\\*(C`\\en\\*(C'> is made up of more than "
1659 "one character."
1660 msgstr ""
1661
1662 #. type: Plain text
1663 #: debian-trixie debian-unstable
1664 msgid ""
1665 "All variants of Unix, Mac OS (old and new), and Stream_LF files on VMS use a "
1666 "single character to end each line in the external representation of text "
1667 "(even though that single character is CARRIAGE RETURN on old, pre-Darwin "
1668 "flavors of Mac OS, and is LINE FEED on Unix and most VMS files). In other "
1669 "systems like OS/2, DOS, and the various flavors of MS-Windows, your program "
1670 "sees a CW<\\*(C`\\en\\*(C'> as a simple CW<\\*(C`\\ecJ\\*(C'>, but what's "
1671 "stored in text files are the two characters CW<\\*(C`\\ecM\\ecJ\\*(C'>. "
1672 "That means that if you don't use \\&CW<\\*(C`binmode\\*(C'> on these "
1673 "systems, CW<\\*(C`\\ecM\\ecJ\\*(C'> sequences on disk will be converted to "
1674 "CW<\\*(C`\\en\\*(C'> on input, and any CW<\\*(C`\\en\\*(C'> in your program "
1675 "will be converted back to CW<\\*(C`\\ecM\\ecJ\\*(C'> on output. This is "
1676 "what you want for text files, but it can be disastrous for binary files."
1677 msgstr ""
1678
1679 #. type: Plain text
1680 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1681 #: opensuse-leap-16-1 opensuse-tumbleweed
1682 msgid ""
1683 "Another consequence of using CW<\\*(C`binmode\\*(C'> (on some systems) is "
1684 "that special end-of-file markers will be seen as part of the data stream. "
1685 "For systems from the Microsoft family this means that, if your binary data "
1686 "contain CW<\\*(C`\\ecZ\\*(C'>, the I/O subsystem will regard it as the end "
1687 "of the file, unless you use \\&CW<\\*(C`binmode\\*(C'>."
1688 msgstr ""
1689
1690 #. type: Plain text
1691 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1692 #: opensuse-leap-16-1 opensuse-tumbleweed
1693 msgid ""
1694 "\\&CW<\\*(C`binmode\\*(C'> is important not only for "
1695 "\\&CW<\\*(C`readline\\*(C'> and CW<\\*(C`print\\*(C'> operations, but also "
1696 "when using \\&CW<\\*(C`read\\*(C'>, \\&CW<\\*(C`seek\\*(C'>, "
1697 "\\&CW<\\*(C`sysread\\*(C'>, \\&CW<\\*(C`syswrite\\*(C'> and "
1698 "\\&CW<\\*(C`tell\\*(C'> (see perlport for more details). See the \\&CW<$/> "
1699 "and CW<\\*(C`$\\e\\*(C'> variables in perlvar for how to manually set your "
1700 "input and output line-termination sequences."
1701 msgstr ""
1702
1703 #. type: Plain text
1704 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1705 #: opensuse-leap-16-1 opensuse-tumbleweed
1706 msgid "Portability issues: \"binmode\" in perlport."
1707 msgstr ""
1708
1709 #. type: IX
1710 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1711 #: opensuse-leap-16-1 opensuse-tumbleweed
1712 #, no-wrap
1713 msgid "bless REF,CLASSNAME"
1714 msgstr ""
1715
1716 #. type: IX
1717 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1718 #: opensuse-leap-16-1 opensuse-tumbleweed
1719 #, no-wrap
1720 msgid "bless"
1721 msgstr ""
1722
1723 #. type: IX
1724 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1725 #: opensuse-leap-16-1 opensuse-tumbleweed
1726 #, no-wrap
1727 msgid "bless REF"
1728 msgstr ""
1729
1730 #. type: Plain text
1731 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1732 #: opensuse-leap-16-1 opensuse-tumbleweed
1733 msgid ""
1734 "\\&CW<\\*(C`bless\\*(C'> tells Perl to mark the item referred to by "
1735 "CW<\\*(C`REF\\*(C'> as an object in a package. The two-argument version of "
1736 "CW<\\*(C`bless\\*(C'> is always preferable unless there is a specific reason "
1737 "to I<not> use it."
1738 msgstr ""
1739
1740 #. type: IP
1741 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1742 #: opensuse-leap-16-1 opensuse-tumbleweed
1743 #, no-wrap
1744 msgid "\\(bu"
1745 msgstr ""
1746
1747 #. type: Plain text
1748 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1749 #: opensuse-leap-16-1 opensuse-tumbleweed
1750 msgid "Bless the referred-to item into a specific package (recommended form):"
1751 msgstr ""
1752
1753 #. type: Plain text
1754 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1755 #: opensuse-leap-16-1 opensuse-tumbleweed
1756 #, no-wrap
1757 msgid "\\& bless $ref, $package;\n"
1758 msgstr ""
1759
1760 #. type: Plain text
1761 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1762 #: opensuse-leap-16-1 opensuse-tumbleweed
1763 msgid ""
1764 "The two-argument form adds the object to the package specified as the second "
1765 "argument."
1766 msgstr ""
1767
1768 #. type: Plain text
1769 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1770 #: opensuse-leap-16-1 opensuse-tumbleweed
1771 msgid "Bless the referred-to item into package CW<\\*(C`main\\*(C'>:"
1772 msgstr ""
1773
1774 #. type: Plain text
1775 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1776 #: opensuse-leap-16-1 opensuse-tumbleweed
1777 #, no-wrap
1778 msgid "\\& bless $ref, \"\";\n"
1779 msgstr ""
1780
1781 #. type: Plain text
1782 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1783 #: opensuse-leap-16-1 opensuse-tumbleweed
1784 msgid ""
1785 "If the second argument is an empty string, CW<\\*(C`bless\\*(C'> adds the "
1786 "object to package CW<\\*(C`main\\*(C'>."
1787 msgstr ""
1788
1789 #. type: Plain text
1790 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1791 #: opensuse-leap-16-1 opensuse-tumbleweed
1792 msgid "Bless the referred-to item into the current package (not inheritable):"
1793 msgstr ""
1794
1795 #. type: Plain text
1796 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1797 #: opensuse-leap-16-1 opensuse-tumbleweed
1798 #, no-wrap
1799 msgid "\\& bless $ref;\n"
1800 msgstr ""
1801
1802 #. type: Plain text
1803 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1804 #: opensuse-leap-16-1 opensuse-tumbleweed
1805 msgid ""
1806 "If CW<\\*(C`bless\\*(C'> is used without its second argument, the object is "
1807 "created in the current package. The second argument should always be "
1808 "supplied if a derived class might inherit a method executing "
1809 "CW<\\*(C`bless\\*(C'>. Because it is a potential source of bugs, one-"
1810 "argument CW<\\*(C`bless\\*(C'> is discouraged."
1811 msgstr ""
1812
1813 #. type: Plain text
1814 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1815 #: opensuse-leap-16-1 opensuse-tumbleweed
1816 msgid "See perlobj for more about the blessing (and blessings) of objects."
1817 msgstr ""
1818
1819 #. type: Plain text
1820 #: debian-trixie debian-unstable
1821 msgid ""
1822 "\\&CW<\\*(C`bless\\*(C'> returns its first argument, the supplied reference, "
1823 "as the value of the function; since CW<\\*(C`bless\\*(C'> is commonly the "
1824 "last thing executed in constructors, this means that the reference to the "
1825 "object is returned as the constructor's value and allows the caller to "
1826 "immediately use this returned object in method calls."
1827 msgstr ""
1828
1829 #. type: Plain text
1830 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1831 #: opensuse-leap-16-1 opensuse-tumbleweed
1832 msgid ""
1833 "\\&CW<\\*(C`CLASSNAME\\*(C'> should always be a mixed-case name, as all-"
1834 "uppercase and all-lowercase names are meant to be used only for Perl builtin "
1835 "types and pragmas, respectively. Avoid creating all-uppercase or all-"
1836 "lowercase package names to prevent confusion."
1837 msgstr ""
1838
1839 #. type: Plain text
1840 #: debian-trixie debian-unstable
1841 msgid ""
1842 "Also avoid CW<\\*(C`bless\\*(C'>ing things into the class name CW<0>; this "
1843 "will cause code which (erroneously) checks the result of "
1844 "\\&CW<\\*(C`ref\\*(C'> to see if a reference is CW<\\*(C`bless\\*(C'>ed to "
1845 "fail, as \"0\", a falsy value, is returned."
1846 msgstr ""
1847
1848 #. type: Plain text
1849 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1850 #: opensuse-leap-16-1 opensuse-tumbleweed
1851 msgid "See \"Perl Modules\" in perlmod for more details."
1852 msgstr ""
1853
1854 #. type: IX
1855 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1856 #: opensuse-leap-16-1 opensuse-tumbleweed
1857 #, no-wrap
1858 msgid "break"
1859 msgstr ""
1860
1861 #. type: Plain text
1862 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1863 #: opensuse-leap-16-1 opensuse-tumbleweed
1864 msgid "Break out of a CW<\\*(C`given\\*(C'> block."
1865 msgstr ""
1866
1867 #. type: Plain text
1868 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1869 #: opensuse-leap-16-1 opensuse-tumbleweed
1870 msgid ""
1871 "\\&CW<\\*(C`break\\*(C'> is available only if the \\&CW<\"switch\"> feature "
1872 "is enabled or if it is prefixed with CW<\\*(C`CORE::\\*(C'>. The "
1873 "\\&CW<\"switch\"> feature is enabled automatically with a CW<\\*(C`use "
1874 "v5.10\\*(C'> (or higher) declaration in the current scope."
1875 msgstr ""
1876
1877 #. type: IX
1878 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1879 #: opensuse-leap-16-1 opensuse-tumbleweed
1880 #, no-wrap
1881 msgid "caller EXPR"
1882 msgstr ""
1883
1884 #. type: IX
1885 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1886 #: opensuse-leap-16-1 opensuse-tumbleweed
1887 #, no-wrap
1888 msgid "caller call stack stack stack trace"
1889 msgstr ""
1890
1891 #. type: IX
1892 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1893 #: opensuse-leap-16-1 opensuse-tumbleweed
1894 #, no-wrap
1895 msgid "caller"
1896 msgstr ""
1897
1898 #. type: Plain text
1899 #: debian-trixie debian-unstable
1900 msgid ""
1901 "Returns the context of the current pure perl subroutine call. In scalar "
1902 "context, returns the caller's package name if there I<is> a caller (that is, "
1903 "if we're in a subroutine or CW<\\*(C`eval\\*(C'> or "
1904 "\\&CW<\\*(C`require\\*(C'>) and the undefined value otherwise. "
1905 "\\&CW<\\*(C`caller\\*(C'> never returns XS subs and they are skipped. The "
1906 "next pure perl sub will appear instead of the XS sub in caller's return "
1907 "values. In list context, caller returns"
1908 msgstr ""
1909
1910 #. type: Plain text
1911 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1912 #: opensuse-leap-16-1 opensuse-tumbleweed
1913 #, no-wrap
1914 msgid ""
1915 "\\& # 0 1 2\n"
1916 "\\& my ($package, $filename, $line) = caller;\n"
1917 msgstr ""
1918
1919 #. type: Plain text
1920 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1921 #: opensuse-leap-16-1 opensuse-tumbleweed
1922 msgid ""
1923 "Like CW<\\*(C`_\\|_FILE_\\|_\\*(C'> and CW<\\*(C`_\\|_LINE_\\|_\\*(C'>, the "
1924 "filename and line number returned here may be altered by the mechanism "
1925 "described at \"Plain Old Comments (Not!)\" in perlsyn."
1926 msgstr ""
1927
1928 #. type: Plain text
1929 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1930 #: opensuse-leap-16-1 opensuse-tumbleweed
1931 msgid ""
1932 "With EXPR, it returns some extra information that the debugger uses to print "
1933 "a stack trace. The value of EXPR indicates how many call frames to go back "
1934 "before the current one."
1935 msgstr ""
1936
1937 #. type: Plain text
1938 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1939 #: opensuse-leap-16-1 opensuse-tumbleweed
1940 #, no-wrap
1941 msgid ""
1942 "\\& # 0 1 2 3 4\n"
1943 "\\& my ($package, $filename, $line, $subroutine, $hasargs,\n"
1944 "\\&\n"
1945 "\\& # 5 6 7 8 9 10\n"
1946 "\\& $wantarray, $evaltext, $is_require, $hints, $bitmask, $hinthash)\n"
1947 "\\& = caller($i);\n"
1948 msgstr ""
1949
1950 #. type: Plain text
1951 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1952 #: opensuse-leap-16-1 opensuse-tumbleweed
1953 msgid ""
1954 "Here, CW<$subroutine> is the function that the caller called (rather than "
1955 "the function containing the caller). Note that CW<$subroutine> may be "
1956 "CW<\\*(C`(eval)\\*(C'> if the frame is not a subroutine call, but an "
1957 "CW<\\*(C`eval\\*(C'>. In such a case additional elements CW<$evaltext> and "
1958 "CW<$is_require> are set: \\&CW<$is_require> is true if the frame is created "
1959 "by a \\&CW<\\*(C`require\\*(C'> or CW<\\*(C`use\\*(C'> statement, "
1960 "CW<$evaltext> contains the text of the CW<\\*(C`eval EXPR\\*(C'> statement. "
1961 "In particular, for an CW<\\*(C`eval BLOCK\\*(C'> statement, CW<$subroutine> "
1962 "is CW<\\*(C`(eval)\\*(C'>, but CW<$evaltext> is undefined. (Note also that "
1963 "each \\&CW<\\*(C`use\\*(C'> statement creates a \\&CW<\\*(C`require\\*(C'> "
1964 "frame inside an CW<\\*(C`eval EXPR\\*(C'> frame.) \\&CW<$subroutine> may "
1965 "also be CW<\\*(C`(unknown)\\*(C'> if this particular subroutine happens to "
1966 "have been deleted from the symbol table. CW<$hasargs> is true if a new "
1967 "instance of CW<@_> was set up for the frame. \\&CW<$hints> and CW<$bitmask> "
1968 "contain pragmatic hints that the caller was compiled with. CW<$hints> "
1969 "corresponds to CW<$^H>, and \\&CW<$bitmask> corresponds to \\&CW<\\*(C`$"
1970 "{^WARNING_BITS}\\*(C'>. The CW<$hints> and \\&CW<$bitmask> values are "
1971 "subject to change between versions of Perl, and are not meant for external "
1972 "use."
1973 msgstr ""
1974
1975 #. type: Plain text
1976 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1977 #: opensuse-leap-16-1 opensuse-tumbleweed
1978 msgid ""
1979 "\\&CW<$hinthash> is a reference to a hash containing the value of "
1980 "\\&CW<\\*(C`%^H\\*(C'> when the caller was compiled, or "
1981 "\\&CW<\\*(C`undef\\*(C'> if CW<\\*(C`%^H\\*(C'> was empty. Do not modify "
1982 "the values of this hash, as they are the actual values stored in the optree."
1983 msgstr ""
1984
1985 #. type: Plain text
1986 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1987 #: opensuse-leap-16-1 opensuse-tumbleweed
1988 msgid ""
1989 "Note that the only types of call frames that are visible are subroutine "
1990 "calls and CW<\\*(C`eval\\*(C'>. Other forms of context, such as "
1991 "CW<\\*(C`while\\*(C'> or CW<\\*(C`foreach\\*(C'> loops or "
1992 "CW<\\*(C`try\\*(C'> blocks are not considered interesting to "
1993 "CW<\\*(C`caller\\*(C'>, as they do not alter the behaviour of the "
1994 "CW<\\*(C`return\\*(C'> expression."
1995 msgstr ""
1996
1997 #. type: Plain text
1998 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1999 #: opensuse-leap-16-1 opensuse-tumbleweed
2000 msgid ""
2001 "Furthermore, when called from within the DB package in list context, and "
2002 "with an argument, caller returns more detailed information: it sets the list "
2003 "variable CW<@DB::args> to be the arguments with which the subroutine was "
2004 "invoked."
2005 msgstr ""
2006
2007 #. type: Plain text
2008 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2009 #: opensuse-leap-16-1 opensuse-tumbleweed
2010 msgid ""
2011 "Be aware that the optimizer might have optimized call frames away before "
2012 "\\&CW<\\*(C`caller\\*(C'> had a chance to get the information. That means "
2013 "that CW<caller(N)> might not return information about the call frame you "
2014 "expect it to, for CW<\\*(C`N E<gt> 1\\*(C'>. In particular, CW<@DB::args> "
2015 "might have information from the previous time CW<\\*(C`caller\\*(C'> was "
2016 "called."
2017 msgstr ""
2018
2019 #. type: Plain text
2020 #: debian-trixie debian-unstable
2021 msgid ""
2022 "Be aware that setting CW<@DB::args> is I<best effort>, intended for "
2023 "debugging or generating backtraces, and should not be relied upon. In "
2024 "particular, as CW<@_> contains aliases to the caller's arguments, Perl does "
2025 "not take a copy of CW<@_>, so \\&CW<@DB::args> will contain modifications "
2026 "the subroutine makes to \\&CW<@_> or its contents, not the original values "
2027 "at call time. CW<@DB::args>, like CW<@_>, does not hold explicit references "
2028 "to its elements, so under certain cases its elements may have become freed "
2029 "and reallocated for other variables or temporary values. Finally, a side "
2030 "effect of the current implementation is that the effects of CW<\\*(C`shift "
2031 "@_\\*(C'> can I<normally> be undone (but not CW<\\*(C`pop @_\\*(C'> or other "
2032 "splicing, I<and> not if a reference to CW<@_> has been taken, I<and> subject "
2033 "to the caveat about reallocated elements), so \\&CW<@DB::args> is actually a "
2034 "hybrid of the current state and initial state of CW<@_>. Buyer beware."
2035 msgstr ""
2036
2037 #. type: IX
2038 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2039 #: opensuse-leap-16-1 opensuse-tumbleweed
2040 #, no-wrap
2041 msgid "chdir EXPR"
2042 msgstr ""
2043
2044 #. type: IX
2045 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2046 #: opensuse-leap-16-1 opensuse-tumbleweed
2047 #, no-wrap
2048 msgid "chdir cd directory, change"
2049 msgstr ""
2050
2051 #. type: IX
2052 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2053 #: opensuse-leap-16-1 opensuse-tumbleweed
2054 #, no-wrap
2055 msgid "chdir FILEHANDLE"
2056 msgstr ""
2057
2058 #. type: IX
2059 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2060 #: opensuse-leap-16-1 opensuse-tumbleweed
2061 #, no-wrap
2062 msgid "chdir DIRHANDLE"
2063 msgstr ""
2064
2065 #. type: IX
2066 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2067 #: opensuse-leap-16-1 opensuse-tumbleweed
2068 #, no-wrap
2069 msgid "chdir"
2070 msgstr ""
2071
2072 #. type: Plain text
2073 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2074 #: opensuse-leap-16-1 opensuse-tumbleweed
2075 msgid ""
2076 "Changes the working directory to EXPR, if possible. If EXPR is omitted, "
2077 "changes to the directory specified by CW<$ENV{HOME}>, if set; if not, "
2078 "changes to the directory specified by CW<$ENV{LOGDIR}>. (Under VMS, the "
2079 "variable CW<$ENV{\\*(AqSYS$LOGIN\\*(Aq}> is also checked, and used if it is "
2080 "set.) If neither is set, CW<\\*(C`chdir\\*(C'> does nothing and fails. It "
2081 "returns true on success, false otherwise. See the example under "
2082 "\\&CW<\\*(C`die\\*(C'>."
2083 msgstr ""
2084
2085 #. type: Plain text
2086 #: debian-trixie debian-unstable
2087 msgid ""
2088 "On systems that support B<fchdir>\\|(2), you may pass a filehandle or "
2089 "directory handle as the argument. On systems that don't support B<fchdir>\\|"
2090 "(2), passing handles raises an exception."
2091 msgstr ""
2092
2093 #. type: IX
2094 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2095 #: opensuse-leap-16-1 opensuse-tumbleweed
2096 #, no-wrap
2097 msgid "chmod LIST"
2098 msgstr ""
2099
2100 #. type: IX
2101 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2102 #: opensuse-leap-16-1 opensuse-tumbleweed
2103 #, no-wrap
2104 msgid "chmod permission mode"
2105 msgstr ""
2106
2107 #. type: Plain text
2108 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2109 #: opensuse-leap-16-1 opensuse-tumbleweed
2110 msgid ""
2111 "Changes the permissions of a list of files. The first element of the list "
2112 "must be the numeric mode, which should probably be an octal number, and "
2113 "which definitely should I<not> be a string of octal digits: \\&CW<0644> is "
2114 "okay, but CW<\"0644\"> is not. Returns the number of files successfully "
2115 "changed. See also CW<\\*(C`oct\\*(C'> if all you have is a string."
2116 msgstr ""
2117
2118 #. type: Plain text
2119 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2120 #: opensuse-leap-16-1 opensuse-tumbleweed
2121 #, no-wrap
2122 msgid ""
2123 "\\& my $cnt = chmod 0755, \"foo\", \"bar\";\n"
2124 "\\& chmod 0755, @executables;\n"
2125 "\\& my $mode = \"0644\"; chmod $mode, \"foo\"; # !!! sets mode to\n"
2126 "\\& # --w----r-T\n"
2127 "\\& my $mode = \"0644\"; chmod oct($mode), \"foo\"; # this is better\n"
2128 "\\& my $mode = 0644; chmod $mode, \"foo\"; # this is best\n"
2129 msgstr ""
2130
2131 #. type: Plain text
2132 #: debian-trixie debian-unstable
2133 msgid ""
2134 "On systems that support B<fchmod>\\|(2), you may pass filehandles among the "
2135 "files. On systems that don't support B<fchmod>\\|(2), passing filehandles "
2136 "raises an exception. Filehandles must be passed as globs or glob references "
2137 "to be recognized; barewords are considered filenames."
2138 msgstr ""
2139
2140 #. type: Plain text
2141 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2142 #: opensuse-leap-16-1 opensuse-tumbleweed
2143 #, no-wrap
2144 msgid ""
2145 "\\& open(my $fh, \"E<lt>\", \"foo\");\n"
2146 "\\& my $perm = (stat $fh)[2] & 07777;\n"
2147 "\\& chmod($perm | 0600, $fh);\n"
2148 msgstr ""
2149
2150 #. type: Plain text
2151 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2152 #: opensuse-leap-16-1 opensuse-tumbleweed
2153 msgid ""
2154 "You can also import the symbolic CW<\\*(C`S_I*\\*(C'> constants from the "
2155 "\\&CW<\\*(C`Fcntl\\*(C'> module:"
2156 msgstr ""
2157
2158 #. type: Plain text
2159 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2160 #: opensuse-leap-16-1 opensuse-tumbleweed
2161 #, no-wrap
2162 msgid ""
2163 "\\& use Fcntl qw( :mode );\n"
2164 "\\& chmod S_IRWXU|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH, @executables;\n"
2165 "\\& # Identical to the chmod 0755 of the example above.\n"
2166 msgstr ""
2167
2168 #. type: Plain text
2169 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2170 #: opensuse-leap-16-1 opensuse-tumbleweed
2171 msgid "Portability issues: \"chmod\" in perlport."
2172 msgstr ""
2173
2174 #. type: IX
2175 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2176 #: opensuse-leap-16-1 opensuse-tumbleweed
2177 #, no-wrap
2178 msgid "chomp VARIABLE"
2179 msgstr ""
2180
2181 #. type: IX
2182 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2183 #: opensuse-leap-16-1 opensuse-tumbleweed
2184 #, no-wrap
2185 msgid "chomp INPUT_RECORD_SEPARATOR $ newline eol"
2186 msgstr ""
2187
2188 #. type: IX
2189 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2190 #: opensuse-leap-16-1 opensuse-tumbleweed
2191 #, no-wrap
2192 msgid "chomp( LIST )"
2193 msgstr ""
2194
2195 #. type: IX
2196 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2197 #: opensuse-leap-16-1 opensuse-tumbleweed
2198 #, no-wrap
2199 msgid "chomp"
2200 msgstr ""
2201
2202 #. type: Plain text
2203 #: debian-trixie debian-unstable
2204 msgid ""
2205 "This safer version of CW<\\*(C`chop\\*(C'> removes any trailing string that "
2206 "corresponds to the current value of \\&CW<$/> (also known as "
2207 "CW<$INPUT_RECORD_SEPARATOR> in the CW<\\*(C`English\\*(C'> module). It "
2208 "returns the total number of characters removed from all its arguments. It's "
2209 "often used to remove the newline from the end of an input record when you're "
2210 "worried that the final record may be missing its newline. When in paragraph "
2211 "mode (CW<\\*(C`$/ = \\*(Aq\\*(Aq\\*(C'>), it removes all trailing newlines "
2212 "from the string. When in slurp mode (CW<\\*(C`$/ = undef\\*(C'>) or fixed-"
2213 "length record mode (CW<$/> is a reference to an integer or the like; see "
2214 "perlvar), CW<\\*(C`chomp\\*(C'> won't remove anything. If VARIABLE is "
2215 "omitted, it chomps CW<$_>. Example:"
2216 msgstr ""
2217
2218 #. type: Plain text
2219 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2220 #: opensuse-leap-16-1 opensuse-tumbleweed
2221 #, no-wrap
2222 msgid ""
2223 "\\& while (E<lt>E<gt>) {\n"
2224 "\\& chomp; # avoid \\en on last field\n"
2225 "\\& my @array = split(/:/);\n"
2226 "\\& # ...\n"
2227 "\\& }\n"
2228 msgstr ""
2229
2230 #. type: Plain text
2231 #: debian-trixie debian-unstable
2232 msgid ""
2233 "If VARIABLE is a hash, it chomps the hash's values, but not its keys, "
2234 "resetting the CW<\\*(C`each\\*(C'> iterator in the process."
2235 msgstr ""
2236
2237 #. type: Plain text
2238 #: debian-trixie debian-unstable
2239 msgid ""
2240 "You can actually chomp anything that's an lvalue, including an assignment:"
2241 msgstr ""
2242
2243 #. type: Plain text
2244 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2245 #: opensuse-leap-16-1 opensuse-tumbleweed
2246 #, no-wrap
2247 msgid ""
2248 "\\& chomp(my $cwd = \\`pwd\\`);\n"
2249 "\\& chomp(my $answer = E<lt>STDINE<gt>);\n"
2250 msgstr ""
2251
2252 #. type: Plain text
2253 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2254 #: opensuse-leap-16-1 opensuse-tumbleweed
2255 msgid ""
2256 "If you chomp a list, each element is chomped, and the total number of "
2257 "characters removed is returned."
2258 msgstr ""
2259
2260 #. type: Plain text
2261 #: debian-trixie debian-unstable
2262 msgid ""
2263 "Note that parentheses are necessary when you're chomping anything that is "
2264 "not a simple variable. This is because CW<\\*(C`chomp $cwd = \\`pwd\\`;"
2265 "\\*(C'> is interpreted as CW<\\*(C`(chomp $cwd) = \\`pwd\\`;\\*(C'>, rather "
2266 "than as \\&CW<\\*(C`chomp( $cwd = \\`pwd\\` )\\*(C'> which you might "
2267 "expect. Similarly, \\&CW<\\*(C`chomp $x, $y\\*(C'> is interpreted as "
2268 "CW<\\*(C`chomp($x), $y\\*(C'> rather than as CW<\\*(C`chomp($x, $y)\\*(C'>."
2269 msgstr ""
2270
2271 #. type: IX
2272 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2273 #: opensuse-leap-16-1 opensuse-tumbleweed
2274 #, no-wrap
2275 msgid "chop VARIABLE"
2276 msgstr ""
2277
2278 #. type: IX
2279 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2280 #: opensuse-leap-16-1 opensuse-tumbleweed
2281 #, no-wrap
2282 msgid "chop"
2283 msgstr ""
2284
2285 #. type: IX
2286 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2287 #: opensuse-leap-16-1 opensuse-tumbleweed
2288 #, no-wrap
2289 msgid "chop( LIST )"
2290 msgstr ""
2291
2292 #. type: Plain text
2293 #: debian-trixie debian-unstable
2294 msgid ""
2295 "Chops off the last character of a string and returns the character chopped. "
2296 "It is much more efficient than CW<\\*(C`s/.$//s\\*(C'> because it neither "
2297 "scans nor copies the string. If VARIABLE is omitted, chops \\&CW<$_>. If "
2298 "VARIABLE is a hash, it chops the hash's values, but not its keys, resetting "
2299 "the CW<\\*(C`each\\*(C'> iterator in the process."
2300 msgstr ""
2301
2302 #. type: Plain text
2303 #: debian-trixie debian-unstable
2304 msgid ""
2305 "You can actually chop anything that's an lvalue, including an assignment."
2306 msgstr ""
2307
2308 #. type: Plain text
2309 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2310 #: opensuse-leap-16-1 opensuse-tumbleweed
2311 msgid ""
2312 "If you chop a list, each element is chopped. Only the value of the last "
2313 "CW<\\*(C`chop\\*(C'> is returned."
2314 msgstr ""
2315
2316 #. type: Plain text
2317 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2318 #: opensuse-leap-16-1 opensuse-tumbleweed
2319 msgid ""
2320 "Note that CW<\\*(C`chop\\*(C'> returns the last character. To return all "
2321 "but the last character, use CW<\\*(C`substr($string, 0, -1)\\*(C'>."
2322 msgstr ""
2323
2324 #. type: Plain text
2325 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2326 #: opensuse-leap-16-1 opensuse-tumbleweed
2327 msgid "See also CW<\\*(C`chomp\\*(C'>."
2328 msgstr ""
2329
2330 #. type: IX
2331 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2332 #: opensuse-leap-16-1 opensuse-tumbleweed
2333 #, no-wrap
2334 msgid "chown LIST"
2335 msgstr ""
2336
2337 #. type: IX
2338 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2339 #: opensuse-leap-16-1 opensuse-tumbleweed
2340 #, no-wrap
2341 msgid "chown owner user group"
2342 msgstr ""
2343
2344 #. type: Plain text
2345 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2346 #: opensuse-leap-16-1 opensuse-tumbleweed
2347 msgid ""
2348 "Changes the owner (and group) of a list of files. The first two elements of "
2349 "the list must be the I<numeric> uid and gid, in that order. A value of -1 "
2350 "in either position is interpreted by most systems to leave that value "
2351 "unchanged. Returns the number of files successfully changed."
2352 msgstr ""
2353
2354 #. type: Plain text
2355 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2356 #: opensuse-leap-16-1 opensuse-tumbleweed
2357 #, no-wrap
2358 msgid ""
2359 "\\& my $cnt = chown $uid, $gid, \\*(Aqfoo\\*(Aq, \\*(Aqbar\\*(Aq;\n"
2360 "\\& chown $uid, $gid, @filenames;\n"
2361 msgstr ""
2362
2363 #. type: Plain text
2364 #: debian-trixie debian-unstable
2365 msgid ""
2366 "On systems that support B<fchown>\\|(2), you may pass filehandles among the "
2367 "files. On systems that don't support B<fchown>\\|(2), passing filehandles "
2368 "raises an exception. Filehandles must be passed as globs or glob references "
2369 "to be recognized; barewords are considered filenames."
2370 msgstr ""
2371
2372 #. type: Plain text
2373 #: debian-trixie debian-unstable
2374 msgid "Here's an example that looks up nonnumeric uids in the passwd file:"
2375 msgstr ""
2376
2377 #. type: Plain text
2378 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2379 #: opensuse-leap-16-1 opensuse-tumbleweed
2380 #, no-wrap
2381 msgid ""
2382 "\\& print \"User: \";\n"
2383 "\\& chomp(my $user = E<lt>STDINE<gt>);\n"
2384 "\\& print \"Files: \";\n"
2385 "\\& chomp(my $pattern = E<lt>STDINE<gt>);\n"
2386 "\\&\n"
2387 "\\& my ($login,$pass,$uid,$gid) = getpwnam($user)\n"
2388 "\\& or die \"$user not in passwd file\";\n"
2389 "\\&\n"
2390 "\\& my @ary = glob($pattern); # expand filenames\n"
2391 "\\& chown $uid, $gid, @ary;\n"
2392 msgstr ""
2393
2394 #. type: Plain text
2395 #: debian-trixie debian-unstable
2396 msgid ""
2397 "On most systems, you are not allowed to change the ownership of the file "
2398 "unless you're the superuser, although you should be able to change the group "
2399 "to any of your secondary groups. On insecure systems, these restrictions "
2400 "may be relaxed, but this is not a portable assumption. On POSIX systems, "
2401 "you can detect this condition this way:"
2402 msgstr ""
2403
2404 #. type: Plain text
2405 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2406 #: opensuse-leap-16-1 opensuse-tumbleweed
2407 #, no-wrap
2408 msgid ""
2409 "\\& use POSIX qw(pathconf _PC_CHOWN_RESTRICTED);\n"
2410 "\\& my $can_chown_giveaway =\n"
2411 "\\& ! pathconf($path_of_interest, _PC_CHOWN_RESTRICTED);\n"
2412 msgstr ""
2413
2414 #. type: Plain text
2415 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2416 #: opensuse-leap-16-1 opensuse-tumbleweed
2417 msgid "Portability issues: \"chown\" in perlport."
2418 msgstr ""
2419
2420 #. type: IX
2421 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2422 #: opensuse-leap-16-1 opensuse-tumbleweed
2423 #, no-wrap
2424 msgid "chr NUMBER"
2425 msgstr ""
2426
2427 #. type: IX
2428 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2429 #: opensuse-leap-16-1 opensuse-tumbleweed
2430 #, no-wrap
2431 msgid "chr character ASCII Unicode"
2432 msgstr ""
2433
2434 #. type: IX
2435 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2436 #: opensuse-leap-16-1 opensuse-tumbleweed
2437 #, no-wrap
2438 msgid "chr"
2439 msgstr ""
2440
2441 #. type: Plain text
2442 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2443 #: opensuse-leap-16-1 opensuse-tumbleweed
2444 msgid ""
2445 "Returns the character represented by that NUMBER in the character set. For "
2446 "example, CW<chr(65)> is CW<\"A\"> in either ASCII or Unicode, and "
2447 "\\&CW<chr(0x263a)> is a Unicode smiley face."
2448 msgstr ""
2449
2450 #. type: Plain text
2451 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2452 #: opensuse-leap-16-1 opensuse-tumbleweed
2453 msgid ""
2454 "Negative values give the Unicode replacement character (CW<chr(0xfffd)>), "
2455 "except under the bytes pragma, where the low eight bits of the value "
2456 "(truncated to an integer) are used."
2457 msgstr ""
2458
2459 #. type: Plain text
2460 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2461 #: opensuse-leap-16-1 opensuse-tumbleweed
2462 msgid "If NUMBER is omitted, uses CW<$_>."
2463 msgstr ""
2464
2465 #. type: Plain text
2466 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2467 #: opensuse-leap-16-1 opensuse-tumbleweed
2468 msgid "For the reverse, use CW<\\*(C`ord\\*(C'>."
2469 msgstr ""
2470
2471 #. type: Plain text
2472 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2473 #: opensuse-leap-16-1 opensuse-tumbleweed
2474 msgid ""
2475 "Note that characters from 128 to 255 (inclusive) are by default internally "
2476 "not encoded as UTF-8 for backward compatibility reasons."
2477 msgstr ""
2478
2479 #. type: Plain text
2480 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2481 #: opensuse-leap-16-1 opensuse-tumbleweed
2482 msgid "See perlunicode for more about Unicode."
2483 msgstr ""
2484
2485 #. type: IX
2486 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2487 #: opensuse-leap-16-1 opensuse-tumbleweed
2488 #, no-wrap
2489 msgid "chroot FILENAME"
2490 msgstr ""
2491
2492 #. type: IX
2493 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2494 #: opensuse-leap-16-1 opensuse-tumbleweed
2495 #, no-wrap
2496 msgid "chroot root"
2497 msgstr ""
2498
2499 #. type: IX
2500 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2501 #: opensuse-leap-16-1 opensuse-tumbleweed
2502 #, no-wrap
2503 msgid "chroot"
2504 msgstr ""
2505
2506 #. type: Plain text
2507 #: debian-trixie debian-unstable
2508 msgid ""
2509 "This function works like the system call by the same name: it makes the "
2510 "named directory the new root directory for all further pathnames that begin "
2511 "with a CW<\\*(C`/\\*(C'> by your process and all its children. (It doesn't "
2512 "change your current working directory, which is unaffected.) For security "
2513 "reasons, this call is restricted to the superuser. If FILENAME is omitted, "
2514 "does a CW<\\*(C`chroot\\*(C'> to CW<$_>."
2515 msgstr ""
2516
2517 #. type: Plain text
2518 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2519 #: opensuse-leap-16-1 opensuse-tumbleweed
2520 msgid ""
2521 "\\&B<NOTE:> It is mandatory for security to CW<chdir(\"/\")> "
2522 "(CW<\\*(C`chdir\\*(C'> to the root directory) immediately after a "
2523 "\\&CW<\\*(C`chroot\\*(C'>, otherwise the current working directory may be "
2524 "outside of the new root."
2525 msgstr ""
2526
2527 #. type: Plain text
2528 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2529 #: opensuse-leap-16-1 opensuse-tumbleweed
2530 msgid "Portability issues: \"chroot\" in perlport."
2531 msgstr ""
2532
2533 #. type: IX
2534 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2535 #: opensuse-leap-16-1 opensuse-tumbleweed
2536 #, no-wrap
2537 msgid "class NAMESPACE"
2538 msgstr ""
2539
2540 #. type: IX
2541 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2542 #: opensuse-leap-16-1 opensuse-tumbleweed
2543 #, no-wrap
2544 msgid "class NAMESPACE VERSION"
2545 msgstr ""
2546
2547 #. type: IX
2548 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2549 #: opensuse-leap-16-1 opensuse-tumbleweed
2550 #, no-wrap
2551 msgid "class NAMESPACE BLOCK"
2552 msgstr ""
2553
2554 #. type: IX
2555 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2556 #: opensuse-leap-16-1 opensuse-tumbleweed
2557 #, no-wrap
2558 msgid "class NAMESPACE VERSION BLOCK"
2559 msgstr ""
2560
2561 #. type: Plain text
2562 #: debian-trixie debian-unstable
2563 msgid ""
2564 "Declares the BLOCK or the rest of the compilation unit as being in the given "
2565 "namespace, which implements an object class. This behaves similarly to "
2566 "\\&CW<\\*(C`package\\*(C'>, except that the newly-created package behaves as "
2567 "a class."
2568 msgstr ""
2569
2570 #. type: IX
2571 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2572 #: opensuse-leap-16-1 opensuse-tumbleweed
2573 #, no-wrap
2574 msgid "close FILEHANDLE"
2575 msgstr ""
2576
2577 #. type: IX
2578 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2579 #: opensuse-leap-16-1 opensuse-tumbleweed
2580 #, no-wrap
2581 msgid "close"
2582 msgstr ""
2583
2584 #. type: Plain text
2585 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2586 #: opensuse-leap-16-1 opensuse-tumbleweed
2587 msgid ""
2588 "Closes the file or pipe associated with the filehandle, flushes the IO "
2589 "buffers, and closes the system file descriptor. Returns true if those "
2590 "operations succeed, and if no error was reported by any PerlIO layer, and "
2591 "there was no existing error on the filehandle."
2592 msgstr ""
2593
2594 #. type: Plain text
2595 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2596 #: opensuse-leap-16-1 opensuse-tumbleweed
2597 msgid ""
2598 "If there was an existing error on the filehandle, close will return false "
2599 "and CW<$!> will be set to the error from the failing operation, so you can "
2600 "safely use its value when reporting the error."
2601 msgstr ""
2602
2603 #. type: Plain text
2604 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2605 #: opensuse-leap-16-1 opensuse-tumbleweed
2606 msgid "Closes the currently selected filehandle if the argument is omitted."
2607 msgstr ""
2608
2609 #. type: Plain text
2610 #: debian-trixie debian-unstable
2611 msgid ""
2612 "You don't have to close FILEHANDLE if you are immediately going to do "
2613 "another CW<\\*(C`open\\*(C'> on it, because \\&CW<\\*(C`open\\*(C'> closes "
2614 "it for you. (See \\&CW<\\*(C`open\\*(C'>.) However, an explicit "
2615 "\\&CW<\\*(C`close\\*(C'> on an input file resets the line counter (CW<$.>), "
2616 "while the implicit close done by \\&CW<\\*(C`open\\*(C'> does not."
2617 msgstr ""
2618
2619 #. type: Plain text
2620 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2621 #: opensuse-leap-16-1 opensuse-tumbleweed
2622 msgid ""
2623 "If the filehandle came from a piped open, CW<\\*(C`close\\*(C'> returns "
2624 "false if one of the other syscalls involved fails or if its program exits "
2625 "with non-zero status. If the only problem was that the program exited non-"
2626 "zero, CW<$!> will be set to CW<0>. Closing a pipe also waits for the "
2627 "process executing on the pipe to exit--in case you wish to look at the "
2628 "output of the pipe afterwards--and implicitly puts the exit status value of "
2629 "that command into \\&CW<$?> and \\&CW<\\*(C`${^CHILD_ERROR_NATIVE}\\*(C'>."
2630 msgstr ""
2631
2632 #. type: Plain text
2633 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2634 #: opensuse-leap-16-1 opensuse-tumbleweed
2635 msgid ""
2636 "If there are multiple threads running, CW<\\*(C`close\\*(C'> on a filehandle "
2637 "from a piped open returns true without waiting for the child process to "
2638 "terminate, if the filehandle is still open in another thread."
2639 msgstr ""
2640
2641 #. type: Plain text
2642 #: debian-trixie debian-unstable
2643 msgid ""
2644 "Closing the read end of a pipe before the process writing to it at the other "
2645 "end is done writing results in the writer receiving a SIGPIPE. If the other "
2646 "end can't handle that, be sure to read all the data before closing the pipe."
2647 msgstr ""
2648
2649 #. type: Plain text
2650 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2651 #: opensuse-leap-16-1 opensuse-tumbleweed
2652 #, no-wrap
2653 msgid ""
2654 "\\& open(OUTPUT, \\*(Aq|sort E<gt>foo\\*(Aq) # pipe to sort\n"
2655 "\\& or die \"Can\\*(Aqt start sort: $!\";\n"
2656 "\\& #... # print stuff to output\n"
2657 "\\& close OUTPUT # wait for sort to finish\n"
2658 "\\& or warn $! ? \"Error closing sort pipe: $!\"\n"
2659 "\\& : \"Exit status $? from sort\";\n"
2660 "\\& open(INPUT, \\*(Aqfoo\\*(Aq) # get sort\\*(Aqs results\n"
2661 "\\& or die \"Can\\*(Aqt open \\*(Aqfoo\\*(Aq for input: $!\";\n"
2662 msgstr ""
2663
2664 #. type: Plain text
2665 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2666 #: opensuse-leap-16-1 opensuse-tumbleweed
2667 msgid ""
2668 "FILEHANDLE may be an expression whose value can be used as an indirect "
2669 "filehandle, usually the real filehandle name or an autovivified handle."
2670 msgstr ""
2671
2672 #. type: Plain text
2673 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2674 #: opensuse-leap-16-1 opensuse-tumbleweed
2675 msgid ""
2676 "If an error occurs when perl implicitly closes a handle, perl will produce a "
2677 "warning. Explicitly calling close on the handle prevents that warning."
2678 msgstr ""
2679
2680 #. type: IX
2681 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2682 #: opensuse-leap-16-1 opensuse-tumbleweed
2683 #, no-wrap
2684 msgid "closedir DIRHANDLE"
2685 msgstr ""
2686
2687 #. type: IX
2688 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2689 #: opensuse-leap-16-1 opensuse-tumbleweed
2690 #, no-wrap
2691 msgid "closedir"
2692 msgstr ""
2693
2694 #. type: Plain text
2695 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2696 #: opensuse-leap-16-1 opensuse-tumbleweed
2697 msgid ""
2698 "Closes a directory opened by CW<\\*(C`opendir\\*(C'> and returns the success "
2699 "of that system call."
2700 msgstr ""
2701
2702 #. type: IX
2703 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2704 #: opensuse-leap-16-1 opensuse-tumbleweed
2705 #, no-wrap
2706 msgid "connect SOCKET,NAME"
2707 msgstr ""
2708
2709 #. type: IX
2710 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2711 #: opensuse-leap-16-1 opensuse-tumbleweed
2712 #, no-wrap
2713 msgid "connect"
2714 msgstr ""
2715
2716 #. type: Plain text
2717 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2718 #: opensuse-leap-16-1 opensuse-tumbleweed
2719 msgid ""
2720 "Attempts to connect to a remote socket, just like B<connect>\\|(2). Returns "
2721 "true if it succeeded, false otherwise. NAME should be a packed address of "
2722 "the appropriate type for the socket. See the examples in \"Sockets: Client/"
2723 "Server Communication\" in perlipc."
2724 msgstr ""
2725
2726 #. type: IX
2727 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2728 #: opensuse-leap-16-1 opensuse-tumbleweed
2729 #, no-wrap
2730 msgid "continue BLOCK"
2731 msgstr ""
2732
2733 #. type: IX
2734 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2735 #: opensuse-leap-16-1 opensuse-tumbleweed
2736 #, no-wrap
2737 msgid "continue"
2738 msgstr ""
2739
2740 #. type: Plain text
2741 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2742 #: opensuse-leap-16-1 opensuse-tumbleweed
2743 msgid ""
2744 "When followed by a BLOCK, CW<\\*(C`continue\\*(C'> is actually a flow "
2745 "control statement rather than a function. If there is a "
2746 "\\&CW<\\*(C`continue\\*(C'> BLOCK attached to a BLOCK (typically in a "
2747 "\\&CW<\\*(C`while\\*(C'> or CW<\\*(C`foreach\\*(C'>), it is always executed "
2748 "just before the conditional is about to be evaluated again, just like the "
2749 "third part of a CW<\\*(C`for\\*(C'> loop in C. Thus it can be used to "
2750 "increment a loop variable, even when the loop has been continued via the "
2751 "CW<\\*(C`next\\*(C'> statement (which is similar to the C "
2752 "CW<\\*(C`continue\\*(C'> statement)."
2753 msgstr ""
2754
2755 #. type: Plain text
2756 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2757 #: opensuse-leap-16-1 opensuse-tumbleweed
2758 msgid ""
2759 "\\&CW<\\*(C`last\\*(C'>, CW<\\*(C`next\\*(C'>, or \\&CW<\\*(C`redo\\*(C'> "
2760 "may appear within a \\&CW<\\*(C`continue\\*(C'> block; CW<\\*(C`last\\*(C'> "
2761 "and \\&CW<\\*(C`redo\\*(C'> behave as if they had been executed within the "
2762 "main block. So will CW<\\*(C`next\\*(C'>, but since it will execute a "
2763 "\\&CW<\\*(C`continue\\*(C'> block, it may be more entertaining."
2764 msgstr ""
2765
2766 #. type: Plain text
2767 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2768 #: opensuse-leap-16-1 opensuse-tumbleweed
2769 #, no-wrap
2770 msgid ""
2771 "\\& while (EXPR) {\n"
2772 "\\& ### redo always comes here\n"
2773 "\\& do_something;\n"
2774 "\\& } continue {\n"
2775 "\\& ### next always comes here\n"
2776 "\\& do_something_else;\n"
2777 "\\& # then back to the top to re-check EXPR\n"
2778 "\\& }\n"
2779 "\\& ### last always comes here\n"
2780 msgstr ""
2781
2782 #. type: Plain text
2783 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2784 #: opensuse-leap-16-1 opensuse-tumbleweed
2785 msgid ""
2786 "Omitting the CW<\\*(C`continue\\*(C'> section is equivalent to using an "
2787 "empty one, logically enough, so CW<\\*(C`next\\*(C'> goes directly back to "
2788 "check the condition at the top of the loop."
2789 msgstr ""
2790
2791 #. type: Plain text
2792 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2793 #: opensuse-leap-16-1 opensuse-tumbleweed
2794 msgid ""
2795 "When there is no BLOCK, CW<\\*(C`continue\\*(C'> is a function that falls "
2796 "through the current CW<\\*(C`when\\*(C'> or CW<\\*(C`default\\*(C'> block "
2797 "instead of iterating a dynamically enclosing CW<\\*(C`foreach\\*(C'> or "
2798 "exiting a lexically enclosing CW<\\*(C`given\\*(C'>. In Perl 5.14 and "
2799 "earlier, this form of \\&CW<\\*(C`continue\\*(C'> was only available when "
2800 "the \\&CW<\"switch\"> feature was enabled. See feature and \"Switch "
2801 "Statements\" in perlsyn for more information."
2802 msgstr ""
2803
2804 #. type: IX
2805 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2806 #: opensuse-leap-16-1 opensuse-tumbleweed
2807 #, no-wrap
2808 msgid "cos EXPR"
2809 msgstr ""
2810
2811 #. type: IX
2812 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2813 #: opensuse-leap-16-1 opensuse-tumbleweed
2814 #, no-wrap
2815 msgid "cos cosine acos arccosine"
2816 msgstr ""
2817
2818 #. type: IX
2819 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2820 #: opensuse-leap-16-1 opensuse-tumbleweed
2821 #, no-wrap
2822 msgid "cos"
2823 msgstr ""
2824
2825 #. type: Plain text
2826 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2827 #: opensuse-leap-16-1 opensuse-tumbleweed
2828 msgid ""
2829 "Returns the cosine of EXPR (expressed in radians). If EXPR is omitted, "
2830 "takes the cosine of CW<$_>."
2831 msgstr ""
2832
2833 #. type: Plain text
2834 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2835 #: opensuse-leap-16-1 opensuse-tumbleweed
2836 msgid ""
2837 "For the inverse cosine operation, you may use the "
2838 "\\&CW<\\*(C`Math::Trig::acos\\*(C'> function, or use this relation:"
2839 msgstr ""
2840
2841 #. type: Plain text
2842 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2843 #: opensuse-leap-16-1 opensuse-tumbleweed
2844 #, no-wrap
2845 msgid "\\& sub acos { atan2( sqrt(1 - $_[0] * $_[0]), $_[0] ) }\n"
2846 msgstr ""
2847
2848 #. type: IX
2849 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2850 #: opensuse-leap-16-1 opensuse-tumbleweed
2851 #, no-wrap
2852 msgid "crypt PLAINTEXT,SALT"
2853 msgstr ""
2854
2855 #. type: IX
2856 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2857 #: opensuse-leap-16-1 opensuse-tumbleweed
2858 #, no-wrap
2859 msgid "crypt digest hash salt plaintext password decrypt cryptography passwd encrypt"
2860 msgstr ""
2861
2862 #. type: Plain text
2863 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2864 #: opensuse-leap-16-1 opensuse-tumbleweed
2865 msgid ""
2866 "Creates a digest string exactly like the B<crypt>\\|(3) function in the C "
2867 "library (assuming that you actually have a version there that has not been "
2868 "extirpated as a potential munition)."
2869 msgstr ""
2870
2871 #. type: Plain text
2872 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2873 #: opensuse-leap-16-1 opensuse-tumbleweed
2874 msgid ""
2875 "\\&CW<\\*(C`crypt\\*(C'> is a one-way hash function. The PLAINTEXT and SALT "
2876 "are turned into a short string, called a digest, which is returned. The "
2877 "same PLAINTEXT and SALT will always return the same string, but there is no "
2878 "(known) way to get the original PLAINTEXT from the hash. Small changes in "
2879 "the PLAINTEXT or SALT will result in large changes in the digest."
2880 msgstr ""
2881
2882 #. type: Plain text
2883 #: debian-trixie debian-unstable
2884 msgid ""
2885 "There is no decrypt function. This function isn't all that useful for "
2886 "cryptography (for that, look for I<Crypt> modules on your nearby CPAN "
2887 "mirror) and the name \"crypt\" is a bit of a misnomer. Instead it is "
2888 "primarily used to check if two pieces of text are the same without having to "
2889 "transmit or store the text itself. An example is checking if a correct "
2890 "password is given. The digest of the password is stored, not the password "
2891 "itself. The user types in a password that is \\&CW<\\*(C`crypt\\*(C'>'d "
2892 "with the same salt as the stored digest. If the two digests match, the "
2893 "password is correct."
2894 msgstr ""
2895
2896 #. type: Plain text
2897 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2898 #: opensuse-leap-16-1 opensuse-tumbleweed
2899 msgid ""
2900 "When verifying an existing digest string you should use the digest as the "
2901 "salt (like CW<\\*(C`crypt($plain, $digest) eq $digest\\*(C'>). The SALT "
2902 "used to create the digest is visible as part of the digest. This ensures "
2903 "\\&CW<\\*(C`crypt\\*(C'> will hash the new string with the same salt as the "
2904 "digest. This allows your code to work with the standard "
2905 "\\&CW<\\*(C`crypt\\*(C'> and with more exotic implementations. In other "
2906 "words, assume nothing about the returned string itself nor about how many "
2907 "bytes of SALT may matter."
2908 msgstr ""
2909
2910 #. type: Plain text
2911 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2912 #: opensuse-leap-16-1 opensuse-tumbleweed
2913 msgid ""
2914 "Traditionally the result is a string of 13 bytes: two first bytes of the "
2915 "salt, followed by 11 bytes from the set CW<\\*(C`[./0-9A-Za-z]\\*(C'>, and "
2916 "only the first eight bytes of PLAINTEXT mattered. But alternative hashing "
2917 "schemes (like MD5), higher level security schemes (like C2), and "
2918 "implementations on non-Unix platforms may produce different strings."
2919 msgstr ""
2920
2921 #. type: Plain text
2922 #: debian-trixie debian-unstable
2923 msgid ""
2924 "When choosing a new salt create a random two character string whose "
2925 "characters come from the set CW<\\*(C`[./0-9A-Za-z]\\*(C'> (like "
2926 "CW<\\*(C`join \\*(Aq\\*(Aq, (\\*(Aq.\\*(Aq, \\&\\*(Aq/\\*(Aq, 0..9, "
2927 "\\*(AqA\\*(Aq..\\*(AqZ\\*(Aq, \\*(Aqa\\*(Aq..\\*(Aqz\\*(Aq)[rand 64, rand "
2928 "64]\\*(C'>). This set of characters is just a recommendation; the "
2929 "characters allowed in the salt depend solely on your system's crypt library, "
2930 "and Perl can't restrict what salts CW<\\*(C`crypt\\*(C'> accepts."
2931 msgstr ""
2932
2933 #. type: Plain text
2934 #: debian-trixie debian-unstable
2935 msgid ""
2936 "Here's an example that makes sure that whoever runs this program knows their "
2937 "password:"
2938 msgstr ""
2939
2940 #. type: Plain text
2941 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2942 #: opensuse-leap-16-1 opensuse-tumbleweed
2943 #, no-wrap
2944 msgid ""
2945 "\\& my $pwd = (getpwuid($E<lt>))[1];\n"
2946 "\\&\n"
2947 "\\& system \"stty -echo\";\n"
2948 "\\& print \"Password: \";\n"
2949 "\\& chomp(my $word = E<lt>STDINE<gt>);\n"
2950 "\\& print \"\\en\";\n"
2951 "\\& system \"stty echo\";\n"
2952 "\\&\n"
2953 "\\& if (crypt($word, $pwd) ne $pwd) {\n"
2954 "\\& die \"Sorry...\\en\";\n"
2955 "\\& } else {\n"
2956 "\\& print \"ok\\en\";\n"
2957 "\\& }\n"
2958 msgstr ""
2959
2960 #. type: Plain text
2961 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2962 #: opensuse-leap-16-1 opensuse-tumbleweed
2963 msgid ""
2964 "Of course, typing in your own password to whoever asks you for it is unwise."
2965 msgstr ""
2966
2967 #. type: Plain text
2968 #: debian-trixie debian-unstable
2969 msgid ""
2970 "The CW<\\*(C`crypt\\*(C'> function is unsuitable for hashing large "
2971 "quantities of data, not least of all because you can't get the information "
2972 "back. Look at the Digest module for more robust algorithms."
2973 msgstr ""
2974
2975 #. type: Plain text
2976 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2977 #: opensuse-leap-16-1 opensuse-tumbleweed
2978 msgid ""
2979 "If using CW<\\*(C`crypt\\*(C'> on a Unicode string (which \\&I<potentially> "
2980 "has characters with codepoints above 255), Perl tries to make sense of the "
2981 "situation by trying to downgrade (a copy of) the string back to an eight-bit "
2982 "byte string before calling \\&CW<\\*(C`crypt\\*(C'> (on that copy). If that "
2983 "works, good. If not, CW<\\*(C`crypt\\*(C'> dies with \\&CW<\\*(C`Wide "
2984 "character in crypt\\*(C'>."
2985 msgstr ""
2986
2987 #. type: Plain text
2988 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2989 #: opensuse-leap-16-1 opensuse-tumbleweed
2990 msgid "Portability issues: \"crypt\" in perlport."
2991 msgstr ""
2992
2993 #. type: IX
2994 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2995 #: opensuse-leap-16-1 opensuse-tumbleweed
2996 #, no-wrap
2997 msgid "dbmclose HASH"
2998 msgstr ""
2999
3000 #. type: IX
3001 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3002 #: opensuse-leap-16-1 opensuse-tumbleweed
3003 #, no-wrap
3004 msgid "dbmclose"
3005 msgstr ""
3006
3007 #. type: Plain text
3008 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3009 #: opensuse-leap-16-1 opensuse-tumbleweed
3010 msgid ""
3011 "[This function has been largely superseded by the \\&CW<\\*(C`untie\\*(C'> "
3012 "function.]"
3013 msgstr ""
3014
3015 #. type: Plain text
3016 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3017 #: opensuse-leap-16-1 opensuse-tumbleweed
3018 msgid "Breaks the binding between a DBM file and a hash."
3019 msgstr ""
3020
3021 #. type: Plain text
3022 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3023 #: opensuse-leap-16-1 opensuse-tumbleweed
3024 msgid "Portability issues: \"dbmclose\" in perlport."
3025 msgstr ""
3026
3027 #. type: IX
3028 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3029 #: opensuse-leap-16-1 opensuse-tumbleweed
3030 #, no-wrap
3031 msgid "dbmopen HASH,DBNAME,MASK"
3032 msgstr ""
3033
3034 #. type: IX
3035 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3036 #: opensuse-leap-16-1 opensuse-tumbleweed
3037 #, no-wrap
3038 msgid "dbmopen dbm ndbm sdbm gdbm"
3039 msgstr ""
3040
3041 #. type: Plain text
3042 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3043 #: opensuse-leap-16-1 opensuse-tumbleweed
3044 msgid ""
3045 "[This function has been largely superseded by the \\&CW<\\*(C`tie\\*(C'> "
3046 "function.]"
3047 msgstr ""
3048
3049 #. type: Plain text
3050 #: debian-trixie debian-unstable
3051 msgid ""
3052 "This binds a B<dbm>\\|(3), B<ndbm>\\|(3), B<sdbm>\\|(3), B<gdbm>\\|(3), or "
3053 "Berkeley DB file to a hash. HASH is the name of the hash. (Unlike normal "
3054 "\\&CW<\\*(C`open\\*(C'>, the first argument is I<not> a filehandle, even "
3055 "though it looks like one). DBNAME is the name of the database (without the "
3056 "I<.dir> or I<.pag> extension if any). If the database does not exist, it is "
3057 "created with protection specified by MASK (as modified by the "
3058 "CW<\\*(C`umask\\*(C'>). To prevent creation of the database if it doesn't "
3059 "exist, you may specify a MASK of 0, and the function will return a false "
3060 "value if it can't find an existing database. If your system supports only "
3061 "the older DBM functions, you may make only one CW<\\*(C`dbmopen\\*(C'> call "
3062 "in your program. In older versions of Perl, if your system had neither DBM "
3063 "nor ndbm, calling CW<\\*(C`dbmopen\\*(C'> produced a fatal error; it now "
3064 "falls back to B<sdbm>\\|(3)."
3065 msgstr ""
3066
3067 #. type: Plain text
3068 #: debian-trixie debian-unstable
3069 msgid ""
3070 "If you don't have write access to the DBM file, you can only read hash "
3071 "variables, not set them. If you want to test whether you can write, either "
3072 "use file tests or try setting a dummy hash entry inside an "
3073 "\\&CW<\\*(C`eval\\*(C'> to trap the error."
3074 msgstr ""
3075
3076 #. type: Plain text
3077 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3078 #: opensuse-leap-16-1 opensuse-tumbleweed
3079 msgid ""
3080 "Note that functions such as CW<\\*(C`keys\\*(C'> and "
3081 "\\&CW<\\*(C`values\\*(C'> may return huge lists when used on large DBM "
3082 "files. You may prefer to use the CW<\\*(C`each\\*(C'> function to iterate "
3083 "over large DBM files. Example:"
3084 msgstr ""
3085
3086 #. type: Plain text
3087 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3088 #: opensuse-leap-16-1 opensuse-tumbleweed
3089 #, no-wrap
3090 msgid ""
3091 "\\& # print out history file offsets\n"
3092 "\\& dbmopen(%HIST,\\*(Aq/usr/lib/news/history\\*(Aq,0666);\n"
3093 "\\& while (($key,$val) = each %HIST) {\n"
3094 "\\& print $key, \\*(Aq = \\*(Aq, unpack(\\*(AqL\\*(Aq,$val), \"\\en\";\n"
3095 "\\& }\n"
3096 "\\& dbmclose(%HIST);\n"
3097 msgstr ""
3098
3099 #. type: Plain text
3100 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3101 #: opensuse-leap-16-1 opensuse-tumbleweed
3102 msgid ""
3103 "See also AnyDBM_File for a more general description of the pros and cons of "
3104 "the various dbm approaches, as well as DB_File for a particularly rich "
3105 "implementation."
3106 msgstr ""
3107
3108 #. type: Plain text
3109 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3110 #: opensuse-leap-16-1 opensuse-tumbleweed
3111 msgid ""
3112 "You can control which DBM library you use by loading that library before you "
3113 "call CW<\\*(C`dbmopen\\*(C'>:"
3114 msgstr ""
3115
3116 #. type: Plain text
3117 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3118 #: opensuse-leap-16-1 opensuse-tumbleweed
3119 #, no-wrap
3120 msgid ""
3121 "\\& use DB_File;\n"
3122 "\\& dbmopen(%NS_Hist, \"$ENV{HOME}/.netscape/history.db\")\n"
3123 "\\& or die \"Can\\*(Aqt open netscape history file: $!\";\n"
3124 msgstr ""
3125
3126 #. type: Plain text
3127 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3128 #: opensuse-leap-16-1 opensuse-tumbleweed
3129 msgid "Portability issues: \"dbmopen\" in perlport."
3130 msgstr ""
3131
3132 #. type: IX
3133 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3134 #: opensuse-leap-16-1 opensuse-tumbleweed
3135 #, no-wrap
3136 msgid "defined EXPR"
3137 msgstr ""
3138
3139 #. type: IX
3140 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3141 #: opensuse-leap-16-1 opensuse-tumbleweed
3142 #, no-wrap
3143 msgid "defined undef undefined"
3144 msgstr ""
3145
3146 #. type: IX
3147 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3148 #: opensuse-leap-16-1 opensuse-tumbleweed
3149 #, no-wrap
3150 msgid "defined"
3151 msgstr ""
3152
3153 #. type: Plain text
3154 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3155 #: opensuse-leap-16-1 opensuse-tumbleweed
3156 msgid ""
3157 "Returns a Boolean value telling whether EXPR has a value other than the "
3158 "undefined value CW<\\*(C`undef\\*(C'>. If EXPR is not present, \\&CW<$_> is "
3159 "checked."
3160 msgstr ""
3161
3162 #. type: Plain text
3163 #: debian-trixie debian-unstable
3164 msgid ""
3165 "Many operations return CW<\\*(C`undef\\*(C'> to indicate failure, end of "
3166 "file, system error, uninitialized variable, and other exceptional "
3167 "conditions. This function allows you to distinguish "
3168 "\\&CW<\\*(C`undef\\*(C'> from other values. (A simple Boolean test will not "
3169 "distinguish among CW<\\*(C`undef\\*(C'>, zero, the empty string, and "
3170 "CW<\"0\">, which are all equally false.) Note that since "
3171 "\\&CW<\\*(C`undef\\*(C'> is a valid scalar, its presence doesn't "
3172 "\\&I<necessarily> indicate an exceptional condition: CW<\\*(C`pop\\*(C'> "
3173 "returns CW<\\*(C`undef\\*(C'> when its argument is an empty array, \\&I<or> "
3174 "when the element to return happens to be CW<\\*(C`undef\\*(C'>."
3175 msgstr ""
3176
3177 #. type: Plain text
3178 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3179 #: opensuse-leap-16-1 opensuse-tumbleweed
3180 msgid ""
3181 "You may also use CW<defined(&func)> to check whether subroutine "
3182 "CW<\\*(C`func\\*(C'> has ever been defined. The return value is unaffected "
3183 "by any forward declarations of CW<\\*(C`func\\*(C'>. A subroutine that is "
3184 "not defined may still be callable: its package may have an "
3185 "CW<\\*(C`AUTOLOAD\\*(C'> method that makes it spring into existence the "
3186 "first time that it is called; see perlsub."
3187 msgstr ""
3188
3189 #. type: Plain text
3190 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3191 #: opensuse-leap-16-1 opensuse-tumbleweed
3192 msgid ""
3193 "Use of CW<\\*(C`defined\\*(C'> on aggregates (hashes and arrays) is no "
3194 "longer supported. It used to report whether memory for that aggregate had "
3195 "ever been allocated. You should instead use a simple test for size:"
3196 msgstr ""
3197
3198 #. type: Plain text
3199 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3200 #: opensuse-leap-16-1 opensuse-tumbleweed
3201 #, no-wrap
3202 msgid ""
3203 "\\& if (@an_array) { print \"has array elements\\en\" }\n"
3204 "\\& if (%a_hash) { print \"has hash members\\en\" }\n"
3205 msgstr ""
3206
3207 #. type: Plain text
3208 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3209 #: opensuse-leap-16-1 opensuse-tumbleweed
3210 msgid ""
3211 "When used on a hash element, it tells you whether the value is defined, not "
3212 "whether the key exists in the hash. Use CW<\\*(C`exists\\*(C'> for the "
3213 "latter purpose."
3214 msgstr ""
3215
3216 #. type: Plain text
3217 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3218 #: opensuse-leap-16-1 opensuse-tumbleweed
3219 msgid "Examples:"
3220 msgstr ""
3221
3222 #. type: Plain text
3223 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3224 #: opensuse-leap-16-1 opensuse-tumbleweed
3225 #, no-wrap
3226 msgid ""
3227 "\\& print if defined $switch{D};\n"
3228 "\\& print \"$val\\en\" while defined($val = pop(@ary));\n"
3229 "\\& die \"Can\\*(Aqt readlink $sym: $!\"\n"
3230 "\\& unless defined($value = readlink $sym);\n"
3231 "\\& sub foo { defined &$bar ? $bar-E<gt>(@_) : die \"No bar\"; }\n"
3232 "\\& $debugging = 0 unless defined $debugging;\n"
3233 msgstr ""
3234
3235 #. type: Plain text
3236 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3237 #: opensuse-leap-16-1 opensuse-tumbleweed
3238 msgid ""
3239 "Note: Many folks tend to overuse CW<\\*(C`defined\\*(C'> and are then "
3240 "surprised to discover that the number CW<0> and CW<\"\"> (the zero-length "
3241 "string) are, in fact, defined values. For example, if you say"
3242 msgstr ""
3243
3244 #. type: Plain text
3245 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3246 #: opensuse-leap-16-1 opensuse-tumbleweed
3247 #, no-wrap
3248 msgid "\\& \"ab\" =~ /a(.*)b/;\n"
3249 msgstr ""
3250
3251 #. type: Plain text
3252 #: debian-trixie debian-unstable
3253 msgid ""
3254 "The pattern match succeeds and CW<$1> is defined, although it matched "
3255 "\"nothing\". It didn't really fail to match anything. Rather, it matched "
3256 "something that happened to be zero characters long. This is all very above-"
3257 "board and honest. When a function returns an undefined value, it's an "
3258 "admission that it couldn't give you an honest answer. So you should use "
3259 "CW<\\*(C`defined\\*(C'> only when questioning the integrity of what you're "
3260 "trying to do. At other times, a simple comparison to CW<0> or CW<\"\"> is "
3261 "what you want."
3262 msgstr ""
3263
3264 #. type: Plain text
3265 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3266 #: opensuse-leap-16-1 opensuse-tumbleweed
3267 msgid ""
3268 "See also CW<\\*(C`undef\\*(C'>, CW<\\*(C`exists\\*(C'>, "
3269 "\\&CW<\\*(C`ref\\*(C'>."
3270 msgstr ""
3271
3272 #. type: IX
3273 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3274 #: opensuse-leap-16-1 opensuse-tumbleweed
3275 #, no-wrap
3276 msgid "delete EXPR"
3277 msgstr ""
3278
3279 #. type: IX
3280 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3281 #: opensuse-leap-16-1 opensuse-tumbleweed
3282 #, no-wrap
3283 msgid "delete"
3284 msgstr ""
3285
3286 #. type: Plain text
3287 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3288 #: opensuse-leap-16-1 opensuse-tumbleweed
3289 msgid ""
3290 "Given an expression that specifies an element or slice of a hash, "
3291 "\\&CW<\\*(C`delete\\*(C'> deletes the specified elements from that hash so "
3292 "that CW<\\*(C`exists\\*(C'> on that element no longer returns true. Setting "
3293 "a hash element to the undefined value does not remove its key, but deleting "
3294 "it does; see CW<\\*(C`exists\\*(C'>."
3295 msgstr ""
3296
3297 #. type: Plain text
3298 #: debian-trixie debian-unstable
3299 msgid ""
3300 "In list context, usually returns the value or values deleted, or the last "
3301 "such element in scalar context. The return list's length corresponds to "
3302 "that of the argument list: deleting non-existent elements returns the "
3303 "undefined value in their corresponding positions. Since Perl 5.28, a key/"
3304 "value hash slice can be passed to CW<\\*(C`delete\\*(C'>, and the return "
3305 "value is a list of key/value pairs (two elements for each item deleted from "
3306 "the hash)."
3307 msgstr ""
3308
3309 #. type: Plain text
3310 #: debian-trixie debian-unstable
3311 msgid ""
3312 "\\&CW<\\*(C`delete\\*(C'> may also be used on arrays and array slices, but "
3313 "its behavior is less straightforward. Although \\&CW<\\*(C`exists\\*(C'> "
3314 "will return false for deleted entries, deleting array elements never changes "
3315 "indices of existing values; use \\&CW<\\*(C`shift\\*(C'> or "
3316 "CW<\\*(C`splice\\*(C'> for that. However, if any deleted elements fall at "
3317 "the end of an array, the array's size shrinks to the position of the highest "
3318 "element that still tests true for CW<\\*(C`exists\\*(C'>, or to 0 if none "
3319 "do. In other words, an array won't have trailing nonexistent elements after "
3320 "a delete."
3321 msgstr ""
3322
3323 #. type: Plain text
3324 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3325 #: opensuse-leap-16-1 opensuse-tumbleweed
3326 msgid ""
3327 "\\&B<WARNING:> Calling CW<\\*(C`delete\\*(C'> on array values is strongly "
3328 "discouraged. The notion of deleting or checking the existence of Perl array "
3329 "elements is not conceptually coherent, and can lead to surprising behavior."
3330 msgstr ""
3331
3332 #. type: Plain text
3333 #: debian-trixie debian-unstable
3334 msgid ""
3335 "Deleting from CW<%ENV> modifies the environment. Deleting from a hash tied "
3336 "to a DBM file deletes the entry from the DBM file. Deleting from a "
3337 "CW<\\*(C`tied\\*(C'> hash or array may not necessarily return anything; it "
3338 "depends on the implementation of the \\&CW<\\*(C`tied\\*(C'> package's "
3339 "DELETE method, which may do whatever it pleases."
3340 msgstr ""
3341
3342 #. type: Plain text
3343 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3344 #: opensuse-leap-16-1 opensuse-tumbleweed
3345 msgid ""
3346 "The CW<\\*(C`delete local EXPR\\*(C'> construct localizes the deletion to "
3347 "the current block at run time. Until the block exits, elements locally "
3348 "deleted temporarily no longer exist. See \"Localized deletion of elements "
3349 "of composite types\" in perlsub."
3350 msgstr ""
3351
3352 #. type: Plain text
3353 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3354 #: opensuse-leap-16-1 opensuse-tumbleweed
3355 #, no-wrap
3356 msgid ""
3357 "\\& my %hash = (foo =E<gt> 11, bar =E<gt> 22, baz =E<gt> 33);\n"
3358 "\\& my $scalar = delete $hash{foo}; # $scalar is 11\n"
3359 "\\& $scalar = delete @hash{qw(foo bar)}; # $scalar is 22\n"
3360 "\\& my @array = delete @hash{qw(foo baz)}; # @array is (undef,33)\n"
3361 msgstr ""
3362
3363 #. type: Plain text
3364 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3365 #: opensuse-leap-16-1 opensuse-tumbleweed
3366 msgid ""
3367 "The following (inefficiently) deletes all the values of CW<%HASH> and "
3368 "CW<@ARRAY:>"
3369 msgstr ""
3370
3371 #. type: Plain text
3372 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3373 #: opensuse-leap-16-1 opensuse-tumbleweed
3374 #, no-wrap
3375 msgid ""
3376 "\\& foreach my $key (keys %HASH) {\n"
3377 "\\& delete $HASH{$key};\n"
3378 "\\& }\n"
3379 "\\&\n"
3380 "\\& foreach my $index (0 .. $#ARRAY) {\n"
3381 "\\& delete $ARRAY[$index];\n"
3382 "\\& }\n"
3383 msgstr ""
3384
3385 #. type: Plain text
3386 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3387 #: opensuse-leap-16-1 opensuse-tumbleweed
3388 msgid "And so do these:"
3389 msgstr ""
3390
3391 #. type: Plain text
3392 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3393 #: opensuse-leap-16-1 opensuse-tumbleweed
3394 #, no-wrap
3395 msgid ""
3396 "\\& delete @HASH{keys %HASH};\n"
3397 "\\&\n"
3398 "\\& delete @ARRAY[0 .. $#ARRAY];\n"
3399 msgstr ""
3400
3401 #. type: Plain text
3402 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3403 #: opensuse-leap-16-1 opensuse-tumbleweed
3404 msgid ""
3405 "But both are slower than assigning the empty list or undefining CW<%HASH> or "
3406 "CW<@ARRAY>, which is the customary way to empty out an aggregate:"
3407 msgstr ""
3408
3409 #. type: Plain text
3410 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3411 #: opensuse-leap-16-1 opensuse-tumbleweed
3412 #, no-wrap
3413 msgid ""
3414 "\\& %HASH = (); # completely empty %HASH\n"
3415 "\\& undef %HASH; # forget %HASH ever existed\n"
3416 "\\&\n"
3417 "\\& @ARRAY = (); # completely empty @ARRAY\n"
3418 "\\& undef @ARRAY; # forget @ARRAY ever existed\n"
3419 msgstr ""
3420
3421 #. type: Plain text
3422 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3423 #: opensuse-leap-16-1 opensuse-tumbleweed
3424 msgid ""
3425 "The EXPR can be arbitrarily complicated provided its final operation is an "
3426 "element or slice of an aggregate:"
3427 msgstr ""
3428
3429 #. type: Plain text
3430 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3431 #: opensuse-leap-16-1 opensuse-tumbleweed
3432 #, no-wrap
3433 msgid ""
3434 "\\& delete $ref-E<gt>[$x][$y]{$key};\n"
3435 "\\& delete $ref-E<gt>[$x][$y]-E<gt>@{$key1, $key2, @morekeys};\n"
3436 "\\&\n"
3437 "\\& delete $ref-E<gt>[$x][$y][$index];\n"
3438 "\\& delete $ref-E<gt>[$x][$y]-E<gt>@[$index1, $index2, @moreindices];\n"
3439 msgstr ""
3440
3441 #. type: IX
3442 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3443 #: opensuse-leap-16-1 opensuse-tumbleweed
3444 #, no-wrap
3445 msgid "die LIST"
3446 msgstr ""
3447
3448 #. type: IX
3449 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3450 #: opensuse-leap-16-1 opensuse-tumbleweed
3451 #, no-wrap
3452 msgid "die throw exception raise $@ abort"
3453 msgstr ""
3454
3455 #. type: Plain text
3456 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3457 #: opensuse-leap-16-1 opensuse-tumbleweed
3458 msgid ""
3459 "\\&CW<\\*(C`die\\*(C'> raises an exception. Inside an CW<\\*(C`eval\\*(C'> "
3460 "the exception is stuffed into CW<$@> and the CW<\\*(C`eval\\*(C'> is "
3461 "terminated with the undefined value. If the exception is outside of all "
3462 "enclosing CW<\\*(C`eval\\*(C'>s, then the uncaught exception is printed to "
3463 "CW<\\*(C`STDERR\\*(C'> and perl exits with an exit code indicating failure. "
3464 "If you need to exit the process with a specific exit code, see "
3465 "CW<\\*(C`exit\\*(C'>."
3466 msgstr ""
3467
3468 #. type: Plain text
3469 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3470 #: opensuse-leap-16-1 opensuse-tumbleweed
3471 msgid "Equivalent examples:"
3472 msgstr ""
3473
3474 #. type: Plain text
3475 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3476 #: opensuse-leap-16-1 opensuse-tumbleweed
3477 #, no-wrap
3478 msgid ""
3479 "\\& die \"Can\\*(Aqt cd to spool: $!\\en\" unless chdir \\*(Aq/usr/spool/news\\*(Aq;\n"
3480 "\\& chdir \\*(Aq/usr/spool/news\\*(Aq or die \"Can\\*(Aqt cd to spool: $!\\en\"\n"
3481 msgstr ""
3482
3483 #. type: Plain text
3484 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3485 #: opensuse-leap-16-1 opensuse-tumbleweed
3486 msgid ""
3487 "Most of the time, CW<\\*(C`die\\*(C'> is called with a string to use as the "
3488 "exception. You may either give a single non-reference operand to serve as "
3489 "the exception, or a list of two or more items, which will be stringified and "
3490 "concatenated to make the exception."
3491 msgstr ""
3492
3493 #. type: Plain text
3494 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3495 #: opensuse-leap-16-1 opensuse-tumbleweed
3496 msgid ""
3497 "If the string exception does not end in a newline, the current script line "
3498 "number and input line number (if any) and a newline are appended to it. "
3499 "Note that the \"input line number\" (also known as \"chunk\") is subject to "
3500 "whatever notion of \"line\" happens to be currently in effect, and is also "
3501 "available as the special variable \\&CW<$.>. See \"$/\" in perlvar and \"$."
3502 "\" in perlvar."
3503 msgstr ""
3504
3505 #. type: Plain text
3506 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3507 #: opensuse-leap-16-1 opensuse-tumbleweed
3508 msgid ""
3509 "Hint: sometimes appending CW<\", stopped\"> to your message will cause it to "
3510 "make better sense when the string CW<\"at foo line 123\"> is appended. "
3511 "Suppose you are running script \"canasta\"."
3512 msgstr ""
3513
3514 #. type: Plain text
3515 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3516 #: opensuse-leap-16-1 opensuse-tumbleweed
3517 #, no-wrap
3518 msgid ""
3519 "\\& die \"/etc/games is no good\";\n"
3520 "\\& die \"/etc/games is no good, stopped\";\n"
3521 msgstr ""
3522
3523 #. type: Plain text
3524 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3525 #: opensuse-leap-16-1 opensuse-tumbleweed
3526 msgid "produce, respectively"
3527 msgstr ""
3528
3529 #. type: Plain text
3530 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3531 #: opensuse-leap-16-1 opensuse-tumbleweed
3532 #, no-wrap
3533 msgid ""
3534 "\\& /etc/games is no good at canasta line 123.\n"
3535 "\\& /etc/games is no good, stopped at canasta line 123.\n"
3536 msgstr ""
3537
3538 #. type: Plain text
3539 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3540 #: opensuse-leap-16-1 opensuse-tumbleweed
3541 msgid ""
3542 "If LIST was empty or made an empty string, and CW<$@> already contains an "
3543 "exception value (typically from a previous \\&CW<\\*(C`eval\\*(C'>), then "
3544 "that value is reused after appending CW<\"\\et...propagated\">. This is "
3545 "useful for propagating exceptions:"
3546 msgstr ""
3547
3548 #. type: Plain text
3549 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3550 #: opensuse-leap-16-1 opensuse-tumbleweed
3551 #, no-wrap
3552 msgid ""
3553 "\\& eval { ... };\n"
3554 "\\& die unless $@ =~ /Expected exception/;\n"
3555 msgstr ""
3556
3557 #. type: Plain text
3558 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3559 #: opensuse-leap-16-1 opensuse-tumbleweed
3560 msgid ""
3561 "If LIST was empty or made an empty string, and CW<$@> contains an object "
3562 "reference that has a CW<\\*(C`PROPAGATE\\*(C'> method, that method will be "
3563 "called with additional file and line number parameters. The return value "
3564 "replaces the value in CW<$@>; i.e., as if \\&CW<\\*(C`$@ = eval { $@-"
3565 "E<gt>PROPAGATE(_\\|_FILE_\\|_, _\\|_LINE_\\|_) };\\*(C'> were called."
3566 msgstr ""
3567
3568 #. type: Plain text
3569 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3570 #: opensuse-leap-16-1 opensuse-tumbleweed
3571 msgid ""
3572 "If LIST was empty or made an empty string, and CW<$@> is also empty, then "
3573 "the string CW<\"Died\"> is used."
3574 msgstr ""
3575
3576 #. type: Plain text
3577 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3578 #: opensuse-leap-16-1 opensuse-tumbleweed
3579 msgid ""
3580 "You can also call CW<\\*(C`die\\*(C'> with a reference argument, and if this "
3581 "is trapped within an CW<\\*(C`eval\\*(C'>, CW<$@> contains that reference. "
3582 "This permits more elaborate exception handling using objects that maintain "
3583 "arbitrary state about the exception. Such a scheme is sometimes preferable "
3584 "to matching particular string values of \\&CW<$@> with regular expressions."
3585 msgstr ""
3586
3587 #. type: Plain text
3588 #: debian-trixie debian-unstable
3589 msgid ""
3590 "Because Perl stringifies uncaught exception messages before display, you'll "
3591 "probably want to overload stringification operations on exception objects. "
3592 "See overload for details about that. The stringified message should be non-"
3593 "empty, and should end in a newline, in order to fit in with the treatment of "
3594 "string exceptions. Also, because an exception object reference cannot be "
3595 "stringified without destroying it, Perl doesn't attempt to append location "
3596 "or other information to a reference exception. If you want location "
3597 "information with a complex exception object, you'll have to arrange to put "
3598 "the location information into the object yourself."
3599 msgstr ""
3600
3601 #. type: Plain text
3602 #: debian-trixie debian-unstable
3603 msgid ""
3604 "Because CW<$@> is a global variable, be careful that analyzing an exception "
3605 "caught by CW<\\*(C`eval\\*(C'> doesn't replace the reference in the global "
3606 "variable. It's easiest to make a local copy of the reference before any "
3607 "manipulations. Here's an example:"
3608 msgstr ""
3609
3610 #. type: Plain text
3611 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3612 #: opensuse-leap-16-1 opensuse-tumbleweed
3613 #, no-wrap
3614 msgid ""
3615 "\\& use Scalar::Util \"blessed\";\n"
3616 "\\&\n"
3617 "\\& eval { ... ; die Some::Module::Exception-E<gt>new( FOO =E<gt> \"bar\" ) };\n"
3618 "\\& if (my $ev_err = $@) {\n"
3619 "\\& if (blessed($ev_err)\n"
3620 "\\& && $ev_err-E<gt>isa(\"Some::Module::Exception\")) {\n"
3621 "\\& # handle Some::Module::Exception\n"
3622 "\\& }\n"
3623 "\\& else {\n"
3624 "\\& # handle all other possible exceptions\n"
3625 "\\& }\n"
3626 "\\& }\n"
3627 msgstr ""
3628
3629 #. type: Plain text
3630 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3631 #: opensuse-leap-16-1 opensuse-tumbleweed
3632 msgid ""
3633 "If an uncaught exception results in interpreter exit, the exit code is "
3634 "determined from the values of CW<$!> and \\&CW<$?> with this pseudocode:"
3635 msgstr ""
3636
3637 #. type: Plain text
3638 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3639 #: opensuse-leap-16-1 opensuse-tumbleweed
3640 #, no-wrap
3641 msgid ""
3642 "\\& exit $! if $!; # errno\n"
3643 "\\& exit $? E<gt>E<gt> 8 if $? E<gt>E<gt> 8; # child exit status\n"
3644 "\\& exit 255; # last resort\n"
3645 msgstr ""
3646
3647 #. type: Plain text
3648 #: debian-trixie debian-unstable
3649 msgid ""
3650 "As with CW<\\*(C`exit\\*(C'>, CW<$?> is set prior to unwinding the call "
3651 "stack; any CW<\\*(C`DESTROY\\*(C'> or CW<\\*(C`END\\*(C'> handlers can then "
3652 "alter this value, and thus Perl's exit code."
3653 msgstr ""
3654
3655 #. type: Plain text
3656 #: debian-trixie debian-unstable
3657 msgid ""
3658 "The intent is to squeeze as much possible information about the likely cause "
3659 "into the limited space of the system exit code. However, as \\&CW<$!> is "
3660 "the value of C's CW<\\*(C`errno\\*(C'>, which can be set by any system call, "
3661 "this means that the value of the exit code used by \\&CW<\\*(C`die\\*(C'> "
3662 "can be non-predictable, so should not be relied upon, other than to be non-"
3663 "zero."
3664 msgstr ""
3665
3666 #. type: Plain text
3667 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3668 #: opensuse-leap-16-1 opensuse-tumbleweed
3669 msgid ""
3670 "You can arrange for a callback to be run just before the "
3671 "\\&CW<\\*(C`die\\*(C'> does its deed, by setting the \\&CW<$SIG{_\\|_DIE_\\|"
3672 "_}> hook. The associated handler is called with the exception as an "
3673 "argument, and can change the exception, if it sees fit, by calling "
3674 "CW<\\*(C`die\\*(C'> again. See \"%SIG\" in perlvar for details on setting "
3675 "CW<%SIG> entries, and CW<\\*(C`eval\\*(C'> for some examples. Although this "
3676 "feature was to be run only right before your program was to exit, this is "
3677 "not currently so: the \\&CW<$SIG{_\\|_DIE_\\|_}> hook is currently called "
3678 "even inside \\&CW<\\*(C`eval\\*(C'>ed blocks/strings! If one wants the hook "
3679 "to do nothing in such situations, put"
3680 msgstr ""
3681
3682 #. type: Plain text
3683 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3684 #: opensuse-leap-16-1 opensuse-tumbleweed
3685 #, no-wrap
3686 msgid "\\& die @_ if $^S;\n"
3687 msgstr ""
3688
3689 #. type: Plain text
3690 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3691 #: opensuse-leap-16-1 opensuse-tumbleweed
3692 msgid ""
3693 "as the first line of the handler (see \"$^S\" in perlvar). Because this "
3694 "promotes strange action at a distance, this counterintuitive behavior may be "
3695 "fixed in a future release."
3696 msgstr ""
3697
3698 #. type: Plain text
3699 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3700 #: opensuse-leap-16-1 opensuse-tumbleweed
3701 msgid ""
3702 "See also CW<\\*(C`exit\\*(C'>, CW<\\*(C`warn\\*(C'>, and the Carp module."
3703 msgstr ""
3704
3705 #. type: IX
3706 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3707 #: opensuse-leap-16-1 opensuse-tumbleweed
3708 #, no-wrap
3709 msgid "do BLOCK"
3710 msgstr ""
3711
3712 #. type: IX
3713 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3714 #: opensuse-leap-16-1 opensuse-tumbleweed
3715 #, no-wrap
3716 msgid "do block"
3717 msgstr ""
3718
3719 #. type: Plain text
3720 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3721 #: opensuse-leap-16-1 opensuse-tumbleweed
3722 msgid ""
3723 "Not really a function. Returns the value of the last command in the "
3724 "sequence of commands indicated by BLOCK. When modified by the "
3725 "CW<\\*(C`while\\*(C'> or \\&CW<\\*(C`until\\*(C'> loop modifier, executes "
3726 "the BLOCK once before testing the loop condition. (On other statements the "
3727 "loop modifiers test the conditional first.)"
3728 msgstr ""
3729
3730 #. type: Plain text
3731 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3732 #: opensuse-leap-16-1 opensuse-tumbleweed
3733 msgid ""
3734 "\\&CW<\\*(C`do BLOCK\\*(C'> does I<not> count as a loop, so the loop control "
3735 "statements \\&CW<\\*(C`next\\*(C'>, CW<\\*(C`last\\*(C'>, or "
3736 "\\&CW<\\*(C`redo\\*(C'> cannot be used to leave or restart the block. See "
3737 "perlsyn for alternative strategies."
3738 msgstr ""
3739
3740 #. type: IX
3741 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3742 #: opensuse-leap-16-1 opensuse-tumbleweed
3743 #, no-wrap
3744 msgid "do EXPR"
3745 msgstr ""
3746
3747 #. type: IX
3748 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3749 #: opensuse-leap-16-1 opensuse-tumbleweed
3750 #, no-wrap
3751 msgid "do"
3752 msgstr ""
3753
3754 #. type: Plain text
3755 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3756 #: opensuse-leap-16-1 opensuse-tumbleweed
3757 msgid ""
3758 "Uses the value of EXPR as a filename and executes the contents of the file "
3759 "as a Perl script:"
3760 msgstr ""
3761
3762 #. type: Plain text
3763 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3764 #: opensuse-leap-16-1 opensuse-tumbleweed
3765 #, no-wrap
3766 msgid ""
3767 "\\& # load the exact specified file (./ and ../ special-cased)\n"
3768 "\\& do \\*(Aq/foo/stat.pl\\*(Aq;\n"
3769 "\\& do \\*(Aq./stat.pl\\*(Aq;\n"
3770 "\\& do \\*(Aq../foo/stat.pl\\*(Aq;\n"
3771 "\\&\n"
3772 "\\& # search for the named file within @INC\n"
3773 "\\& do \\*(Aqstat.pl\\*(Aq;\n"
3774 "\\& do \\*(Aqfoo/stat.pl\\*(Aq;\n"
3775 msgstr ""
3776
3777 #. type: Plain text
3778 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3779 #: opensuse-leap-16-1 opensuse-tumbleweed
3780 msgid "\\&CW<\\*(C`do \\*(Aq./stat.pl\\*(Aq\\*(C'> is largely like"
3781 msgstr ""
3782
3783 #. type: Plain text
3784 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3785 #: opensuse-leap-16-1 opensuse-tumbleweed
3786 #, no-wrap
3787 msgid "\\& eval \\`cat stat.pl\\`;\n"
3788 msgstr ""
3789
3790 #. type: Plain text
3791 #: debian-trixie debian-unstable
3792 msgid ""
3793 "except that it's more concise, runs no external processes, and keeps track "
3794 "of the current filename for error messages. It also differs in that code "
3795 "evaluated with CW<\\*(C`do FILE\\*(C'> cannot see lexicals in the enclosing "
3796 "scope; CW<\\*(C`eval STRING\\*(C'> does. It's the same, however, in that it "
3797 "does reparse the file every time you call it, so you probably don't want to "
3798 "do this inside a loop."
3799 msgstr ""
3800
3801 #. type: Plain text
3802 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3803 #: opensuse-leap-16-1 opensuse-tumbleweed
3804 msgid ""
3805 "Using CW<\\*(C`do\\*(C'> with a relative path (except for I<./> and I<../>), "
3806 "like"
3807 msgstr ""
3808
3809 #. type: Plain text
3810 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3811 #: opensuse-leap-16-1 opensuse-tumbleweed
3812 #, no-wrap
3813 msgid "\\& do \\*(Aqfoo/stat.pl\\*(Aq;\n"
3814 msgstr ""
3815
3816 #. type: Plain text
3817 #: debian-trixie debian-unstable
3818 msgid ""
3819 "will search the CW<@INC> directories, and update \\&CW<%INC> if the file is "
3820 "found. See \"@INC\" in perlvar and \"%INC\" in perlvar for these variables. "
3821 "In particular, note that whilst historically CW<@INC> contained '.' (the "
3822 "current directory) making these two cases equivalent, that is no longer "
3823 "necessarily the case, as '.' is not included in CW<@INC> by default in perl "
3824 "versions 5.26.0 onwards. Instead, perl will now warn:"
3825 msgstr ""
3826
3827 #. type: Plain text
3828 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3829 #: opensuse-leap-16-1 opensuse-tumbleweed
3830 #, no-wrap
3831 msgid ""
3832 "\\& do \"stat.pl\" failed, \\*(Aq.\\*(Aq is no longer in @INC;\n"
3833 "\\& did you mean do \"./stat.pl\"?\n"
3834 msgstr ""
3835
3836 #. type: Plain text
3837 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3838 #: opensuse-leap-16-1 opensuse-tumbleweed
3839 msgid ""
3840 "If CW<\\*(C`do\\*(C'> can read the file but cannot compile it, it returns "
3841 "CW<\\*(C`undef\\*(C'> and sets an error message in \\&CW<$@>. If "
3842 "CW<\\*(C`do\\*(C'> cannot read the file, it returns undef and sets CW<$!> to "
3843 "the error. Always check \\&CW<$@> first, as compilation could fail in a way "
3844 "that also sets CW<$!>. If the file is successfully compiled, "
3845 "\\&CW<\\*(C`do\\*(C'> returns the value of the last expression evaluated."
3846 msgstr ""
3847
3848 #. type: Plain text
3849 #: debian-trixie debian-unstable
3850 msgid ""
3851 "Inclusion of library modules is better done with the \\&CW<\\*(C`use\\*(C'> "
3852 "and CW<\\*(C`require\\*(C'> operators, which also do automatic error "
3853 "checking and raise an exception if there's a problem."
3854 msgstr ""
3855
3856 #. type: Plain text
3857 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3858 #: opensuse-leap-16-1 opensuse-tumbleweed
3859 msgid ""
3860 "You might like to use CW<\\*(C`do\\*(C'> to read in a program configuration "
3861 "file. Manual error checking can be done this way:"
3862 msgstr ""
3863
3864 #. type: Plain text
3865 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3866 #: opensuse-leap-16-1 opensuse-tumbleweed
3867 #, no-wrap
3868 msgid ""
3869 "\\& # Read in config files: system first, then user.\n"
3870 "\\& # Beware of using relative pathnames here.\n"
3871 "\\& for $file (\"/share/prog/defaults.rc\",\n"
3872 "\\& \"$ENV{HOME}/.someprogrc\")\n"
3873 "\\& {\n"
3874 "\\& unless ($return = do $file) {\n"
3875 "\\& warn \"couldn\\*(Aqt parse $file: $@\" if $@;\n"
3876 "\\& warn \"couldn\\*(Aqt do $file: $!\" unless defined $return;\n"
3877 "\\& warn \"couldn\\*(Aqt run $file\" unless $return;\n"
3878 "\\& }\n"
3879 "\\& }\n"
3880 msgstr ""
3881
3882 #. type: IX
3883 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3884 #: opensuse-leap-16-1 opensuse-tumbleweed
3885 #, no-wrap
3886 msgid "dump LABEL"
3887 msgstr ""
3888
3889 #. type: IX
3890 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3891 #: opensuse-leap-16-1 opensuse-tumbleweed
3892 #, no-wrap
3893 msgid "dump core undump"
3894 msgstr ""
3895
3896 #. type: IX
3897 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3898 #: opensuse-leap-16-1 opensuse-tumbleweed
3899 #, no-wrap
3900 msgid "dump EXPR"
3901 msgstr ""
3902
3903 #. type: IX
3904 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3905 #: opensuse-leap-16-1 opensuse-tumbleweed
3906 #, no-wrap
3907 msgid "dump"
3908 msgstr ""
3909
3910 #. type: Plain text
3911 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3912 #: opensuse-leap-16-1 opensuse-tumbleweed
3913 msgid ""
3914 "This function causes an immediate core dump. See also the B<-u> command-"
3915 "line switch in perlrun, which does the same thing. Primarily this is so "
3916 "that you can use the B<undump> program (not supplied) to turn your core dump "
3917 "into an executable binary after having initialized all your variables at the "
3918 "beginning of the program. When the new binary is executed it will begin by "
3919 "executing a CW<\\*(C`goto LABEL\\*(C'> (with all the restrictions that "
3920 "CW<\\*(C`goto\\*(C'> suffers). Think of it as a goto with an intervening "
3921 "core dump and reincarnation. If CW<\\*(C`LABEL\\*(C'> is omitted, restarts "
3922 "the program from the top. The \\&CW<\\*(C`dump EXPR\\*(C'> form, available "
3923 "starting in Perl 5.18.0, allows a name to be computed at run time, being "
3924 "otherwise identical to CW<\\*(C`dump LABEL\\*(C'>."
3925 msgstr ""
3926
3927 #. type: Plain text
3928 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3929 #: opensuse-leap-16-1 opensuse-tumbleweed
3930 msgid ""
3931 "\\&B<WARNING>: Any files opened at the time of the dump will I<not> be open "
3932 "any more when the program is reincarnated, with possible resulting confusion "
3933 "by Perl."
3934 msgstr ""
3935
3936 #. type: Plain text
3937 #: debian-trixie debian-unstable
3938 msgid ""
3939 "This function is now largely obsolete, mostly because it's very hard to "
3940 "convert a core file into an executable. As of Perl 5.30, it must be invoked "
3941 "as CW<CORE::dump()>."
3942 msgstr ""
3943
3944 #. type: Plain text
3945 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3946 #: opensuse-leap-16-1 opensuse-tumbleweed
3947 msgid ""
3948 "Unlike most named operators, this has the same precedence as assignment. It "
3949 "is also exempt from the looks-like-a-function rule, so \\&CW<\\*(C`dump "
3950 "(\"foo\").\"bar\"\\*(C'> will cause \"bar\" to be part of the argument to "
3951 "\\&CW<\\*(C`dump\\*(C'>."
3952 msgstr ""
3953
3954 #. type: Plain text
3955 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3956 #: opensuse-leap-16-1 opensuse-tumbleweed
3957 msgid "Portability issues: \"dump\" in perlport."
3958 msgstr ""
3959
3960 #. type: IX
3961 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3962 #: opensuse-leap-16-1 opensuse-tumbleweed
3963 #, no-wrap
3964 msgid "each HASH"
3965 msgstr ""
3966
3967 #. type: IX
3968 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3969 #: opensuse-leap-16-1 opensuse-tumbleweed
3970 #, no-wrap
3971 msgid "each hash, iterator"
3972 msgstr ""
3973
3974 #. type: IX
3975 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3976 #: opensuse-leap-16-1 opensuse-tumbleweed
3977 #, no-wrap
3978 msgid "each ARRAY"
3979 msgstr ""
3980
3981 #. type: IX
3982 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3983 #: opensuse-leap-16-1 opensuse-tumbleweed
3984 #, no-wrap
3985 msgid "array, iterator"
3986 msgstr ""
3987
3988 #. type: Plain text
3989 #: debian-trixie debian-unstable
3990 msgid ""
3991 "When called on a hash in list context, returns a 2-element list consisting "
3992 "of the key and value for the next element of a hash. In Perl 5.12 and later "
3993 "only, it will also return the index and value for the next element of an "
3994 "array so that you can iterate over it; older Perls consider this a syntax "
3995 "error. When called in scalar context, returns only the key (not the value) "
3996 "in a hash, or the index in an array."
3997 msgstr ""
3998
3999 #. type: Plain text
4000 #: debian-trixie debian-unstable
4001 msgid ""
4002 "Hash entries are returned in an apparently random order. The actual random "
4003 "order is specific to a given hash; the exact same series of operations on "
4004 "two hashes may result in a different order for each hash. Any insertion "
4005 "into the hash may change the order, as will any deletion, with the exception "
4006 "that the most recent key returned by CW<\\*(C`each\\*(C'> or "
4007 "\\&CW<\\*(C`keys\\*(C'> may be deleted without changing the order. So long "
4008 "as a given hash is unmodified you may rely on \\&CW<\\*(C`keys\\*(C'>, "
4009 "CW<\\*(C`values\\*(C'> and \\&CW<\\*(C`each\\*(C'> to repeatedly return the "
4010 "same order as each other. See \"Algorithmic Complexity Attacks\" in perlsec "
4011 "for details on why hash order is randomized. Aside from the guarantees "
4012 "provided here the exact details of Perl's hash algorithm and the hash "
4013 "traversal order are subject to change in any release of Perl."
4014 msgstr ""
4015
4016 #. type: Plain text
4017 #: debian-trixie debian-unstable
4018 msgid ""
4019 "After CW<\\*(C`each\\*(C'> has returned all entries from the hash or array, "
4020 "the next call to CW<\\*(C`each\\*(C'> returns the empty list in list context "
4021 "and CW<\\*(C`undef\\*(C'> in scalar context; the next call following I<that> "
4022 "one restarts iteration. Each hash or array has its own internal iterator, "
4023 "accessed by CW<\\*(C`each\\*(C'>, \\&CW<\\*(C`keys\\*(C'>, and "
4024 "CW<\\*(C`values\\*(C'>. The iterator is implicitly reset when "
4025 "CW<\\*(C`each\\*(C'> has reached the end as just described; it can be "
4026 "explicitly reset by calling CW<\\*(C`keys\\*(C'> or CW<\\*(C`values\\*(C'> "
4027 "on the hash or array, or by referencing the hash (but not array) in list "
4028 "context. If you add or delete a hash's elements while iterating over it, "
4029 "the effect on the iterator is unspecified; for example, entries may be "
4030 "skipped or duplicated--so don't do that. Exception: It is always safe to "
4031 "delete the item most recently returned by CW<\\*(C`each\\*(C'>, so the "
4032 "following code works properly:"
4033 msgstr ""
4034
4035 #. type: Plain text
4036 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4037 #: opensuse-leap-16-1 opensuse-tumbleweed
4038 #, no-wrap
4039 msgid ""
4040 "\\& while (my ($key, $value) = each %hash) {\n"
4041 "\\& print $key, \"\\en\";\n"
4042 "\\& delete $hash{$key}; # This is safe\n"
4043 "\\& }\n"
4044 msgstr ""
4045
4046 #. type: Plain text
4047 #: debian-trixie debian-unstable
4048 msgid ""
4049 "Tied hashes may have a different ordering behaviour to perl's hash "
4050 "implementation."
4051 msgstr ""
4052
4053 #. type: Plain text
4054 #: debian-trixie debian-unstable
4055 msgid ""
4056 "The iterator used by CW<\\*(C`each\\*(C'> is attached to the hash or array, "
4057 "and is shared between all iteration operations applied to the same hash or "
4058 "array. Thus all uses of CW<\\*(C`each\\*(C'> on a single hash or array "
4059 "advance the same iterator location. All uses of CW<\\*(C`each\\*(C'> are "
4060 "also subject to having the iterator reset by any use of CW<\\*(C`keys\\*(C'> "
4061 "or CW<\\*(C`values\\*(C'> on the same hash or array, or by the hash (but not "
4062 "array) being referenced in list context. This makes CW<\\*(C`each\\*(C'>-"
4063 "based loops quite fragile: it is easy to arrive at such a loop with the "
4064 "iterator already part way through the object, or to accidentally clobber the "
4065 "iterator state during execution of the loop body. It's easy enough to "
4066 "explicitly reset the iterator before starting a loop, but there is no way to "
4067 "insulate the iterator state used by a loop from the iterator state used by "
4068 "anything else that might execute during the loop body. To avoid these "
4069 "problems, use a CW<\\*(C`foreach\\*(C'> loop rather than "
4070 "\\&CW<\\*(C`while\\*(C'>-CW<\\*(C`each\\*(C'>."
4071 msgstr ""
4072
4073 #. type: Plain text
4074 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4075 #: opensuse-leap-16-1 opensuse-tumbleweed
4076 msgid ""
4077 "This extends to using CW<\\*(C`each\\*(C'> on the result of an anonymous "
4078 "hash or array constructor. A new underlying array or hash is created each "
4079 "time so each will always start iterating from scratch, eg:"
4080 msgstr ""
4081
4082 #. type: Plain text
4083 #: debian-trixie debian-unstable
4084 #, no-wrap
4085 msgid ""
4086 "\\& # loops forever\n"
4087 "\\& while (my ($key, $value) = each @{ +{ a =E<gt> 1 } }) {\n"
4088 "\\& print \"$key=$value\\en\";\n"
4089 "\\& }\n"
4090 msgstr ""
4091
4092 #. type: Plain text
4093 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4094 #: opensuse-leap-16-1 opensuse-tumbleweed
4095 msgid ""
4096 "This prints out your environment like the B<printenv>\\|(1) program, but in "
4097 "a different order:"
4098 msgstr ""
4099
4100 #. type: Plain text
4101 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4102 #: opensuse-leap-16-1 opensuse-tumbleweed
4103 #, no-wrap
4104 msgid ""
4105 "\\& while (my ($key,$value) = each %ENV) {\n"
4106 "\\& print \"$key=$value\\en\";\n"
4107 "\\& }\n"
4108 msgstr ""
4109
4110 #. type: Plain text
4111 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4112 #: opensuse-leap-16-1 opensuse-tumbleweed
4113 msgid ""
4114 "Starting with Perl 5.14, an experimental feature allowed "
4115 "\\&CW<\\*(C`each\\*(C'> to take a scalar expression. This experiment has "
4116 "been deemed unsuccessful, and was removed as of Perl 5.24."
4117 msgstr ""
4118
4119 #. type: Plain text
4120 #: debian-trixie debian-unstable
4121 msgid ""
4122 "As of Perl 5.18 you can use a bare CW<\\*(C`each\\*(C'> in a "
4123 "CW<\\*(C`while\\*(C'> loop, which will set CW<$_> on every iteration. If "
4124 "either an CW<\\*(C`each\\*(C'> expression or an explicit assignment of an "
4125 "CW<\\*(C`each\\*(C'> expression to a scalar is used as a "
4126 "CW<\\*(C`while\\*(C'>/CW<\\*(C`for\\*(C'> condition, then the condition "
4127 "actually tests for definedness of the expression's value, not for its "
4128 "regular truth value."
4129 msgstr ""
4130
4131 #. type: Plain text
4132 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4133 #: opensuse-leap-16-1 opensuse-tumbleweed
4134 #, no-wrap
4135 msgid ""
4136 "\\& while (each %ENV) {\n"
4137 "\\& print \"$_=$ENV{$_}\\en\";\n"
4138 "\\& }\n"
4139 msgstr ""
4140
4141 #. type: Plain text
4142 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4143 #: opensuse-leap-16-1 opensuse-tumbleweed
4144 msgid ""
4145 "To avoid confusing would-be users of your code who are running earlier "
4146 "versions of Perl with mysterious syntax errors, put this sort of thing at "
4147 "the top of your file to signal that your code will work I<only> on Perls of "
4148 "a recent vintage:"
4149 msgstr ""
4150
4151 #. type: Plain text
4152 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4153 #: opensuse-leap-16-1 opensuse-tumbleweed
4154 #, no-wrap
4155 msgid ""
4156 "\\& use v5.12; # so keys/values/each work on arrays\n"
4157 "\\& use v5.18; # so each assigns to $_ in a lone while test\n"
4158 msgstr ""
4159
4160 #. type: Plain text
4161 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4162 #: opensuse-leap-16-1 opensuse-tumbleweed
4163 msgid ""
4164 "See also CW<\\*(C`keys\\*(C'>, CW<\\*(C`values\\*(C'>, and "
4165 "\\&CW<\\*(C`sort\\*(C'>."
4166 msgstr ""
4167
4168 #. type: IX
4169 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4170 #: opensuse-leap-16-1 opensuse-tumbleweed
4171 #, no-wrap
4172 msgid "eof FILEHANDLE"
4173 msgstr ""
4174
4175 #. type: IX
4176 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4177 #: opensuse-leap-16-1 opensuse-tumbleweed
4178 #, no-wrap
4179 msgid "eof end of file end-of-file"
4180 msgstr ""
4181
4182 #. type: IX
4183 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4184 #: opensuse-leap-16-1 opensuse-tumbleweed
4185 #, no-wrap
4186 msgid "eof ()"
4187 msgstr ""
4188
4189 #. type: IX
4190 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4191 #: opensuse-leap-16-1 opensuse-tumbleweed
4192 #, no-wrap
4193 msgid "eof"
4194 msgstr ""
4195
4196 #. type: Plain text
4197 #: debian-trixie debian-unstable
4198 msgid ""
4199 "Returns 1 if the next read on FILEHANDLE will return end of file I<or> if "
4200 "FILEHANDLE is not open. FILEHANDLE may be an expression whose value gives "
4201 "the real filehandle. (Note that this function actually reads a character "
4202 "and then CW<\\*(C`ungetc\\*(C'>s it, so isn't useful in an interactive "
4203 "context.) Do not read from a terminal file (or call \\&CW<eof(FILEHANDLE)> "
4204 "on it) after end-of-file is reached. File types such as terminals may lose "
4205 "the end-of-file condition if you do."
4206 msgstr ""
4207
4208 #. type: Plain text
4209 #: debian-trixie debian-unstable
4210 msgid ""
4211 "An CW<\\*(C`eof\\*(C'> without an argument uses the last file read. Using "
4212 "CW<eof()> with empty parentheses is different. It refers to the pseudo file "
4213 "formed from the files listed on the command line and accessed via the "
4214 "CW<\\*(C`E<lt>E<gt>\\*(C'> operator. Since \\&CW<\\*(C`E<lt>E<gt>\\*(C'> "
4215 "isn't explicitly opened, as a normal filehandle is, an \\&CW<eof()> before "
4216 "CW<\\*(C`E<lt>E<gt>\\*(C'> has been used will cause \\&CW<@ARGV> to be "
4217 "examined to determine if input is available. Similarly, an CW<eof()> after "
4218 "CW<\\*(C`E<lt>E<gt>\\*(C'> has returned end-of-file will assume you are "
4219 "processing another \\&CW<@ARGV> list, and if you haven't set \\&CW<@ARGV>, "
4220 "will read input from CW<\\*(C`STDIN\\*(C'>; see \"I/O Operators\" in perlop."
4221 msgstr ""
4222
4223 #. type: Plain text
4224 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4225 #: opensuse-leap-16-1 opensuse-tumbleweed
4226 msgid ""
4227 "In a CW<\\*(C`while (E<lt>E<gt>)\\*(C'> loop, CW<\\*(C`eof\\*(C'> or "
4228 "CW<eof(ARGV)> can be used to detect the end of each file, whereas "
4229 "\\&CW<eof()> will detect the end of the very last file only. Examples:"
4230 msgstr ""
4231
4232 #. type: Plain text
4233 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4234 #: opensuse-leap-16-1 opensuse-tumbleweed
4235 #, no-wrap
4236 msgid ""
4237 "\\& # reset line numbering on each input file\n"
4238 "\\& while (E<lt>E<gt>) {\n"
4239 "\\& next if /^\\es*#/; # skip comments\n"
4240 "\\& print \"$.\\et$_\";\n"
4241 "\\& } continue {\n"
4242 "\\& close ARGV if eof; # Not eof()!\n"
4243 "\\& }\n"
4244 "\\&\n"
4245 "\\& # insert dashes just before last line of last file\n"
4246 "\\& while (E<lt>E<gt>) {\n"
4247 "\\& if (eof()) { # check for end of last file\n"
4248 "\\& print \"--------------\\en\";\n"
4249 "\\& }\n"
4250 "\\& print;\n"
4251 "\\& last if eof(); # needed if we\\*(Aqre reading from a terminal\n"
4252 "\\& }\n"
4253 msgstr ""
4254
4255 #. type: Plain text
4256 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4257 #: opensuse-leap-16-1 opensuse-tumbleweed
4258 msgid ""
4259 "Practical hint: you almost never need to use CW<\\*(C`eof\\*(C'> in Perl, "
4260 "because the input operators typically return CW<\\*(C`undef\\*(C'> when they "
4261 "run out of data or encounter an error."
4262 msgstr ""
4263
4264 #. type: IX
4265 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4266 #: opensuse-leap-16-1 opensuse-tumbleweed
4267 #, no-wrap
4268 msgid "eval EXPR"
4269 msgstr ""
4270
4271 #. type: IX
4272 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4273 #: opensuse-leap-16-1 opensuse-tumbleweed
4274 #, no-wrap
4275 msgid "eval try catch evaluate parse execute error, handling exception, handling"
4276 msgstr ""
4277
4278 #. type: IX
4279 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4280 #: opensuse-leap-16-1 opensuse-tumbleweed
4281 #, no-wrap
4282 msgid "eval BLOCK"
4283 msgstr ""
4284
4285 #. type: IX
4286 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4287 #: opensuse-leap-16-1 opensuse-tumbleweed
4288 #, no-wrap
4289 msgid "eval"
4290 msgstr ""
4291
4292 #. type: Plain text
4293 #: debian-trixie debian-unstable
4294 msgid ""
4295 "\\&CW<\\*(C`eval\\*(C'> in all its forms is used to execute a little Perl "
4296 "program, trapping any errors encountered so they don't crash the calling "
4297 "program."
4298 msgstr ""
4299
4300 #. type: Plain text
4301 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4302 #: opensuse-leap-16-1 opensuse-tumbleweed
4303 msgid ""
4304 "Plain CW<\\*(C`eval\\*(C'> with no argument is just CW<\\*(C`eval "
4305 "EXPR\\*(C'>, where the expression is understood to be contained in CW<$_>. "
4306 "Thus there are only two real CW<\\*(C`eval\\*(C'> forms; the one with an "
4307 "EXPR is often called \"string eval\". In a string eval, the value of the "
4308 "expression (which is itself determined within scalar context) is first "
4309 "parsed, and if there were no errors, executed as a block within the lexical "
4310 "context of the current Perl program. This form is typically used to delay "
4311 "parsing and subsequent execution of the text of EXPR until run time. Note "
4312 "that the value is parsed every time the CW<\\*(C`eval\\*(C'> executes."
4313 msgstr ""
4314
4315 #. type: Plain text
4316 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4317 #: opensuse-leap-16-1 opensuse-tumbleweed
4318 msgid ""
4319 "The other form is called \"block eval\". It is less general than string "
4320 "eval, but the code within the BLOCK is parsed only once (at the same time "
4321 "the code surrounding the CW<\\*(C`eval\\*(C'> itself was parsed) and "
4322 "executed within the context of the current Perl program. This form is "
4323 "typically used to trap exceptions more efficiently than the first, while "
4324 "also providing the benefit of checking the code within BLOCK at compile "
4325 "time. BLOCK is parsed and compiled just once. Since errors are trapped, it "
4326 "often is used to check if a given feature is available."
4327 msgstr ""
4328
4329 #. type: Plain text
4330 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4331 #: opensuse-leap-16-1 opensuse-tumbleweed
4332 msgid ""
4333 "In both forms, the value returned is the value of the last expression "
4334 "evaluated inside the mini-program; a return statement may also be used, just "
4335 "as with subroutines. The expression providing the return value is evaluated "
4336 "in void, scalar, or list context, depending on the context of the "
4337 "\\&CW<\\*(C`eval\\*(C'> itself. See CW<\\*(C`wantarray\\*(C'> for more on "
4338 "how the evaluation context can be determined."
4339 msgstr ""
4340
4341 #. type: Plain text
4342 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4343 #: opensuse-leap-16-1 opensuse-tumbleweed
4344 msgid ""
4345 "If there is a syntax error or runtime error, or a CW<\\*(C`die\\*(C'> "
4346 "statement is executed, CW<\\*(C`eval\\*(C'> returns \\&CW<\\*(C`undef\\*(C'> "
4347 "in scalar context, or an empty list in list context, and CW<$@> is set to "
4348 "the error message. (Prior to 5.16, a bug caused CW<\\*(C`undef\\*(C'> to be "
4349 "returned in list context for syntax errors, but not for runtime errors.) If "
4350 "there was no error, CW<$@> is set to the empty string. A control flow "
4351 "operator like CW<\\*(C`last\\*(C'> or CW<\\*(C`goto\\*(C'> can bypass the "
4352 "setting of CW<$@>. Beware that using \\&CW<\\*(C`eval\\*(C'> neither "
4353 "silences Perl from printing warnings to STDERR, nor does it stuff the text "
4354 "of warning messages into \\&CW<$@>. To do either of those, you have to use "
4355 "the \\&CW<$SIG{_\\|_WARN_\\|_}> facility, or turn off warnings inside the "
4356 "BLOCK or EXPR using CW<\\*(C`no\\ warnings\\ \\*(Aqall\\*(Aq\\*(C'>. See "
4357 "\\&CW<\\*(C`warn\\*(C'>, perlvar, and warnings."
4358 msgstr ""
4359
4360 #. type: Plain text
4361 #: debian-trixie debian-unstable
4362 msgid ""
4363 "Note that, because CW<\\*(C`eval\\*(C'> traps otherwise-fatal errors, it is "
4364 "useful for determining whether a particular feature (such as "
4365 "\\&CW<\\*(C`socket\\*(C'> or \\&CW<\\*(C`symlink\\*(C'>) is implemented. It "
4366 "is also Perl's exception-trapping mechanism, where the CW<\\*(C`die\\*(C'> "
4367 "operator is used to raise exceptions."
4368 msgstr ""
4369
4370 #. type: Plain text
4371 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4372 #: opensuse-leap-16-1 opensuse-tumbleweed
4373 msgid ""
4374 "Before Perl 5.14, the assignment to CW<$@> occurred before restoration of "
4375 "localized variables, which means that for your code to run on older "
4376 "versions, a temporary is required if you want to mask some, but not all "
4377 "errors:"
4378 msgstr ""
4379
4380 #. type: Plain text
4381 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4382 #: opensuse-leap-16-1 opensuse-tumbleweed
4383 #, no-wrap
4384 msgid ""
4385 "\\& # alter $@ on nefarious repugnancy only\n"
4386 "\\& {\n"
4387 "\\& my $e;\n"
4388 "\\& {\n"
4389 "\\& local $@; # protect existing $@\n"
4390 "\\& eval { test_repugnancy() };\n"
4391 "\\& # $@ =~ /nefarious/ and die $@; # Perl 5.14 and higher only\n"
4392 "\\& $@ =~ /nefarious/ and $e = $@;\n"
4393 "\\& }\n"
4394 "\\& die $e if defined $e\n"
4395 "\\& }\n"
4396 msgstr ""
4397
4398 #. type: Plain text
4399 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4400 #: opensuse-leap-16-1 opensuse-tumbleweed
4401 msgid "There are some different considerations for each form:"
4402 msgstr ""
4403
4404 #. type: IX
4405 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4406 #: opensuse-leap-16-1 opensuse-tumbleweed
4407 #, no-wrap
4408 msgid "String eval"
4409 msgstr ""
4410
4411 #. type: Plain text
4412 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4413 #: opensuse-leap-16-1 opensuse-tumbleweed
4414 msgid ""
4415 "Since the return value of EXPR is executed as a block within the lexical "
4416 "context of the current Perl program, any outer lexical variables are visible "
4417 "to it, and any package variable settings or subroutine and format "
4418 "definitions remain afterwards."
4419 msgstr ""
4420
4421 #. type: Plain text
4422 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4423 #: opensuse-leap-16-1 opensuse-tumbleweed
4424 msgid ""
4425 "Note that when CW<\\*(C`BEGIN {}\\*(C'> blocks are embedded inside of an "
4426 "eval block the contents of the block will be executed immediately and before "
4427 "the rest of the eval code is executed. You can disable this entirely by"
4428 msgstr ""
4429
4430 #. type: Plain text
4431 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4432 #: opensuse-leap-16-1 opensuse-tumbleweed
4433 #, no-wrap
4434 msgid ""
4435 "\\& local ${^MAX_NESTED_EVAL_BEGIN_BLOCKS} = 0;\n"
4436 "\\& eval $string;\n"
4437 msgstr ""
4438
4439 #. type: Plain text
4440 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4441 #: opensuse-leap-16-1 opensuse-tumbleweed
4442 msgid ""
4443 "which will cause any embedded CW<\\*(C`BEGIN\\*(C'> blocks in CW<$string> to "
4444 "throw an exception."
4445 msgstr ""
4446
4447 #. type: IX
4448 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4449 #: opensuse-leap-16-1 opensuse-tumbleweed
4450 #, no-wrap
4451 msgid "Under the \"unicode_eval\" feature"
4452 msgstr ""
4453
4454 #. type: Plain text
4455 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4456 #: opensuse-leap-16-1 opensuse-tumbleweed
4457 msgid ""
4458 "If this feature is enabled (which is the default under a CW<\\*(C`use "
4459 "5.16\\*(C'> or higher declaration), Perl assumes that EXPR is a character "
4460 "string. Any CW<\\*(C`use\\ utf8\\*(C'> or CW<\\*(C`no\\ utf8\\*(C'> "
4461 "declarations within the string thus have no effect. Source filters are "
4462 "forbidden as well. (CW<\\*(C`unicode_strings\\*(C'>, however, can appear "
4463 "within the string.)"
4464 msgstr ""
4465
4466 #. type: Plain text
4467 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4468 #: opensuse-leap-16-1 opensuse-tumbleweed
4469 msgid ""
4470 "See also the CW<\\*(C`evalbytes\\*(C'> operator, which works properly with "
4471 "source filters."
4472 msgstr ""
4473
4474 #. type: IX
4475 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4476 #: opensuse-leap-16-1 opensuse-tumbleweed
4477 #, no-wrap
4478 msgid "Outside the \"unicode_eval\" feature"
4479 msgstr ""
4480
4481 #. type: Plain text
4482 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4483 #: opensuse-leap-16-1 opensuse-tumbleweed
4484 msgid ""
4485 "In this case, the behavior is problematic and is not so easily described. "
4486 "Here are two bugs that cannot easily be fixed without breaking existing "
4487 "programs:"
4488 msgstr ""
4489
4490 #. type: Plain text
4491 #: debian-trixie debian-unstable
4492 msgid ""
4493 "Perl's internal storage of EXPR affects the behavior of the executed code. "
4494 "For example:"
4495 msgstr ""
4496
4497 #. type: Plain text
4498 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4499 #: opensuse-leap-16-1 opensuse-tumbleweed
4500 #, no-wrap
4501 msgid "\\& my $v = eval \"use utf8; \\*(Aq$expr\\*(Aq\";\n"
4502 msgstr ""
4503
4504 #. type: Plain text
4505 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4506 #: opensuse-leap-16-1 opensuse-tumbleweed
4507 msgid ""
4508 "If CW<$expr> is CW<\"\\exc4\\ex80\"> (U+0100 in UTF-8), then the value "
4509 "stored in CW<$v> will depend on whether Perl stores CW<$expr> \"upgraded\" "
4510 "(cf. utf8) or not:"
4511 msgstr ""
4512
4513 #. type: Plain text
4514 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4515 #: opensuse-leap-16-1 opensuse-tumbleweed
4516 msgid ""
4517 "If upgraded, CW<$v> will be CW<\"\\exc4\\ex80\"> (i.e., the \\&CW<\\*(C`use "
4518 "utf8\\*(C'> has no effect.)"
4519 msgstr ""
4520
4521 #. type: Plain text
4522 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4523 #: opensuse-leap-16-1 opensuse-tumbleweed
4524 msgid "If non-upgraded, CW<$v> will be CW<\"\\ex{100}\">."
4525 msgstr ""
4526
4527 #. type: Plain text
4528 #: debian-trixie debian-unstable
4529 msgid ""
4530 "This is undesirable since being upgraded or not should not affect a string's "
4531 "behavior."
4532 msgstr ""
4533
4534 #. type: Plain text
4535 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4536 #: opensuse-leap-16-1 opensuse-tumbleweed
4537 msgid ""
4538 "Source filters activated within CW<\\*(C`eval\\*(C'> leak out into whichever "
4539 "file scope is currently being compiled. To give an example with the CPAN "
4540 "module Semi::Semicolons:"
4541 msgstr ""
4542
4543 #. type: Plain text
4544 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4545 #: opensuse-leap-16-1 opensuse-tumbleweed
4546 #, no-wrap
4547 msgid ""
4548 "\\& BEGIN { eval \"use Semi::Semicolons; # not filtered\" }\n"
4549 "\\& # filtered here!\n"
4550 msgstr ""
4551
4552 #. type: Plain text
4553 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4554 #: opensuse-leap-16-1 opensuse-tumbleweed
4555 msgid ""
4556 "\\&CW<\\*(C`evalbytes\\*(C'> fixes that to work the way one would expect:"
4557 msgstr ""
4558
4559 #. type: Plain text
4560 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4561 #: opensuse-leap-16-1 opensuse-tumbleweed
4562 #, no-wrap
4563 msgid ""
4564 "\\& use feature \"evalbytes\";\n"
4565 "\\& BEGIN { evalbytes \"use Semi::Semicolons; # filtered\" }\n"
4566 "\\& # not filtered\n"
4567 msgstr ""
4568
4569 #. type: Plain text
4570 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4571 #: opensuse-leap-16-1 opensuse-tumbleweed
4572 msgid ""
4573 "Problems can arise if the string expands a scalar containing a floating "
4574 "point number. That scalar can expand to letters, such as CW<\"NaN\"> or "
4575 "\\&CW<\"Infinity\">; or, within the scope of a CW<\\*(C`use locale\\*(C'>, "
4576 "the decimal point character may be something other than a dot (such as a "
4577 "comma). None of these are likely to parse as you are likely expecting."
4578 msgstr ""
4579
4580 #. type: Plain text
4581 #: debian-trixie debian-unstable
4582 msgid ""
4583 "You should be especially careful to remember what's being looked at when:"
4584 msgstr ""
4585
4586 #. type: Plain text
4587 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4588 #: opensuse-leap-16-1 opensuse-tumbleweed
4589 #, no-wrap
4590 msgid ""
4591 "\\& eval $x; # CASE 1\n"
4592 "\\& eval \"$x\"; # CASE 2\n"
4593 "\\&\n"
4594 "\\& eval \\*(Aq$x\\*(Aq; # CASE 3\n"
4595 "\\& eval { $x }; # CASE 4\n"
4596 "\\&\n"
4597 "\\& eval \"\\e$$x++\"; # CASE 5\n"
4598 "\\& $$x++; # CASE 6\n"
4599 msgstr ""
4600
4601 #. type: Plain text
4602 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4603 #: opensuse-leap-16-1 opensuse-tumbleweed
4604 msgid ""
4605 "Cases 1 and 2 above behave identically: they run the code contained in the "
4606 "variable CW<$x>. (Although case 2 has misleading double quotes making the "
4607 "reader wonder what else might be happening (nothing is).) Cases 3 and 4 "
4608 "likewise behave in the same way: they run the code CW<\\*(Aq$x\\*(Aq>, which "
4609 "does nothing but return the value of CW<$x>. (Case 4 is preferred for "
4610 "purely visual reasons, but it also has the advantage of compiling at compile-"
4611 "time instead of at run-time.) Case 5 is a place where normally you I<would> "
4612 "like to use double quotes, except that in this particular situation, you can "
4613 "just use symbolic references instead, as in case 6."
4614 msgstr ""
4615
4616 #. type: Plain text
4617 #: debian-trixie debian-unstable
4618 msgid ""
4619 "An CW<\\*(C`eval \\*(Aq\\*(Aq\\*(C'> executed within a subroutine defined in "
4620 "the CW<\\*(C`DB\\*(C'> package doesn't see the usual surrounding lexical "
4621 "scope, but rather the scope of the first non-DB piece of code that called "
4622 "it. You don't normally need to worry about this unless you are writing a "
4623 "Perl debugger."
4624 msgstr ""
4625
4626 #. type: Plain text
4627 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4628 #: opensuse-leap-16-1 opensuse-tumbleweed
4629 msgid "The final semicolon, if any, may be omitted from the value of EXPR."
4630 msgstr ""
4631
4632 #. type: IX
4633 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4634 #: opensuse-leap-16-1 opensuse-tumbleweed
4635 #, no-wrap
4636 msgid "Block eval"
4637 msgstr ""
4638
4639 #. type: Plain text
4640 #: debian-trixie debian-unstable
4641 msgid ""
4642 "If the code to be executed doesn't vary, you may use the eval-BLOCK form to "
4643 "trap run-time errors without incurring the penalty of recompiling each "
4644 "time. The error, if any, is still returned in \\&CW<$@>. Examples:"
4645 msgstr ""
4646
4647 #. type: Plain text
4648 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4649 #: opensuse-leap-16-1 opensuse-tumbleweed
4650 #, no-wrap
4651 msgid ""
4652 "\\& # make divide-by-zero nonfatal\n"
4653 "\\& eval { $answer = $x / $y; }; warn $@ if $@;\n"
4654 "\\&\n"
4655 "\\& # same thing, but less efficient\n"
4656 "\\& eval \\*(Aq$answer = $x / $y\\*(Aq; warn $@ if $@;\n"
4657 "\\&\n"
4658 "\\& # a compile-time error\n"
4659 "\\& eval { $answer = }; # WRONG\n"
4660 "\\&\n"
4661 "\\& # a run-time error\n"
4662 "\\& eval \\*(Aq$answer =\\*(Aq; # sets $@\n"
4663 msgstr ""
4664
4665 #. type: Plain text
4666 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4667 #: opensuse-leap-16-1 opensuse-tumbleweed
4668 msgid ""
4669 "If you want to trap errors when loading an XS module, some problems with the "
4670 "binary interface (such as Perl version skew) may be fatal even with "
4671 "\\&CW<\\*(C`eval\\*(C'> unless CW<$ENV{PERL_DL_NONLAZY}> is set. See "
4672 "perlrun."
4673 msgstr ""
4674
4675 #. type: Plain text
4676 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4677 #: opensuse-leap-16-1 opensuse-tumbleweed
4678 msgid ""
4679 "Using the CW<\\*(C`eval {}\\*(C'> form as an exception trap in libraries "
4680 "does have some issues. Due to the current arguably broken state of "
4681 "CW<\\*(C`_\\|_DIE_\\|_\\*(C'> hooks, you may wish not to trigger any "
4682 "CW<\\*(C`_\\|_DIE_\\|_\\*(C'> hooks that user code may have installed. You "
4683 "can use the CW<\\*(C`local $SIG{_\\|_DIE_\\|_}\\*(C'> construct for this "
4684 "purpose, as this example shows:"
4685 msgstr ""
4686
4687 #. type: Plain text
4688 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4689 #: opensuse-leap-16-1 opensuse-tumbleweed
4690 #, no-wrap
4691 msgid ""
4692 "\\& # a private exception trap for divide-by-zero\n"
4693 "\\& eval { local $SIG{\\*(Aq_\\|_DIE_\\|_\\*(Aq}; $answer = $x / $y; };\n"
4694 "\\& warn $@ if $@;\n"
4695 msgstr ""
4696
4697 #. type: Plain text
4698 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4699 #: opensuse-leap-16-1 opensuse-tumbleweed
4700 msgid ""
4701 "This is especially significant, given that CW<\\*(C`_\\|_DIE_\\|_\\*(C'> "
4702 "hooks can call \\&CW<\\*(C`die\\*(C'> again, which has the effect of "
4703 "changing their error messages:"
4704 msgstr ""
4705
4706 #. type: Plain text
4707 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4708 #: opensuse-leap-16-1 opensuse-tumbleweed
4709 #, no-wrap
4710 msgid ""
4711 "\\& # _\\|_DIE_\\|_ hooks may modify error messages\n"
4712 "\\& {\n"
4713 "\\& local $SIG{\\*(Aq_\\|_DIE_\\|_\\*(Aq} =\n"
4714 "\\& sub { (my $x = $_[0]) =~ s/foo/bar/g; die $x };\n"
4715 "\\& eval { die \"foo lives here\" };\n"
4716 "\\& print $@ if $@; # prints \"bar lives here\"\n"
4717 "\\& }\n"
4718 msgstr ""
4719
4720 #. type: Plain text
4721 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4722 #: opensuse-leap-16-1 opensuse-tumbleweed
4723 msgid ""
4724 "Because this promotes action at a distance, this counterintuitive behavior "
4725 "may be fixed in a future release."
4726 msgstr ""
4727
4728 #. type: Plain text
4729 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4730 #: opensuse-leap-16-1 opensuse-tumbleweed
4731 msgid ""
4732 "\\&CW<\\*(C`eval BLOCK\\*(C'> does I<not> count as a loop, so the loop "
4733 "control statements \\&CW<\\*(C`next\\*(C'>, CW<\\*(C`last\\*(C'>, or "
4734 "\\&CW<\\*(C`redo\\*(C'> cannot be used to leave or restart the block."
4735 msgstr ""
4736
4737 #. type: Plain text
4738 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4739 #: opensuse-leap-16-1 opensuse-tumbleweed
4740 msgid "The final semicolon, if any, may be omitted from within the BLOCK."
4741 msgstr ""
4742
4743 #. type: IX
4744 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4745 #: opensuse-leap-16-1 opensuse-tumbleweed
4746 #, no-wrap
4747 msgid "evalbytes EXPR"
4748 msgstr ""
4749
4750 #. type: IX
4751 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4752 #: opensuse-leap-16-1 opensuse-tumbleweed
4753 #, no-wrap
4754 msgid "evalbytes"
4755 msgstr ""
4756
4757 #. type: Plain text
4758 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4759 #: opensuse-leap-16-1 opensuse-tumbleweed
4760 msgid ""
4761 "This function is similar to a string eval, except it always parses its "
4762 "argument (or CW<$_> if EXPR is omitted) as a byte string. If the string "
4763 "contains any code points above 255, then it cannot be a byte string, and the "
4764 "CW<\\*(C`evalbytes\\*(C'> will fail with the error stored in CW<$@>."
4765 msgstr ""
4766
4767 #. type: Plain text
4768 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4769 #: opensuse-leap-16-1 opensuse-tumbleweed
4770 msgid ""
4771 "\\&CW<\\*(C`use utf8\\*(C'> and CW<\\*(C`no utf8\\*(C'> within the string "
4772 "have their usual effect."
4773 msgstr ""
4774
4775 #. type: Plain text
4776 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4777 #: opensuse-leap-16-1 opensuse-tumbleweed
4778 msgid ""
4779 "Source filters activated within the evaluated code apply to the code itself."
4780 msgstr ""
4781
4782 #. type: Plain text
4783 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4784 #: opensuse-leap-16-1 opensuse-tumbleweed
4785 msgid ""
4786 "\\&CW<\\*(C`evalbytes\\*(C'> is available starting in Perl v5.16. To access "
4787 "it, you must say CW<\\*(C`CORE::evalbytes\\*(C'>, but you can omit the "
4788 "\\&CW<\\*(C`CORE::\\*(C'> if the \\&CW<\"evalbytes\"> feature is enabled. "
4789 "This is enabled automatically with a CW<\\*(C`use v5.16\\*(C'> (or higher) "
4790 "declaration in the current scope."
4791 msgstr ""
4792
4793 #. type: IX
4794 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4795 #: opensuse-leap-16-1 opensuse-tumbleweed
4796 #, no-wrap
4797 msgid "exec LIST"
4798 msgstr ""
4799
4800 #. type: IX
4801 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4802 #: opensuse-leap-16-1 opensuse-tumbleweed
4803 #, no-wrap
4804 msgid "exec execute"
4805 msgstr ""
4806
4807 #. type: IX
4808 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4809 #: opensuse-leap-16-1 opensuse-tumbleweed
4810 #, no-wrap
4811 msgid "exec PROGRAM LIST"
4812 msgstr ""
4813
4814 #. type: Plain text
4815 #: debian-trixie debian-unstable
4816 msgid ""
4817 "The CW<\\*(C`exec\\*(C'> function executes a system command I<and never "
4818 "returns>; use CW<\\*(C`system\\*(C'> instead of CW<\\*(C`exec\\*(C'> if you "
4819 "want it to return. It fails and returns false only if the command does not "
4820 "exist I<and> it is executed directly instead of via your system's command "
4821 "shell (see below)."
4822 msgstr ""
4823
4824 #. type: Plain text
4825 #: debian-trixie debian-unstable
4826 msgid ""
4827 "Since it's a common mistake to use CW<\\*(C`exec\\*(C'> instead of "
4828 "\\&CW<\\*(C`system\\*(C'>, Perl warns you if CW<\\*(C`exec\\*(C'> is called "
4829 "in void context and if there is a following statement that isn't "
4830 "\\&CW<\\*(C`die\\*(C'>, CW<\\*(C`warn\\*(C'>, or CW<\\*(C`exit\\*(C'> (if "
4831 "warnings are enabled--but you always do that, right?). If you \\&I<really> "
4832 "want to follow an CW<\\*(C`exec\\*(C'> with some other statement, you can "
4833 "use one of these styles to avoid the warning:"
4834 msgstr ""
4835
4836 #. type: Plain text
4837 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4838 #: opensuse-leap-16-1 opensuse-tumbleweed
4839 #, no-wrap
4840 msgid ""
4841 "\\& exec (\\*(Aqfoo\\*(Aq) or print STDERR \"couldn\\*(Aqt exec foo: $!\";\n"
4842 "\\& { exec (\\*(Aqfoo\\*(Aq) }; print STDERR \"couldn\\*(Aqt exec foo: $!\";\n"
4843 msgstr ""
4844
4845 #. type: Plain text
4846 #: debian-trixie debian-unstable
4847 msgid ""
4848 "If there is more than one argument in LIST, this calls B<execvp>\\|(3) with "
4849 "the arguments in LIST. If there is only one element in LIST, the argument "
4850 "is checked for shell metacharacters, and if there are any, the entire "
4851 "argument is passed to the system's command shell for parsing (this is "
4852 "\\&CW<\\*(C`/bin/sh -c\\*(C'> on Unix platforms, but varies on other "
4853 "platforms). If there are no shell metacharacters in the argument, it is "
4854 "split into words and passed directly to CW<\\*(C`execvp\\*(C'>, which is "
4855 "more efficient. Examples:"
4856 msgstr ""
4857
4858 #. type: Plain text
4859 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4860 #: opensuse-leap-16-1 opensuse-tumbleweed
4861 #, no-wrap
4862 msgid ""
4863 "\\& exec \\*(Aq/bin/echo\\*(Aq, \\*(AqYour arguments are: \\*(Aq, @ARGV;\n"
4864 "\\& exec \"sort $outfile | uniq\";\n"
4865 msgstr ""
4866
4867 #. type: Plain text
4868 #: debian-trixie debian-unstable
4869 msgid ""
4870 "If you don't really want to execute the first argument, but want to lie to "
4871 "the program you are executing about its own name, you can specify the "
4872 "program you actually want to run as an \"indirect object\" (without a comma) "
4873 "in front of the LIST, as in CW<\\*(C`exec PROGRAM LIST\\*(C'>. (This always "
4874 "forces interpretation of the LIST as a multivalued list, even if there is "
4875 "only a single scalar in the list.) Example:"
4876 msgstr ""
4877
4878 #. type: Plain text
4879 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4880 #: opensuse-leap-16-1 opensuse-tumbleweed
4881 #, no-wrap
4882 msgid ""
4883 "\\& my $shell = \\*(Aq/bin/csh\\*(Aq;\n"
4884 "\\& exec $shell \\*(Aq-sh\\*(Aq; # pretend it\\*(Aqs a login shell\n"
4885 msgstr ""
4886
4887 #. type: Plain text
4888 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4889 #: opensuse-leap-16-1 opensuse-tumbleweed
4890 msgid "or, more directly,"
4891 msgstr ""
4892
4893 #. type: Plain text
4894 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4895 #: opensuse-leap-16-1 opensuse-tumbleweed
4896 #, no-wrap
4897 msgid "\\& exec {\\*(Aq/bin/csh\\*(Aq} \\*(Aq-sh\\*(Aq; # pretend it\\*(Aqs a login shell\n"
4898 msgstr ""
4899
4900 #. type: Plain text
4901 #: debian-trixie debian-unstable
4902 msgid ""
4903 "When the arguments get executed via the system shell, results are subject to "
4904 "its quirks and capabilities. See \"`STRING`\" in perlop for details."
4905 msgstr ""
4906
4907 #. type: Plain text
4908 #: debian-trixie debian-unstable
4909 msgid ""
4910 "Using an indirect object with CW<\\*(C`exec\\*(C'> or "
4911 "\\&CW<\\*(C`system\\*(C'> is also more secure. This usage (which also works "
4912 "fine with CW<\\*(C`system\\*(C'>) forces interpretation of the arguments as "
4913 "a multivalued list, even if the list had just one argument. That way you're "
4914 "safe from the shell expanding wildcards or splitting up words with "
4915 "whitespace in them."
4916 msgstr ""
4917
4918 #. type: Plain text
4919 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4920 #: opensuse-leap-16-1 opensuse-tumbleweed
4921 #, no-wrap
4922 msgid ""
4923 "\\& my @args = ( \"echo surprise\" );\n"
4924 "\\&\n"
4925 "\\& exec @args; # subject to shell escapes\n"
4926 "\\& # if @args == 1\n"
4927 "\\& exec { $args[0] } @args; # safe even with one-arg list\n"
4928 msgstr ""
4929
4930 #. type: Plain text
4931 #: debian-trixie debian-unstable
4932 msgid ""
4933 "The first version, the one without the indirect object, ran the I<echo> "
4934 "program, passing it CW<\"surprise\"> an argument. The second version "
4935 "didn't; it tried to run a program named I<\"echo surprise\">, didn't find "
4936 "it, and set \\&CW<$?> to a non-zero value indicating failure."
4937 msgstr ""
4938
4939 #. type: Plain text
4940 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4941 #: opensuse-leap-16-1 opensuse-tumbleweed
4942 msgid ""
4943 "On Windows, only the CW<\\*(C`exec PROGRAM LIST\\*(C'> indirect object "
4944 "syntax will reliably avoid using the shell; CW<\\*(C`exec LIST\\*(C'>, even "
4945 "with more than one element, will fall back to the shell if the first spawn "
4946 "fails."
4947 msgstr ""
4948
4949 #. type: Plain text
4950 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4951 #: opensuse-leap-16-1 opensuse-tumbleweed
4952 msgid ""
4953 "Perl attempts to flush all files opened for output before the exec, but this "
4954 "may not be supported on some platforms (see perlport). To be safe, you may "
4955 "need to set CW<$|> (CW<$AUTOFLUSH> in English) or call the "
4956 "CW<\\*(C`autoflush\\*(C'> method of \\&CW<\\*(C`IO::Handle\\*(C'> on any "
4957 "open handles to avoid lost output."
4958 msgstr ""
4959
4960 #. type: Plain text
4961 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4962 #: opensuse-leap-16-1 opensuse-tumbleweed
4963 msgid ""
4964 "Note that CW<\\*(C`exec\\*(C'> will not call your CW<\\*(C`END\\*(C'> "
4965 "blocks, nor will it invoke CW<\\*(C`DESTROY\\*(C'> methods on your objects."
4966 msgstr ""
4967
4968 #. type: Plain text
4969 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4970 #: opensuse-leap-16-1 opensuse-tumbleweed
4971 msgid "Portability issues: \"exec\" in perlport."
4972 msgstr ""
4973
4974 #. type: IX
4975 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4976 #: opensuse-leap-16-1 opensuse-tumbleweed
4977 #, no-wrap
4978 msgid "exists EXPR"
4979 msgstr ""
4980
4981 #. type: IX
4982 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4983 #: opensuse-leap-16-1 opensuse-tumbleweed
4984 #, no-wrap
4985 msgid "exists autovivification"
4986 msgstr ""
4987
4988 #. type: Plain text
4989 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4990 #: opensuse-leap-16-1 opensuse-tumbleweed
4991 msgid ""
4992 "Given an expression that specifies an element of a hash, returns true if the "
4993 "specified element in the hash has ever been initialized, even if the "
4994 "corresponding value is undefined."
4995 msgstr ""
4996
4997 #. type: Plain text
4998 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4999 #: opensuse-leap-16-1 opensuse-tumbleweed
5000 #, no-wrap
5001 msgid ""
5002 "\\& print \"Exists\\en\" if exists $hash{$key};\n"
5003 "\\& print \"Defined\\en\" if defined $hash{$key};\n"
5004 "\\& print \"True\\en\" if $hash{$key};\n"
5005 msgstr ""
5006
5007 #. type: Plain text
5008 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5009 #: opensuse-leap-16-1 opensuse-tumbleweed
5010 msgid ""
5011 "exists may also be called on array elements, but its behavior is much less "
5012 "obvious and is strongly tied to the use of CW<\\*(C`delete\\*(C'> on arrays."
5013 msgstr ""
5014
5015 #. type: Plain text
5016 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5017 #: opensuse-leap-16-1 opensuse-tumbleweed
5018 msgid ""
5019 "\\&B<WARNING:> Calling CW<\\*(C`exists\\*(C'> on array values is strongly "
5020 "discouraged. The notion of deleting or checking the existence of Perl array "
5021 "elements is not conceptually coherent, and can lead to surprising behavior."
5022 msgstr ""
5023
5024 #. type: Plain text
5025 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5026 #: opensuse-leap-16-1 opensuse-tumbleweed
5027 #, no-wrap
5028 msgid ""
5029 "\\& print \"Exists\\en\" if exists $array[$index];\n"
5030 "\\& print \"Defined\\en\" if defined $array[$index];\n"
5031 "\\& print \"True\\en\" if $array[$index];\n"
5032 msgstr ""
5033
5034 #. type: Plain text
5035 #: debian-trixie debian-unstable
5036 msgid ""
5037 "A hash or array element can be true only if it's defined and defined only if "
5038 "it exists, but the reverse doesn't necessarily hold true."
5039 msgstr ""
5040
5041 #. type: Plain text
5042 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5043 #: opensuse-leap-16-1 opensuse-tumbleweed
5044 msgid ""
5045 "Given an expression that specifies the name of a subroutine, returns true if "
5046 "the specified subroutine has ever been declared, even if it is undefined. "
5047 "Mentioning a subroutine name for exists or defined does not count as "
5048 "declaring it. Note that a subroutine that does not exist may still be "
5049 "callable: its package may have an CW<\\*(C`AUTOLOAD\\*(C'> method that makes "
5050 "it spring into existence the first time that it is called; see perlsub."
5051 msgstr ""
5052
5053 #. type: Plain text
5054 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5055 #: opensuse-leap-16-1 opensuse-tumbleweed
5056 #, no-wrap
5057 msgid ""
5058 "\\& print \"Exists\\en\" if exists &subroutine;\n"
5059 "\\& print \"Defined\\en\" if defined &subroutine;\n"
5060 msgstr ""
5061
5062 #. type: Plain text
5063 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5064 #: opensuse-leap-16-1 opensuse-tumbleweed
5065 msgid ""
5066 "Note that the EXPR can be arbitrarily complicated as long as the final "
5067 "operation is a hash or array key lookup or subroutine name:"
5068 msgstr ""
5069
5070 #. type: Plain text
5071 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5072 #: opensuse-leap-16-1 opensuse-tumbleweed
5073 #, no-wrap
5074 msgid ""
5075 "\\& if (exists $ref-E<gt>{A}-E<gt>{B}-E<gt>{$key}) { }\n"
5076 "\\& if (exists $hash{A}{B}{$key}) { }\n"
5077 "\\&\n"
5078 "\\& if (exists $ref-E<gt>{A}-E<gt>{B}-E<gt>[$ix]) { }\n"
5079 "\\& if (exists $hash{A}{B}[$ix]) { }\n"
5080 "\\&\n"
5081 "\\& if (exists &{$ref-E<gt>{A}{B}{$key}}) { }\n"
5082 msgstr ""
5083
5084 #. type: Plain text
5085 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5086 #: opensuse-leap-16-1 opensuse-tumbleweed
5087 msgid ""
5088 "Although the most deeply nested array or hash element will not spring into "
5089 "existence just because its existence was tested, any intervening ones will. "
5090 "Thus CW<\\*(C`$ref-E<gt>{\"A\"}\\*(C'> and CW<\\*(C`$ref-E<gt>{\"A\"}-"
5091 "E<gt>{\"B\"}\\*(C'> will spring into existence due to the existence test for "
5092 "the CW<$key> element above. This happens anywhere the arrow operator is "
5093 "used, including even here:"
5094 msgstr ""
5095
5096 #. type: Plain text
5097 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5098 #: opensuse-leap-16-1 opensuse-tumbleweed
5099 #, no-wrap
5100 msgid ""
5101 "\\& undef $ref;\n"
5102 "\\& if (exists $ref-E<gt>{\"Some key\"}) { }\n"
5103 "\\& print $ref; # prints HASH(0x80d3d5c)\n"
5104 msgstr ""
5105
5106 #. type: Plain text
5107 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5108 #: opensuse-leap-16-1 opensuse-tumbleweed
5109 msgid ""
5110 "Use of a subroutine call, rather than a subroutine name, as an argument to "
5111 "CW<\\*(C`exists\\*(C'> is an error."
5112 msgstr ""
5113
5114 #. type: Plain text
5115 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5116 #: opensuse-leap-16-1 opensuse-tumbleweed
5117 #, no-wrap
5118 msgid ""
5119 "\\& exists &sub; # OK\n"
5120 "\\& exists &sub(); # Error\n"
5121 msgstr ""
5122
5123 #. type: IX
5124 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5125 #: opensuse-leap-16-1 opensuse-tumbleweed
5126 #, no-wrap
5127 msgid "exit EXPR"
5128 msgstr ""
5129
5130 #. type: IX
5131 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5132 #: opensuse-leap-16-1 opensuse-tumbleweed
5133 #, no-wrap
5134 msgid "exit terminate abort"
5135 msgstr ""
5136
5137 #. type: IX
5138 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5139 #: opensuse-leap-16-1 opensuse-tumbleweed
5140 #, no-wrap
5141 msgid "exit"
5142 msgstr ""
5143
5144 #. type: Plain text
5145 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5146 #: opensuse-leap-16-1 opensuse-tumbleweed
5147 msgid "Evaluates EXPR and exits immediately with that value. Example:"
5148 msgstr ""
5149
5150 #. type: Plain text
5151 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5152 #: opensuse-leap-16-1 opensuse-tumbleweed
5153 #, no-wrap
5154 msgid ""
5155 "\\& my $ans = E<lt>STDINE<gt>;\n"
5156 "\\& exit 0 if $ans =~ /^[Xx]/;\n"
5157 msgstr ""
5158
5159 #. type: Plain text
5160 #: debian-trixie debian-unstable
5161 msgid ""
5162 "See also CW<\\*(C`die\\*(C'>. If EXPR is omitted, exits with CW<0> status. "
5163 "The only universally recognized values for EXPR are CW<0> for success and "
5164 "CW<1> for error; other values are subject to interpretation depending on the "
5165 "environment in which the Perl program is running. For example, exiting 69 "
5166 "(EX_UNAVAILABLE) from a I<sendmail> incoming-mail filter will cause the "
5167 "mailer to return the item undelivered, but that's not true everywhere."
5168 msgstr ""
5169
5170 #. type: Plain text
5171 #: debian-trixie debian-unstable
5172 msgid ""
5173 "Don't use CW<\\*(C`exit\\*(C'> to abort a subroutine if there's any chance "
5174 "that someone might want to trap whatever error happened. Use "
5175 "\\&CW<\\*(C`die\\*(C'> instead, which can be trapped by an "
5176 "\\&CW<\\*(C`eval\\*(C'>."
5177 msgstr ""
5178
5179 #. type: Plain text
5180 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5181 #: opensuse-leap-16-1 opensuse-tumbleweed
5182 msgid ""
5183 "The CW<\\*(C`exit\\*(C'> function does not always exit immediately. It "
5184 "calls any defined CW<\\*(C`END\\*(C'> routines first, but these "
5185 "CW<\\*(C`END\\*(C'> routines may not themselves abort the exit. Likewise "
5186 "any object destructors that need to be called are called before the real "
5187 "exit. CW<\\*(C`END\\*(C'> routines and destructors can change the exit "
5188 "status by modifying CW<$?>. If this is a problem, you can call "
5189 "\\&CW<POSIX::_exit($status)> to avoid CW<\\*(C`END\\*(C'> and destructor "
5190 "processing. See perlmod for details."
5191 msgstr ""
5192
5193 #. type: Plain text
5194 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5195 #: opensuse-leap-16-1 opensuse-tumbleweed
5196 msgid "Portability issues: \"exit\" in perlport."
5197 msgstr ""
5198
5199 #. type: IX
5200 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5201 #: opensuse-leap-16-1 opensuse-tumbleweed
5202 #, no-wrap
5203 msgid "exp EXPR"
5204 msgstr ""
5205
5206 #. type: IX
5207 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5208 #: opensuse-leap-16-1 opensuse-tumbleweed
5209 #, no-wrap
5210 msgid "exp exponential antilog antilogarithm e"
5211 msgstr ""
5212
5213 #. type: IX
5214 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5215 #: opensuse-leap-16-1 opensuse-tumbleweed
5216 #, no-wrap
5217 msgid "exp"
5218 msgstr ""
5219
5220 #. type: Plain text
5221 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5222 #: opensuse-leap-16-1 opensuse-tumbleweed
5223 msgid ""
5224 "Returns I<e> (the natural logarithm base) to the power of EXPR. If EXPR is "
5225 "omitted, gives CW<exp($_)>."
5226 msgstr ""
5227
5228 #. type: IX
5229 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5230 #: opensuse-leap-16-1 opensuse-tumbleweed
5231 #, no-wrap
5232 msgid "fc EXPR"
5233 msgstr ""
5234
5235 #. type: IX
5236 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5237 #: opensuse-leap-16-1 opensuse-tumbleweed
5238 #, no-wrap
5239 msgid "fc foldcase casefold fold-case case-fold"
5240 msgstr ""
5241
5242 #. type: IX
5243 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5244 #: opensuse-leap-16-1 opensuse-tumbleweed
5245 #, no-wrap
5246 msgid "fc"
5247 msgstr ""
5248
5249 #. type: Plain text
5250 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5251 #: opensuse-leap-16-1 opensuse-tumbleweed
5252 msgid ""
5253 "Returns the casefolded version of EXPR. This is the internal function "
5254 "implementing the CW<\\*(C`\\eF\\*(C'> escape in double-quoted strings."
5255 msgstr ""
5256
5257 #. type: Plain text
5258 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5259 #: opensuse-leap-16-1 opensuse-tumbleweed
5260 msgid ""
5261 "Casefolding is the process of mapping strings to a form where case "
5262 "differences are erased; comparing two strings in their casefolded form is "
5263 "effectively a way of asking if two strings are equal, regardless of case."
5264 msgstr ""
5265
5266 #. type: Plain text
5267 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5268 #: opensuse-leap-16-1 opensuse-tumbleweed
5269 msgid "Roughly, if you ever found yourself writing this"
5270 msgstr ""
5271
5272 #. type: Plain text
5273 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5274 #: opensuse-leap-16-1 opensuse-tumbleweed
5275 #, no-wrap
5276 msgid ""
5277 "\\& lc($this) eq lc($that) # Wrong!\n"
5278 "\\& # or\n"
5279 "\\& uc($this) eq uc($that) # Also wrong!\n"
5280 "\\& # or\n"
5281 "\\& $this =~ /^\\eQ$that\\eE\\ez/i # Right!\n"
5282 msgstr ""
5283
5284 #. type: Plain text
5285 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5286 #: opensuse-leap-16-1 opensuse-tumbleweed
5287 msgid "Now you can write"
5288 msgstr ""
5289
5290 #. type: Plain text
5291 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5292 #: opensuse-leap-16-1 opensuse-tumbleweed
5293 #, no-wrap
5294 msgid "\\& fc($this) eq fc($that)\n"
5295 msgstr ""
5296
5297 #. type: Plain text
5298 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5299 #: opensuse-leap-16-1 opensuse-tumbleweed
5300 msgid "And get the correct results."
5301 msgstr ""
5302
5303 #. type: Plain text
5304 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5305 #: opensuse-leap-16-1 opensuse-tumbleweed
5306 msgid ""
5307 "Perl only implements the full form of casefolding, but you can access the "
5308 "simple folds using \"B<casefold()>\" in Unicode::UCD and "
5309 "\"B<prop_invmap()>\" in Unicode::UCD. For further information on "
5310 "casefolding, refer to the Unicode Standard, specifically sections 3.13 "
5311 "CW<\\*(C`Default Case Operations\\*(C'>, 4.2 CW<\\*(C`Case-Normative\\*(C'>, "
5312 "and 5.18 CW<\\*(C`Case Mappings\\*(C'>, available at E<lt>https://"
5313 "www.unicode.org/versions/latest/E<gt>, as well as the Case Charts available "
5314 "at E<lt>https://www.unicode.org/charts/case/E<gt>."
5315 msgstr ""
5316
5317 #. type: Plain text
5318 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5319 #: opensuse-leap-16-1 opensuse-tumbleweed
5320 msgid "If EXPR is omitted, uses CW<$_>."
5321 msgstr ""
5322
5323 #. type: Plain text
5324 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5325 #: opensuse-leap-16-1 opensuse-tumbleweed
5326 msgid ""
5327 "This function behaves the same way under various pragmas, such as within "
5328 "\\&CW<\"use\\ feature\\ \\*(Aqunicode_strings\">, as CW<\\*(C`lc\\*(C'> "
5329 "does, with the single exception of \\&CW<\\*(C`fc\\*(C'> of I<LATIN CAPITAL "
5330 "LETTER SHARP S> (U+1E9E) within the scope of CW<\\*(C`use\\ locale\\*(C'>. "
5331 "The foldcase of this character would normally be CW<\"ss\">, but as "
5332 "explained in the CW<\\*(C`lc\\*(C'> section, case changes that cross the "
5333 "255/256 boundary are problematic under locales, and are hence prohibited. "
5334 "Therefore, this function under locale returns instead the string "
5335 "CW<\"\\ex{17F}\\ex{17F}\">, which is the I<LATIN SMALL LETTER LONG S>. "
5336 "Since that character itself folds to CW<\"s\">, the string of two of them "
5337 "together should be equivalent to a single U+1E9E when foldcased."
5338 msgstr ""
5339
5340 #. type: Plain text
5341 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5342 #: opensuse-leap-16-1 opensuse-tumbleweed
5343 msgid ""
5344 "While the Unicode Standard defines two additional forms of casefolding, one "
5345 "for Turkic languages and one that never maps one character into multiple "
5346 "characters, these are not provided by the Perl core. However, the CPAN "
5347 "module \\&CW<\\*(C`Unicode::Casing\\*(C'> may be used to provide an "
5348 "implementation."
5349 msgstr ""
5350
5351 #. type: IX
5352 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5353 #: opensuse-leap-16-1 opensuse-tumbleweed
5354 #, no-wrap
5355 msgid "fcntl FILEHANDLE,FUNCTION,SCALAR"
5356 msgstr ""
5357
5358 #. type: IX
5359 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5360 #: opensuse-leap-16-1 opensuse-tumbleweed
5361 #, no-wrap
5362 msgid "fcntl"
5363 msgstr ""
5364
5365 #. type: Plain text
5366 #: debian-trixie debian-unstable
5367 msgid "Implements the B<fcntl>\\|(2) function. You'll probably have to say"
5368 msgstr ""
5369
5370 #. type: Plain text
5371 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5372 #: opensuse-leap-16-1 opensuse-tumbleweed
5373 #, no-wrap
5374 msgid "\\& use Fcntl;\n"
5375 msgstr ""
5376
5377 #. type: Plain text
5378 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5379 #: opensuse-leap-16-1 opensuse-tumbleweed
5380 msgid ""
5381 "first to get the correct constant definitions. Argument processing and "
5382 "value returned work just like CW<\\*(C`ioctl\\*(C'> below. For example:"
5383 msgstr ""
5384
5385 #. type: Plain text
5386 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5387 #: opensuse-leap-16-1 opensuse-tumbleweed
5388 #, no-wrap
5389 msgid ""
5390 "\\& use Fcntl;\n"
5391 "\\& my $flags = fcntl($filehandle, F_GETFL, 0)\n"
5392 "\\& or die \"Can\\*(Aqt fcntl F_GETFL: $!\";\n"
5393 msgstr ""
5394
5395 #. type: Plain text
5396 #: debian-trixie debian-unstable
5397 msgid ""
5398 "You don't have to check for CW<\\*(C`defined\\*(C'> on the return from "
5399 "CW<\\*(C`fcntl\\*(C'>. Like \\&CW<\\*(C`ioctl\\*(C'>, it maps a CW<0> "
5400 "return from the system call into CW<\"0 but true\"> in Perl. This string is "
5401 "true in boolean context and CW<0> in numeric context. It is also exempt "
5402 "from the normal \\&CW<\\*(C`Argument \"...\" isn\\*(Aqt numeric\\*(C'> "
5403 "warnings on improper numeric conversions."
5404 msgstr ""
5405
5406 #. type: Plain text
5407 #: debian-trixie debian-unstable
5408 msgid ""
5409 "Note that CW<\\*(C`fcntl\\*(C'> raises an exception if used on a machine "
5410 "that doesn't implement B<fcntl>\\|(2). See the Fcntl module or your "
5411 "B<fcntl>\\|(2) manpage to learn what functions are available on your system."
5412 msgstr ""
5413
5414 #. type: Plain text
5415 #: debian-trixie debian-unstable
5416 msgid ""
5417 "Here's an example of setting a filehandle named CW<$REMOTE> to be non-"
5418 "blocking at the system level. You'll have to negotiate \\&CW<$|> on your "
5419 "own, though."
5420 msgstr ""
5421
5422 #. type: Plain text
5423 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5424 #: opensuse-leap-16-1 opensuse-tumbleweed
5425 #, no-wrap
5426 msgid ""
5427 "\\& use Fcntl qw(F_GETFL F_SETFL O_NONBLOCK);\n"
5428 "\\&\n"
5429 "\\& my $flags = fcntl($REMOTE, F_GETFL, 0)\n"
5430 "\\& or die \"Can\\*(Aqt get flags for the socket: $!\\en\";\n"
5431 "\\&\n"
5432 "\\& fcntl($REMOTE, F_SETFL, $flags | O_NONBLOCK)\n"
5433 "\\& or die \"Can\\*(Aqt set flags for the socket: $!\\en\";\n"
5434 msgstr ""
5435
5436 #. type: Plain text
5437 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5438 #: opensuse-leap-16-1 opensuse-tumbleweed
5439 msgid "Portability issues: \"fcntl\" in perlport."
5440 msgstr ""
5441
5442 #. type: IP
5443 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5444 #: opensuse-leap-16-1 opensuse-tumbleweed
5445 #, no-wrap
5446 msgid "_\\|_FILE_\\|_"
5447 msgstr ""
5448
5449 #. type: IX
5450 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5451 #: opensuse-leap-16-1 opensuse-tumbleweed
5452 #, no-wrap
5453 msgid "__FILE__"
5454 msgstr ""
5455
5456 #. type: Plain text
5457 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5458 #: opensuse-leap-16-1 opensuse-tumbleweed
5459 msgid ""
5460 "A special token that returns the name of the file in which it occurs. It "
5461 "can be altered by the mechanism described at \"Plain Old Comments (Not!)\" "
5462 "in perlsyn."
5463 msgstr ""
5464
5465 #. type: IX
5466 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5467 #: opensuse-leap-16-1 opensuse-tumbleweed
5468 #, no-wrap
5469 msgid "field VARNAME"
5470 msgstr ""
5471
5472 #. type: IX
5473 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5474 #: opensuse-leap-16-1 opensuse-tumbleweed
5475 #, no-wrap
5476 msgid "field"
5477 msgstr ""
5478
5479 #. type: Plain text
5480 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5481 #: opensuse-leap-16-1 opensuse-tumbleweed
5482 msgid ""
5483 "Declares a new field variable within the current class. Methods and "
5484 "\\&CW<\\*(C`ADJUST\\*(C'> blocks of the class will have access to this "
5485 "variable as if it was a lexical in scope at that point."
5486 msgstr ""
5487
5488 #. type: IX
5489 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5490 #: opensuse-leap-16-1 opensuse-tumbleweed
5491 #, no-wrap
5492 msgid "fileno FILEHANDLE"
5493 msgstr ""
5494
5495 #. type: IX
5496 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5497 #: opensuse-leap-16-1 opensuse-tumbleweed
5498 #, no-wrap
5499 msgid "fileno"
5500 msgstr ""
5501
5502 #. type: IX
5503 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5504 #: opensuse-leap-16-1 opensuse-tumbleweed
5505 #, no-wrap
5506 msgid "fileno DIRHANDLE"
5507 msgstr ""
5508
5509 #. type: Plain text
5510 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5511 #: opensuse-leap-16-1 opensuse-tumbleweed
5512 msgid ""
5513 "Returns the file descriptor for a filehandle or directory handle, or "
5514 "undefined if the filehandle is not open. If there is no real file "
5515 "descriptor at the OS level, as can happen with filehandles connected to "
5516 "memory objects via \\&CW<\\*(C`open\\*(C'> with a reference for the third "
5517 "argument, -1 is returned."
5518 msgstr ""
5519
5520 #. type: Plain text
5521 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5522 #: opensuse-leap-16-1 opensuse-tumbleweed
5523 msgid ""
5524 "This is mainly useful for constructing bitmaps for \\&CW<\\*(C`select\\*(C'> "
5525 "and low-level POSIX tty-handling operations. If FILEHANDLE is an "
5526 "expression, the value is taken as an indirect filehandle, generally its name."
5527 msgstr ""
5528
5529 #. type: Plain text
5530 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5531 #: opensuse-leap-16-1 opensuse-tumbleweed
5532 msgid ""
5533 "You can use this to find out whether two handles refer to the same "
5534 "underlying descriptor:"
5535 msgstr ""
5536
5537 #. type: Plain text
5538 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5539 #: opensuse-leap-16-1 opensuse-tumbleweed
5540 #, no-wrap
5541 msgid ""
5542 "\\& if (fileno($this) != -1 && fileno($this) == fileno($that)) {\n"
5543 "\\& print \"\\e$this and \\e$that are dups\\en\";\n"
5544 "\\& } elsif (fileno($this) != -1 && fileno($that) != -1) {\n"
5545 "\\& print \"\\e$this and \\e$that have different \" .\n"
5546 "\\& \"underlying file descriptors\\en\";\n"
5547 "\\& } else {\n"
5548 "\\& print \"At least one of \\e$this and \\e$that does \" .\n"
5549 "\\& \"not have a real file descriptor\\en\";\n"
5550 "\\& }\n"
5551 msgstr ""
5552
5553 #. type: Plain text
5554 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5555 #: opensuse-leap-16-1 opensuse-tumbleweed
5556 msgid ""
5557 "The behavior of CW<\\*(C`fileno\\*(C'> on a directory handle depends on the "
5558 "operating system. On a system with B<dirfd>\\|(3) or similar, "
5559 "CW<\\*(C`fileno\\*(C'> on a directory handle returns the underlying file "
5560 "descriptor associated with the handle; on systems with no such support, it "
5561 "returns the undefined value, and sets CW<$!> (errno)."
5562 msgstr ""
5563
5564 #. type: IX
5565 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5566 #: opensuse-leap-16-1 opensuse-tumbleweed
5567 #, no-wrap
5568 msgid "flock FILEHANDLE,OPERATION"
5569 msgstr ""
5570
5571 #. type: IX
5572 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5573 #: opensuse-leap-16-1 opensuse-tumbleweed
5574 #, no-wrap
5575 msgid "flock lock locking"
5576 msgstr ""
5577
5578 #. type: Plain text
5579 #: debian-trixie debian-unstable
5580 msgid ""
5581 "Calls B<flock>\\|(2), or an emulation of it, on FILEHANDLE. Returns true "
5582 "for success, false on failure. Produces a fatal error if used on a machine "
5583 "that doesn't implement B<flock>\\|(2), B<fcntl>\\|(2) locking, or "
5584 "\\&B<lockf>\\|(3). CW<\\*(C`flock\\*(C'> is Perl's portable file-locking "
5585 "interface, although it locks entire files only, not records."
5586 msgstr ""
5587
5588 #. type: Plain text
5589 #: debian-trixie debian-unstable
5590 msgid ""
5591 "Two potentially non-obvious but traditional CW<\\*(C`flock\\*(C'> semantics "
5592 "are that it waits indefinitely until the lock is granted, and that its locks "
5593 "are B<merely advisory>. Such discretionary locks are more flexible, but "
5594 "offer fewer guarantees. This means that programs that do not also use "
5595 "\\&CW<\\*(C`flock\\*(C'> may modify files locked with "
5596 "\\&CW<\\*(C`flock\\*(C'>. See perlport, your port's specific documentation, "
5597 "and your system-specific local manpages for details. It's best to assume "
5598 "traditional behavior if you're writing portable programs. (But if you're "
5599 "not, you should as always feel perfectly free to write for your own system's "
5600 "idiosyncrasies (sometimes called \"features\"). Slavish adherence to "
5601 "portability concerns shouldn't get in the way of your getting your job done.)"
5602 msgstr ""
5603
5604 #. type: Plain text
5605 #: debian-trixie debian-unstable
5606 msgid ""
5607 "OPERATION is one of LOCK_SH, LOCK_EX, or LOCK_UN, possibly combined with "
5608 "LOCK_NB. These constants are traditionally valued 1, 2, 8 and 4, but you "
5609 "can use the symbolic names if you import them from the Fcntl module, either "
5610 "individually, or as a group using the CW<\\*(C`:flock\\*(C'> tag. LOCK_SH "
5611 "requests a shared lock, LOCK_EX requests an exclusive lock, and LOCK_UN "
5612 "releases a previously requested lock. If LOCK_NB is bitwise-or'ed with "
5613 "LOCK_SH or LOCK_EX, then CW<\\*(C`flock\\*(C'> returns immediately rather "
5614 "than blocking waiting for the lock; check the return status to see if you "
5615 "got it."
5616 msgstr ""
5617
5618 #. type: Plain text
5619 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5620 #: opensuse-leap-16-1 opensuse-tumbleweed
5621 msgid ""
5622 "To avoid the possibility of miscoordination, Perl now flushes FILEHANDLE "
5623 "before locking or unlocking it."
5624 msgstr ""
5625
5626 #. type: Plain text
5627 #: debian-trixie debian-unstable
5628 msgid ""
5629 "Note that the emulation built with B<lockf>\\|(3) doesn't provide shared "
5630 "locks, and it requires that FILEHANDLE be open with write intent. These are "
5631 "the semantics that B<lockf>\\|(3) implements. Most if not all systems "
5632 "implement B<lockf>\\|(3) in terms of B<fcntl>\\|(2) locking, though, so the "
5633 "differing semantics shouldn't bite too many people."
5634 msgstr ""
5635
5636 #. type: Plain text
5637 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5638 #: opensuse-leap-16-1 opensuse-tumbleweed
5639 msgid ""
5640 "Note that the B<fcntl>\\|(2) emulation of B<flock>\\|(3) requires that "
5641 "FILEHANDLE be open with read intent to use LOCK_SH and requires that it be "
5642 "open with write intent to use LOCK_EX."
5643 msgstr ""
5644
5645 #. type: Plain text
5646 #: debian-trixie debian-unstable
5647 msgid ""
5648 "Note also that some versions of CW<\\*(C`flock\\*(C'> cannot lock things "
5649 "over the network; you would need to use the more system-specific "
5650 "CW<\\*(C`fcntl\\*(C'> for that. If you like you can force Perl to ignore "
5651 "your system's B<flock>\\|(2) function, and so provide its own B<fcntl>\\|"
5652 "(2)-based emulation, by passing the switch CW<\\*(C`-Ud_flock\\*(C'> to the "
5653 "I<Configure> program when you configure and build a new Perl."
5654 msgstr ""
5655
5656 #. type: Plain text
5657 #: debian-trixie debian-unstable
5658 msgid "Here's a mailbox appender for BSD systems."
5659 msgstr ""
5660
5661 #. type: Plain text
5662 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5663 #: opensuse-leap-16-1 opensuse-tumbleweed
5664 #, no-wrap
5665 msgid ""
5666 "\\& # import LOCK_* and SEEK_END constants\n"
5667 "\\& use Fcntl qw(:flock SEEK_END);\n"
5668 "\\&\n"
5669 "\\& sub lock {\n"
5670 "\\& my ($fh) = @_;\n"
5671 "\\& flock($fh, LOCK_EX) or die \"Cannot lock mailbox - $!\\en\";\n"
5672 "\\& # and, in case we\\*(Aqre running on a very old UNIX\n"
5673 "\\& # variant without the modern O_APPEND semantics...\n"
5674 "\\& seek($fh, 0, SEEK_END) or die \"Cannot seek - $!\\en\";\n"
5675 "\\& }\n"
5676 "\\&\n"
5677 "\\& sub unlock {\n"
5678 "\\& my ($fh) = @_;\n"
5679 "\\& flock($fh, LOCK_UN) or die \"Cannot unlock mailbox - $!\\en\";\n"
5680 "\\& }\n"
5681 "\\&\n"
5682 "\\& open(my $mbox, \"E<gt>E<gt>\", \"/usr/spool/mail/$ENV{\\*(AqUSER\\*(Aq}\")\n"
5683 "\\& or die \"Can\\*(Aqt open mailbox: $!\";\n"
5684 "\\&\n"
5685 "\\& lock($mbox);\n"
5686 "\\& print $mbox $msg,\"\\en\\en\";\n"
5687 "\\& unlock($mbox);\n"
5688 msgstr ""
5689
5690 #. type: Plain text
5691 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5692 #: opensuse-leap-16-1 opensuse-tumbleweed
5693 msgid ""
5694 "On systems that support a real B<flock>\\|(2), locks are inherited across "
5695 "\\&CW<\\*(C`fork\\*(C'> calls, whereas those that must resort to the more "
5696 "capricious B<fcntl>\\|(2) function lose their locks, making it seriously "
5697 "harder to write servers."
5698 msgstr ""
5699
5700 #. type: Plain text
5701 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5702 #: opensuse-leap-16-1 opensuse-tumbleweed
5703 msgid "See also DB_File for other CW<\\*(C`flock\\*(C'> examples."
5704 msgstr ""
5705
5706 #. type: Plain text
5707 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5708 #: opensuse-leap-16-1 opensuse-tumbleweed
5709 msgid "Portability issues: \"flock\" in perlport."
5710 msgstr ""
5711
5712 #. type: IX
5713 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5714 #: opensuse-leap-16-1 opensuse-tumbleweed
5715 #, no-wrap
5716 msgid "fork"
5717 msgstr ""
5718
5719 #. type: IX
5720 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5721 #: opensuse-leap-16-1 opensuse-tumbleweed
5722 #, no-wrap
5723 msgid "fork child parent"
5724 msgstr ""
5725
5726 #. type: Plain text
5727 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5728 #: opensuse-leap-16-1 opensuse-tumbleweed
5729 msgid ""
5730 "Does a B<fork>\\|(2) system call to create a new process running the same "
5731 "program at the same point. It returns the child pid to the parent process, "
5732 "CW<0> to the child process, or CW<\\*(C`undef\\*(C'> if the fork is "
5733 "unsuccessful. File descriptors (and sometimes locks on those descriptors) "
5734 "are shared, while everything else is copied. On most systems supporting "
5735 "\\&B<fork>\\|(2), great care has gone into making it extremely efficient "
5736 "(for example, using copy-on-write technology on data pages), making it the "
5737 "dominant paradigm for multitasking over the last few decades."
5738 msgstr ""
5739
5740 #. type: Plain text
5741 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5742 #: opensuse-leap-16-1 opensuse-tumbleweed
5743 msgid ""
5744 "Perl attempts to flush all files opened for output before forking the child "
5745 "process, but this may not be supported on some platforms (see perlport). To "
5746 "be safe, you may need to set \\&CW<$|> (CW<$AUTOFLUSH> in English) or call "
5747 "the CW<\\*(C`autoflush\\*(C'> method of CW<\\*(C`IO::Handle\\*(C'> on any "
5748 "open handles to avoid duplicate output."
5749 msgstr ""
5750
5751 #. type: Plain text
5752 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5753 #: opensuse-leap-16-1 opensuse-tumbleweed
5754 msgid ""
5755 "If you CW<\\*(C`fork\\*(C'> without ever waiting on your children, you will "
5756 "accumulate zombies. On some systems, you can avoid this by setting "
5757 "\\&CW<$SIG{CHLD}> to CW<\"IGNORE\">. See also perlipc for more examples of "
5758 "forking and reaping moribund children."
5759 msgstr ""
5760
5761 #. type: Plain text
5762 #: debian-trixie debian-unstable
5763 msgid ""
5764 "Note that if your forked child inherits system file descriptors like STDIN "
5765 "and STDOUT that are actually connected by a pipe or socket, even if you "
5766 "exit, then the remote server (such as, say, a CGI script or a backgrounded "
5767 "job launched from a remote shell) won't think you're done. You should "
5768 "reopen those to I</dev/null> if it's any issue."
5769 msgstr ""
5770
5771 #. type: Plain text
5772 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5773 #: opensuse-leap-16-1 opensuse-tumbleweed
5774 msgid ""
5775 "On some platforms such as Windows, where the B<fork>\\|(2) system call is "
5776 "not available, Perl can be built to emulate CW<\\*(C`fork\\*(C'> in the Perl "
5777 "interpreter. The emulation is designed, at the level of the Perl program, "
5778 "to be as compatible as possible with the \"Unix\" B<fork>\\|(2). However it "
5779 "has limitations that have to be considered in code intended to be portable. "
5780 "See perlfork for more details."
5781 msgstr ""
5782
5783 #. type: Plain text
5784 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5785 #: opensuse-leap-16-1 opensuse-tumbleweed
5786 msgid "Portability issues: \"fork\" in perlport."
5787 msgstr ""
5788
5789 #. type: IX
5790 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5791 #: opensuse-leap-16-1 opensuse-tumbleweed
5792 #, no-wrap
5793 msgid "format"
5794 msgstr ""
5795
5796 #. type: Plain text
5797 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5798 #: opensuse-leap-16-1 opensuse-tumbleweed
5799 msgid ""
5800 "Declare a picture format for use by the CW<\\*(C`write\\*(C'> function. For "
5801 "example:"
5802 msgstr ""
5803
5804 #. type: Plain text
5805 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5806 #: opensuse-leap-16-1 opensuse-tumbleweed
5807 #, no-wrap
5808 msgid ""
5809 "\\& format Something =\n"
5810 "\\& Test: @E<lt>E<lt>E<lt>E<lt>E<lt>E<lt>E<lt>E<lt> @||||| @E<gt>E<gt>E<gt>E<gt>E<gt>\n"
5811 "\\& $str, $%, \\*(Aq$\\*(Aq . int($num)\n"
5812 "\\& .\n"
5813 "\\&\n"
5814 "\\& $str = \"widget\";\n"
5815 "\\& $num = $cost/$quantity;\n"
5816 "\\& $~ = \\*(AqSomething\\*(Aq;\n"
5817 "\\& write;\n"
5818 msgstr ""
5819
5820 #. type: Plain text
5821 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5822 #: opensuse-leap-16-1 opensuse-tumbleweed
5823 msgid "See perlform for many details and examples."
5824 msgstr ""
5825
5826 #. type: IX
5827 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5828 #: opensuse-leap-16-1 opensuse-tumbleweed
5829 #, no-wrap
5830 msgid "formline PICTURE,LIST"
5831 msgstr ""
5832
5833 #. type: IX
5834 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5835 #: opensuse-leap-16-1 opensuse-tumbleweed
5836 #, no-wrap
5837 msgid "formline"
5838 msgstr ""
5839
5840 #. type: Plain text
5841 #: debian-trixie debian-unstable
5842 msgid ""
5843 "This is an internal function used by CW<\\*(C`format\\*(C'>s, though you may "
5844 "call it, too. It formats (see perlform) a list of values according to the "
5845 "contents of PICTURE, placing the output into the format output accumulator, "
5846 "CW<$^A> (or CW<$ACCUMULATOR> in English). Eventually, when a "
5847 "CW<\\*(C`write\\*(C'> is done, the contents of CW<$^A> are written to some "
5848 "filehandle. You could also read CW<$^A> and then set \\&CW<$^A> back to "
5849 "CW<\"\">. Note that a format typically does one CW<\\*(C`formline\\*(C'> "
5850 "per line of form, but the \\&CW<\\*(C`formline\\*(C'> function itself "
5851 "doesn't care how many newlines are embedded in the PICTURE. This means that "
5852 "the CW<\\*(C`~\\*(C'> and \\&CW<\\*(C`~~\\*(C'> tokens treat the entire "
5853 "PICTURE as a single line. You may therefore need to use multiple formlines "
5854 "to implement a single record format, just like the CW<\\*(C`format\\*(C'> "
5855 "compiler."
5856 msgstr ""
5857
5858 #. type: Plain text
5859 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5860 #: opensuse-leap-16-1 opensuse-tumbleweed
5861 msgid ""
5862 "Be careful if you put double quotes around the picture, because an "
5863 "CW<\\*(C`@\\*(C'> character may be taken to mean the beginning of an array "
5864 "name. \\&CW<\\*(C`formline\\*(C'> always returns true. See perlform for "
5865 "other examples."
5866 msgstr ""
5867
5868 #. type: Plain text
5869 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5870 #: opensuse-leap-16-1 opensuse-tumbleweed
5871 msgid ""
5872 "If you are trying to use this instead of CW<\\*(C`write\\*(C'> to capture "
5873 "the output, you may find it easier to open a filehandle to a scalar "
5874 "(CW<\\*(C`open my $fh, \"E<gt>\", \\e$output\\*(C'>) and write to that "
5875 "instead."
5876 msgstr ""
5877
5878 #. type: IX
5879 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5880 #: opensuse-leap-16-1 opensuse-tumbleweed
5881 #, no-wrap
5882 msgid "getc FILEHANDLE"
5883 msgstr ""
5884
5885 #. type: IX
5886 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5887 #: opensuse-leap-16-1 opensuse-tumbleweed
5888 #, no-wrap
5889 msgid "getc getchar character file, read"
5890 msgstr ""
5891
5892 #. type: IX
5893 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5894 #: opensuse-leap-16-1 opensuse-tumbleweed
5895 #, no-wrap
5896 msgid "getc"
5897 msgstr ""
5898
5899 #. type: Plain text
5900 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5901 #: opensuse-leap-16-1 opensuse-tumbleweed
5902 msgid ""
5903 "Returns the next character from the input file attached to FILEHANDLE, or "
5904 "the undefined value at end of file or if there was an error (in the latter "
5905 "case CW<$!> is set). If FILEHANDLE is omitted, reads from STDIN. This is "
5906 "not particularly efficient. However, it cannot be used by itself to fetch "
5907 "single characters without waiting for the user to hit enter. For that, try "
5908 "something more like:"
5909 msgstr ""
5910
5911 #. type: Plain text
5912 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5913 #: opensuse-leap-16-1 opensuse-tumbleweed
5914 #, no-wrap
5915 msgid ""
5916 "\\& if ($BSD_STYLE) {\n"
5917 "\\& system \"stty cbreak E<lt>/dev/tty E<gt>/dev/tty 2E<gt>&1\";\n"
5918 "\\& }\n"
5919 "\\& else {\n"
5920 "\\& system \"stty\", \\*(Aq-icanon\\*(Aq, \\*(Aqeol\\*(Aq, \"\\e001\";\n"
5921 "\\& }\n"
5922 "\\&\n"
5923 "\\& my $key = getc(STDIN);\n"
5924 "\\&\n"
5925 "\\& if ($BSD_STYLE) {\n"
5926 "\\& system \"stty -cbreak E<lt>/dev/tty E<gt>/dev/tty 2E<gt>&1\";\n"
5927 "\\& }\n"
5928 "\\& else {\n"
5929 "\\& system \\*(Aqstty\\*(Aq, \\*(Aqicanon\\*(Aq, \\*(Aqeol\\*(Aq, \\*(Aq^@\\*(Aq; # ASCII NUL\n"
5930 "\\& }\n"
5931 "\\& print \"\\en\";\n"
5932 msgstr ""
5933
5934 #. type: Plain text
5935 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5936 #: opensuse-leap-16-1 opensuse-tumbleweed
5937 msgid ""
5938 "Determination of whether CW<$BSD_STYLE> should be set is left as an exercise "
5939 "to the reader."
5940 msgstr ""
5941
5942 #. type: Plain text
5943 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5944 #: opensuse-leap-16-1 opensuse-tumbleweed
5945 msgid ""
5946 "The CW<\\*(C`POSIX::getattr\\*(C'> function can do this more portably on "
5947 "systems purporting POSIX compliance. See also the "
5948 "\\&CW<\\*(C`Term::ReadKey\\*(C'> module on CPAN."
5949 msgstr ""
5950
5951 #. type: IX
5952 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5953 #: opensuse-leap-16-1 opensuse-tumbleweed
5954 #, no-wrap
5955 msgid "getlogin"
5956 msgstr ""
5957
5958 #. type: IX
5959 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5960 #: opensuse-leap-16-1 opensuse-tumbleweed
5961 #, no-wrap
5962 msgid "getlogin login"
5963 msgstr ""
5964
5965 #. type: Plain text
5966 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5967 #: opensuse-leap-16-1 opensuse-tumbleweed
5968 msgid ""
5969 "This implements the C library function of the same name, which on most "
5970 "systems returns the current login from I</etc/utmp>, if any. If it returns "
5971 "the empty string, use CW<\\*(C`getpwuid\\*(C'>."
5972 msgstr ""
5973
5974 #. type: Plain text
5975 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5976 #: opensuse-leap-16-1 opensuse-tumbleweed
5977 #, no-wrap
5978 msgid "\\& my $login = getlogin || getpwuid($E<lt>) || \"Kilroy\";\n"
5979 msgstr ""
5980
5981 #. type: Plain text
5982 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5983 #: opensuse-leap-16-1 opensuse-tumbleweed
5984 msgid ""
5985 "Do not consider CW<\\*(C`getlogin\\*(C'> for authentication: it is not as "
5986 "secure as CW<\\*(C`getpwuid\\*(C'>."
5987 msgstr ""
5988
5989 #. type: Plain text
5990 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5991 #: opensuse-leap-16-1 opensuse-tumbleweed
5992 msgid "Portability issues: \"getlogin\" in perlport."
5993 msgstr ""
5994
5995 #. type: IX
5996 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
5997 #: opensuse-leap-16-1 opensuse-tumbleweed
5998 #, no-wrap
5999 msgid "getpeername SOCKET"
6000 msgstr ""
6001
6002 #. type: IX
6003 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6004 #: opensuse-leap-16-1 opensuse-tumbleweed
6005 #, no-wrap
6006 msgid "getpeername peer"
6007 msgstr ""
6008
6009 #. type: Plain text
6010 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6011 #: opensuse-leap-16-1 opensuse-tumbleweed
6012 msgid ""
6013 "Returns the packed sockaddr address of the other end of the SOCKET "
6014 "connection."
6015 msgstr ""
6016
6017 #. type: Plain text
6018 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6019 #: opensuse-leap-16-1 opensuse-tumbleweed
6020 #, no-wrap
6021 msgid ""
6022 "\\& use Socket;\n"
6023 "\\& my $hersockaddr = getpeername($sock);\n"
6024 "\\& my ($port, $iaddr) = sockaddr_in($hersockaddr);\n"
6025 "\\& my $herhostname = gethostbyaddr($iaddr, AF_INET);\n"
6026 "\\& my $herstraddr = inet_ntoa($iaddr);\n"
6027 msgstr ""
6028
6029 #. type: IX
6030 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6031 #: opensuse-leap-16-1 opensuse-tumbleweed
6032 #, no-wrap
6033 msgid "getpgrp PID"
6034 msgstr ""
6035
6036 #. type: IX
6037 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6038 #: opensuse-leap-16-1 opensuse-tumbleweed
6039 #, no-wrap
6040 msgid "getpgrp group"
6041 msgstr ""
6042
6043 #. type: Plain text
6044 #: debian-trixie debian-unstable
6045 msgid ""
6046 "Returns the current process group for the specified PID. Use a PID of CW<0> "
6047 "to get the current process group for the current process. Will raise an "
6048 "exception if used on a machine that doesn't implement B<getpgrp>\\|(2). If "
6049 "PID is omitted, returns the process group of the current process."
6050 msgstr ""
6051
6052 #. type: Plain text
6053 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6054 #: opensuse-leap-16-1 opensuse-tumbleweed
6055 msgid ""
6056 "Some very old machines may not support CW<\\*(C`PID != 0\\*(C'> and will "
6057 "throw an exception if CW<\\*(C`PID != 0\\*(C'>."
6058 msgstr ""
6059
6060 #. type: Plain text
6061 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6062 #: opensuse-leap-16-1 opensuse-tumbleweed
6063 msgid "Portability issues: \"getpgrp\" in perlport."
6064 msgstr ""
6065
6066 #. type: IX
6067 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6068 #: opensuse-leap-16-1 opensuse-tumbleweed
6069 #, no-wrap
6070 msgid "getppid"
6071 msgstr ""
6072
6073 #. type: IX
6074 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6075 #: opensuse-leap-16-1 opensuse-tumbleweed
6076 #, no-wrap
6077 msgid "getppid parent pid"
6078 msgstr ""
6079
6080 #. type: Plain text
6081 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6082 #: opensuse-leap-16-1 opensuse-tumbleweed
6083 msgid "Returns the process id of the parent process."
6084 msgstr ""
6085
6086 #. type: Plain text
6087 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6088 #: opensuse-leap-16-1 opensuse-tumbleweed
6089 msgid ""
6090 "Note for Linux users: Between v5.8.1 and v5.16.0 Perl would work around non-"
6091 "POSIX thread semantics the minority of Linux systems (and Debian GNU/"
6092 "kFreeBSD systems) that used LinuxThreads, this emulation has since been "
6093 "removed. See the documentation for $$ for details."
6094 msgstr ""
6095
6096 #. type: Plain text
6097 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6098 #: opensuse-leap-16-1 opensuse-tumbleweed
6099 msgid "Portability issues: \"getppid\" in perlport."
6100 msgstr ""
6101
6102 #. type: IX
6103 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6104 #: opensuse-leap-16-1 opensuse-tumbleweed
6105 #, no-wrap
6106 msgid "getpriority WHICH,WHO"
6107 msgstr ""
6108
6109 #. type: IX
6110 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6111 #: opensuse-leap-16-1 opensuse-tumbleweed
6112 #, no-wrap
6113 msgid "getpriority priority nice"
6114 msgstr ""
6115
6116 #. type: Plain text
6117 #: debian-trixie debian-unstable
6118 msgid ""
6119 "Returns the current priority for a process, a process group, or a user. "
6120 "(See B<getpriority>\\|(2).) Will raise a fatal exception if used on a "
6121 "machine that doesn't implement B<getpriority>\\|(2)."
6122 msgstr ""
6123
6124 #. type: Plain text
6125 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6126 #: opensuse-leap-16-1 opensuse-tumbleweed
6127 msgid ""
6128 "\\&CW<\\*(C`WHICH\\*(C'> can be any of CW<\\*(C`PRIO_PROCESS\\*(C'>, "
6129 "CW<\\*(C`PRIO_PGRP\\*(C'> or CW<\\*(C`PRIO_USER\\*(C'> imported from "
6130 "\"RESOURCE CONSTANTS\" in POSIX."
6131 msgstr ""
6132
6133 #. type: Plain text
6134 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6135 #: opensuse-leap-16-1 opensuse-tumbleweed
6136 msgid "Portability issues: \"getpriority\" in perlport."
6137 msgstr ""
6138
6139 #. type: IX
6140 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6141 #: opensuse-leap-16-1 opensuse-tumbleweed
6142 #, no-wrap
6143 msgid "getpwnam NAME"
6144 msgstr ""
6145
6146 #. type: IX
6147 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6148 #: opensuse-leap-16-1 opensuse-tumbleweed
6149 #, no-wrap
6150 msgid "getpwnam getgrnam gethostbyname getnetbyname getprotobyname getpwuid getgrgid getservbyname gethostbyaddr getnetbyaddr getprotobynumber getservbyport getpwent getgrent gethostent getnetent getprotoent getservent setpwent setgrent sethostent setnetent setprotoent setservent endpwent endgrent endhostent endnetent endprotoent endservent"
6151 msgstr ""
6152
6153 #. type: IX
6154 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6155 #: opensuse-leap-16-1 opensuse-tumbleweed
6156 #, no-wrap
6157 msgid "getgrnam NAME"
6158 msgstr ""
6159
6160 #. type: IX
6161 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6162 #: opensuse-leap-16-1 opensuse-tumbleweed
6163 #, no-wrap
6164 msgid "gethostbyname NAME"
6165 msgstr ""
6166
6167 #. type: IX
6168 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6169 #: opensuse-leap-16-1 opensuse-tumbleweed
6170 #, no-wrap
6171 msgid "getnetbyname NAME"
6172 msgstr ""
6173
6174 #. type: IX
6175 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6176 #: opensuse-leap-16-1 opensuse-tumbleweed
6177 #, no-wrap
6178 msgid "getprotobyname NAME"
6179 msgstr ""
6180
6181 #. type: IX
6182 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6183 #: opensuse-leap-16-1 opensuse-tumbleweed
6184 #, no-wrap
6185 msgid "getpwuid UID"
6186 msgstr ""
6187
6188 #. type: IX
6189 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6190 #: opensuse-leap-16-1 opensuse-tumbleweed
6191 #, no-wrap
6192 msgid "getgrgid GID"
6193 msgstr ""
6194
6195 #. type: IX
6196 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6197 #: opensuse-leap-16-1 opensuse-tumbleweed
6198 #, no-wrap
6199 msgid "getservbyname NAME,PROTO"
6200 msgstr ""
6201
6202 #. type: IX
6203 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6204 #: opensuse-leap-16-1 opensuse-tumbleweed
6205 #, no-wrap
6206 msgid "gethostbyaddr ADDR,ADDRTYPE"
6207 msgstr ""
6208
6209 #. type: IX
6210 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6211 #: opensuse-leap-16-1 opensuse-tumbleweed
6212 #, no-wrap
6213 msgid "getnetbyaddr ADDR,ADDRTYPE"
6214 msgstr ""
6215
6216 #. type: IX
6217 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6218 #: opensuse-leap-16-1 opensuse-tumbleweed
6219 #, no-wrap
6220 msgid "getprotobynumber NUMBER"
6221 msgstr ""
6222
6223 #. type: IX
6224 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6225 #: opensuse-leap-16-1 opensuse-tumbleweed
6226 #, no-wrap
6227 msgid "getservbyport PORT,PROTO"
6228 msgstr ""
6229
6230 #. type: IX
6231 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6232 #: opensuse-leap-16-1 opensuse-tumbleweed
6233 #, no-wrap
6234 msgid "getpwent"
6235 msgstr ""
6236
6237 #. type: IX
6238 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6239 #: opensuse-leap-16-1 opensuse-tumbleweed
6240 #, no-wrap
6241 msgid "getgrent"
6242 msgstr ""
6243
6244 #. type: IX
6245 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6246 #: opensuse-leap-16-1 opensuse-tumbleweed
6247 #, no-wrap
6248 msgid "gethostent"
6249 msgstr ""
6250
6251 #. type: IX
6252 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6253 #: opensuse-leap-16-1 opensuse-tumbleweed
6254 #, no-wrap
6255 msgid "getnetent"
6256 msgstr ""
6257
6258 #. type: IX
6259 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6260 #: opensuse-leap-16-1 opensuse-tumbleweed
6261 #, no-wrap
6262 msgid "getprotoent"
6263 msgstr ""
6264
6265 #. type: IX
6266 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6267 #: opensuse-leap-16-1 opensuse-tumbleweed
6268 #, no-wrap
6269 msgid "getservent"
6270 msgstr ""
6271
6272 #. type: IX
6273 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6274 #: opensuse-leap-16-1 opensuse-tumbleweed
6275 #, no-wrap
6276 msgid "setpwent"
6277 msgstr ""
6278
6279 #. type: IX
6280 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6281 #: opensuse-leap-16-1 opensuse-tumbleweed
6282 #, no-wrap
6283 msgid "setgrent"
6284 msgstr ""
6285
6286 #. type: IX
6287 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6288 #: opensuse-leap-16-1 opensuse-tumbleweed
6289 #, no-wrap
6290 msgid "sethostent STAYOPEN"
6291 msgstr ""
6292
6293 #. type: IX
6294 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6295 #: opensuse-leap-16-1 opensuse-tumbleweed
6296 #, no-wrap
6297 msgid "setnetent STAYOPEN"
6298 msgstr ""
6299
6300 #. type: IX
6301 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6302 #: opensuse-leap-16-1 opensuse-tumbleweed
6303 #, no-wrap
6304 msgid "setprotoent STAYOPEN"
6305 msgstr ""
6306
6307 #. type: IX
6308 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6309 #: opensuse-leap-16-1 opensuse-tumbleweed
6310 #, no-wrap
6311 msgid "setservent STAYOPEN"
6312 msgstr ""
6313
6314 #. type: IX
6315 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6316 #: opensuse-leap-16-1 opensuse-tumbleweed
6317 #, no-wrap
6318 msgid "endpwent"
6319 msgstr ""
6320
6321 #. type: IX
6322 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6323 #: opensuse-leap-16-1 opensuse-tumbleweed
6324 #, no-wrap
6325 msgid "endgrent"
6326 msgstr ""
6327
6328 #. type: IX
6329 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6330 #: opensuse-leap-16-1 opensuse-tumbleweed
6331 #, no-wrap
6332 msgid "endhostent"
6333 msgstr ""
6334
6335 #. type: IX
6336 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6337 #: opensuse-leap-16-1 opensuse-tumbleweed
6338 #, no-wrap
6339 msgid "endnetent"
6340 msgstr ""
6341
6342 #. type: IX
6343 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6344 #: opensuse-leap-16-1 opensuse-tumbleweed
6345 #, no-wrap
6346 msgid "endprotoent"
6347 msgstr ""
6348
6349 #. type: IX
6350 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6351 #: opensuse-leap-16-1 opensuse-tumbleweed
6352 #, no-wrap
6353 msgid "endservent"
6354 msgstr ""
6355
6356 #. type: Plain text
6357 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6358 #: opensuse-leap-16-1 opensuse-tumbleweed
6359 msgid ""
6360 "These routines are the same as their counterparts in the system C library. "
6361 "In list context, the return values from the various get routines are as "
6362 "follows:"
6363 msgstr ""
6364
6365 #. type: Plain text
6366 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6367 #: opensuse-leap-16-1 opensuse-tumbleweed
6368 #, no-wrap
6369 msgid ""
6370 "\\& # 0 1 2 3 4\n"
6371 "\\& my ( $name, $passwd, $gid, $members ) = getgr*\n"
6372 "\\& my ( $name, $aliases, $addrtype, $net ) = getnet*\n"
6373 "\\& my ( $name, $aliases, $port, $proto ) = getserv*\n"
6374 "\\& my ( $name, $aliases, $proto ) = getproto*\n"
6375 "\\& my ( $name, $aliases, $addrtype, $length, @addrs ) = gethost*\n"
6376 "\\& my ( $name, $passwd, $uid, $gid, $quota,\n"
6377 "\\& $comment, $gcos, $dir, $shell, $expire ) = getpw*\n"
6378 "\\& # 5 6 7 8 9\n"
6379 msgstr ""
6380
6381 #. type: Plain text
6382 #: debian-trixie debian-unstable
6383 msgid ""
6384 "(If the entry doesn't exist, the return value is a single meaningless true "
6385 "value.)"
6386 msgstr ""
6387
6388 #. type: Plain text
6389 #: debian-trixie debian-unstable
6390 msgid ""
6391 "The exact meaning of the CW<$gcos> field varies but it usually contains the "
6392 "real name of the user (as opposed to the login name) and other information "
6393 "pertaining to the user. Beware, however, that in many system users are able "
6394 "to change this information and therefore it cannot be trusted and therefore "
6395 "the CW<$gcos> is tainted (see perlsec). The CW<$passwd> and CW<$shell>, "
6396 "user's encrypted password and login shell, are also tainted, for the same "
6397 "reason."
6398 msgstr ""
6399
6400 #. type: Plain text
6401 #: debian-trixie debian-unstable
6402 msgid ""
6403 "In scalar context, you get the name, unless the function was a lookup by "
6404 "name, in which case you get the other thing, whatever it is. (If the entry "
6405 "doesn't exist you get the undefined value.) For example:"
6406 msgstr ""
6407
6408 #. type: Plain text
6409 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6410 #: opensuse-leap-16-1 opensuse-tumbleweed
6411 #, no-wrap
6412 msgid ""
6413 "\\& my $uid = getpwnam($name);\n"
6414 "\\& my $name = getpwuid($num);\n"
6415 "\\& my $name = getpwent();\n"
6416 "\\& my $gid = getgrnam($name);\n"
6417 "\\& my $name = getgrgid($num);\n"
6418 "\\& my $name = getgrent();\n"
6419 "\\& # etc.\n"
6420 msgstr ""
6421
6422 #. type: Plain text
6423 #: debian-trixie debian-unstable
6424 msgid ""
6425 "In I<getpw*()> the fields CW<$quota>, CW<$comment>, and CW<$expire> are "
6426 "special in that they are unsupported on many systems. If the \\&CW<$quota> "
6427 "is unsupported, it is an empty scalar. If it is supported, it usually "
6428 "encodes the disk quota. If the CW<$comment> field is unsupported, it is an "
6429 "empty scalar. If it is supported it usually encodes some administrative "
6430 "comment about the user. In some systems the CW<$quota> field may be "
6431 "CW<$change> or CW<$age>, fields that have to do with password aging. In "
6432 "some systems the CW<$comment> field may be CW<$class>. The CW<$expire> "
6433 "field, if present, encodes the expiration period of the account or the "
6434 "password. For the availability and the exact meaning of these fields in "
6435 "your system, please consult B<getpwnam>\\|(3) and your system's \\&I<pwd.h> "
6436 "file. You can also find out from within Perl what your \\&CW<$quota> and "
6437 "CW<$comment> fields mean and whether you have the CW<$expire> field by using "
6438 "the CW<\\*(C`Config\\*(C'> module and the values CW<\\*(C`d_pwquota\\*(C'>, "
6439 "CW<\\*(C`d_pwage\\*(C'>, \\&CW<\\*(C`d_pwchange\\*(C'>, "
6440 "CW<\\*(C`d_pwcomment\\*(C'>, and CW<\\*(C`d_pwexpire\\*(C'>. Shadow "
6441 "password files are supported only if your vendor has implemented them in the "
6442 "intuitive fashion that calling the regular C library routines gets the "
6443 "shadow versions if you're running under privilege or if there exists the "
6444 "B<shadow>\\|(3) functions as found in System V (this includes Solaris and "
6445 "Linux). Those systems that implement a proprietary shadow password facility "
6446 "are unlikely to be supported."
6447 msgstr ""
6448
6449 #. type: Plain text
6450 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6451 #: opensuse-leap-16-1 opensuse-tumbleweed
6452 msgid ""
6453 "The CW<$members> value returned by I<getgr*()> is a space-separated list of "
6454 "the login names of the members of the group."
6455 msgstr ""
6456
6457 #. type: Plain text
6458 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6459 #: opensuse-leap-16-1 opensuse-tumbleweed
6460 msgid ""
6461 "For the I<gethost*()> functions, if the CW<\\*(C`h_errno\\*(C'> variable is "
6462 "supported in C, it will be returned to you via CW<$?> if the function call "
6463 "fails. The \\&CW<@addrs> value returned by a successful call is a list of "
6464 "raw addresses returned by the corresponding library call. In the Internet "
6465 "domain, each address is four bytes long; you can unpack it by saying "
6466 "something like:"
6467 msgstr ""
6468
6469 #. type: Plain text
6470 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6471 #: opensuse-leap-16-1 opensuse-tumbleweed
6472 #, no-wrap
6473 msgid "\\& my ($w,$x,$y,$z) = unpack(\\*(AqW4\\*(Aq,$addr[0]);\n"
6474 msgstr ""
6475
6476 #. type: Plain text
6477 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6478 #: opensuse-leap-16-1 opensuse-tumbleweed
6479 msgid "The Socket library makes this slightly easier:"
6480 msgstr ""
6481
6482 #. type: Plain text
6483 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6484 #: opensuse-leap-16-1 opensuse-tumbleweed
6485 #, no-wrap
6486 msgid ""
6487 "\\& use Socket;\n"
6488 "\\& my $iaddr = inet_aton(\"127.1\"); # or whatever address\n"
6489 "\\& my $name = gethostbyaddr($iaddr, AF_INET);\n"
6490 "\\&\n"
6491 "\\& # or going the other way\n"
6492 "\\& my $straddr = inet_ntoa($iaddr);\n"
6493 msgstr ""
6494
6495 #. type: Plain text
6496 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6497 #: opensuse-leap-16-1 opensuse-tumbleweed
6498 msgid ""
6499 "In the opposite way, to resolve a hostname to the IP address you can write "
6500 "this:"
6501 msgstr ""
6502
6503 #. type: Plain text
6504 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6505 #: opensuse-leap-16-1 opensuse-tumbleweed
6506 #, no-wrap
6507 msgid ""
6508 "\\& use Socket;\n"
6509 "\\& my $packed_ip = gethostbyname(\"www.perl.org\");\n"
6510 "\\& my $ip_address;\n"
6511 "\\& if (defined $packed_ip) {\n"
6512 "\\& $ip_address = inet_ntoa($packed_ip);\n"
6513 "\\& }\n"
6514 msgstr ""
6515
6516 #. type: Plain text
6517 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6518 #: opensuse-leap-16-1 opensuse-tumbleweed
6519 msgid ""
6520 "Make sure CW<\\*(C`gethostbyname\\*(C'> is called in SCALAR context and that "
6521 "its return value is checked for definedness."
6522 msgstr ""
6523
6524 #. type: Plain text
6525 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6526 #: opensuse-leap-16-1 opensuse-tumbleweed
6527 msgid ""
6528 "The CW<\\*(C`getprotobynumber\\*(C'> function, even though it only takes one "
6529 "argument, has the precedence of a list operator, so beware:"
6530 msgstr ""
6531
6532 #. type: Plain text
6533 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6534 #: opensuse-leap-16-1 opensuse-tumbleweed
6535 #, no-wrap
6536 msgid ""
6537 "\\& getprotobynumber $number eq \\*(Aqicmp\\*(Aq # WRONG\n"
6538 "\\& getprotobynumber($number eq \\*(Aqicmp\\*(Aq) # actually means this\n"
6539 "\\& getprotobynumber($number) eq \\*(Aqicmp\\*(Aq # better this way\n"
6540 msgstr ""
6541
6542 #. type: Plain text
6543 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6544 #: opensuse-leap-16-1 opensuse-tumbleweed
6545 msgid ""
6546 "If you get tired of remembering which element of the return list contains "
6547 "which return value, by-name interfaces are provided in standard modules: "
6548 "CW<\\*(C`File::stat\\*(C'>, CW<\\*(C`Net::hostent\\*(C'>, "
6549 "\\&CW<\\*(C`Net::netent\\*(C'>, CW<\\*(C`Net::protoent\\*(C'>, "
6550 "\\&CW<\\*(C`Net::servent\\*(C'>, CW<\\*(C`Time::gmtime\\*(C'>, "
6551 "\\&CW<\\*(C`Time::localtime\\*(C'>, and \\&CW<\\*(C`User::grent\\*(C'>. "
6552 "These override the normal built-ins, supplying versions that return objects "
6553 "with the appropriate names for each field. For example:"
6554 msgstr ""
6555
6556 #. type: Plain text
6557 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6558 #: opensuse-leap-16-1 opensuse-tumbleweed
6559 #, no-wrap
6560 msgid ""
6561 "\\& use File::stat;\n"
6562 "\\& use User::pwent;\n"
6563 "\\& my $is_theirs = (stat($filename)-E<gt>uid == getpwnam($whoever)-E<gt>uid);\n"
6564 msgstr ""
6565
6566 #. type: Plain text
6567 #: debian-trixie debian-unstable
6568 msgid ""
6569 "Even though it looks as though they're the same method calls (uid), they "
6570 "aren't, because a CW<\\*(C`File::stat\\*(C'> object is different from a "
6571 "CW<\\*(C`User::pwent\\*(C'> object."
6572 msgstr ""
6573
6574 #. type: Plain text
6575 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6576 #: opensuse-leap-16-1 opensuse-tumbleweed
6577 msgid ""
6578 "Many of these functions are not safe in a multi-threaded environment where "
6579 "more than one thread can be using them. In particular, functions like "
6580 "CW<getpwent()> iterate per-process and not per-thread, so if two threads are "
6581 "simultaneously iterating, neither will get all the records."
6582 msgstr ""
6583
6584 #. type: Plain text
6585 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6586 #: opensuse-leap-16-1 opensuse-tumbleweed
6587 msgid ""
6588 "Some systems have thread-safe versions of some of the functions, such as "
6589 "\\&CW<getpwnam_r()> instead of CW<getpwnam()>. There, Perl automatically "
6590 "and invisibly substitutes the thread-safe version, without notice. This "
6591 "means that code that safely runs on some systems can fail on others that "
6592 "lack the thread-safe versions."
6593 msgstr ""
6594
6595 #. type: Plain text
6596 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6597 #: opensuse-leap-16-1 opensuse-tumbleweed
6598 msgid ""
6599 "Portability issues: \"getpwnam\" in perlport to \"endservent\" in perlport."
6600 msgstr ""
6601
6602 #. type: IX
6603 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6604 #: opensuse-leap-16-1 opensuse-tumbleweed
6605 #, no-wrap
6606 msgid "getsockname SOCKET"
6607 msgstr ""
6608
6609 #. type: IX
6610 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6611 #: opensuse-leap-16-1 opensuse-tumbleweed
6612 #, no-wrap
6613 msgid "getsockname"
6614 msgstr ""
6615
6616 #. type: Plain text
6617 #: debian-trixie debian-unstable
6618 msgid ""
6619 "Returns the packed sockaddr address of this end of the SOCKET connection, in "
6620 "case you don't know the address because you have several different IPs that "
6621 "the connection might have come in on."
6622 msgstr ""
6623
6624 #. type: Plain text
6625 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6626 #: opensuse-leap-16-1 opensuse-tumbleweed
6627 #, no-wrap
6628 msgid ""
6629 "\\& use Socket;\n"
6630 "\\& my $mysockaddr = getsockname($sock);\n"
6631 "\\& my ($port, $myaddr) = sockaddr_in($mysockaddr);\n"
6632 "\\& printf \"Connect to %s [%s]\\en\",\n"
6633 "\\& scalar gethostbyaddr($myaddr, AF_INET),\n"
6634 "\\& inet_ntoa($myaddr);\n"
6635 msgstr ""
6636
6637 #. type: IX
6638 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6639 #: opensuse-leap-16-1 opensuse-tumbleweed
6640 #, no-wrap
6641 msgid "getsockopt SOCKET,LEVEL,OPTNAME"
6642 msgstr ""
6643
6644 #. type: IX
6645 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6646 #: opensuse-leap-16-1 opensuse-tumbleweed
6647 #, no-wrap
6648 msgid "getsockopt"
6649 msgstr ""
6650
6651 #. type: Plain text
6652 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6653 #: opensuse-leap-16-1 opensuse-tumbleweed
6654 msgid ""
6655 "Queries the option named OPTNAME associated with SOCKET at a given LEVEL. "
6656 "Options may exist at multiple protocol levels depending on the socket type, "
6657 "but at least the uppermost socket level SOL_SOCKET (defined in the "
6658 "\\&CW<\\*(C`Socket\\*(C'> module) will exist. To query options at another "
6659 "level the protocol number of the appropriate protocol controlling the option "
6660 "should be supplied. For example, to indicate that an option is to be "
6661 "interpreted by the TCP protocol, LEVEL should be set to the protocol number "
6662 "of TCP, which you can get using \\&CW<\\*(C`getprotobyname\\*(C'>."
6663 msgstr ""
6664
6665 #. type: Plain text
6666 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6667 #: opensuse-leap-16-1 opensuse-tumbleweed
6668 msgid ""
6669 "The function returns a packed string representing the requested socket "
6670 "option, or CW<\\*(C`undef\\*(C'> on error, with the reason for the error "
6671 "placed in CW<$!>. Just what is in the packed string depends on LEVEL and "
6672 "OPTNAME; consult B<getsockopt>\\|(2) for details. A common case is that the "
6673 "option is an integer, in which case the result is a packed integer, which "
6674 "you can decode using \\&CW<\\*(C`unpack\\*(C'> with the CW<\\*(C`i\\*(C'> "
6675 "(or CW<\\*(C`I\\*(C'>) format."
6676 msgstr ""
6677
6678 #. type: Plain text
6679 #: debian-trixie debian-unstable
6680 msgid ""
6681 "Here's an example to test whether Nagle's algorithm is enabled on a socket:"
6682 msgstr ""
6683
6684 #. type: Plain text
6685 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6686 #: opensuse-leap-16-1 opensuse-tumbleweed
6687 #, no-wrap
6688 msgid ""
6689 "\\& use Socket qw(:all);\n"
6690 "\\&\n"
6691 "\\& defined(my $tcp = getprotobyname(\"tcp\"))\n"
6692 "\\& or die \"Could not determine the protocol number for tcp\";\n"
6693 "\\& # my $tcp = IPPROTO_TCP; # Alternative\n"
6694 "\\& my $packed = getsockopt($socket, $tcp, TCP_NODELAY)\n"
6695 "\\& or die \"getsockopt TCP_NODELAY: $!\";\n"
6696 "\\& my $nodelay = unpack(\"I\", $packed);\n"
6697 "\\& print \"Nagle\\*(Aqs algorithm is turned \",\n"
6698 "\\& $nodelay ? \"off\\en\" : \"on\\en\";\n"
6699 msgstr ""
6700
6701 #. type: Plain text
6702 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6703 #: opensuse-leap-16-1 opensuse-tumbleweed
6704 msgid "Portability issues: \"getsockopt\" in perlport."
6705 msgstr ""
6706
6707 #. type: IX
6708 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6709 #: opensuse-leap-16-1 opensuse-tumbleweed
6710 #, no-wrap
6711 msgid "glob EXPR"
6712 msgstr ""
6713
6714 #. type: IX
6715 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6716 #: opensuse-leap-16-1 opensuse-tumbleweed
6717 #, no-wrap
6718 msgid "glob wildcard filename, expansion expand"
6719 msgstr ""
6720
6721 #. type: IX
6722 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6723 #: opensuse-leap-16-1 opensuse-tumbleweed
6724 #, no-wrap
6725 msgid "glob"
6726 msgstr ""
6727
6728 #. type: Plain text
6729 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6730 #: opensuse-leap-16-1 opensuse-tumbleweed
6731 msgid ""
6732 "In list context, returns a (possibly empty) list of filename expansions on "
6733 "the value of EXPR such as the Unix shell Bash would do. In scalar context, "
6734 "glob iterates through such filename expansions, returning "
6735 "\\&CW<\\*(C`undef\\*(C'> when the list is exhausted. If EXPR is omitted, "
6736 "\\&CW<$_> is used."
6737 msgstr ""
6738
6739 #. type: Plain text
6740 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6741 #: opensuse-leap-16-1 opensuse-tumbleweed
6742 #, no-wrap
6743 msgid ""
6744 "\\& # List context\n"
6745 "\\& my @txt_files = glob(\"*.txt\");\n"
6746 "\\& my @perl_files = glob(\"*.pl *.pm\");\n"
6747 "\\&\n"
6748 "\\& # Scalar context\n"
6749 "\\& while (my $file = glob(\"*.mp3\")) {\n"
6750 "\\& # Do stuff\n"
6751 "\\& }\n"
6752 msgstr ""
6753
6754 #. type: Plain text
6755 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6756 #: opensuse-leap-16-1 opensuse-tumbleweed
6757 msgid ""
6758 "Glob also supports an alternate syntax using CW<\\*(C`E<lt>\\*(C'> "
6759 "CW<\\*(C`E<gt>\\*(C'> as delimiters. While this syntax is supported, it is "
6760 "recommended that you use CW<\\*(C`glob\\*(C'> instead as it is more readable "
6761 "and searchable."
6762 msgstr ""
6763
6764 #. type: Plain text
6765 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6766 #: opensuse-leap-16-1 opensuse-tumbleweed
6767 #, no-wrap
6768 msgid "\\& my @txt_files = E<lt>\"*.txt\"E<gt>;\n"
6769 msgstr ""
6770
6771 #. type: Plain text
6772 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6773 #: opensuse-leap-16-1 opensuse-tumbleweed
6774 msgid ""
6775 "If you need case insensitive file globbing that can be achieved using the "
6776 "\\&CW<\\*(C`:nocase\\*(C'> parameter of the CW<\\*(C`bsd_glob\\*(C'> module."
6777 msgstr ""
6778
6779 #. type: Plain text
6780 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6781 #: opensuse-leap-16-1 opensuse-tumbleweed
6782 #, no-wrap
6783 msgid ""
6784 "\\& use File::Glob qw(:globally :nocase);\n"
6785 "\\&\n"
6786 "\\& my @txt = glob(\"readme*\"); # README readme.txt Readme.md\n"
6787 msgstr ""
6788
6789 #. type: Plain text
6790 #: debian-trixie debian-unstable
6791 msgid ""
6792 "Note that CW<\\*(C`glob\\*(C'> splits its arguments on whitespace and treats "
6793 "each segment as separate pattern. As such, CW<\\*(C`glob(\"*.c *.h\")"
6794 "\\*(C'> matches all files with a I<.c> or I<.h> extension. The expression "
6795 "\\&CW<\\*(C`glob(\".* *\")\\*(C'> matches all files in the current working "
6796 "directory. If you want to glob filenames that might contain whitespace, "
6797 "you'll have to use extra quotes around the spacey filename to protect it. "
6798 "For example, to glob filenames that have an CW<\\*(C`e\\*(C'> followed by a "
6799 "space followed by an CW<\\*(C`f\\*(C'>, use one of:"
6800 msgstr ""
6801
6802 #. type: Plain text
6803 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6804 #: opensuse-leap-16-1 opensuse-tumbleweed
6805 #, no-wrap
6806 msgid ""
6807 "\\& my @spacies = E<lt>\"*e f*\"E<gt>;\n"
6808 "\\& my @spacies = glob(\\*(Aq\"*e f*\"\\*(Aq);\n"
6809 "\\& my @spacies = glob(q(\"*e f*\"));\n"
6810 msgstr ""
6811
6812 #. type: Plain text
6813 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6814 #: opensuse-leap-16-1 opensuse-tumbleweed
6815 msgid "If you had to get a variable through, you could do this:"
6816 msgstr ""
6817
6818 #. type: Plain text
6819 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6820 #: opensuse-leap-16-1 opensuse-tumbleweed
6821 #, no-wrap
6822 msgid ""
6823 "\\& my @spacies = glob(\"\\*(Aq*${var}e f*\\*(Aq\");\n"
6824 "\\& my @spacies = glob(qq(\"*${var}e f*\"));\n"
6825 msgstr ""
6826
6827 #. type: Plain text
6828 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6829 #: opensuse-leap-16-1 opensuse-tumbleweed
6830 msgid ""
6831 "If non-empty braces are the only wildcard characters used in the "
6832 "\\&CW<\\*(C`glob\\*(C'>, no filenames are matched, but potentially many "
6833 "strings are returned. For example, this produces nine strings, one for each "
6834 "pairing of fruits and colors:"
6835 msgstr ""
6836
6837 #. type: Plain text
6838 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6839 #: opensuse-leap-16-1 opensuse-tumbleweed
6840 #, no-wrap
6841 msgid "\\& my @many = glob(\"{apple,tomato,cherry}={green,yellow,red}\");\n"
6842 msgstr ""
6843
6844 #. type: Plain text
6845 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6846 #: opensuse-leap-16-1 opensuse-tumbleweed
6847 msgid ""
6848 "This operator is implemented using the standard CW<\\*(C`File::Glob\\*(C'> "
6849 "extension. See CW<\\*(C`bsd_glob\\*(C'> for details, including "
6850 "\\&CW<\\*(C`bsd_glob\\*(C'>, which does not treat whitespace as a pattern "
6851 "separator."
6852 msgstr ""
6853
6854 #. type: Plain text
6855 #: debian-trixie debian-unstable
6856 msgid ""
6857 "If a CW<\\*(C`glob\\*(C'> expression is used as the condition of a "
6858 "CW<\\*(C`while\\*(C'> or CW<\\*(C`for\\*(C'> loop, then it will be "
6859 "implicitly assigned to CW<$_>. If either a CW<\\*(C`glob\\*(C'> expression "
6860 "or an explicit assignment of a CW<\\*(C`glob\\*(C'> expression to a scalar "
6861 "is used as a CW<\\*(C`while\\*(C'>/CW<\\*(C`for\\*(C'> condition, then the "
6862 "condition actually tests for definedness of the expression's value, not for "
6863 "its regular truth value."
6864 msgstr ""
6865
6866 #. type: Plain text
6867 #: debian-trixie debian-unstable
6868 msgid "Internal implemenation details:"
6869 msgstr ""
6870
6871 #. type: Plain text
6872 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6873 #: opensuse-leap-16-1 opensuse-tumbleweed
6874 msgid ""
6875 "This is the internal function implementing the CW<\\*(C`E<lt>*.cE<gt>\\*(C'> "
6876 "operator, but you can use it directly. The CW<\\*(C`E<lt>*.cE<gt>\\*(C'> "
6877 "operator is discussed in more detail in \"I/O Operators\" in perlop."
6878 msgstr ""
6879
6880 #. type: Plain text
6881 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6882 #: opensuse-leap-16-1 opensuse-tumbleweed
6883 msgid "Portability issues: \"glob\" in perlport."
6884 msgstr ""
6885
6886 #. type: IX
6887 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6888 #: opensuse-leap-16-1 opensuse-tumbleweed
6889 #, no-wrap
6890 msgid "gmtime EXPR"
6891 msgstr ""
6892
6893 #. type: IX
6894 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6895 #: opensuse-leap-16-1 opensuse-tumbleweed
6896 #, no-wrap
6897 msgid "gmtime UTC Greenwich"
6898 msgstr ""
6899
6900 #. type: IX
6901 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6902 #: opensuse-leap-16-1 opensuse-tumbleweed
6903 #, no-wrap
6904 msgid "gmtime"
6905 msgstr ""
6906
6907 #. type: Plain text
6908 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6909 #: opensuse-leap-16-1 opensuse-tumbleweed
6910 msgid ""
6911 "Works just like CW<\\*(C`localtime\\*(C'>, but the returned values are "
6912 "localized for the standard Greenwich time zone."
6913 msgstr ""
6914
6915 #. type: Plain text
6916 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6917 #: opensuse-leap-16-1 opensuse-tumbleweed
6918 msgid ""
6919 "Note: When called in list context, CW<$isdst>, the last value returned by "
6920 "gmtime, is always CW<0>. There is no Daylight Saving Time in GMT."
6921 msgstr ""
6922
6923 #. type: Plain text
6924 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6925 #: opensuse-leap-16-1 opensuse-tumbleweed
6926 msgid "Portability issues: \"gmtime\" in perlport."
6927 msgstr ""
6928
6929 #. type: IX
6930 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6931 #: opensuse-leap-16-1 opensuse-tumbleweed
6932 #, no-wrap
6933 msgid "goto LABEL"
6934 msgstr ""
6935
6936 #. type: IX
6937 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6938 #: opensuse-leap-16-1 opensuse-tumbleweed
6939 #, no-wrap
6940 msgid "goto jump jmp"
6941 msgstr ""
6942
6943 #. type: IX
6944 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6945 #: opensuse-leap-16-1 opensuse-tumbleweed
6946 #, no-wrap
6947 msgid "goto EXPR"
6948 msgstr ""
6949
6950 #. type: IX
6951 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6952 #: opensuse-leap-16-1 opensuse-tumbleweed
6953 #, no-wrap
6954 msgid "goto &NAME"
6955 msgstr ""
6956
6957 #. type: Plain text
6958 #: debian-trixie debian-unstable
6959 msgid ""
6960 "The CW<\\*(C`goto LABEL\\*(C'> form finds the statement labeled with LABEL "
6961 "and resumes execution there. It can't be used to get out of a block or "
6962 "subroutine given to CW<\\*(C`sort\\*(C'>. It can be used to go almost "
6963 "anywhere else within the dynamic scope, including out of subroutines, but "
6964 "it's usually better to use some other construct such as "
6965 "\\&CW<\\*(C`last\\*(C'> or CW<\\*(C`die\\*(C'>. The author of Perl has "
6966 "never felt the need to use this form of CW<\\*(C`goto\\*(C'> (in Perl, that "
6967 "is; C is another matter). (The difference is that C does not offer named "
6968 "loops combined with loop control. Perl does, and this replaces most "
6969 "structured uses of CW<\\*(C`goto\\*(C'> in other languages.)"
6970 msgstr ""
6971
6972 #. type: Plain text
6973 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6974 #: opensuse-leap-16-1 opensuse-tumbleweed
6975 msgid ""
6976 "The CW<\\*(C`goto EXPR\\*(C'> form expects to evaluate CW<\\*(C`EXPR\\*(C'> "
6977 "to a code reference or a label name. If it evaluates to a code reference, "
6978 "it will be handled like CW<\\*(C`goto &NAME\\*(C'>, below. This is "
6979 "especially useful for implementing tail recursion via CW<\\*(C`goto _\\|"
6980 "_SUB_\\|_\\*(C'>."
6981 msgstr ""
6982
6983 #. type: Plain text
6984 #: debian-trixie debian-unstable
6985 msgid ""
6986 "If the expression evaluates to a label name, its scope will be resolved "
6987 "dynamically. This allows for computed CW<\\*(C`goto\\*(C'>s per FORTRAN, "
6988 "but isn't necessarily recommended if you're optimizing for maintainability:"
6989 msgstr ""
6990
6991 #. type: Plain text
6992 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
6993 #: opensuse-leap-16-1 opensuse-tumbleweed
6994 #, no-wrap
6995 msgid "\\& goto (\"FOO\", \"BAR\", \"GLARCH\")[$i];\n"
6996 msgstr ""
6997
6998 #. type: Plain text
6999 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7000 #: opensuse-leap-16-1 opensuse-tumbleweed
7001 msgid ""
7002 "As shown in this example, CW<\\*(C`goto EXPR\\*(C'> is exempt from the "
7003 "\"looks like a function\" rule. A pair of parentheses following it does not "
7004 "(necessarily) delimit its argument. CW<\\*(C`goto(\"NE\").\"XT\"\\*(C'> is "
7005 "equivalent to CW<\\*(C`goto NEXT\\*(C'>. Also, unlike most named operators, "
7006 "this has the same precedence as assignment."
7007 msgstr ""
7008
7009 #. type: Plain text
7010 #: debian-trixie debian-unstable
7011 msgid ""
7012 "Use of CW<\\*(C`goto LABEL\\*(C'> or CW<\\*(C`goto EXPR\\*(C'> to jump into "
7013 "a construct is deprecated and will issue a warning; it will become a fatal "
7014 "error in Perl 5.42. While still available, it may not be used to go into any "
7015 "construct that requires initialization, such as a subroutine, a "
7016 "CW<\\*(C`foreach\\*(C'> loop, or a CW<\\*(C`given\\*(C'> block. In general, "
7017 "it may not be used to jump into the parameter of a binary or list operator, "
7018 "but it may be used to jump into the \\&I<first> parameter of a binary "
7019 "operator. (The CW<\\*(C`=\\*(C'> assignment operator's \"first\" operand is "
7020 "its right-hand operand.) It also can't be used to go into a construct that "
7021 "is optimized away."
7022 msgstr ""
7023
7024 #. type: Plain text
7025 #: debian-trixie debian-unstable
7026 msgid ""
7027 "The CW<\\*(C`goto &NAME\\*(C'> form is quite different from the other forms "
7028 "of \\&CW<\\*(C`goto\\*(C'>. In fact, it isn't a goto in the normal sense at "
7029 "all, and doesn't have the stigma associated with other gotos. Instead, it "
7030 "exits the current subroutine (losing any changes set by "
7031 "\\&CW<\\*(C`local\\*(C'>) and immediately calls in its place the named "
7032 "subroutine using the current value of CW<@_>. This is used by "
7033 "CW<\\*(C`AUTOLOAD\\*(C'> subroutines that wish to load another subroutine "
7034 "and then pretend that the other subroutine had been called in the first "
7035 "place (except that any modifications to CW<@_> in the current subroutine are "
7036 "propagated to the other subroutine.) After the \\&CW<\\*(C`goto\\*(C'>, not "
7037 "even CW<\\*(C`caller\\*(C'> will be able to tell that this routine was "
7038 "called first."
7039 msgstr ""
7040
7041 #. type: Plain text
7042 #: debian-trixie debian-unstable
7043 msgid ""
7044 "NAME needn't be the name of a subroutine; it can be a scalar variable "
7045 "containing a code reference or a block that evaluates to a code reference."
7046 msgstr ""
7047
7048 #. type: IX
7049 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7050 #: opensuse-leap-16-1 opensuse-tumbleweed
7051 #, no-wrap
7052 msgid "grep BLOCK LIST"
7053 msgstr ""
7054
7055 #. type: IX
7056 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7057 #: opensuse-leap-16-1 opensuse-tumbleweed
7058 #, no-wrap
7059 msgid "grep"
7060 msgstr ""
7061
7062 #. type: IX
7063 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7064 #: opensuse-leap-16-1 opensuse-tumbleweed
7065 #, no-wrap
7066 msgid "grep EXPR,LIST"
7067 msgstr ""
7068
7069 #. type: Plain text
7070 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7071 #: opensuse-leap-16-1 opensuse-tumbleweed
7072 msgid ""
7073 "This is similar in spirit to, but not the same as, B<grep>\\|(1) and its "
7074 "relatives. In particular, it is not limited to using regular expressions."
7075 msgstr ""
7076
7077 #. type: Plain text
7078 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7079 #: opensuse-leap-16-1 opensuse-tumbleweed
7080 msgid ""
7081 "Evaluates the BLOCK or EXPR for each element of LIST (locally setting "
7082 "\\&CW<$_> to each element) and returns the list value consisting of those "
7083 "elements for which the expression evaluated to true. In scalar context, "
7084 "returns the number of times the expression was true."
7085 msgstr ""
7086
7087 #. type: Plain text
7088 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7089 #: opensuse-leap-16-1 opensuse-tumbleweed
7090 #, no-wrap
7091 msgid "\\& my @foo = grep(!/^#/, @bar); # weed out comments\n"
7092 msgstr ""
7093
7094 #. type: Plain text
7095 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7096 #: opensuse-leap-16-1 opensuse-tumbleweed
7097 msgid "or equivalently,"
7098 msgstr ""
7099
7100 #. type: Plain text
7101 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7102 #: opensuse-leap-16-1 opensuse-tumbleweed
7103 #, no-wrap
7104 msgid "\\& my @foo = grep {!/^#/} @bar; # weed out comments\n"
7105 msgstr ""
7106
7107 #. type: Plain text
7108 #: debian-trixie debian-unstable
7109 msgid ""
7110 "Note that CW<$_> is an alias to the list value, so it can be used to modify "
7111 "the elements of the LIST. While this is useful and supported, it can cause "
7112 "bizarre results if the elements of LIST are not variables. Similarly, grep "
7113 "returns aliases into the original list, much as a for loop's index variable "
7114 "aliases the list elements. That is, modifying an element of a list returned "
7115 "by grep (for example, in a CW<\\*(C`foreach\\*(C'>, \\&CW<\\*(C`map\\*(C'> "
7116 "or another CW<\\*(C`grep\\*(C'>) actually modifies the element in the "
7117 "original list. This is usually something to be avoided when writing clear "
7118 "code."
7119 msgstr ""
7120
7121 #. type: Plain text
7122 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7123 #: opensuse-leap-16-1 opensuse-tumbleweed
7124 msgid ""
7125 "See also CW<\\*(C`map\\*(C'> for a list composed of the results of the BLOCK "
7126 "or EXPR."
7127 msgstr ""
7128
7129 #. type: IX
7130 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7131 #: opensuse-leap-16-1 opensuse-tumbleweed
7132 #, no-wrap
7133 msgid "hex EXPR"
7134 msgstr ""
7135
7136 #. type: IX
7137 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7138 #: opensuse-leap-16-1 opensuse-tumbleweed
7139 #, no-wrap
7140 msgid "hex hexadecimal"
7141 msgstr ""
7142
7143 #. type: IX
7144 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7145 #: opensuse-leap-16-1 opensuse-tumbleweed
7146 #, no-wrap
7147 msgid "hex"
7148 msgstr ""
7149
7150 #. type: Plain text
7151 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7152 #: opensuse-leap-16-1 opensuse-tumbleweed
7153 msgid ""
7154 "Interprets EXPR as a hex string and returns the corresponding numeric "
7155 "value. If EXPR is omitted, uses CW<$_>."
7156 msgstr ""
7157
7158 #. type: Plain text
7159 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7160 #: opensuse-leap-16-1 opensuse-tumbleweed
7161 #, no-wrap
7162 msgid ""
7163 "\\& print hex \\*(Aq0xAf\\*(Aq; # prints \\*(Aq175\\*(Aq\n"
7164 "\\& print hex \\*(AqaF\\*(Aq; # same\n"
7165 "\\& $valid_input =~ /\\eA(?:0?[xX])?(?:_?[0-9a-fA-F])*\\ez/\n"
7166 msgstr ""
7167
7168 #. type: Plain text
7169 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7170 #: opensuse-leap-16-1 opensuse-tumbleweed
7171 msgid ""
7172 "A hex string consists of hex digits and an optional CW<\\*(C`0x\\*(C'> or "
7173 "CW<\\*(C`x\\*(C'> prefix. Each hex digit may be preceded by a single "
7174 "underscore, which will be ignored. Any other character triggers a warning "
7175 "and causes the rest of the string to be ignored (even leading whitespace, "
7176 "unlike CW<\\*(C`oct\\*(C'>). Only integers can be represented, and integer "
7177 "overflow triggers a warning."
7178 msgstr ""
7179
7180 #. type: Plain text
7181 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7182 #: opensuse-leap-16-1 opensuse-tumbleweed
7183 msgid ""
7184 "To convert strings that might start with any of CW<0>, CW<\\*(C`0x\\*(C'>, "
7185 "or CW<\\*(C`0b\\*(C'>, see CW<\\*(C`oct\\*(C'>. To present something as "
7186 "hex, look into \\&CW<\\*(C`printf\\*(C'>, \\&CW<\\*(C`sprintf\\*(C'>, and "
7187 "\\&CW<\\*(C`unpack\\*(C'>."
7188 msgstr ""
7189
7190 #. type: IX
7191 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7192 #: opensuse-leap-16-1 opensuse-tumbleweed
7193 #, no-wrap
7194 msgid "import LIST"
7195 msgstr ""
7196
7197 #. type: IX
7198 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7199 #: opensuse-leap-16-1 opensuse-tumbleweed
7200 #, no-wrap
7201 msgid "import"
7202 msgstr ""
7203
7204 #. type: Plain text
7205 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7206 #: opensuse-leap-16-1 opensuse-tumbleweed
7207 msgid ""
7208 "There is no builtin CW<\\*(C`import\\*(C'> function. It is just an ordinary "
7209 "method (subroutine) defined (or inherited) by modules that wish to export "
7210 "names to another module. The \\&CW<\\*(C`use\\*(C'> function calls the "
7211 "\\&CW<\\*(C`import\\*(C'> method for the package used. See also "
7212 "\\&CW<\\*(C`use\\*(C'>, perlmod, and Exporter."
7213 msgstr ""
7214
7215 #. type: IX
7216 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7217 #: opensuse-leap-16-1 opensuse-tumbleweed
7218 #, no-wrap
7219 msgid "index STR,SUBSTR,POSITION"
7220 msgstr ""
7221
7222 #. type: IX
7223 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7224 #: opensuse-leap-16-1 opensuse-tumbleweed
7225 #, no-wrap
7226 msgid "index indexOf InStr"
7227 msgstr ""
7228
7229 #. type: IX
7230 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7231 #: opensuse-leap-16-1 opensuse-tumbleweed
7232 #, no-wrap
7233 msgid "index STR,SUBSTR"
7234 msgstr ""
7235
7236 #. type: Plain text
7237 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7238 #: opensuse-leap-16-1 opensuse-tumbleweed
7239 msgid ""
7240 "The index function searches for one string within another, but without the "
7241 "wildcard-like behavior of a full regular-expression pattern match. It "
7242 "returns the position of the first occurrence of SUBSTR in STR at or after "
7243 "POSITION. If POSITION is omitted, starts searching from the beginning of "
7244 "the string. POSITION before the beginning of the string or after its end is "
7245 "treated as if it were the beginning or the end, respectively. POSITION and "
7246 "the return value are based at zero. If the substring is not found, "
7247 "CW<\\*(C`index\\*(C'> returns -1."
7248 msgstr ""
7249
7250 #. type: Plain text
7251 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7252 #: opensuse-leap-16-1 opensuse-tumbleweed
7253 msgid "Find characters or strings:"
7254 msgstr ""
7255
7256 #. type: Plain text
7257 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7258 #: opensuse-leap-16-1 opensuse-tumbleweed
7259 #, no-wrap
7260 msgid ""
7261 "\\& index(\"Perl is great\", \"P\"); # Returns 0\n"
7262 "\\& index(\"Perl is great\", \"g\"); # Returns 8\n"
7263 "\\& index(\"Perl is great\", \"great\"); # Also returns 8\n"
7264 msgstr ""
7265
7266 #. type: Plain text
7267 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7268 #: opensuse-leap-16-1 opensuse-tumbleweed
7269 msgid "Attempting to find something not there:"
7270 msgstr ""
7271
7272 #. type: Plain text
7273 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7274 #: opensuse-leap-16-1 opensuse-tumbleweed
7275 #, no-wrap
7276 msgid "\\& index(\"Perl is great\", \"Z\"); # Returns -1 (not found)\n"
7277 msgstr ""
7278
7279 #. type: Plain text
7280 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7281 #: opensuse-leap-16-1 opensuse-tumbleweed
7282 msgid "Using an offset to find the I<second> occurrence:"
7283 msgstr ""
7284
7285 #. type: Plain text
7286 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7287 #: opensuse-leap-16-1 opensuse-tumbleweed
7288 #, no-wrap
7289 msgid "\\& index(\"Perl is great\", \"e\", 5); # Returns 10\n"
7290 msgstr ""
7291
7292 #. type: IX
7293 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7294 #: opensuse-leap-16-1 opensuse-tumbleweed
7295 #, no-wrap
7296 msgid "int EXPR"
7297 msgstr ""
7298
7299 #. type: IX
7300 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7301 #: opensuse-leap-16-1 opensuse-tumbleweed
7302 #, no-wrap
7303 msgid "int integer truncate trunc floor"
7304 msgstr ""
7305
7306 #. type: IX
7307 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7308 #: opensuse-leap-16-1 opensuse-tumbleweed
7309 #, no-wrap
7310 msgid "int"
7311 msgstr ""
7312
7313 #. type: Plain text
7314 #: debian-trixie debian-unstable
7315 msgid ""
7316 "Returns the integer portion of EXPR. If EXPR is omitted, uses \\&CW<$_>. "
7317 "You should not use this function for rounding: one because it truncates "
7318 "towards CW<0>, and two because machine representations of floating-point "
7319 "numbers can sometimes produce counterintuitive results. For example, "
7320 "\\&CW<int(-6.725/0.025)> produces -268 rather than the correct -269; that's "
7321 "because it's really more like -268.99999999999994315658 instead. Usually, "
7322 "the CW<\\*(C`sprintf\\*(C'>, \\&CW<\\*(C`printf\\*(C'>, or the "
7323 "\\&CW<\\*(C`POSIX::floor\\*(C'> and CW<\\*(C`POSIX::ceil\\*(C'> functions "
7324 "will serve you better than will CW<\\*(C`int\\*(C'>."
7325 msgstr ""
7326
7327 #. type: IX
7328 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7329 #: opensuse-leap-16-1 opensuse-tumbleweed
7330 #, no-wrap
7331 msgid "ioctl FILEHANDLE,FUNCTION,SCALAR"
7332 msgstr ""
7333
7334 #. type: IX
7335 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7336 #: opensuse-leap-16-1 opensuse-tumbleweed
7337 #, no-wrap
7338 msgid "ioctl"
7339 msgstr ""
7340
7341 #. type: Plain text
7342 #: debian-trixie debian-unstable
7343 msgid ""
7344 "Implements the B<ioctl>\\|(2) function. You'll probably first have to say"
7345 msgstr ""
7346
7347 #. type: Plain text
7348 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7349 #: opensuse-leap-16-1 opensuse-tumbleweed
7350 #, no-wrap
7351 msgid ""
7352 "\\& require \"sys/ioctl.ph\"; # probably in\n"
7353 "\\& # $Config{archlib}/sys/ioctl.ph\n"
7354 msgstr ""
7355
7356 #. type: Plain text
7357 #: debian-trixie debian-unstable
7358 msgid ""
7359 "to get the correct function definitions. If I<sys/ioctl.ph> doesn't exist "
7360 "or doesn't have the correct definitions you'll have to roll your own, based "
7361 "on your C header files such as I<E<lt>sys/ioctl.hE<gt>>. (There is a Perl "
7362 "script called B<h2ph> that comes with the Perl kit that may help you in "
7363 "this, but it's nontrivial.) SCALAR will be read and/or written depending on "
7364 "the FUNCTION; a C pointer to the string value of SCALAR will be passed as "
7365 "the third argument of the actual \\&CW<\\*(C`ioctl\\*(C'> call. (If SCALAR "
7366 "has no string value but does have a numeric value, that value will be passed "
7367 "rather than a pointer to the string value. To guarantee this to be true, "
7368 "add a CW<0> to the scalar before using it.) The \\&CW<\\*(C`pack\\*(C'> and "
7369 "CW<\\*(C`unpack\\*(C'> functions may be needed to manipulate the values of "
7370 "structures used by \\&CW<\\*(C`ioctl\\*(C'>."
7371 msgstr ""
7372
7373 #. type: Plain text
7374 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7375 #: opensuse-leap-16-1 opensuse-tumbleweed
7376 msgid ""
7377 "The return value of CW<\\*(C`ioctl\\*(C'> (and \\&CW<\\*(C`fcntl\\*(C'>) is "
7378 "as follows:"
7379 msgstr ""
7380
7381 #. type: Plain text
7382 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7383 #: opensuse-leap-16-1 opensuse-tumbleweed
7384 #, no-wrap
7385 msgid ""
7386 "\\& if OS returns: then Perl returns:\n"
7387 "\\& -1 undefined value\n"
7388 "\\& 0 string \"0 but true\"\n"
7389 "\\& anything else that number\n"
7390 msgstr ""
7391
7392 #. type: Plain text
7393 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7394 #: opensuse-leap-16-1 opensuse-tumbleweed
7395 msgid ""
7396 "Thus Perl returns true on success and false on failure, yet you can still "
7397 "easily determine the actual value returned by the operating system:"
7398 msgstr ""
7399
7400 #. type: Plain text
7401 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7402 #: opensuse-leap-16-1 opensuse-tumbleweed
7403 #, no-wrap
7404 msgid ""
7405 "\\& my $retval = ioctl(...) || -1;\n"
7406 "\\& printf \"System returned %d\\en\", $retval;\n"
7407 msgstr ""
7408
7409 #. type: Plain text
7410 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7411 #: opensuse-leap-16-1 opensuse-tumbleweed
7412 msgid ""
7413 "The special string CW<\"0 but true\"> is exempt from \\&CW<\\*(C`Argument "
7414 "\"...\" isn\\*(Aqt numeric\\*(C'> warnings on improper numeric conversions."
7415 msgstr ""
7416
7417 #. type: Plain text
7418 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7419 #: opensuse-leap-16-1 opensuse-tumbleweed
7420 msgid "Portability issues: \"ioctl\" in perlport."
7421 msgstr ""
7422
7423 #. type: IX
7424 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7425 #: opensuse-leap-16-1 opensuse-tumbleweed
7426 #, no-wrap
7427 msgid "join EXPR,LIST"
7428 msgstr ""
7429
7430 #. type: IX
7431 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7432 #: opensuse-leap-16-1 opensuse-tumbleweed
7433 #, no-wrap
7434 msgid "join"
7435 msgstr ""
7436
7437 #. type: Plain text
7438 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7439 #: opensuse-leap-16-1 opensuse-tumbleweed
7440 msgid ""
7441 "Joins the separate strings of LIST into a single string with fields "
7442 "separated by the value of EXPR, and returns that new string. Example:"
7443 msgstr ""
7444
7445 #. type: Plain text
7446 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7447 #: opensuse-leap-16-1 opensuse-tumbleweed
7448 #, no-wrap
7449 msgid "\\& my $rec = join(\\*(Aq:\\*(Aq, $login,$passwd,$uid,$gid,$gcos,$home,$shell);\n"
7450 msgstr ""
7451
7452 #. type: Plain text
7453 #: debian-trixie debian-unstable
7454 msgid ""
7455 "Beware that unlike CW<\\*(C`split\\*(C'>, \\&CW<\\*(C`join\\*(C'> doesn't "
7456 "take a pattern as its first argument. Compare CW<\\*(C`split\\*(C'>."
7457 msgstr ""
7458
7459 #. type: IX
7460 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7461 #: opensuse-leap-16-1 opensuse-tumbleweed
7462 #, no-wrap
7463 msgid "keys HASH"
7464 msgstr ""
7465
7466 #. type: IX
7467 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7468 #: opensuse-leap-16-1 opensuse-tumbleweed
7469 #, no-wrap
7470 msgid "keys key"
7471 msgstr ""
7472
7473 #. type: IX
7474 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7475 #: opensuse-leap-16-1 opensuse-tumbleweed
7476 #, no-wrap
7477 msgid "keys ARRAY"
7478 msgstr ""
7479
7480 #. type: Plain text
7481 #: debian-trixie debian-unstable
7482 msgid ""
7483 "Called in list context, returns a list consisting of all the keys of the "
7484 "named hash, or in Perl 5.12 or later only, the indices of an array. Perl "
7485 "releases prior to 5.12 will produce a syntax error if you try to use an "
7486 "array argument. In scalar context, returns the number of keys or indices."
7487 msgstr ""
7488
7489 #. type: Plain text
7490 #: debian-trixie debian-unstable
7491 msgid ""
7492 "Hash entries are returned in an apparently random order. The actual random "
7493 "order is specific to a given hash; the exact same series of operations on "
7494 "two hashes may result in a different order for each hash. Any insertion "
7495 "into the hash may change the order, as will any deletion, with the exception "
7496 "that the most recent key returned by CW<\\*(C`each\\*(C'> or "
7497 "\\&CW<\\*(C`keys\\*(C'> may be deleted without changing the order. So long "
7498 "as a given hash is unmodified you may rely on \\&CW<\\*(C`keys\\*(C'>, "
7499 "CW<\\*(C`values\\*(C'> and CW<\\*(C`each\\*(C'> to repeatedly return the "
7500 "same order as each other. See \"Algorithmic Complexity Attacks\" in perlsec "
7501 "for details on why hash order is randomized. Aside from the guarantees "
7502 "provided here the exact details of Perl's hash algorithm and the hash "
7503 "traversal order are subject to change in any release of Perl. Tied hashes "
7504 "may behave differently to Perl's hashes with respect to changes in order on "
7505 "insertion and deletion of items."
7506 msgstr ""
7507
7508 #. type: Plain text
7509 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7510 #: opensuse-leap-16-1 opensuse-tumbleweed
7511 msgid ""
7512 "As a side effect, calling CW<\\*(C`keys\\*(C'> resets the internal iterator "
7513 "of the HASH or ARRAY (see CW<\\*(C`each\\*(C'>) before yielding the keys. "
7514 "In particular, calling CW<\\*(C`keys\\*(C'> in void context resets the "
7515 "iterator with no other overhead."
7516 msgstr ""
7517
7518 #. type: Plain text
7519 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7520 #: opensuse-leap-16-1 opensuse-tumbleweed
7521 msgid "Here is yet another way to print your environment:"
7522 msgstr ""
7523
7524 #. type: Plain text
7525 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7526 #: opensuse-leap-16-1 opensuse-tumbleweed
7527 #, no-wrap
7528 msgid ""
7529 "\\& my @keys = keys %ENV;\n"
7530 "\\& my @values = values %ENV;\n"
7531 "\\& while (@keys) {\n"
7532 "\\& print pop(@keys), \\*(Aq=\\*(Aq, pop(@values), \"\\en\";\n"
7533 "\\& }\n"
7534 msgstr ""
7535
7536 #. type: Plain text
7537 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7538 #: opensuse-leap-16-1 opensuse-tumbleweed
7539 msgid "or how about sorted by key:"
7540 msgstr ""
7541
7542 #. type: Plain text
7543 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7544 #: opensuse-leap-16-1 opensuse-tumbleweed
7545 #, no-wrap
7546 msgid ""
7547 "\\& foreach my $key (sort(keys %ENV)) {\n"
7548 "\\& print $key, \\*(Aq=\\*(Aq, $ENV{$key}, \"\\en\";\n"
7549 "\\& }\n"
7550 msgstr ""
7551
7552 #. type: Plain text
7553 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7554 #: opensuse-leap-16-1 opensuse-tumbleweed
7555 msgid ""
7556 "The returned values are copies of the original keys in the hash, so "
7557 "modifying them will not affect the original hash. Compare "
7558 "\\&CW<\\*(C`values\\*(C'>."
7559 msgstr ""
7560
7561 #. type: Plain text
7562 #: debian-trixie debian-unstable
7563 msgid ""
7564 "To sort a hash by value, you'll need to use a \\&CW<\\*(C`sort\\*(C'> "
7565 "function. Here's a descending numeric sort of a hash by its values:"
7566 msgstr ""
7567
7568 #. type: Plain text
7569 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7570 #: opensuse-leap-16-1 opensuse-tumbleweed
7571 #, no-wrap
7572 msgid ""
7573 "\\& foreach my $key (sort { $hash{$b} E<lt>=E<gt> $hash{$a} } keys %hash) {\n"
7574 "\\& printf \"%4d %s\\en\", $hash{$key}, $key;\n"
7575 "\\& }\n"
7576 msgstr ""
7577
7578 #. type: Plain text
7579 #: debian-trixie debian-unstable
7580 msgid ""
7581 "Used as an lvalue, CW<\\*(C`keys\\*(C'> allows you to increase the number of "
7582 "hash buckets allocated for the given hash. This can gain you a measure of "
7583 "efficiency if you know the hash is going to get big. (This is similar to "
7584 "pre-extending an array by assigning a larger number to $#array.) If you say"
7585 msgstr ""
7586
7587 #. type: Plain text
7588 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7589 #: opensuse-leap-16-1 opensuse-tumbleweed
7590 #, no-wrap
7591 msgid "\\& keys %hash = 200;\n"
7592 msgstr ""
7593
7594 #. type: Plain text
7595 #: debian-trixie debian-unstable
7596 msgid ""
7597 "then CW<%hash> will have at least 200 buckets allocated for it--256 of them, "
7598 "in fact, since it rounds up to the next power of two. These buckets will be "
7599 "retained even if you do CW<\\*(C`%hash = ()\\*(C'>, use CW<undef %hash> if "
7600 "you want to free the storage while CW<%hash> is still in scope. You can't "
7601 "shrink the number of buckets allocated for the hash using "
7602 "\\&CW<\\*(C`keys\\*(C'> in this way (but you needn't worry about doing this "
7603 "by accident, as trying has no effect). CW<\\*(C`keys @array\\*(C'> in an "
7604 "lvalue context is a syntax error."
7605 msgstr ""
7606
7607 #. type: Plain text
7608 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7609 #: opensuse-leap-16-1 opensuse-tumbleweed
7610 msgid ""
7611 "Starting with Perl 5.14, an experimental feature allowed "
7612 "\\&CW<\\*(C`keys\\*(C'> to take a scalar expression. This experiment has "
7613 "been deemed unsuccessful, and was removed as of Perl 5.24."
7614 msgstr ""
7615
7616 #. type: Plain text
7617 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7618 #: opensuse-leap-16-1 opensuse-tumbleweed
7619 #, no-wrap
7620 msgid "\\& use v5.12; # so keys/values/each work on arrays\n"
7621 msgstr ""
7622
7623 #. type: Plain text
7624 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7625 #: opensuse-leap-16-1 opensuse-tumbleweed
7626 msgid ""
7627 "See also CW<\\*(C`each\\*(C'>, CW<\\*(C`values\\*(C'>, and "
7628 "\\&CW<\\*(C`sort\\*(C'>."
7629 msgstr ""
7630
7631 #. type: IX
7632 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7633 #: opensuse-leap-16-1 opensuse-tumbleweed
7634 #, no-wrap
7635 msgid "kill SIGNAL, LIST"
7636 msgstr ""
7637
7638 #. type: IX
7639 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7640 #: opensuse-leap-16-1 opensuse-tumbleweed
7641 #, no-wrap
7642 msgid "kill SIGNAL"
7643 msgstr ""
7644
7645 #. type: IX
7646 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7647 #: opensuse-leap-16-1 opensuse-tumbleweed
7648 #, no-wrap
7649 msgid "kill signal"
7650 msgstr ""
7651
7652 #. type: Plain text
7653 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7654 #: opensuse-leap-16-1 opensuse-tumbleweed
7655 msgid ""
7656 "Sends a signal to a list of processes. Returns the number of arguments that "
7657 "were successfully used to signal (which is not necessarily the same as the "
7658 "number of processes actually killed, e.g. where a process group is killed)."
7659 msgstr ""
7660
7661 #. type: Plain text
7662 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7663 #: opensuse-leap-16-1 opensuse-tumbleweed
7664 #, no-wrap
7665 msgid ""
7666 "\\& my $cnt = kill \\*(AqHUP\\*(Aq, $child1, $child2;\n"
7667 "\\& kill \\*(AqKILL\\*(Aq, @goners;\n"
7668 msgstr ""
7669
7670 #. type: Plain text
7671 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7672 #: opensuse-leap-16-1 opensuse-tumbleweed
7673 msgid ""
7674 "SIGNAL may be either a signal name (a string) or a signal number. A signal "
7675 "name may start with a CW<\\*(C`SIG\\*(C'> prefix, thus CW<\\*(C`FOO\\*(C'> "
7676 "and CW<\\*(C`SIGFOO\\*(C'> refer to the same signal. The string form of "
7677 "SIGNAL is recommended for portability because the same signal may have "
7678 "different numbers in different operating systems."
7679 msgstr ""
7680
7681 #. type: Plain text
7682 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7683 #: opensuse-leap-16-1 opensuse-tumbleweed
7684 msgid ""
7685 "A list of signal names supported by the current platform can be found in "
7686 "\\&CW<$Config{sig_name}>, which is provided by the CW<\\*(C`Config\\*(C'> "
7687 "module. See Config for more details."
7688 msgstr ""
7689
7690 #. type: Plain text
7691 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7692 #: opensuse-leap-16-1 opensuse-tumbleweed
7693 msgid ""
7694 "A negative signal name is the same as a negative signal number, killing "
7695 "process groups instead of processes. For example, CW<\\*(C`kill \\*(Aq-"
7696 "KILL\\*(Aq, $pgrp\\*(C'> and \\&CW<\\*(C`kill -9, $pgrp\\*(C'> will send "
7697 "CW<\\*(C`SIGKILL\\*(C'> to the entire process group specified. That means "
7698 "you usually want to use positive not negative signals."
7699 msgstr ""
7700
7701 #. type: Plain text
7702 #: debian-trixie debian-unstable
7703 msgid ""
7704 "If SIGNAL is either the number 0 or the string CW<\\*(C`ZERO\\*(C'> (or "
7705 "CW<\\*(C`SIGZERO\\*(C'>), no signal is sent to the process, but "
7706 "CW<\\*(C`kill\\*(C'> checks whether it's I<possible> to send a signal to it "
7707 "(that means, to be brief, that the process is owned by the same user, or we "
7708 "are the super-user). This is useful to check that a child process is still "
7709 "alive (even if only as a zombie) and hasn't changed its UID. See perlport "
7710 "for notes on the portability of this construct."
7711 msgstr ""
7712
7713 #. type: Plain text
7714 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7715 #: opensuse-leap-16-1 opensuse-tumbleweed
7716 msgid ""
7717 "The behavior of kill when a I<PROCESS> number is zero or negative depends on "
7718 "the operating system. For example, on POSIX-conforming systems, zero will "
7719 "signal the current process group, -1 will signal all processes, and any "
7720 "other negative PROCESS number will act as a negative signal number and kill "
7721 "the entire process group specified."
7722 msgstr ""
7723
7724 #. type: Plain text
7725 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7726 #: opensuse-leap-16-1 opensuse-tumbleweed
7727 msgid ""
7728 "If both the SIGNAL and the PROCESS are negative, the results are undefined. "
7729 "A warning may be produced in a future version."
7730 msgstr ""
7731
7732 #. type: Plain text
7733 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7734 #: opensuse-leap-16-1 opensuse-tumbleweed
7735 msgid "See \"Signals\" in perlipc for more details."
7736 msgstr ""
7737
7738 #. type: Plain text
7739 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7740 #: opensuse-leap-16-1 opensuse-tumbleweed
7741 msgid ""
7742 "On some platforms such as Windows where the B<fork>\\|(2) system call is not "
7743 "available, Perl can be built to emulate CW<\\*(C`fork\\*(C'> at the "
7744 "interpreter level. This emulation has limitations related to kill that have "
7745 "to be considered, for code running on Windows and in code intended to be "
7746 "portable."
7747 msgstr ""
7748
7749 #. type: Plain text
7750 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7751 #: opensuse-leap-16-1 opensuse-tumbleweed
7752 msgid "See perlfork for more details."
7753 msgstr ""
7754
7755 #. type: Plain text
7756 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7757 #: opensuse-leap-16-1 opensuse-tumbleweed
7758 msgid ""
7759 "If there is no I<LIST> of processes, no signal is sent, and the return value "
7760 "is 0. This form is sometimes used, however, because it causes tainting "
7761 "checks to be run, if your perl support taint checks. But see \"Laundering "
7762 "and Detecting Tainted Data\" in perlsec."
7763 msgstr ""
7764
7765 #. type: Plain text
7766 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7767 #: opensuse-leap-16-1 opensuse-tumbleweed
7768 msgid "Portability issues: \"kill\" in perlport."
7769 msgstr ""
7770
7771 #. type: IX
7772 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7773 #: opensuse-leap-16-1 opensuse-tumbleweed
7774 #, no-wrap
7775 msgid "last LABEL"
7776 msgstr ""
7777
7778 #. type: IX
7779 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7780 #: opensuse-leap-16-1 opensuse-tumbleweed
7781 #, no-wrap
7782 msgid "last break"
7783 msgstr ""
7784
7785 #. type: IX
7786 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7787 #: opensuse-leap-16-1 opensuse-tumbleweed
7788 #, no-wrap
7789 msgid "last EXPR"
7790 msgstr ""
7791
7792 #. type: IX
7793 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7794 #: opensuse-leap-16-1 opensuse-tumbleweed
7795 #, no-wrap
7796 msgid "last"
7797 msgstr ""
7798
7799 #. type: Plain text
7800 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7801 #: opensuse-leap-16-1 opensuse-tumbleweed
7802 msgid ""
7803 "The CW<\\*(C`last\\*(C'> command is like the CW<\\*(C`break\\*(C'> statement "
7804 "in C (as used in loops); it immediately exits the loop in question. If the "
7805 "LABEL is omitted, the command refers to the innermost enclosing loop. The "
7806 "CW<\\*(C`last EXPR\\*(C'> form, available starting in Perl 5.18.0, allows a "
7807 "label name to be computed at run time, and is otherwise identical to "
7808 "CW<\\*(C`last LABEL\\*(C'>. The \\&CW<\\*(C`continue\\*(C'> block, if any, "
7809 "is not executed:"
7810 msgstr ""
7811
7812 #. type: Plain text
7813 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7814 #: opensuse-leap-16-1 opensuse-tumbleweed
7815 #, no-wrap
7816 msgid ""
7817 "\\& LINE: while (E<lt>STDINE<gt>) {\n"
7818 "\\& last LINE if /^$/; # exit when done with header\n"
7819 "\\& #...\n"
7820 "\\& }\n"
7821 msgstr ""
7822
7823 #. type: Plain text
7824 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7825 #: opensuse-leap-16-1 opensuse-tumbleweed
7826 msgid ""
7827 "\\&CW<\\*(C`last\\*(C'> cannot return a value from a block that typically "
7828 "returns a value, such as CW<\\*(C`eval {}\\*(C'>, CW<\\*(C`sub {}\\*(C'>, or "
7829 "CW<\\*(C`do {}\\*(C'>. It will perform its flow control behavior, which "
7830 "precludes any return value. It should not be used to exit a "
7831 "CW<\\*(C`grep\\*(C'> or CW<\\*(C`map\\*(C'> operation."
7832 msgstr ""
7833
7834 #. type: Plain text
7835 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7836 #: opensuse-leap-16-1 opensuse-tumbleweed
7837 msgid ""
7838 "Note that a block by itself is semantically identical to a loop that "
7839 "executes once. Thus CW<\\*(C`last\\*(C'> can be used to effect an early "
7840 "exit out of such a block."
7841 msgstr ""
7842
7843 #. type: Plain text
7844 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7845 #: opensuse-leap-16-1 opensuse-tumbleweed
7846 msgid ""
7847 "See also CW<\\*(C`continue\\*(C'> for an illustration of how "
7848 "\\&CW<\\*(C`last\\*(C'>, CW<\\*(C`next\\*(C'>, and \\&CW<\\*(C`redo\\*(C'> "
7849 "work."
7850 msgstr ""
7851
7852 #. type: Plain text
7853 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7854 #: opensuse-leap-16-1 opensuse-tumbleweed
7855 msgid ""
7856 "Unlike most named operators, this has the same precedence as assignment. It "
7857 "is also exempt from the looks-like-a-function rule, so \\&CW<\\*(C`last "
7858 "(\"foo\").\"bar\"\\*(C'> will cause \"bar\" to be part of the argument to "
7859 "\\&CW<\\*(C`last\\*(C'>."
7860 msgstr ""
7861
7862 #. type: IX
7863 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7864 #: opensuse-leap-16-1 opensuse-tumbleweed
7865 #, no-wrap
7866 msgid "lc EXPR"
7867 msgstr ""
7868
7869 #. type: IX
7870 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7871 #: opensuse-leap-16-1 opensuse-tumbleweed
7872 #, no-wrap
7873 msgid "lc lowercase"
7874 msgstr ""
7875
7876 #. type: IX
7877 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7878 #: opensuse-leap-16-1 opensuse-tumbleweed
7879 #, no-wrap
7880 msgid "lc"
7881 msgstr ""
7882
7883 #. type: Plain text
7884 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7885 #: opensuse-leap-16-1 opensuse-tumbleweed
7886 msgid ""
7887 "Returns a lowercased version of EXPR. If EXPR is omitted, uses \\&CW<$_>."
7888 msgstr ""
7889
7890 #. type: Plain text
7891 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7892 #: opensuse-leap-16-1 opensuse-tumbleweed
7893 #, no-wrap
7894 msgid "\\& my $str = lc(\"Perl is GREAT\"); # \"perl is great\"\n"
7895 msgstr ""
7896
7897 #. type: Plain text
7898 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7899 #: opensuse-leap-16-1 opensuse-tumbleweed
7900 msgid "What gets returned depends on several factors:"
7901 msgstr ""
7902
7903 #. type: IX
7904 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7905 #: opensuse-leap-16-1 opensuse-tumbleweed
7906 #, no-wrap
7907 msgid "If use bytes is in effect:"
7908 msgstr ""
7909
7910 #. type: Plain text
7911 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7912 #: opensuse-leap-16-1 opensuse-tumbleweed
7913 msgid ""
7914 "The results follow ASCII rules. Only the characters CW<\\*(C`A-Z\\*(C'> "
7915 "change, to CW<\\*(C`a-z\\*(C'> respectively."
7916 msgstr ""
7917
7918 #. type: IX
7919 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7920 #: opensuse-leap-16-1 opensuse-tumbleweed
7921 #, no-wrap
7922 msgid "Otherwise, if use locale for LC_CTYPE is in effect:"
7923 msgstr ""
7924
7925 #. type: Plain text
7926 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7927 #: opensuse-leap-16-1 opensuse-tumbleweed
7928 msgid ""
7929 "Respects current CW<\\*(C`LC_CTYPE\\*(C'> locale for code points E<lt> 256; "
7930 "and uses Unicode rules for the remaining code points (this last can only "
7931 "happen if the UTF8 flag is also set). See perllocale."
7932 msgstr ""
7933
7934 #. type: Plain text
7935 #: debian-trixie debian-unstable
7936 msgid ""
7937 "Starting in v5.20, Perl uses full Unicode rules if the locale is UTF-8. "
7938 "Otherwise, there is a deficiency in this scheme, which is that case changes "
7939 "that cross the 255/256 boundary are not well-defined. For example, the "
7940 "lower case of LATIN CAPITAL LETTER SHARP S (U+1E9E) in Unicode rules is "
7941 "U+00DF (on ASCII platforms). But under CW<\\*(C`use locale\\*(C'> (prior to "
7942 "v5.20 or not a UTF-8 locale), the lower case of U+1E9E is itself, because "
7943 "0xDF may not be LATIN SMALL LETTER SHARP S in the current locale, and Perl "
7944 "has no way of knowing if that character even exists in the locale, much less "
7945 "what code point it is. Perl returns a result that is above 255 (almost "
7946 "always the input character unchanged), for all instances (and there aren't "
7947 "many) where the 255/256 boundary would otherwise be crossed; and starting in "
7948 "v5.22, it raises a locale warning."
7949 msgstr ""
7950
7951 #. type: IX
7952 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7953 #: opensuse-leap-16-1 opensuse-tumbleweed
7954 #, no-wrap
7955 msgid "Otherwise, If EXPR has the UTF8 flag set:"
7956 msgstr ""
7957
7958 #. type: Plain text
7959 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7960 #: opensuse-leap-16-1 opensuse-tumbleweed
7961 msgid "Unicode rules are used for the case change."
7962 msgstr ""
7963
7964 #. type: IX
7965 #: debian-trixie debian-unstable
7966 #, no-wrap
7967 msgid "Otherwise, if use feature unicode_strings or use locale :not_characters is in effect:"
7968 msgstr ""
7969
7970 #. type: IX
7971 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7972 #: opensuse-leap-16-1 opensuse-tumbleweed
7973 #, no-wrap
7974 msgid "Otherwise:"
7975 msgstr ""
7976
7977 #. type: Plain text
7978 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7979 #: opensuse-leap-16-1 opensuse-tumbleweed
7980 msgid ""
7981 "ASCII rules are used for the case change. The lowercase of any character "
7982 "outside the ASCII range is the character itself."
7983 msgstr ""
7984
7985 #. type: Plain text
7986 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7987 #: opensuse-leap-16-1 opensuse-tumbleweed
7988 msgid ""
7989 "\\&B<Note:> This is the internal function implementing the "
7990 "\\&CW<\\*(C`\\eL\\*(C'> escape in double-quoted strings."
7991 msgstr ""
7992
7993 #. type: Plain text
7994 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
7995 #: opensuse-leap-16-1 opensuse-tumbleweed
7996 #, no-wrap
7997 msgid "\\& my $str = \"Perl is \\eLGREAT\\eE\"; # \"Perl is great\"\n"
7998 msgstr ""
7999
8000 #. type: IX
8001 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8002 #: opensuse-leap-16-1 opensuse-tumbleweed
8003 #, no-wrap
8004 msgid "lcfirst EXPR"
8005 msgstr ""
8006
8007 #. type: IX
8008 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8009 #: opensuse-leap-16-1 opensuse-tumbleweed
8010 #, no-wrap
8011 msgid "lcfirst lowercase"
8012 msgstr ""
8013
8014 #. type: IX
8015 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8016 #: opensuse-leap-16-1 opensuse-tumbleweed
8017 #, no-wrap
8018 msgid "lcfirst"
8019 msgstr ""
8020
8021 #. type: Plain text
8022 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8023 #: opensuse-leap-16-1 opensuse-tumbleweed
8024 msgid ""
8025 "Returns the value of EXPR with the first character lowercased. This is the "
8026 "internal function implementing the CW<\\*(C`\\el\\*(C'> escape in double-"
8027 "quoted strings."
8028 msgstr ""
8029
8030 #. type: Plain text
8031 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8032 #: opensuse-leap-16-1 opensuse-tumbleweed
8033 msgid ""
8034 "This function behaves the same way under various pragmas, such as in a "
8035 "locale, as CW<\\*(C`lc\\*(C'> does."
8036 msgstr ""
8037
8038 #. type: IX
8039 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8040 #: opensuse-leap-16-1 opensuse-tumbleweed
8041 #, no-wrap
8042 msgid "length EXPR"
8043 msgstr ""
8044
8045 #. type: IX
8046 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8047 #: opensuse-leap-16-1 opensuse-tumbleweed
8048 #, no-wrap
8049 msgid "length size"
8050 msgstr ""
8051
8052 #. type: IX
8053 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8054 #: opensuse-leap-16-1 opensuse-tumbleweed
8055 #, no-wrap
8056 msgid "length"
8057 msgstr ""
8058
8059 #. type: Plain text
8060 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8061 #: opensuse-leap-16-1 opensuse-tumbleweed
8062 msgid ""
8063 "Returns the length in I<characters> of the value of EXPR. If EXPR is "
8064 "omitted, returns the length of CW<$_>. If EXPR is undefined, returns "
8065 "CW<\\*(C`undef\\*(C'>."
8066 msgstr ""
8067
8068 #. type: Plain text
8069 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8070 #: opensuse-leap-16-1 opensuse-tumbleweed
8071 msgid ""
8072 "This function cannot be used on an entire array or hash to find out how many "
8073 "elements these have. For that, use CW<\\*(C`scalar @array\\*(C'> and "
8074 "CW<scalar keys %hash>, respectively."
8075 msgstr ""
8076
8077 #. type: Plain text
8078 #: debian-trixie debian-unstable
8079 msgid ""
8080 "Like all Perl character operations, CW<\\*(C`length\\*(C'> normally deals in "
8081 "logical characters, not physical bytes. For how many bytes a string encoded "
8082 "as UTF-8 would take up, use "
8083 "CW<\\*(C`length(Encode::encode(\\*(AqUTF-8\\*(Aq, EXPR))\\*(C'> (you'll have "
8084 "to CW<\\*(C`use Encode\\*(C'> first). See Encode and perlunicode."
8085 msgstr ""
8086
8087 #. type: IP
8088 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8089 #: opensuse-leap-16-1 opensuse-tumbleweed
8090 #, no-wrap
8091 msgid "_\\|_LINE_\\|_"
8092 msgstr ""
8093
8094 #. type: IX
8095 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8096 #: opensuse-leap-16-1 opensuse-tumbleweed
8097 #, no-wrap
8098 msgid "__LINE__"
8099 msgstr ""
8100
8101 #. type: Plain text
8102 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8103 #: opensuse-leap-16-1 opensuse-tumbleweed
8104 msgid ""
8105 "A special token that compiles to the current line number. It can be altered "
8106 "by the mechanism described at \"Plain Old Comments (Not!)\" in perlsyn."
8107 msgstr ""
8108
8109 #. type: IX
8110 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8111 #: opensuse-leap-16-1 opensuse-tumbleweed
8112 #, no-wrap
8113 msgid "link OLDFILE,NEWFILE"
8114 msgstr ""
8115
8116 #. type: IX
8117 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8118 #: opensuse-leap-16-1 opensuse-tumbleweed
8119 #, no-wrap
8120 msgid "link"
8121 msgstr ""
8122
8123 #. type: Plain text
8124 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8125 #: opensuse-leap-16-1 opensuse-tumbleweed
8126 msgid ""
8127 "Creates a new filename linked to the old filename. Returns true for "
8128 "success, false otherwise."
8129 msgstr ""
8130
8131 #. type: Plain text
8132 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8133 #: opensuse-leap-16-1 opensuse-tumbleweed
8134 msgid "Portability issues: \"link\" in perlport."
8135 msgstr ""
8136
8137 #. type: IX
8138 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8139 #: opensuse-leap-16-1 opensuse-tumbleweed
8140 #, no-wrap
8141 msgid "listen SOCKET,QUEUESIZE"
8142 msgstr ""
8143
8144 #. type: IX
8145 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8146 #: opensuse-leap-16-1 opensuse-tumbleweed
8147 #, no-wrap
8148 msgid "listen"
8149 msgstr ""
8150
8151 #. type: Plain text
8152 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8153 #: opensuse-leap-16-1 opensuse-tumbleweed
8154 msgid ""
8155 "Does the same thing that the B<listen>\\|(2) system call does. Returns true "
8156 "if it succeeded, false otherwise. See the example in \"Sockets: Client/"
8157 "Server Communication\" in perlipc."
8158 msgstr ""
8159
8160 #. type: IX
8161 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8162 #: opensuse-leap-16-1 opensuse-tumbleweed
8163 #, no-wrap
8164 msgid "local EXPR"
8165 msgstr ""
8166
8167 #. type: IX
8168 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8169 #: opensuse-leap-16-1 opensuse-tumbleweed
8170 #, no-wrap
8171 msgid "local"
8172 msgstr ""
8173
8174 #. type: Plain text
8175 #: debian-trixie debian-unstable
8176 msgid ""
8177 "You really probably want to be using CW<\\*(C`my\\*(C'> instead, because "
8178 "CW<\\*(C`local\\*(C'> isn't what most people think of as \"local\". See "
8179 "\"Private Variables via B<my()>\" in perlsub for details."
8180 msgstr ""
8181
8182 #. type: Plain text
8183 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8184 #: opensuse-leap-16-1 opensuse-tumbleweed
8185 msgid ""
8186 "A local modifies the listed variables to be local to the enclosing block, "
8187 "file, or eval. If more than one value is listed, the list must be placed in "
8188 "parentheses. See \"Temporary Values via B<local()>\" in perlsub for "
8189 "details, including issues with tied arrays and hashes."
8190 msgstr ""
8191
8192 #. type: Plain text
8193 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8194 #: opensuse-leap-16-1 opensuse-tumbleweed
8195 msgid ""
8196 "Like CW<\\*(C`my\\*(C'>, CW<\\*(C`state\\*(C'>, and \\&CW<\\*(C`our\\*(C'>, "
8197 "CW<\\*(C`local\\*(C'> can operate on a variable anywhere it appears in an "
8198 "expression (aside from interpolation in strings). Unlike the other "
8199 "declarations, the effect of CW<\\*(C`local\\*(C'> happens at runtime, and so "
8200 "it will apply to additional uses of the same variable executed after the "
8201 "declaration, even within the same statement. Note that this does not include "
8202 "uses within an expression assigned to the variable when it is localized, "
8203 "because the assigned expression is evaluated before the localization."
8204 msgstr ""
8205
8206 #. type: Plain text
8207 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8208 #: opensuse-leap-16-1 opensuse-tumbleweed
8209 #, no-wrap
8210 msgid ""
8211 "\\& package main;\n"
8212 "\\& our $x = 2;\n"
8213 "\\& {\n"
8214 "\\& foo($x, local $x = $x + 1, $x); # foo() receives (2, 3, 3)\n"
8215 "\\& # $main::x is 3 within the call to foo()\n"
8216 "\\& }\n"
8217 "\\& foo($x); # foo() receives (2) and $main::x is 2\n"
8218 msgstr ""
8219
8220 #. type: Plain text
8221 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8222 #: opensuse-leap-16-1 opensuse-tumbleweed
8223 msgid ""
8224 "The CW<\\*(C`delete local EXPR\\*(C'> construct can also be used to localize "
8225 "the deletion of array/hash elements to the current block. See \"Localized "
8226 "deletion of elements of composite types\" in perlsub."
8227 msgstr ""
8228
8229 #. type: IX
8230 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8231 #: opensuse-leap-16-1 opensuse-tumbleweed
8232 #, no-wrap
8233 msgid "localtime EXPR"
8234 msgstr ""
8235
8236 #. type: IX
8237 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8238 #: opensuse-leap-16-1 opensuse-tumbleweed
8239 #, no-wrap
8240 msgid "localtime ctime"
8241 msgstr ""
8242
8243 #. type: IX
8244 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8245 #: opensuse-leap-16-1 opensuse-tumbleweed
8246 #, no-wrap
8247 msgid "localtime"
8248 msgstr ""
8249
8250 #. type: Plain text
8251 #: debian-trixie debian-unstable
8252 msgid ""
8253 "Converts a time as returned by the time function to a 9-element list with "
8254 "the time analyzed for the local time zone. Typically used as follows:"
8255 msgstr ""
8256
8257 #. type: Plain text
8258 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8259 #: opensuse-leap-16-1 opensuse-tumbleweed
8260 #, no-wrap
8261 msgid ""
8262 "\\& # 0 1 2 3 4 5 6 7 8\n"
8263 "\\& my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =\n"
8264 "\\& localtime(time);\n"
8265 msgstr ""
8266
8267 #. type: Plain text
8268 #: debian-trixie debian-unstable
8269 msgid ""
8270 "All list elements are numeric and come straight out of the C 'struct tm'. "
8271 "CW<$sec>, CW<$min>, and CW<$hour> are the seconds, minutes, and hours of the "
8272 "specified time."
8273 msgstr ""
8274
8275 #. type: Plain text
8276 #: debian-trixie debian-unstable
8277 msgid ""
8278 "\\&CW<$mday> is the day of the month and CW<$mon> the month in the range "
8279 "CW<0..11>, with 0 indicating January and 11 indicating December. This makes "
8280 "it easy to get a month name from a list:"
8281 msgstr ""
8282
8283 #. type: Plain text
8284 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8285 #: opensuse-leap-16-1 opensuse-tumbleweed
8286 #, no-wrap
8287 msgid ""
8288 "\\& my @abbr = qw(Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec);\n"
8289 "\\& print \"$abbr[$mon] $mday\";\n"
8290 "\\& # $mon=9, $mday=18 gives \"Oct 18\"\n"
8291 msgstr ""
8292
8293 #. type: Plain text
8294 #: debian-trixie debian-unstable
8295 msgid ""
8296 "\\&CW<$year> contains the number of years since 1900. To get the full year "
8297 "write:"
8298 msgstr ""
8299
8300 #. type: Plain text
8301 #: debian-trixie debian-unstable
8302 #, no-wrap
8303 msgid "\\& $year += 1900;\n"
8304 msgstr ""
8305
8306 #. type: Plain text
8307 #: debian-trixie debian-unstable
8308 msgid "To get the last two digits of the year (e.g., \"01\" in 2001) do:"
8309 msgstr ""
8310
8311 #. type: Plain text
8312 #: debian-trixie debian-unstable
8313 #, no-wrap
8314 msgid "\\& $year = sprintf(\"%02d\", $year % 100);\n"
8315 msgstr ""
8316
8317 #. type: Plain text
8318 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8319 #: opensuse-leap-16-1 opensuse-tumbleweed
8320 msgid ""
8321 "\\&CW<$wday> is the day of the week, with 0 indicating Sunday and 3 "
8322 "indicating Wednesday. CW<$yday> is the day of the year, in the range "
8323 "CW<0..364> (or CW<0..365> in leap years.)"
8324 msgstr ""
8325
8326 #. type: Plain text
8327 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8328 #: opensuse-leap-16-1 opensuse-tumbleweed
8329 msgid ""
8330 "\\&CW<$isdst> is true if the specified time occurs when Daylight Saving Time "
8331 "is in effect, false otherwise."
8332 msgstr ""
8333
8334 #. type: Plain text
8335 #: debian-trixie debian-unstable
8336 msgid ""
8337 "If EXPR is omitted, CW<\\*(C`localtime\\*(C'> uses the current time (as "
8338 "returned by CW<\\*(C`time\\*(C'>)."
8339 msgstr ""
8340
8341 #. type: Plain text
8342 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8343 #: opensuse-leap-16-1 opensuse-tumbleweed
8344 msgid ""
8345 "In scalar context, CW<\\*(C`localtime\\*(C'> returns the \\&B<ctime>\\|(3) "
8346 "value:"
8347 msgstr ""
8348
8349 #. type: Plain text
8350 #: debian-trixie debian-unstable
8351 #, no-wrap
8352 msgid "\\& my $now_string = localtime; # e.g., \"Thu Oct 13 04:54:34 1994\"\n"
8353 msgstr ""
8354
8355 #. type: Plain text
8356 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8357 #: opensuse-leap-16-1 opensuse-tumbleweed
8358 msgid ""
8359 "This scalar value is always in English, and is B<not> locale-dependent. To "
8360 "get similar but locale-dependent date strings, try for example:"
8361 msgstr ""
8362
8363 #. type: Plain text
8364 #: debian-trixie debian-unstable
8365 #, no-wrap
8366 msgid ""
8367 "\\& use POSIX qw(strftime);\n"
8368 "\\& my $now_string = strftime \"%a %b %e %H:%M:%S %Y\", localtime;\n"
8369 "\\& # or for GMT formatted appropriately for your locale:\n"
8370 "\\& my $now_string = strftime \"%a %b %e %H:%M:%S %Y\", gmtime;\n"
8371 msgstr ""
8372
8373 #. type: Plain text
8374 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8375 #: opensuse-leap-16-1 opensuse-tumbleweed
8376 msgid ""
8377 "\\&CW<$now_string> will be formatted according to the current LC_TIME locale "
8378 "the program or thread is running in. See perllocale for how to set up and "
8379 "change that locale. Note that CW<%a> and CW<%b>, the short forms of the day "
8380 "of the week and the month of the year, may not necessarily be three "
8381 "characters wide."
8382 msgstr ""
8383
8384 #. type: Plain text
8385 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8386 #: opensuse-leap-16-1 opensuse-tumbleweed
8387 msgid ""
8388 "The Time::gmtime and Time::localtime modules provide a convenient, by-name "
8389 "access mechanism to the CW<\\*(C`gmtime\\*(C'> and "
8390 "\\&CW<\\*(C`localtime\\*(C'> functions, respectively."
8391 msgstr ""
8392
8393 #. type: Plain text
8394 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8395 #: opensuse-leap-16-1 opensuse-tumbleweed
8396 msgid ""
8397 "For a comprehensive date and time representation look at the DateTime module "
8398 "on CPAN."
8399 msgstr ""
8400
8401 #. type: Plain text
8402 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8403 #: opensuse-leap-16-1 opensuse-tumbleweed
8404 msgid "For GMT instead of local time use the CW<\\*(C`gmtime\\*(C'> builtin."
8405 msgstr ""
8406
8407 #. type: Plain text
8408 #: debian-trixie debian-unstable
8409 msgid ""
8410 "See also the CW<\\*(C`Time::Local\\*(C'> module (for converting seconds, "
8411 "minutes, hours, and such back to the integer value returned by "
8412 "\\&CW<\\*(C`time\\*(C'>), and the POSIX module's \\&CW<\\*(C`mktime\\*(C'> "
8413 "function."
8414 msgstr ""
8415
8416 #. type: Plain text
8417 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8418 #: opensuse-leap-16-1 opensuse-tumbleweed
8419 msgid "Portability issues: \"localtime\" in perlport."
8420 msgstr ""
8421
8422 #. type: IX
8423 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8424 #: opensuse-leap-16-1 opensuse-tumbleweed
8425 #, no-wrap
8426 msgid "lock THING"
8427 msgstr ""
8428
8429 #. type: IX
8430 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8431 #: opensuse-leap-16-1 opensuse-tumbleweed
8432 #, no-wrap
8433 msgid "lock"
8434 msgstr ""
8435
8436 #. type: Plain text
8437 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8438 #: opensuse-leap-16-1 opensuse-tumbleweed
8439 msgid ""
8440 "This function places an advisory lock on a shared variable or referenced "
8441 "object contained in I<THING> until the lock goes out of scope."
8442 msgstr ""
8443
8444 #. type: Plain text
8445 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8446 #: opensuse-leap-16-1 opensuse-tumbleweed
8447 msgid ""
8448 "The value returned is the scalar itself, if the argument is a scalar, or a "
8449 "reference, if the argument is a hash, array or subroutine."
8450 msgstr ""
8451
8452 #. type: Plain text
8453 #: debian-trixie debian-unstable
8454 msgid ""
8455 "\\&CW<\\*(C`lock\\*(C'> is a \"weak keyword\"; this means that if you've "
8456 "defined a function by this name (before any calls to it), that function will "
8457 "be called instead. If you are not under CW<\\*(C`use threads::shared\\*(C'> "
8458 "this does nothing. See threads::shared."
8459 msgstr ""
8460
8461 #. type: IX
8462 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8463 #: opensuse-leap-16-1 opensuse-tumbleweed
8464 #, no-wrap
8465 msgid "log EXPR"
8466 msgstr ""
8467
8468 #. type: IX
8469 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8470 #: opensuse-leap-16-1 opensuse-tumbleweed
8471 #, no-wrap
8472 msgid "log logarithm e ln base"
8473 msgstr ""
8474
8475 #. type: IX
8476 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8477 #: opensuse-leap-16-1 opensuse-tumbleweed
8478 #, no-wrap
8479 msgid "log"
8480 msgstr ""
8481
8482 #. type: Plain text
8483 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8484 #: opensuse-leap-16-1 opensuse-tumbleweed
8485 msgid ""
8486 "Returns the natural logarithm (base I<e>) of EXPR. If EXPR is omitted, "
8487 "returns the log of CW<$_>. To get the log of another base, use basic "
8488 "algebra: The base-N log of a number is equal to the natural log of that "
8489 "number divided by the natural log of N. For example:"
8490 msgstr ""
8491
8492 #. type: Plain text
8493 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8494 #: opensuse-leap-16-1 opensuse-tumbleweed
8495 #, no-wrap
8496 msgid ""
8497 "\\& sub log10 {\n"
8498 "\\& my $n = shift;\n"
8499 "\\& return log($n)/log(10);\n"
8500 "\\& }\n"
8501 msgstr ""
8502
8503 #. type: Plain text
8504 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8505 #: opensuse-leap-16-1 opensuse-tumbleweed
8506 msgid "See also CW<\\*(C`exp\\*(C'> for the inverse operation."
8507 msgstr ""
8508
8509 #. type: IX
8510 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8511 #: opensuse-leap-16-1 opensuse-tumbleweed
8512 #, no-wrap
8513 msgid "lstat FILEHANDLE"
8514 msgstr ""
8515
8516 #. type: IX
8517 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8518 #: opensuse-leap-16-1 opensuse-tumbleweed
8519 #, no-wrap
8520 msgid "lstat"
8521 msgstr ""
8522
8523 #. type: IX
8524 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8525 #: opensuse-leap-16-1 opensuse-tumbleweed
8526 #, no-wrap
8527 msgid "lstat EXPR"
8528 msgstr ""
8529
8530 #. type: IX
8531 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8532 #: opensuse-leap-16-1 opensuse-tumbleweed
8533 #, no-wrap
8534 msgid "lstat DIRHANDLE"
8535 msgstr ""
8536
8537 #. type: Plain text
8538 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8539 #: opensuse-leap-16-1 opensuse-tumbleweed
8540 msgid ""
8541 "Does the same thing as the CW<\\*(C`stat\\*(C'> function (including setting "
8542 "the special CW<\\*(C`_\\*(C'> filehandle) but stats a symbolic link instead "
8543 "of the file the symbolic link points to. If symbolic links are "
8544 "unimplemented on your system, a normal CW<\\*(C`stat\\*(C'> is done. For "
8545 "much more detailed information, please see the documentation for "
8546 "CW<\\*(C`stat\\*(C'>."
8547 msgstr ""
8548
8549 #. type: Plain text
8550 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8551 #: opensuse-leap-16-1 opensuse-tumbleweed
8552 msgid "If EXPR is omitted, stats CW<$_>."
8553 msgstr ""
8554
8555 #. type: Plain text
8556 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8557 #: opensuse-leap-16-1 opensuse-tumbleweed
8558 msgid "Portability issues: \"lstat\" in perlport."
8559 msgstr ""
8560
8561 #. type: IX
8562 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8563 #: opensuse-leap-16-1 opensuse-tumbleweed
8564 #, no-wrap
8565 msgid "m//"
8566 msgstr ""
8567
8568 #. type: Plain text
8569 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8570 #: opensuse-leap-16-1 opensuse-tumbleweed
8571 msgid "The match operator. See \"Regexp Quote-Like Operators\" in perlop."
8572 msgstr ""
8573
8574 #. type: IX
8575 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8576 #: opensuse-leap-16-1 opensuse-tumbleweed
8577 #, no-wrap
8578 msgid "map BLOCK LIST"
8579 msgstr ""
8580
8581 #. type: IX
8582 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8583 #: opensuse-leap-16-1 opensuse-tumbleweed
8584 #, no-wrap
8585 msgid "map"
8586 msgstr ""
8587
8588 #. type: IX
8589 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8590 #: opensuse-leap-16-1 opensuse-tumbleweed
8591 #, no-wrap
8592 msgid "map EXPR,LIST"
8593 msgstr ""
8594
8595 #. type: Plain text
8596 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8597 #: opensuse-leap-16-1 opensuse-tumbleweed
8598 msgid ""
8599 "Evaluates the BLOCK or EXPR for each element of LIST (locally setting "
8600 "\\&CW<$_> to each element) and composes a list of the results of each such "
8601 "evaluation. Each element of LIST may produce zero, one, or more elements in "
8602 "the generated list, so the number of elements in the generated list may "
8603 "differ from that in LIST. In scalar context, returns the total number of "
8604 "elements so generated. In list context, returns the generated list."
8605 msgstr ""
8606
8607 #. type: Plain text
8608 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8609 #: opensuse-leap-16-1 opensuse-tumbleweed
8610 #, no-wrap
8611 msgid "\\& my @chars = map(chr, @numbers);\n"
8612 msgstr ""
8613
8614 #. type: Plain text
8615 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8616 #: opensuse-leap-16-1 opensuse-tumbleweed
8617 msgid "translates a list of numbers to the corresponding characters."
8618 msgstr ""
8619
8620 #. type: Plain text
8621 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8622 #: opensuse-leap-16-1 opensuse-tumbleweed
8623 #, no-wrap
8624 msgid "\\& my @squares = map { $_ * $_ } @numbers;\n"
8625 msgstr ""
8626
8627 #. type: Plain text
8628 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8629 #: opensuse-leap-16-1 opensuse-tumbleweed
8630 msgid "translates a list of numbers to their squared values."
8631 msgstr ""
8632
8633 #. type: Plain text
8634 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8635 #: opensuse-leap-16-1 opensuse-tumbleweed
8636 #, no-wrap
8637 msgid "\\& my @squares = map { $_ E<gt> 5 ? ($_ * $_) : () } @numbers;\n"
8638 msgstr ""
8639
8640 #. type: Plain text
8641 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8642 #: opensuse-leap-16-1 opensuse-tumbleweed
8643 msgid ""
8644 "shows that number of returned elements can differ from the number of input "
8645 "elements. To omit an element, return an empty list (). This could also be "
8646 "achieved by writing"
8647 msgstr ""
8648
8649 #. type: Plain text
8650 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8651 #: opensuse-leap-16-1 opensuse-tumbleweed
8652 #, no-wrap
8653 msgid "\\& my @squares = map { $_ * $_ } grep { $_ E<gt> 5 } @numbers;\n"
8654 msgstr ""
8655
8656 #. type: Plain text
8657 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8658 #: opensuse-leap-16-1 opensuse-tumbleweed
8659 msgid "which makes the intention more clear."
8660 msgstr ""
8661
8662 #. type: Plain text
8663 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8664 #: opensuse-leap-16-1 opensuse-tumbleweed
8665 msgid ""
8666 "Map always returns a list, which can be assigned to a hash such that the "
8667 "elements become key/value pairs. See perldata for more details."
8668 msgstr ""
8669
8670 #. type: Plain text
8671 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8672 #: opensuse-leap-16-1 opensuse-tumbleweed
8673 #, no-wrap
8674 msgid "\\& my %hash = map { get_a_key_for($_) =E<gt> $_ } @array;\n"
8675 msgstr ""
8676
8677 #. type: Plain text
8678 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8679 #: opensuse-leap-16-1 opensuse-tumbleweed
8680 msgid "is just a funny way to write"
8681 msgstr ""
8682
8683 #. type: Plain text
8684 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8685 #: opensuse-leap-16-1 opensuse-tumbleweed
8686 #, no-wrap
8687 msgid ""
8688 "\\& my %hash;\n"
8689 "\\& foreach (@array) {\n"
8690 "\\& $hash{get_a_key_for($_)} = $_;\n"
8691 "\\& }\n"
8692 msgstr ""
8693
8694 #. type: Plain text
8695 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8696 #: opensuse-leap-16-1 opensuse-tumbleweed
8697 msgid ""
8698 "Note that CW<$_> is an alias to the list value, so it can be used to modify "
8699 "the elements of the LIST. While this is useful and supported, it can cause "
8700 "bizarre results if the elements of LIST are not variables. Using a regular "
8701 "CW<\\*(C`foreach\\*(C'> loop for this purpose would be clearer in most "
8702 "cases. See also CW<\\*(C`grep\\*(C'> for a list composed of those items of "
8703 "the original list for which the BLOCK or EXPR evaluates to true."
8704 msgstr ""
8705
8706 #. type: Plain text
8707 #: debian-trixie debian-unstable
8708 msgid ""
8709 "\\&CW<\\*(C`{\\*(C'> starts both hash references and blocks, so CW<\\*(C`map "
8710 "{ ...\\*(C'> could be either the start of map BLOCK LIST or map EXPR, LIST. "
8711 "Because Perl doesn't look ahead for the closing CW<\\*(C`}\\*(C'> it has to "
8712 "take a guess at which it's dealing with based on what it finds just after "
8713 "the \\&CW<\\*(C`{\\*(C'>. Usually it gets it right, but if it doesn't it "
8714 "won't realize something is wrong until it gets to the CW<\\*(C`}\\*(C'> and "
8715 "encounters the missing (or unexpected) comma. The syntax error will be "
8716 "reported close to the CW<\\*(C`}\\*(C'>, but you'll need to change something "
8717 "near the CW<\\*(C`{\\*(C'> such as using a unary CW<\\*(C`+\\*(C'> or "
8718 "semicolon to give Perl some help:"
8719 msgstr ""
8720
8721 #. type: Plain text
8722 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8723 #: opensuse-leap-16-1 opensuse-tumbleweed
8724 #, no-wrap
8725 msgid ""
8726 "\\& my %hash = map { \"\\eL$_\" =E<gt> 1 } @array # perl guesses EXPR. wrong\n"
8727 "\\& my %hash = map { +\"\\eL$_\" =E<gt> 1 } @array # perl guesses BLOCK. right\n"
8728 "\\& my %hash = map {; \"\\eL$_\" =E<gt> 1 } @array # this also works\n"
8729 "\\& my %hash = map { (\"\\eL$_\" =E<gt> 1) } @array # as does this\n"
8730 "\\& my %hash = map { lc($_) =E<gt> 1 } @array # and this.\n"
8731 "\\& my %hash = map +( lc($_) =E<gt> 1 ), @array # this is EXPR and works!\n"
8732 "\\&\n"
8733 "\\& my %hash = map ( lc($_), 1 ), @array # evaluates to (1, @array)\n"
8734 msgstr ""
8735
8736 #. type: Plain text
8737 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8738 #: opensuse-leap-16-1 opensuse-tumbleweed
8739 msgid "or to force an anon hash constructor use CW<\\*(C`+{\\*(C'>:"
8740 msgstr ""
8741
8742 #. type: Plain text
8743 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8744 #: opensuse-leap-16-1 opensuse-tumbleweed
8745 #, no-wrap
8746 msgid ""
8747 "\\& my @hashes = map +{ lc($_) =E<gt> 1 }, @array # EXPR, so needs\n"
8748 "\\& # comma at end\n"
8749 msgstr ""
8750
8751 #. type: Plain text
8752 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8753 #: opensuse-leap-16-1 opensuse-tumbleweed
8754 msgid "to get a list of anonymous hashes each with only one entry apiece."
8755 msgstr ""
8756
8757 #. type: IX
8758 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8759 #: opensuse-leap-16-1 opensuse-tumbleweed
8760 #, no-wrap
8761 msgid "method NAME BLOCK"
8762 msgstr ""
8763
8764 #. type: IX
8765 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8766 #: opensuse-leap-16-1 opensuse-tumbleweed
8767 #, no-wrap
8768 msgid "method"
8769 msgstr ""
8770
8771 #. type: IX
8772 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8773 #: opensuse-leap-16-1 opensuse-tumbleweed
8774 #, no-wrap
8775 msgid "method NAME : ATTRS BLOCK"
8776 msgstr ""
8777
8778 #. type: Plain text
8779 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8780 #: opensuse-leap-16-1 opensuse-tumbleweed
8781 msgid ""
8782 "Creates a new named method in the scope of the class that it appears "
8783 "within. This is only valid inside a CW<\\*(C`class\\*(C'> declaration."
8784 msgstr ""
8785
8786 #. type: IX
8787 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8788 #: opensuse-leap-16-1 opensuse-tumbleweed
8789 #, no-wrap
8790 msgid "mkdir FILENAME,MODE"
8791 msgstr ""
8792
8793 #. type: IX
8794 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8795 #: opensuse-leap-16-1 opensuse-tumbleweed
8796 #, no-wrap
8797 msgid "mkdir md directory, create"
8798 msgstr ""
8799
8800 #. type: IX
8801 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8802 #: opensuse-leap-16-1 opensuse-tumbleweed
8803 #, no-wrap
8804 msgid "mkdir FILENAME"
8805 msgstr ""
8806
8807 #. type: IX
8808 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8809 #: opensuse-leap-16-1 opensuse-tumbleweed
8810 #, no-wrap
8811 msgid "mkdir"
8812 msgstr ""
8813
8814 #. type: Plain text
8815 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8816 #: opensuse-leap-16-1 opensuse-tumbleweed
8817 msgid ""
8818 "Creates the directory specified by FILENAME, with permissions specified by "
8819 "MODE (as modified by CW<\\*(C`umask\\*(C'>). If it succeeds it returns "
8820 "true; otherwise it returns false and sets \\&CW<$!> (errno). MODE defaults "
8821 "to 0777 if omitted, and FILENAME defaults to CW<$_> if omitted."
8822 msgstr ""
8823
8824 #. type: Plain text
8825 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8826 #: opensuse-leap-16-1 opensuse-tumbleweed
8827 msgid ""
8828 "In general, it is better to create directories with a permissive MODE and "
8829 "let the user modify that with their CW<\\*(C`umask\\*(C'> than it is to "
8830 "supply a restrictive MODE and give the user no way to be more permissive. "
8831 "The exceptions to this rule are when the file or directory should be kept "
8832 "private (mail files, for instance). The documentation for "
8833 "\\&CW<\\*(C`umask\\*(C'> discusses the choice of MODE in more detail. If "
8834 "bits in MODE other than the permission bits are set, the result may be "
8835 "implementation defined, per POSIX 1003.1-2008."
8836 msgstr ""
8837
8838 #. type: Plain text
8839 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8840 #: opensuse-leap-16-1 opensuse-tumbleweed
8841 msgid ""
8842 "Note that according to the POSIX 1003.1-1996 the FILENAME may have any "
8843 "number of trailing slashes. Some operating and filesystems do not get this "
8844 "right, so Perl automatically removes all trailing slashes to keep everyone "
8845 "happy."
8846 msgstr ""
8847
8848 #. type: Plain text
8849 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8850 #: opensuse-leap-16-1 opensuse-tumbleweed
8851 msgid ""
8852 "To recursively create a directory structure, look at the "
8853 "CW<\\*(C`make_path\\*(C'> function of the File::Path module."
8854 msgstr ""
8855
8856 #. type: IX
8857 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8858 #: opensuse-leap-16-1 opensuse-tumbleweed
8859 #, no-wrap
8860 msgid "msgctl ID,CMD,ARG"
8861 msgstr ""
8862
8863 #. type: IX
8864 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8865 #: opensuse-leap-16-1 opensuse-tumbleweed
8866 #, no-wrap
8867 msgid "msgctl"
8868 msgstr ""
8869
8870 #. type: Plain text
8871 #: debian-trixie debian-unstable
8872 msgid ""
8873 "Calls the System V IPC function B<msgctl>\\|(2). You'll probably have to say"
8874 msgstr ""
8875
8876 #. type: Plain text
8877 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8878 #: opensuse-leap-16-1 opensuse-tumbleweed
8879 #, no-wrap
8880 msgid "\\& use IPC::SysV;\n"
8881 msgstr ""
8882
8883 #. type: Plain text
8884 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8885 #: opensuse-leap-16-1 opensuse-tumbleweed
8886 msgid ""
8887 "first to get the correct constant definitions. If CMD is "
8888 "CW<\\*(C`IPC_STAT\\*(C'>, then ARG must be a variable that will hold the "
8889 "returned CW<\\*(C`msqid_ds\\*(C'> structure. Returns like "
8890 "CW<\\*(C`ioctl\\*(C'>: the undefined value for error, CW<\"0 but true\"> for "
8891 "zero, or the actual return value otherwise. See also \"SysV IPC\" in "
8892 "perlipc and the documentation for CW<\\*(C`IPC::SysV\\*(C'> and "
8893 "\\&CW<\\*(C`IPC::Semaphore\\*(C'>."
8894 msgstr ""
8895
8896 #. type: Plain text
8897 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8898 #: opensuse-leap-16-1 opensuse-tumbleweed
8899 msgid "Portability issues: \"msgctl\" in perlport."
8900 msgstr ""
8901
8902 #. type: IX
8903 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8904 #: opensuse-leap-16-1 opensuse-tumbleweed
8905 #, no-wrap
8906 msgid "msgget KEY,FLAGS"
8907 msgstr ""
8908
8909 #. type: IX
8910 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8911 #: opensuse-leap-16-1 opensuse-tumbleweed
8912 #, no-wrap
8913 msgid "msgget"
8914 msgstr ""
8915
8916 #. type: Plain text
8917 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8918 #: opensuse-leap-16-1 opensuse-tumbleweed
8919 msgid ""
8920 "Calls the System V IPC function B<msgget>\\|(2). Returns the message queue "
8921 "id, or CW<\\*(C`undef\\*(C'> on error. See also \"SysV IPC\" in perlipc and "
8922 "the documentation for CW<\\*(C`IPC::SysV\\*(C'> and "
8923 "\\&CW<\\*(C`IPC::Msg\\*(C'>."
8924 msgstr ""
8925
8926 #. type: Plain text
8927 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8928 #: opensuse-leap-16-1 opensuse-tumbleweed
8929 msgid "Portability issues: \"msgget\" in perlport."
8930 msgstr ""
8931
8932 #. type: IX
8933 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8934 #: opensuse-leap-16-1 opensuse-tumbleweed
8935 #, no-wrap
8936 msgid "msgrcv ID,VAR,SIZE,TYPE,FLAGS"
8937 msgstr ""
8938
8939 #. type: IX
8940 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8941 #: opensuse-leap-16-1 opensuse-tumbleweed
8942 #, no-wrap
8943 msgid "msgrcv"
8944 msgstr ""
8945
8946 #. type: Plain text
8947 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8948 #: opensuse-leap-16-1 opensuse-tumbleweed
8949 msgid ""
8950 "Calls the System V IPC function msgrcv to receive a message from message "
8951 "queue ID into variable VAR with a maximum message size of SIZE. Note that "
8952 "when a message is received, the message type as a native long integer will "
8953 "be the first thing in VAR, followed by the actual message. This packing may "
8954 "be opened with CW<\\*(C`unpack(\"l! a*\")\\*(C'>. Taints the variable. "
8955 "Returns true if successful, false on error. See also \"SysV IPC\" in "
8956 "perlipc and the documentation for \\&CW<\\*(C`IPC::SysV\\*(C'> and "
8957 "CW<\\*(C`IPC::Msg\\*(C'>."
8958 msgstr ""
8959
8960 #. type: Plain text
8961 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8962 #: opensuse-leap-16-1 opensuse-tumbleweed
8963 msgid "Portability issues: \"msgrcv\" in perlport."
8964 msgstr ""
8965
8966 #. type: IX
8967 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8968 #: opensuse-leap-16-1 opensuse-tumbleweed
8969 #, no-wrap
8970 msgid "msgsnd ID,MSG,FLAGS"
8971 msgstr ""
8972
8973 #. type: IX
8974 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8975 #: opensuse-leap-16-1 opensuse-tumbleweed
8976 #, no-wrap
8977 msgid "msgsnd"
8978 msgstr ""
8979
8980 #. type: Plain text
8981 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8982 #: opensuse-leap-16-1 opensuse-tumbleweed
8983 msgid ""
8984 "Calls the System V IPC function msgsnd to send the message MSG to the "
8985 "message queue ID. MSG must begin with the native long integer message type, "
8986 "followed by the message itself. This kind of packing can be achieved with "
8987 "CW<\\*(C`pack(\"l! a*\", $type, $message)\\*(C'>. Returns true if "
8988 "successful, false on error. See also \"SysV IPC\" in perlipc and the "
8989 "documentation for CW<\\*(C`IPC::SysV\\*(C'> and CW<\\*(C`IPC::Msg\\*(C'>."
8990 msgstr ""
8991
8992 #. type: Plain text
8993 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
8994 #: opensuse-leap-16-1 opensuse-tumbleweed
8995 msgid "Portability issues: \"msgsnd\" in perlport."
8996 msgstr ""
8997
8998 #. type: IX
8999 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9000 #: opensuse-leap-16-1 opensuse-tumbleweed
9001 #, no-wrap
9002 msgid "my VARLIST"
9003 msgstr ""
9004
9005 #. type: IX
9006 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9007 #: opensuse-leap-16-1 opensuse-tumbleweed
9008 #, no-wrap
9009 msgid "my"
9010 msgstr ""
9011
9012 #. type: IX
9013 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9014 #: opensuse-leap-16-1 opensuse-tumbleweed
9015 #, no-wrap
9016 msgid "my TYPE VARLIST"
9017 msgstr ""
9018
9019 #. type: IX
9020 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9021 #: opensuse-leap-16-1 opensuse-tumbleweed
9022 #, no-wrap
9023 msgid "my VARLIST : ATTRS"
9024 msgstr ""
9025
9026 #. type: IX
9027 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9028 #: opensuse-leap-16-1 opensuse-tumbleweed
9029 #, no-wrap
9030 msgid "my TYPE VARLIST : ATTRS"
9031 msgstr ""
9032
9033 #. type: Plain text
9034 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9035 #: opensuse-leap-16-1 opensuse-tumbleweed
9036 msgid ""
9037 "A CW<\\*(C`my\\*(C'> declares the listed variables to be local (lexically) "
9038 "to the enclosing block, file, or CW<\\*(C`eval\\*(C'>. If more than one "
9039 "variable is listed, the list must be placed in parentheses."
9040 msgstr ""
9041
9042 #. type: Plain text
9043 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9044 #: opensuse-leap-16-1 opensuse-tumbleweed
9045 msgid ""
9046 "Note that with a parenthesised list, CW<\\*(C`undef\\*(C'> can be used as a "
9047 "dummy placeholder, for example to skip assignment of initial values:"
9048 msgstr ""
9049
9050 #. type: Plain text
9051 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9052 #: opensuse-leap-16-1 opensuse-tumbleweed
9053 #, no-wrap
9054 msgid "\\& my ( undef, $min, $hour ) = localtime;\n"
9055 msgstr ""
9056
9057 #. type: Plain text
9058 #: debian-trixie debian-unstable
9059 msgid ""
9060 "Like CW<\\*(C`state\\*(C'>, CW<\\*(C`local\\*(C'>, and "
9061 "\\&CW<\\*(C`our\\*(C'>, CW<\\*(C`my\\*(C'> can operate on a variable "
9062 "anywhere it appears in an expression (aside from interpolation in strings). "
9063 "The declaration will not apply to additional uses of the same variable until "
9064 "the next statement. This means additional uses of that variable within the "
9065 "same statement will act as they would have before that declaration occurred, "
9066 "or result in a strict 'vars' error, as appropriate."
9067 msgstr ""
9068
9069 #. type: Plain text
9070 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9071 #: opensuse-leap-16-1 opensuse-tumbleweed
9072 #, no-wrap
9073 msgid ""
9074 "\\& package main;\n"
9075 "\\& our $x = 2;\n"
9076 "\\& foo($x, my $x = $x + 1, $x); # foo() receives (2, 3, 2)\n"
9077 "\\& foo($x, $main::x); # foo() receives (3, 2)\n"
9078 msgstr ""
9079
9080 #. type: Plain text
9081 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9082 #: opensuse-leap-16-1 opensuse-tumbleweed
9083 msgid ""
9084 "Redeclaring a variable in the same scope or statement will \"shadow\" the "
9085 "previous declaration, creating a new instance and preventing access to the "
9086 "previous one. This is usually undesired and, if warnings are enabled, will "
9087 "result in a warning in the CW<\\*(C`shadow\\*(C'> category."
9088 msgstr ""
9089
9090 #. type: Plain text
9091 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9092 #: opensuse-leap-16-1 opensuse-tumbleweed
9093 msgid ""
9094 "The exact semantics and interface of TYPE and ATTRS are still evolving. "
9095 "TYPE may be a bareword, a constant declared with CW<\\*(C`use "
9096 "constant\\*(C'>, or CW<\\*(C`_\\|_PACKAGE_\\|_\\*(C'>. It is currently "
9097 "bound to the use of the fields pragma, and attributes are handled using the "
9098 "attributes pragma, or starting from Perl 5.8.0 also via the "
9099 "Attribute::Handlers module. See \"Private Variables via B<my()>\" in "
9100 "perlsub for details."
9101 msgstr ""
9102
9103 #. type: IX
9104 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9105 #: opensuse-leap-16-1 opensuse-tumbleweed
9106 #, no-wrap
9107 msgid "next LABEL"
9108 msgstr ""
9109
9110 #. type: IX
9111 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9112 #: opensuse-leap-16-1 opensuse-tumbleweed
9113 #, no-wrap
9114 msgid "next continue"
9115 msgstr ""
9116
9117 #. type: IX
9118 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9119 #: opensuse-leap-16-1 opensuse-tumbleweed
9120 #, no-wrap
9121 msgid "next EXPR"
9122 msgstr ""
9123
9124 #. type: IX
9125 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9126 #: opensuse-leap-16-1 opensuse-tumbleweed
9127 #, no-wrap
9128 msgid "next"
9129 msgstr ""
9130
9131 #. type: Plain text
9132 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9133 #: opensuse-leap-16-1 opensuse-tumbleweed
9134 msgid ""
9135 "The CW<\\*(C`next\\*(C'> command is like the CW<\\*(C`continue\\*(C'> "
9136 "statement in C; it starts the next iteration of the loop:"
9137 msgstr ""
9138
9139 #. type: Plain text
9140 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9141 #: opensuse-leap-16-1 opensuse-tumbleweed
9142 #, no-wrap
9143 msgid ""
9144 "\\& LINE: while (E<lt>STDINE<gt>) {\n"
9145 "\\& next LINE if /^#/; # discard comments\n"
9146 "\\& #...\n"
9147 "\\& }\n"
9148 msgstr ""
9149
9150 #. type: Plain text
9151 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9152 #: opensuse-leap-16-1 opensuse-tumbleweed
9153 msgid ""
9154 "Note that if there were a CW<\\*(C`continue\\*(C'> block on the above, it "
9155 "would get executed even on discarded lines. If LABEL is omitted, the "
9156 "command refers to the innermost enclosing loop. The CW<\\*(C`next "
9157 "EXPR\\*(C'> form, available as of Perl 5.18.0, allows a label name to be "
9158 "computed at run time, being otherwise identical to CW<\\*(C`next "
9159 "LABEL\\*(C'>."
9160 msgstr ""
9161
9162 #. type: Plain text
9163 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9164 #: opensuse-leap-16-1 opensuse-tumbleweed
9165 msgid ""
9166 "\\&CW<\\*(C`next\\*(C'> cannot return a value from a block that typically "
9167 "returns a value, such as CW<\\*(C`eval {}\\*(C'>, CW<\\*(C`sub {}\\*(C'>, or "
9168 "CW<\\*(C`do {}\\*(C'>. It will perform its flow control behavior, which "
9169 "precludes any return value. It should not be used to exit a "
9170 "CW<\\*(C`grep\\*(C'> or CW<\\*(C`map\\*(C'> operation."
9171 msgstr ""
9172
9173 #. type: Plain text
9174 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9175 #: opensuse-leap-16-1 opensuse-tumbleweed
9176 msgid ""
9177 "Note that a block by itself is semantically identical to a loop that "
9178 "executes once. Thus CW<\\*(C`next\\*(C'> will exit such a block early."
9179 msgstr ""
9180
9181 #. type: Plain text
9182 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9183 #: opensuse-leap-16-1 opensuse-tumbleweed
9184 msgid ""
9185 "Unlike most named operators, this has the same precedence as assignment. It "
9186 "is also exempt from the looks-like-a-function rule, so \\&CW<\\*(C`next "
9187 "(\"foo\").\"bar\"\\*(C'> will cause \"bar\" to be part of the argument to "
9188 "\\&CW<\\*(C`next\\*(C'>."
9189 msgstr ""
9190
9191 #. type: IX
9192 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9193 #: opensuse-leap-16-1 opensuse-tumbleweed
9194 #, no-wrap
9195 msgid "no MODULE VERSION LIST"
9196 msgstr ""
9197
9198 #. type: IX
9199 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9200 #: opensuse-leap-16-1 opensuse-tumbleweed
9201 #, no-wrap
9202 msgid "no declarations unimporting"
9203 msgstr ""
9204
9205 #. type: IX
9206 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9207 #: opensuse-leap-16-1 opensuse-tumbleweed
9208 #, no-wrap
9209 msgid "no MODULE VERSION"
9210 msgstr ""
9211
9212 #. type: IX
9213 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9214 #: opensuse-leap-16-1 opensuse-tumbleweed
9215 #, no-wrap
9216 msgid "no MODULE LIST"
9217 msgstr ""
9218
9219 #. type: IX
9220 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9221 #: opensuse-leap-16-1 opensuse-tumbleweed
9222 #, no-wrap
9223 msgid "no MODULE"
9224 msgstr ""
9225
9226 #. type: IX
9227 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9228 #: opensuse-leap-16-1 opensuse-tumbleweed
9229 #, no-wrap
9230 msgid "no VERSION"
9231 msgstr ""
9232
9233 #. type: Plain text
9234 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9235 #: opensuse-leap-16-1 opensuse-tumbleweed
9236 msgid ""
9237 "See the CW<\\*(C`use\\*(C'> function, of which \\&CW<\\*(C`no\\*(C'> is the "
9238 "opposite."
9239 msgstr ""
9240
9241 #. type: IX
9242 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9243 #: opensuse-leap-16-1 opensuse-tumbleweed
9244 #, no-wrap
9245 msgid "oct EXPR"
9246 msgstr ""
9247
9248 #. type: IX
9249 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9250 #: opensuse-leap-16-1 opensuse-tumbleweed
9251 #, no-wrap
9252 msgid "oct octal hex hexadecimal binary bin"
9253 msgstr ""
9254
9255 #. type: IX
9256 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9257 #: opensuse-leap-16-1 opensuse-tumbleweed
9258 #, no-wrap
9259 msgid "oct"
9260 msgstr ""
9261
9262 #. type: Plain text
9263 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9264 #: opensuse-leap-16-1 opensuse-tumbleweed
9265 msgid ""
9266 "Interprets EXPR as an octal string and returns the corresponding value. An "
9267 "octal string consists of octal digits and, as of Perl 5.33.5, an optional "
9268 "CW<\\*(C`0o\\*(C'> or CW<\\*(C`o\\*(C'> prefix. Each octal digit may be "
9269 "preceded by a single underscore, which will be ignored. (If EXPR happens to "
9270 "start off with CW<\\*(C`0x\\*(C'> or CW<\\*(C`x\\*(C'>, interprets it as a "
9271 "hex string. If EXPR starts off with CW<\\*(C`0b\\*(C'> or "
9272 "CW<\\*(C`b\\*(C'>, it is interpreted as a binary string. Leading whitespace "
9273 "is ignored in all three cases.) The following will handle decimal, binary, "
9274 "octal, and hex in standard Perl notation:"
9275 msgstr ""
9276
9277 #. type: Plain text
9278 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9279 #: opensuse-leap-16-1 opensuse-tumbleweed
9280 #, no-wrap
9281 msgid "\\& $val = oct($val) if $val =~ /^0/;\n"
9282 msgstr ""
9283
9284 #. type: Plain text
9285 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9286 #: opensuse-leap-16-1 opensuse-tumbleweed
9287 msgid ""
9288 "If EXPR is omitted, uses CW<$_>. To go the other way (produce a number in "
9289 "octal), use CW<\\*(C`sprintf\\*(C'> or \\&CW<\\*(C`printf\\*(C'>:"
9290 msgstr ""
9291
9292 #. type: Plain text
9293 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9294 #: opensuse-leap-16-1 opensuse-tumbleweed
9295 #, no-wrap
9296 msgid ""
9297 "\\& my $dec_perms = (stat(\"filename\"))[2] & 07777;\n"
9298 "\\& my $oct_perm_str = sprintf \"%o\", $perms;\n"
9299 msgstr ""
9300
9301 #. type: Plain text
9302 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9303 #: opensuse-leap-16-1 opensuse-tumbleweed
9304 msgid ""
9305 "The CW<\\*(C`oct\\*(C'> function is commonly used when a string such as "
9306 "\\&CW<644> needs to be converted into a file mode, for example. Although "
9307 "Perl automatically converts strings into numbers as needed, this automatic "
9308 "conversion assumes base 10."
9309 msgstr ""
9310
9311 #. type: Plain text
9312 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9313 #: opensuse-leap-16-1 opensuse-tumbleweed
9314 msgid ""
9315 "Leading white space is ignored without warning, as too are any trailing non-"
9316 "digits, such as a decimal point (CW<\\*(C`oct\\*(C'> only handles non-"
9317 "negative integers, not negative integers or floating point)."
9318 msgstr ""
9319
9320 #. type: IX
9321 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9322 #: opensuse-leap-16-1 opensuse-tumbleweed
9323 #, no-wrap
9324 msgid "open FILEHANDLE,MODE,EXPR"
9325 msgstr ""
9326
9327 #. type: IX
9328 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9329 #: opensuse-leap-16-1 opensuse-tumbleweed
9330 #, no-wrap
9331 msgid "open pipe file, open fopen"
9332 msgstr ""
9333
9334 #. type: IX
9335 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9336 #: opensuse-leap-16-1 opensuse-tumbleweed
9337 #, no-wrap
9338 msgid "open FILEHANDLE,MODE,EXPR,LIST"
9339 msgstr ""
9340
9341 #. type: IX
9342 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9343 #: opensuse-leap-16-1 opensuse-tumbleweed
9344 #, no-wrap
9345 msgid "open FILEHANDLE,MODE,REFERENCE"
9346 msgstr ""
9347
9348 #. type: IX
9349 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9350 #: opensuse-leap-16-1 opensuse-tumbleweed
9351 #, no-wrap
9352 msgid "open FILEHANDLE,EXPR"
9353 msgstr ""
9354
9355 #. type: IX
9356 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9357 #: opensuse-leap-16-1 opensuse-tumbleweed
9358 #, no-wrap
9359 msgid "open FILEHANDLE"
9360 msgstr ""
9361
9362 #. type: Plain text
9363 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9364 #: opensuse-leap-16-1 opensuse-tumbleweed
9365 msgid ""
9366 "Associates an internal FILEHANDLE with the external file specified by EXPR. "
9367 "That filehandle will subsequently allow you to perform I/O operations on "
9368 "that file, such as reading from it or writing to it."
9369 msgstr ""
9370
9371 #. type: Plain text
9372 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9373 #: opensuse-leap-16-1 opensuse-tumbleweed
9374 msgid ""
9375 "Instead of a filename, you may specify an external command (plus an optional "
9376 "argument list) or a scalar reference, in order to open filehandles on "
9377 "commands or in-memory scalars, respectively."
9378 msgstr ""
9379
9380 #. type: Plain text
9381 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9382 #: opensuse-leap-16-1 opensuse-tumbleweed
9383 msgid ""
9384 "A thorough reference to CW<\\*(C`open\\*(C'> follows. For a gentler "
9385 "introduction to the basics of CW<\\*(C`open\\*(C'>, see also the perlopentut "
9386 "manual page."
9387 msgstr ""
9388
9389 #. type: IX
9390 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9391 #: opensuse-leap-16-1 opensuse-tumbleweed
9392 #, no-wrap
9393 msgid "Working with files"
9394 msgstr ""
9395
9396 #. type: Plain text
9397 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9398 #: opensuse-leap-16-1 opensuse-tumbleweed
9399 msgid ""
9400 "Most often, CW<\\*(C`open\\*(C'> gets invoked with three arguments: the "
9401 "required FILEHANDLE (usually an empty scalar variable), followed by MODE "
9402 "(usually a literal describing the I/O mode the filehandle will use), and "
9403 "then the filename that the new filehandle will refer to."
9404 msgstr ""
9405
9406 #. type: IX
9407 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9408 #: opensuse-leap-16-1 opensuse-tumbleweed
9409 #, no-wrap
9410 msgid "Simple examples"
9411 msgstr ""
9412
9413 #. type: Plain text
9414 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9415 #: opensuse-leap-16-1 opensuse-tumbleweed
9416 msgid "Reading from a file:"
9417 msgstr ""
9418
9419 #. type: Plain text
9420 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9421 #: opensuse-leap-16-1 opensuse-tumbleweed
9422 #, no-wrap
9423 msgid ""
9424 "\\& open(my $fh, \"E<lt>\", \"input.txt\")\n"
9425 "\\& or die \"Can\\*(Aqt open E<lt> input.txt: $!\";\n"
9426 "\\&\n"
9427 "\\& # Process every line in input.txt\n"
9428 "\\& while (my $line = readline($fh)) {\n"
9429 "\\& #\n"
9430 "\\& # ... do something interesting with $line here ...\n"
9431 "\\& #\n"
9432 "\\& }\n"
9433 msgstr ""
9434
9435 #. type: Plain text
9436 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9437 #: opensuse-leap-16-1 opensuse-tumbleweed
9438 msgid "or writing to one:"
9439 msgstr ""
9440
9441 #. type: Plain text
9442 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9443 #: opensuse-leap-16-1 opensuse-tumbleweed
9444 #, no-wrap
9445 msgid ""
9446 "\\& open(my $fh, \"E<gt>\", \"output.txt\")\n"
9447 "\\& or die \"Can\\*(Aqt open E<gt> output.txt: $!\";\n"
9448 "\\&\n"
9449 "\\& print $fh \"This line gets printed into output.txt.\\en\";\n"
9450 msgstr ""
9451
9452 #. type: Plain text
9453 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9454 #: opensuse-leap-16-1 opensuse-tumbleweed
9455 msgid ""
9456 "For a summary of common filehandle operations such as these, see \"Files and "
9457 "I/O\" in perlintro."
9458 msgstr ""
9459
9460 #. type: IX
9461 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9462 #: opensuse-leap-16-1 opensuse-tumbleweed
9463 #, no-wrap
9464 msgid "About filehandles"
9465 msgstr ""
9466
9467 #. type: Plain text
9468 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9469 #: opensuse-leap-16-1 opensuse-tumbleweed
9470 msgid ""
9471 "The first argument to CW<\\*(C`open\\*(C'>, labeled FILEHANDLE in this "
9472 "reference, is usually a scalar variable. (Exceptions exist, described in "
9473 "\"Other considerations\", below.) If the call to CW<\\*(C`open\\*(C'> "
9474 "succeeds, then the expression provided as FILEHANDLE will get assigned an "
9475 "open \\&I<filehandle>. That filehandle provides an internal reference to the "
9476 "specified external file, conveniently stored in a Perl variable, and ready "
9477 "for I/O operations such as reading and writing."
9478 msgstr ""
9479
9480 #. type: IX
9481 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9482 #: opensuse-leap-16-1 opensuse-tumbleweed
9483 #, no-wrap
9484 msgid "About modes"
9485 msgstr ""
9486
9487 #. type: Plain text
9488 #: debian-trixie debian-unstable
9489 msgid ""
9490 "When calling CW<\\*(C`open\\*(C'> with three or more arguments, the second "
9491 "argument \\&-- labeled MODE here -- defines the I<open mode>. MODE is "
9492 "usually a literal string comprising special characters that define the "
9493 "intended I/O role of the filehandle being created: whether it's read-only, "
9494 "or read-and-write, and so on."
9495 msgstr ""
9496
9497 #. type: Plain text
9498 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9499 #: opensuse-leap-16-1 opensuse-tumbleweed
9500 msgid ""
9501 "If MODE is CW<\\*(C`E<lt>\\*(C'>, the file is opened for input (read-only). "
9502 "If MODE is CW<\\*(C`E<gt>\\*(C'>, the file is opened for output, with "
9503 "existing files first being truncated (\"clobbered\") and nonexisting files "
9504 "newly created. If MODE is CW<\\*(C`E<gt>E<gt>\\*(C'>, the file is opened "
9505 "for appending, again being created if necessary."
9506 msgstr ""
9507
9508 #. type: Plain text
9509 #: debian-trixie debian-unstable
9510 msgid ""
9511 "You can put a CW<\\*(C`+\\*(C'> in front of the CW<\\*(C`E<gt>\\*(C'> or "
9512 "CW<\\*(C`E<lt>\\*(C'> to indicate that you want both read and write access "
9513 "to the file; thus \\&CW<\\*(C`+E<lt>\\*(C'> is almost always preferred for "
9514 "read/write updates--the \\&CW<\\*(C`+E<gt>\\*(C'> mode would clobber the "
9515 "file first. You can't usually use either read-write mode for updating "
9516 "textfiles, since they have variable-length records. See the B<-i> switch in "
9517 "perlrun for a better approach. The file is created with permissions of "
9518 "CW<0666> modified by the process's \\&CW<\\*(C`umask\\*(C'> value."
9519 msgstr ""
9520
9521 #. type: Plain text
9522 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9523 #: opensuse-leap-16-1 opensuse-tumbleweed
9524 msgid ""
9525 "These various prefixes correspond to the B<fopen>\\|(3) modes of "
9526 "CW<\\*(C`r\\*(C'>, \\&CW<\\*(C`r+\\*(C'>, CW<\\*(C`w\\*(C'>, CW<\\*(C`w+"
9527 "\\*(C'>, CW<\\*(C`a\\*(C'>, and CW<\\*(C`a+\\*(C'>."
9528 msgstr ""
9529
9530 #. type: Plain text
9531 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9532 #: opensuse-leap-16-1 opensuse-tumbleweed
9533 msgid "More examples of different modes in action:"
9534 msgstr ""
9535
9536 #. type: Plain text
9537 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9538 #: opensuse-leap-16-1 opensuse-tumbleweed
9539 #, no-wrap
9540 msgid ""
9541 "\\& # Open a file for concatenation\n"
9542 "\\& open(my $log, \"E<gt>E<gt>\", \"/usr/spool/news/twitlog\")\n"
9543 "\\& or warn \"Couldn\\*(Aqt open log file; discarding input\";\n"
9544 "\\&\n"
9545 "\\& # Open a file for reading and writing\n"
9546 "\\& open(my $dbase, \"+E<lt>\", \"dbase.mine\")\n"
9547 "\\& or die \"Can\\*(Aqt open \\*(Aqdbase.mine\\*(Aq for update: $!\";\n"
9548 msgstr ""
9549
9550 #. type: IX
9551 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9552 #: opensuse-leap-16-1 opensuse-tumbleweed
9553 #, no-wrap
9554 msgid "Checking the return value"
9555 msgstr ""
9556
9557 #. type: Plain text
9558 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9559 #: opensuse-leap-16-1 opensuse-tumbleweed
9560 msgid ""
9561 "Open returns nonzero on success, the undefined value otherwise. If the "
9562 "\\&CW<\\*(C`open\\*(C'> involved a pipe, the return value happens to be the "
9563 "pid of the subprocess."
9564 msgstr ""
9565
9566 #. type: Plain text
9567 #: debian-trixie debian-unstable
9568 msgid ""
9569 "When opening a file, it's seldom a good idea to continue if the request "
9570 "failed, so CW<\\*(C`open\\*(C'> is frequently used with CW<\\*(C`die\\*(C'>. "
9571 "Even if you want your code to do something other than CW<\\*(C`die\\*(C'> on "
9572 "a failed open, you should still always check the return value from opening a "
9573 "file."
9574 msgstr ""
9575
9576 #. type: IX
9577 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9578 #: opensuse-leap-16-1 opensuse-tumbleweed
9579 #, no-wrap
9580 msgid "Specifying I/O layers in MODE"
9581 msgstr ""
9582
9583 #. type: Plain text
9584 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9585 #: opensuse-leap-16-1 opensuse-tumbleweed
9586 msgid ""
9587 "You can use the three-argument form of open to specify I/O layers (sometimes "
9588 "referred to as \"disciplines\") to apply to the new filehandle. These affect "
9589 "how the input and output are processed (see open and PerlIO for more "
9590 "details). For example:"
9591 msgstr ""
9592
9593 #. type: Plain text
9594 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9595 #: opensuse-leap-16-1 opensuse-tumbleweed
9596 #, no-wrap
9597 msgid ""
9598 "\\& # loads PerlIO::encoding automatically\n"
9599 "\\& open(my $fh, \"E<lt>:encoding(UTF-8)\", $filename)\n"
9600 "\\& || die \"Can\\*(Aqt open UTF-8 encoded $filename: $!\";\n"
9601 msgstr ""
9602
9603 #. type: Plain text
9604 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9605 #: opensuse-leap-16-1 opensuse-tumbleweed
9606 msgid ""
9607 "This opens the UTF8-encoded file containing Unicode characters; see "
9608 "perluniintro. Note that if layers are specified in the three-argument form, "
9609 "then default layers stored in \\&CW<\\*(C`${^OPEN}\\*(C'> (usually set by "
9610 "the open pragma or the switch CW<\\*(C`-CioD\\*(C'>) are ignored. Those "
9611 "layers will also be ignored if you specify a colon with no name following "
9612 "it. In that case the default layer for the operating system (:raw on "
9613 "Unix, :crlf on Windows) is used."
9614 msgstr ""
9615
9616 #. type: IX
9617 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9618 #: opensuse-leap-16-1 opensuse-tumbleweed
9619 #, no-wrap
9620 msgid "Using undef for temporary files"
9621 msgstr ""
9622
9623 #. type: Plain text
9624 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9625 #: opensuse-leap-16-1 opensuse-tumbleweed
9626 msgid ""
9627 "As a special case the three-argument form with a read/write mode and the "
9628 "third argument being CW<\\*(C`undef\\*(C'>:"
9629 msgstr ""
9630
9631 #. type: Plain text
9632 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9633 #: opensuse-leap-16-1 opensuse-tumbleweed
9634 #, no-wrap
9635 msgid "\\& open(my $tmp, \"+E<gt>\", undef) or die ...\n"
9636 msgstr ""
9637
9638 #. type: Plain text
9639 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9640 #: opensuse-leap-16-1 opensuse-tumbleweed
9641 msgid ""
9642 "opens a filehandle to a newly created empty anonymous temporary file. (This "
9643 "happens under any mode, which makes CW<\\*(C`+E<gt>\\*(C'> the only useful "
9644 "and sensible mode to use.) You will need to \\&CW<\\*(C`seek\\*(C'> to do "
9645 "the reading."
9646 msgstr ""
9647
9648 #. type: IX
9649 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9650 #: opensuse-leap-16-1 opensuse-tumbleweed
9651 #, no-wrap
9652 msgid "Opening a filehandle into an in-memory scalar"
9653 msgstr ""
9654
9655 #. type: Plain text
9656 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9657 #: opensuse-leap-16-1 opensuse-tumbleweed
9658 msgid ""
9659 "You can open filehandles directly to Perl scalars instead of a file or other "
9660 "resource external to the program. To do so, provide a reference to that "
9661 "scalar as the third argument to CW<\\*(C`open\\*(C'>, like so:"
9662 msgstr ""
9663
9664 #. type: Plain text
9665 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9666 #: opensuse-leap-16-1 opensuse-tumbleweed
9667 #, no-wrap
9668 msgid ""
9669 "\\& open(my $memory, \"E<gt>\", \\e$var)\n"
9670 "\\& or die \"Can\\*(Aqt open memory file: $!\";\n"
9671 "\\& print $memory \"foo!\\en\"; # output will appear in $var\n"
9672 msgstr ""
9673
9674 #. type: Plain text
9675 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9676 #: opensuse-leap-16-1 opensuse-tumbleweed
9677 msgid ""
9678 "To (re)open CW<\\*(C`STDOUT\\*(C'> or CW<\\*(C`STDERR\\*(C'> as an in-memory "
9679 "file, close it first:"
9680 msgstr ""
9681
9682 #. type: Plain text
9683 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9684 #: opensuse-leap-16-1 opensuse-tumbleweed
9685 #, no-wrap
9686 msgid ""
9687 "\\& close STDOUT;\n"
9688 "\\& open(STDOUT, \"E<gt>\", \\e$variable)\n"
9689 "\\& or die \"Can\\*(Aqt open STDOUT: $!\";\n"
9690 msgstr ""
9691
9692 #. type: Plain text
9693 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9694 #: opensuse-leap-16-1 opensuse-tumbleweed
9695 msgid ""
9696 "The scalars for in-memory files are treated as octet strings: unless the "
9697 "file is being opened with truncation the scalar may not contain any code "
9698 "points over 0xFF."
9699 msgstr ""
9700
9701 #. type: Plain text
9702 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9703 #: opensuse-leap-16-1 opensuse-tumbleweed
9704 msgid ""
9705 "Opening in-memory files I<can> fail for a variety of reasons. As with any "
9706 "other CW<\\*(C`open\\*(C'>, check the return value for success."
9707 msgstr ""
9708
9709 #. type: Plain text
9710 #: debian-trixie debian-unstable
9711 msgid ""
9712 "\\&I<Technical note>: This feature works only when Perl is built with PerlIO "
9713 "-- the default, except with older (pre-5.16) Perl installations that were "
9714 "configured to not include it (e.g. via CW<\\*(C`Configure \\&-"
9715 "Uuseperlio\\*(C'>). You can see whether your Perl was built with PerlIO by "
9716 "running CW<\\*(C`perl -V:useperlio\\*(C'>. If it says "
9717 "CW<\\*(Aqdefine\\*(Aq>, you have PerlIO; otherwise you don't."
9718 msgstr ""
9719
9720 #. type: Plain text
9721 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9722 #: opensuse-leap-16-1 opensuse-tumbleweed
9723 msgid "See perliol for detailed info on PerlIO."
9724 msgstr ""
9725
9726 #. type: IX
9727 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9728 #: opensuse-leap-16-1 opensuse-tumbleweed
9729 #, no-wrap
9730 msgid "Opening a filehandle into a command"
9731 msgstr ""
9732
9733 #. type: Plain text
9734 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9735 #: opensuse-leap-16-1 opensuse-tumbleweed
9736 msgid ""
9737 "If MODE is CW<\\*(C`|-\\*(C'>, then the filename is interpreted as a command "
9738 "to which output is to be piped, and if MODE is CW<\\*(C`-|\\*(C'>, the "
9739 "filename is interpreted as a command that pipes output to us. In the two-"
9740 "argument (and one-argument) form, one should replace dash (CW<\\*(C`-"
9741 "\\*(C'>) with the command. See \"Using B<open()> for IPC\" in perlipc for "
9742 "more examples of this. (You are not allowed to CW<\\*(C`open\\*(C'> to a "
9743 "command that pipes both in I<and> out, but see IPC::Open2, IPC::Open3, and "
9744 "\"Bidirectional Communication with Another Process\" in perlipc for "
9745 "alternatives.)"
9746 msgstr ""
9747
9748 #. type: Plain text
9749 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9750 #: opensuse-leap-16-1 opensuse-tumbleweed
9751 #, no-wrap
9752 msgid ""
9753 "\\& open(my $article_fh, \"-|\", \"caesar E<lt>$article\") # decrypt\n"
9754 "\\& # article\n"
9755 "\\& or die \"Can\\*(Aqt start caesar: $!\";\n"
9756 "\\&\n"
9757 "\\& open(my $article_fh, \"caesar E<lt>$article |\") # ditto\n"
9758 "\\& or die \"Can\\*(Aqt start caesar: $!\";\n"
9759 "\\&\n"
9760 "\\& open(my $out_fh, \"|-\", \"sort E<gt>Tmp$$\") # $$ is our process id\n"
9761 "\\& or die \"Can\\*(Aqt start sort: $!\";\n"
9762 msgstr ""
9763
9764 #. type: Plain text
9765 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9766 #: opensuse-leap-16-1 opensuse-tumbleweed
9767 msgid ""
9768 "In the form of pipe opens taking three or more arguments, if LIST is "
9769 "specified (extra arguments after the command name) then LIST becomes "
9770 "arguments to the command invoked if the platform supports it. The meaning "
9771 "of \\&CW<\\*(C`open\\*(C'> with more than three arguments for non-pipe modes "
9772 "is not yet defined, but experimental \"layers\" may give extra LIST "
9773 "arguments meaning."
9774 msgstr ""
9775
9776 #. type: Plain text
9777 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9778 #: opensuse-leap-16-1 opensuse-tumbleweed
9779 msgid ""
9780 "If you open a pipe on the command CW<\\*(C`-\\*(C'> (that is, specify either "
9781 "CW<\\*(C`|-\\*(C'> or CW<\\*(C`-|\\*(C'> with the one- or two-argument forms "
9782 "of \\&CW<\\*(C`open\\*(C'>), an implicit CW<\\*(C`fork\\*(C'> is done, so "
9783 "CW<\\*(C`open\\*(C'> returns twice: in the parent process it returns the pid "
9784 "of the child process, and in the child process it returns (a defined) "
9785 "CW<0>. Use CW<defined($pid)> or CW<\\*(C`//\\*(C'> to determine whether the "
9786 "open was successful."
9787 msgstr ""
9788
9789 #. type: Plain text
9790 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9791 #: opensuse-leap-16-1 opensuse-tumbleweed
9792 msgid "For example, use either"
9793 msgstr ""
9794
9795 #. type: Plain text
9796 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9797 #: opensuse-leap-16-1 opensuse-tumbleweed
9798 #, no-wrap
9799 msgid ""
9800 "\\& my $child_pid = open(my $from_kid, \"-|\")\n"
9801 "\\& // die \"Can\\*(Aqt fork: $!\";\n"
9802 msgstr ""
9803
9804 #. type: IX
9805 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9806 #: opensuse-leap-16-1 opensuse-tumbleweed
9807 #, no-wrap
9808 msgid "or"
9809 msgstr ""
9810
9811 #. type: Plain text
9812 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9813 #: opensuse-leap-16-1 opensuse-tumbleweed
9814 #, no-wrap
9815 msgid ""
9816 "\\& my $child_pid = open(my $to_kid, \"|-\")\n"
9817 "\\& // die \"Can\\*(Aqt fork: $!\";\n"
9818 msgstr ""
9819
9820 #. type: Plain text
9821 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9822 #: opensuse-leap-16-1 opensuse-tumbleweed
9823 msgid "followed by"
9824 msgstr ""
9825
9826 #. type: Plain text
9827 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9828 #: opensuse-leap-16-1 opensuse-tumbleweed
9829 #, no-wrap
9830 msgid ""
9831 "\\& if ($child_pid) {\n"
9832 "\\& # am the parent:\n"
9833 "\\& # either write $to_kid or else read $from_kid\n"
9834 "\\& ...\n"
9835 "\\& waitpid $child_pid, 0;\n"
9836 "\\& } else {\n"
9837 "\\& # am the child; use STDIN/STDOUT normally\n"
9838 "\\& ...\n"
9839 "\\& exit;\n"
9840 "\\& }\n"
9841 msgstr ""
9842
9843 #. type: Plain text
9844 #: debian-trixie debian-unstable
9845 msgid ""
9846 "The filehandle behaves normally for the parent, but I/O to that filehandle "
9847 "is piped from/to the STDOUT/STDIN of the child process. In the child "
9848 "process, the filehandle isn't opened--I/O happens from/to the new STDOUT/"
9849 "STDIN. Typically this is used like the normal piped open when you want to "
9850 "exercise more control over just how the pipe command gets executed, such as "
9851 "when running setuid and you don't want to have to scan shell commands for "
9852 "metacharacters."
9853 msgstr ""
9854
9855 #. type: Plain text
9856 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9857 #: opensuse-leap-16-1 opensuse-tumbleweed
9858 msgid "The following blocks are more or less equivalent:"
9859 msgstr ""
9860
9861 #. type: Plain text
9862 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9863 #: opensuse-leap-16-1 opensuse-tumbleweed
9864 #, no-wrap
9865 msgid ""
9866 "\\& open(my $fh, \"|tr \\*(Aq[a-z]\\*(Aq \\*(Aq[A-Z]\\*(Aq\");\n"
9867 "\\& open(my $fh, \"|-\", \"tr \\*(Aq[a-z]\\*(Aq \\*(Aq[A-Z]\\*(Aq\");\n"
9868 "\\& open(my $fh, \"|-\") || exec \\*(Aqtr\\*(Aq, \\*(Aq[a-z]\\*(Aq, \\*(Aq[A-Z]\\*(Aq;\n"
9869 "\\& open(my $fh, \"|-\", \"tr\", \\*(Aq[a-z]\\*(Aq, \\*(Aq[A-Z]\\*(Aq);\n"
9870 "\\&\n"
9871 "\\& open(my $fh, \"cat -n \\*(Aq$file\\*(Aq|\");\n"
9872 "\\& open(my $fh, \"-|\", \"cat -n \\*(Aq$file\\*(Aq\");\n"
9873 "\\& open(my $fh, \"-|\") || exec \"cat\", \"-n\", $file;\n"
9874 "\\& open(my $fh, \"-|\", \"cat\", \"-n\", $file);\n"
9875 msgstr ""
9876
9877 #. type: Plain text
9878 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9879 #: opensuse-leap-16-1 opensuse-tumbleweed
9880 msgid ""
9881 "The last two examples in each block show the pipe as \"list form\", which is "
9882 "not yet supported on all platforms. (If your platform has a real "
9883 "\\&CW<\\*(C`fork\\*(C'>, such as Linux and macOS, you can use the list form; "
9884 "it also works on Windows with Perl 5.22 or later.) You would want to use the "
9885 "list form of the pipe so you can pass literal arguments to the command "
9886 "without risk of the shell interpreting any shell metacharacters in them. "
9887 "However, this also bars you from opening pipes to commands that "
9888 "intentionally contain shell metacharacters, such as:"
9889 msgstr ""
9890
9891 #. type: Plain text
9892 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9893 #: opensuse-leap-16-1 opensuse-tumbleweed
9894 #, no-wrap
9895 msgid ""
9896 "\\& open(my $fh, \"|cat -n | expand -4 | lpr\")\n"
9897 "\\& || die \"Can\\*(Aqt open pipeline to lpr: $!\";\n"
9898 msgstr ""
9899
9900 #. type: Plain text
9901 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9902 #: opensuse-leap-16-1 opensuse-tumbleweed
9903 msgid "See \"Safe Pipe Opens\" in perlipc for more examples of this."
9904 msgstr ""
9905
9906 #. type: IX
9907 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9908 #: opensuse-leap-16-1 opensuse-tumbleweed
9909 #, no-wrap
9910 msgid "Duping filehandles"
9911 msgstr ""
9912
9913 #. type: Plain text
9914 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9915 #: opensuse-leap-16-1 opensuse-tumbleweed
9916 msgid ""
9917 "You may also, in the Bourne shell tradition, specify an EXPR beginning with "
9918 "CW<\\*(C`E<gt>&\\*(C'>, in which case the rest of the string is interpreted "
9919 "as the name of a filehandle (or file descriptor, if numeric) to be duped (as "
9920 "in B<dup>\\|(2)) and opened. You may use CW<\\*(C`&\\*(C'> after "
9921 "CW<\\*(C`E<gt>\\*(C'>, \\&CW<\\*(C`E<gt>E<gt>\\*(C'>, CW<\\*(C`E<lt>\\*(C'>, "
9922 "CW<\\*(C`+E<gt>\\*(C'>, CW<\\*(C`+E<gt>E<gt>\\*(C'>, and "
9923 "CW<\\*(C`+E<lt>\\*(C'>. The mode you specify should match the mode of the "
9924 "original filehandle. (Duping a filehandle does not take into account any "
9925 "existing contents of IO buffers.) If you use the three-argument form, then "
9926 "you can pass either a number, the name of a filehandle, or the normal "
9927 "\"reference to a glob\"."
9928 msgstr ""
9929
9930 #. type: Plain text
9931 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9932 #: opensuse-leap-16-1 opensuse-tumbleweed
9933 msgid ""
9934 "Here is a script that saves, redirects, and restores CW<\\*(C`STDOUT\\*(C'> "
9935 "and \\&CW<\\*(C`STDERR\\*(C'> using various methods:"
9936 msgstr ""
9937
9938 #. type: Plain text
9939 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9940 #: opensuse-leap-16-1 opensuse-tumbleweed
9941 #, no-wrap
9942 msgid ""
9943 "\\& #!/usr/bin/perl\n"
9944 "\\& open(my $oldout, \"E<gt>&STDOUT\")\n"
9945 "\\& or die \"Can\\*(Aqt dup STDOUT: $!\";\n"
9946 "\\& open(OLDERR, \"E<gt>&\", \\e*STDERR)\n"
9947 "\\& or die \"Can\\*(Aqt dup STDERR: $!\";\n"
9948 "\\&\n"
9949 "\\& open(STDOUT, \\*(AqE<gt>\\*(Aq, \"foo.out\")\n"
9950 "\\& or die \"Can\\*(Aqt redirect STDOUT: $!\";\n"
9951 "\\& open(STDERR, \"E<gt>&STDOUT\")\n"
9952 "\\& or die \"Can\\*(Aqt dup STDOUT: $!\";\n"
9953 "\\&\n"
9954 "\\& select STDERR; $| = 1; # make unbuffered\n"
9955 "\\& select STDOUT; $| = 1; # make unbuffered\n"
9956 "\\&\n"
9957 "\\& print STDOUT \"stdout 1\\en\"; # this works for\n"
9958 "\\& print STDERR \"stderr 1\\en\"; # subprocesses too\n"
9959 "\\&\n"
9960 "\\& open(STDOUT, \"E<gt>&\", $oldout)\n"
9961 "\\& or die \"Can\\*(Aqt dup \\e$oldout: $!\";\n"
9962 "\\& open(STDERR, \"E<gt>&OLDERR\")\n"
9963 "\\& or die \"Can\\*(Aqt dup OLDERR: $!\";\n"
9964 "\\&\n"
9965 "\\& print STDOUT \"stdout 2\\en\";\n"
9966 "\\& print STDERR \"stderr 2\\en\";\n"
9967 msgstr ""
9968
9969 #. type: Plain text
9970 #: debian-trixie debian-unstable
9971 msgid ""
9972 "If you specify CW<\\*(AqE<lt>&=X\\*(Aq>, where CW<\\*(C`X\\*(C'> is a file "
9973 "descriptor number or a filehandle, then Perl will do an equivalent of C's "
9974 "B<fdopen>\\|(3) of that file descriptor (and not call B<dup>\\|(2)); this is "
9975 "more parsimonious of file descriptors. For example:"
9976 msgstr ""
9977
9978 #. type: Plain text
9979 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9980 #: opensuse-leap-16-1 opensuse-tumbleweed
9981 #, no-wrap
9982 msgid ""
9983 "\\& # open for input, reusing the fileno of $fd\n"
9984 "\\& open(my $fh, \"E<lt>&=\", $fd)\n"
9985 msgstr ""
9986
9987 #. type: Plain text
9988 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9989 #: opensuse-leap-16-1 opensuse-tumbleweed
9990 #, no-wrap
9991 msgid "\\& open(my $fh, \"E<lt>&=$fd\")\n"
9992 msgstr ""
9993
9994 #. type: Plain text
9995 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
9996 #: opensuse-leap-16-1 opensuse-tumbleweed
9997 #, no-wrap
9998 msgid ""
9999 "\\& # open for append, using the fileno of $oldfh\n"
10000 "\\& open(my $fh, \"E<gt>E<gt>&=\", $oldfh)\n"
10001 msgstr ""
10002
10003 #. type: Plain text
10004 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10005 #: opensuse-leap-16-1 opensuse-tumbleweed
10006 msgid ""
10007 "Being parsimonious on filehandles is also useful (besides being "
10008 "parsimonious) for example when something is dependent on file descriptors, "
10009 "like for example locking using \\&CW<\\*(C`flock\\*(C'>. If you do just "
10010 "\\&CW<\\*(C`open(my $A, \"E<gt>E<gt>&\", $B)\\*(C'>, the filehandle CW<$A> "
10011 "will not have the same file descriptor as CW<$B>, and therefore "
10012 "CW<flock($A)> will not \\&CW<flock($B)> nor vice versa. But with "
10013 "CW<\\*(C`open(my $A, \"E<gt>E<gt>&=\", $B)\\*(C'>, the filehandles will "
10014 "share the same underlying system file descriptor."
10015 msgstr ""
10016
10017 #. type: Plain text
10018 #: debian-trixie debian-unstable
10019 msgid ""
10020 "Note that under Perls older than 5.8.0, Perl uses the standard C library's' "
10021 "\\&B<fdopen>\\|(3) to implement the CW<\\*(C`=\\*(C'> functionality. On "
10022 "many Unix systems, \\&B<fdopen>\\|(3) fails when file descriptors exceed a "
10023 "certain value, typically 255. For Perls 5.8.0 and later, PerlIO is (most "
10024 "often) the default."
10025 msgstr ""
10026
10027 #. type: IX
10028 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10029 #: opensuse-leap-16-1 opensuse-tumbleweed
10030 #, no-wrap
10031 msgid "Legacy usage"
10032 msgstr ""
10033
10034 #. type: Plain text
10035 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10036 #: opensuse-leap-16-1 opensuse-tumbleweed
10037 msgid ""
10038 "This section describes ways to call CW<\\*(C`open\\*(C'> outside of best "
10039 "practices; you may encounter these uses in older code. Perl does not "
10040 "consider their use deprecated, exactly, but neither is it recommended in new "
10041 "code, for the sake of clarity and readability."
10042 msgstr ""
10043
10044 #. type: IX
10045 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10046 #: opensuse-leap-16-1 opensuse-tumbleweed
10047 #, no-wrap
10048 msgid "Specifying mode and filename as a single argument"
10049 msgstr ""
10050
10051 #. type: Plain text
10052 #: debian-trixie debian-unstable
10053 msgid ""
10054 "In the one- and two-argument forms of the call, the mode and filename should "
10055 "be concatenated (in that order), preferably separated by white space. You "
10056 "can--but shouldn't--omit the mode in these forms when that mode is "
10057 "CW<\\*(C`E<lt>\\*(C'>. It is safe to use the two-argument form of "
10058 "\\&CW<\\*(C`open\\*(C'> if the filename argument is a known literal."
10059 msgstr ""
10060
10061 #. type: Plain text
10062 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10063 #: opensuse-leap-16-1 opensuse-tumbleweed
10064 #, no-wrap
10065 msgid ""
10066 "\\& open(my $dbase, \"+E<lt>dbase.mine\") # ditto\n"
10067 "\\& or die \"Can\\*(Aqt open \\*(Aqdbase.mine\\*(Aq for update: $!\";\n"
10068 msgstr ""
10069
10070 #. type: Plain text
10071 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10072 #: opensuse-leap-16-1 opensuse-tumbleweed
10073 msgid ""
10074 "In the two-argument (and one-argument) form, opening CW<\\*(C`E<lt>-\\*(C'> "
10075 "or CW<\\*(C`-\\*(C'> opens STDIN and opening CW<\\*(C`E<gt>-\\*(C'> opens "
10076 "STDOUT."
10077 msgstr ""
10078
10079 #. type: Plain text
10080 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10081 #: opensuse-leap-16-1 opensuse-tumbleweed
10082 msgid ""
10083 "New code should favor the three-argument form of CW<\\*(C`open\\*(C'> over "
10084 "this older form. Declaring the mode and the filename as two distinct "
10085 "arguments avoids any confusion between the two."
10086 msgstr ""
10087
10088 #. type: IX
10089 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10090 #: opensuse-leap-16-1 opensuse-tumbleweed
10091 #, no-wrap
10092 msgid "Assigning a filehandle to a bareword"
10093 msgstr ""
10094
10095 #. type: Plain text
10096 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10097 #: opensuse-leap-16-1 opensuse-tumbleweed
10098 msgid "An older style is to use a bareword as the filehandle, as"
10099 msgstr ""
10100
10101 #. type: Plain text
10102 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10103 #: opensuse-leap-16-1 opensuse-tumbleweed
10104 #, no-wrap
10105 msgid ""
10106 "\\& open(FH, \"E<lt>\", \"input.txt\")\n"
10107 "\\& or die \"Can\\*(Aqt open E<lt> input.txt: $!\";\n"
10108 msgstr ""
10109
10110 #. type: Plain text
10111 #: debian-trixie debian-unstable
10112 msgid ""
10113 "Then you can use CW<\\*(C`FH\\*(C'> as the filehandle, in CW<\\*(C`close "
10114 "FH\\*(C'> and CW<\\*(C`E<lt>FHE<gt>\\*(C'> and so on. Note that it's a "
10115 "global variable, so this form is not recommended when dealing with "
10116 "filehandles other than Perl's built-in ones (e.g. STDOUT and STDIN). In "
10117 "fact, using a bareword for the filehandle is an error when the "
10118 "\\&CW<\"bareword_filehandles\"> feature has been disabled. This feature is "
10119 "disabled automatically when in the scope of CW<\\*(C`use v5.36.0\\*(C'> or "
10120 "later."
10121 msgstr ""
10122
10123 #. type: IX
10124 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10125 #: opensuse-leap-16-1 opensuse-tumbleweed
10126 #, no-wrap
10127 msgid "Calling open with one argument via global variables"
10128 msgstr ""
10129
10130 #. type: Plain text
10131 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10132 #: opensuse-leap-16-1 opensuse-tumbleweed
10133 msgid ""
10134 "As a shortcut, a one-argument call takes the filename from the global scalar "
10135 "variable of the same name as the bareword filehandle:"
10136 msgstr ""
10137
10138 #. type: Plain text
10139 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10140 #: opensuse-leap-16-1 opensuse-tumbleweed
10141 #, no-wrap
10142 msgid ""
10143 "\\& $ARTICLE = 100;\n"
10144 "\\& open(ARTICLE)\n"
10145 "\\& or die \"Can\\*(Aqt find article $ARTICLE: $!\\en\";\n"
10146 msgstr ""
10147
10148 #. type: Plain text
10149 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10150 #: opensuse-leap-16-1 opensuse-tumbleweed
10151 msgid ""
10152 "Here CW<$ARTICLE> must be a global scalar variable in the same package as "
10153 "the filehandle - not one declared with CW<\\*(C`my\\*(C'> or "
10154 "\\&CW<\\*(C`state\\*(C'>."
10155 msgstr ""
10156
10157 #. type: IX
10158 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10159 #: opensuse-leap-16-1 opensuse-tumbleweed
10160 #, no-wrap
10161 msgid "Other considerations"
10162 msgstr ""
10163
10164 #. type: IX
10165 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10166 #: opensuse-leap-16-1 opensuse-tumbleweed
10167 #, no-wrap
10168 msgid "Automatic filehandle closure"
10169 msgstr ""
10170
10171 #. type: Plain text
10172 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10173 #: opensuse-leap-16-1 opensuse-tumbleweed
10174 msgid ""
10175 "The filehandle will be closed when its reference count reaches zero. If it "
10176 "is a lexically scoped variable declared with CW<\\*(C`my\\*(C'>, that "
10177 "usually means the end of the enclosing scope. However, this automatic close "
10178 "does not check for errors, so it is better to explicitly close filehandles, "
10179 "especially those used for writing:"
10180 msgstr ""
10181
10182 #. type: Plain text
10183 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10184 #: opensuse-leap-16-1 opensuse-tumbleweed
10185 #, no-wrap
10186 msgid ""
10187 "\\& close($handle)\n"
10188 "\\& || warn \"close failed: $!\";\n"
10189 msgstr ""
10190
10191 #. type: IX
10192 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10193 #: opensuse-leap-16-1 opensuse-tumbleweed
10194 #, no-wrap
10195 msgid "Automatic pipe flushing"
10196 msgstr ""
10197
10198 #. type: Plain text
10199 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10200 #: opensuse-leap-16-1 opensuse-tumbleweed
10201 msgid ""
10202 "Perl will attempt to flush all files opened for output before any operation "
10203 "that may do a fork, but this may not be supported on some platforms (see "
10204 "perlport). To be safe, you may need to set CW<$|> (CW<$AUTOFLUSH> in "
10205 "English) or call the CW<\\*(C`autoflush\\*(C'> method of "
10206 "CW<\\*(C`IO::Handle\\*(C'> on any open handles."
10207 msgstr ""
10208
10209 #. type: Plain text
10210 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10211 #: opensuse-leap-16-1 opensuse-tumbleweed
10212 msgid ""
10213 "On systems that support a close-on-exec flag on files, the flag will be set "
10214 "for the newly opened file descriptor as determined by the value of CW<$^F>. "
10215 "See \"$^F\" in perlvar."
10216 msgstr ""
10217
10218 #. type: Plain text
10219 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10220 #: opensuse-leap-16-1 opensuse-tumbleweed
10221 msgid ""
10222 "Closing any piped filehandle causes the parent process to wait for the child "
10223 "to finish, then returns the status value in CW<$?> and \\&CW<\\*(C`$"
10224 "{^CHILD_ERROR_NATIVE}\\*(C'>."
10225 msgstr ""
10226
10227 #. type: IX
10228 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10229 #: opensuse-leap-16-1 opensuse-tumbleweed
10230 #, no-wrap
10231 msgid "Direct versus by-reference assignment of filehandles"
10232 msgstr ""
10233
10234 #. type: Plain text
10235 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10236 #: opensuse-leap-16-1 opensuse-tumbleweed
10237 msgid ""
10238 "If FILEHANDLE -- the first argument in a call to CW<\\*(C`open\\*(C'> -- is "
10239 "an undefined scalar variable (or array or hash element), a new filehandle is "
10240 "autovivified, meaning that the variable is assigned a reference to a newly "
10241 "allocated anonymous filehandle. Otherwise if FILEHANDLE is an expression, "
10242 "its value is the real filehandle. (This is considered a symbolic reference, "
10243 "so CW<\\*(C`use strict \"refs\"\\*(C'> should I<not> be in effect.)"
10244 msgstr ""
10245
10246 #. type: IX
10247 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10248 #: opensuse-leap-16-1 opensuse-tumbleweed
10249 #, no-wrap
10250 msgid "Whitespace and special characters in the filename argument"
10251 msgstr ""
10252
10253 #. type: Plain text
10254 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10255 #: opensuse-leap-16-1 opensuse-tumbleweed
10256 msgid ""
10257 "The filename passed to the one- and two-argument forms of "
10258 "\\&CW<\\*(C`open\\*(C'> will have leading and trailing whitespace deleted "
10259 "and normal redirection characters honored. This property, known as \"magic "
10260 "open\", can often be used to good effect. A user could specify a filename "
10261 "of \\&I<\"rsh cat file |\">, or you could change certain filenames as needed:"
10262 msgstr ""
10263
10264 #. type: Plain text
10265 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10266 #: opensuse-leap-16-1 opensuse-tumbleweed
10267 #, no-wrap
10268 msgid ""
10269 "\\& $filename =~ s/(.*\\e.gz)\\es*$/gzip -dc E<lt> $1|/;\n"
10270 "\\& open(my $fh, $filename)\n"
10271 "\\& or die \"Can\\*(Aqt open $filename: $!\";\n"
10272 msgstr ""
10273
10274 #. type: Plain text
10275 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10276 #: opensuse-leap-16-1 opensuse-tumbleweed
10277 msgid ""
10278 "Use the three-argument form to open a file with arbitrary weird characters "
10279 "in it,"
10280 msgstr ""
10281
10282 #. type: Plain text
10283 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10284 #: opensuse-leap-16-1 opensuse-tumbleweed
10285 #, no-wrap
10286 msgid ""
10287 "\\& open(my $fh, \"E<lt>\", $file)\n"
10288 "\\& || die \"Can\\*(Aqt open $file: $!\";\n"
10289 msgstr ""
10290
10291 #. type: Plain text
10292 #: debian-trixie debian-unstable
10293 msgid ""
10294 "otherwise it's necessary to protect any leading and trailing whitespace:"
10295 msgstr ""
10296
10297 #. type: Plain text
10298 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10299 #: opensuse-leap-16-1 opensuse-tumbleweed
10300 #, no-wrap
10301 msgid ""
10302 "\\& $file =~ s#^(\\es)#./$1#;\n"
10303 "\\& open(my $fh, \"E<lt> $file\\e0\")\n"
10304 "\\& || die \"Can\\*(Aqt open $file: $!\";\n"
10305 msgstr ""
10306
10307 #. type: Plain text
10308 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10309 #: opensuse-leap-16-1 opensuse-tumbleweed
10310 msgid ""
10311 "(this may not work on some bizarre filesystems). One should conscientiously "
10312 "choose between the I<magic> and I<three-argument> form of "
10313 "CW<\\*(C`open\\*(C'>:"
10314 msgstr ""
10315
10316 #. type: Plain text
10317 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10318 #: opensuse-leap-16-1 opensuse-tumbleweed
10319 #, no-wrap
10320 msgid "\\& open(my $in, $ARGV[0]) || die \"Can\\*(Aqt open $ARGV[0]: $!\";\n"
10321 msgstr ""
10322
10323 #. type: Plain text
10324 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10325 #: opensuse-leap-16-1 opensuse-tumbleweed
10326 msgid ""
10327 "will allow the user to specify an argument of the form CW<\"rsh cat file |"
10328 "\">, but will not work on a filename that happens to have a trailing space, "
10329 "while"
10330 msgstr ""
10331
10332 #. type: Plain text
10333 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10334 #: opensuse-leap-16-1 opensuse-tumbleweed
10335 #, no-wrap
10336 msgid ""
10337 "\\& open(my $in, \"E<lt>\", $ARGV[0])\n"
10338 "\\& || die \"Can\\*(Aqt open $ARGV[0]: $!\";\n"
10339 msgstr ""
10340
10341 #. type: Plain text
10342 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10343 #: opensuse-leap-16-1 opensuse-tumbleweed
10344 msgid ""
10345 "will have exactly the opposite restrictions. (However, some shells support "
10346 "the syntax CW<\\*(C`perl your_program.pl E<lt>( rsh cat file )\\*(C'>, which "
10347 "produces a filename that can be opened normally.)"
10348 msgstr ""
10349
10350 #. type: IX
10351 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10352 #: opensuse-leap-16-1 opensuse-tumbleweed
10353 #, no-wrap
10354 msgid "Invoking C-style open"
10355 msgstr ""
10356
10357 #. type: Plain text
10358 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10359 #: opensuse-leap-16-1 opensuse-tumbleweed
10360 msgid ""
10361 "If you want a \"real\" C B<open>\\|(2), then you should use the "
10362 "\\&CW<\\*(C`sysopen\\*(C'> function, which involves no such magic (but uses "
10363 "different filemodes than Perl \\&CW<\\*(C`open\\*(C'>, which corresponds to "
10364 "C B<fopen>\\|(3)). This is another way to protect your filenames from "
10365 "interpretation. For example:"
10366 msgstr ""
10367
10368 #. type: Plain text
10369 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10370 #: opensuse-leap-16-1 opensuse-tumbleweed
10371 #, no-wrap
10372 msgid ""
10373 "\\& use IO::Handle;\n"
10374 "\\& sysopen(my $fh, $path, O_RDWR|O_CREAT|O_EXCL)\n"
10375 "\\& or die \"Can\\*(Aqt open $path: $!\";\n"
10376 "\\& $fh-E<gt>autoflush(1);\n"
10377 "\\& print $fh \"stuff $$\\en\";\n"
10378 "\\& seek($fh, 0, 0);\n"
10379 "\\& print \"File contains: \", readline($fh);\n"
10380 msgstr ""
10381
10382 #. type: Plain text
10383 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10384 #: opensuse-leap-16-1 opensuse-tumbleweed
10385 msgid ""
10386 "See CW<\\*(C`seek\\*(C'> for some details about mixing reading and writing."
10387 msgstr ""
10388
10389 #. type: IX
10390 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10391 #: opensuse-leap-16-1 opensuse-tumbleweed
10392 #, no-wrap
10393 msgid "Portability issues"
10394 msgstr ""
10395
10396 #. type: Plain text
10397 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10398 #: opensuse-leap-16-1 opensuse-tumbleweed
10399 msgid "See \"open\" in perlport."
10400 msgstr ""
10401
10402 #. type: IX
10403 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10404 #: opensuse-leap-16-1 opensuse-tumbleweed
10405 #, no-wrap
10406 msgid "opendir DIRHANDLE,EXPR"
10407 msgstr ""
10408
10409 #. type: IX
10410 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10411 #: opensuse-leap-16-1 opensuse-tumbleweed
10412 #, no-wrap
10413 msgid "opendir"
10414 msgstr ""
10415
10416 #. type: Plain text
10417 #: debian-trixie debian-unstable
10418 msgid ""
10419 "Opens a directory named EXPR for processing by \\&CW<\\*(C`readdir\\*(C'>, "
10420 "CW<\\*(C`telldir\\*(C'>, \\&CW<\\*(C`seekdir\\*(C'>, "
10421 "\\&CW<\\*(C`rewinddir\\*(C'>, and \\&CW<\\*(C`closedir\\*(C'>. Returns true "
10422 "if successful. DIRHANDLE may be an expression whose value can be used as an "
10423 "indirect dirhandle, usually the real dirhandle name. If DIRHANDLE is an "
10424 "undefined scalar variable (or array or hash element), the variable is "
10425 "assigned a reference to a new anonymous dirhandle; that is, it's "
10426 "autovivified. Dirhandles are the same objects as filehandles; an I/O object "
10427 "can only be open as one of these handle types at once."
10428 msgstr ""
10429
10430 #. type: Plain text
10431 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10432 #: opensuse-leap-16-1 opensuse-tumbleweed
10433 msgid "See the example at CW<\\*(C`readdir\\*(C'>."
10434 msgstr ""
10435
10436 #. type: IX
10437 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10438 #: opensuse-leap-16-1 opensuse-tumbleweed
10439 #, no-wrap
10440 msgid "ord EXPR"
10441 msgstr ""
10442
10443 #. type: IX
10444 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10445 #: opensuse-leap-16-1 opensuse-tumbleweed
10446 #, no-wrap
10447 msgid "ord encoding"
10448 msgstr ""
10449
10450 #. type: IX
10451 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10452 #: opensuse-leap-16-1 opensuse-tumbleweed
10453 #, no-wrap
10454 msgid "ord"
10455 msgstr ""
10456
10457 #. type: Plain text
10458 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10459 #: opensuse-leap-16-1 opensuse-tumbleweed
10460 msgid ""
10461 "Returns the code point of the first character of EXPR. If EXPR is an empty "
10462 "string, returns 0. If EXPR is omitted, uses \\&CW<$_>. (Note I<character>, "
10463 "not byte.)"
10464 msgstr ""
10465
10466 #. type: Plain text
10467 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10468 #: opensuse-leap-16-1 opensuse-tumbleweed
10469 msgid ""
10470 "For the reverse, see CW<\\*(C`chr\\*(C'>. See perlunicode for more about "
10471 "Unicode."
10472 msgstr ""
10473
10474 #. type: IX
10475 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10476 #: opensuse-leap-16-1 opensuse-tumbleweed
10477 #, no-wrap
10478 msgid "our VARLIST"
10479 msgstr ""
10480
10481 #. type: IX
10482 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10483 #: opensuse-leap-16-1 opensuse-tumbleweed
10484 #, no-wrap
10485 msgid "our global"
10486 msgstr ""
10487
10488 #. type: IX
10489 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10490 #: opensuse-leap-16-1 opensuse-tumbleweed
10491 #, no-wrap
10492 msgid "our TYPE VARLIST"
10493 msgstr ""
10494
10495 #. type: IX
10496 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10497 #: opensuse-leap-16-1 opensuse-tumbleweed
10498 #, no-wrap
10499 msgid "our VARLIST : ATTRS"
10500 msgstr ""
10501
10502 #. type: IX
10503 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10504 #: opensuse-leap-16-1 opensuse-tumbleweed
10505 #, no-wrap
10506 msgid "our TYPE VARLIST : ATTRS"
10507 msgstr ""
10508
10509 #. type: Plain text
10510 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10511 #: opensuse-leap-16-1 opensuse-tumbleweed
10512 msgid ""
10513 "\\&CW<\\*(C`our\\*(C'> makes a lexical alias to a package (i.e. global) "
10514 "variable of the same name in the current package for use within the current "
10515 "lexical scope."
10516 msgstr ""
10517
10518 #. type: Plain text
10519 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10520 #: opensuse-leap-16-1 opensuse-tumbleweed
10521 msgid ""
10522 "\\&CW<\\*(C`our\\*(C'> has the same scoping rules as \\&CW<\\*(C`my\\*(C'> "
10523 "or CW<\\*(C`state\\*(C'>, meaning that it is only valid within a lexical "
10524 "scope. Unlike CW<\\*(C`my\\*(C'> and \\&CW<\\*(C`state\\*(C'>, which both "
10525 "declare new (lexical) variables, \\&CW<\\*(C`our\\*(C'> only creates an "
10526 "alias to an existing variable: a package variable of the same name."
10527 msgstr ""
10528
10529 #. type: Plain text
10530 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10531 #: opensuse-leap-16-1 opensuse-tumbleweed
10532 msgid ""
10533 "This means that when CW<\\*(C`use strict \\*(Aqvars\\*(Aq\\*(C'> is in "
10534 "effect, CW<\\*(C`our\\*(C'> lets you use a package variable without "
10535 "qualifying it with the package name, but only within the lexical scope of "
10536 "the \\&CW<\\*(C`our\\*(C'> declaration. This applies immediately--even "
10537 "within the same statement."
10538 msgstr ""
10539
10540 #. type: Plain text
10541 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10542 #: opensuse-leap-16-1 opensuse-tumbleweed
10543 #, no-wrap
10544 msgid ""
10545 "\\& package Foo;\n"
10546 "\\& use v5.36; # which implies \"use strict;\"\n"
10547 "\\&\n"
10548 "\\& $Foo::foo = 23;\n"
10549 "\\&\n"
10550 "\\& {\n"
10551 "\\& our $foo; # alias to $Foo::foo\n"
10552 "\\& print $foo; # prints 23\n"
10553 "\\& }\n"
10554 "\\&\n"
10555 "\\& print $Foo::foo; # prints 23\n"
10556 "\\&\n"
10557 "\\& print $foo; # ERROR: requires explicit package name\n"
10558 msgstr ""
10559
10560 #. type: Plain text
10561 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10562 #: opensuse-leap-16-1 opensuse-tumbleweed
10563 msgid ""
10564 "This works even if the package variable has not been used before, as package "
10565 "variables spring into existence when first used."
10566 msgstr ""
10567
10568 #. type: Plain text
10569 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10570 #: opensuse-leap-16-1 opensuse-tumbleweed
10571 #, no-wrap
10572 msgid ""
10573 "\\& package Foo;\n"
10574 "\\& use v5.36;\n"
10575 "\\&\n"
10576 "\\& our $foo = 23; # just like $Foo::foo = 23\n"
10577 "\\&\n"
10578 "\\& print $Foo::foo; # prints 23\n"
10579 msgstr ""
10580
10581 #. type: Plain text
10582 #: debian-trixie debian-unstable
10583 msgid ""
10584 "Because the variable becomes legal immediately under CW<\\*(C`use strict "
10585 "\\*(Aqvars\\*(Aq\\*(C'>, so long as there is no variable with that name is "
10586 "already in scope, you can then reference the package variable again even "
10587 "within the same statement."
10588 msgstr ""
10589
10590 #. type: Plain text
10591 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10592 #: opensuse-leap-16-1 opensuse-tumbleweed
10593 #, no-wrap
10594 msgid ""
10595 "\\& package Foo;\n"
10596 "\\& use v5.36;\n"
10597 "\\&\n"
10598 "\\& my $foo = $foo; # error, undeclared $foo on right-hand side\n"
10599 "\\& our $foo = $foo; # no errors\n"
10600 msgstr ""
10601
10602 #. type: Plain text
10603 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10604 #: opensuse-leap-16-1 opensuse-tumbleweed
10605 msgid ""
10606 "If more than one variable is listed, the list must be placed in parentheses."
10607 msgstr ""
10608
10609 #. type: Plain text
10610 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10611 #: opensuse-leap-16-1 opensuse-tumbleweed
10612 #, no-wrap
10613 msgid "\\& our($bar, $baz);\n"
10614 msgstr ""
10615
10616 #. type: Plain text
10617 #: debian-trixie debian-unstable
10618 msgid ""
10619 "Like CW<\\*(C`my\\*(C'>, CW<\\*(C`state\\*(C'>, and "
10620 "\\&CW<\\*(C`local\\*(C'>, CW<\\*(C`our\\*(C'> can operate on a variable "
10621 "anywhere it appears in an expression (aside from interpolation in strings). "
10622 "The declaration will not apply to additional uses of the same variable until "
10623 "the next statement. This means additional uses of that variable within the "
10624 "same statement will act as they would have before that declaration occurred, "
10625 "with the exception that it will still satisfy strict 'vars' and interpret "
10626 "that variable as the newly aliased package variable if it was not yet "
10627 "declared in that scope."
10628 msgstr ""
10629
10630 #. type: Plain text
10631 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10632 #: opensuse-leap-16-1 opensuse-tumbleweed
10633 #, no-wrap
10634 msgid ""
10635 "\\& package main;\n"
10636 "\\& my $x = 2;\n"
10637 "\\& foo($x, our $x = $x + 1, $x); # foo() receives (2, 3, 2)\n"
10638 "\\& foo($x, our $z = 5, $z); # foo() receives (3, 5, 5)\n"
10639 msgstr ""
10640
10641 #. type: Plain text
10642 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10643 #: opensuse-leap-16-1 opensuse-tumbleweed
10644 msgid ""
10645 "An CW<\\*(C`our\\*(C'> declaration declares an alias for a package variable "
10646 "that will be visible across its entire lexical scope, even across package "
10647 "boundaries. The package in which the variable is entered is determined at "
10648 "the point of the declaration, not at the point of use. This means the "
10649 "following behavior holds:"
10650 msgstr ""
10651
10652 #. type: Plain text
10653 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10654 #: opensuse-leap-16-1 opensuse-tumbleweed
10655 #, no-wrap
10656 msgid ""
10657 "\\& package Foo;\n"
10658 "\\& our $bar; # declares $Foo::bar for rest of lexical scope\n"
10659 "\\& $bar = 20;\n"
10660 "\\&\n"
10661 "\\& package Bar;\n"
10662 "\\& print $bar; # prints 20, as it refers to $Foo::bar\n"
10663 msgstr ""
10664
10665 #. type: Plain text
10666 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10667 #: opensuse-leap-16-1 opensuse-tumbleweed
10668 msgid ""
10669 "Multiple CW<\\*(C`our\\*(C'> declarations with the same name in the same "
10670 "lexical scope are allowed if they are in different packages. If they happen "
10671 "to be in the same package, Perl will emit warnings if you have asked for "
10672 "them, just like multiple CW<\\*(C`my\\*(C'> declarations. Unlike a second "
10673 "CW<\\*(C`my\\*(C'> declaration, which will bind the name to a fresh "
10674 "variable, a second CW<\\*(C`our\\*(C'> declaration in the same package, in "
10675 "the same scope, is merely redundant."
10676 msgstr ""
10677
10678 #. type: Plain text
10679 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10680 #: opensuse-leap-16-1 opensuse-tumbleweed
10681 #, no-wrap
10682 msgid ""
10683 "\\& use warnings;\n"
10684 "\\& package Foo;\n"
10685 "\\& our $bar; # declares $Foo::bar for rest of lexical scope\n"
10686 "\\& $bar = 20;\n"
10687 "\\&\n"
10688 "\\& package Bar;\n"
10689 "\\& our $bar = 30; # declares $Bar::bar for rest of lexical scope\n"
10690 "\\& print $bar; # prints 30\n"
10691 "\\&\n"
10692 "\\& our $bar; # emits warning but has no other effect\n"
10693 "\\& print $bar; # still prints 30\n"
10694 msgstr ""
10695
10696 #. type: Plain text
10697 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10698 #: opensuse-leap-16-1 opensuse-tumbleweed
10699 msgid ""
10700 "An CW<\\*(C`our\\*(C'> declaration may also have a list of attributes "
10701 "associated with it."
10702 msgstr ""
10703
10704 #. type: Plain text
10705 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10706 #: opensuse-leap-16-1 opensuse-tumbleweed
10707 msgid ""
10708 "The exact semantics and interface of TYPE and ATTRS are still evolving. "
10709 "TYPE is currently bound to the use of the fields pragma, and attributes are "
10710 "handled using the attributes pragma, or, starting from Perl 5.8.0, also via "
10711 "the Attribute::Handlers module. See \"Private Variables via B<my()>\" in "
10712 "perlsub for details."
10713 msgstr ""
10714
10715 #. type: Plain text
10716 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10717 #: opensuse-leap-16-1 opensuse-tumbleweed
10718 #, no-wrap
10719 msgid "\\& our ( undef, $min, $hour ) = localtime;\n"
10720 msgstr ""
10721
10722 #. type: Plain text
10723 #: debian-trixie debian-unstable
10724 msgid ""
10725 "\\&CW<\\*(C`our\\*(C'> differs from CW<\\*(C`use vars\\*(C'>, which allows "
10726 "use of an unqualified name I<only> within the affected package, but across "
10727 "scopes."
10728 msgstr ""
10729
10730 #. type: IX
10731 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10732 #: opensuse-leap-16-1 opensuse-tumbleweed
10733 #, no-wrap
10734 msgid "pack TEMPLATE,LIST"
10735 msgstr ""
10736
10737 #. type: IX
10738 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10739 #: opensuse-leap-16-1 opensuse-tumbleweed
10740 #, no-wrap
10741 msgid "pack"
10742 msgstr ""
10743
10744 #. type: Plain text
10745 #: debian-trixie debian-unstable
10746 msgid ""
10747 "Takes a LIST of values and converts it into a string using the rules given "
10748 "by the TEMPLATE. The resulting string is the concatenation of the converted "
10749 "values. Typically, each converted value looks like its machine-level "
10750 "representation. For example, on 32-bit machines an integer may be "
10751 "represented by a sequence of 4 bytes, which will in Perl be presented as a "
10752 "string that's 4 characters long."
10753 msgstr ""
10754
10755 #. type: Plain text
10756 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10757 #: opensuse-leap-16-1 opensuse-tumbleweed
10758 msgid "See perlpacktut for an introduction to this function."
10759 msgstr ""
10760
10761 #. type: Plain text
10762 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10763 #: opensuse-leap-16-1 opensuse-tumbleweed
10764 msgid ""
10765 "The TEMPLATE is a sequence of characters that give the order and type of "
10766 "values, as follows:"
10767 msgstr ""
10768
10769 #. type: Plain text
10770 #: debian-trixie debian-unstable
10771 #, no-wrap
10772 msgid ""
10773 "\\& a A string with arbitrary binary data, will be null padded.\n"
10774 "\\& A A text (ASCII) string, will be space padded.\n"
10775 "\\& Z A null-terminated (ASCIZ) string, will be null padded.\n"
10776 "\\&\n"
10777 "\\& b A bit string (ascending bit order inside each byte,\n"
10778 "\\& like vec()).\n"
10779 "\\& B A bit string (descending bit order inside each byte).\n"
10780 "\\& h A hex string (low nybble first).\n"
10781 "\\& H A hex string (high nybble first).\n"
10782 "\\&\n"
10783 "\\& c A signed char (8-bit) value.\n"
10784 "\\& C An unsigned char (octet) value.\n"
10785 "\\& W An unsigned char value (can be greater than 255).\n"
10786 "\\&\n"
10787 "\\& s A signed short (16-bit) value.\n"
10788 "\\& S An unsigned short value.\n"
10789 "\\&\n"
10790 "\\& l A signed long (32-bit) value.\n"
10791 "\\& L An unsigned long value.\n"
10792 "\\&\n"
10793 "\\& q A signed quad (64-bit) value.\n"
10794 "\\& Q An unsigned quad value.\n"
10795 "\\& (Quads are available only if your system supports 64-bit\n"
10796 "\\& integer values _and_ if Perl has been compiled to support\n"
10797 "\\& those. Raises an exception otherwise.)\n"
10798 "\\&\n"
10799 "\\& i A signed integer value.\n"
10800 "\\& I An unsigned integer value.\n"
10801 "\\& (This \\*(Aqinteger\\*(Aq is _at_least_ 32 bits wide. Its exact\n"
10802 "\\& size depends on what a local C compiler calls \\*(Aqint\\*(Aq.)\n"
10803 "\\&\n"
10804 "\\& n An unsigned short (16-bit) in \"network\" (big-endian) order.\n"
10805 "\\& N An unsigned long (32-bit) in \"network\" (big-endian) order.\n"
10806 "\\& v An unsigned short (16-bit) in \"VAX\" (little-endian) order.\n"
10807 "\\& V An unsigned long (32-bit) in \"VAX\" (little-endian) order.\n"
10808 "\\&\n"
10809 "\\& j A Perl internal signed integer value (IV).\n"
10810 "\\& J A Perl internal unsigned integer value (UV).\n"
10811 "\\&\n"
10812 "\\& f A single-precision float in native format.\n"
10813 "\\& d A double-precision float in native format.\n"
10814 "\\&\n"
10815 "\\& F A Perl internal floating-point value (NV) in native format\n"
10816 "\\& D A float of long-double precision in native format.\n"
10817 "\\& (Long doubles are available only if your system supports\n"
10818 "\\& long double values. Raises an exception otherwise.\n"
10819 "\\& Note that there are different long double formats.)\n"
10820 "\\&\n"
10821 "\\& p A pointer to a null-terminated string.\n"
10822 "\\& P A pointer to a structure (fixed-length string).\n"
10823 "\\&\n"
10824 "\\& u A uuencoded string.\n"
10825 "\\& U A Unicode character number. Encodes to a character in char-\n"
10826 "\\& acter mode and UTF-8 (or UTF-EBCDIC in EBCDIC platforms) in\n"
10827 "\\& byte mode. Also on EBCDIC platforms, the character number will\n"
10828 "\\& be the native EBCDIC value for character numbers below 256.\n"
10829 "\\& This allows most programs using this feature to not have to\n"
10830 "\\& care which type of platform they are running on.\n"
10831 "\\&\n"
10832 "\\& w A BER compressed integer (not an ASN.1 BER, see perlpacktut\n"
10833 "\\& for details). Its bytes represent an unsigned integer in\n"
10834 "\\& base 128, most significant digit first, with as few digits\n"
10835 "\\& as possible. Bit eight (the high bit) is set on each byte\n"
10836 "\\& except the last.\n"
10837 "\\&\n"
10838 "\\& x A null byte (a.k.a ASCII NUL, \"\\e000\", chr(0))\n"
10839 "\\& X Back up a byte.\n"
10840 "\\& @ Null-fill or truncate to absolute position, counted from the\n"
10841 "\\& start of the innermost ()-group.\n"
10842 "\\& . Null-fill or truncate to absolute position specified by\n"
10843 "\\& the value.\n"
10844 "\\& ( Start of a ()-group.\n"
10845 msgstr ""
10846
10847 #. type: Plain text
10848 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10849 #: opensuse-leap-16-1 opensuse-tumbleweed
10850 msgid ""
10851 "One or more modifiers below may optionally follow certain letters in the "
10852 "TEMPLATE (the second column lists letters for which the modifier is valid):"
10853 msgstr ""
10854
10855 #. type: Plain text
10856 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10857 #: opensuse-leap-16-1 opensuse-tumbleweed
10858 #, no-wrap
10859 msgid ""
10860 "\\& ! sSlLiI Forces native (short, long, int) sizes instead\n"
10861 "\\& of fixed (16-/32-bit) sizes.\n"
10862 "\\&\n"
10863 "\\& ! xX Make x and X act as alignment commands.\n"
10864 "\\&\n"
10865 "\\& ! nNvV Treat integers as signed instead of unsigned.\n"
10866 "\\&\n"
10867 "\\& ! @. Specify position as byte offset in the internal\n"
10868 "\\& representation of the packed string. Efficient\n"
10869 "\\& but dangerous.\n"
10870 "\\&\n"
10871 "\\& E<gt> sSiIlLqQ Force big-endian byte-order on the type.\n"
10872 "\\& jJfFdDpP (The \"big end\" touches the construct.)\n"
10873 "\\&\n"
10874 "\\& E<lt> sSiIlLqQ Force little-endian byte-order on the type.\n"
10875 "\\& jJfFdDpP (The \"little end\" touches the construct.)\n"
10876 msgstr ""
10877
10878 #. type: Plain text
10879 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10880 #: opensuse-leap-16-1 opensuse-tumbleweed
10881 msgid ""
10882 "The CW<\\*(C`E<gt>\\*(C'> and CW<\\*(C`E<lt>\\*(C'> modifiers can also be "
10883 "used on CW<\\*(C`()\\*(C'> groups to force a particular byte-order on all "
10884 "components in that group, including all its subgroups."
10885 msgstr ""
10886
10887 #. type: Plain text
10888 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10889 #: opensuse-leap-16-1 opensuse-tumbleweed
10890 msgid "The following rules apply:"
10891 msgstr ""
10892
10893 #. type: Plain text
10894 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10895 #: opensuse-leap-16-1 opensuse-tumbleweed
10896 msgid ""
10897 "Each letter may optionally be followed by a number indicating the repeat "
10898 "count. A numeric repeat count may optionally be enclosed in brackets, as in "
10899 "CW<\\*(C`pack(\"C[80]\", @arr)\\*(C'>. The repeat count gobbles that many "
10900 "values from the LIST when used with all format types other than "
10901 "CW<\\*(C`a\\*(C'>, CW<\\*(C`A\\*(C'>, CW<\\*(C`Z\\*(C'>, CW<\\*(C`b\\*(C'>, "
10902 "\\&CW<\\*(C`B\\*(C'>, CW<\\*(C`h\\*(C'>, CW<\\*(C`H\\*(C'>, "
10903 "CW<\\*(C`@\\*(C'>, CW<\\*(C`.\\*(C'>, CW<\\*(C`x\\*(C'>, CW<\\*(C`X\\*(C'>, "
10904 "and CW<\\*(C`P\\*(C'>, where it means something else, described below. "
10905 "Supplying a CW<\\*(C`*\\*(C'> for the repeat count instead of a number means "
10906 "to use however many items are left, except for:"
10907 msgstr ""
10908
10909 #. type: Plain text
10910 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10911 #: opensuse-leap-16-1 opensuse-tumbleweed
10912 msgid ""
10913 "\\&CW<\\*(C`@\\*(C'>, CW<\\*(C`x\\*(C'>, and CW<\\*(C`X\\*(C'>, where it is "
10914 "equivalent to CW<0>."
10915 msgstr ""
10916
10917 #. type: Plain text
10918 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10919 #: opensuse-leap-16-1 opensuse-tumbleweed
10920 msgid "E<lt>.E<gt>, where it means relative to the start of the string."
10921 msgstr ""
10922
10923 #. type: Plain text
10924 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10925 #: opensuse-leap-16-1 opensuse-tumbleweed
10926 msgid ""
10927 "\\&CW<\\*(C`u\\*(C'>, where it is equivalent to 1 (or 45, which here is "
10928 "equivalent)."
10929 msgstr ""
10930
10931 #. type: Plain text
10932 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10933 #: opensuse-leap-16-1 opensuse-tumbleweed
10934 msgid ""
10935 "One can replace a numeric repeat count with a template letter enclosed in "
10936 "brackets to use the packed byte length of the bracketed template for the "
10937 "repeat count."
10938 msgstr ""
10939
10940 #. type: Plain text
10941 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10942 #: opensuse-leap-16-1 opensuse-tumbleweed
10943 msgid ""
10944 "For example, the template CW<\\*(C`x[L]\\*(C'> skips as many bytes as in a "
10945 "packed long, and the template CW<\"$t X[$t] $t\"> unpacks twice whatever "
10946 "CW<$t> (when variable-expanded) unpacks. If the template in brackets "
10947 "contains alignment commands (such as CW<\\*(C`x![d]\\*(C'>), its packed "
10948 "length is calculated as if the start of the template had the maximal "
10949 "possible alignment."
10950 msgstr ""
10951
10952 #. type: Plain text
10953 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10954 #: opensuse-leap-16-1 opensuse-tumbleweed
10955 msgid ""
10956 "When used with CW<\\*(C`Z\\*(C'>, a CW<\\*(C`*\\*(C'> as the repeat count is "
10957 "guaranteed to add a trailing null byte, so the resulting string is always "
10958 "one byte longer than the byte length of the item itself."
10959 msgstr ""
10960
10961 #. type: Plain text
10962 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10963 #: opensuse-leap-16-1 opensuse-tumbleweed
10964 msgid ""
10965 "When used with CW<\\*(C`@\\*(C'>, the repeat count represents an offset from "
10966 "the start of the innermost CW<\\*(C`()\\*(C'> group."
10967 msgstr ""
10968
10969 #. type: Plain text
10970 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10971 #: opensuse-leap-16-1 opensuse-tumbleweed
10972 msgid ""
10973 "When used with CW<\\*(C`.\\*(C'>, the repeat count determines the starting "
10974 "position to calculate the value offset as follows:"
10975 msgstr ""
10976
10977 #. type: Plain text
10978 #: debian-trixie debian-unstable
10979 msgid "If the repeat count is CW<0>, it's relative to the current position."
10980 msgstr ""
10981
10982 #. type: Plain text
10983 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
10984 #: opensuse-leap-16-1 opensuse-tumbleweed
10985 msgid ""
10986 "If the repeat count is CW<\\*(C`*\\*(C'>, the offset is relative to the "
10987 "start of the packed string."
10988 msgstr ""
10989
10990 #. type: Plain text
10991 #: debian-trixie debian-unstable
10992 msgid ""
10993 "And if it's an integer I<n>, the offset is relative to the start of the "
10994 "\\&I<n>th innermost CW<\\*(C`( )\\*(C'> group, or to the start of the string "
10995 "if I<n> is bigger then the group level."
10996 msgstr ""
10997
10998 #. type: Plain text
10999 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11000 #: opensuse-leap-16-1 opensuse-tumbleweed
11001 msgid ""
11002 "The repeat count for CW<\\*(C`u\\*(C'> is interpreted as the maximal number "
11003 "of bytes to encode per line of output, with 0, 1 and 2 replaced by 45. The "
11004 "repeat count should not be more than 65."
11005 msgstr ""
11006
11007 #. type: Plain text
11008 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11009 #: opensuse-leap-16-1 opensuse-tumbleweed
11010 msgid ""
11011 "The CW<\\*(C`a\\*(C'>, CW<\\*(C`A\\*(C'>, and CW<\\*(C`Z\\*(C'> types gobble "
11012 "just one value, but pack it as a string of length count, padding with nulls "
11013 "or spaces as needed. When unpacking, CW<\\*(C`A\\*(C'> strips trailing "
11014 "whitespace and nulls, CW<\\*(C`Z\\*(C'> strips everything after the first "
11015 "null, and CW<\\*(C`a\\*(C'> returns data with no stripping at all."
11016 msgstr ""
11017
11018 #. type: Plain text
11019 #: debian-trixie debian-unstable
11020 msgid ""
11021 "If the value to pack is too long, the result is truncated. If it's too long "
11022 "and an explicit count is provided, CW<\\*(C`Z\\*(C'> packs only "
11023 "CW<\\*(C`$count-1\\*(C'> bytes, followed by a null byte. Thus "
11024 "CW<\\*(C`Z\\*(C'> always packs a trailing null, except when the count is 0."
11025 msgstr ""
11026
11027 #. type: Plain text
11028 #: debian-trixie debian-unstable
11029 msgid ""
11030 "Likewise, the CW<\\*(C`b\\*(C'> and CW<\\*(C`B\\*(C'> formats pack a string "
11031 "that's that many bits long. Each such format generates 1 bit of the "
11032 "result. These are typically followed by a repeat count like "
11033 "CW<\\*(C`B8\\*(C'> or CW<\\*(C`B64\\*(C'>."
11034 msgstr ""
11035
11036 #. type: Plain text
11037 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11038 #: opensuse-leap-16-1 opensuse-tumbleweed
11039 msgid ""
11040 "Each result bit is based on the least-significant bit of the corresponding "
11041 "input character, i.e., on CW<\\*(C`ord($char)%2\\*(C'>. In particular, "
11042 "characters CW<\"0\"> and CW<\"1\"> generate bits 0 and 1, as do characters "
11043 "CW<\"\\e000\"> and CW<\"\\e001\">."
11044 msgstr ""
11045
11046 #. type: Plain text
11047 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11048 #: opensuse-leap-16-1 opensuse-tumbleweed
11049 msgid ""
11050 "Starting from the beginning of the input string, each 8-tuple of characters "
11051 "is converted to 1 character of output. With format CW<\\*(C`b\\*(C'>, the "
11052 "first character of the 8-tuple determines the least-significant bit of a "
11053 "character; with format CW<\\*(C`B\\*(C'>, it determines the most-significant "
11054 "bit of a character."
11055 msgstr ""
11056
11057 #. type: Plain text
11058 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11059 #: opensuse-leap-16-1 opensuse-tumbleweed
11060 msgid ""
11061 "If the length of the input string is not evenly divisible by 8, the "
11062 "remainder is packed as if the input string were padded by null characters at "
11063 "the end. Similarly during unpacking, \"extra\" bits are ignored."
11064 msgstr ""
11065
11066 #. type: Plain text
11067 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11068 #: opensuse-leap-16-1 opensuse-tumbleweed
11069 msgid ""
11070 "If the input string is longer than needed, remaining characters are ignored."
11071 msgstr ""
11072
11073 #. type: Plain text
11074 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11075 #: opensuse-leap-16-1 opensuse-tumbleweed
11076 msgid ""
11077 "A CW<\\*(C`*\\*(C'> for the repeat count uses all characters of the input "
11078 "field. On unpacking, bits are converted to a string of CW<0>s and CW<1>s."
11079 msgstr ""
11080
11081 #. type: Plain text
11082 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11083 #: opensuse-leap-16-1 opensuse-tumbleweed
11084 msgid ""
11085 "The CW<\\*(C`h\\*(C'> and CW<\\*(C`H\\*(C'> formats pack a string that many "
11086 "nybbles (4-bit groups, representable as hexadecimal digits, CW<\"0\"..\"9\"> "
11087 "CW<\"a\"..\"f\">) long."
11088 msgstr ""
11089
11090 #. type: Plain text
11091 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11092 #: opensuse-leap-16-1 opensuse-tumbleweed
11093 msgid ""
11094 "For each such format, CW<\\*(C`pack\\*(C'> generates 4 bits of result. With "
11095 "non-alphabetical characters, the result is based on the 4 least-significant "
11096 "bits of the input character, i.e., on CW<\\*(C`ord($char)%16\\*(C'>. In "
11097 "particular, characters CW<\"0\"> and CW<\"1\"> generate nybbles 0 and 1, as "
11098 "do bytes \\&CW<\"\\e000\"> and CW<\"\\e001\">. For characters CW<\"a\".."
11099 "\"f\"> and CW<\"A\"..\"F\">, the result is compatible with the usual "
11100 "hexadecimal digits, so that CW<\"a\"> and \\&CW<\"A\"> both generate the "
11101 "nybble CW<\\*(C`0xA==10\\*(C'>. Use only these specific hex characters with "
11102 "this format."
11103 msgstr ""
11104
11105 #. type: Plain text
11106 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11107 #: opensuse-leap-16-1 opensuse-tumbleweed
11108 msgid ""
11109 "Starting from the beginning of the template to \\&CW<\\*(C`pack\\*(C'>, each "
11110 "pair of characters is converted to 1 character of output. With format "
11111 "CW<\\*(C`h\\*(C'>, the first character of the pair determines the least-"
11112 "significant nybble of the output character; with format CW<\\*(C`H\\*(C'>, "
11113 "it determines the most-significant nybble."
11114 msgstr ""
11115
11116 #. type: Plain text
11117 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11118 #: opensuse-leap-16-1 opensuse-tumbleweed
11119 msgid ""
11120 "If the length of the input string is not even, it behaves as if padded by a "
11121 "null character at the end. Similarly, \"extra\" nybbles are ignored during "
11122 "unpacking."
11123 msgstr ""
11124
11125 #. type: Plain text
11126 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11127 #: opensuse-leap-16-1 opensuse-tumbleweed
11128 msgid ""
11129 "If the input string is longer than needed, extra characters are ignored."
11130 msgstr ""
11131
11132 #. type: Plain text
11133 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11134 #: opensuse-leap-16-1 opensuse-tumbleweed
11135 msgid ""
11136 "A CW<\\*(C`*\\*(C'> for the repeat count uses all characters of the input "
11137 "field. For \\&CW<\\*(C`unpack\\*(C'>, nybbles are converted to a string of "
11138 "hexadecimal digits."
11139 msgstr ""
11140
11141 #. type: Plain text
11142 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11143 #: opensuse-leap-16-1 opensuse-tumbleweed
11144 msgid ""
11145 "The CW<\\*(C`p\\*(C'> format packs a pointer to a null-terminated string. "
11146 "You are responsible for ensuring that the string is not a temporary value, "
11147 "as that could potentially get deallocated before you got around to using the "
11148 "packed result. The CW<\\*(C`P\\*(C'> format packs a pointer to a structure "
11149 "of the size indicated by the length. A null pointer is created if the "
11150 "corresponding value for \\&CW<\\*(C`p\\*(C'> or CW<\\*(C`P\\*(C'> is "
11151 "CW<\\*(C`undef\\*(C'>; similarly with \\&CW<\\*(C`unpack\\*(C'>, where a "
11152 "null pointer unpacks into \\&CW<\\*(C`undef\\*(C'>."
11153 msgstr ""
11154
11155 #. type: Plain text
11156 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11157 #: opensuse-leap-16-1 opensuse-tumbleweed
11158 msgid ""
11159 "If your system has a strange pointer size--meaning a pointer is neither as "
11160 "big as an int nor as big as a long--it may not be possible to pack or unpack "
11161 "pointers in big- or little-endian byte order. Attempting to do so raises an "
11162 "exception."
11163 msgstr ""
11164
11165 #. type: Plain text
11166 #: debian-trixie debian-unstable
11167 msgid ""
11168 "The CW<\\*(C`/\\*(C'> template character allows packing and unpacking of a "
11169 "sequence of items where the packed structure contains a packed item count "
11170 "followed by the packed items themselves. This is useful when the structure "
11171 "you're unpacking has encoded the sizes or repeat counts for some of its "
11172 "fields within the structure itself as separate fields."
11173 msgstr ""
11174
11175 #. type: Plain text
11176 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11177 #: opensuse-leap-16-1 opensuse-tumbleweed
11178 msgid ""
11179 "For CW<\\*(C`pack\\*(C'>, you write \\&I<length-item>CW<\\*(C`/"
11180 "\\*(C'>I<sequence-item>, and the \\&I<length-item> describes how the length "
11181 "value is packed. Formats likely to be of most use are integer-packing ones "
11182 "like CW<\\*(C`n\\*(C'> for Java strings, \\&CW<\\*(C`w\\*(C'> for ASN.1 or "
11183 "SNMP, and CW<\\*(C`N\\*(C'> for Sun XDR."
11184 msgstr ""
11185
11186 #. type: Plain text
11187 #: debian-trixie debian-unstable
11188 msgid ""
11189 "For CW<\\*(C`pack\\*(C'>, I<sequence-item> may have a repeat count, in which "
11190 "case the minimum of that and the number of available items is used as the "
11191 "argument for I<length-item>. If it has no repeat count or uses a '*', the "
11192 "number of available items is used."
11193 msgstr ""
11194
11195 #. type: Plain text
11196 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11197 #: opensuse-leap-16-1 opensuse-tumbleweed
11198 msgid ""
11199 "For CW<\\*(C`unpack\\*(C'>, an internal stack of integer arguments unpacked "
11200 "so far is used. You write CW<\\*(C`/\\*(C'>I<sequence-item> and the repeat "
11201 "count is obtained by popping off the last element from the stack. The "
11202 "I<sequence-item> must not have a repeat count."
11203 msgstr ""
11204
11205 #. type: Plain text
11206 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11207 #: opensuse-leap-16-1 opensuse-tumbleweed
11208 msgid ""
11209 "If I<sequence-item> refers to a string type (CW<\"A\">, CW<\"a\">, or "
11210 "CW<\"Z\">), the I<length-item> is the string length, not the number of "
11211 "strings. With an explicit repeat count for pack, the packed string is "
11212 "adjusted to that length. For example:"
11213 msgstr ""
11214
11215 #. type: Plain text
11216 #: debian-trixie debian-unstable
11217 #, no-wrap
11218 msgid ""
11219 "\\& This code: gives this result:\n"
11220 "\\&\n"
11221 "\\& unpack(\"W/a\", \"\\e004Gurusamy\") (\"Guru\")\n"
11222 "\\& unpack(\"a3/A A*\", \"007 Bond J \") (\" Bond\", \"J\")\n"
11223 "\\& unpack(\"a3 x2 /A A*\", \"007: Bond, J.\") (\"Bond, J\", \".\")\n"
11224 "\\&\n"
11225 "\\& pack(\"n/a* w/a\",\"hello,\",\"world\") \"\\e000\\e006hello,\\e005world\"\n"
11226 "\\& pack(\"a/W2\", ord(\"a\") .. ord(\"z\")) \"2ab\"\n"
11227 msgstr ""
11228
11229 #. type: Plain text
11230 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11231 #: opensuse-leap-16-1 opensuse-tumbleweed
11232 msgid ""
11233 "The I<length-item> is not returned explicitly from \\&CW<\\*(C`unpack\\*(C'>."
11234 msgstr ""
11235
11236 #. type: Plain text
11237 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11238 #: opensuse-leap-16-1 opensuse-tumbleweed
11239 msgid ""
11240 "Supplying a count to the I<length-item> format letter is only useful with "
11241 "\\&CW<\\*(C`A\\*(C'>, CW<\\*(C`a\\*(C'>, or CW<\\*(C`Z\\*(C'>. Packing with "
11242 "a I<length-item> of CW<\\*(C`a\\*(C'> or CW<\\*(C`Z\\*(C'> may introduce "
11243 "CW<\"\\e000\"> characters, which Perl does not regard as legal in numeric "
11244 "strings."
11245 msgstr ""
11246
11247 #. type: Plain text
11248 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11249 #: opensuse-leap-16-1 opensuse-tumbleweed
11250 msgid ""
11251 "The integer types CW<\\*(C`s\\*(C'>, CW<\\*(C`S\\*(C'>, CW<\\*(C`l\\*(C'>, "
11252 "and CW<\\*(C`L\\*(C'> may be followed by a CW<\\*(C`!\\*(C'> modifier to "
11253 "specify native shorts or longs. As shown in the example above, a bare "
11254 "CW<\\*(C`l\\*(C'> means exactly 32 bits, although the native "
11255 "CW<\\*(C`long\\*(C'> as seen by the local C compiler may be larger. This is "
11256 "mainly an issue on 64-bit platforms. You can see whether using CW<\\*(C`!"
11257 "\\*(C'> makes any difference this way:"
11258 msgstr ""
11259
11260 #. type: Plain text
11261 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11262 #: opensuse-leap-16-1 opensuse-tumbleweed
11263 #, no-wrap
11264 msgid ""
11265 "\\& printf \"format s is %d, s! is %d\\en\",\n"
11266 "\\& length pack(\"s\"), length pack(\"s!\");\n"
11267 "\\&\n"
11268 "\\& printf \"format l is %d, l! is %d\\en\",\n"
11269 "\\& length pack(\"l\"), length pack(\"l!\");\n"
11270 msgstr ""
11271
11272 #. type: Plain text
11273 #: debian-trixie debian-unstable
11274 msgid ""
11275 "\\&CW<\\*(C`i!\\*(C'> and CW<\\*(C`I!\\*(C'> are also allowed, but only for "
11276 "completeness' sake: they are identical to CW<\\*(C`i\\*(C'> and "
11277 "CW<\\*(C`I\\*(C'>."
11278 msgstr ""
11279
11280 #. type: Plain text
11281 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11282 #: opensuse-leap-16-1 opensuse-tumbleweed
11283 msgid ""
11284 "The actual sizes (in bytes) of native shorts, ints, longs, and long longs on "
11285 "the platform where Perl was built are also available from the command line:"
11286 msgstr ""
11287
11288 #. type: Plain text
11289 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11290 #: opensuse-leap-16-1 opensuse-tumbleweed
11291 #, no-wrap
11292 msgid ""
11293 "\\& $ perl -V:{short,int,long{,long}}size\n"
11294 "\\& shortsize=\\*(Aq2\\*(Aq;\n"
11295 "\\& intsize=\\*(Aq4\\*(Aq;\n"
11296 "\\& longsize=\\*(Aq4\\*(Aq;\n"
11297 "\\& longlongsize=\\*(Aq8\\*(Aq;\n"
11298 msgstr ""
11299
11300 #. type: Plain text
11301 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11302 #: opensuse-leap-16-1 opensuse-tumbleweed
11303 msgid "or programmatically via the CW<\\*(C`Config\\*(C'> module:"
11304 msgstr ""
11305
11306 #. type: Plain text
11307 #: debian-trixie debian-unstable
11308 #, no-wrap
11309 msgid ""
11310 "\\& use Config;\n"
11311 "\\& print $Config{shortsize}, \"\\en\";\n"
11312 "\\& print $Config{intsize}, \"\\en\";\n"
11313 "\\& print $Config{longsize}, \"\\en\";\n"
11314 "\\& print $Config{longlongsize}, \"\\en\";\n"
11315 msgstr ""
11316
11317 #. type: Plain text
11318 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11319 #: opensuse-leap-16-1 opensuse-tumbleweed
11320 msgid ""
11321 "\\&CW<$Config{longlongsize}> is undefined on systems without long long "
11322 "support."
11323 msgstr ""
11324
11325 #. type: Plain text
11326 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11327 #: opensuse-leap-16-1 opensuse-tumbleweed
11328 msgid ""
11329 "The integer formats CW<\\*(C`s\\*(C'>, CW<\\*(C`S\\*(C'>, CW<\\*(C`i\\*(C'>, "
11330 "CW<\\*(C`I\\*(C'>, CW<\\*(C`l\\*(C'>, CW<\\*(C`L\\*(C'>, CW<\\*(C`j\\*(C'>, "
11331 "and CW<\\*(C`J\\*(C'> are inherently non-portable between processors and "
11332 "operating systems because they obey native byteorder and endianness. For "
11333 "example, a 4-byte integer 0x12345678 (305419896 decimal) would be ordered "
11334 "natively (arranged in and handled by the CPU registers) into bytes as"
11335 msgstr ""
11336
11337 #. type: Plain text
11338 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11339 #: opensuse-leap-16-1 opensuse-tumbleweed
11340 #, no-wrap
11341 msgid ""
11342 "\\& 0x12 0x34 0x56 0x78 # big-endian\n"
11343 "\\& 0x78 0x56 0x34 0x12 # little-endian\n"
11344 msgstr ""
11345
11346 #. type: Plain text
11347 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11348 #: opensuse-leap-16-1 opensuse-tumbleweed
11349 msgid ""
11350 "Basically, Intel and VAX CPUs are little-endian, while everybody else, "
11351 "including Motorola m68k/88k, PPC, Sparc, HP PA, Power, and Cray, are big-"
11352 "endian. Alpha and MIPS can be either: Digital/Compaq uses (well, used) "
11353 "them in little-endian mode, but SGI/Cray uses them in big-endian mode."
11354 msgstr ""
11355
11356 #. type: Plain text
11357 #: debian-trixie debian-unstable
11358 msgid ""
11359 "The names I<big-endian> and I<little-endian> are comic references to the egg-"
11360 "eating habits of the little-endian Lilliputians and the big-endian "
11361 "Blefuscudians from the classic Jonathan Swift satire, I<Gulliver's "
11362 "Travels>. This entered computer lingo via the paper \"On Holy Wars and a "
11363 "Plea for Peace\" by Danny Cohen, USC/ISI IEN 137, April 1, 1980."
11364 msgstr ""
11365
11366 #. type: Plain text
11367 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11368 #: opensuse-leap-16-1 opensuse-tumbleweed
11369 msgid "Some systems may have even weirder byte orders such as"
11370 msgstr ""
11371
11372 #. type: Plain text
11373 #: debian-trixie debian-unstable
11374 #, no-wrap
11375 msgid ""
11376 "\\& 0x56 0x78 0x12 0x34\n"
11377 "\\& 0x34 0x12 0x78 0x56\n"
11378 msgstr ""
11379
11380 #. type: Plain text
11381 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11382 #: opensuse-leap-16-1 opensuse-tumbleweed
11383 msgid ""
11384 "These are called mid-endian, middle-endian, mixed-endian, or just weird."
11385 msgstr ""
11386
11387 #. type: Plain text
11388 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11389 #: opensuse-leap-16-1 opensuse-tumbleweed
11390 msgid "You can determine your system endianness with this incantation:"
11391 msgstr ""
11392
11393 #. type: Plain text
11394 #: debian-trixie debian-unstable
11395 #, no-wrap
11396 msgid "\\& printf(\"%#02x \", $_) for unpack(\"W*\", pack L=E<gt>0x12345678);\n"
11397 msgstr ""
11398
11399 #. type: Plain text
11400 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11401 #: opensuse-leap-16-1 opensuse-tumbleweed
11402 msgid ""
11403 "The byteorder on the platform where Perl was built is also available via "
11404 "Config:"
11405 msgstr ""
11406
11407 #. type: Plain text
11408 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11409 #: opensuse-leap-16-1 opensuse-tumbleweed
11410 #, no-wrap
11411 msgid ""
11412 "\\& use Config;\n"
11413 "\\& print \"$Config{byteorder}\\en\";\n"
11414 msgstr ""
11415
11416 #. type: Plain text
11417 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11418 #: opensuse-leap-16-1 opensuse-tumbleweed
11419 msgid "or from the command line:"
11420 msgstr ""
11421
11422 #. type: Plain text
11423 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11424 #: opensuse-leap-16-1 opensuse-tumbleweed
11425 #, no-wrap
11426 msgid "\\& $ perl -V:byteorder\n"
11427 msgstr ""
11428
11429 #. type: Plain text
11430 #: debian-trixie debian-unstable
11431 msgid ""
11432 "Byteorders CW<\"1234\"> and CW<\"12345678\"> are little-endian; CW<\"4321\"> "
11433 "and CW<\"87654321\"> are big-endian. Systems with multiarchitecture "
11434 "binaries will have CW<\"ffff\">, signifying that static information doesn't "
11435 "work, one must use runtime probing."
11436 msgstr ""
11437
11438 #. type: Plain text
11439 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11440 #: opensuse-leap-16-1 opensuse-tumbleweed
11441 msgid ""
11442 "For portably packed integers, either use the formats CW<\\*(C`n\\*(C'>, "
11443 "CW<\\*(C`N\\*(C'>, CW<\\*(C`v\\*(C'>, and CW<\\*(C`V\\*(C'> or else use the "
11444 "CW<\\*(C`E<gt>\\*(C'> and CW<\\*(C`E<lt>\\*(C'> modifiers described "
11445 "immediately below. See also perlport."
11446 msgstr ""
11447
11448 #. type: Plain text
11449 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11450 #: opensuse-leap-16-1 opensuse-tumbleweed
11451 msgid ""
11452 "Also floating point numbers have endianness. Usually (but not always) this "
11453 "agrees with the integer endianness. Even though most platforms these days "
11454 "use the IEEE 754 binary format, there are differences, especially if the "
11455 "long doubles are involved. You can see the \\&CW<\\*(C`Config\\*(C'> "
11456 "variables CW<\\*(C`doublekind\\*(C'> and CW<\\*(C`longdblkind\\*(C'> (also "
11457 "CW<\\*(C`doublesize\\*(C'>, \\&CW<\\*(C`longdblsize\\*(C'>): the \"kind\" "
11458 "values are enums, unlike CW<\\*(C`byteorder\\*(C'>."
11459 msgstr ""
11460
11461 #. type: Plain text
11462 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11463 #: opensuse-leap-16-1 opensuse-tumbleweed
11464 msgid ""
11465 "Portability-wise the best option is probably to keep to the IEEE 754 64-bit "
11466 "doubles, and of agreed-upon endianness. Another possibility is the "
11467 "CW<\"%a\">) format of CW<\\*(C`printf\\*(C'>."
11468 msgstr ""
11469
11470 #. type: Plain text
11471 #: debian-trixie debian-unstable
11472 msgid ""
11473 "Starting with Perl 5.10.0, integer and floating-point formats, along with "
11474 "the CW<\\*(C`p\\*(C'> and CW<\\*(C`P\\*(C'> formats and CW<\\*(C`()\\*(C'> "
11475 "groups, may all be followed by the \\&CW<\\*(C`E<gt>\\*(C'> or "
11476 "CW<\\*(C`E<lt>\\*(C'> endianness modifiers to respectively enforce big- or "
11477 "little-endian byte-order. These modifiers are especially useful given how "
11478 "CW<\\*(C`n\\*(C'>, CW<\\*(C`N\\*(C'>, CW<\\*(C`v\\*(C'>, and "
11479 "CW<\\*(C`V\\*(C'> don't cover signed integers, 64-bit integers, or floating-"
11480 "point values."
11481 msgstr ""
11482
11483 #. type: Plain text
11484 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11485 #: opensuse-leap-16-1 opensuse-tumbleweed
11486 msgid ""
11487 "Here are some concerns to keep in mind when using an endianness modifier:"
11488 msgstr ""
11489
11490 #. type: Plain text
11491 #: debian-trixie debian-unstable
11492 msgid ""
11493 "Exchanging signed integers between different platforms works only when all "
11494 "platforms store them in the same format. Most platforms store signed "
11495 "integers in two's-complement notation, so usually this is not an issue."
11496 msgstr ""
11497
11498 #. type: Plain text
11499 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11500 #: opensuse-leap-16-1 opensuse-tumbleweed
11501 msgid ""
11502 "The CW<\\*(C`E<gt>\\*(C'> or CW<\\*(C`E<lt>\\*(C'> modifiers can only be "
11503 "used on floating-point formats on big- or little-endian machines. "
11504 "Otherwise, attempting to use them raises an exception."
11505 msgstr ""
11506
11507 #. type: Plain text
11508 #: debian-trixie debian-unstable
11509 msgid ""
11510 "Forcing big- or little-endian byte-order on floating-point values for data "
11511 "exchange can work only if all platforms use the same binary representation "
11512 "such as IEEE floating-point. Even if all platforms are using IEEE, there "
11513 "may still be subtle differences. Being able to use CW<\\*(C`E<gt>\\*(C'> or "
11514 "CW<\\*(C`E<lt>\\*(C'> on floating-point values can be useful, but also "
11515 "dangerous if you don't know exactly what you're doing. It is not a general "
11516 "way to portably store floating-point values."
11517 msgstr ""
11518
11519 #. type: Plain text
11520 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11521 #: opensuse-leap-16-1 opensuse-tumbleweed
11522 msgid ""
11523 "When using CW<\\*(C`E<gt>\\*(C'> or CW<\\*(C`E<lt>\\*(C'> on a CW<\\*(C`()"
11524 "\\*(C'> group, this affects all types inside the group that accept byte-"
11525 "order modifiers, including all subgroups. It is silently ignored for all "
11526 "other types. You are not allowed to override the byte-order within a group "
11527 "that already has a byte-order modifier suffix."
11528 msgstr ""
11529
11530 #. type: Plain text
11531 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11532 #: opensuse-leap-16-1 opensuse-tumbleweed
11533 msgid ""
11534 "Real numbers (floats and doubles) are in native machine format only. Due to "
11535 "the multiplicity of floating-point formats and the lack of a standard "
11536 "\"network\" representation for them, no facility for interchange has been "
11537 "made. This means that packed floating-point data written on one machine may "
11538 "not be readable on another, even if both use IEEE floating-point arithmetic "
11539 "(because the endianness of the memory representation is not part of the IEEE "
11540 "spec). See also perlport."
11541 msgstr ""
11542
11543 #. type: Plain text
11544 #: debian-trixie debian-unstable
11545 msgid ""
11546 "If you know I<exactly> what you're doing, you can use the "
11547 "CW<\\*(C`E<gt>\\*(C'> or CW<\\*(C`E<lt>\\*(C'> modifiers to force big- or "
11548 "little-endian byte-order on floating-point values."
11549 msgstr ""
11550
11551 #. type: Plain text
11552 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11553 #: opensuse-leap-16-1 opensuse-tumbleweed
11554 msgid ""
11555 "Because Perl uses doubles (or long doubles, if configured) internally for "
11556 "all numeric calculation, converting from double into float and thence to "
11557 "double again loses precision, so CW<\\*(C`unpack(\"f\", pack(\"f\", $foo)"
11558 "\\*(C'>) will not in general equal CW<$foo>."
11559 msgstr ""
11560
11561 #. type: Plain text
11562 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11563 #: opensuse-leap-16-1 opensuse-tumbleweed
11564 msgid ""
11565 "Pack and unpack can operate in two modes: character mode (CW<\\*(C`C0\\*(C'> "
11566 "mode) where the packed string is processed per character, and UTF-8 byte "
11567 "mode (CW<\\*(C`U0\\*(C'> mode) where the packed string is processed in its "
11568 "UTF-8-encoded Unicode form on a byte-by-byte basis. Character mode is the "
11569 "default unless the format string starts with CW<\\*(C`U\\*(C'>. You can "
11570 "always switch mode mid-format with an explicit \\&CW<\\*(C`C0\\*(C'> or "
11571 "CW<\\*(C`U0\\*(C'> in the format. This mode remains in effect until the "
11572 "next mode change, or until the end of the CW<\\*(C`()\\*(C'> group it "
11573 "(directly) applies to."
11574 msgstr ""
11575
11576 #. type: Plain text
11577 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11578 #: opensuse-leap-16-1 opensuse-tumbleweed
11579 msgid ""
11580 "Using CW<\\*(C`C0\\*(C'> to get Unicode characters while using "
11581 "CW<\\*(C`U0\\*(C'> to get I<non>-Unicode bytes is not necessarily obvious. "
11582 "Probably only the first of these is what you want:"
11583 msgstr ""
11584
11585 #. type: Plain text
11586 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11587 #: opensuse-leap-16-1 opensuse-tumbleweed
11588 #, no-wrap
11589 msgid ""
11590 "\\& $ perl -CS -E \\*(Aqsay \"\\ex{3B1}\\ex{3C9}\"\\*(Aq |\n"
11591 "\\& perl -CS -ne \\*(Aqprintf \"%v04X\\en\", $_ for unpack(\"C0A*\", $_)\\*(Aq\n"
11592 "\\& 03B1.03C9\n"
11593 "\\& $ perl -CS -E \\*(Aqsay \"\\ex{3B1}\\ex{3C9}\"\\*(Aq |\n"
11594 "\\& perl -CS -ne \\*(Aqprintf \"%v02X\\en\", $_ for unpack(\"U0A*\", $_)\\*(Aq\n"
11595 "\\& CE.B1.CF.89\n"
11596 "\\& $ perl -CS -E \\*(Aqsay \"\\ex{3B1}\\ex{3C9}\"\\*(Aq |\n"
11597 "\\& perl -C0 -ne \\*(Aqprintf \"%v02X\\en\", $_ for unpack(\"C0A*\", $_)\\*(Aq\n"
11598 "\\& CE.B1.CF.89\n"
11599 "\\& $ perl -CS -E \\*(Aqsay \"\\ex{3B1}\\ex{3C9}\"\\*(Aq |\n"
11600 "\\& perl -C0 -ne \\*(Aqprintf \"%v02X\\en\", $_ for unpack(\"U0A*\", $_)\\*(Aq\n"
11601 "\\& C3.8E.C2.B1.C3.8F.C2.89\n"
11602 msgstr ""
11603
11604 #. type: Plain text
11605 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11606 #: opensuse-leap-16-1 opensuse-tumbleweed
11607 msgid ""
11608 "Those examples also illustrate that you should not try to use "
11609 "\\&CW<\\*(C`pack\\*(C'>/CW<\\*(C`unpack\\*(C'> as a substitute for the "
11610 "Encode module."
11611 msgstr ""
11612
11613 #. type: Plain text
11614 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11615 #: opensuse-leap-16-1 opensuse-tumbleweed
11616 msgid ""
11617 "You must yourself do any alignment or padding by inserting, for example, "
11618 "enough CW<\"x\">es while packing. There is no way for "
11619 "\\&CW<\\*(C`pack\\*(C'> and CW<\\*(C`unpack\\*(C'> to know where characters "
11620 "are going to or coming from, so they handle their output and input as flat "
11621 "sequences of characters."
11622 msgstr ""
11623
11624 #. type: Plain text
11625 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11626 #: opensuse-leap-16-1 opensuse-tumbleweed
11627 msgid ""
11628 "A CW<\\*(C`()\\*(C'> group is a sub-TEMPLATE enclosed in parentheses. A "
11629 "group may take a repeat count either as postfix, or for "
11630 "\\&CW<\\*(C`unpack\\*(C'>, also via the CW<\\*(C`/\\*(C'> template "
11631 "character. Within each repetition of a group, positioning with "
11632 "\\&CW<\\*(C`@\\*(C'> starts over at 0. Therefore, the result of"
11633 msgstr ""
11634
11635 #. type: Plain text
11636 #: debian-trixie debian-unstable
11637 #, no-wrap
11638 msgid "\\& pack(\"@1A((@2A)@3A)\", qw[X Y Z])\n"
11639 msgstr ""
11640
11641 #. type: Plain text
11642 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11643 #: opensuse-leap-16-1 opensuse-tumbleweed
11644 msgid "is the string CW<\"\\e0X\\e0\\e0YZ\">."
11645 msgstr ""
11646
11647 #. type: Plain text
11648 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11649 #: opensuse-leap-16-1 opensuse-tumbleweed
11650 msgid ""
11651 "\\&CW<\\*(C`x\\*(C'> and CW<\\*(C`X\\*(C'> accept the CW<\\*(C`!\\*(C'> "
11652 "modifier to act as alignment commands: they jump forward or back to the "
11653 "closest position aligned at a multiple of CW<\\*(C`count\\*(C'> characters. "
11654 "For example, to CW<\\*(C`pack\\*(C'> or \\&CW<\\*(C`unpack\\*(C'> a C "
11655 "structure like"
11656 msgstr ""
11657
11658 #. type: Plain text
11659 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11660 #: opensuse-leap-16-1 opensuse-tumbleweed
11661 #, no-wrap
11662 msgid ""
11663 "\\& struct {\n"
11664 "\\& char c; /* one signed, 8-bit character */\n"
11665 "\\& double d;\n"
11666 "\\& char cc[2];\n"
11667 "\\& }\n"
11668 msgstr ""
11669
11670 #. type: Plain text
11671 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11672 #: opensuse-leap-16-1 opensuse-tumbleweed
11673 msgid ""
11674 "one may need to use the template CW<\\*(C`c x![d] d c[2]\\*(C'>. This "
11675 "assumes that doubles must be aligned to the size of double."
11676 msgstr ""
11677
11678 #. type: Plain text
11679 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11680 #: opensuse-leap-16-1 opensuse-tumbleweed
11681 msgid ""
11682 "For alignment commands, a CW<\\*(C`count\\*(C'> of 0 is equivalent to a "
11683 "CW<\\*(C`count\\*(C'> of 1; both are no-ops."
11684 msgstr ""
11685
11686 #. type: Plain text
11687 #: debian-trixie debian-unstable
11688 msgid ""
11689 "\\&CW<\\*(C`n\\*(C'>, CW<\\*(C`N\\*(C'>, CW<\\*(C`v\\*(C'> and "
11690 "CW<\\*(C`V\\*(C'> accept the CW<\\*(C`!\\*(C'> modifier to represent signed "
11691 "16-/32-bit integers in big-/little-endian order. This is portable only when "
11692 "all platforms sharing packed data use the same binary representation for "
11693 "signed integers; for example, when all platforms use two's-complement "
11694 "representation."
11695 msgstr ""
11696
11697 #. type: Plain text
11698 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11699 #: opensuse-leap-16-1 opensuse-tumbleweed
11700 msgid ""
11701 "Comments can be embedded in a TEMPLATE using CW<\\*(C`#\\*(C'> through the "
11702 "end of line. White space can separate pack codes from each other, but "
11703 "modifiers and repeat counts must follow immediately. Breaking complex "
11704 "templates into individual line-by-line components, suitably annotated, can "
11705 "do as much to improve legibility and maintainability of pack/unpack formats "
11706 "as CW<\\*(C`/x\\*(C'> can for complicated pattern matches."
11707 msgstr ""
11708
11709 #. type: Plain text
11710 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11711 #: opensuse-leap-16-1 opensuse-tumbleweed
11712 msgid ""
11713 "If TEMPLATE requires more arguments than CW<\\*(C`pack\\*(C'> is given, "
11714 "CW<\\*(C`pack\\*(C'> assumes additional CW<\"\"> arguments. If TEMPLATE "
11715 "requires fewer arguments than given, extra arguments are ignored."
11716 msgstr ""
11717
11718 #. type: Plain text
11719 #: debian-trixie debian-unstable
11720 msgid ""
11721 "Attempting to pack the special floating point values CW<\\*(C`Inf\\*(C'> and "
11722 "CW<\\*(C`NaN\\*(C'> (infinity, also in negative, and not-a-number) into "
11723 "packed integer values (like CW<\"L\">) is a fatal error. The reason for "
11724 "this is that there simply isn't any sensible mapping for these special "
11725 "values into integers."
11726 msgstr ""
11727
11728 #. type: Plain text
11729 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11730 #: opensuse-leap-16-1 opensuse-tumbleweed
11731 #, no-wrap
11732 msgid ""
11733 "\\& $foo = pack(\"WWWW\",65,66,67,68);\n"
11734 "\\& # foo eq \"ABCD\"\n"
11735 "\\& $foo = pack(\"W4\",65,66,67,68);\n"
11736 "\\& # same thing\n"
11737 "\\& $foo = pack(\"W4\",0x24b6,0x24b7,0x24b8,0x24b9);\n"
11738 "\\& # same thing with Unicode circled letters.\n"
11739 "\\& $foo = pack(\"U4\",0x24b6,0x24b7,0x24b8,0x24b9);\n"
11740 "\\& # same thing with Unicode circled letters. You don\\*(Aqt get the\n"
11741 "\\& # UTF-8 bytes because the U at the start of the format caused\n"
11742 "\\& # a switch to U0-mode, so the UTF-8 bytes get joined into\n"
11743 "\\& # characters\n"
11744 "\\& $foo = pack(\"C0U4\",0x24b6,0x24b7,0x24b8,0x24b9);\n"
11745 "\\& # foo eq \"\\exe2\\ex92\\exb6\\exe2\\ex92\\exb7\\exe2\\ex92\\exb8\\exe2\\ex92\\exb9\"\n"
11746 "\\& # This is the UTF-8 encoding of the string in the\n"
11747 "\\& # previous example\n"
11748 "\\&\n"
11749 "\\& $foo = pack(\"ccxxcc\",65,66,67,68);\n"
11750 "\\& # foo eq \"AB\\e0\\e0CD\"\n"
11751 "\\&\n"
11752 "\\& # NOTE: The examples above featuring \"W\" and \"c\" are true\n"
11753 "\\& # only on ASCII and ASCII-derived systems such as ISO Latin 1\n"
11754 "\\& # and UTF-8. On EBCDIC systems, the first example would be\n"
11755 "\\& # $foo = pack(\"WWWW\",193,194,195,196);\n"
11756 "\\&\n"
11757 "\\& $foo = pack(\"s2\",1,2);\n"
11758 "\\& # \"\\e001\\e000\\e002\\e000\" on little-endian\n"
11759 "\\& # \"\\e000\\e001\\e000\\e002\" on big-endian\n"
11760 "\\&\n"
11761 "\\& $foo = pack(\"a4\",\"abcd\",\"x\",\"y\",\"z\");\n"
11762 "\\& # \"abcd\"\n"
11763 "\\&\n"
11764 "\\& $foo = pack(\"aaaa\",\"abcd\",\"x\",\"y\",\"z\");\n"
11765 "\\& # \"axyz\"\n"
11766 "\\&\n"
11767 "\\& $foo = pack(\"a14\",\"abcdefg\");\n"
11768 "\\& # \"abcdefg\\e0\\e0\\e0\\e0\\e0\\e0\\e0\"\n"
11769 "\\&\n"
11770 "\\& $foo = pack(\"i9pl\", gmtime);\n"
11771 "\\& # a real struct tm (on my system anyway)\n"
11772 "\\&\n"
11773 "\\& $utmp_template = \"Z8 Z8 Z16 L\";\n"
11774 "\\& $utmp = pack($utmp_template, @utmp1);\n"
11775 "\\& # a struct utmp (BSDish)\n"
11776 "\\&\n"
11777 "\\& @utmp2 = unpack($utmp_template, $utmp);\n"
11778 "\\& # \"@utmp1\" eq \"@utmp2\"\n"
11779 "\\&\n"
11780 "\\& sub bintodec {\n"
11781 "\\& unpack(\"N\", pack(\"B32\", substr(\"0\" x 32 . shift, -32)));\n"
11782 "\\& }\n"
11783 "\\&\n"
11784 "\\& $foo = pack(\\*(Aqsx2l\\*(Aq, 12, 34);\n"
11785 "\\& # short 12, two zero bytes padding, long 34\n"
11786 "\\& $bar = pack(\\*(Aqs@4l\\*(Aq, 12, 34);\n"
11787 "\\& # short 12, zero fill to position 4, long 34\n"
11788 "\\& # $foo eq $bar\n"
11789 "\\& $baz = pack(\\*(Aqs.l\\*(Aq, 12, 4, 34);\n"
11790 "\\& # short 12, zero fill to position 4, long 34\n"
11791 "\\&\n"
11792 "\\& $foo = pack(\\*(AqnN\\*(Aq, 42, 4711);\n"
11793 "\\& # pack big-endian 16- and 32-bit unsigned integers\n"
11794 "\\& $foo = pack(\\*(AqSE<gt>LE<gt>\\*(Aq, 42, 4711);\n"
11795 "\\& # exactly the same\n"
11796 "\\& $foo = pack(\\*(AqsE<lt>lE<lt>\\*(Aq, -42, 4711);\n"
11797 "\\& # pack little-endian 16- and 32-bit signed integers\n"
11798 "\\& $foo = pack(\\*(Aq(sl)E<lt>\\*(Aq, -42, 4711);\n"
11799 "\\& # exactly the same\n"
11800 msgstr ""
11801
11802 #. type: Plain text
11803 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11804 #: opensuse-leap-16-1 opensuse-tumbleweed
11805 msgid ""
11806 "The same template may generally also be used in \\&CW<\\*(C`unpack\\*(C'>."
11807 msgstr ""
11808
11809 #. type: IX
11810 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11811 #: opensuse-leap-16-1 opensuse-tumbleweed
11812 #, no-wrap
11813 msgid "package NAMESPACE"
11814 msgstr ""
11815
11816 #. type: IX
11817 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11818 #: opensuse-leap-16-1 opensuse-tumbleweed
11819 #, no-wrap
11820 msgid "package NAMESPACE VERSION"
11821 msgstr ""
11822
11823 #. type: IX
11824 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11825 #: opensuse-leap-16-1 opensuse-tumbleweed
11826 #, no-wrap
11827 msgid "package module namespace version"
11828 msgstr ""
11829
11830 #. type: IX
11831 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11832 #: opensuse-leap-16-1 opensuse-tumbleweed
11833 #, no-wrap
11834 msgid "package NAMESPACE BLOCK"
11835 msgstr ""
11836
11837 #. type: IX
11838 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11839 #: opensuse-leap-16-1 opensuse-tumbleweed
11840 #, no-wrap
11841 msgid "package NAMESPACE VERSION BLOCK"
11842 msgstr ""
11843
11844 #. type: Plain text
11845 #: debian-trixie debian-unstable
11846 msgid ""
11847 "Declares the BLOCK or the rest of the compilation unit as being in the given "
11848 "namespace. The scope of the package declaration is either the supplied code "
11849 "BLOCK or, in the absence of a BLOCK, from the declaration itself through the "
11850 "end of current scope (the enclosing block, file, or "
11851 "\\&CW<\\*(C`eval\\*(C'>). That is, the forms without a BLOCK are operative "
11852 "through the end of the current scope, just like the \\&CW<\\*(C`my\\*(C'>, "
11853 "CW<\\*(C`state\\*(C'>, and \\&CW<\\*(C`our\\*(C'> operators. All "
11854 "unqualified dynamic identifiers in this scope will be in the given "
11855 "namespace, except where overridden by another CW<\\*(C`package\\*(C'> "
11856 "declaration or when they're one of the special identifiers that qualify into "
11857 "CW<\\*(C`main::\\*(C'>, like CW<\\*(C`STDOUT\\*(C'>, CW<\\*(C`ARGV\\*(C'>, "
11858 "CW<\\*(C`ENV\\*(C'>, and the punctuation variables."
11859 msgstr ""
11860
11861 #. type: Plain text
11862 #: debian-trixie debian-unstable
11863 msgid ""
11864 "A package statement affects dynamic variables only, including those you've "
11865 "used CW<\\*(C`local\\*(C'> on, but I<not> lexically-scoped variables, which "
11866 "are created with CW<\\*(C`my\\*(C'>, \\&CW<\\*(C`state\\*(C'>, or "
11867 "CW<\\*(C`our\\*(C'>. Typically it would be the first declaration in a file "
11868 "included by \\&CW<\\*(C`require\\*(C'> or CW<\\*(C`use\\*(C'>. You can "
11869 "switch into a package in more than one place, since this only determines "
11870 "which default symbol table the compiler uses for the rest of that block. "
11871 "You can refer to identifiers in other packages than the current one by "
11872 "prefixing the identifier with the package name and a double colon, as in "
11873 "CW<$SomePack::var> or CW<\\*(C`ThatPack::INPUT_HANDLE\\*(C'>. If package "
11874 "name is omitted, the CW<\\*(C`main\\*(C'> package is assumed. That is, "
11875 "CW<$::sail> is equivalent to \\&CW<$main::sail> (as well as to "
11876 "CW<\\*(C`$main\\*(Aqsail\\*(C'>, still seen in ancient code, mostly from "
11877 "Perl 4)."
11878 msgstr ""
11879
11880 #. type: Plain text
11881 #: debian-trixie debian-unstable
11882 msgid ""
11883 "If VERSION is provided, CW<\\*(C`package\\*(C'> sets the \\&CW<$VERSION> "
11884 "variable in the given namespace to a version object with the VERSION "
11885 "provided. VERSION must be a \"strict\" style version number as defined by "
11886 "the version module: a positive decimal number (integer or decimal-fraction) "
11887 "without exponentiation or else a dotted-decimal v-string with a leading 'v' "
11888 "character and at least three components. You should set CW<$VERSION> only "
11889 "once per package."
11890 msgstr ""
11891
11892 #. type: Plain text
11893 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11894 #: opensuse-leap-16-1 opensuse-tumbleweed
11895 msgid ""
11896 "See \"Packages\" in perlmod for more information about packages, modules, "
11897 "and classes. See perlsub for other scoping issues."
11898 msgstr ""
11899
11900 #. type: IP
11901 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11902 #: opensuse-leap-16-1 opensuse-tumbleweed
11903 #, no-wrap
11904 msgid "_\\|_PACKAGE_\\|_"
11905 msgstr ""
11906
11907 #. type: IX
11908 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11909 #: opensuse-leap-16-1 opensuse-tumbleweed
11910 #, no-wrap
11911 msgid "__PACKAGE__"
11912 msgstr ""
11913
11914 #. type: Plain text
11915 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11916 #: opensuse-leap-16-1 opensuse-tumbleweed
11917 msgid ""
11918 "A special token that returns the name of the package in which it occurs."
11919 msgstr ""
11920
11921 #. type: IP
11922 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11923 #: opensuse-leap-16-1 opensuse-tumbleweed
11924 #, no-wrap
11925 msgid "_\\|_CLASS_\\|_"
11926 msgstr ""
11927
11928 #. type: IX
11929 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11930 #: opensuse-leap-16-1 opensuse-tumbleweed
11931 #, no-wrap
11932 msgid "__CLASS__"
11933 msgstr ""
11934
11935 #. type: Plain text
11936 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11937 #: opensuse-leap-16-1 opensuse-tumbleweed
11938 msgid ""
11939 "Invoked within a CW<\\*(C`method\\*(C'>, or similar location, such as a "
11940 "field initializer expression, this token returns the name of the class of "
11941 "the invoking instance. Essentially it is equivalent to CW<ref($self)> "
11942 "except that it can additionally be used in a field initializer to gain "
11943 "access to class methods, before the instance is fully constructed."
11944 msgstr ""
11945
11946 #. type: Plain text
11947 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11948 #: opensuse-leap-16-1 opensuse-tumbleweed
11949 #, no-wrap
11950 msgid ""
11951 "\\& use feature \\*(Aqclass\\*(Aq;\n"
11952 "\\&\n"
11953 "\\& class Example1 {\n"
11954 "\\& field $f = _\\|_CLASS_\\|_-E<gt>default_f;\n"
11955 "\\&\n"
11956 "\\& sub default_f { 10 }\n"
11957 "\\& }\n"
11958 msgstr ""
11959
11960 #. type: Plain text
11961 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11962 #: opensuse-leap-16-1 opensuse-tumbleweed
11963 msgid ""
11964 "In a basic class, this value will be the same as \\&CW<\\*(C`_\\|_PACKAGE_\\|"
11965 "_\\*(C'>. The distinction can be seen when a subclass is constructed; it "
11966 "will give the class name of the instance being constructed, rather than just "
11967 "the package name that the actual code belongs to."
11968 msgstr ""
11969
11970 #. type: Plain text
11971 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11972 #: opensuse-leap-16-1 opensuse-tumbleweed
11973 #, no-wrap
11974 msgid ""
11975 "\\& class Example2 :isa(Example1) {\n"
11976 "\\& sub default_f { 20 }\n"
11977 "\\& }\n"
11978 "\\&\n"
11979 "\\& my $obj = Example2-E<gt>new;\n"
11980 "\\& # The $f field now has the value 20\n"
11981 msgstr ""
11982
11983 #. type: IX
11984 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11985 #: opensuse-leap-16-1 opensuse-tumbleweed
11986 #, no-wrap
11987 msgid "pipe READHANDLE,WRITEHANDLE"
11988 msgstr ""
11989
11990 #. type: IX
11991 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
11992 #: opensuse-leap-16-1 opensuse-tumbleweed
11993 #, no-wrap
11994 msgid "pipe"
11995 msgstr ""
11996
11997 #. type: Plain text
11998 #: debian-trixie debian-unstable
11999 msgid ""
12000 "Opens a pair of connected pipes like the corresponding system call. Note "
12001 "that if you set up a loop of piped processes, deadlock can occur unless you "
12002 "are very careful. In addition, note that Perl's pipes use IO buffering, so "
12003 "you may need to set CW<$|> to flush your WRITEHANDLE after each command, "
12004 "depending on the application."
12005 msgstr ""
12006
12007 #. type: Plain text
12008 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12009 #: opensuse-leap-16-1 opensuse-tumbleweed
12010 msgid "Returns true on success."
12011 msgstr ""
12012
12013 #. type: Plain text
12014 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12015 #: opensuse-leap-16-1 opensuse-tumbleweed
12016 msgid ""
12017 "See IPC::Open2, IPC::Open3, and \"Bidirectional Communication with Another "
12018 "Process\" in perlipc for examples of such things."
12019 msgstr ""
12020
12021 #. type: Plain text
12022 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12023 #: opensuse-leap-16-1 opensuse-tumbleweed
12024 msgid ""
12025 "On systems that support a close-on-exec flag on files, that flag is set on "
12026 "all newly opened file descriptors whose \\&CW<\\*(C`fileno\\*(C'>s are "
12027 "I<higher> than the current value of \\&CW<$^F> (by default 2 for "
12028 "CW<\\*(C`STDERR\\*(C'>). See \"$^F\" in perlvar."
12029 msgstr ""
12030
12031 #. type: IX
12032 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12033 #: opensuse-leap-16-1 opensuse-tumbleweed
12034 #, no-wrap
12035 msgid "pop ARRAY"
12036 msgstr ""
12037
12038 #. type: IX
12039 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12040 #: opensuse-leap-16-1 opensuse-tumbleweed
12041 #, no-wrap
12042 msgid "pop stack"
12043 msgstr ""
12044
12045 #. type: IX
12046 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12047 #: opensuse-leap-16-1 opensuse-tumbleweed
12048 #, no-wrap
12049 msgid "pop"
12050 msgstr ""
12051
12052 #. type: Plain text
12053 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12054 #: opensuse-leap-16-1 opensuse-tumbleweed
12055 msgid ""
12056 "Removes and returns the B<last> element of the array, shortening the array "
12057 "by one element."
12058 msgstr ""
12059
12060 #. type: Plain text
12061 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12062 #: opensuse-leap-16-1 opensuse-tumbleweed
12063 #, no-wrap
12064 msgid ""
12065 "\\& my @arr = (\\*(Aqcat\\*(Aq, \\*(Aqdog\\*(Aq, \\*(Aqmouse\\*(Aq);\n"
12066 "\\& my $item = pop(@arr); # \\*(Aqmouse\\*(Aq\n"
12067 "\\&\n"
12068 "\\& # @arr is now (\\*(Aqcat\\*(Aq, \\*(Aqdog\\*(Aq)\n"
12069 msgstr ""
12070
12071 #. type: Plain text
12072 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12073 #: opensuse-leap-16-1 opensuse-tumbleweed
12074 msgid "Returns CW<\\*(C`undef\\*(C'> if the array is empty."
12075 msgstr ""
12076
12077 #. type: Plain text
12078 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12079 #: opensuse-leap-16-1 opensuse-tumbleweed
12080 msgid ""
12081 "\\&B<Note:> CW<\\*(C`pop\\*(C'> may also return CW<\\*(C`undef\\*(C'> if the "
12082 "last element in the array is CW<\\*(C`undef\\*(C'>."
12083 msgstr ""
12084
12085 #. type: Plain text
12086 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12087 #: opensuse-leap-16-1 opensuse-tumbleweed
12088 #, no-wrap
12089 msgid ""
12090 "\\& my @arr = (\\*(Aqone\\*(Aq, \\*(Aqtwo\\*(Aq, undef);\n"
12091 "\\& my $item = pop(@arr); # undef\n"
12092 msgstr ""
12093
12094 #. type: Plain text
12095 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12096 #: opensuse-leap-16-1 opensuse-tumbleweed
12097 msgid ""
12098 "If ARRAY is omitted, CW<\\*(C`pop\\*(C'> operates on the CW<@ARGV> array in "
12099 "the main program, but the CW<@_> array in subroutines. CW<\\*(C`pop\\*(C'> "
12100 "will operate on the CW<@ARGV> array in CW<\\*(C`eval STRING\\*(C'>, "
12101 "CW<\\*(C`BEGIN {}\\*(C'>, CW<\\*(C`INIT {}\\*(C'>, \\&CW<\\*(C`CHECK {}"
12102 "\\*(C'> blocks."
12103 msgstr ""
12104
12105 #. type: Plain text
12106 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12107 #: opensuse-leap-16-1 opensuse-tumbleweed
12108 msgid ""
12109 "Starting with Perl 5.14, an experimental feature allowed "
12110 "\\&CW<\\*(C`pop\\*(C'> to take a scalar expression. This experiment has been "
12111 "deemed unsuccessful, and was removed as of Perl 5.24."
12112 msgstr ""
12113
12114 #. type: IX
12115 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12116 #: opensuse-leap-16-1 opensuse-tumbleweed
12117 #, no-wrap
12118 msgid "pos SCALAR"
12119 msgstr ""
12120
12121 #. type: IX
12122 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12123 #: opensuse-leap-16-1 opensuse-tumbleweed
12124 #, no-wrap
12125 msgid "pos match, position"
12126 msgstr ""
12127
12128 #. type: IX
12129 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12130 #: opensuse-leap-16-1 opensuse-tumbleweed
12131 #, no-wrap
12132 msgid "pos"
12133 msgstr ""
12134
12135 #. type: Plain text
12136 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12137 #: opensuse-leap-16-1 opensuse-tumbleweed
12138 msgid ""
12139 "Returns the offset of where the last CW<\\*(C`m//g\\*(C'> search left off "
12140 "for the variable in question (CW<$_> is used when the variable is not "
12141 "specified). This offset is in characters unless the (no-longer-recommended) "
12142 "CW<\\*(C`use bytes\\*(C'> pragma is in effect, in which case the offset is "
12143 "in bytes. Note that 0 is a valid match offset. \\&CW<\\*(C`undef\\*(C'> "
12144 "indicates that the search position is reset (usually due to match failure, "
12145 "but can also be because no match has yet been run on the scalar)."
12146 msgstr ""
12147
12148 #. type: Plain text
12149 #: debian-trixie debian-unstable
12150 msgid ""
12151 "\\&CW<\\*(C`pos\\*(C'> directly accesses the location used by the regexp "
12152 "engine to store the offset, so assigning to CW<\\*(C`pos\\*(C'> will change "
12153 "that offset, and so will also influence the CW<\\*(C`\\eG\\*(C'> zero-width "
12154 "assertion in regular expressions. Both of these effects take place for the "
12155 "next match, so you can't affect the position with \\&CW<\\*(C`pos\\*(C'> "
12156 "during the current match, such as in \\&CW<\\*(C`(?{pos() = 5})\\*(C'> or "
12157 "CW<\\*(C`s//pos() = 5/e\\*(C'>."
12158 msgstr ""
12159
12160 #. type: Plain text
12161 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12162 #: opensuse-leap-16-1 opensuse-tumbleweed
12163 msgid ""
12164 "Setting CW<\\*(C`pos\\*(C'> also resets the I<matched with zero-length> "
12165 "flag, described under \"Repeated Patterns Matching a Zero-length Substring\" "
12166 "in perlre."
12167 msgstr ""
12168
12169 #. type: Plain text
12170 #: debian-trixie debian-unstable
12171 msgid ""
12172 "Because a failed CW<\\*(C`m//gc\\*(C'> match doesn't reset the offset, the "
12173 "return from CW<\\*(C`pos\\*(C'> won't change either in this case. See "
12174 "perlre and perlop."
12175 msgstr ""
12176
12177 #. type: IX
12178 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12179 #: opensuse-leap-16-1 opensuse-tumbleweed
12180 #, no-wrap
12181 msgid "print FILEHANDLE LIST"
12182 msgstr ""
12183
12184 #. type: IX
12185 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12186 #: opensuse-leap-16-1 opensuse-tumbleweed
12187 #, no-wrap
12188 msgid "print"
12189 msgstr ""
12190
12191 #. type: IX
12192 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12193 #: opensuse-leap-16-1 opensuse-tumbleweed
12194 #, no-wrap
12195 msgid "print FILEHANDLE"
12196 msgstr ""
12197
12198 #. type: IX
12199 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12200 #: opensuse-leap-16-1 opensuse-tumbleweed
12201 #, no-wrap
12202 msgid "print LIST"
12203 msgstr ""
12204
12205 #. type: Plain text
12206 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12207 #: opensuse-leap-16-1 opensuse-tumbleweed
12208 msgid ""
12209 "Prints a string or a list of strings. Returns true if successful. "
12210 "FILEHANDLE may be a scalar variable containing the name of or a reference to "
12211 "the filehandle, thus introducing one level of indirection. (NOTE: If "
12212 "FILEHANDLE is a variable and the next token is a term, it may be "
12213 "misinterpreted as an operator unless you interpose a CW<\\*(C`+\\*(C'> or "
12214 "put parentheses around the arguments.) If FILEHANDLE is omitted, prints to "
12215 "the last selected (see CW<\\*(C`select\\*(C'>) output handle. If LIST is "
12216 "omitted, prints CW<$_> to the currently selected output handle. To use "
12217 "FILEHANDLE alone to print the content of \\&CW<$_> to it, you must use a "
12218 "bareword filehandle like \\&CW<\\*(C`FH\\*(C'>, not an indirect one like "
12219 "CW<$fh>. To set the default output handle to something other than STDOUT, "
12220 "use the select operation."
12221 msgstr ""
12222
12223 #. type: Plain text
12224 #: debian-trixie debian-unstable
12225 msgid ""
12226 "The current value of CW<$,> (if any) is printed between each LIST item. The "
12227 "current value of CW<\\*(C`$\\e\\*(C'> (if any) is printed after the entire "
12228 "LIST has been printed. Because print takes a LIST, anything in the LIST is "
12229 "evaluated in list context, including any subroutines whose return lists you "
12230 "pass to \\&CW<\\*(C`print\\*(C'>. Be careful not to follow the print "
12231 "keyword with a left parenthesis unless you want the corresponding right "
12232 "parenthesis to terminate the arguments to the print; put parentheses around "
12233 "all arguments (or interpose a CW<\\*(C`+\\*(C'>, but that doesn't look as "
12234 "good)."
12235 msgstr ""
12236
12237 #. type: Plain text
12238 #: debian-trixie debian-unstable
12239 msgid ""
12240 "If you're storing handles in an array or hash, or in general whenever you're "
12241 "using any expression more complex than a bareword handle or a plain, "
12242 "unsubscripted scalar variable to retrieve it, you will have to use a block "
12243 "returning the filehandle value instead, in which case the LIST may not be "
12244 "omitted:"
12245 msgstr ""
12246
12247 #. type: Plain text
12248 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12249 #: opensuse-leap-16-1 opensuse-tumbleweed
12250 #, no-wrap
12251 msgid ""
12252 "\\& print { $files[$i] } \"stuff\\en\";\n"
12253 "\\& print { $OK ? *STDOUT : *STDERR } \"stuff\\en\";\n"
12254 msgstr ""
12255
12256 #. type: Plain text
12257 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12258 #: opensuse-leap-16-1 opensuse-tumbleweed
12259 msgid ""
12260 "Printing to a closed pipe or socket will generate a SIGPIPE signal. See "
12261 "perlipc for more on signal handling."
12262 msgstr ""
12263
12264 #. type: IX
12265 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12266 #: opensuse-leap-16-1 opensuse-tumbleweed
12267 #, no-wrap
12268 msgid "printf FILEHANDLE FORMAT, LIST"
12269 msgstr ""
12270
12271 #. type: IX
12272 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12273 #: opensuse-leap-16-1 opensuse-tumbleweed
12274 #, no-wrap
12275 msgid "printf"
12276 msgstr ""
12277
12278 #. type: IX
12279 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12280 #: opensuse-leap-16-1 opensuse-tumbleweed
12281 #, no-wrap
12282 msgid "printf FILEHANDLE"
12283 msgstr ""
12284
12285 #. type: IX
12286 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12287 #: opensuse-leap-16-1 opensuse-tumbleweed
12288 #, no-wrap
12289 msgid "printf FORMAT, LIST"
12290 msgstr ""
12291
12292 #. type: Plain text
12293 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12294 #: opensuse-leap-16-1 opensuse-tumbleweed
12295 msgid ""
12296 "Equivalent to CW<\\*(C`print FILEHANDLE sprintf(FORMAT, LIST)\\*(C'>, except "
12297 "that \\&CW<\\*(C`$\\e\\*(C'> (the output record separator) is not appended. "
12298 "The FORMAT and the LIST are actually parsed as a single list. The first "
12299 "argument of the list will be interpreted as the \\&CW<\\*(C`printf\\*(C'> "
12300 "format. This means that \\&CW<printf(@_)> will use CW<$_[0]> as the "
12301 "format. See sprintf for an explanation of the format argument. If "
12302 "CW<\\*(C`use locale\\*(C'> (including CW<\\*(C`use locale "
12303 "\\*(Aq:not_characters\\*(Aq\\*(C'>) is in effect and "
12304 "CW<\\*(C`POSIX::setlocale\\*(C'> has been called, the character used for the "
12305 "decimal separator in formatted floating-point numbers is affected by the "
12306 "CW<\\*(C`LC_NUMERIC\\*(C'> locale setting. See perllocale and POSIX."
12307 msgstr ""
12308
12309 #. type: Plain text
12310 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12311 #: opensuse-leap-16-1 opensuse-tumbleweed
12312 msgid ""
12313 "For historical reasons, if you omit the list, CW<$_> is used as the format; "
12314 "to use FILEHANDLE without a list, you must use a bareword filehandle like "
12315 "\\&CW<\\*(C`FH\\*(C'>, not an indirect one like CW<$fh>. However, this will "
12316 "rarely do what you want; if CW<$_> contains formatting codes, they will be "
12317 "replaced with the empty string and a warning will be emitted if warnings are "
12318 "enabled. Just use CW<\\*(C`print\\*(C'> if you want to print the contents "
12319 "of CW<$_>."
12320 msgstr ""
12321
12322 #. type: Plain text
12323 #: debian-trixie debian-unstable
12324 msgid ""
12325 "Don't fall into the trap of using a \\&CW<\\*(C`printf\\*(C'> when a simple "
12326 "\\&CW<\\*(C`print\\*(C'> would do. The \\&CW<\\*(C`print\\*(C'> is more "
12327 "efficient and less error prone."
12328 msgstr ""
12329
12330 #. type: IX
12331 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12332 #: opensuse-leap-16-1 opensuse-tumbleweed
12333 #, no-wrap
12334 msgid "prototype FUNCTION"
12335 msgstr ""
12336
12337 #. type: IX
12338 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12339 #: opensuse-leap-16-1 opensuse-tumbleweed
12340 #, no-wrap
12341 msgid "prototype"
12342 msgstr ""
12343
12344 #. type: Plain text
12345 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12346 #: opensuse-leap-16-1 opensuse-tumbleweed
12347 msgid ""
12348 "Returns the prototype of a function as a string (or \\&CW<\\*(C`undef\\*(C'> "
12349 "if the function has no prototype). FUNCTION is a reference to, or the name "
12350 "of, the function whose prototype you want to retrieve. If FUNCTION is "
12351 "omitted, \\&CW<$_> is used."
12352 msgstr ""
12353
12354 #. type: Plain text
12355 #: debian-trixie debian-unstable
12356 msgid ""
12357 "If FUNCTION is a string starting with CW<\\*(C`CORE::\\*(C'>, the rest is "
12358 "taken as a name for a Perl builtin. If the builtin's arguments cannot be "
12359 "adequately expressed by a prototype (such as CW<\\*(C`system\\*(C'>), "
12360 "CW<\\*(C`prototype\\*(C'> returns CW<\\*(C`undef\\*(C'>, because the builtin "
12361 "does not really behave like a Perl function. Otherwise, the string "
12362 "describing the equivalent prototype is returned."
12363 msgstr ""
12364
12365 #. type: IX
12366 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12367 #: opensuse-leap-16-1 opensuse-tumbleweed
12368 #, no-wrap
12369 msgid "push ARRAY,LIST"
12370 msgstr ""
12371
12372 #. type: IX
12373 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12374 #: opensuse-leap-16-1 opensuse-tumbleweed
12375 #, no-wrap
12376 msgid "push stack"
12377 msgstr ""
12378
12379 #. type: Plain text
12380 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12381 #: opensuse-leap-16-1 opensuse-tumbleweed
12382 msgid "Adds one or more items to the B<end> of an array."
12383 msgstr ""
12384
12385 #. type: Plain text
12386 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12387 #: opensuse-leap-16-1 opensuse-tumbleweed
12388 #, no-wrap
12389 msgid ""
12390 "\\& my @animals = (\"cat\");\n"
12391 "\\& push(@animals, \"mouse\"); # (\"cat\", \"mouse\")\n"
12392 "\\&\n"
12393 "\\& my @colors = (\"red\");\n"
12394 "\\& push(@colors, (\"blue\", \"green\")); # (\"red\", \"blue\", \"green\")\n"
12395 msgstr ""
12396
12397 #. type: Plain text
12398 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12399 #: opensuse-leap-16-1 opensuse-tumbleweed
12400 msgid ""
12401 "Returns the number of elements in the array following the completed "
12402 "\\&CW<\\*(C`push\\*(C'>."
12403 msgstr ""
12404
12405 #. type: Plain text
12406 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12407 #: opensuse-leap-16-1 opensuse-tumbleweed
12408 #, no-wrap
12409 msgid ""
12410 "\\& my $color_count = push(@colors, (\"yellow\", \"purple\"));\n"
12411 "\\&\n"
12412 "\\& say \"There are $color_count colors in the updated array\";\n"
12413 msgstr ""
12414
12415 #. type: Plain text
12416 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12417 #: opensuse-leap-16-1 opensuse-tumbleweed
12418 msgid ""
12419 "Starting with Perl 5.14, an experimental feature allowed "
12420 "\\&CW<\\*(C`push\\*(C'> to take a scalar expression. This experiment has "
12421 "been deemed unsuccessful, and was removed as of Perl 5.24."
12422 msgstr ""
12423
12424 #. type: IX
12425 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12426 #: opensuse-leap-16-1 opensuse-tumbleweed
12427 #, no-wrap
12428 msgid "q/STRING/"
12429 msgstr ""
12430
12431 #. type: IX
12432 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12433 #: opensuse-leap-16-1 opensuse-tumbleweed
12434 #, no-wrap
12435 msgid "qq/STRING/"
12436 msgstr ""
12437
12438 #. type: IX
12439 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12440 #: opensuse-leap-16-1 opensuse-tumbleweed
12441 #, no-wrap
12442 msgid "qw/STRING/"
12443 msgstr ""
12444
12445 #. type: IX
12446 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12447 #: opensuse-leap-16-1 opensuse-tumbleweed
12448 #, no-wrap
12449 msgid "qx/STRING/"
12450 msgstr ""
12451
12452 #. type: Plain text
12453 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12454 #: opensuse-leap-16-1 opensuse-tumbleweed
12455 msgid "Generalized quotes. See \"Quote-Like Operators\" in perlop."
12456 msgstr ""
12457
12458 #. type: IX
12459 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12460 #: opensuse-leap-16-1 opensuse-tumbleweed
12461 #, no-wrap
12462 msgid "qr/STRING/"
12463 msgstr ""
12464
12465 #. type: Plain text
12466 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12467 #: opensuse-leap-16-1 opensuse-tumbleweed
12468 msgid "Regexp-like quote. See \"Regexp Quote-Like Operators\" in perlop."
12469 msgstr ""
12470
12471 #. type: IX
12472 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12473 #: opensuse-leap-16-1 opensuse-tumbleweed
12474 #, no-wrap
12475 msgid "quotemeta EXPR"
12476 msgstr ""
12477
12478 #. type: IX
12479 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12480 #: opensuse-leap-16-1 opensuse-tumbleweed
12481 #, no-wrap
12482 msgid "quotemeta metacharacter"
12483 msgstr ""
12484
12485 #. type: IX
12486 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12487 #: opensuse-leap-16-1 opensuse-tumbleweed
12488 #, no-wrap
12489 msgid "quotemeta"
12490 msgstr ""
12491
12492 #. type: Plain text
12493 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12494 #: opensuse-leap-16-1 opensuse-tumbleweed
12495 msgid ""
12496 "Returns the value of EXPR with all the ASCII non-\"word\" characters "
12497 "backslashed. (That is, all ASCII characters not matching \\&CW<\\*(C`/[A-Za-"
12498 "z_0-9]/\\*(C'> will be preceded by a backslash in the returned string, "
12499 "regardless of any locale settings.) This is the internal function "
12500 "implementing the CW<\\*(C`\\eQ\\*(C'> escape in double-quoted strings. (See "
12501 "below for the behavior on non-ASCII code points.)"
12502 msgstr ""
12503
12504 #. type: Plain text
12505 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12506 #: opensuse-leap-16-1 opensuse-tumbleweed
12507 msgid ""
12508 "quotemeta (and CW<\\*(C`\\eQ\\*(C'> ... CW<\\*(C`\\eE\\*(C'>) are useful "
12509 "when interpolating strings into regular expressions, because by default an "
12510 "interpolated variable will be considered a mini-regular expression. For "
12511 "example:"
12512 msgstr ""
12513
12514 #. type: Plain text
12515 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12516 #: opensuse-leap-16-1 opensuse-tumbleweed
12517 #, no-wrap
12518 msgid ""
12519 "\\& my $sentence = \\*(AqThe quick brown fox jumped over the lazy dog\\*(Aq;\n"
12520 "\\& my $substring = \\*(Aqquick.*?fox\\*(Aq;\n"
12521 "\\& $sentence =~ s{$substring}{big bad wolf};\n"
12522 msgstr ""
12523
12524 #. type: Plain text
12525 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12526 #: opensuse-leap-16-1 opensuse-tumbleweed
12527 msgid ""
12528 "Will cause CW<$sentence> to become CW<\\*(AqThe big bad wolf jumped over..."
12529 "\\*(Aq>."
12530 msgstr ""
12531
12532 #. type: Plain text
12533 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12534 #: opensuse-leap-16-1 opensuse-tumbleweed
12535 msgid "On the other hand:"
12536 msgstr ""
12537
12538 #. type: Plain text
12539 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12540 #: opensuse-leap-16-1 opensuse-tumbleweed
12541 #, no-wrap
12542 msgid ""
12543 "\\& my $sentence = \\*(AqThe quick brown fox jumped over the lazy dog\\*(Aq;\n"
12544 "\\& my $substring = \\*(Aqquick.*?fox\\*(Aq;\n"
12545 "\\& $sentence =~ s{\\eQ$substring\\eE}{big bad wolf};\n"
12546 msgstr ""
12547
12548 #. type: Plain text
12549 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12550 #: opensuse-leap-16-1 opensuse-tumbleweed
12551 msgid "Or:"
12552 msgstr ""
12553
12554 #. type: Plain text
12555 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12556 #: opensuse-leap-16-1 opensuse-tumbleweed
12557 #, no-wrap
12558 msgid ""
12559 "\\& my $sentence = \\*(AqThe quick brown fox jumped over the lazy dog\\*(Aq;\n"
12560 "\\& my $substring = \\*(Aqquick.*?fox\\*(Aq;\n"
12561 "\\& my $quoted_substring = quotemeta($substring);\n"
12562 "\\& $sentence =~ s{$quoted_substring}{big bad wolf};\n"
12563 msgstr ""
12564
12565 #. type: Plain text
12566 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12567 #: opensuse-leap-16-1 opensuse-tumbleweed
12568 msgid ""
12569 "Will both leave the sentence as is. Normally, when accepting literal string "
12570 "input from the user, \\&CW<\\*(C`quotemeta\\*(C'> or CW<\\*(C`\\eQ\\*(C'> "
12571 "must be used."
12572 msgstr ""
12573
12574 #. type: Plain text
12575 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12576 #: opensuse-leap-16-1 opensuse-tumbleweed
12577 msgid ""
12578 "Beware that if you put literal backslashes (those not inside interpolated "
12579 "variables) between CW<\\*(C`\\eQ\\*(C'> and CW<\\*(C`\\eE\\*(C'>, double-"
12580 "quotish backslash interpolation may lead to confusing results. If you "
12581 "\\&I<need> to use literal backslashes within CW<\\*(C`\\eQ...\\eE\\*(C'>, "
12582 "consult \"Gory details of parsing quoted constructs\" in perlop."
12583 msgstr ""
12584
12585 #. type: Plain text
12586 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12587 #: opensuse-leap-16-1 opensuse-tumbleweed
12588 msgid ""
12589 "Because the result of CW<\"\\eQ\\ >\\f(CISTRINGCW<\\ \\eE\"> has all "
12590 "metacharacters quoted, there is no way to insert a literal CW<\\*(C`$\\*(C'> "
12591 "or CW<\\*(C`@\\*(C'> inside a \\&CW<\\*(C`\\eQ\\eE\\*(C'> pair. If "
12592 "protected by CW<\\*(C`\\e\\*(C'>, CW<\\*(C`$\\*(C'> will be quoted to become "
12593 "\\&CW<\"\\e\\e\\e$\">; if not, it is interpreted as the start of an "
12594 "interpolated scalar."
12595 msgstr ""
12596
12597 #. type: Plain text
12598 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12599 #: opensuse-leap-16-1 opensuse-tumbleweed
12600 msgid ""
12601 "In Perl v5.14, all non-ASCII characters are quoted in non-UTF-8-encoded "
12602 "strings, but not quoted in UTF-8 strings."
12603 msgstr ""
12604
12605 #. type: Plain text
12606 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12607 #: opensuse-leap-16-1 opensuse-tumbleweed
12608 msgid ""
12609 "Starting in Perl v5.16, Perl adopted a Unicode-defined strategy for quoting "
12610 "non-ASCII characters; the quoting of ASCII characters is unchanged."
12611 msgstr ""
12612
12613 #. type: Plain text
12614 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12615 #: opensuse-leap-16-1 opensuse-tumbleweed
12616 msgid ""
12617 "Also unchanged is the quoting of non-UTF-8 strings when outside the scope of "
12618 "a \\&CW<\\*(C`use feature \\*(Aqunicode_strings\\*(Aq\\*(C'>, which is to "
12619 "quote all characters in the upper Latin1 range. This provides complete "
12620 "backwards compatibility for old programs which do not use Unicode. (Note "
12621 "that \\&CW<\\*(C`unicode_strings\\*(C'> is automatically enabled within the "
12622 "scope of a \\&CW<\\*(C`use\\ v5.12\\*(C'> or greater.)"
12623 msgstr ""
12624
12625 #. type: Plain text
12626 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12627 #: opensuse-leap-16-1 opensuse-tumbleweed
12628 msgid ""
12629 "Within the scope of CW<\\*(C`use locale\\*(C'>, all non-ASCII Latin1 code "
12630 "points are quoted whether the string is encoded as UTF-8 or not. As "
12631 "mentioned above, locale does not affect the quoting of ASCII-range "
12632 "characters. This protects against those locales where characters such as "
12633 "CW<\"|\"> are considered to be word characters."
12634 msgstr ""
12635
12636 #. type: Plain text
12637 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12638 #: opensuse-leap-16-1 opensuse-tumbleweed
12639 msgid ""
12640 "Otherwise, Perl quotes non-ASCII characters using an adaptation from Unicode "
12641 "(see E<lt>https://www.unicode.org/reports/tr31/E<gt>). The only code points "
12642 "that are quoted are those that have any of the Unicode properties: "
12643 "Pattern_Syntax, Pattern_White_Space, White_Space, "
12644 "Default_Ignorable_Code_Point, or General_Category=Control."
12645 msgstr ""
12646
12647 #. type: Plain text
12648 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12649 #: opensuse-leap-16-1 opensuse-tumbleweed
12650 msgid ""
12651 "Of these properties, the two important ones are Pattern_Syntax and "
12652 "Pattern_White_Space. They have been set up by Unicode for exactly this "
12653 "purpose of deciding which characters in a regular expression pattern should "
12654 "be quoted. No character that can be in an identifier has these properties."
12655 msgstr ""
12656
12657 #. type: Plain text
12658 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12659 #: opensuse-leap-16-1 opensuse-tumbleweed
12660 msgid ""
12661 "Perl promises, that if we ever add regular expression pattern metacharacters "
12662 "to the dozen already defined (CW<\\*(C`\\e | ( ) [ { ^ $ * + ? .\\*(C'>), "
12663 "that we will only use ones that have the Pattern_Syntax property. Perl also "
12664 "promises, that if we ever add characters that are considered to be white "
12665 "space in regular expressions (currently mostly affected by CW<\\*(C`/"
12666 "x\\*(C'>), they will all have the Pattern_White_Space property."
12667 msgstr ""
12668
12669 #. type: Plain text
12670 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12671 #: opensuse-leap-16-1 opensuse-tumbleweed
12672 msgid ""
12673 "Unicode promises that the set of code points that have these two properties "
12674 "will never change, so something that is not quoted in v5.16 will never need "
12675 "to be quoted in any future Perl release. (Not all the code points that "
12676 "match Pattern_Syntax have actually had characters assigned to them; so there "
12677 "is room to grow, but they are quoted whether assigned or not. Perl, of "
12678 "course, would never use an unassigned code point as an actual metacharacter.)"
12679 msgstr ""
12680
12681 #. type: Plain text
12682 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12683 #: opensuse-leap-16-1 opensuse-tumbleweed
12684 msgid ""
12685 "Quoting characters that have the other 3 properties is done to enhance the "
12686 "readability of the regular expression and not because they actually need to "
12687 "be quoted for regular expression purposes (characters with the White_Space "
12688 "property are likely to be indistinguishable on the page or screen from those "
12689 "with the Pattern_White_Space property; and the other two properties contain "
12690 "non-printing characters)."
12691 msgstr ""
12692
12693 #. type: IX
12694 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12695 #: opensuse-leap-16-1 opensuse-tumbleweed
12696 #, no-wrap
12697 msgid "rand EXPR"
12698 msgstr ""
12699
12700 #. type: IX
12701 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12702 #: opensuse-leap-16-1 opensuse-tumbleweed
12703 #, no-wrap
12704 msgid "rand random"
12705 msgstr ""
12706
12707 #. type: IX
12708 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12709 #: opensuse-leap-16-1 opensuse-tumbleweed
12710 #, no-wrap
12711 msgid "rand"
12712 msgstr ""
12713
12714 #. type: Plain text
12715 #: debian-trixie debian-unstable
12716 msgid ""
12717 "Returns a random fractional number greater than or equal to CW<0> and less "
12718 "than the value of EXPR. (EXPR should be positive.) If EXPR is omitted, the "
12719 "value CW<1> is used. Currently EXPR with the value CW<0> is also special-"
12720 "cased as CW<1> (this was undocumented before Perl 5.8.0 and is subject to "
12721 "change in future versions of Perl). Automatically calls "
12722 "\\&CW<\\*(C`srand\\*(C'> unless CW<\\*(C`srand\\*(C'> has already been "
12723 "called. See also CW<\\*(C`srand\\*(C'>."
12724 msgstr ""
12725
12726 #. type: Plain text
12727 #: debian-trixie debian-unstable
12728 msgid ""
12729 "Apply CW<\\*(C`int\\*(C'> to the value returned by CW<\\*(C`rand\\*(C'> if "
12730 "you want random integers instead of random fractional numbers. For example,"
12731 msgstr ""
12732
12733 #. type: Plain text
12734 #: debian-trixie debian-unstable
12735 #, no-wrap
12736 msgid "\\& int(rand(10))\n"
12737 msgstr ""
12738
12739 #. type: Plain text
12740 #: debian-trixie debian-unstable
12741 msgid "returns a random integer between CW<0> and CW<9>, inclusive."
12742 msgstr ""
12743
12744 #. type: Plain text
12745 #: debian-trixie debian-unstable
12746 msgid ""
12747 "(Note: If your rand function consistently returns numbers that are too large "
12748 "or too small, then your version of Perl was probably compiled with the wrong "
12749 "number of RANDBITS.)"
12750 msgstr ""
12751
12752 #. type: Plain text
12753 #: debian-trixie debian-unstable
12754 msgid ""
12755 "\\&\\f(CB\\*(C`rand\\*(C'B< is not cryptographically secure. You should not "
12756 "rely on it in security-sensitive situations.> As of this writing, a number "
12757 "of third-party CPAN modules offer random number generators intended by their "
12758 "authors to be cryptographically secure, including: Data::Entropy, "
12759 "Crypt::Random, Math::Random::Secure, and Math::TrulyRandom."
12760 msgstr ""
12761
12762 #. type: IX
12763 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12764 #: opensuse-leap-16-1 opensuse-tumbleweed
12765 #, no-wrap
12766 msgid "read FILEHANDLE,SCALAR,LENGTH,OFFSET"
12767 msgstr ""
12768
12769 #. type: IX
12770 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12771 #: opensuse-leap-16-1 opensuse-tumbleweed
12772 #, no-wrap
12773 msgid "read file, read"
12774 msgstr ""
12775
12776 #. type: IX
12777 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12778 #: opensuse-leap-16-1 opensuse-tumbleweed
12779 #, no-wrap
12780 msgid "read FILEHANDLE,SCALAR,LENGTH"
12781 msgstr ""
12782
12783 #. type: Plain text
12784 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12785 #: opensuse-leap-16-1 opensuse-tumbleweed
12786 msgid ""
12787 "Attempts to read LENGTH I<characters> of data into variable SCALAR from the "
12788 "specified FILEHANDLE. Returns the number of characters actually read, CW<0> "
12789 "at end of file, or undef if there was an error (in the latter case CW<$!> is "
12790 "also set). SCALAR will be grown or shrunk so that the last character "
12791 "actually read is the last character of the scalar after the read."
12792 msgstr ""
12793
12794 #. type: Plain text
12795 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12796 #: opensuse-leap-16-1 opensuse-tumbleweed
12797 msgid ""
12798 "An OFFSET may be specified to place the read data at some place in the "
12799 "string other than the beginning. A negative OFFSET specifies placement at "
12800 "that many characters counting backwards from the end of the string. A "
12801 "positive OFFSET greater than the length of SCALAR results in the string "
12802 "being padded to the required size with CW<\"\\e0\"> bytes before the result "
12803 "of the read is appended."
12804 msgstr ""
12805
12806 #. type: Plain text
12807 #: debian-trixie debian-unstable
12808 msgid ""
12809 "The call is implemented in terms of either Perl's or your system's native "
12810 "\\&B<fread>\\|(3) library function, via the PerlIO layers applied to the "
12811 "handle. To get a true B<read>\\|(2) system call, see sysread."
12812 msgstr ""
12813
12814 #. type: Plain text
12815 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12816 #: opensuse-leap-16-1 opensuse-tumbleweed
12817 msgid ""
12818 "Note the I<characters>: depending on the status of the filehandle, either (8-"
12819 "bit) bytes or characters are read. By default, all filehandles operate on "
12820 "bytes, but for example if the filehandle has been opened with the "
12821 "CW<\\*(C`:utf8\\*(C'> I/O layer (see \\&CW<\\*(C`open\\*(C'>, and the open "
12822 "pragma), the I/O will operate on UTF8-encoded Unicode characters, not "
12823 "bytes. Similarly for the CW<\\*(C`:encoding\\*(C'> layer: in that case "
12824 "pretty much any characters can be read."
12825 msgstr ""
12826
12827 #. type: IX
12828 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12829 #: opensuse-leap-16-1 opensuse-tumbleweed
12830 #, no-wrap
12831 msgid "readdir DIRHANDLE"
12832 msgstr ""
12833
12834 #. type: IX
12835 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12836 #: opensuse-leap-16-1 opensuse-tumbleweed
12837 #, no-wrap
12838 msgid "readdir"
12839 msgstr ""
12840
12841 #. type: Plain text
12842 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12843 #: opensuse-leap-16-1 opensuse-tumbleweed
12844 msgid ""
12845 "Returns the next directory entry for a directory opened by "
12846 "\\&CW<\\*(C`opendir\\*(C'>. If used in list context, returns all the rest "
12847 "of the entries in the directory. If there are no more entries, returns the "
12848 "undefined value in scalar context and the empty list in list context."
12849 msgstr ""
12850
12851 #. type: Plain text
12852 #: debian-trixie debian-unstable
12853 msgid ""
12854 "If you're planning to filetest the return values out of a "
12855 "\\&CW<\\*(C`readdir\\*(C'>, you'd better prepend the directory in question. "
12856 "Otherwise, because we didn't CW<\\*(C`chdir\\*(C'> there, it would have been "
12857 "testing the wrong file."
12858 msgstr ""
12859
12860 #. type: Plain text
12861 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12862 #: opensuse-leap-16-1 opensuse-tumbleweed
12863 #, no-wrap
12864 msgid ""
12865 "\\& opendir(my $dh, $some_dir) || die \"Can\\*(Aqt opendir $some_dir: $!\";\n"
12866 "\\& my @dots = grep { /^\\e./ && -f \"$some_dir/$_\" } readdir($dh);\n"
12867 "\\& closedir $dh;\n"
12868 msgstr ""
12869
12870 #. type: Plain text
12871 #: debian-trixie debian-unstable
12872 msgid ""
12873 "As of Perl 5.12 you can use a bare CW<\\*(C`readdir\\*(C'> in a "
12874 "\\&CW<\\*(C`while\\*(C'> loop, which will set CW<$_> on every iteration. If "
12875 "either a CW<\\*(C`readdir\\*(C'> expression or an explicit assignment of a "
12876 "\\&CW<\\*(C`readdir\\*(C'> expression to a scalar is used as a "
12877 "CW<\\*(C`while\\*(C'>/CW<\\*(C`for\\*(C'> condition, then the condition "
12878 "actually tests for definedness of the expression's value, not for its "
12879 "regular truth value."
12880 msgstr ""
12881
12882 #. type: Plain text
12883 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12884 #: opensuse-leap-16-1 opensuse-tumbleweed
12885 #, no-wrap
12886 msgid ""
12887 "\\& opendir(my $dh, $some_dir) || die \"Can\\*(Aqt open $some_dir: $!\";\n"
12888 "\\& while (readdir $dh) {\n"
12889 "\\& print \"$some_dir/$_\\en\";\n"
12890 "\\& }\n"
12891 "\\& closedir $dh;\n"
12892 msgstr ""
12893
12894 #. type: Plain text
12895 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12896 #: opensuse-leap-16-1 opensuse-tumbleweed
12897 msgid ""
12898 "To avoid confusing would-be users of your code who are running earlier "
12899 "versions of Perl with mysterious failures, put this sort of thing at the top "
12900 "of your file to signal that your code will work I<only> on Perls of a recent "
12901 "vintage:"
12902 msgstr ""
12903
12904 #. type: Plain text
12905 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12906 #: opensuse-leap-16-1 opensuse-tumbleweed
12907 #, no-wrap
12908 msgid "\\& use v5.12; # so readdir assigns to $_ in a lone while test\n"
12909 msgstr ""
12910
12911 #. type: IX
12912 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12913 #: opensuse-leap-16-1 opensuse-tumbleweed
12914 #, no-wrap
12915 msgid "readline EXPR"
12916 msgstr ""
12917
12918 #. type: IX
12919 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12920 #: opensuse-leap-16-1 opensuse-tumbleweed
12921 #, no-wrap
12922 msgid "readline"
12923 msgstr ""
12924
12925 #. type: IX
12926 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12927 #: opensuse-leap-16-1 opensuse-tumbleweed
12928 #, no-wrap
12929 msgid "readline gets fgets"
12930 msgstr ""
12931
12932 #. type: Plain text
12933 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12934 #: opensuse-leap-16-1 opensuse-tumbleweed
12935 msgid ""
12936 "Reads from the filehandle whose typeglob is contained in EXPR (or from "
12937 "\\&CW<*ARGV> if EXPR is not provided). In scalar context, each call reads "
12938 "and returns the next line until end-of-file is reached, whereupon the "
12939 "subsequent call returns CW<\\*(C`undef\\*(C'>. In list context, reads until "
12940 "end-of-file is reached and returns a list of lines. Note that the notion of "
12941 "\"line\" used here is whatever you may have defined with \\&CW<$/> (or "
12942 "CW<$INPUT_RECORD_SEPARATOR> in English). See \"$/\" in perlvar."
12943 msgstr ""
12944
12945 #. type: Plain text
12946 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12947 #: opensuse-leap-16-1 opensuse-tumbleweed
12948 msgid ""
12949 "When CW<$/> is set to CW<\\*(C`undef\\*(C'>, when CW<\\*(C`readline\\*(C'> "
12950 "is in scalar context (i.e., file slurp mode), and when an empty file is "
12951 "read, it returns CW<\\*(Aq\\*(Aq> the first time, followed by "
12952 "CW<\\*(C`undef\\*(C'> subsequently."
12953 msgstr ""
12954
12955 #. type: Plain text
12956 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12957 #: opensuse-leap-16-1 opensuse-tumbleweed
12958 msgid ""
12959 "This is the internal function implementing the "
12960 "CW<\\*(C`E<lt>EXPRE<gt>\\*(C'> operator, but you can use it directly. The "
12961 "CW<\\*(C`E<lt>EXPRE<gt>\\*(C'> operator is discussed in more detail in \"I/O "
12962 "Operators\" in perlop."
12963 msgstr ""
12964
12965 #. type: Plain text
12966 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12967 #: opensuse-leap-16-1 opensuse-tumbleweed
12968 #, no-wrap
12969 msgid ""
12970 "\\& my $line = E<lt>STDINE<gt>;\n"
12971 "\\& my $line = readline(STDIN); # same thing\n"
12972 msgstr ""
12973
12974 #. type: Plain text
12975 #: debian-trixie debian-unstable
12976 msgid ""
12977 "If CW<\\*(C`readline\\*(C'> encounters an operating system error, \\&CW<$!> "
12978 "will be set with the corresponding error message. It can be helpful to "
12979 "check CW<$!> when you are reading from filehandles you don't trust, such as "
12980 "a tty or a socket. The following example uses the operator form of "
12981 "CW<\\*(C`readline\\*(C'> and dies if the result is not defined."
12982 msgstr ""
12983
12984 #. type: Plain text
12985 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
12986 #: opensuse-leap-16-1 opensuse-tumbleweed
12987 #, no-wrap
12988 msgid ""
12989 "\\& while ( ! eof($fh) ) {\n"
12990 "\\& defined( $_ = readline $fh ) or die \"readline failed: $!\";\n"
12991 "\\& ...\n"
12992 "\\& }\n"
12993 msgstr ""
12994
12995 #. type: Plain text
12996 #: debian-trixie debian-unstable
12997 msgid ""
12998 "Note that you can't handle CW<\\*(C`readline\\*(C'> errors that way with the "
12999 "CW<\\*(C`ARGV\\*(C'> filehandle. In that case, you have to open each "
13000 "element of CW<@ARGV> yourself since \\&CW<\\*(C`eof\\*(C'> handles "
13001 "CW<\\*(C`ARGV\\*(C'> differently."
13002 msgstr ""
13003
13004 #. type: Plain text
13005 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13006 #: opensuse-leap-16-1 opensuse-tumbleweed
13007 #, no-wrap
13008 msgid ""
13009 "\\& foreach my $arg (@ARGV) {\n"
13010 "\\& open(my $fh, $arg) or warn \"Can\\*(Aqt open $arg: $!\";\n"
13011 "\\&\n"
13012 "\\& while ( ! eof($fh) ) {\n"
13013 "\\& defined( $_ = readline $fh )\n"
13014 "\\& or die \"readline failed for $arg: $!\";\n"
13015 "\\& ...\n"
13016 "\\& }\n"
13017 "\\& }\n"
13018 msgstr ""
13019
13020 #. type: Plain text
13021 #: debian-trixie debian-unstable
13022 msgid ""
13023 "Like the CW<\\*(C`E<lt>EXPRE<gt>\\*(C'> operator, if a "
13024 "CW<\\*(C`readline\\*(C'> expression is used as the condition of a "
13025 "CW<\\*(C`while\\*(C'> or CW<\\*(C`for\\*(C'> loop, then it will be "
13026 "implicitly assigned to CW<$_>. If either a CW<\\*(C`readline\\*(C'> "
13027 "expression or an explicit assignment of a CW<\\*(C`readline\\*(C'> "
13028 "expression to a scalar is used as a CW<\\*(C`while\\*(C'>/"
13029 "CW<\\*(C`for\\*(C'> condition, then the condition actually tests for "
13030 "definedness of the expression's value, not for its regular truth value."
13031 msgstr ""
13032
13033 #. type: IX
13034 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13035 #: opensuse-leap-16-1 opensuse-tumbleweed
13036 #, no-wrap
13037 msgid "readlink EXPR"
13038 msgstr ""
13039
13040 #. type: IX
13041 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13042 #: opensuse-leap-16-1 opensuse-tumbleweed
13043 #, no-wrap
13044 msgid "readlink"
13045 msgstr ""
13046
13047 #. type: Plain text
13048 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13049 #: opensuse-leap-16-1 opensuse-tumbleweed
13050 msgid ""
13051 "Returns the value of a symbolic link, if symbolic links are implemented. If "
13052 "not, raises an exception. If there is a system error, returns the undefined "
13053 "value and sets CW<$!> (errno). If EXPR is omitted, uses CW<$_>."
13054 msgstr ""
13055
13056 #. type: Plain text
13057 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13058 #: opensuse-leap-16-1 opensuse-tumbleweed
13059 msgid "Portability issues: \"readlink\" in perlport."
13060 msgstr ""
13061
13062 #. type: IX
13063 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13064 #: opensuse-leap-16-1 opensuse-tumbleweed
13065 #, no-wrap
13066 msgid "readpipe EXPR"
13067 msgstr ""
13068
13069 #. type: IX
13070 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13071 #: opensuse-leap-16-1 opensuse-tumbleweed
13072 #, no-wrap
13073 msgid "readpipe"
13074 msgstr ""
13075
13076 #. type: Plain text
13077 #: debian-trixie debian-unstable
13078 msgid ""
13079 "EXPR is executed as a system command. The collected standard output of the "
13080 "command is returned. In scalar context, it comes back as a single "
13081 "(potentially multi-line) string. In list context, returns a list of lines "
13082 "(however you've defined lines with CW<$/> (or \\&CW<$INPUT_RECORD_SEPARATOR> "
13083 "in English)). This is the internal function implementing the CW<\\*(C`qx/"
13084 "EXPR/\\*(C'> operator, but you can use it directly. The CW<\\*(C`qx/EXPR/"
13085 "\\*(C'> operator is discussed in more detail in \"CW<\\*(C`qx/"
13086 ">\\f(CISTRINGCW</\\*(C'>\" in perlop. If EXPR is omitted, uses CW<$_>."
13087 msgstr ""
13088
13089 #. type: IX
13090 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13091 #: opensuse-leap-16-1 opensuse-tumbleweed
13092 #, no-wrap
13093 msgid "recv SOCKET,SCALAR,LENGTH,FLAGS"
13094 msgstr ""
13095
13096 #. type: IX
13097 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13098 #: opensuse-leap-16-1 opensuse-tumbleweed
13099 #, no-wrap
13100 msgid "recv"
13101 msgstr ""
13102
13103 #. type: Plain text
13104 #: debian-trixie debian-unstable
13105 msgid ""
13106 "Receives a message on a socket. Attempts to receive LENGTH characters of "
13107 "data into variable SCALAR from the specified SOCKET filehandle. SCALAR will "
13108 "be grown or shrunk to the length actually read. Takes the same flags as the "
13109 "system call of the same name. Returns the address of the sender if SOCKET's "
13110 "protocol supports this; returns an empty string otherwise. If there's an "
13111 "error, returns the undefined value. This call is actually implemented in "
13112 "terms of the B<recvfrom>\\|(2) system call. See \"UDP: Message Passing\" in "
13113 "perlipc for examples."
13114 msgstr ""
13115
13116 #. type: Plain text
13117 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13118 #: opensuse-leap-16-1 opensuse-tumbleweed
13119 msgid ""
13120 "Note that if the socket has been marked as CW<\\*(C`:utf8\\*(C'>, "
13121 "CW<\\*(C`recv\\*(C'> will throw an exception. The CW<:encoding(...)> layer "
13122 "implicitly introduces the CW<\\*(C`:utf8\\*(C'> layer. See "
13123 "CW<\\*(C`binmode\\*(C'>."
13124 msgstr ""
13125
13126 #. type: IX
13127 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13128 #: opensuse-leap-16-1 opensuse-tumbleweed
13129 #, no-wrap
13130 msgid "redo LABEL"
13131 msgstr ""
13132
13133 #. type: IX
13134 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13135 #: opensuse-leap-16-1 opensuse-tumbleweed
13136 #, no-wrap
13137 msgid "redo"
13138 msgstr ""
13139
13140 #. type: IX
13141 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13142 #: opensuse-leap-16-1 opensuse-tumbleweed
13143 #, no-wrap
13144 msgid "redo EXPR"
13145 msgstr ""
13146
13147 #. type: Plain text
13148 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13149 #: opensuse-leap-16-1 opensuse-tumbleweed
13150 msgid ""
13151 "The CW<\\*(C`redo\\*(C'> command restarts the loop block without evaluating "
13152 "the conditional again. The CW<\\*(C`continue\\*(C'> block, if any, is not "
13153 "executed. If the LABEL is omitted, the command refers to the innermost "
13154 "enclosing loop. The CW<\\*(C`redo EXPR\\*(C'> form, available starting in "
13155 "Perl 5.18.0, allows a label name to be computed at run time, and is "
13156 "otherwise identical to CW<\\*(C`redo LABEL\\*(C'>. Programs that want to "
13157 "lie to themselves about what was just input normally use this command:"
13158 msgstr ""
13159
13160 #. type: Plain text
13161 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13162 #: opensuse-leap-16-1 opensuse-tumbleweed
13163 #, no-wrap
13164 msgid ""
13165 "\\& # a simpleminded Pascal comment stripper\n"
13166 "\\& # (warning: assumes no { or } in strings)\n"
13167 "\\& LINE: while (E<lt>STDINE<gt>) {\n"
13168 "\\& while (s|({.*}.*){.*}|$1 |) {}\n"
13169 "\\& s|{.*}| |;\n"
13170 "\\& if (s|{.*| |) {\n"
13171 "\\& my $front = $_;\n"
13172 "\\& while (E<lt>STDINE<gt>) {\n"
13173 "\\& if (/}/) { # end of comment?\n"
13174 "\\& s|^|$front\\e{|;\n"
13175 "\\& redo LINE;\n"
13176 "\\& }\n"
13177 "\\& }\n"
13178 "\\& }\n"
13179 "\\& print;\n"
13180 "\\& }\n"
13181 msgstr ""
13182
13183 #. type: Plain text
13184 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13185 #: opensuse-leap-16-1 opensuse-tumbleweed
13186 msgid ""
13187 "\\&CW<\\*(C`redo\\*(C'> cannot return a value from a block that typically "
13188 "returns a value, such as CW<\\*(C`eval {}\\*(C'>, CW<\\*(C`sub {}\\*(C'>, or "
13189 "CW<\\*(C`do {}\\*(C'>. It will perform its flow control behavior, which "
13190 "precludes any return value. It should not be used to exit a "
13191 "CW<\\*(C`grep\\*(C'> or CW<\\*(C`map\\*(C'> operation."
13192 msgstr ""
13193
13194 #. type: Plain text
13195 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13196 #: opensuse-leap-16-1 opensuse-tumbleweed
13197 msgid ""
13198 "Note that a block by itself is semantically identical to a loop that "
13199 "executes once. Thus CW<\\*(C`redo\\*(C'> inside such a block will "
13200 "effectively turn it into a looping construct."
13201 msgstr ""
13202
13203 #. type: Plain text
13204 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13205 #: opensuse-leap-16-1 opensuse-tumbleweed
13206 msgid ""
13207 "Unlike most named operators, this has the same precedence as assignment. It "
13208 "is also exempt from the looks-like-a-function rule, so \\&CW<\\*(C`redo "
13209 "(\"foo\").\"bar\"\\*(C'> will cause \"bar\" to be part of the argument to "
13210 "\\&CW<\\*(C`redo\\*(C'>."
13211 msgstr ""
13212
13213 #. type: IX
13214 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13215 #: opensuse-leap-16-1 opensuse-tumbleweed
13216 #, no-wrap
13217 msgid "ref EXPR"
13218 msgstr ""
13219
13220 #. type: IX
13221 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13222 #: opensuse-leap-16-1 opensuse-tumbleweed
13223 #, no-wrap
13224 msgid "ref reference"
13225 msgstr ""
13226
13227 #. type: IX
13228 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13229 #: opensuse-leap-16-1 opensuse-tumbleweed
13230 #, no-wrap
13231 msgid "ref"
13232 msgstr ""
13233
13234 #. type: Plain text
13235 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13236 #: opensuse-leap-16-1 opensuse-tumbleweed
13237 msgid ""
13238 "Examines the value of EXPR, expecting it to be a reference, and returns a "
13239 "string giving information about the reference and the type of referent. If "
13240 "EXPR is not specified, CW<$_> will be used."
13241 msgstr ""
13242
13243 #. type: Plain text
13244 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13245 #: opensuse-leap-16-1 opensuse-tumbleweed
13246 msgid ""
13247 "If the operand is not a reference, then the empty string will be returned. "
13248 "An empty string will only be returned in this situation. "
13249 "CW<\\*(C`ref\\*(C'> is often useful to just test whether a value is a "
13250 "reference, which can be done by comparing the result to the empty string. "
13251 "It is a common mistake to use the result of CW<\\*(C`ref\\*(C'> directly as "
13252 "a truth value: this goes wrong because CW<0> (which is false) can be "
13253 "returned for a reference."
13254 msgstr ""
13255
13256 #. type: Plain text
13257 #: debian-trixie debian-unstable
13258 msgid ""
13259 "If the operand is a reference to a blessed object, then the name of the "
13260 "class into which the referent is blessed will be returned. "
13261 "CW<\\*(C`ref\\*(C'> doesn't care what the physical type of the referent is; "
13262 "blessing takes precedence over such concerns. Beware that exact comparison "
13263 "of CW<\\*(C`ref\\*(C'> results against a class name doesn't perform a class "
13264 "membership test: a class's members also include objects blessed into "
13265 "subclasses, for which CW<\\*(C`ref\\*(C'> will return the name of the "
13266 "subclass. Also beware that class names can clash with the built-in type "
13267 "names (described below)."
13268 msgstr ""
13269
13270 #. type: Plain text
13271 #: debian-trixie debian-unstable
13272 msgid ""
13273 "If the operand is a reference to an unblessed object, then the return value "
13274 "indicates the type of object. If the unblessed referent is not a scalar, "
13275 "then the return value will be one of the strings CW<\\*(C`ARRAY\\*(C'>, "
13276 "\\&CW<\\*(C`HASH\\*(C'>, CW<\\*(C`CODE\\*(C'>, CW<\\*(C`FORMAT\\*(C'>, or "
13277 "CW<\\*(C`IO\\*(C'>, indicating only which kind of object it is. If the "
13278 "unblessed referent is a scalar, then the return value will be one of the "
13279 "strings CW<\\*(C`SCALAR\\*(C'>, CW<\\*(C`VSTRING\\*(C'>, "
13280 "CW<\\*(C`REF\\*(C'>, CW<\\*(C`GLOB\\*(C'>, \\&CW<\\*(C`LVALUE\\*(C'>, or "
13281 "CW<\\*(C`REGEXP\\*(C'>, depending on the kind of value the scalar currently "
13282 "has. But note that CW<\\*(C`qr//\\*(C'> scalars are created already "
13283 "blessed, so CW<\\*(C`ref qr/.../\\*(C'> will likely return "
13284 "CW<\\*(C`Regexp\\*(C'>. Beware that these built-in type names can also be "
13285 "used as class names, so CW<\\*(C`ref\\*(C'> returning one of these names "
13286 "doesn't unambiguously indicate that the referent is of the kind to which the "
13287 "name refers."
13288 msgstr ""
13289
13290 #. type: Plain text
13291 #: debian-trixie debian-unstable
13292 msgid ""
13293 "The ambiguity between built-in type names and class names significantly "
13294 "limits the utility of CW<\\*(C`ref\\*(C'>. For unambiguous information, use "
13295 "\\&CW<Scalar::Util::blessed()> for information about blessing, and "
13296 "CW<Scalar::Util::reftype()> for information about physical types. Use the "
13297 "CW<\\*(C`isa\\*(C'> method for class membership tests, though one must be "
13298 "sure of blessedness before attempting a method call. Alternatively, the "
13299 "\\&CW<\\*(C`isa\\*(C'> operator can test class membership without checking "
13300 "blessedness first."
13301 msgstr ""
13302
13303 #. type: Plain text
13304 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13305 #: opensuse-leap-16-1 opensuse-tumbleweed
13306 msgid "See also perlref and perlobj."
13307 msgstr ""
13308
13309 #. type: IX
13310 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13311 #: opensuse-leap-16-1 opensuse-tumbleweed
13312 #, no-wrap
13313 msgid "rename OLDNAME,NEWNAME"
13314 msgstr ""
13315
13316 #. type: IX
13317 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13318 #: opensuse-leap-16-1 opensuse-tumbleweed
13319 #, no-wrap
13320 msgid "rename move mv ren"
13321 msgstr ""
13322
13323 #. type: Plain text
13324 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13325 #: opensuse-leap-16-1 opensuse-tumbleweed
13326 msgid ""
13327 "Changes the name of a file; an existing file NEWNAME will be clobbered. "
13328 "Returns true for success; on failure returns false and sets \\&CW<$!>."
13329 msgstr ""
13330
13331 #. type: Plain text
13332 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13333 #: opensuse-leap-16-1 opensuse-tumbleweed
13334 msgid ""
13335 "Behavior of this function varies wildly depending on your system "
13336 "implementation. For example, it will usually not work across file system "
13337 "boundaries, even though the system I<mv> command sometimes compensates for "
13338 "this. Other restrictions include whether it works on directories, open "
13339 "files, or pre-existing files. Check perlport and either the \\&B<rename>\\|"
13340 "(2) manpage or equivalent system documentation for details."
13341 msgstr ""
13342
13343 #. type: Plain text
13344 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13345 #: opensuse-leap-16-1 opensuse-tumbleweed
13346 msgid ""
13347 "For a platform independent CW<\\*(C`move\\*(C'> function look at the "
13348 "File::Copy module."
13349 msgstr ""
13350
13351 #. type: Plain text
13352 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13353 #: opensuse-leap-16-1 opensuse-tumbleweed
13354 msgid "Portability issues: \"rename\" in perlport."
13355 msgstr ""
13356
13357 #. type: IX
13358 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13359 #: opensuse-leap-16-1 opensuse-tumbleweed
13360 #, no-wrap
13361 msgid "require VERSION"
13362 msgstr ""
13363
13364 #. type: IX
13365 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13366 #: opensuse-leap-16-1 opensuse-tumbleweed
13367 #, no-wrap
13368 msgid "require"
13369 msgstr ""
13370
13371 #. type: IX
13372 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13373 #: opensuse-leap-16-1 opensuse-tumbleweed
13374 #, no-wrap
13375 msgid "require EXPR"
13376 msgstr ""
13377
13378 #. type: Plain text
13379 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13380 #: opensuse-leap-16-1 opensuse-tumbleweed
13381 msgid ""
13382 "Demands a version of Perl specified by VERSION, or demands some semantics "
13383 "specified by EXPR or by CW<$_> if EXPR is not supplied."
13384 msgstr ""
13385
13386 #. type: Plain text
13387 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13388 #: opensuse-leap-16-1 opensuse-tumbleweed
13389 msgid ""
13390 "VERSION may be either a literal such as v5.24.1, which will be compared to "
13391 "CW<$^V> (or CW<$PERL_VERSION> in English), or a numeric argument of the form "
13392 "5.024001, which will be compared to \\&CW<$]>. An exception is raised if "
13393 "VERSION is greater than the version of the current Perl interpreter. "
13394 "Compare with \\&CW<\\*(C`use\\*(C'>, which can do a similar check at compile "
13395 "time."
13396 msgstr ""
13397
13398 #. type: Plain text
13399 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13400 #: opensuse-leap-16-1 opensuse-tumbleweed
13401 msgid ""
13402 "Specifying VERSION as a numeric argument of the form 5.024001 should "
13403 "generally be avoided as older less readable syntax compared to v5.24.1. "
13404 "Before perl 5.8.0 (released in 2002), the more verbose numeric form was the "
13405 "only supported syntax, which is why you might see it in older code."
13406 msgstr ""
13407
13408 #. type: Plain text
13409 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13410 #: opensuse-leap-16-1 opensuse-tumbleweed
13411 #, no-wrap
13412 msgid ""
13413 "\\& require v5.24.1; # run time version check\n"
13414 "\\& require 5.24.1; # ditto\n"
13415 "\\& require 5.024_001; # ditto; older syntax compatible\n"
13416 "\\& with perl 5.6\n"
13417 msgstr ""
13418
13419 #. type: Plain text
13420 #: debian-trixie debian-unstable
13421 msgid ""
13422 "Otherwise, CW<\\*(C`require\\*(C'> demands that a library file be included "
13423 "if it hasn't already been included. The file is included via the do-FILE "
13424 "mechanism, which is essentially just a variety of \\&CW<\\*(C`eval\\*(C'> "
13425 "with the caveat that lexical variables in the invoking script will be "
13426 "invisible to the included code. If it were implemented in pure Perl, it "
13427 "would have semantics similar to the following:"
13428 msgstr ""
13429
13430 #. type: Plain text
13431 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13432 #: opensuse-leap-16-1 opensuse-tumbleweed
13433 #, no-wrap
13434 msgid ""
13435 "\\& use Carp \\*(Aqcroak\\*(Aq;\n"
13436 "\\& use version;\n"
13437 "\\&\n"
13438 "\\& sub require {\n"
13439 "\\& my ($filename) = @_;\n"
13440 "\\& if ( my $version = eval { version-E<gt>parse($filename) } ) {\n"
13441 "\\& if ( $version E<gt> $^V ) {\n"
13442 "\\& my $vn = $version-E<gt>normal;\n"
13443 "\\& croak \"Perl $vn required--this is only $^V, stopped\";\n"
13444 "\\& }\n"
13445 "\\& return 1;\n"
13446 "\\& }\n"
13447 "\\&\n"
13448 "\\& if (exists $INC{$filename}) {\n"
13449 "\\& return 1 if $INC{$filename};\n"
13450 "\\& croak \"Compilation failed in require\";\n"
13451 "\\& }\n"
13452 "\\&\n"
13453 "\\& local $INC;\n"
13454 "\\& # this type of loop lets a hook overwrite $INC if they wish\n"
13455 "\\& for($INC = 0; $INC E<lt> @INC; $INC++) {\n"
13456 "\\& my $prefix = $INC[$INC];\n"
13457 "\\& if (!defined $prefix) {\n"
13458 "\\& next;\n"
13459 "\\& }\n"
13460 "\\& if (ref $prefix) {\n"
13461 "\\& #... do other stuff - see text below ....\n"
13462 "\\& }\n"
13463 "\\& # (see text below about possible appending of .pmc\n"
13464 "\\& # suffix to $filename)\n"
13465 "\\& my $realfilename = \"$prefix/$filename\";\n"
13466 "\\& next if ! -e $realfilename || -d _ || -b _;\n"
13467 "\\& $INC{$filename} = $realfilename;\n"
13468 "\\& my $result = do($realfilename);\n"
13469 "\\& # but run in caller\\*(Aqs namespace\n"
13470 "\\&\n"
13471 "\\& if (!defined $result) {\n"
13472 "\\& $INC{$filename} = undef;\n"
13473 "\\& croak $@ ? \"$@Compilation failed in require\"\n"
13474 "\\& : \"Can\\*(Aqt locate $filename: $!\\en\";\n"
13475 "\\& }\n"
13476 "\\& if (!$result) {\n"
13477 "\\& delete $INC{$filename};\n"
13478 "\\& croak \"$filename did not return true value\";\n"
13479 "\\& }\n"
13480 "\\& $! = 0;\n"
13481 "\\& return $result;\n"
13482 "\\& }\n"
13483 "\\& croak \"Can\\*(Aqt locate $filename in \\e@INC ...\";\n"
13484 "\\& }\n"
13485 msgstr ""
13486
13487 #. type: Plain text
13488 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13489 #: opensuse-leap-16-1 opensuse-tumbleweed
13490 msgid ""
13491 "Note that the file will not be included twice under the same specified name."
13492 msgstr ""
13493
13494 #. type: Plain text
13495 #: debian-trixie debian-unstable
13496 msgid ""
13497 "Historically the file must return true as the last statement to indicate "
13498 "successful execution of any initialization code, so it's customary to end "
13499 "such a file with CW<\\*(C`1;\\*(C'> unless you're sure it'll return true "
13500 "otherwise. But it's better just to put the CW<\\*(C`1;\\*(C'>, in case you "
13501 "add more statements. As of 5.37.6 this requirement may be avoided by "
13502 "enabling the 'module_true' feature, which is enabled by default in modern "
13503 "version bundles. Thus code with CW<\\*(C`use v5.37;\\*(C'> no longer needs "
13504 "to concern itself with this issue. See feature for more details. Note that "
13505 "this affects the compilation unit within which the feature is used, and "
13506 "using it before requiring a module will not change the behavior of existing "
13507 "modules that do not themselves also use it."
13508 msgstr ""
13509
13510 #. type: Plain text
13511 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13512 #: opensuse-leap-16-1 opensuse-tumbleweed
13513 msgid ""
13514 "If EXPR is a bareword, CW<\\*(C`require\\*(C'> assumes a I<.pm> extension "
13515 "and replaces CW<\\*(C`::\\*(C'> with CW<\\*(C`/\\*(C'> in the filename for "
13516 "you, to make it easy to load standard modules. This form of loading of "
13517 "modules does not risk altering your namespace, however it will autovivify "
13518 "the stash for the required module."
13519 msgstr ""
13520
13521 #. type: Plain text
13522 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13523 #: opensuse-leap-16-1 opensuse-tumbleweed
13524 msgid "In other words, if you try this:"
13525 msgstr ""
13526
13527 #. type: Plain text
13528 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13529 #: opensuse-leap-16-1 opensuse-tumbleweed
13530 #, no-wrap
13531 msgid "\\& require Foo::Bar; # a splendid bareword\n"
13532 msgstr ""
13533
13534 #. type: Plain text
13535 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13536 #: opensuse-leap-16-1 opensuse-tumbleweed
13537 msgid ""
13538 "The require function will actually look for the I<Foo/Bar.pm> file in the "
13539 "directories specified in the CW<@INC> array, and it will autovivify the "
13540 "CW<\\*(C`Foo::Bar::\\*(C'> stash at compile time."
13541 msgstr ""
13542
13543 #. type: Plain text
13544 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13545 #: opensuse-leap-16-1 opensuse-tumbleweed
13546 msgid "But if you try this:"
13547 msgstr ""
13548
13549 #. type: Plain text
13550 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13551 #: opensuse-leap-16-1 opensuse-tumbleweed
13552 #, no-wrap
13553 msgid ""
13554 "\\& my $class = \\*(AqFoo::Bar\\*(Aq;\n"
13555 "\\& require $class; # $class is not a bareword\n"
13556 "\\& #or\n"
13557 "\\& require \"Foo::Bar\"; # not a bareword because of the \"\"\n"
13558 msgstr ""
13559
13560 #. type: Plain text
13561 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13562 #: opensuse-leap-16-1 opensuse-tumbleweed
13563 msgid ""
13564 "The require function will look for the I<Foo::Bar> file in the \\&CW<@INC> "
13565 "array and will complain about not finding I<Foo::Bar> there. In this case "
13566 "you can do:"
13567 msgstr ""
13568
13569 #. type: Plain text
13570 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13571 #: opensuse-leap-16-1 opensuse-tumbleweed
13572 #, no-wrap
13573 msgid "\\& eval \"require $class\";\n"
13574 msgstr ""
13575
13576 #. type: Plain text
13577 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13578 #: opensuse-leap-16-1 opensuse-tumbleweed
13579 msgid "or you could do"
13580 msgstr ""
13581
13582 #. type: Plain text
13583 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13584 #: opensuse-leap-16-1 opensuse-tumbleweed
13585 #, no-wrap
13586 msgid "\\& require \"Foo/Bar.pm\";\n"
13587 msgstr ""
13588
13589 #. type: Plain text
13590 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13591 #: opensuse-leap-16-1 opensuse-tumbleweed
13592 msgid ""
13593 "Neither of these forms will autovivify any stashes at compile time and only "
13594 "have run time effects."
13595 msgstr ""
13596
13597 #. type: Plain text
13598 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13599 #: opensuse-leap-16-1 opensuse-tumbleweed
13600 msgid ""
13601 "Now that you understand how CW<\\*(C`require\\*(C'> looks for files with a "
13602 "bareword argument, there is a little extra functionality going on behind the "
13603 "scenes. Before CW<\\*(C`require\\*(C'> looks for a I<.pm> extension, it "
13604 "will first look for a similar filename with a \\&I<.pmc> extension. If this "
13605 "file is found, it will be loaded in place of any file ending in a I<.pm> "
13606 "extension. This applies to both the explicit \\&CW<\\*(C`require \"Foo/"
13607 "Bar.pm\";\\*(C'> form and the CW<\\*(C`require Foo::Bar;\\*(C'> form."
13608 msgstr ""
13609
13610 #. type: Plain text
13611 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13612 #: opensuse-leap-16-1 opensuse-tumbleweed
13613 msgid ""
13614 "You can also insert hooks into the import facility by putting Perl coderefs "
13615 "or objects directly into the CW<@INC> array. There are two types of hooks, "
13616 "INC filters, and INCDIR hooks, and there are three forms of representing a "
13617 "hook: subroutine references, array references, and blessed objects."
13618 msgstr ""
13619
13620 #. type: Plain text
13621 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13622 #: opensuse-leap-16-1 opensuse-tumbleweed
13623 msgid ""
13624 "Subroutine references are the simplest case. When the inclusion system "
13625 "walks through CW<@INC> and encounters a subroutine, unless this subroutine "
13626 "is blessed and supports an INCDIR hook this subroutine will be assumed to be "
13627 "an INC hook will be called with two parameters, the first a reference to "
13628 "itself, and the second the name of the file to be included (e.g., I<Foo/"
13629 "Bar.pm>). The subroutine should return either nothing or else a list of up "
13630 "to four values in the following order:"
13631 msgstr ""
13632
13633 #. type: IP
13634 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13635 #: opensuse-leap-16-1 opensuse-tumbleweed
13636 #, no-wrap
13637 msgid "1."
13638 msgstr ""
13639
13640 #. type: Plain text
13641 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13642 #: opensuse-leap-16-1 opensuse-tumbleweed
13643 msgid ""
13644 "A reference to a scalar, containing any initial source code to prepend to "
13645 "the file or generator output."
13646 msgstr ""
13647
13648 #. type: IP
13649 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13650 #: opensuse-leap-16-1 opensuse-tumbleweed
13651 #, no-wrap
13652 msgid "2."
13653 msgstr ""
13654
13655 #. type: Plain text
13656 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13657 #: opensuse-leap-16-1 opensuse-tumbleweed
13658 msgid "A filehandle, from which the file will be read."
13659 msgstr ""
13660
13661 #. type: IP
13662 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13663 #: opensuse-leap-16-1 opensuse-tumbleweed
13664 #, no-wrap
13665 msgid "3."
13666 msgstr ""
13667
13668 #. type: Plain text
13669 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13670 #: opensuse-leap-16-1 opensuse-tumbleweed
13671 msgid ""
13672 "A reference to a subroutine. If there is no filehandle (previous item), "
13673 "then this subroutine is expected to generate one line of source code per "
13674 "call, writing the line into CW<$_> and returning 1, then finally at end of "
13675 "file returning 0. If there is a filehandle, then the subroutine will be "
13676 "called to act as a simple source filter, with the line as read in CW<$_>. "
13677 "Again, return 1 for each valid line, and 0 after all lines have been "
13678 "returned. For historical reasons the subroutine will receive a meaningless "
13679 "argument (in fact always the numeric value zero) as CW<$_[0]>."
13680 msgstr ""
13681
13682 #. type: IP
13683 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13684 #: opensuse-leap-16-1 opensuse-tumbleweed
13685 #, no-wrap
13686 msgid "4."
13687 msgstr ""
13688
13689 #. type: Plain text
13690 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13691 #: opensuse-leap-16-1 opensuse-tumbleweed
13692 msgid ""
13693 "Optional state for the subroutine. The state is passed in as CW<$_[1]>."
13694 msgstr ""
13695
13696 #. type: Plain text
13697 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13698 #: opensuse-leap-16-1 opensuse-tumbleweed
13699 msgid ""
13700 "\\&CW<\\*(C`AUTOLOAD\\*(C'> cannot be used to resolve the "
13701 "CW<\\*(C`INCDIR\\*(C'> method, CW<\\*(C`INC\\*(C'> is checked first, and "
13702 "CW<\\*(C`AUTOLOAD\\*(C'> would resolve that."
13703 msgstr ""
13704
13705 #. type: Plain text
13706 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13707 #: opensuse-leap-16-1 opensuse-tumbleweed
13708 msgid ""
13709 "If an empty list, CW<\\*(C`undef\\*(C'>, or nothing that matches the first 3 "
13710 "values above is returned, then CW<\\*(C`require\\*(C'> looks at the "
13711 "remaining elements of CW<@INC>. Note that this filehandle must be a real "
13712 "filehandle (strictly a typeglob or reference to a typeglob, whether blessed "
13713 "or unblessed); tied filehandles will be ignored and processing will stop "
13714 "there."
13715 msgstr ""
13716
13717 #. type: Plain text
13718 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13719 #: opensuse-leap-16-1 opensuse-tumbleweed
13720 msgid ""
13721 "If the hook is an object, it should provide an CW<\\*(C`INC\\*(C'> or "
13722 "CW<\\*(C`INCDIR\\*(C'> method that will be called as above, the first "
13723 "parameter being the object itself. If it does not provide either method, and "
13724 "the object is not CODE ref then an exception will be thrown, otherwise it "
13725 "will simply be executed like an unblessed CODE ref would. Note that you must "
13726 "fully qualify the method name when you declare an CW<\\*(C`INC\\*(C'> sub "
13727 "(unlike the \\&CW<\\*(C`INCDIR\\*(C'> sub), as the unqualified symbol "
13728 "CW<\\*(C`INC\\*(C'> is always forced into package CW<\\*(C`main\\*(C'>. "
13729 "Here is a typical code layout for an CW<\\*(C`INC\\*(C'> hook:"
13730 msgstr ""
13731
13732 #. type: Plain text
13733 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13734 #: opensuse-leap-16-1 opensuse-tumbleweed
13735 #, no-wrap
13736 msgid ""
13737 "\\& # In Foo.pm\n"
13738 "\\& package Foo;\n"
13739 "\\& sub new { ... }\n"
13740 "\\& sub Foo::INC {\n"
13741 "\\& my ($self, $filename) = @_;\n"
13742 "\\& ...\n"
13743 "\\& }\n"
13744 "\\&\n"
13745 "\\& # In the main program\n"
13746 "\\& push @INC, Foo-E<gt>new(...);\n"
13747 msgstr ""
13748
13749 #. type: Plain text
13750 #: debian-trixie debian-unstable
13751 msgid ""
13752 "If the hook is an array reference, its first element must be a subroutine "
13753 "reference or an object as described above. When the first element is an "
13754 "object that supports an CW<\\*(C`INC\\*(C'> or CW<\\*(C`INCDIR\\*(C'> method "
13755 "then the method will be called with the object as the first argument, the "
13756 "filename requested as the second, and the hook array reference as the the "
13757 "third. When the first element is a subroutine then it will be called with "
13758 "the array as the first argument, and the filename as the second, no third "
13759 "parameter will be passed in. In both forms you can modify the contents of "
13760 "the array to provide state between calls, or whatever you like."
13761 msgstr ""
13762
13763 #. type: Plain text
13764 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13765 #: opensuse-leap-16-1 opensuse-tumbleweed
13766 msgid "In other words, you can write:"
13767 msgstr ""
13768
13769 #. type: Plain text
13770 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13771 #: opensuse-leap-16-1 opensuse-tumbleweed
13772 #, no-wrap
13773 msgid ""
13774 "\\& push @INC, \\e&my_sub;\n"
13775 "\\& sub my_sub {\n"
13776 "\\& my ($coderef, $filename) = @_; # $coderef is \\e&my_sub\n"
13777 "\\& ...\n"
13778 "\\& }\n"
13779 msgstr ""
13780
13781 #. type: Plain text
13782 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13783 #: opensuse-leap-16-1 opensuse-tumbleweed
13784 msgid "or:"
13785 msgstr ""
13786
13787 #. type: Plain text
13788 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13789 #: opensuse-leap-16-1 opensuse-tumbleweed
13790 #, no-wrap
13791 msgid ""
13792 "\\& push @INC, [ \\e&my_sub, $x, $y, ... ];\n"
13793 "\\& sub my_sub {\n"
13794 "\\& my ($arrayref, $filename) = @_;\n"
13795 "\\& # Retrieve $x, $y, ...\n"
13796 "\\& my (undef, @parameters) = @$arrayref;\n"
13797 "\\& ...\n"
13798 "\\& }\n"
13799 msgstr ""
13800
13801 #. type: Plain text
13802 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13803 #: opensuse-leap-16-1 opensuse-tumbleweed
13804 #, no-wrap
13805 msgid ""
13806 "\\& push @INC, [ HookObj-E<gt>new(), $x, $y, ... ];\n"
13807 "\\& sub HookObj::INC {\n"
13808 "\\& my ($self, $filename, $arrayref)= @_;\n"
13809 "\\& my (undef, @parameters) = @$arrayref;\n"
13810 "\\& ...\n"
13811 "\\& }\n"
13812 msgstr ""
13813
13814 #. type: Plain text
13815 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13816 #: opensuse-leap-16-1 opensuse-tumbleweed
13817 msgid ""
13818 "These hooks are also permitted to set the CW<%INC> entry corresponding to "
13819 "the files they have loaded. See \"%INC\" in perlvar. Should an "
13820 "CW<\\*(C`INC\\*(C'> hook not do this then perl will set the CW<%INC> entry "
13821 "to be the hook reference itself."
13822 msgstr ""
13823
13824 #. type: Plain text
13825 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13826 #: opensuse-leap-16-1 opensuse-tumbleweed
13827 msgid ""
13828 "A hook may also be used to rewrite the CW<@INC> array. While this might "
13829 "sound strange, there are situations where it can be very useful to do this. "
13830 "Such hooks usually just return undef and do not mix filtering and "
13831 "\\&CW<@INC> modifications. While in older versions of perl having a hook "
13832 "modify CW<@INC> was fraught with issues and could even result in segfaults "
13833 "or assert failures, as of 5.37.7 the logic has been made much more robust "
13834 "and the hook now has control over the loop iteration if it wishes to do so."
13835 msgstr ""
13836
13837 #. type: Plain text
13838 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13839 #: opensuse-leap-16-1 opensuse-tumbleweed
13840 msgid ""
13841 "There is a now a facility to control the iterator for the CW<@INC> array "
13842 "traversal that is performed during require. The CW<$INC> variable will be "
13843 "initialized with the index of the currently executing hook. Once the hook "
13844 "returns the next slot in CW<@INC> that will be checked will be the integer "
13845 "successor of value in CW<$INC> (or -1 if it is undef). For example the "
13846 "following code"
13847 msgstr ""
13848
13849 #. type: Plain text
13850 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13851 #: opensuse-leap-16-1 opensuse-tumbleweed
13852 #, no-wrap
13853 msgid ""
13854 "\\& push @INC, sub {\n"
13855 "\\& splice @INC, $INC, 1; # remove this hook from @INC\n"
13856 "\\& unshift @INC, sub { warn \"A\" };\n"
13857 "\\& undef $INC; # reset the $INC iterator so we\n"
13858 "\\& # execute the newly installed sub\n"
13859 "\\& # immediately.\n"
13860 "\\& };\n"
13861 msgstr ""
13862
13863 #. type: Plain text
13864 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13865 #: opensuse-leap-16-1 opensuse-tumbleweed
13866 msgid ""
13867 "would install a sub into CW<@INC> that when executed as a hook (by for "
13868 "instance a require of a file that does not exist), the hook will splice "
13869 "itself out of CW<@INC>, and add a new sub to the front that will warn "
13870 "whenever someone does a require operation that requires an CW<@INC> search, "
13871 "and then immediately execute that hook."
13872 msgstr ""
13873
13874 #. type: Plain text
13875 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13876 #: opensuse-leap-16-1 opensuse-tumbleweed
13877 msgid ""
13878 "Prior to 5.37.7, there was no way to cause perl to use the newly installed "
13879 "hook immediately, or to inspect any changed items in CW<@INC> to the left of "
13880 "the iterator, and so the warning would only be generated on the second call "
13881 "to require. In more recent perl the presence of the last statement which "
13882 "undefines CW<$INC> will cause perl to restart the traversal of the CW<@INC> "
13883 "array at the beginning and execute the newly installed sub immediately."
13884 msgstr ""
13885
13886 #. type: Plain text
13887 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13888 #: opensuse-leap-16-1 opensuse-tumbleweed
13889 msgid ""
13890 "Whatever value CW<$INC> held, if any, will be restored at the end of the "
13891 "require. Any changes made to CW<$INC> during the lifetime of the hook will "
13892 "be unrolled after the hook exits, and its value only has meaning immediately "
13893 "after execution of the hook, thus setting CW<$INC> to some value prior to "
13894 "executing a CW<\\*(C`require\\*(C'> will have no effect on how the require "
13895 "executes at all."
13896 msgstr ""
13897
13898 #. type: Plain text
13899 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13900 #: opensuse-leap-16-1 opensuse-tumbleweed
13901 msgid "As of 5.37.7 CW<@INC> values of undef will be silently ignored."
13902 msgstr ""
13903
13904 #. type: Plain text
13905 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13906 #: opensuse-leap-16-1 opensuse-tumbleweed
13907 msgid ""
13908 "The function CW<require()> is difficult to wrap properly. Many modules "
13909 "consult the stack to find information about their caller, and injecting a "
13910 "new stack frame by wrapping CW<require()> often breaks things. Nevertheless "
13911 "it can be very helpful to have the ability to perform actions before and "
13912 "after a CW<\\*(C`require\\*(C'>, for instance for trace utilities like "
13913 "CW<\\*(C`Devel::TraceUse\\*(C'> or to measure time to load and the memory "
13914 "consumption of the require graph. Because of the difficulties in safely "
13915 "creating a CW<require()> wrapper in 5.37.10 we introduced a new mechanism."
13916 msgstr ""
13917
13918 #. type: Plain text
13919 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13920 #: opensuse-leap-16-1 opensuse-tumbleweed
13921 msgid ""
13922 "As of 5.37.10, prior to any other actions it performs, "
13923 "CW<\\*(C`require\\*(C'> will check if CW<\\*(C`${^HOOK}{require_\\|_before}"
13924 "\\*(C'> contains a coderef, and if it does it will be called with the "
13925 "filename form of the item being loaded. The hook may modify CW<$_[0]> to "
13926 "load a different filename, or it may throw a fatal exception to cause the "
13927 "require to fail, which will be treated as though the required code itself "
13928 "had thrown an exception."
13929 msgstr ""
13930
13931 #. type: Plain text
13932 #: debian-trixie debian-unstable
13933 msgid ""
13934 "The CW<\\*(C`${^HOOK}{require_\\|_before}\\*(C'> hook may return a code "
13935 "reference, in which case the code reference will be executed (in an eval "
13936 "with the filname as a parameter) after the require completes. It will be "
13937 "executed regardless of how the compilation completed, and even if the "
13938 "require throws a fatal exception. The function may consult CW<%INC> to "
13939 "determine if the require failed or not. For instance the following code "
13940 "will print some diagnostics before and after every CW<\\*(C`require\\*(C'> "
13941 "statement. The example also includes logic to chain the signal, so that "
13942 "multiple signals can cooperate. Well behaved CW<\\*(C`${^HOOK}{require_\\|"
13943 "_before}\\*(C'> handlers should always take this into account."
13944 msgstr ""
13945
13946 #. type: Plain text
13947 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13948 #: opensuse-leap-16-1 opensuse-tumbleweed
13949 #, no-wrap
13950 msgid ""
13951 "\\& {\n"
13952 "\\& use Scalar::Util qw(reftype);\n"
13953 "\\& my $old_hook = ${^HOOK}{require_\\|_before};\n"
13954 "\\& local ${^HOOK}{require_\\|_before} = sub {\n"
13955 "\\& my ($name) = @_;\n"
13956 "\\& my $old_hook_ret;\n"
13957 "\\& $old_hook_ret = $old_hook-E<gt>($name) if $old_hook;\n"
13958 "\\& warn \"Requiring: $name\\en\";\n"
13959 "\\& return sub {\n"
13960 "\\& $old_hook_ret-E<gt>() if ref($old_hook_ret)\n"
13961 "\\& && reftype($old_hook_ret) eq \"CODE\";\n"
13962 "\\& warn sprintf \"Finished requiring %s: %s\\en\",\n"
13963 "\\& $name, $INC{$name} ? \"loaded\" :\"failed\";\n"
13964 "\\& };\n"
13965 "\\& };\n"
13966 "\\& require Whatever;\n"
13967 "\\& }\n"
13968 msgstr ""
13969
13970 #. type: Plain text
13971 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13972 #: opensuse-leap-16-1 opensuse-tumbleweed
13973 msgid ""
13974 "This hook executes for ALL CW<\\*(C`require\\*(C'> statements, unlike "
13975 "CW<\\*(C`INC\\*(C'> and \\&CW<\\*(C`INCDIR\\*(C'> hooks, which are only "
13976 "executed for relative file names, and it executes first before any other "
13977 "special behaviour inside of require. Note that the initial hook in "
13978 "CW<\\*(C`${^HOOK}{require_\\|_before}\\*(C'> is *not* executed inside of an "
13979 "eval, and throwing an exception will stop further processing, but the after "
13980 "hook it may return is executed inside of an eval, and any exceptions it "
13981 "throws will be silently ignored. This is because it executes inside of the "
13982 "scope cleanup logic that is triggered after the require completes, and an "
13983 "exception at this time would not stop the module from being loaded, etc."
13984 msgstr ""
13985
13986 #. type: Plain text
13987 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13988 #: opensuse-leap-16-1 opensuse-tumbleweed
13989 msgid ""
13990 "There is a similar hook that fires after require completes, \\&CW<\\*(C`$"
13991 "{^HOOK}{require_\\|_after}\\*(C'>, which will be called after each require "
13992 "statement completes, either via an exception or successfully. It will be "
13993 "called with the filename of the most recently executed require statement. It "
13994 "is executed in an eval, and will not in any way affect execution."
13995 msgstr ""
13996
13997 #. type: Plain text
13998 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
13999 #: opensuse-leap-16-1 opensuse-tumbleweed
14000 msgid ""
14001 "For a yet-more-powerful import facility built around "
14002 "CW<\\*(C`require\\*(C'>, see \\&CW<\\*(C`use\\*(C'> and perlmod."
14003 msgstr ""
14004
14005 #. type: IX
14006 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14007 #: opensuse-leap-16-1 opensuse-tumbleweed
14008 #, no-wrap
14009 msgid "reset EXPR"
14010 msgstr ""
14011
14012 #. type: IX
14013 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14014 #: opensuse-leap-16-1 opensuse-tumbleweed
14015 #, no-wrap
14016 msgid "reset"
14017 msgstr ""
14018
14019 #. type: Plain text
14020 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14021 #: opensuse-leap-16-1 opensuse-tumbleweed
14022 msgid ""
14023 "Generally used in a CW<\\*(C`continue\\*(C'> block at the end of a loop to "
14024 "clear variables and reset CW<\\*(C`m?pattern?\\*(C'> searches so that they "
14025 "work again. The expression is interpreted as a list of single characters "
14026 "(hyphens allowed for ranges). All variables (scalars, arrays, and hashes) "
14027 "in the current package beginning with one of those letters are reset to "
14028 "their pristine state. If the expression is omitted, one-match searches "
14029 "(CW<\\*(C`m?pattern?\\*(C'>) are reset to match again. Only resets "
14030 "variables or searches in the current package. Always returns 1. Examples:"
14031 msgstr ""
14032
14033 #. type: Plain text
14034 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14035 #: opensuse-leap-16-1 opensuse-tumbleweed
14036 #, no-wrap
14037 msgid ""
14038 "\\& reset \\*(AqX\\*(Aq; # reset all X variables\n"
14039 "\\& reset \\*(Aqa-z\\*(Aq; # reset lower case variables\n"
14040 "\\& reset; # just reset m?one-time? searches\n"
14041 msgstr ""
14042
14043 #. type: Plain text
14044 #: debian-trixie debian-unstable
14045 msgid ""
14046 "Resetting CW<\"A-Z\"> is not recommended because you'll wipe out your "
14047 "\\&CW<@ARGV> and CW<@INC> arrays and your \\&CW<%ENV> hash."
14048 msgstr ""
14049
14050 #. type: Plain text
14051 #: debian-trixie debian-unstable
14052 msgid ""
14053 "Resets only package variables; lexical variables are unaffected, but they "
14054 "clean themselves up on scope exit anyway, so you'll probably want to use "
14055 "them instead. See CW<\\*(C`my\\*(C'>."
14056 msgstr ""
14057
14058 #. type: IX
14059 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14060 #: opensuse-leap-16-1 opensuse-tumbleweed
14061 #, no-wrap
14062 msgid "return EXPR"
14063 msgstr ""
14064
14065 #. type: IX
14066 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14067 #: opensuse-leap-16-1 opensuse-tumbleweed
14068 #, no-wrap
14069 msgid "return"
14070 msgstr ""
14071
14072 #. type: Plain text
14073 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14074 #: opensuse-leap-16-1 opensuse-tumbleweed
14075 msgid ""
14076 "Returns from a subroutine, CW<\\*(C`eval\\*(C'>, \\&CW<\\*(C`do FILE\\*(C'>, "
14077 "CW<\\*(C`sort\\*(C'> block or regex eval block (but not a "
14078 "CW<\\*(C`grep\\*(C'>, \\&CW<\\*(C`map\\*(C'>, or CW<\\*(C`do BLOCK\\*(C'> "
14079 "block) with the value given in EXPR. Evaluation of EXPR may be in list, "
14080 "scalar, or void context, depending on how the return value will be used, and "
14081 "the context may vary from one execution to the next (see "
14082 "\\&CW<\\*(C`wantarray\\*(C'>). If no EXPR is given, returns an empty list "
14083 "in list context, the undefined value in scalar context, and (of course) "
14084 "nothing at all in void context."
14085 msgstr ""
14086
14087 #. type: Plain text
14088 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14089 #: opensuse-leap-16-1 opensuse-tumbleweed
14090 msgid ""
14091 "(In the absence of an explicit CW<\\*(C`return\\*(C'>, a subroutine, "
14092 "\\&CW<\\*(C`eval\\*(C'>, or CW<\\*(C`do FILE\\*(C'> automatically returns "
14093 "the value of the last expression evaluated.)"
14094 msgstr ""
14095
14096 #. type: Plain text
14097 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14098 #: opensuse-leap-16-1 opensuse-tumbleweed
14099 msgid ""
14100 "Unlike most named operators, this is also exempt from the looks-like-a-"
14101 "function rule, so CW<\\*(C`return (\"foo\").\"bar\"\\*(C'> will cause "
14102 "CW<\"bar\"> to be part of the argument to CW<\\*(C`return\\*(C'>."
14103 msgstr ""
14104
14105 #. type: IX
14106 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14107 #: opensuse-leap-16-1 opensuse-tumbleweed
14108 #, no-wrap
14109 msgid "reverse LIST"
14110 msgstr ""
14111
14112 #. type: IX
14113 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14114 #: opensuse-leap-16-1 opensuse-tumbleweed
14115 #, no-wrap
14116 msgid "reverse rev invert"
14117 msgstr ""
14118
14119 #. type: Plain text
14120 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14121 #: opensuse-leap-16-1 opensuse-tumbleweed
14122 msgid ""
14123 "In list context, returns a list value consisting of the elements of LIST in "
14124 "the opposite order. In scalar context, concatenates the elements of LIST "
14125 "and returns a string value with all characters in the opposite order."
14126 msgstr ""
14127
14128 #. type: Plain text
14129 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14130 #: opensuse-leap-16-1 opensuse-tumbleweed
14131 #, no-wrap
14132 msgid ""
14133 "\\& print join(\", \", reverse \"world\", \"Hello\"); # Hello, world\n"
14134 "\\&\n"
14135 "\\& print scalar reverse \"dlrow ,\", \"olleH\"; # Hello, world\n"
14136 msgstr ""
14137
14138 #. type: Plain text
14139 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14140 #: opensuse-leap-16-1 opensuse-tumbleweed
14141 msgid ""
14142 "Used without arguments in scalar context, CW<\\*(C`reverse\\*(C'> reverses "
14143 "CW<$_>."
14144 msgstr ""
14145
14146 #. type: Plain text
14147 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14148 #: opensuse-leap-16-1 opensuse-tumbleweed
14149 #, no-wrap
14150 msgid ""
14151 "\\& $_ = \"dlrow ,olleH\";\n"
14152 "\\& print reverse; # No output, list context\n"
14153 "\\& print scalar reverse; # Hello, world\n"
14154 msgstr ""
14155
14156 #. type: Plain text
14157 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14158 #: opensuse-leap-16-1 opensuse-tumbleweed
14159 msgid ""
14160 "Note that reversing an array to itself (as in CW<\\*(C`@a = reverse "
14161 "@a\\*(C'>) will preserve non-existent elements whenever possible; i.e., for "
14162 "non-magical arrays or for tied arrays with CW<\\*(C`EXISTS\\*(C'> and "
14163 "CW<\\*(C`DELETE\\*(C'> methods."
14164 msgstr ""
14165
14166 #. type: Plain text
14167 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14168 #: opensuse-leap-16-1 opensuse-tumbleweed
14169 msgid ""
14170 "This operator is also handy for inverting a hash, although there are some "
14171 "caveats. If a value is duplicated in the original hash, only one of those "
14172 "can be represented as a key in the inverted hash. Also, this has to unwind "
14173 "one hash and build a whole new one, which may take some time on a large "
14174 "hash, such as from a DBM file."
14175 msgstr ""
14176
14177 #. type: Plain text
14178 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14179 #: opensuse-leap-16-1 opensuse-tumbleweed
14180 #, no-wrap
14181 msgid "\\& my %by_name = reverse %by_address; # Invert the hash\n"
14182 msgstr ""
14183
14184 #. type: IX
14185 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14186 #: opensuse-leap-16-1 opensuse-tumbleweed
14187 #, no-wrap
14188 msgid "rewinddir DIRHANDLE"
14189 msgstr ""
14190
14191 #. type: IX
14192 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14193 #: opensuse-leap-16-1 opensuse-tumbleweed
14194 #, no-wrap
14195 msgid "rewinddir"
14196 msgstr ""
14197
14198 #. type: Plain text
14199 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14200 #: opensuse-leap-16-1 opensuse-tumbleweed
14201 msgid ""
14202 "Sets the current position to the beginning of the directory for the "
14203 "\\&CW<\\*(C`readdir\\*(C'> routine on DIRHANDLE."
14204 msgstr ""
14205
14206 #. type: Plain text
14207 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14208 #: opensuse-leap-16-1 opensuse-tumbleweed
14209 msgid "Portability issues: \"rewinddir\" in perlport."
14210 msgstr ""
14211
14212 #. type: IX
14213 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14214 #: opensuse-leap-16-1 opensuse-tumbleweed
14215 #, no-wrap
14216 msgid "rindex STR,SUBSTR,POSITION"
14217 msgstr ""
14218
14219 #. type: IX
14220 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14221 #: opensuse-leap-16-1 opensuse-tumbleweed
14222 #, no-wrap
14223 msgid "rindex"
14224 msgstr ""
14225
14226 #. type: IX
14227 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14228 #: opensuse-leap-16-1 opensuse-tumbleweed
14229 #, no-wrap
14230 msgid "rindex STR,SUBSTR"
14231 msgstr ""
14232
14233 #. type: Plain text
14234 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14235 #: opensuse-leap-16-1 opensuse-tumbleweed
14236 msgid ""
14237 "Works just like CW<\\*(C`index\\*(C'> except that it returns the position of "
14238 "the I<last> occurrence of SUBSTR in STR. If POSITION is specified, returns "
14239 "the last occurrence beginning at or before that position."
14240 msgstr ""
14241
14242 #. type: IX
14243 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14244 #: opensuse-leap-16-1 opensuse-tumbleweed
14245 #, no-wrap
14246 msgid "rmdir FILENAME"
14247 msgstr ""
14248
14249 #. type: IX
14250 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14251 #: opensuse-leap-16-1 opensuse-tumbleweed
14252 #, no-wrap
14253 msgid "rmdir rd directory, remove"
14254 msgstr ""
14255
14256 #. type: IX
14257 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14258 #: opensuse-leap-16-1 opensuse-tumbleweed
14259 #, no-wrap
14260 msgid "rmdir"
14261 msgstr ""
14262
14263 #. type: Plain text
14264 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14265 #: opensuse-leap-16-1 opensuse-tumbleweed
14266 msgid ""
14267 "Deletes the directory specified by FILENAME if that directory is empty. If "
14268 "it succeeds it returns true; otherwise it returns false and sets CW<$!> "
14269 "(errno). If FILENAME is omitted, uses \\&CW<$_>."
14270 msgstr ""
14271
14272 #. type: Plain text
14273 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14274 #: opensuse-leap-16-1 opensuse-tumbleweed
14275 msgid ""
14276 "To remove a directory tree recursively (CW<\\*(C`rm -rf\\*(C'> on Unix) look "
14277 "at the CW<\\*(C`rmtree\\*(C'> function of the File::Path module."
14278 msgstr ""
14279
14280 #. type: IX
14281 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14282 #: opensuse-leap-16-1 opensuse-tumbleweed
14283 #, no-wrap
14284 msgid "s///"
14285 msgstr ""
14286
14287 #. type: Plain text
14288 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14289 #: opensuse-leap-16-1 opensuse-tumbleweed
14290 msgid ""
14291 "The substitution operator. See \"Regexp Quote-Like Operators\" in perlop."
14292 msgstr ""
14293
14294 #. type: IX
14295 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14296 #: opensuse-leap-16-1 opensuse-tumbleweed
14297 #, no-wrap
14298 msgid "say FILEHANDLE LIST"
14299 msgstr ""
14300
14301 #. type: IX
14302 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14303 #: opensuse-leap-16-1 opensuse-tumbleweed
14304 #, no-wrap
14305 msgid "say"
14306 msgstr ""
14307
14308 #. type: IX
14309 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14310 #: opensuse-leap-16-1 opensuse-tumbleweed
14311 #, no-wrap
14312 msgid "say FILEHANDLE"
14313 msgstr ""
14314
14315 #. type: IX
14316 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14317 #: opensuse-leap-16-1 opensuse-tumbleweed
14318 #, no-wrap
14319 msgid "say LIST"
14320 msgstr ""
14321
14322 #. type: Plain text
14323 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14324 #: opensuse-leap-16-1 opensuse-tumbleweed
14325 msgid ""
14326 "Just like CW<\\*(C`print\\*(C'>, but implicitly appends a newline at the end "
14327 "of the LIST instead of any value CW<\\*(C`$\\e\\*(C'> might have. To use "
14328 "FILEHANDLE without a LIST to print the contents of CW<$_> to it, you must "
14329 "use a bareword filehandle like CW<\\*(C`FH\\*(C'>, not an indirect one like "
14330 "CW<$fh>."
14331 msgstr ""
14332
14333 #. type: IX
14334 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14335 #: opensuse-leap-16-1 opensuse-tumbleweed
14336 #, no-wrap
14337 msgid "scalar EXPR"
14338 msgstr ""
14339
14340 #. type: IX
14341 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14342 #: opensuse-leap-16-1 opensuse-tumbleweed
14343 #, no-wrap
14344 msgid "scalar context"
14345 msgstr ""
14346
14347 #. type: Plain text
14348 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14349 #: opensuse-leap-16-1 opensuse-tumbleweed
14350 msgid ""
14351 "Forces EXPR to be interpreted in scalar context and returns the value of "
14352 "EXPR."
14353 msgstr ""
14354
14355 #. type: Plain text
14356 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14357 #: opensuse-leap-16-1 opensuse-tumbleweed
14358 #, no-wrap
14359 msgid "\\& my @counts = ( scalar @a, scalar @b, scalar @c );\n"
14360 msgstr ""
14361
14362 #. type: Plain text
14363 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14364 #: opensuse-leap-16-1 opensuse-tumbleweed
14365 msgid ""
14366 "There is no equivalent operator to force an expression to be interpolated in "
14367 "list context because in practice, this is never needed. If you really "
14368 "wanted to do so, however, you could use the construction CW<\\*(C`@{[ (some "
14369 "expression) ]}\\*(C'>, but usually a simple \\&CW<\\*(C`(some expression)"
14370 "\\*(C'> suffices."
14371 msgstr ""
14372
14373 #. type: Plain text
14374 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14375 #: opensuse-leap-16-1 opensuse-tumbleweed
14376 msgid ""
14377 "Because CW<\\*(C`scalar\\*(C'> is a unary operator, if you accidentally use "
14378 "a parenthesized list for the EXPR, this behaves as a scalar comma "
14379 "expression, evaluating all but the last element in void context and "
14380 "returning the final element evaluated in scalar context. This is seldom "
14381 "what you want."
14382 msgstr ""
14383
14384 #. type: Plain text
14385 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14386 #: opensuse-leap-16-1 opensuse-tumbleweed
14387 msgid "The following single statement:"
14388 msgstr ""
14389
14390 #. type: Plain text
14391 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14392 #: opensuse-leap-16-1 opensuse-tumbleweed
14393 #, no-wrap
14394 msgid "\\& print uc(scalar(foo(), $bar)), $baz;\n"
14395 msgstr ""
14396
14397 #. type: Plain text
14398 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14399 #: opensuse-leap-16-1 opensuse-tumbleweed
14400 msgid "is the moral equivalent of these two:"
14401 msgstr ""
14402
14403 #. type: Plain text
14404 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14405 #: opensuse-leap-16-1 opensuse-tumbleweed
14406 #, no-wrap
14407 msgid ""
14408 "\\& foo();\n"
14409 "\\& print(uc($bar), $baz);\n"
14410 msgstr ""
14411
14412 #. type: Plain text
14413 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14414 #: opensuse-leap-16-1 opensuse-tumbleweed
14415 msgid ""
14416 "See perlop for more details on unary operators and the comma operator, and "
14417 "perldata for details on evaluating a hash in scalar context."
14418 msgstr ""
14419
14420 #. type: IX
14421 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14422 #: opensuse-leap-16-1 opensuse-tumbleweed
14423 #, no-wrap
14424 msgid "seek FILEHANDLE,POSITION,WHENCE"
14425 msgstr ""
14426
14427 #. type: IX
14428 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14429 #: opensuse-leap-16-1 opensuse-tumbleweed
14430 #, no-wrap
14431 msgid "seek fseek filehandle, position"
14432 msgstr ""
14433
14434 #. type: Plain text
14435 #: debian-trixie debian-unstable
14436 msgid ""
14437 "Sets FILEHANDLE's position, just like the B<fseek>\\|(3) call of C "
14438 "CW<\\*(C`stdio\\*(C'>. FILEHANDLE may be an expression whose value gives "
14439 "the name of the filehandle. The values for WHENCE are CW<0> to set the new "
14440 "position \\&I<in bytes> to POSITION; CW<1> to set it to the current position "
14441 "plus POSITION; and CW<2> to set it to EOF plus POSITION, typically "
14442 "negative. For WHENCE you may use the constants CW<\\*(C`SEEK_SET\\*(C'>, "
14443 "\\&CW<\\*(C`SEEK_CUR\\*(C'>, and CW<\\*(C`SEEK_END\\*(C'> (start of the "
14444 "file, current position, end of the file) from the Fcntl module. Returns "
14445 "CW<1> on success, false otherwise."
14446 msgstr ""
14447
14448 #. type: Plain text
14449 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14450 #: opensuse-leap-16-1 opensuse-tumbleweed
14451 msgid ""
14452 "Note the emphasis on bytes: even if the filehandle has been set to operate "
14453 "on characters (for example using the CW<:encoding(UTF-8)> I/O layer), the "
14454 "\\&CW<\\*(C`seek\\*(C'>, \\&CW<\\*(C`tell\\*(C'>, and "
14455 "\\&CW<\\*(C`sysseek\\*(C'> family of functions use byte offsets, not "
14456 "character offsets, because seeking to a character offset would be very slow "
14457 "in a UTF-8 file."
14458 msgstr ""
14459
14460 #. type: Plain text
14461 #: debian-trixie debian-unstable
14462 msgid ""
14463 "If you want to position the file for \\&CW<\\*(C`sysread\\*(C'> or "
14464 "\\&CW<\\*(C`syswrite\\*(C'>, don't use \\&CW<\\*(C`seek\\*(C'>, because "
14465 "buffering makes its effect on the file's read-write position unpredictable "
14466 "and non-portable. Use CW<\\*(C`sysseek\\*(C'> instead."
14467 msgstr ""
14468
14469 #. type: Plain text
14470 #: debian-trixie debian-unstable
14471 msgid ""
14472 "Due to the rules and rigors of ANSI C, on some systems you have to do a seek "
14473 "whenever you switch between reading and writing. Amongst other things, this "
14474 "may have the effect of calling stdio's B<clearerr>\\|(3). A WHENCE of CW<1> "
14475 "(CW<\\*(C`SEEK_CUR\\*(C'>) is useful for not moving the file position:"
14476 msgstr ""
14477
14478 #. type: Plain text
14479 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14480 #: opensuse-leap-16-1 opensuse-tumbleweed
14481 #, no-wrap
14482 msgid "\\& seek($fh, 0, 1);\n"
14483 msgstr ""
14484
14485 #. type: Plain text
14486 #: debian-trixie debian-unstable
14487 msgid ""
14488 "This is also useful for applications emulating CW<\\*(C`tail -f\\*(C'>. "
14489 "Once you hit EOF on your read and then sleep for a while, you (probably) "
14490 "have to stick in a dummy CW<\\*(C`seek\\*(C'> to reset things. The "
14491 "\\&CW<\\*(C`seek\\*(C'> doesn't change the position, but it I<does> clear "
14492 "the end-of-file condition on the handle, so that the next CW<\\*(C`readline "
14493 "FILE\\*(C'> makes Perl try again to read something. (We hope.)"
14494 msgstr ""
14495
14496 #. type: Plain text
14497 #: debian-trixie debian-unstable
14498 msgid ""
14499 "If that doesn't work (some I/O implementations are particularly "
14500 "cantankerous), you might need something like this:"
14501 msgstr ""
14502
14503 #. type: Plain text
14504 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14505 #: opensuse-leap-16-1 opensuse-tumbleweed
14506 #, no-wrap
14507 msgid ""
14508 "\\& for (;;) {\n"
14509 "\\& for ($curpos = tell($fh); $_ = readline($fh);\n"
14510 "\\& $curpos = tell($fh)) {\n"
14511 "\\& # search for some stuff and put it into files\n"
14512 "\\& }\n"
14513 "\\& sleep($for_a_while);\n"
14514 "\\& seek($fh, $curpos, 0);\n"
14515 "\\& }\n"
14516 msgstr ""
14517
14518 #. type: IX
14519 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14520 #: opensuse-leap-16-1 opensuse-tumbleweed
14521 #, no-wrap
14522 msgid "seekdir DIRHANDLE,POS"
14523 msgstr ""
14524
14525 #. type: IX
14526 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14527 #: opensuse-leap-16-1 opensuse-tumbleweed
14528 #, no-wrap
14529 msgid "seekdir"
14530 msgstr ""
14531
14532 #. type: Plain text
14533 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14534 #: opensuse-leap-16-1 opensuse-tumbleweed
14535 msgid ""
14536 "Sets the current position for the CW<\\*(C`readdir\\*(C'> routine on "
14537 "DIRHANDLE. POS must be a value returned by \\&CW<\\*(C`telldir\\*(C'>. "
14538 "CW<\\*(C`seekdir\\*(C'> also has the same caveats about possible directory "
14539 "compaction as the corresponding system library routine."
14540 msgstr ""
14541
14542 #. type: IX
14543 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14544 #: opensuse-leap-16-1 opensuse-tumbleweed
14545 #, no-wrap
14546 msgid "select FILEHANDLE"
14547 msgstr ""
14548
14549 #. type: IX
14550 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14551 #: opensuse-leap-16-1 opensuse-tumbleweed
14552 #, no-wrap
14553 msgid "select filehandle, default"
14554 msgstr ""
14555
14556 #. type: IX
14557 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14558 #: opensuse-leap-16-1 opensuse-tumbleweed
14559 #, no-wrap
14560 msgid "select"
14561 msgstr ""
14562
14563 #. type: Plain text
14564 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14565 #: opensuse-leap-16-1 opensuse-tumbleweed
14566 msgid ""
14567 "Returns the currently selected filehandle. If FILEHANDLE is supplied, sets "
14568 "the new current default filehandle for output. This has two effects: first, "
14569 "a CW<\\*(C`write\\*(C'>, CW<\\*(C`print\\*(C'>, or CW<\\*(C`say\\*(C'> "
14570 "without a filehandle will default to this FILEHANDLE. Second, references to "
14571 "variables related to output will refer to this output channel."
14572 msgstr ""
14573
14574 #. type: Plain text
14575 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14576 #: opensuse-leap-16-1 opensuse-tumbleweed
14577 msgid ""
14578 "For example, to set the top-of-form format for more than one output channel, "
14579 "you might do the following:"
14580 msgstr ""
14581
14582 #. type: Plain text
14583 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14584 #: opensuse-leap-16-1 opensuse-tumbleweed
14585 #, no-wrap
14586 msgid ""
14587 "\\& select(REPORT1);\n"
14588 "\\& $^ = \\*(Aqreport1_top\\*(Aq;\n"
14589 "\\& select(REPORT2);\n"
14590 "\\& $^ = \\*(Aqreport2_top\\*(Aq;\n"
14591 msgstr ""
14592
14593 #. type: Plain text
14594 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14595 #: opensuse-leap-16-1 opensuse-tumbleweed
14596 msgid ""
14597 "FILEHANDLE may be an expression whose value gives the name of the actual "
14598 "filehandle. Thus:"
14599 msgstr ""
14600
14601 #. type: Plain text
14602 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14603 #: opensuse-leap-16-1 opensuse-tumbleweed
14604 #, no-wrap
14605 msgid "\\& my $oldfh = select(STDERR); $| = 1; select($oldfh);\n"
14606 msgstr ""
14607
14608 #. type: Plain text
14609 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14610 #: opensuse-leap-16-1 opensuse-tumbleweed
14611 msgid ""
14612 "Some programmers may prefer to think of filehandles as objects with methods, "
14613 "preferring to write the last example as:"
14614 msgstr ""
14615
14616 #. type: Plain text
14617 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14618 #: opensuse-leap-16-1 opensuse-tumbleweed
14619 #, no-wrap
14620 msgid "\\& STDERR-E<gt>autoflush(1);\n"
14621 msgstr ""
14622
14623 #. type: Plain text
14624 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14625 #: opensuse-leap-16-1 opensuse-tumbleweed
14626 msgid ""
14627 "(Prior to Perl version 5.14, you have to CW<\\*(C`use IO::Handle;\\*(C'> "
14628 "explicitly first.)"
14629 msgstr ""
14630
14631 #. type: Plain text
14632 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14633 #: opensuse-leap-16-1 opensuse-tumbleweed
14634 msgid ""
14635 "Whilst you can use CW<\\*(C`select\\*(C'> to temporarily \"capture\" the "
14636 "output of \\&CW<\\*(C`print\\*(C'> like this:"
14637 msgstr ""
14638
14639 #. type: Plain text
14640 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14641 #: opensuse-leap-16-1 opensuse-tumbleweed
14642 #, no-wrap
14643 msgid ""
14644 "\\& {\n"
14645 "\\& my $old_handle = select $new_handle;\n"
14646 "\\&\n"
14647 "\\& # This goes to $new_handle:\n"
14648 "\\& print \"ok 1\\en\";\n"
14649 "\\& ...\n"
14650 "\\&\n"
14651 "\\& select $old_handle;\n"
14652 "\\& }\n"
14653 msgstr ""
14654
14655 #. type: Plain text
14656 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14657 #: opensuse-leap-16-1 opensuse-tumbleweed
14658 msgid "you might find it easier to localize the typeglob instead:"
14659 msgstr ""
14660
14661 #. type: Plain text
14662 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14663 #: opensuse-leap-16-1 opensuse-tumbleweed
14664 #, no-wrap
14665 msgid ""
14666 "\\& {\n"
14667 "\\& local *STDOUT = $new_handle;\n"
14668 "\\&\n"
14669 "\\& print \"ok 1\\en\";\n"
14670 "\\& ...\n"
14671 "\\& }\n"
14672 msgstr ""
14673
14674 #. type: Plain text
14675 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14676 #: opensuse-leap-16-1 opensuse-tumbleweed
14677 msgid ""
14678 "The two are not exactly equivalent, but the latter might be clearer and will "
14679 "restore STDOUT if the wrapped code dies. The difference is that in the "
14680 "former, the original STDOUT can still be accessed by explicitly using it in "
14681 "a \\&CW<\\*(C`print\\*(C'> statement (as CW<\\*(C`print STDOUT ...\\*(C'>), "
14682 "whereas in the latter the meaning of the STDOUT handle itself has "
14683 "temporarily been changed."
14684 msgstr ""
14685
14686 #. type: Plain text
14687 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14688 #: opensuse-leap-16-1 opensuse-tumbleweed
14689 msgid "Portability issues: \"select\" in perlport."
14690 msgstr ""
14691
14692 #. type: IX
14693 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14694 #: opensuse-leap-16-1 opensuse-tumbleweed
14695 #, no-wrap
14696 msgid "select RBITS,WBITS,EBITS,TIMEOUT"
14697 msgstr ""
14698
14699 #. type: Plain text
14700 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14701 #: opensuse-leap-16-1 opensuse-tumbleweed
14702 msgid ""
14703 "This calls the B<select>\\|(2) syscall with the bit masks specified, which "
14704 "can be constructed using CW<\\*(C`fileno\\*(C'> and \\&CW<\\*(C`vec\\*(C'>, "
14705 "along these lines:"
14706 msgstr ""
14707
14708 #. type: Plain text
14709 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14710 #: opensuse-leap-16-1 opensuse-tumbleweed
14711 #, no-wrap
14712 msgid ""
14713 "\\& my $rin = my $win = my $ein = \\*(Aq\\*(Aq;\n"
14714 "\\& vec($rin, fileno(STDIN), 1) = 1;\n"
14715 "\\& vec($win, fileno(STDOUT), 1) = 1;\n"
14716 "\\& $ein = $rin | $win;\n"
14717 msgstr ""
14718
14719 #. type: Plain text
14720 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14721 #: opensuse-leap-16-1 opensuse-tumbleweed
14722 msgid ""
14723 "If you want to select on many filehandles, you may wish to write a "
14724 "subroutine like this:"
14725 msgstr ""
14726
14727 #. type: Plain text
14728 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14729 #: opensuse-leap-16-1 opensuse-tumbleweed
14730 #, no-wrap
14731 msgid ""
14732 "\\& sub fhbits {\n"
14733 "\\& my @fhlist = @_;\n"
14734 "\\& my $bits = \"\";\n"
14735 "\\& for my $fh (@fhlist) {\n"
14736 "\\& vec($bits, fileno($fh), 1) = 1;\n"
14737 "\\& }\n"
14738 "\\& return $bits;\n"
14739 "\\& }\n"
14740 "\\& my $rin = fhbits(\\e*STDIN, $tty, $mysock);\n"
14741 msgstr ""
14742
14743 #. type: Plain text
14744 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14745 #: opensuse-leap-16-1 opensuse-tumbleweed
14746 msgid "The usual idiom is:"
14747 msgstr ""
14748
14749 #. type: Plain text
14750 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14751 #: opensuse-leap-16-1 opensuse-tumbleweed
14752 #, no-wrap
14753 msgid ""
14754 "\\& my ($nfound, $timeleft) =\n"
14755 "\\& select(my $rout = $rin, my $wout = $win, my $eout = $ein,\n"
14756 "\\& $timeout);\n"
14757 msgstr ""
14758
14759 #. type: Plain text
14760 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14761 #: opensuse-leap-16-1 opensuse-tumbleweed
14762 msgid "or to block until something becomes ready just do this"
14763 msgstr ""
14764
14765 #. type: Plain text
14766 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14767 #: opensuse-leap-16-1 opensuse-tumbleweed
14768 #, no-wrap
14769 msgid ""
14770 "\\& my $nfound =\n"
14771 "\\& select(my $rout = $rin, my $wout = $win, my $eout = $ein, undef);\n"
14772 msgstr ""
14773
14774 #. type: Plain text
14775 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14776 #: opensuse-leap-16-1 opensuse-tumbleweed
14777 msgid ""
14778 "Most systems do not bother to return anything useful in CW<$timeleft>, so "
14779 "calling CW<\\*(C`select\\*(C'> in scalar context just returns CW<$nfound>."
14780 msgstr ""
14781
14782 #. type: Plain text
14783 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14784 #: opensuse-leap-16-1 opensuse-tumbleweed
14785 msgid ""
14786 "Any of the bit masks can also be CW<\\*(C`undef\\*(C'>. The timeout, if "
14787 "specified, is in seconds, which may be fractional. Note: not all "
14788 "implementations are capable of returning the CW<$timeleft>. If not, they "
14789 "always return \\&CW<$timeleft> equal to the supplied CW<$timeout>."
14790 msgstr ""
14791
14792 #. type: Plain text
14793 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14794 #: opensuse-leap-16-1 opensuse-tumbleweed
14795 msgid "You can effect a sleep of 250 milliseconds this way:"
14796 msgstr ""
14797
14798 #. type: Plain text
14799 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14800 #: opensuse-leap-16-1 opensuse-tumbleweed
14801 #, no-wrap
14802 msgid "\\& select(undef, undef, undef, 0.25);\n"
14803 msgstr ""
14804
14805 #. type: Plain text
14806 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14807 #: opensuse-leap-16-1 opensuse-tumbleweed
14808 msgid ""
14809 "Note that whether CW<\\*(C`select\\*(C'> gets restarted after signals (say, "
14810 "SIGALRM) is implementation-dependent. See also perlport for notes on the "
14811 "portability of \\&CW<\\*(C`select\\*(C'>."
14812 msgstr ""
14813
14814 #. type: Plain text
14815 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14816 #: opensuse-leap-16-1 opensuse-tumbleweed
14817 msgid ""
14818 "On error, CW<\\*(C`select\\*(C'> behaves just like B<select>\\|(2): it "
14819 "returns CW<-1> and sets CW<$!>."
14820 msgstr ""
14821
14822 #. type: Plain text
14823 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14824 #: opensuse-leap-16-1 opensuse-tumbleweed
14825 msgid ""
14826 "On some Unixes, B<select>\\|(2) may report a socket file descriptor as "
14827 "\"ready for reading\" even when no data is available, and thus any "
14828 "subsequent CW<\\*(C`read\\*(C'> would block. This can be avoided if you "
14829 "always use CW<\\*(C`O_NONBLOCK\\*(C'> on the socket. See \\&B<select>\\|(2) "
14830 "and B<fcntl>\\|(2) for further details."
14831 msgstr ""
14832
14833 #. type: Plain text
14834 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14835 #: opensuse-leap-16-1 opensuse-tumbleweed
14836 msgid ""
14837 "The standard CW<\\*(C`IO::Select\\*(C'> module provides a user-friendlier "
14838 "interface to \\&CW<\\*(C`select\\*(C'>, mostly because it does all the bit-"
14839 "mask work for you."
14840 msgstr ""
14841
14842 #. type: Plain text
14843 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14844 #: opensuse-leap-16-1 opensuse-tumbleweed
14845 msgid ""
14846 "\\&B<WARNING>: One should not attempt to mix buffered I/O (like "
14847 "\\&CW<\\*(C`read\\*(C'> or \\&CW<\\*(C`readline\\*(C'>) with "
14848 "\\&CW<\\*(C`select\\*(C'>, except as permitted by POSIX, and even then only "
14849 "on POSIX systems. You have to use \\&CW<\\*(C`sysread\\*(C'> instead."
14850 msgstr ""
14851
14852 #. type: IX
14853 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14854 #: opensuse-leap-16-1 opensuse-tumbleweed
14855 #, no-wrap
14856 msgid "semctl ID,SEMNUM,CMD,ARG"
14857 msgstr ""
14858
14859 #. type: IX
14860 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14861 #: opensuse-leap-16-1 opensuse-tumbleweed
14862 #, no-wrap
14863 msgid "semctl"
14864 msgstr ""
14865
14866 #. type: Plain text
14867 #: debian-trixie debian-unstable
14868 msgid ""
14869 "Calls the System V IPC function B<semctl>\\|(2). You'll probably have to say"
14870 msgstr ""
14871
14872 #. type: Plain text
14873 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14874 #: opensuse-leap-16-1 opensuse-tumbleweed
14875 msgid ""
14876 "first to get the correct constant definitions. If CMD is IPC_STAT or "
14877 "GETALL, then ARG must be a variable that will hold the returned semid_ds "
14878 "structure or semaphore value array. Returns like \\&CW<\\*(C`ioctl\\*(C'>: "
14879 "the undefined value for error, \"CW<\\*(C`0 but true\\*(C'>\" for zero, or "
14880 "the actual return value otherwise. The ARG must consist of a vector of "
14881 "native short integers, which may be created with CW<\\*(C`pack(\"s!\","
14882 "(0)x$nsem)\\*(C'>. See also \"SysV IPC\" in perlipc and the documentation "
14883 "for \\&CW<\\*(C`IPC::SysV\\*(C'> and CW<\\*(C`IPC::Semaphore\\*(C'>."
14884 msgstr ""
14885
14886 #. type: Plain text
14887 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14888 #: opensuse-leap-16-1 opensuse-tumbleweed
14889 msgid "Portability issues: \"semctl\" in perlport."
14890 msgstr ""
14891
14892 #. type: IX
14893 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14894 #: opensuse-leap-16-1 opensuse-tumbleweed
14895 #, no-wrap
14896 msgid "semget KEY,NSEMS,FLAGS"
14897 msgstr ""
14898
14899 #. type: IX
14900 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14901 #: opensuse-leap-16-1 opensuse-tumbleweed
14902 #, no-wrap
14903 msgid "semget"
14904 msgstr ""
14905
14906 #. type: Plain text
14907 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14908 #: opensuse-leap-16-1 opensuse-tumbleweed
14909 msgid ""
14910 "Calls the System V IPC function B<semget>\\|(2). Returns the semaphore id, "
14911 "or the undefined value on error. See also \"SysV IPC\" in perlipc and the "
14912 "documentation for \\&CW<\\*(C`IPC::SysV\\*(C'> and "
14913 "CW<\\*(C`IPC::Semaphore\\*(C'>."
14914 msgstr ""
14915
14916 #. type: Plain text
14917 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14918 #: opensuse-leap-16-1 opensuse-tumbleweed
14919 msgid "Portability issues: \"semget\" in perlport."
14920 msgstr ""
14921
14922 #. type: IX
14923 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14924 #: opensuse-leap-16-1 opensuse-tumbleweed
14925 #, no-wrap
14926 msgid "semop KEY,OPSTRING"
14927 msgstr ""
14928
14929 #. type: IX
14930 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14931 #: opensuse-leap-16-1 opensuse-tumbleweed
14932 #, no-wrap
14933 msgid "semop"
14934 msgstr ""
14935
14936 #. type: Plain text
14937 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14938 #: opensuse-leap-16-1 opensuse-tumbleweed
14939 msgid ""
14940 "Calls the System V IPC function B<semop>\\|(2) for semaphore operations such "
14941 "as signalling and waiting. OPSTRING must be a packed array of semop "
14942 "structures. Each semop structure can be generated with \\&CW<\\*(C`pack(\"s!"
14943 "3\", $semnum, $semop, $semflag)\\*(C'>. The length of OPSTRING implies the "
14944 "number of semaphore operations. Returns true if successful, false on "
14945 "error. As an example, the following code waits on semaphore CW<$semnum> of "
14946 "semaphore id CW<$semid:>"
14947 msgstr ""
14948
14949 #. type: Plain text
14950 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14951 #: opensuse-leap-16-1 opensuse-tumbleweed
14952 #, no-wrap
14953 msgid ""
14954 "\\& my $semop = pack(\"s!3\", $semnum, -1, 0);\n"
14955 "\\& die \"Semaphore trouble: $!\\en\" unless semop($semid, $semop);\n"
14956 msgstr ""
14957
14958 #. type: Plain text
14959 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14960 #: opensuse-leap-16-1 opensuse-tumbleweed
14961 msgid ""
14962 "To signal the semaphore, replace CW<-1> with CW<1>. See also \"SysV IPC\" "
14963 "in perlipc and the documentation for \\&CW<\\*(C`IPC::SysV\\*(C'> and "
14964 "CW<\\*(C`IPC::Semaphore\\*(C'>."
14965 msgstr ""
14966
14967 #. type: Plain text
14968 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14969 #: opensuse-leap-16-1 opensuse-tumbleweed
14970 msgid "Portability issues: \"semop\" in perlport."
14971 msgstr ""
14972
14973 #. type: IX
14974 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14975 #: opensuse-leap-16-1 opensuse-tumbleweed
14976 #, no-wrap
14977 msgid "send SOCKET,MSG,FLAGS,TO"
14978 msgstr ""
14979
14980 #. type: IX
14981 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14982 #: opensuse-leap-16-1 opensuse-tumbleweed
14983 #, no-wrap
14984 msgid "send"
14985 msgstr ""
14986
14987 #. type: IX
14988 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14989 #: opensuse-leap-16-1 opensuse-tumbleweed
14990 #, no-wrap
14991 msgid "send SOCKET,MSG,FLAGS"
14992 msgstr ""
14993
14994 #. type: Plain text
14995 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
14996 #: opensuse-leap-16-1 opensuse-tumbleweed
14997 msgid ""
14998 "Sends a message on a socket. Attempts to send the scalar MSG to the SOCKET "
14999 "filehandle. Takes the same flags as the system call of the same name. On "
15000 "unconnected sockets, you must specify a destination to I<send to>, in which "
15001 "case it does a B<sendto>\\|(2) syscall. Returns the number of characters "
15002 "sent, or the undefined value on error. The B<sendmsg>\\|(2) syscall is "
15003 "currently unimplemented. See \"UDP: Message Passing\" in perlipc for "
15004 "examples."
15005 msgstr ""
15006
15007 #. type: Plain text
15008 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15009 #: opensuse-leap-16-1 opensuse-tumbleweed
15010 msgid ""
15011 "Note that if the socket has been marked as CW<\\*(C`:utf8\\*(C'>, "
15012 "CW<\\*(C`send\\*(C'> will throw an exception. The CW<:encoding(...)> layer "
15013 "implicitly introduces the CW<\\*(C`:utf8\\*(C'> layer. See "
15014 "CW<\\*(C`binmode\\*(C'>."
15015 msgstr ""
15016
15017 #. type: IX
15018 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15019 #: opensuse-leap-16-1 opensuse-tumbleweed
15020 #, no-wrap
15021 msgid "setpgrp PID,PGRP"
15022 msgstr ""
15023
15024 #. type: IX
15025 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15026 #: opensuse-leap-16-1 opensuse-tumbleweed
15027 #, no-wrap
15028 msgid "setpgrp group"
15029 msgstr ""
15030
15031 #. type: Plain text
15032 #: debian-trixie debian-unstable
15033 msgid ""
15034 "Sets the current process group for the specified PID, CW<0> for the current "
15035 "process. Raises an exception when used on a machine that doesn't implement "
15036 "POSIX B<setpgid>\\|(2) or BSD B<setpgrp>\\|(2). If the arguments are "
15037 "omitted, it defaults to CW<\\*(C`0,0\\*(C'>. Note that the BSD 4.2 version "
15038 "of \\&CW<\\*(C`setpgrp\\*(C'> does not accept any arguments, so only "
15039 "\\&CW<\\*(C`setpgrp(0,0)\\*(C'> is portable. See also "
15040 "\\&CW<POSIX::setsid()>."
15041 msgstr ""
15042
15043 #. type: Plain text
15044 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15045 #: opensuse-leap-16-1 opensuse-tumbleweed
15046 msgid "Portability issues: \"setpgrp\" in perlport."
15047 msgstr ""
15048
15049 #. type: IX
15050 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15051 #: opensuse-leap-16-1 opensuse-tumbleweed
15052 #, no-wrap
15053 msgid "setpriority WHICH,WHO,PRIORITY"
15054 msgstr ""
15055
15056 #. type: IX
15057 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15058 #: opensuse-leap-16-1 opensuse-tumbleweed
15059 #, no-wrap
15060 msgid "setpriority priority nice renice"
15061 msgstr ""
15062
15063 #. type: Plain text
15064 #: debian-trixie debian-unstable
15065 msgid ""
15066 "Sets the current priority for a process, a process group, or a user. (See "
15067 "B<setpriority>\\|(2).) Raises an exception when used on a machine that "
15068 "doesn't implement B<setpriority>\\|(2)."
15069 msgstr ""
15070
15071 #. type: Plain text
15072 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15073 #: opensuse-leap-16-1 opensuse-tumbleweed
15074 msgid "Portability issues: \"setpriority\" in perlport."
15075 msgstr ""
15076
15077 #. type: IX
15078 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15079 #: opensuse-leap-16-1 opensuse-tumbleweed
15080 #, no-wrap
15081 msgid "setsockopt SOCKET,LEVEL,OPTNAME,OPTVAL"
15082 msgstr ""
15083
15084 #. type: IX
15085 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15086 #: opensuse-leap-16-1 opensuse-tumbleweed
15087 #, no-wrap
15088 msgid "setsockopt"
15089 msgstr ""
15090
15091 #. type: Plain text
15092 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15093 #: opensuse-leap-16-1 opensuse-tumbleweed
15094 msgid ""
15095 "Sets the socket option requested. Returns CW<\\*(C`undef\\*(C'> on error. "
15096 "Use integer constants provided by the CW<\\*(C`Socket\\*(C'> module for "
15097 "LEVEL and OPNAME. Values for LEVEL can also be obtained from "
15098 "getprotobyname. OPTVAL might either be a packed string or an integer. An "
15099 "integer OPTVAL is shorthand for pack(\"i\", OPTVAL)."
15100 msgstr ""
15101
15102 #. type: Plain text
15103 #: debian-trixie debian-unstable
15104 msgid "An example disabling Nagle's algorithm on a socket:"
15105 msgstr ""
15106
15107 #. type: Plain text
15108 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15109 #: opensuse-leap-16-1 opensuse-tumbleweed
15110 #, no-wrap
15111 msgid ""
15112 "\\& use Socket qw(IPPROTO_TCP TCP_NODELAY);\n"
15113 "\\& setsockopt($socket, IPPROTO_TCP, TCP_NODELAY, 1);\n"
15114 msgstr ""
15115
15116 #. type: Plain text
15117 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15118 #: opensuse-leap-16-1 opensuse-tumbleweed
15119 msgid "Portability issues: \"setsockopt\" in perlport."
15120 msgstr ""
15121
15122 #. type: IX
15123 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15124 #: opensuse-leap-16-1 opensuse-tumbleweed
15125 #, no-wrap
15126 msgid "shift ARRAY"
15127 msgstr ""
15128
15129 #. type: IX
15130 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15131 #: opensuse-leap-16-1 opensuse-tumbleweed
15132 #, no-wrap
15133 msgid "shift"
15134 msgstr ""
15135
15136 #. type: Plain text
15137 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15138 #: opensuse-leap-16-1 opensuse-tumbleweed
15139 msgid ""
15140 "Removes and returns the B<first> element of an array. This shortens the "
15141 "array by one and moves everything down."
15142 msgstr ""
15143
15144 #. type: Plain text
15145 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15146 #: opensuse-leap-16-1 opensuse-tumbleweed
15147 #, no-wrap
15148 msgid ""
15149 "\\& my @arr = (\\*(Aqcat\\*(Aq, \\*(Aqdog\\*(Aq);\n"
15150 "\\& my $item = shift(@arr); # \\*(Aqcat\\*(Aq\n"
15151 "\\&\n"
15152 "\\& # @arr is now (\\*(Aqdog\\*(Aq);\n"
15153 msgstr ""
15154
15155 #. type: Plain text
15156 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15157 #: opensuse-leap-16-1 opensuse-tumbleweed
15158 msgid ""
15159 "\\&B<Note:> CW<\\*(C`shift\\*(C'> may also return CW<\\*(C`undef\\*(C'> if "
15160 "the first element in the array is CW<\\*(C`undef\\*(C'>."
15161 msgstr ""
15162
15163 #. type: Plain text
15164 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15165 #: opensuse-leap-16-1 opensuse-tumbleweed
15166 #, no-wrap
15167 msgid ""
15168 "\\& my @arr = (undef, \\*(Aqtwo\\*(Aq, \\*(Aqthree\\*(Aq);\n"
15169 "\\& my $item = shift(@arr); # undef\n"
15170 msgstr ""
15171
15172 #. type: Plain text
15173 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15174 #: opensuse-leap-16-1 opensuse-tumbleweed
15175 msgid ""
15176 "If ARRAY is omitted, CW<\\*(C`shift\\*(C'> operates on the CW<@ARGV> array "
15177 "in the main program, and the CW<@_> array in subroutines. "
15178 "CW<\\*(C`shift\\*(C'> will operate on the \\&CW<@ARGV> array in "
15179 "CW<\\*(C`eval STRING\\*(C'>, CW<\\*(C`BEGIN {}\\*(C'>, CW<\\*(C`INIT {}"
15180 "\\*(C'>, CW<\\*(C`CHECK {}\\*(C'> blocks."
15181 msgstr ""
15182
15183 #. type: Plain text
15184 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15185 #: opensuse-leap-16-1 opensuse-tumbleweed
15186 msgid ""
15187 "Starting with Perl 5.14, an experimental feature allowed "
15188 "\\&CW<\\*(C`shift\\*(C'> to take a scalar expression. This experiment has "
15189 "been deemed unsuccessful, and was removed as of Perl 5.24."
15190 msgstr ""
15191
15192 #. type: Plain text
15193 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15194 #: opensuse-leap-16-1 opensuse-tumbleweed
15195 msgid ""
15196 "See also CW<\\*(C`unshift\\*(C'>, CW<\\*(C`push\\*(C'>, and "
15197 "CW<\\*(C`pop\\*(C'>. CW<\\*(C`shift\\*(C'> and \\&CW<\\*(C`unshift\\*(C'> "
15198 "do the same thing to the left end of an array that CW<\\*(C`pop\\*(C'> and "
15199 "CW<\\*(C`push\\*(C'> do to the right end."
15200 msgstr ""
15201
15202 #. type: IX
15203 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15204 #: opensuse-leap-16-1 opensuse-tumbleweed
15205 #, no-wrap
15206 msgid "shmctl ID,CMD,ARG"
15207 msgstr ""
15208
15209 #. type: IX
15210 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15211 #: opensuse-leap-16-1 opensuse-tumbleweed
15212 #, no-wrap
15213 msgid "shmctl"
15214 msgstr ""
15215
15216 #. type: Plain text
15217 #: debian-trixie debian-unstable
15218 msgid "Calls the System V IPC function shmctl. You'll probably have to say"
15219 msgstr ""
15220
15221 #. type: Plain text
15222 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15223 #: opensuse-leap-16-1 opensuse-tumbleweed
15224 msgid ""
15225 "first to get the correct constant definitions. If CMD is "
15226 "CW<\\*(C`IPC_STAT\\*(C'>, then ARG must be a variable that will hold the "
15227 "returned CW<\\*(C`shmid_ds\\*(C'> structure. Returns like ioctl: "
15228 "CW<\\*(C`undef\\*(C'> for error; \"CW<0> but true\" for zero; and the actual "
15229 "return value otherwise. See also \"SysV IPC\" in perlipc and the "
15230 "documentation for \\&CW<\\*(C`IPC::SysV\\*(C'>."
15231 msgstr ""
15232
15233 #. type: Plain text
15234 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15235 #: opensuse-leap-16-1 opensuse-tumbleweed
15236 msgid "Portability issues: \"shmctl\" in perlport."
15237 msgstr ""
15238
15239 #. type: IX
15240 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15241 #: opensuse-leap-16-1 opensuse-tumbleweed
15242 #, no-wrap
15243 msgid "shmget KEY,SIZE,FLAGS"
15244 msgstr ""
15245
15246 #. type: IX
15247 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15248 #: opensuse-leap-16-1 opensuse-tumbleweed
15249 #, no-wrap
15250 msgid "shmget"
15251 msgstr ""
15252
15253 #. type: Plain text
15254 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15255 #: opensuse-leap-16-1 opensuse-tumbleweed
15256 msgid ""
15257 "Calls the System V IPC function shmget. Returns the shared memory segment "
15258 "id, or CW<\\*(C`undef\\*(C'> on error. See also \"SysV IPC\" in perlipc and "
15259 "the documentation for \\&CW<\\*(C`IPC::SysV\\*(C'>."
15260 msgstr ""
15261
15262 #. type: Plain text
15263 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15264 #: opensuse-leap-16-1 opensuse-tumbleweed
15265 msgid "Portability issues: \"shmget\" in perlport."
15266 msgstr ""
15267
15268 #. type: IX
15269 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15270 #: opensuse-leap-16-1 opensuse-tumbleweed
15271 #, no-wrap
15272 msgid "shmread ID,VAR,POS,SIZE"
15273 msgstr ""
15274
15275 #. type: IX
15276 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15277 #: opensuse-leap-16-1 opensuse-tumbleweed
15278 #, no-wrap
15279 msgid "shmread shmwrite"
15280 msgstr ""
15281
15282 #. type: IX
15283 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15284 #: opensuse-leap-16-1 opensuse-tumbleweed
15285 #, no-wrap
15286 msgid "shmwrite ID,STRING,POS,SIZE"
15287 msgstr ""
15288
15289 #. type: Plain text
15290 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15291 #: opensuse-leap-16-1 opensuse-tumbleweed
15292 msgid ""
15293 "Reads or writes the System V shared memory segment ID starting at position "
15294 "POS for size SIZE by attaching to it, copying in/out, and detaching from "
15295 "it. When reading, VAR must be a variable that will hold the data read. "
15296 "When writing, if STRING is too long, only SIZE bytes are used; if STRING is "
15297 "too short, nulls are written to fill out SIZE bytes. Return true if "
15298 "successful, false on error. \\&CW<\\*(C`shmread\\*(C'> taints the "
15299 "variable. See also \"SysV IPC\" in perlipc and the documentation for "
15300 "\\&CW<\\*(C`IPC::SysV\\*(C'> and the CW<\\*(C`IPC::Shareable\\*(C'> module "
15301 "from CPAN."
15302 msgstr ""
15303
15304 #. type: Plain text
15305 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15306 #: opensuse-leap-16-1 opensuse-tumbleweed
15307 msgid ""
15308 "Portability issues: \"shmread\" in perlport and \"shmwrite\" in perlport."
15309 msgstr ""
15310
15311 #. type: IX
15312 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15313 #: opensuse-leap-16-1 opensuse-tumbleweed
15314 #, no-wrap
15315 msgid "shutdown SOCKET,HOW"
15316 msgstr ""
15317
15318 #. type: IX
15319 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15320 #: opensuse-leap-16-1 opensuse-tumbleweed
15321 #, no-wrap
15322 msgid "shutdown"
15323 msgstr ""
15324
15325 #. type: Plain text
15326 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15327 #: opensuse-leap-16-1 opensuse-tumbleweed
15328 msgid ""
15329 "Shuts down a socket connection in the manner indicated by HOW, which has the "
15330 "same interpretation as in the syscall of the same name."
15331 msgstr ""
15332
15333 #. type: Plain text
15334 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15335 #: opensuse-leap-16-1 opensuse-tumbleweed
15336 #, no-wrap
15337 msgid ""
15338 "\\& shutdown($socket, 0); # I/we have stopped reading data\n"
15339 "\\& shutdown($socket, 1); # I/we have stopped writing data\n"
15340 "\\& shutdown($socket, 2); # I/we have stopped using this socket\n"
15341 msgstr ""
15342
15343 #. type: Plain text
15344 #: debian-trixie debian-unstable
15345 msgid ""
15346 "This is useful with sockets when you want to tell the other side you're done "
15347 "writing but not done reading, or vice versa. It's also a more insistent "
15348 "form of close because it also disables the file descriptor in any forked "
15349 "copies in other processes."
15350 msgstr ""
15351
15352 #. type: Plain text
15353 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15354 #: opensuse-leap-16-1 opensuse-tumbleweed
15355 msgid ""
15356 "Returns CW<1> for success; on error, returns CW<\\*(C`undef\\*(C'> if the "
15357 "first argument is not a valid filehandle, or returns CW<0> and sets \\&CW<$!"
15358 "> for any other failure."
15359 msgstr ""
15360
15361 #. type: IX
15362 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15363 #: opensuse-leap-16-1 opensuse-tumbleweed
15364 #, no-wrap
15365 msgid "sin EXPR"
15366 msgstr ""
15367
15368 #. type: IX
15369 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15370 #: opensuse-leap-16-1 opensuse-tumbleweed
15371 #, no-wrap
15372 msgid "sin sine asin arcsine"
15373 msgstr ""
15374
15375 #. type: IX
15376 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15377 #: opensuse-leap-16-1 opensuse-tumbleweed
15378 #, no-wrap
15379 msgid "sin"
15380 msgstr ""
15381
15382 #. type: Plain text
15383 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15384 #: opensuse-leap-16-1 opensuse-tumbleweed
15385 msgid ""
15386 "Returns the sine of EXPR (expressed in radians). If EXPR is omitted, "
15387 "returns sine of CW<$_>."
15388 msgstr ""
15389
15390 #. type: Plain text
15391 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15392 #: opensuse-leap-16-1 opensuse-tumbleweed
15393 msgid ""
15394 "For the inverse sine operation, you may use the "
15395 "CW<\\*(C`Math::Trig::asin\\*(C'> function, or use this relation:"
15396 msgstr ""
15397
15398 #. type: Plain text
15399 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15400 #: opensuse-leap-16-1 opensuse-tumbleweed
15401 #, no-wrap
15402 msgid "\\& sub asin { atan2($_[0], sqrt(1 - $_[0] * $_[0])) }\n"
15403 msgstr ""
15404
15405 #. type: IX
15406 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15407 #: opensuse-leap-16-1 opensuse-tumbleweed
15408 #, no-wrap
15409 msgid "sleep EXPR"
15410 msgstr ""
15411
15412 #. type: IX
15413 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15414 #: opensuse-leap-16-1 opensuse-tumbleweed
15415 #, no-wrap
15416 msgid "sleep pause"
15417 msgstr ""
15418
15419 #. type: IX
15420 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15421 #: opensuse-leap-16-1 opensuse-tumbleweed
15422 #, no-wrap
15423 msgid "sleep"
15424 msgstr ""
15425
15426 #. type: Plain text
15427 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15428 #: opensuse-leap-16-1 opensuse-tumbleweed
15429 msgid ""
15430 "Causes the script to sleep for (integer) EXPR seconds, or forever if no "
15431 "argument is given. Returns the integer number of seconds actually slept."
15432 msgstr ""
15433
15434 #. type: Plain text
15435 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15436 #: opensuse-leap-16-1 opensuse-tumbleweed
15437 msgid ""
15438 "EXPR should be a positive integer. If called with a negative integer, "
15439 "\\&CW<\\*(C`sleep\\*(C'> does not sleep but instead emits a warning, sets "
15440 "\\&CW<$!> (CW<\\*(C`errno\\*(C'>), and returns zero."
15441 msgstr ""
15442
15443 #. type: Plain text
15444 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15445 #: opensuse-leap-16-1 opensuse-tumbleweed
15446 msgid "If called with a non-integer, the fractional part is ignored."
15447 msgstr ""
15448
15449 #. type: Plain text
15450 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15451 #: opensuse-leap-16-1 opensuse-tumbleweed
15452 msgid ""
15453 "\\&CW<\\*(C`sleep 0\\*(C'> is permitted, but a function call to the "
15454 "underlying platform implementation still occurs, with any side effects that "
15455 "may have. \\&CW<\\*(C`sleep 0\\*(C'> is therefore not exactly identical to "
15456 "not sleeping at all."
15457 msgstr ""
15458
15459 #. type: Plain text
15460 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15461 #: opensuse-leap-16-1 opensuse-tumbleweed
15462 msgid ""
15463 "May be interrupted if the process receives a signal such as "
15464 "CW<\\*(C`SIGALRM\\*(C'>."
15465 msgstr ""
15466
15467 #. type: Plain text
15468 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15469 #: opensuse-leap-16-1 opensuse-tumbleweed
15470 #, no-wrap
15471 msgid ""
15472 "\\& eval {\n"
15473 "\\& local $SIG{ALRM} = sub { die \"Alarm!\\en\" };\n"
15474 "\\& sleep;\n"
15475 "\\& };\n"
15476 "\\& die $@ unless $@ eq \"Alarm!\\en\";\n"
15477 msgstr ""
15478
15479 #. type: Plain text
15480 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15481 #: opensuse-leap-16-1 opensuse-tumbleweed
15482 msgid ""
15483 "You probably cannot mix CW<\\*(C`alarm\\*(C'> and \\&CW<\\*(C`sleep\\*(C'> "
15484 "calls, because CW<\\*(C`sleep\\*(C'> is often implemented using "
15485 "CW<\\*(C`alarm\\*(C'>."
15486 msgstr ""
15487
15488 #. type: Plain text
15489 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15490 #: opensuse-leap-16-1 opensuse-tumbleweed
15491 msgid ""
15492 "On some older systems, it may sleep up to a full second less than what you "
15493 "requested, depending on how it counts seconds. Most modern systems always "
15494 "sleep the full amount. They may appear to sleep longer than that, however, "
15495 "because your process might not be scheduled right away in a busy "
15496 "multitasking system."
15497 msgstr ""
15498
15499 #. type: Plain text
15500 #: debian-trixie debian-unstable
15501 msgid ""
15502 "For delays of finer granularity than one second, the Time::HiRes module "
15503 "(from CPAN, and starting from Perl 5.8 part of the standard distribution) "
15504 "provides CW<\\*(C`usleep\\*(C'>. You may also use Perl's four-argument "
15505 "version of CW<\\*(C`select\\*(C'> leaving the first three arguments "
15506 "undefined, or you might be able to use the \\&CW<\\*(C`syscall\\*(C'> "
15507 "interface to access B<setitimer>\\|(2) if your system supports it. See "
15508 "perlfaq8 for details."
15509 msgstr ""
15510
15511 #. type: Plain text
15512 #: debian-trixie debian-unstable
15513 msgid "See also the POSIX module's CW<\\*(C`pause\\*(C'> function."
15514 msgstr ""
15515
15516 #. type: IX
15517 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15518 #: opensuse-leap-16-1 opensuse-tumbleweed
15519 #, no-wrap
15520 msgid "socket SOCKET,DOMAIN,TYPE,PROTOCOL"
15521 msgstr ""
15522
15523 #. type: IX
15524 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15525 #: opensuse-leap-16-1 opensuse-tumbleweed
15526 #, no-wrap
15527 msgid "socket"
15528 msgstr ""
15529
15530 #. type: Plain text
15531 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15532 #: opensuse-leap-16-1 opensuse-tumbleweed
15533 msgid ""
15534 "Opens a socket of the specified kind and attaches it to filehandle SOCKET. "
15535 "DOMAIN, TYPE, and PROTOCOL are specified the same as for the syscall of the "
15536 "same name. You should CW<\\*(C`use Socket\\*(C'> first to get the proper "
15537 "definitions imported. See the examples in \"Sockets: Client/Server "
15538 "Communication\" in perlipc."
15539 msgstr ""
15540
15541 #. type: IX
15542 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15543 #: opensuse-leap-16-1 opensuse-tumbleweed
15544 #, no-wrap
15545 msgid "socketpair SOCKET1,SOCKET2,DOMAIN,TYPE,PROTOCOL"
15546 msgstr ""
15547
15548 #. type: IX
15549 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15550 #: opensuse-leap-16-1 opensuse-tumbleweed
15551 #, no-wrap
15552 msgid "socketpair"
15553 msgstr ""
15554
15555 #. type: Plain text
15556 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15557 #: opensuse-leap-16-1 opensuse-tumbleweed
15558 msgid ""
15559 "Creates an unnamed pair of sockets in the specified domain, of the specified "
15560 "type. DOMAIN, TYPE, and PROTOCOL are specified the same as for the syscall "
15561 "of the same name. If unimplemented, raises an exception. Returns true if "
15562 "successful."
15563 msgstr ""
15564
15565 #. type: Plain text
15566 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15567 #: opensuse-leap-16-1 opensuse-tumbleweed
15568 msgid ""
15569 "On systems that support a close-on-exec flag on files, the flag will be set "
15570 "for the newly opened file descriptors, as determined by the value of "
15571 "CW<$^F>. See \"$^F\" in perlvar."
15572 msgstr ""
15573
15574 #. type: Plain text
15575 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15576 #: opensuse-leap-16-1 opensuse-tumbleweed
15577 msgid ""
15578 "Some systems define CW<\\*(C`pipe\\*(C'> in terms of "
15579 "\\&CW<\\*(C`socketpair\\*(C'>, in which a call to CW<\\*(C`pipe($rdr, $wtr)"
15580 "\\*(C'> is essentially:"
15581 msgstr ""
15582
15583 #. type: Plain text
15584 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15585 #: opensuse-leap-16-1 opensuse-tumbleweed
15586 #, no-wrap
15587 msgid ""
15588 "\\& use Socket;\n"
15589 "\\& socketpair(my $rdr, my $wtr, AF_UNIX, SOCK_STREAM, PF_UNSPEC);\n"
15590 "\\& shutdown($rdr, 1); # no more writing for reader\n"
15591 "\\& shutdown($wtr, 0); # no more reading for writer\n"
15592 msgstr ""
15593
15594 #. type: Plain text
15595 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15596 #: opensuse-leap-16-1 opensuse-tumbleweed
15597 msgid ""
15598 "See perlipc for an example of socketpair use. Perl 5.8 and later will "
15599 "emulate socketpair using IP sockets to localhost if your system implements "
15600 "sockets but not socketpair."
15601 msgstr ""
15602
15603 #. type: Plain text
15604 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15605 #: opensuse-leap-16-1 opensuse-tumbleweed
15606 msgid "Portability issues: \"socketpair\" in perlport."
15607 msgstr ""
15608
15609 #. type: IX
15610 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15611 #: opensuse-leap-16-1 opensuse-tumbleweed
15612 #, no-wrap
15613 msgid "sort SUBNAME LIST"
15614 msgstr ""
15615
15616 #. type: IX
15617 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15618 #: opensuse-leap-16-1 opensuse-tumbleweed
15619 #, no-wrap
15620 msgid "sort"
15621 msgstr ""
15622
15623 #. type: IX
15624 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15625 #: opensuse-leap-16-1 opensuse-tumbleweed
15626 #, no-wrap
15627 msgid "sort BLOCK LIST"
15628 msgstr ""
15629
15630 #. type: IX
15631 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15632 #: opensuse-leap-16-1 opensuse-tumbleweed
15633 #, no-wrap
15634 msgid "sort LIST"
15635 msgstr ""
15636
15637 #. type: Plain text
15638 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15639 #: opensuse-leap-16-1 opensuse-tumbleweed
15640 msgid ""
15641 "In list context, this sorts the LIST and returns the sorted list value. In "
15642 "scalar context, the behaviour of CW<\\*(C`sort\\*(C'> is undefined."
15643 msgstr ""
15644
15645 #. type: Plain text
15646 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15647 #: opensuse-leap-16-1 opensuse-tumbleweed
15648 msgid ""
15649 "If SUBNAME or BLOCK is omitted, CW<\\*(C`sort\\*(C'>s in standard string "
15650 "comparison order. If SUBNAME is specified, it gives the name of a "
15651 "subroutine that returns a numeric value less than, equal to, or greater than "
15652 "CW<0>, depending on how the elements of the list are to be ordered. (The "
15653 "\\&CW<\\*(C`E<lt>=E<gt>\\*(C'> and CW<\\*(C`cmp\\*(C'> operators are "
15654 "extremely useful in such routines.) SUBNAME may be a scalar variable name "
15655 "(unsubscripted), in which case the value provides the name of (or a "
15656 "reference to) the actual subroutine to use. In place of a SUBNAME, you can "
15657 "provide a BLOCK as an anonymous, in-line sort subroutine."
15658 msgstr ""
15659
15660 #. type: Plain text
15661 #: debian-trixie debian-unstable
15662 msgid ""
15663 "If the subroutine's prototype is CW<\\*(C`($$)\\*(C'>, the elements to be "
15664 "compared are passed by reference in CW<@_>, as for a normal subroutine. "
15665 "This is slower than unprototyped subroutines, where the elements to be "
15666 "compared are passed into the subroutine as the package global variables "
15667 "\\&CW<$a> and CW<$b> (see example below)."
15668 msgstr ""
15669
15670 #. type: Plain text
15671 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15672 #: opensuse-leap-16-1 opensuse-tumbleweed
15673 msgid ""
15674 "If the subroutine is an XSUB, the elements to be compared are pushed on to "
15675 "the stack, the way arguments are usually passed to XSUBs. CW<$a> and "
15676 "\\&CW<$b> are not set."
15677 msgstr ""
15678
15679 #. type: Plain text
15680 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15681 #: opensuse-leap-16-1 opensuse-tumbleweed
15682 msgid ""
15683 "The values to be compared are always passed by reference and should not be "
15684 "modified."
15685 msgstr ""
15686
15687 #. type: Plain text
15688 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15689 #: opensuse-leap-16-1 opensuse-tumbleweed
15690 msgid ""
15691 "You also cannot exit out of the sort block or subroutine using any of the "
15692 "loop control operators described in perlsyn or with \\&CW<\\*(C`goto\\*(C'>."
15693 msgstr ""
15694
15695 #. type: Plain text
15696 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15697 #: opensuse-leap-16-1 opensuse-tumbleweed
15698 msgid ""
15699 "When CW<\\*(C`use locale\\*(C'> (but not CW<\\*(C`use locale "
15700 "\\*(Aq:not_characters\\*(Aq\\*(C'>) is in effect, CW<\\*(C`sort LIST\\*(C'> "
15701 "sorts LIST according to the current collation locale. See perllocale."
15702 msgstr ""
15703
15704 #. type: Plain text
15705 #: debian-trixie debian-unstable
15706 msgid ""
15707 "\\&CW<\\*(C`sort\\*(C'> returns aliases into the original list, much as a "
15708 "for loop's index variable aliases the list elements. That is, modifying an "
15709 "element of a list returned by CW<\\*(C`sort\\*(C'> (for example, in a "
15710 "CW<\\*(C`foreach\\*(C'>, CW<\\*(C`map\\*(C'> or \\&CW<\\*(C`grep\\*(C'>) "
15711 "actually modifies the element in the original list. This is usually "
15712 "something to be avoided when writing clear code."
15713 msgstr ""
15714
15715 #. type: Plain text
15716 #: debian-trixie debian-unstable
15717 msgid ""
15718 "Historically Perl has varied in whether sorting is stable by default. If "
15719 "stability matters, it can be controlled explicitly by using the sort pragma."
15720 msgstr ""
15721
15722 #. type: Plain text
15723 #: debian-trixie debian-unstable
15724 #, no-wrap
15725 msgid ""
15726 "\\& # sort lexically\n"
15727 "\\& my @articles = sort @files;\n"
15728 "\\&\n"
15729 "\\& # same thing, but with explicit sort routine\n"
15730 "\\& my @articles = sort {$a cmp $b} @files;\n"
15731 "\\&\n"
15732 "\\& # now case-insensitively\n"
15733 "\\& my @articles = sort {fc($a) cmp fc($b)} @files;\n"
15734 "\\&\n"
15735 "\\& # same thing in reversed order\n"
15736 "\\& my @articles = sort {$b cmp $a} @files;\n"
15737 "\\&\n"
15738 "\\& # sort numerically ascending\n"
15739 "\\& my @articles = sort {$a E<lt>=E<gt> $b} @files;\n"
15740 "\\&\n"
15741 "\\& # sort numerically descending\n"
15742 "\\& my @articles = sort {$b E<lt>=E<gt> $a} @files;\n"
15743 "\\&\n"
15744 "\\& # this sorts the %age hash by value instead of key\n"
15745 "\\& # using an in-line function\n"
15746 "\\& my @eldest = sort { $age{$b} E<lt>=E<gt> $age{$a} } keys %age;\n"
15747 "\\&\n"
15748 "\\& # sort using explicit subroutine name\n"
15749 "\\& sub byage {\n"
15750 "\\& $age{$a} E<lt>=E<gt> $age{$b}; # presuming numeric\n"
15751 "\\& }\n"
15752 "\\& my @sortedclass = sort byage @class;\n"
15753 "\\&\n"
15754 "\\& sub backwards { $b cmp $a }\n"
15755 "\\& my @harry = qw(dog cat x Cain Abel);\n"
15756 "\\& my @george = qw(gone chased yz Punished Axed);\n"
15757 "\\& print sort @harry;\n"
15758 "\\& # prints AbelCaincatdogx\n"
15759 "\\& print sort backwards @harry;\n"
15760 "\\& # prints xdogcatCainAbel\n"
15761 "\\& print sort @george, \\*(Aqto\\*(Aq, @harry;\n"
15762 "\\& # prints AbelAxedCainPunishedcatchaseddoggonetoxyz\n"
15763 "\\&\n"
15764 "\\& # inefficiently sort by descending numeric compare using\n"
15765 "\\& # the first integer after the first = sign, or the\n"
15766 "\\& # whole record case-insensitively otherwise\n"
15767 "\\&\n"
15768 "\\& my @new = sort {\n"
15769 "\\& ($b =~ /=(\\ed+)/)[0] E<lt>=E<gt> ($a =~ /=(\\ed+)/)[0]\n"
15770 "\\& ||\n"
15771 "\\& fc($a) cmp fc($b)\n"
15772 "\\& } @old;\n"
15773 "\\&\n"
15774 "\\& # same thing, but much more efficiently;\n"
15775 "\\& # we\\*(Aqll build auxiliary indices instead\n"
15776 "\\& # for speed\n"
15777 "\\& my (@nums, @caps);\n"
15778 "\\& for (@old) {\n"
15779 "\\& push @nums, ( /=(\\ed+)/ ? $1 : undef );\n"
15780 "\\& push @caps, fc($_);\n"
15781 "\\& }\n"
15782 "\\&\n"
15783 "\\& my @new = @old[ sort {\n"
15784 "\\& $nums[$b] E<lt>=E<gt> $nums[$a]\n"
15785 "\\& ||\n"
15786 "\\& $caps[$a] cmp $caps[$b]\n"
15787 "\\& } 0..$#old\n"
15788 "\\& ];\n"
15789 "\\&\n"
15790 "\\& # same thing, but without any temps\n"
15791 "\\& my @new = map { $_-E<gt>[0] }\n"
15792 "\\& sort { $b-E<gt>[1] E<lt>=E<gt> $a-E<gt>[1]\n"
15793 "\\& ||\n"
15794 "\\& $a-E<gt>[2] cmp $b-E<gt>[2]\n"
15795 "\\& } map { [$_, /=(\\ed+)/, fc($_)] } @old;\n"
15796 "\\&\n"
15797 "\\& # using a prototype allows you to use any comparison subroutine\n"
15798 "\\& # as a sort subroutine (including other package\\*(Aqs subroutines)\n"
15799 "\\& package Other;\n"
15800 "\\& sub backwards ($$) { $_[1] cmp $_[0]; } # $a and $b are\n"
15801 "\\& # not set here\n"
15802 "\\& package main;\n"
15803 "\\& my @new = sort Other::backwards @old;\n"
15804 "\\&\n"
15805 "\\& ## using a prototype with function signature\n"
15806 "\\& use feature \\*(Aqsignatures\\*(Aq;\n"
15807 "\\& sub function_with_signature :prototype($$) ($one, $two) {\n"
15808 "\\& return $one E<lt>=E<gt> $two\n"
15809 "\\& }\n"
15810 "\\&\n"
15811 "\\& my @new = sort function_with_signature @old;\n"
15812 "\\&\n"
15813 "\\& # guarantee stability\n"
15814 "\\& use sort \\*(Aqstable\\*(Aq;\n"
15815 "\\& my @new = sort { substr($a, 3, 5) cmp substr($b, 3, 5) } @old;\n"
15816 msgstr ""
15817
15818 #. type: Plain text
15819 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15820 #: opensuse-leap-16-1 opensuse-tumbleweed
15821 msgid ""
15822 "Warning: syntactical care is required when sorting the list returned from a "
15823 "function. If you want to sort the list returned by the function call "
15824 "\\&CW<find_records(@key)>, you can use:"
15825 msgstr ""
15826
15827 #. type: Plain text
15828 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15829 #: opensuse-leap-16-1 opensuse-tumbleweed
15830 #, no-wrap
15831 msgid ""
15832 "\\& my @contact = sort { $a cmp $b } find_records @key;\n"
15833 "\\& my @contact = sort +find_records(@key);\n"
15834 "\\& my @contact = sort &find_records(@key);\n"
15835 "\\& my @contact = sort(find_records(@key));\n"
15836 msgstr ""
15837
15838 #. type: Plain text
15839 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15840 #: opensuse-leap-16-1 opensuse-tumbleweed
15841 msgid ""
15842 "If instead you want to sort the array CW<@key> with the comparison routine "
15843 "\\&CW<find_records()> then you can use:"
15844 msgstr ""
15845
15846 #. type: Plain text
15847 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15848 #: opensuse-leap-16-1 opensuse-tumbleweed
15849 #, no-wrap
15850 msgid ""
15851 "\\& my @contact = sort { find_records() } @key;\n"
15852 "\\& my @contact = sort find_records(@key);\n"
15853 "\\& my @contact = sort(find_records @key);\n"
15854 "\\& my @contact = sort(find_records (@key));\n"
15855 msgstr ""
15856
15857 #. type: Plain text
15858 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15859 #: opensuse-leap-16-1 opensuse-tumbleweed
15860 msgid ""
15861 "\\&CW<$a> and CW<$b> are set as package globals in the package the B<sort()> "
15862 "is called from. That means CW<$main::a> and CW<$main::b> (or CW<$::a> and "
15863 "\\&CW<$::b>) in the CW<\\*(C`main\\*(C'> package, CW<$FooPack::a> and "
15864 "CW<$FooPack::b> in the \\&CW<\\*(C`FooPack\\*(C'> package, etc. If the sort "
15865 "block is in scope of a CW<\\*(C`my\\*(C'> or \\&CW<\\*(C`state\\*(C'> "
15866 "declaration of CW<$a> and/or CW<$b>, you I<must> spell out the full name of "
15867 "the variables in the sort block :"
15868 msgstr ""
15869
15870 #. type: Plain text
15871 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15872 #: opensuse-leap-16-1 opensuse-tumbleweed
15873 #, no-wrap
15874 msgid ""
15875 "\\& package main;\n"
15876 "\\& my $a = \"C\"; # DANGER, Will Robinson, DANGER !!!\n"
15877 "\\&\n"
15878 "\\& print sort { $a cmp $b } qw(A C E G B D F H);\n"
15879 "\\& # WRONG\n"
15880 "\\& sub badlexi { $a cmp $b }\n"
15881 "\\& print sort badlexi qw(A C E G B D F H);\n"
15882 "\\& # WRONG\n"
15883 "\\& # the above prints BACFEDGH or some other incorrect ordering\n"
15884 "\\&\n"
15885 "\\& print sort { $::a cmp $::b } qw(A C E G B D F H);\n"
15886 "\\& # OK\n"
15887 "\\& print sort { our $a cmp our $b } qw(A C E G B D F H);\n"
15888 "\\& # also OK\n"
15889 "\\& print sort { our ($a, $b); $a cmp $b } qw(A C E G B D F H);\n"
15890 "\\& # also OK\n"
15891 "\\& sub lexi { our $a cmp our $b }\n"
15892 "\\& print sort lexi qw(A C E G B D F H);\n"
15893 "\\& # also OK\n"
15894 "\\& # the above print ABCDEFGH\n"
15895 msgstr ""
15896
15897 #. type: Plain text
15898 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15899 #: opensuse-leap-16-1 opensuse-tumbleweed
15900 msgid ""
15901 "With proper care you may mix package and my (or state) CW<$a> and/or CW<$b>:"
15902 msgstr ""
15903
15904 #. type: Plain text
15905 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15906 #: opensuse-leap-16-1 opensuse-tumbleweed
15907 #, no-wrap
15908 msgid ""
15909 "\\& my $a = {\n"
15910 "\\& tiny =E<gt> -2,\n"
15911 "\\& small =E<gt> -1,\n"
15912 "\\& normal =E<gt> 0,\n"
15913 "\\& big =E<gt> 1,\n"
15914 "\\& huge =E<gt> 2\n"
15915 "\\& };\n"
15916 "\\&\n"
15917 "\\& say sort { $a-E<gt>{our $a} E<lt>=E<gt> $a-E<gt>{our $b} }\n"
15918 "\\& qw{ huge normal tiny small big};\n"
15919 "\\&\n"
15920 "\\& # prints tinysmallnormalbighuge\n"
15921 msgstr ""
15922
15923 #. type: Plain text
15924 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15925 #: opensuse-leap-16-1 opensuse-tumbleweed
15926 msgid ""
15927 "\\&CW<$a> and CW<$b> are implicitly local to the B<sort()> execution and "
15928 "regain their former values upon completing the sort."
15929 msgstr ""
15930
15931 #. type: Plain text
15932 #: debian-trixie debian-unstable
15933 msgid ""
15934 "Sort subroutines written using CW<$a> and CW<$b> are bound to their calling "
15935 "package. It is possible, but of limited interest, to define them in a "
15936 "different package, since the subroutine must still refer to the calling "
15937 "package's CW<$a> and CW<$b> :"
15938 msgstr ""
15939
15940 #. type: Plain text
15941 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15942 #: opensuse-leap-16-1 opensuse-tumbleweed
15943 #, no-wrap
15944 msgid ""
15945 "\\& package Foo;\n"
15946 "\\& sub lexi { $Bar::a cmp $Bar::b }\n"
15947 "\\& package Bar;\n"
15948 "\\& ... sort Foo::lexi ...\n"
15949 msgstr ""
15950
15951 #. type: Plain text
15952 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15953 #: opensuse-leap-16-1 opensuse-tumbleweed
15954 msgid "Use the prototyped versions (see above) for a more generic alternative."
15955 msgstr ""
15956
15957 #. type: Plain text
15958 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15959 #: opensuse-leap-16-1 opensuse-tumbleweed
15960 msgid ""
15961 "The comparison function is required to behave. If it returns inconsistent "
15962 "results (sometimes saying CW<$x[1]> is less than CW<$x[2]> and sometimes "
15963 "saying the opposite, for example) the results are not well-defined."
15964 msgstr ""
15965
15966 #. type: Plain text
15967 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15968 #: opensuse-leap-16-1 opensuse-tumbleweed
15969 msgid ""
15970 "Because CW<\\*(C`E<lt>=E<gt>\\*(C'> returns CW<\\*(C`undef\\*(C'> when "
15971 "either operand is CW<\\*(C`NaN\\*(C'> (not-a-number), be careful when "
15972 "sorting with a comparison function like CW<\\*(C`$a E<lt>=E<gt> $b\\*(C'> "
15973 "any lists that might contain a \\&CW<\\*(C`NaN\\*(C'>. The following "
15974 "example takes advantage that CW<\\*(C`NaN != NaN\\*(C'> to eliminate any "
15975 "CW<\\*(C`NaN\\*(C'>s from the input list."
15976 msgstr ""
15977
15978 #. type: Plain text
15979 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15980 #: opensuse-leap-16-1 opensuse-tumbleweed
15981 #, no-wrap
15982 msgid "\\& my @result = sort { $a E<lt>=E<gt> $b } grep { $_ == $_ } @input;\n"
15983 msgstr ""
15984
15985 #. type: Plain text
15986 #: debian-trixie debian-unstable
15987 msgid ""
15988 "In this version of I<perl>, the CW<\\*(C`sort\\*(C'> function is implemented "
15989 "via the mergesort algorithm."
15990 msgstr ""
15991
15992 #. type: IX
15993 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
15994 #: opensuse-leap-16-1 opensuse-tumbleweed
15995 #, no-wrap
15996 msgid "splice ARRAY,OFFSET,LENGTH,LIST"
15997 msgstr ""
15998
15999 #. type: IX
16000 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16001 #: opensuse-leap-16-1 opensuse-tumbleweed
16002 #, no-wrap
16003 msgid "splice"
16004 msgstr ""
16005
16006 #. type: IX
16007 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16008 #: opensuse-leap-16-1 opensuse-tumbleweed
16009 #, no-wrap
16010 msgid "splice ARRAY,OFFSET,LENGTH"
16011 msgstr ""
16012
16013 #. type: IX
16014 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16015 #: opensuse-leap-16-1 opensuse-tumbleweed
16016 #, no-wrap
16017 msgid "splice ARRAY,OFFSET"
16018 msgstr ""
16019
16020 #. type: IX
16021 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16022 #: opensuse-leap-16-1 opensuse-tumbleweed
16023 #, no-wrap
16024 msgid "splice ARRAY"
16025 msgstr ""
16026
16027 #. type: Plain text
16028 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16029 #: opensuse-leap-16-1 opensuse-tumbleweed
16030 msgid ""
16031 "Removes the elements designated by OFFSET and LENGTH from an array, and "
16032 "replaces them with the elements of LIST, if any. In list context, returns "
16033 "the elements removed from the array. In scalar context, returns the last "
16034 "element removed, or CW<\\*(C`undef\\*(C'> if no elements are removed. The "
16035 "array grows or shrinks as necessary. If OFFSET is negative then it starts "
16036 "that far from the end of the array. If LENGTH is omitted, removes "
16037 "everything from OFFSET onward. If LENGTH is negative, removes the elements "
16038 "from OFFSET onward except for -LENGTH elements at the end of the array. If "
16039 "both OFFSET and LENGTH are omitted, removes everything. If OFFSET is past "
16040 "the end of the array and a LENGTH was provided, Perl issues a warning, and "
16041 "splices at the end of the array."
16042 msgstr ""
16043
16044 #. type: Plain text
16045 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16046 #: opensuse-leap-16-1 opensuse-tumbleweed
16047 msgid ""
16048 "The following equivalences hold (assuming CW<\\*(C`$#a E<gt>= $i\\*(C'> )"
16049 msgstr ""
16050
16051 #. type: Plain text
16052 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16053 #: opensuse-leap-16-1 opensuse-tumbleweed
16054 #, no-wrap
16055 msgid ""
16056 "\\& push(@a,$x,$y) splice(@a,@a,0,$x,$y)\n"
16057 "\\& pop(@a) splice(@a,-1)\n"
16058 "\\& shift(@a) splice(@a,0,1)\n"
16059 "\\& unshift(@a,$x,$y) splice(@a,0,0,$x,$y)\n"
16060 "\\& $a[$i] = $y splice(@a,$i,1,$y)\n"
16061 msgstr ""
16062
16063 #. type: Plain text
16064 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16065 #: opensuse-leap-16-1 opensuse-tumbleweed
16066 msgid ""
16067 "\\&CW<\\*(C`splice\\*(C'> can be used, for example, to implement n-ary queue "
16068 "processing:"
16069 msgstr ""
16070
16071 #. type: Plain text
16072 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16073 #: opensuse-leap-16-1 opensuse-tumbleweed
16074 #, no-wrap
16075 msgid ""
16076 "\\& sub nary_print {\n"
16077 "\\& my $n = shift;\n"
16078 "\\& while (my @next_n = splice @_, 0, $n) {\n"
16079 "\\& say join q{ -- }, @next_n;\n"
16080 "\\& }\n"
16081 "\\& }\n"
16082 "\\&\n"
16083 "\\& nary_print(3, qw(a b c d e f g h));\n"
16084 "\\& # prints:\n"
16085 "\\& # a -- b -- c\n"
16086 "\\& # d -- e -- f\n"
16087 "\\& # g -- h\n"
16088 msgstr ""
16089
16090 #. type: Plain text
16091 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16092 #: opensuse-leap-16-1 opensuse-tumbleweed
16093 msgid ""
16094 "Starting with Perl 5.14, an experimental feature allowed "
16095 "\\&CW<\\*(C`splice\\*(C'> to take a scalar expression. This experiment has "
16096 "been deemed unsuccessful, and was removed as of Perl 5.24."
16097 msgstr ""
16098
16099 #. type: IX
16100 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16101 #: opensuse-leap-16-1 opensuse-tumbleweed
16102 #, no-wrap
16103 msgid "split /PATTERN/,EXPR,LIMIT"
16104 msgstr ""
16105
16106 #. type: IX
16107 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16108 #: opensuse-leap-16-1 opensuse-tumbleweed
16109 #, no-wrap
16110 msgid "split"
16111 msgstr ""
16112
16113 #. type: IX
16114 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16115 #: opensuse-leap-16-1 opensuse-tumbleweed
16116 #, no-wrap
16117 msgid "split /PATTERN/,EXPR"
16118 msgstr ""
16119
16120 #. type: IX
16121 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16122 #: opensuse-leap-16-1 opensuse-tumbleweed
16123 #, no-wrap
16124 msgid "split /PATTERN/"
16125 msgstr ""
16126
16127 #. type: Plain text
16128 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16129 #: opensuse-leap-16-1 opensuse-tumbleweed
16130 msgid ""
16131 "Splits the string EXPR into a list of strings and returns the list in list "
16132 "context, or the size of the list in scalar context. (Prior to Perl 5.11, it "
16133 "also overwrote CW<@_> with the list in void and scalar context. If you "
16134 "target old perls, beware.)"
16135 msgstr ""
16136
16137 #. type: Plain text
16138 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16139 #: opensuse-leap-16-1 opensuse-tumbleweed
16140 msgid "If only PATTERN is given, EXPR defaults to CW<$_>."
16141 msgstr ""
16142
16143 #. type: Plain text
16144 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16145 #: opensuse-leap-16-1 opensuse-tumbleweed
16146 msgid ""
16147 "Anything in EXPR that matches PATTERN is taken to be a separator that "
16148 "separates the EXPR into substrings (called \"I<fields>\") that do B<not> "
16149 "include the separator. Note that a separator may be longer than one "
16150 "character or even have no characters at all (the empty string, which is a "
16151 "zero-width match)."
16152 msgstr ""
16153
16154 #. type: Plain text
16155 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16156 #: opensuse-leap-16-1 opensuse-tumbleweed
16157 msgid ""
16158 "The PATTERN need not be constant; an expression may be used to specify a "
16159 "pattern that varies at runtime."
16160 msgstr ""
16161
16162 #. type: Plain text
16163 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16164 #: opensuse-leap-16-1 opensuse-tumbleweed
16165 msgid ""
16166 "If PATTERN matches the empty string, the EXPR is split at the match position "
16167 "(between characters). As an example, the following:"
16168 msgstr ""
16169
16170 #. type: Plain text
16171 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16172 #: opensuse-leap-16-1 opensuse-tumbleweed
16173 #, no-wrap
16174 msgid "\\& my @x = split(/b/, \"abc\"); # (\"a\", \"c\")\n"
16175 msgstr ""
16176
16177 #. type: Plain text
16178 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16179 #: opensuse-leap-16-1 opensuse-tumbleweed
16180 msgid ""
16181 "uses the CW<\\*(C`b\\*(C'> in CW<\\*(Aqabc\\*(Aq> as a separator to produce "
16182 "the list (\"a\", \"c\"). However, this:"
16183 msgstr ""
16184
16185 #. type: Plain text
16186 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16187 #: opensuse-leap-16-1 opensuse-tumbleweed
16188 #, no-wrap
16189 msgid "\\& my @x = split(//, \"abc\"); # (\"a\", \"b\", \"c\")\n"
16190 msgstr ""
16191
16192 #. type: Plain text
16193 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16194 #: opensuse-leap-16-1 opensuse-tumbleweed
16195 msgid ""
16196 "uses empty string matches as separators; thus, the empty string may be used "
16197 "to split EXPR into a list of its component characters."
16198 msgstr ""
16199
16200 #. type: Plain text
16201 #: debian-trixie debian-unstable
16202 msgid ""
16203 "As a special case for CW<\\*(C`split\\*(C'>, the empty pattern given in "
16204 "match operator syntax (CW<\\*(C`//\\*(C'>) specifically matches the empty "
16205 "string, which is contrary to its usual interpretation as the last successful "
16206 "match."
16207 msgstr ""
16208
16209 #. type: Plain text
16210 #: debian-trixie debian-unstable
16211 msgid ""
16212 "If PATTERN is CW<\\*(C`/^/\\*(C'>, then it is treated as if it used the "
16213 "multiline modifier (CW<\\*(C`/^/m\\*(C'>), since it isn't much use otherwise."
16214 msgstr ""
16215
16216 #. type: Plain text
16217 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16218 #: opensuse-leap-16-1 opensuse-tumbleweed
16219 msgid ""
16220 "\\&CW<\\*(C`/m\\*(C'> and any of the other pattern modifiers valid for "
16221 "CW<\\*(C`qr\\*(C'> (summarized in \"qr/STRING/msixpodualn\" in perlop) may "
16222 "be specified explicitly."
16223 msgstr ""
16224
16225 #. type: Plain text
16226 #: debian-trixie debian-unstable
16227 msgid ""
16228 "As another special case, \\&CW<\\*(C`split\\*(C'> emulates the default "
16229 "behavior of the command line tool B<awk> when the PATTERN is either omitted "
16230 "or a string composed of a single space character (such as CW<\\*(Aq\\ "
16231 "\\*(Aq> or \\&CW<\"\\ex20\">, but not e.g. CW<\\*(C`/\\ /\\*(C'>). In this "
16232 "case, any leading whitespace in EXPR is removed before splitting occurs, and "
16233 "the PATTERN is instead treated as if it were CW<\\*(C`/\\es+/\\*(C'>; in "
16234 "particular, this means that \\&I<any> contiguous whitespace (not just a "
16235 "single space character) is used as a separator."
16236 msgstr ""
16237
16238 #. type: Plain text
16239 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16240 #: opensuse-leap-16-1 opensuse-tumbleweed
16241 #, no-wrap
16242 msgid ""
16243 "\\& my @x = split(\" \", \" Quick brown fox\\en\");\n"
16244 "\\& # (\"Quick\", \"brown\", \"fox\")\n"
16245 "\\&\n"
16246 "\\& my @x = split(\" \", \"RED\\etGREEN\\etBLUE\");\n"
16247 "\\& # (\"RED\", \"GREEN\", \"BLUE\")\n"
16248 msgstr ""
16249
16250 #. type: Plain text
16251 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16252 #: opensuse-leap-16-1 opensuse-tumbleweed
16253 msgid ""
16254 "Using split in this fashion is very similar to how \\&CW<\\*(C`qw//\\*(C'> "
16255 "works."
16256 msgstr ""
16257
16258 #. type: Plain text
16259 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16260 #: opensuse-leap-16-1 opensuse-tumbleweed
16261 msgid ""
16262 "However, this special treatment can be avoided by specifying the pattern "
16263 "CW<\\*(C`/\\ /\\*(C'> instead of the string CW<\"\\ \">, thereby allowing "
16264 "only a single space character to be a separator. In earlier Perls this "
16265 "special case was restricted to the use of a plain CW<\"\\ \"> as the pattern "
16266 "argument to split; in Perl 5.18.0 and later this special case is triggered "
16267 "by any expression which evaluates to the simple string CW<\"\\ \">."
16268 msgstr ""
16269
16270 #. type: Plain text
16271 #: debian-trixie debian-unstable
16272 msgid ""
16273 "As of Perl 5.28, this special-cased whitespace splitting works as expected "
16274 "in the scope of CW<\"use\\ feature\\ \\*(Aqunicode_strings\\*(Aq\">. In "
16275 "previous versions, and outside the scope of that feature, it exhibits \"The "
16276 "\"Unicode Bug\"\" in perlunicode: characters that are whitespace according "
16277 "to Unicode rules but not according to ASCII rules can be treated as part of "
16278 "fields rather than as field separators, depending on the string's internal "
16279 "encoding."
16280 msgstr ""
16281
16282 #. type: Plain text
16283 #: debian-trixie debian-unstable
16284 msgid ""
16285 "As of Perl 5.39.9 the CW<\\*(C`/x\\*(C'> default modifier does NOT affect "
16286 "\\&CW<\\*(C`split STRING\\*(C'> but does affect CW<\\*(C`split "
16287 "PATTERN\\*(C'>, this means that \\&CW<\\*(C`split \" \"\\*(C'> will produces "
16288 "the expected I<awk> emulation regardless as to whether it is used in the "
16289 "scope of a CW<\\*(C`use re \"/x\"\\*(C'> statement. If you want to split by "
16290 "spaces under CW<\\*(C`use re \"/x\"\\*(C'> you must do something like "
16291 "\\&CW<\\*(C`split /(?-x: )/\\*(C'> or CW<\\*(C`split /\\ex{20}/\\*(C'> "
16292 "instead of CW<\\*(C`split / /\\*(C'>."
16293 msgstr ""
16294
16295 #. type: Plain text
16296 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16297 #: opensuse-leap-16-1 opensuse-tumbleweed
16298 msgid ""
16299 "If omitted, PATTERN defaults to a single space, CW<\"\\ \">, triggering the "
16300 "previously described I<awk> emulation."
16301 msgstr ""
16302
16303 #. type: Plain text
16304 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16305 #: opensuse-leap-16-1 opensuse-tumbleweed
16306 msgid ""
16307 "If LIMIT is specified and positive, it represents the maximum number of "
16308 "fields into which the EXPR may be split; in other words, LIMIT is one "
16309 "greater than the maximum number of times EXPR may be split. Thus, the LIMIT "
16310 "value CW<1> means that EXPR may be split a maximum of zero times, producing "
16311 "a maximum of one field (namely, the entire value of EXPR). For instance:"
16312 msgstr ""
16313
16314 #. type: Plain text
16315 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16316 #: opensuse-leap-16-1 opensuse-tumbleweed
16317 #, no-wrap
16318 msgid ""
16319 "\\& my @x = split(/,/, \"a,b,c\", 1); # (\"a,b,c\")\n"
16320 "\\& my @x = split(/,/, \"a,b,c\", 2); # (\"a\", \"b,c\")\n"
16321 "\\& my @x = split(/,/, \"a,b,c\", 3); # (\"a\", \"b\", \"c\")\n"
16322 "\\& my @x = split(/,/, \"a,b,c\", 4); # (\"a\", \"b\", \"c\")\n"
16323 msgstr ""
16324
16325 #. type: Plain text
16326 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16327 #: opensuse-leap-16-1 opensuse-tumbleweed
16328 msgid ""
16329 "If LIMIT is negative, it is treated as if it were instead arbitrarily large; "
16330 "as many fields as possible are produced."
16331 msgstr ""
16332
16333 #. type: Plain text
16334 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16335 #: opensuse-leap-16-1 opensuse-tumbleweed
16336 msgid ""
16337 "If LIMIT is omitted (or, equivalently, zero), then it is usually treated as "
16338 "if it were instead negative but with the exception that trailing empty "
16339 "fields are stripped (empty leading fields are always preserved); if all "
16340 "fields are empty, then all fields are considered to be trailing (and are "
16341 "thus stripped in this case). Thus, the following:"
16342 msgstr ""
16343
16344 #. type: Plain text
16345 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16346 #: opensuse-leap-16-1 opensuse-tumbleweed
16347 #, no-wrap
16348 msgid "\\& my @x = split(/,/, \"a,b,c,,,\"); # (\"a\", \"b\", \"c\")\n"
16349 msgstr ""
16350
16351 #. type: Plain text
16352 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16353 #: opensuse-leap-16-1 opensuse-tumbleweed
16354 msgid "produces only a three element list."
16355 msgstr ""
16356
16357 #. type: Plain text
16358 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16359 #: opensuse-leap-16-1 opensuse-tumbleweed
16360 #, no-wrap
16361 msgid "\\& my @x = split(/,/, \"a,b,c,,,\", -1); # (\"a\", \"b\", \"c\", \"\", \"\", \"\")\n"
16362 msgstr ""
16363
16364 #. type: Plain text
16365 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16366 #: opensuse-leap-16-1 opensuse-tumbleweed
16367 msgid "produces a six element list."
16368 msgstr ""
16369
16370 #. type: Plain text
16371 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16372 #: opensuse-leap-16-1 opensuse-tumbleweed
16373 msgid ""
16374 "In time-critical applications, it is worthwhile to avoid splitting into more "
16375 "fields than necessary. Thus, when assigning to a list, if LIMIT is omitted "
16376 "(or zero), then LIMIT is treated as though it were one larger than the "
16377 "number of variables in the list; for the following, LIMIT is implicitly 3:"
16378 msgstr ""
16379
16380 #. type: Plain text
16381 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16382 #: opensuse-leap-16-1 opensuse-tumbleweed
16383 #, no-wrap
16384 msgid "\\& my ($login, $passwd) = split(/:/);\n"
16385 msgstr ""
16386
16387 #. type: Plain text
16388 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16389 #: opensuse-leap-16-1 opensuse-tumbleweed
16390 msgid ""
16391 "Note that splitting an EXPR that evaluates to the empty string always "
16392 "produces zero fields, regardless of the LIMIT specified."
16393 msgstr ""
16394
16395 #. type: Plain text
16396 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16397 #: opensuse-leap-16-1 opensuse-tumbleweed
16398 msgid ""
16399 "An empty leading field is produced when there is a positive-width match at "
16400 "the beginning of EXPR. For instance:"
16401 msgstr ""
16402
16403 #. type: Plain text
16404 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16405 #: opensuse-leap-16-1 opensuse-tumbleweed
16406 #, no-wrap
16407 msgid "\\& my @x = split(/ /, \" abc\"); # (\"\", \"abc\")\n"
16408 msgstr ""
16409
16410 #. type: Plain text
16411 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16412 #: opensuse-leap-16-1 opensuse-tumbleweed
16413 msgid ""
16414 "splits into two elements. However, a zero-width match at the beginning of "
16415 "EXPR never produces an empty field, so that:"
16416 msgstr ""
16417
16418 #. type: Plain text
16419 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16420 #: opensuse-leap-16-1 opensuse-tumbleweed
16421 #, no-wrap
16422 msgid "\\& my @x = split(//, \" abc\"); # (\" \", \"a\", \"b\", \"c\")\n"
16423 msgstr ""
16424
16425 #. type: Plain text
16426 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16427 #: opensuse-leap-16-1 opensuse-tumbleweed
16428 msgid "splits into four elements instead of five."
16429 msgstr ""
16430
16431 #. type: Plain text
16432 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16433 #: opensuse-leap-16-1 opensuse-tumbleweed
16434 msgid ""
16435 "An empty trailing field, on the other hand, is produced when there is a "
16436 "match at the end of EXPR, regardless of the length of the match (of course, "
16437 "unless a non-zero LIMIT is given explicitly, such fields are removed, as in "
16438 "the last example). Thus:"
16439 msgstr ""
16440
16441 #. type: Plain text
16442 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16443 #: opensuse-leap-16-1 opensuse-tumbleweed
16444 #, no-wrap
16445 msgid "\\& my @x = split(//, \" abc\", -1); # (\" \", \"a\", \"b\", \"c\", \"\")\n"
16446 msgstr ""
16447
16448 #. type: Plain text
16449 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16450 #: opensuse-leap-16-1 opensuse-tumbleweed
16451 msgid ""
16452 "If the PATTERN contains capturing groups, then for each separator, an "
16453 "additional field is produced for each substring captured by a group (in the "
16454 "order in which the groups are specified, as per backreferences); if any "
16455 "group does not match, then it captures the CW<\\*(C`undef\\*(C'> value "
16456 "instead of a substring. Also, note that any such additional field is "
16457 "produced whenever there is a separator (that is, whenever a split occurs), "
16458 "and such an additional field does B<not> count towards the LIMIT. Consider "
16459 "the following expressions evaluated in list context (each returned list is "
16460 "provided in the associated comment):"
16461 msgstr ""
16462
16463 #. type: Plain text
16464 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16465 #: opensuse-leap-16-1 opensuse-tumbleweed
16466 #, no-wrap
16467 msgid ""
16468 "\\& my @x = split(/-|,/ , \"1-10,20\", 3);\n"
16469 "\\& # (\"1\", \"10\", \"20\")\n"
16470 "\\&\n"
16471 "\\& my @x = split(/(-|,)/ , \"1-10,20\", 3);\n"
16472 "\\& # (\"1\", \"-\", \"10\", \",\", \"20\")\n"
16473 "\\&\n"
16474 "\\& my @x = split(/-|(,)/ , \"1-10,20\", 3);\n"
16475 "\\& # (\"1\", undef, \"10\", \",\", \"20\")\n"
16476 "\\&\n"
16477 "\\& my @x = split(/(-)|,/ , \"1-10,20\", 3);\n"
16478 "\\& # (\"1\", \"-\", \"10\", undef, \"20\")\n"
16479 "\\&\n"
16480 "\\& my @x = split(/(-)|(,)/, \"1-10,20\", 3);\n"
16481 "\\& # (\"1\", \"-\", undef, \"10\", undef, \",\", \"20\")\n"
16482 msgstr ""
16483
16484 #. type: IX
16485 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16486 #: opensuse-leap-16-1 opensuse-tumbleweed
16487 #, no-wrap
16488 msgid "sprintf FORMAT, LIST"
16489 msgstr ""
16490
16491 #. type: IX
16492 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16493 #: opensuse-leap-16-1 opensuse-tumbleweed
16494 #, no-wrap
16495 msgid "sprintf"
16496 msgstr ""
16497
16498 #. type: Plain text
16499 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16500 #: opensuse-leap-16-1 opensuse-tumbleweed
16501 msgid ""
16502 "Returns a string formatted by the usual \\&CW<\\*(C`printf\\*(C'> "
16503 "conventions of the C library function CW<\\*(C`sprintf\\*(C'>. See below "
16504 "for more details and see B<sprintf>\\|(3) or B<printf>\\|(3) on your system "
16505 "for an explanation of the general principles."
16506 msgstr ""
16507
16508 #. type: Plain text
16509 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16510 #: opensuse-leap-16-1 opensuse-tumbleweed
16511 msgid "For example:"
16512 msgstr ""
16513
16514 #. type: Plain text
16515 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16516 #: opensuse-leap-16-1 opensuse-tumbleweed
16517 #, no-wrap
16518 msgid ""
16519 "\\& # Format number with up to 8 leading zeroes\n"
16520 "\\& my $result = sprintf(\"%08d\", $number);\n"
16521 "\\&\n"
16522 "\\& # Round number to 3 digits after decimal point\n"
16523 "\\& my $rounded = sprintf(\"%.3f\", $number);\n"
16524 msgstr ""
16525
16526 #. type: Plain text
16527 #: debian-trixie debian-unstable
16528 msgid ""
16529 "Perl does its own CW<\\*(C`sprintf\\*(C'> formatting: it emulates the C "
16530 "function B<sprintf>\\|(3), but doesn't use it except for floating-point "
16531 "numbers, and even then only standard modifiers are allowed. Non-standard "
16532 "extensions in your local B<sprintf>\\|(3) are therefore unavailable from "
16533 "Perl."
16534 msgstr ""
16535
16536 #. type: Plain text
16537 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16538 #: opensuse-leap-16-1 opensuse-tumbleweed
16539 msgid ""
16540 "Unlike CW<\\*(C`printf\\*(C'>, \\&CW<\\*(C`sprintf\\*(C'> does not do what "
16541 "you probably mean when you pass it an array as your first argument. The "
16542 "array is given scalar context, and instead of using the 0th element of the "
16543 "array as the format, Perl will use the count of elements in the array as the "
16544 "format, which is almost never useful."
16545 msgstr ""
16546
16547 #. type: Plain text
16548 #: debian-trixie debian-unstable
16549 msgid ""
16550 "Perl's CW<\\*(C`sprintf\\*(C'> permits the following universally-known "
16551 "conversions:"
16552 msgstr ""
16553
16554 #. type: Plain text
16555 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16556 #: opensuse-leap-16-1 opensuse-tumbleweed
16557 #, no-wrap
16558 msgid ""
16559 "\\& %% a percent sign\n"
16560 "\\& %c a character with the given number\n"
16561 "\\& %s a string\n"
16562 "\\& %d a signed integer, in decimal\n"
16563 "\\& %u an unsigned integer, in decimal\n"
16564 "\\& %o an unsigned integer, in octal\n"
16565 "\\& %x an unsigned integer, in hexadecimal\n"
16566 "\\& %e a floating-point number, in scientific notation\n"
16567 "\\& %f a floating-point number, in fixed decimal notation\n"
16568 "\\& %g a floating-point number, in %e or %f notation\n"
16569 msgstr ""
16570
16571 #. type: Plain text
16572 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16573 #: opensuse-leap-16-1 opensuse-tumbleweed
16574 msgid "In addition, Perl permits the following widely-supported conversions:"
16575 msgstr ""
16576
16577 #. type: Plain text
16578 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16579 #: opensuse-leap-16-1 opensuse-tumbleweed
16580 #, no-wrap
16581 msgid ""
16582 "\\& %X like %x, but using upper-case letters\n"
16583 "\\& %E like %e, but using an upper-case \"E\"\n"
16584 "\\& %G like %g, but with an upper-case \"E\" (if applicable)\n"
16585 "\\& %b an unsigned integer, in binary\n"
16586 "\\& %B like %b, but using an upper-case \"B\" with the # flag\n"
16587 "\\& %p a pointer (outputs the Perl value\\*(Aqs address in hexadecimal)\n"
16588 "\\& %n special: *stores* the number of characters output so far\n"
16589 "\\& into the next argument in the parameter list\n"
16590 "\\& %a hexadecimal floating point\n"
16591 "\\& %A like %a, but using upper-case letters\n"
16592 "\\& %i a synonym for %d\n"
16593 "\\& %D a synonym for %ld\n"
16594 "\\& %U a synonym for %lu\n"
16595 "\\& %O a synonym for %lo\n"
16596 "\\& %F a synonym for %f\n"
16597 msgstr ""
16598
16599 #. type: Plain text
16600 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16601 #: opensuse-leap-16-1 opensuse-tumbleweed
16602 msgid ""
16603 "Note that the number of exponent digits in the scientific notation produced "
16604 "by CW<%e>, CW<%E>, CW<%g> and CW<%G> for numbers with the modulus of the "
16605 "exponent less than 100 is system-dependent: it may be three or less (zero-"
16606 "padded as necessary). In other words, 1.23 times ten to the 99th may be "
16607 "either \"1.23e99\" or \"1.23e099\". Similarly for CW<%a> and CW<%A>: the "
16608 "exponent or the hexadecimal digits may float: especially the \"long "
16609 "doubles\" Perl configuration option may cause surprises."
16610 msgstr ""
16611
16612 #. type: Plain text
16613 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16614 #: opensuse-leap-16-1 opensuse-tumbleweed
16615 msgid ""
16616 "Between the CW<\\*(C`%\\*(C'> and the format letter, you may specify several "
16617 "additional attributes controlling the interpretation of the format. In "
16618 "order, these are:"
16619 msgstr ""
16620
16621 #. type: IX
16622 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16623 #: opensuse-leap-16-1 opensuse-tumbleweed
16624 #, no-wrap
16625 msgid "format parameter index"
16626 msgstr ""
16627
16628 #. type: Plain text
16629 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16630 #: opensuse-leap-16-1 opensuse-tumbleweed
16631 msgid ""
16632 "An explicit format parameter index, such as CW<\\*(C`2$\\*(C'>. By default "
16633 "sprintf will format the next unused argument in the list, but this allows "
16634 "you to take the arguments out of order:"
16635 msgstr ""
16636
16637 #. type: Plain text
16638 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16639 #: opensuse-leap-16-1 opensuse-tumbleweed
16640 #, no-wrap
16641 msgid ""
16642 "\\& printf \\*(Aq%2$d %1$d\\*(Aq, 12, 34; # prints \"34 12\"\n"
16643 "\\& printf \\*(Aq%3$d %d %1$d\\*(Aq, 1, 2, 3; # prints \"3 1 1\"\n"
16644 msgstr ""
16645
16646 #. type: IX
16647 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16648 #: opensuse-leap-16-1 opensuse-tumbleweed
16649 #, no-wrap
16650 msgid "flags"
16651 msgstr ""
16652
16653 #. type: Plain text
16654 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16655 #: opensuse-leap-16-1 opensuse-tumbleweed
16656 msgid "one or more of:"
16657 msgstr ""
16658
16659 #. type: Plain text
16660 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16661 #: opensuse-leap-16-1 opensuse-tumbleweed
16662 #, no-wrap
16663 msgid ""
16664 "\\& space prefix non-negative number with a space\n"
16665 "\\& + prefix non-negative number with a plus sign\n"
16666 "\\& - left-justify within the field\n"
16667 "\\& 0 use zeros, not spaces, to right-justify\n"
16668 "\\& # ensure the leading \"0\" for any octal,\n"
16669 "\\& prefix non-zero hexadecimal with \"0x\" or \"0X\",\n"
16670 "\\& prefix non-zero binary with \"0b\" or \"0B\"\n"
16671 msgstr ""
16672
16673 #. type: Plain text
16674 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16675 #: opensuse-leap-16-1 opensuse-tumbleweed
16676 #, no-wrap
16677 msgid ""
16678 "\\& printf \\*(AqE<lt>% dE<gt>\\*(Aq, 12; # prints \"E<lt> 12E<gt>\"\n"
16679 "\\& printf \\*(AqE<lt>% dE<gt>\\*(Aq, 0; # prints \"E<lt> 0E<gt>\"\n"
16680 "\\& printf \\*(AqE<lt>% dE<gt>\\*(Aq, -12; # prints \"E<lt>-12E<gt>\"\n"
16681 "\\& printf \\*(AqE<lt>%+dE<gt>\\*(Aq, 12; # prints \"E<lt>+12E<gt>\"\n"
16682 "\\& printf \\*(AqE<lt>%+dE<gt>\\*(Aq, 0; # prints \"E<lt>+0E<gt>\"\n"
16683 "\\& printf \\*(AqE<lt>%+dE<gt>\\*(Aq, -12; # prints \"E<lt>-12E<gt>\"\n"
16684 "\\& printf \\*(AqE<lt>%6sE<gt>\\*(Aq, 12; # prints \"E<lt> 12E<gt>\"\n"
16685 "\\& printf \\*(AqE<lt>%-6sE<gt>\\*(Aq, 12; # prints \"E<lt>12 E<gt>\"\n"
16686 "\\& printf \\*(AqE<lt>%06sE<gt>\\*(Aq, 12; # prints \"E<lt>000012E<gt>\"\n"
16687 "\\& printf \\*(AqE<lt>%#oE<gt>\\*(Aq, 12; # prints \"E<lt>014E<gt>\"\n"
16688 "\\& printf \\*(AqE<lt>%#xE<gt>\\*(Aq, 12; # prints \"E<lt>0xcE<gt>\"\n"
16689 "\\& printf \\*(AqE<lt>%#XE<gt>\\*(Aq, 12; # prints \"E<lt>0XCE<gt>\"\n"
16690 "\\& printf \\*(AqE<lt>%#bE<gt>\\*(Aq, 12; # prints \"E<lt>0b1100E<gt>\"\n"
16691 "\\& printf \\*(AqE<lt>%#BE<gt>\\*(Aq, 12; # prints \"E<lt>0B1100E<gt>\"\n"
16692 msgstr ""
16693
16694 #. type: Plain text
16695 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16696 #: opensuse-leap-16-1 opensuse-tumbleweed
16697 msgid ""
16698 "When a space and a plus sign are given as the flags at once, the space is "
16699 "ignored."
16700 msgstr ""
16701
16702 #. type: Plain text
16703 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16704 #: opensuse-leap-16-1 opensuse-tumbleweed
16705 #, no-wrap
16706 msgid ""
16707 "\\& printf \\*(AqE<lt>%+ dE<gt>\\*(Aq, 12; # prints \"E<lt>+12E<gt>\"\n"
16708 "\\& printf \\*(AqE<lt>% +dE<gt>\\*(Aq, 12; # prints \"E<lt>+12E<gt>\"\n"
16709 msgstr ""
16710
16711 #. type: Plain text
16712 #: debian-trixie debian-unstable
16713 msgid ""
16714 "When the # flag and a precision are given in the CW<%o> conversion, the "
16715 "precision is incremented if it's necessary for the leading \"0\"."
16716 msgstr ""
16717
16718 #. type: Plain text
16719 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16720 #: opensuse-leap-16-1 opensuse-tumbleweed
16721 #, no-wrap
16722 msgid ""
16723 "\\& printf \\*(AqE<lt>%#.5oE<gt>\\*(Aq, 012; # prints \"E<lt>00012E<gt>\"\n"
16724 "\\& printf \\*(AqE<lt>%#.5oE<gt>\\*(Aq, 012345; # prints \"E<lt>012345E<gt>\"\n"
16725 "\\& printf \\*(AqE<lt>%#.0oE<gt>\\*(Aq, 0; # prints \"E<lt>0E<gt>\"\n"
16726 msgstr ""
16727
16728 #. type: IX
16729 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16730 #: opensuse-leap-16-1 opensuse-tumbleweed
16731 #, no-wrap
16732 msgid "vector flag"
16733 msgstr ""
16734
16735 #. type: Plain text
16736 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16737 #: opensuse-leap-16-1 opensuse-tumbleweed
16738 msgid ""
16739 "This flag tells Perl to interpret the supplied string as a vector of "
16740 "integers, one for each character in the string. Perl applies the format to "
16741 "each integer in turn, then joins the resulting strings with a separator (a "
16742 "dot CW<\\*(C`.\\*(C'> by default). This can be useful for displaying "
16743 "ordinal values of characters in arbitrary strings:"
16744 msgstr ""
16745
16746 #. type: Plain text
16747 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16748 #: opensuse-leap-16-1 opensuse-tumbleweed
16749 #, no-wrap
16750 msgid ""
16751 "\\& printf \"%vd\", \"AB\\ex{100}\"; # prints \"65.66.256\"\n"
16752 "\\& printf \"version is v%vd\\en\", $^V; # Perl\\*(Aqs version\n"
16753 msgstr ""
16754
16755 #. type: Plain text
16756 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16757 #: opensuse-leap-16-1 opensuse-tumbleweed
16758 msgid ""
16759 "Put an asterisk CW<\\*(C`*\\*(C'> before the CW<\\*(C`v\\*(C'> to override "
16760 "the string to use to separate the numbers:"
16761 msgstr ""
16762
16763 #. type: Plain text
16764 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16765 #: opensuse-leap-16-1 opensuse-tumbleweed
16766 #, no-wrap
16767 msgid ""
16768 "\\& printf \"address is %*vX\\en\", \":\", $addr; # IPv6 address\n"
16769 "\\& printf \"bits are %0*v8b\\en\", \" \", $bits; # random bitstring\n"
16770 msgstr ""
16771
16772 #. type: Plain text
16773 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16774 #: opensuse-leap-16-1 opensuse-tumbleweed
16775 msgid ""
16776 "You can also explicitly specify the argument number to use for the join "
16777 "string using something like CW<\\*(C`*2$v\\*(C'>; for example:"
16778 msgstr ""
16779
16780 #. type: Plain text
16781 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16782 #: opensuse-leap-16-1 opensuse-tumbleweed
16783 #, no-wrap
16784 msgid ""
16785 "\\& printf \\*(Aq%*4$vX %*4$vX %*4$vX\\*(Aq, # 3 IPv6 addresses\n"
16786 "\\& @addr[1..3], \":\";\n"
16787 msgstr ""
16788
16789 #. type: IX
16790 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16791 #: opensuse-leap-16-1 opensuse-tumbleweed
16792 #, no-wrap
16793 msgid "(minimum) width"
16794 msgstr ""
16795
16796 #. type: Plain text
16797 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16798 #: opensuse-leap-16-1 opensuse-tumbleweed
16799 msgid ""
16800 "Arguments are usually formatted to be only as wide as required to display "
16801 "the given value. You can override the width by putting a number here, or "
16802 "get the width from the next argument (with CW<\\*(C`*\\*(C'>) or from a "
16803 "specified argument (e.g., with CW<\\*(C`*2$\\*(C'>):"
16804 msgstr ""
16805
16806 #. type: Plain text
16807 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16808 #: opensuse-leap-16-1 opensuse-tumbleweed
16809 #, no-wrap
16810 msgid ""
16811 "\\& printf \"E<lt>%sE<gt>\", \"a\"; # prints \"E<lt>aE<gt>\"\n"
16812 "\\& printf \"E<lt>%6sE<gt>\", \"a\"; # prints \"E<lt> aE<gt>\"\n"
16813 "\\& printf \"E<lt>%*sE<gt>\", 6, \"a\"; # prints \"E<lt> aE<gt>\"\n"
16814 "\\& printf \\*(AqE<lt>%*2$sE<gt>\\*(Aq, \"a\", 6; # prints \"E<lt> aE<gt>\"\n"
16815 "\\& printf \"E<lt>%2sE<gt>\", \"long\"; # prints \"E<lt>longE<gt>\" (does not truncate)\n"
16816 msgstr ""
16817
16818 #. type: Plain text
16819 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16820 #: opensuse-leap-16-1 opensuse-tumbleweed
16821 msgid ""
16822 "If a field width obtained through CW<\\*(C`*\\*(C'> is negative, it has the "
16823 "same effect as the CW<\\*(C`-\\*(C'> flag: left-justification."
16824 msgstr ""
16825
16826 #. type: IX
16827 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16828 #: opensuse-leap-16-1 opensuse-tumbleweed
16829 #, no-wrap
16830 msgid "precision, or maximum width"
16831 msgstr ""
16832
16833 #. type: IX
16834 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16835 #: opensuse-leap-16-1 opensuse-tumbleweed
16836 #, no-wrap
16837 msgid "precision"
16838 msgstr ""
16839
16840 #. type: Plain text
16841 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16842 #: opensuse-leap-16-1 opensuse-tumbleweed
16843 msgid ""
16844 "You can specify a precision (for numeric conversions) or a maximum width "
16845 "(for string conversions) by specifying a CW<\\*(C`.\\*(C'> followed by a "
16846 "number. For floating-point formats except CW<\\*(C`g\\*(C'> and "
16847 "CW<\\*(C`G\\*(C'>, this specifies how many places right of the decimal point "
16848 "to show (the default being 6). For example:"
16849 msgstr ""
16850
16851 #. type: Plain text
16852 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16853 #: opensuse-leap-16-1 opensuse-tumbleweed
16854 #, no-wrap
16855 msgid ""
16856 "\\& # these examples are subject to system-specific variation\n"
16857 "\\& printf \\*(AqE<lt>%fE<gt>\\*(Aq, 1; # prints \"E<lt>1.000000E<gt>\"\n"
16858 "\\& printf \\*(AqE<lt>%.1fE<gt>\\*(Aq, 1; # prints \"E<lt>1.0E<gt>\"\n"
16859 "\\& printf \\*(AqE<lt>%.0fE<gt>\\*(Aq, 1; # prints \"E<lt>1E<gt>\"\n"
16860 "\\& printf \\*(AqE<lt>%07.2fE<gt>\\*(Aq, 1.3; # prints \"E<lt>0001.30E<gt>\"\n"
16861 "\\& printf \\*(AqE<lt>%eE<gt>\\*(Aq, 10; # prints \"E<lt>1.000000e+01E<gt>\"\n"
16862 "\\& printf \\*(AqE<lt>%.1eE<gt>\\*(Aq, 10; # prints \"E<lt>1.0e+01E<gt>\"\n"
16863 msgstr ""
16864
16865 #. type: Plain text
16866 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16867 #: opensuse-leap-16-1 opensuse-tumbleweed
16868 msgid ""
16869 "For \"g\" and \"G\", this specifies the maximum number of significant digits "
16870 "to show; for example:"
16871 msgstr ""
16872
16873 #. type: Plain text
16874 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16875 #: opensuse-leap-16-1 opensuse-tumbleweed
16876 #, no-wrap
16877 msgid ""
16878 "\\& # These examples are subject to system-specific variation.\n"
16879 "\\& printf \\*(AqE<lt>%gE<gt>\\*(Aq, 1; # prints \"E<lt>1E<gt>\"\n"
16880 "\\& printf \\*(AqE<lt>%.10gE<gt>\\*(Aq, 1; # prints \"E<lt>1E<gt>\"\n"
16881 "\\& printf \\*(AqE<lt>%gE<gt>\\*(Aq, 100; # prints \"E<lt>100E<gt>\"\n"
16882 "\\& printf \\*(AqE<lt>%.1gE<gt>\\*(Aq, 100; # prints \"E<lt>1e+02E<gt>\"\n"
16883 "\\& printf \\*(AqE<lt>%.2gE<gt>\\*(Aq, 100.01; # prints \"E<lt>1e+02E<gt>\"\n"
16884 "\\& printf \\*(AqE<lt>%.5gE<gt>\\*(Aq, 100.01; # prints \"E<lt>100.01E<gt>\"\n"
16885 "\\& printf \\*(AqE<lt>%.4gE<gt>\\*(Aq, 100.01; # prints \"E<lt>100E<gt>\"\n"
16886 "\\& printf \\*(AqE<lt>%.1gE<gt>\\*(Aq, 0.0111; # prints \"E<lt>0.01E<gt>\"\n"
16887 "\\& printf \\*(AqE<lt>%.2gE<gt>\\*(Aq, 0.0111; # prints \"E<lt>0.011E<gt>\"\n"
16888 "\\& printf \\*(AqE<lt>%.3gE<gt>\\*(Aq, 0.0111; # prints \"E<lt>0.0111E<gt>\"\n"
16889 msgstr ""
16890
16891 #. type: Plain text
16892 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16893 #: opensuse-leap-16-1 opensuse-tumbleweed
16894 msgid ""
16895 "For integer conversions, specifying a precision implies that the output of "
16896 "the number itself should be zero-padded to this width, where the 0 flag is "
16897 "ignored:"
16898 msgstr ""
16899
16900 #. type: Plain text
16901 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16902 #: opensuse-leap-16-1 opensuse-tumbleweed
16903 #, no-wrap
16904 msgid ""
16905 "\\& printf \\*(AqE<lt>%.6dE<gt>\\*(Aq, 1; # prints \"E<lt>000001E<gt>\"\n"
16906 "\\& printf \\*(AqE<lt>%+.6dE<gt>\\*(Aq, 1; # prints \"E<lt>+000001E<gt>\"\n"
16907 "\\& printf \\*(AqE<lt>%-10.6dE<gt>\\*(Aq, 1; # prints \"E<lt>000001 E<gt>\"\n"
16908 "\\& printf \\*(AqE<lt>%10.6dE<gt>\\*(Aq, 1; # prints \"E<lt> 000001E<gt>\"\n"
16909 "\\& printf \\*(AqE<lt>%010.6dE<gt>\\*(Aq, 1; # prints \"E<lt> 000001E<gt>\"\n"
16910 "\\& printf \\*(AqE<lt>%+10.6dE<gt>\\*(Aq, 1; # prints \"E<lt> +000001E<gt>\"\n"
16911 "\\&\n"
16912 "\\& printf \\*(AqE<lt>%.6xE<gt>\\*(Aq, 1; # prints \"E<lt>000001E<gt>\"\n"
16913 "\\& printf \\*(AqE<lt>%#.6xE<gt>\\*(Aq, 1; # prints \"E<lt>0x000001E<gt>\"\n"
16914 "\\& printf \\*(AqE<lt>%-10.6xE<gt>\\*(Aq, 1; # prints \"E<lt>000001 E<gt>\"\n"
16915 "\\& printf \\*(AqE<lt>%10.6xE<gt>\\*(Aq, 1; # prints \"E<lt> 000001E<gt>\"\n"
16916 "\\& printf \\*(AqE<lt>%010.6xE<gt>\\*(Aq, 1; # prints \"E<lt> 000001E<gt>\"\n"
16917 "\\& printf \\*(AqE<lt>%#10.6xE<gt>\\*(Aq, 1; # prints \"E<lt> 0x000001E<gt>\"\n"
16918 msgstr ""
16919
16920 #. type: Plain text
16921 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16922 #: opensuse-leap-16-1 opensuse-tumbleweed
16923 msgid ""
16924 "For string conversions, specifying a precision truncates the string to fit "
16925 "the specified width:"
16926 msgstr ""
16927
16928 #. type: Plain text
16929 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16930 #: opensuse-leap-16-1 opensuse-tumbleweed
16931 #, no-wrap
16932 msgid ""
16933 "\\& printf \\*(AqE<lt>%.5sE<gt>\\*(Aq, \"truncated\"; # prints \"E<lt>truncE<gt>\"\n"
16934 "\\& printf \\*(AqE<lt>%10.5sE<gt>\\*(Aq, \"truncated\"; # prints \"E<lt> truncE<gt>\"\n"
16935 msgstr ""
16936
16937 #. type: Plain text
16938 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16939 #: opensuse-leap-16-1 opensuse-tumbleweed
16940 msgid ""
16941 "You can also get the precision from the next argument using "
16942 "CW<\\*(C`.*\\*(C'>, or from a specified argument (e.g., with CW<\\*(C`.*2$"
16943 "\\*(C'>):"
16944 msgstr ""
16945
16946 #. type: Plain text
16947 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16948 #: opensuse-leap-16-1 opensuse-tumbleweed
16949 #, no-wrap
16950 msgid ""
16951 "\\& printf \\*(AqE<lt>%.6xE<gt>\\*(Aq, 1; # prints \"E<lt>000001E<gt>\"\n"
16952 "\\& printf \\*(AqE<lt>%.*xE<gt>\\*(Aq, 6, 1; # prints \"E<lt>000001E<gt>\"\n"
16953 "\\&\n"
16954 "\\& printf \\*(AqE<lt>%.*2$xE<gt>\\*(Aq, 1, 6; # prints \"E<lt>000001E<gt>\"\n"
16955 "\\&\n"
16956 "\\& printf \\*(AqE<lt>%6.*2$xE<gt>\\*(Aq, 1, 4; # prints \"E<lt> 0001E<gt>\"\n"
16957 msgstr ""
16958
16959 #. type: Plain text
16960 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16961 #: opensuse-leap-16-1 opensuse-tumbleweed
16962 msgid ""
16963 "If a precision obtained through CW<\\*(C`*\\*(C'> is negative, it counts as "
16964 "having no precision at all."
16965 msgstr ""
16966
16967 #. type: Plain text
16968 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16969 #: opensuse-leap-16-1 opensuse-tumbleweed
16970 #, no-wrap
16971 msgid ""
16972 "\\& printf \\*(AqE<lt>%.*sE<gt>\\*(Aq, 7, \"string\"; # prints \"E<lt>stringE<gt>\"\n"
16973 "\\& printf \\*(AqE<lt>%.*sE<gt>\\*(Aq, 3, \"string\"; # prints \"E<lt>strE<gt>\"\n"
16974 "\\& printf \\*(AqE<lt>%.*sE<gt>\\*(Aq, 0, \"string\"; # prints \"E<lt>E<gt>\"\n"
16975 "\\& printf \\*(AqE<lt>%.*sE<gt>\\*(Aq, -1, \"string\"; # prints \"E<lt>stringE<gt>\"\n"
16976 "\\&\n"
16977 "\\& printf \\*(AqE<lt>%.*dE<gt>\\*(Aq, 1, 0; # prints \"E<lt>0E<gt>\"\n"
16978 "\\& printf \\*(AqE<lt>%.*dE<gt>\\*(Aq, 0, 0; # prints \"E<lt>E<gt>\"\n"
16979 "\\& printf \\*(AqE<lt>%.*dE<gt>\\*(Aq, -1, 0; # prints \"E<lt>0E<gt>\"\n"
16980 msgstr ""
16981
16982 #. type: IX
16983 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16984 #: opensuse-leap-16-1 opensuse-tumbleweed
16985 #, no-wrap
16986 msgid "size"
16987 msgstr ""
16988
16989 #. type: Plain text
16990 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
16991 #: opensuse-leap-16-1 opensuse-tumbleweed
16992 msgid ""
16993 "For numeric conversions, you can specify the size to interpret the number as "
16994 "using CW<\\*(C`l\\*(C'>, CW<\\*(C`h\\*(C'>, CW<\\*(C`V\\*(C'>, "
16995 "CW<\\*(C`q\\*(C'>, CW<\\*(C`L\\*(C'>, or CW<\\*(C`ll\\*(C'>. For integer "
16996 "conversions (CW<\\*(C`d u o x X b i D U O\\*(C'>), numbers are usually "
16997 "assumed to be whatever the default integer size is on your platform (usually "
16998 "32 or 64 bits), but you can override this to use instead one of the standard "
16999 "C types, as supported by the compiler used to build Perl:"
17000 msgstr ""
17001
17002 #. type: Plain text
17003 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17004 #: opensuse-leap-16-1 opensuse-tumbleweed
17005 #, no-wrap
17006 msgid ""
17007 "\\& hh interpret integer as C type \"char\" or \"unsigned\n"
17008 "\\& char\" on Perl 5.14 or later\n"
17009 "\\& h interpret integer as C type \"short\" or\n"
17010 "\\& \"unsigned short\"\n"
17011 "\\& j interpret integer as C type \"intmax_t\" on Perl\n"
17012 "\\& 5.14 or later. Prior to Perl 5.30 this worked only\n"
17013 "\\& with a C99 compiler, hence was unportable before\n"
17014 "\\& that release.\n"
17015 "\\& l interpret integer as C type \"long\" or\n"
17016 "\\& \"unsigned long\"\n"
17017 "\\& q, L, or ll interpret integer as C type \"long long\",\n"
17018 "\\& \"unsigned long long\", or \"quad\" (typically\n"
17019 "\\& 64-bit integers)\n"
17020 "\\& t interpret integer as C type \"ptrdiff_t\" on Perl\n"
17021 "\\& 5.14 or later\n"
17022 "\\& z interpret integer as C types \"size_t\" or\n"
17023 "\\& \"ssize_t\" on Perl 5.14 or later\n"
17024 msgstr ""
17025
17026 #. type: Plain text
17027 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17028 #: opensuse-leap-16-1 opensuse-tumbleweed
17029 msgid ""
17030 "Note that, in general, using the CW<\\*(C`l\\*(C'> modifier (for example, "
17031 "when writing \\&CW<\"%ld\"> or CW<\"%lu\"> instead of CW<\"%d\"> and "
17032 "CW<\"%u\">) is unnecessary when used from Perl code. Moreover, it may be "
17033 "harmful, for example on Windows 64-bit where a long is 32-bits."
17034 msgstr ""
17035
17036 #. type: Plain text
17037 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17038 #: opensuse-leap-16-1 opensuse-tumbleweed
17039 msgid ""
17040 "As of 5.14, none of these raises an exception if they are not supported on "
17041 "your platform. However, if warnings are enabled, a warning of the "
17042 "\\&CW<\\*(C`printf\\*(C'> warning class is issued on an unsupported "
17043 "conversion flag. Should you instead prefer an exception, do this:"
17044 msgstr ""
17045
17046 #. type: Plain text
17047 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17048 #: opensuse-leap-16-1 opensuse-tumbleweed
17049 #, no-wrap
17050 msgid "\\& use warnings FATAL =E<gt> \"printf\";\n"
17051 msgstr ""
17052
17053 #. type: Plain text
17054 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17055 #: opensuse-leap-16-1 opensuse-tumbleweed
17056 msgid ""
17057 "If you would like to know about a version dependency before you start "
17058 "running the program, put something like this at its top:"
17059 msgstr ""
17060
17061 #. type: Plain text
17062 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17063 #: opensuse-leap-16-1 opensuse-tumbleweed
17064 #, no-wrap
17065 msgid "\\& use v5.14; # for hh/j/t/z/ printf modifiers\n"
17066 msgstr ""
17067
17068 #. type: Plain text
17069 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17070 #: opensuse-leap-16-1 opensuse-tumbleweed
17071 msgid "You can find out whether your Perl supports quads via Config:"
17072 msgstr ""
17073
17074 #. type: Plain text
17075 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17076 #: opensuse-leap-16-1 opensuse-tumbleweed
17077 #, no-wrap
17078 msgid ""
17079 "\\& use Config;\n"
17080 "\\& if ($Config{use64bitint} eq \"define\"\n"
17081 "\\& || $Config{longsize} E<gt>= 8) {\n"
17082 "\\& print \"Nice quads!\\en\";\n"
17083 "\\& }\n"
17084 msgstr ""
17085
17086 #. type: Plain text
17087 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17088 #: opensuse-leap-16-1 opensuse-tumbleweed
17089 msgid ""
17090 "For floating-point conversions (CW<\\*(C`e f g E F G\\*(C'>), numbers are "
17091 "usually assumed to be the default floating-point size on your platform "
17092 "(double or long double), but you can force \"long double\" with "
17093 "CW<\\*(C`q\\*(C'>, CW<\\*(C`L\\*(C'>, or CW<\\*(C`ll\\*(C'> if your platform "
17094 "supports them. You can find out whether your Perl supports long doubles via "
17095 "Config:"
17096 msgstr ""
17097
17098 #. type: Plain text
17099 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17100 #: opensuse-leap-16-1 opensuse-tumbleweed
17101 #, no-wrap
17102 msgid ""
17103 "\\& use Config;\n"
17104 "\\& print \"long doubles\\en\" if $Config{d_longdbl} eq \"define\";\n"
17105 msgstr ""
17106
17107 #. type: Plain text
17108 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17109 #: opensuse-leap-16-1 opensuse-tumbleweed
17110 msgid ""
17111 "You can find out whether Perl considers \"long double\" to be the default "
17112 "floating-point size to use on your platform via Config:"
17113 msgstr ""
17114
17115 #. type: Plain text
17116 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17117 #: opensuse-leap-16-1 opensuse-tumbleweed
17118 #, no-wrap
17119 msgid ""
17120 "\\& use Config;\n"
17121 "\\& if ($Config{uselongdouble} eq \"define\") {\n"
17122 "\\& print \"long doubles by default\\en\";\n"
17123 "\\& }\n"
17124 msgstr ""
17125
17126 #. type: Plain text
17127 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17128 #: opensuse-leap-16-1 opensuse-tumbleweed
17129 msgid "It can also be that long doubles and doubles are the same thing:"
17130 msgstr ""
17131
17132 #. type: Plain text
17133 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17134 #: opensuse-leap-16-1 opensuse-tumbleweed
17135 #, no-wrap
17136 msgid ""
17137 "\\& use Config;\n"
17138 "\\& ($Config{doublesize} == $Config{longdblsize}) &&\n"
17139 "\\& print \"doubles are long doubles\\en\";\n"
17140 msgstr ""
17141
17142 #. type: Plain text
17143 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17144 #: opensuse-leap-16-1 opensuse-tumbleweed
17145 msgid ""
17146 "The size specifier CW<\\*(C`V\\*(C'> has no effect for Perl code, but is "
17147 "supported for compatibility with XS code. It means \"use the standard size "
17148 "for a Perl integer or floating-point number\", which is the default."
17149 msgstr ""
17150
17151 #. type: IX
17152 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17153 #: opensuse-leap-16-1 opensuse-tumbleweed
17154 #, no-wrap
17155 msgid "order of arguments"
17156 msgstr ""
17157
17158 #. type: Plain text
17159 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17160 #: opensuse-leap-16-1 opensuse-tumbleweed
17161 msgid ""
17162 "Normally, CW<\\*(C`sprintf\\*(C'> takes the next unused argument as the "
17163 "value to format for each format specification. If the format specification "
17164 "uses CW<\\*(C`*\\*(C'> to require additional arguments, these are consumed "
17165 "from the argument list in the order they appear in the format specification "
17166 "I<before> the value to format. Where an argument is specified by an "
17167 "explicit index, this does not affect the normal order for the arguments, "
17168 "even when the explicitly specified index would have been the next argument."
17169 msgstr ""
17170
17171 #. type: Plain text
17172 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17173 #: opensuse-leap-16-1 opensuse-tumbleweed
17174 msgid "So:"
17175 msgstr ""
17176
17177 #. type: Plain text
17178 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17179 #: opensuse-leap-16-1 opensuse-tumbleweed
17180 #, no-wrap
17181 msgid "\\& printf \"E<lt>%*.*sE<gt>\", $x, $y, $z;\n"
17182 msgstr ""
17183
17184 #. type: Plain text
17185 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17186 #: opensuse-leap-16-1 opensuse-tumbleweed
17187 msgid ""
17188 "uses CW<$x> for the width, CW<$y> for the precision, and CW<$z> as the value "
17189 "to format; while:"
17190 msgstr ""
17191
17192 #. type: Plain text
17193 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17194 #: opensuse-leap-16-1 opensuse-tumbleweed
17195 #, no-wrap
17196 msgid "\\& printf \\*(AqE<lt>%*1$.*sE<gt>\\*(Aq, $x, $y;\n"
17197 msgstr ""
17198
17199 #. type: Plain text
17200 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17201 #: opensuse-leap-16-1 opensuse-tumbleweed
17202 msgid ""
17203 "would use CW<$x> for the width and precision, and CW<$y> as the value to "
17204 "format."
17205 msgstr ""
17206
17207 #. type: Plain text
17208 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17209 #: opensuse-leap-16-1 opensuse-tumbleweed
17210 msgid ""
17211 "Here are some more examples; be aware that when using an explicit index, the "
17212 "CW<\\*(C`$\\*(C'> may need escaping:"
17213 msgstr ""
17214
17215 #. type: Plain text
17216 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17217 #: opensuse-leap-16-1 opensuse-tumbleweed
17218 #, no-wrap
17219 msgid ""
17220 "\\& printf \"%2\\e$d %d\\en\", 12, 34; # will print \"34 12\\en\"\n"
17221 "\\& printf \"%2\\e$d %d %d\\en\", 12, 34; # will print \"34 12 34\\en\"\n"
17222 "\\& printf \"%3\\e$d %d %d\\en\", 12, 34, 56; # will print \"56 12 34\\en\"\n"
17223 "\\& printf \"%2\\e$*3\\e$d %d\\en\", 12, 34, 3; # will print \" 34 12\\en\"\n"
17224 "\\& printf \"%*1\\e$.*f\\en\", 4, 5, 10; # will print \"5.0000\\en\"\n"
17225 msgstr ""
17226
17227 #. type: Plain text
17228 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17229 #: opensuse-leap-16-1 opensuse-tumbleweed
17230 msgid ""
17231 "If CW<\\*(C`use locale\\*(C'> (including CW<\\*(C`use locale "
17232 "\\*(Aq:not_characters\\*(Aq\\*(C'>) is in effect and "
17233 "CW<\\*(C`POSIX::setlocale\\*(C'> has been called, the character used for the "
17234 "decimal separator in formatted floating-point numbers is affected by the "
17235 "CW<\\*(C`LC_NUMERIC\\*(C'> locale. See perllocale and POSIX."
17236 msgstr ""
17237
17238 #. type: IX
17239 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17240 #: opensuse-leap-16-1 opensuse-tumbleweed
17241 #, no-wrap
17242 msgid "sqrt EXPR"
17243 msgstr ""
17244
17245 #. type: IX
17246 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17247 #: opensuse-leap-16-1 opensuse-tumbleweed
17248 #, no-wrap
17249 msgid "sqrt root square root"
17250 msgstr ""
17251
17252 #. type: IX
17253 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17254 #: opensuse-leap-16-1 opensuse-tumbleweed
17255 #, no-wrap
17256 msgid "sqrt"
17257 msgstr ""
17258
17259 #. type: Plain text
17260 #: debian-trixie debian-unstable
17261 msgid ""
17262 "Return the positive square root of EXPR. If EXPR is omitted, uses "
17263 "\\&CW<$_>. Works only for non-negative operands unless you've loaded the "
17264 "CW<\\*(C`Math::Complex\\*(C'> module."
17265 msgstr ""
17266
17267 #. type: Plain text
17268 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17269 #: opensuse-leap-16-1 opensuse-tumbleweed
17270 #, no-wrap
17271 msgid ""
17272 "\\& use Math::Complex;\n"
17273 "\\& print sqrt(-4); # prints 2i\n"
17274 msgstr ""
17275
17276 #. type: IX
17277 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17278 #: opensuse-leap-16-1 opensuse-tumbleweed
17279 #, no-wrap
17280 msgid "srand EXPR"
17281 msgstr ""
17282
17283 #. type: IX
17284 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17285 #: opensuse-leap-16-1 opensuse-tumbleweed
17286 #, no-wrap
17287 msgid "srand seed randseed"
17288 msgstr ""
17289
17290 #. type: IX
17291 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17292 #: opensuse-leap-16-1 opensuse-tumbleweed
17293 #, no-wrap
17294 msgid "srand"
17295 msgstr ""
17296
17297 #. type: Plain text
17298 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17299 #: opensuse-leap-16-1 opensuse-tumbleweed
17300 msgid ""
17301 "Sets and returns the random number seed for the CW<\\*(C`rand\\*(C'> "
17302 "operator."
17303 msgstr ""
17304
17305 #. type: Plain text
17306 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17307 #: opensuse-leap-16-1 opensuse-tumbleweed
17308 msgid ""
17309 "The point of the function is to \"seed\" the CW<\\*(C`rand\\*(C'> function "
17310 "so that CW<\\*(C`rand\\*(C'> can produce a different sequence each time you "
17311 "run your program. When called with a parameter, \\&CW<\\*(C`srand\\*(C'> "
17312 "uses that for the seed; otherwise it (semi-)randomly chooses a seed (see "
17313 "below). In either case, starting with Perl 5.14, it returns the seed. To "
17314 "signal that your code will work I<only> on Perls of a recent vintage:"
17315 msgstr ""
17316
17317 #. type: Plain text
17318 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17319 #: opensuse-leap-16-1 opensuse-tumbleweed
17320 #, no-wrap
17321 msgid "\\& use v5.14; # so srand returns the seed\n"
17322 msgstr ""
17323
17324 #. type: Plain text
17325 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17326 #: opensuse-leap-16-1 opensuse-tumbleweed
17327 msgid ""
17328 "If CW<\\*(C`srand\\*(C'> is not called explicitly, it is called implicitly "
17329 "without a parameter at the first use of the \\&CW<\\*(C`rand\\*(C'> "
17330 "operator. However, there are a few situations where programs are likely to "
17331 "want to call CW<\\*(C`srand\\*(C'>. One is for generating predictable "
17332 "results, generally for testing or debugging. There, you use "
17333 "CW<srand($seed)>, with the same CW<$seed> each time. Another case is that "
17334 "you may want to call CW<\\*(C`srand\\*(C'> after a CW<\\*(C`fork\\*(C'> to "
17335 "avoid child processes sharing the same seed value as the parent (and "
17336 "consequently each other)."
17337 msgstr ""
17338
17339 #. type: Plain text
17340 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17341 #: opensuse-leap-16-1 opensuse-tumbleweed
17342 msgid ""
17343 "Do B<not> call CW<srand()> (i.e., without an argument) more than once per "
17344 "process. The internal state of the random number generator should contain "
17345 "more entropy than can be provided by any seed, so calling "
17346 "\\&CW<\\*(C`srand\\*(C'> again actually I<loses> randomness."
17347 msgstr ""
17348
17349 #. type: Plain text
17350 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17351 #: opensuse-leap-16-1 opensuse-tumbleweed
17352 msgid ""
17353 "Most implementations of CW<\\*(C`srand\\*(C'> take an integer and will "
17354 "silently truncate decimal numbers. This means CW<srand(42)> will usually "
17355 "produce the same results as CW<srand(42.1)>. To be safe, always pass "
17356 "\\&CW<\\*(C`srand\\*(C'> an integer."
17357 msgstr ""
17358
17359 #. type: Plain text
17360 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17361 #: opensuse-leap-16-1 opensuse-tumbleweed
17362 msgid ""
17363 "A typical use of the returned seed is for a test program which has too many "
17364 "combinations to test comprehensively in the time available to it each run. "
17365 "It can test a random subset each time, and should there be a failure, log "
17366 "the seed used for that run so that it can later be used to reproduce the "
17367 "same results."
17368 msgstr ""
17369
17370 #. type: Plain text
17371 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17372 #: opensuse-leap-16-1 opensuse-tumbleweed
17373 msgid ""
17374 "If the CW<\\*(C`PERL_RAND_SEED\\*(C'> environment variable is set to a non-"
17375 "negative integer during process startup then calls to CW<srand()> with no "
17376 "arguments will initialize the perl random number generator with a consistent "
17377 "seed each time it is called, whether called explicitly with no arguments or "
17378 "implicitly via use of CW<rand()>. The exact seeding that a given "
17379 "CW<\\*(C`PERL_RAND_SEED\\*(C'> will produce is deliberately unspecified, but "
17380 "using different values for CW<\\*(C`PERL_RAND_SEED\\*(C'> should produce "
17381 "different results. This is intended for debugging and performance analysis "
17382 "and is only guaranteed to produce consistent results between invocations of "
17383 "the same perl executable running the same code when all other factors are "
17384 "equal. The environment variable is read only once during process startup, "
17385 "and changing it during the program flow will not affect the currently "
17386 "running process. See perlrun for more details."
17387 msgstr ""
17388
17389 #. type: IX
17390 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17391 #: opensuse-leap-16-1 opensuse-tumbleweed
17392 #, no-wrap
17393 msgid "stat FILEHANDLE"
17394 msgstr ""
17395
17396 #. type: IX
17397 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17398 #: opensuse-leap-16-1 opensuse-tumbleweed
17399 #, no-wrap
17400 msgid "stat file, status ctime"
17401 msgstr ""
17402
17403 #. type: IX
17404 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17405 #: opensuse-leap-16-1 opensuse-tumbleweed
17406 #, no-wrap
17407 msgid "stat EXPR"
17408 msgstr ""
17409
17410 #. type: IX
17411 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17412 #: opensuse-leap-16-1 opensuse-tumbleweed
17413 #, no-wrap
17414 msgid "stat DIRHANDLE"
17415 msgstr ""
17416
17417 #. type: IX
17418 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17419 #: opensuse-leap-16-1 opensuse-tumbleweed
17420 #, no-wrap
17421 msgid "stat"
17422 msgstr ""
17423
17424 #. type: Plain text
17425 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17426 #: opensuse-leap-16-1 opensuse-tumbleweed
17427 msgid ""
17428 "Returns a 13-element list giving the status info for a file, either the file "
17429 "opened via FILEHANDLE or DIRHANDLE, or named by EXPR. If EXPR is omitted, "
17430 "it stats CW<$_> (not CW<\\*(C`_\\*(C'>!). Returns the empty list if "
17431 "CW<\\*(C`stat\\*(C'> fails. Typically used as follows:"
17432 msgstr ""
17433
17434 #. type: Plain text
17435 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17436 #: opensuse-leap-16-1 opensuse-tumbleweed
17437 #, no-wrap
17438 msgid ""
17439 "\\& my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,\n"
17440 "\\& $atime,$mtime,$ctime,$blksize,$blocks)\n"
17441 "\\& = stat($filename);\n"
17442 msgstr ""
17443
17444 #. type: Plain text
17445 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17446 #: opensuse-leap-16-1 opensuse-tumbleweed
17447 msgid ""
17448 "Not all fields are supported on all filesystem types. Here are the meanings "
17449 "of the fields:"
17450 msgstr ""
17451
17452 #. type: Plain text
17453 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17454 #: opensuse-leap-16-1 opensuse-tumbleweed
17455 #, no-wrap
17456 msgid ""
17457 "\\& 0 dev device number of filesystem\n"
17458 "\\& 1 ino inode number\n"
17459 "\\& 2 mode file mode (type and permissions)\n"
17460 "\\& 3 nlink number of (hard) links to the file\n"
17461 "\\& 4 uid numeric user ID of file\\*(Aqs owner\n"
17462 "\\& 5 gid numeric group ID of file\\*(Aqs owner\n"
17463 "\\& 6 rdev the device identifier (special files only)\n"
17464 "\\& 7 size total size of file, in bytes\n"
17465 "\\& 8 atime last access time in seconds since the epoch\n"
17466 "\\& 9 mtime last modify time in seconds since the epoch\n"
17467 "\\& 10 ctime inode change time in seconds since the epoch (*)\n"
17468 "\\& 11 blksize preferred I/O size in bytes for interacting with the\n"
17469 "\\& file (may vary from file to file)\n"
17470 "\\& 12 blocks actual number of system-specific blocks allocated\n"
17471 "\\& on disk (often, but not always, 512 bytes each)\n"
17472 msgstr ""
17473
17474 #. type: Plain text
17475 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17476 #: opensuse-leap-16-1 opensuse-tumbleweed
17477 msgid "(The epoch was at 00:00 January 1, 1970 GMT.)"
17478 msgstr ""
17479
17480 #. type: Plain text
17481 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17482 #: opensuse-leap-16-1 opensuse-tumbleweed
17483 msgid ""
17484 "(*) Not all fields are supported on all filesystem types. Notably, the "
17485 "ctime field is non-portable. In particular, you cannot expect it to be a "
17486 "\"creation time\"; see \"Files and Filesystems\" in perlport for details."
17487 msgstr ""
17488
17489 #. type: Plain text
17490 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17491 #: opensuse-leap-16-1 opensuse-tumbleweed
17492 msgid ""
17493 "If CW<\\*(C`stat\\*(C'> is passed the special filehandle consisting of an "
17494 "underline, no stat is done, but the current contents of the stat structure "
17495 "from the last CW<\\*(C`stat\\*(C'>, \\&CW<\\*(C`lstat\\*(C'>, or filetest "
17496 "are returned. Example:"
17497 msgstr ""
17498
17499 #. type: Plain text
17500 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17501 #: opensuse-leap-16-1 opensuse-tumbleweed
17502 #, no-wrap
17503 msgid ""
17504 "\\& if (-x $file && (($d) = stat(_)) && $d E<lt> 0) {\n"
17505 "\\& print \"$file is executable NFS file\\en\";\n"
17506 "\\& }\n"
17507 msgstr ""
17508
17509 #. type: Plain text
17510 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17511 #: opensuse-leap-16-1 opensuse-tumbleweed
17512 msgid ""
17513 "(This works on machines only for which the device number is negative under "
17514 "NFS.)"
17515 msgstr ""
17516
17517 #. type: Plain text
17518 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17519 #: opensuse-leap-16-1 opensuse-tumbleweed
17520 msgid ""
17521 "On some platforms inode numbers are of a type larger than perl knows how to "
17522 "handle as integer numerical values. If necessary, an inode number will be "
17523 "returned as a decimal string in order to preserve the entire value. If used "
17524 "in a numeric context, this will be converted to a floating-point numerical "
17525 "value, with rounding, a fate that is best avoided. Therefore, you should "
17526 "prefer to compare inode numbers using CW<\\*(C`eq\\*(C'> rather than "
17527 "CW<\\*(C`==\\*(C'>. \\&CW<\\*(C`eq\\*(C'> will work fine on inode numbers "
17528 "that are represented numerically, as well as those represented as strings."
17529 msgstr ""
17530
17531 #. type: Plain text
17532 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17533 #: opensuse-leap-16-1 opensuse-tumbleweed
17534 msgid ""
17535 "Because the mode contains both the file type and its permissions, you should "
17536 "mask off the file type portion and (s)printf using a CW<\"%o\"> if you want "
17537 "to see the real permissions."
17538 msgstr ""
17539
17540 #. type: Plain text
17541 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17542 #: opensuse-leap-16-1 opensuse-tumbleweed
17543 #, no-wrap
17544 msgid ""
17545 "\\& my $mode = (stat($filename))[2];\n"
17546 "\\& printf \"Permissions are %04o\\en\", $mode & 07777;\n"
17547 msgstr ""
17548
17549 #. type: Plain text
17550 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17551 #: opensuse-leap-16-1 opensuse-tumbleweed
17552 msgid ""
17553 "In scalar context, CW<\\*(C`stat\\*(C'> returns a boolean value indicating "
17554 "success or failure, and, if successful, sets the information associated with "
17555 "the special filehandle CW<\\*(C`_\\*(C'>."
17556 msgstr ""
17557
17558 #. type: Plain text
17559 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17560 #: opensuse-leap-16-1 opensuse-tumbleweed
17561 msgid "The File::stat module provides a convenient, by-name access mechanism:"
17562 msgstr ""
17563
17564 #. type: Plain text
17565 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17566 #: opensuse-leap-16-1 opensuse-tumbleweed
17567 #, no-wrap
17568 msgid ""
17569 "\\& use File::stat;\n"
17570 "\\& my $sb = stat($filename);\n"
17571 "\\& printf \"File is %s, size is %s, perm %04o, mtime %s\\en\",\n"
17572 "\\& $filename, $sb-E<gt>size, $sb-E<gt>mode & 07777,\n"
17573 "\\& scalar localtime $sb-E<gt>mtime;\n"
17574 msgstr ""
17575
17576 #. type: Plain text
17577 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17578 #: opensuse-leap-16-1 opensuse-tumbleweed
17579 msgid ""
17580 "You can import symbolic mode constants and functions (CW<\\*(C`S_I*\\*(C'>) "
17581 "from the Fcntl module:"
17582 msgstr ""
17583
17584 #. type: Plain text
17585 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17586 #: opensuse-leap-16-1 opensuse-tumbleweed
17587 #, no-wrap
17588 msgid ""
17589 "\\& use Fcntl \\*(Aq:mode\\*(Aq;\n"
17590 "\\&\n"
17591 "\\& my $mode = (stat($filename))[2];\n"
17592 "\\&\n"
17593 "\\& my $user_rwx = ($mode & S_IRWXU) E<gt>E<gt> 6;\n"
17594 "\\& my $group_read = ($mode & S_IRGRP) E<gt>E<gt> 3;\n"
17595 "\\& my $other_execute = $mode & S_IXOTH;\n"
17596 "\\&\n"
17597 "\\& printf \"Permissions are %04o\\en\", S_IMODE($mode), \"\\en\";\n"
17598 "\\&\n"
17599 "\\& my $is_setuid = $mode & S_ISUID;\n"
17600 "\\& my $is_directory = S_ISDIR($mode);\n"
17601 msgstr ""
17602
17603 #. type: Plain text
17604 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17605 #: opensuse-leap-16-1 opensuse-tumbleweed
17606 msgid ""
17607 "You could write the last two using the CW<\\*(C`-u\\*(C'> and CW<\\*(C`-"
17608 "d\\*(C'> operators. Commonly available CW<\\*(C`S_I*\\*(C'> constants are:"
17609 msgstr ""
17610
17611 #. type: Plain text
17612 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17613 #: opensuse-leap-16-1 opensuse-tumbleweed
17614 #, no-wrap
17615 msgid ""
17616 "\\& # Permissions: read, write, execute, for user, group, others.\n"
17617 "\\&\n"
17618 "\\& S_IRWXU S_IRUSR S_IWUSR S_IXUSR\n"
17619 "\\& S_IRWXG S_IRGRP S_IWGRP S_IXGRP\n"
17620 "\\& S_IRWXO S_IROTH S_IWOTH S_IXOTH\n"
17621 "\\&\n"
17622 "\\& # Setuid/Setgid/Stickiness/SaveText/EnforcedLocks.\n"
17623 "\\& # Note that the exact meaning of these is system-dependent.\n"
17624 "\\&\n"
17625 "\\& S_ISUID S_ISGID S_ISVTX S_ISTXT S_ENFMT\n"
17626 "\\&\n"
17627 "\\& # File types. Not all are necessarily available on\n"
17628 "\\& # your system.\n"
17629 "\\&\n"
17630 "\\& S_IFREG S_IFDIR S_IFLNK S_IFBLK S_IFCHR\n"
17631 "\\& S_IFIFO S_IFSOCK S_IFWHT\n"
17632 "\\&\n"
17633 "\\& # The following are compatibility aliases for S_IRUSR,\n"
17634 "\\& # S_IWUSR, and S_IXUSR.\n"
17635 "\\&\n"
17636 "\\& S_IREAD S_IWRITE S_IEXEC\n"
17637 msgstr ""
17638
17639 #. type: Plain text
17640 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17641 #: opensuse-leap-16-1 opensuse-tumbleweed
17642 msgid "and the CW<\\*(C`S_I*\\*(C'> functions are"
17643 msgstr ""
17644
17645 #. type: Plain text
17646 #: debian-trixie debian-unstable
17647 #, no-wrap
17648 msgid ""
17649 "\\& S_IMODE($mode) the part of $mode containing the permission\n"
17650 "\\& bits and the setuid/setgid/sticky bits\n"
17651 "\\&\n"
17652 "\\& S_IFMT($mode) the part of $mode containing the file type,\n"
17653 "\\& which will match one of the S_IF* constants\n"
17654 "\\& (e.g. S_IFMT($mode) == S_IFDIR for directories),\n"
17655 "\\& but see the following helper functions\n"
17656 "\\&\n"
17657 "\\& # The operators -f, -d, -l, -b, -c, -p, and -S.\n"
17658 "\\&\n"
17659 "\\& S_ISREG($mode) S_ISDIR($mode) S_ISLNK($mode)\n"
17660 "\\& S_ISBLK($mode) S_ISCHR($mode) S_ISFIFO($mode) S_ISSOCK($mode)\n"
17661 "\\&\n"
17662 "\\& # No direct -X operator counterpart, but for the first one\n"
17663 "\\& # the -g operator is often equivalent. The ENFMT stands for\n"
17664 "\\& # record flocking enforcement, a platform-dependent feature.\n"
17665 "\\&\n"
17666 "\\& S_ISENFMT($mode) S_ISWHT($mode)\n"
17667 msgstr ""
17668
17669 #. type: Plain text
17670 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17671 #: opensuse-leap-16-1 opensuse-tumbleweed
17672 msgid ""
17673 "See your native B<chmod>\\|(2) and B<stat>\\|(2) documentation for more "
17674 "details about the CW<\\*(C`S_I*\\*(C'> constants. To get status info for a "
17675 "symbolic link instead of the target file behind the link, use the "
17676 "\\&CW<\\*(C`lstat\\*(C'> function."
17677 msgstr ""
17678
17679 #. type: Plain text
17680 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17681 #: opensuse-leap-16-1 opensuse-tumbleweed
17682 msgid "Portability issues: \"stat\" in perlport."
17683 msgstr ""
17684
17685 #. type: IX
17686 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17687 #: opensuse-leap-16-1 opensuse-tumbleweed
17688 #, no-wrap
17689 msgid "state VARLIST"
17690 msgstr ""
17691
17692 #. type: IX
17693 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17694 #: opensuse-leap-16-1 opensuse-tumbleweed
17695 #, no-wrap
17696 msgid "state"
17697 msgstr ""
17698
17699 #. type: IX
17700 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17701 #: opensuse-leap-16-1 opensuse-tumbleweed
17702 #, no-wrap
17703 msgid "state TYPE VARLIST"
17704 msgstr ""
17705
17706 #. type: IX
17707 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17708 #: opensuse-leap-16-1 opensuse-tumbleweed
17709 #, no-wrap
17710 msgid "state VARLIST : ATTRS"
17711 msgstr ""
17712
17713 #. type: IX
17714 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17715 #: opensuse-leap-16-1 opensuse-tumbleweed
17716 #, no-wrap
17717 msgid "state TYPE VARLIST : ATTRS"
17718 msgstr ""
17719
17720 #. type: Plain text
17721 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17722 #: opensuse-leap-16-1 opensuse-tumbleweed
17723 msgid ""
17724 "\\&CW<\\*(C`state\\*(C'> declares a lexically scoped variable, just like "
17725 "CW<\\*(C`my\\*(C'>. However, those variables will never be reinitialized, "
17726 "contrary to lexical variables that are reinitialized each time their "
17727 "enclosing block is entered. See \"Persistent Private Variables\" in perlsub "
17728 "for details."
17729 msgstr ""
17730
17731 #. type: Plain text
17732 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17733 #: opensuse-leap-16-1 opensuse-tumbleweed
17734 msgid ""
17735 "If more than one variable is listed, the list must be placed in "
17736 "parentheses. With a parenthesised list, CW<\\*(C`undef\\*(C'> can be used "
17737 "as a dummy placeholder. However, since initialization of state variables in "
17738 "such lists is currently not possible this would serve no purpose."
17739 msgstr ""
17740
17741 #. type: Plain text
17742 #: debian-trixie debian-unstable
17743 msgid ""
17744 "Like CW<\\*(C`my\\*(C'>, CW<\\*(C`local\\*(C'>, and \\&CW<\\*(C`our\\*(C'>, "
17745 "CW<\\*(C`state\\*(C'> can operate on a variable anywhere it appears in an "
17746 "expression (aside from interpolation in strings). The declaration will not "
17747 "apply to additional uses of the same variable until the next statement. This "
17748 "means additional uses of that variable within the same statement will act as "
17749 "they would have before that declaration occurred, or result in a strict "
17750 "'vars' error, as appropriate."
17751 msgstr ""
17752
17753 #. type: Plain text
17754 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17755 #: opensuse-leap-16-1 opensuse-tumbleweed
17756 #, no-wrap
17757 msgid ""
17758 "\\& package main;\n"
17759 "\\& use feature \\*(Aqstate\\*(Aq;\n"
17760 "\\& our $x = 2;\n"
17761 "\\& foo($x, state $x = $x + 1, $x); # foo() receives (2, 3, 2)\n"
17762 "\\& foo($x, $main::x); # foo() receives (3, 2)\n"
17763 msgstr ""
17764
17765 #. type: IX
17766 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17767 #: opensuse-leap-16-1 opensuse-tumbleweed
17768 #, no-wrap
17769 msgid "study SCALAR"
17770 msgstr ""
17771
17772 #. type: IX
17773 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17774 #: opensuse-leap-16-1 opensuse-tumbleweed
17775 #, no-wrap
17776 msgid "study"
17777 msgstr ""
17778
17779 #. type: Plain text
17780 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17781 #: opensuse-leap-16-1 opensuse-tumbleweed
17782 msgid ""
17783 "At this time, CW<\\*(C`study\\*(C'> does nothing. This may change in the "
17784 "future."
17785 msgstr ""
17786
17787 #. type: Plain text
17788 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17789 #: opensuse-leap-16-1 opensuse-tumbleweed
17790 msgid ""
17791 "Prior to Perl version 5.16, it would create an inverted index of all "
17792 "characters that occurred in the given SCALAR (or CW<$_> if unspecified). "
17793 "When matching a pattern, the rarest character from the pattern would be "
17794 "looked up in this index. Rarity was based on some static frequency tables "
17795 "constructed from some C programs and English text."
17796 msgstr ""
17797
17798 #. type: IX
17799 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17800 #: opensuse-leap-16-1 opensuse-tumbleweed
17801 #, no-wrap
17802 msgid "sub NAME BLOCK"
17803 msgstr ""
17804
17805 #. type: IX
17806 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17807 #: opensuse-leap-16-1 opensuse-tumbleweed
17808 #, no-wrap
17809 msgid "sub"
17810 msgstr ""
17811
17812 #. type: IX
17813 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17814 #: opensuse-leap-16-1 opensuse-tumbleweed
17815 #, no-wrap
17816 msgid "sub NAME (PROTO) BLOCK"
17817 msgstr ""
17818
17819 #. type: IX
17820 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17821 #: opensuse-leap-16-1 opensuse-tumbleweed
17822 #, no-wrap
17823 msgid "sub NAME : ATTRS BLOCK"
17824 msgstr ""
17825
17826 #. type: IX
17827 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17828 #: opensuse-leap-16-1 opensuse-tumbleweed
17829 #, no-wrap
17830 msgid "sub NAME (PROTO) : ATTRS BLOCK"
17831 msgstr ""
17832
17833 #. type: Plain text
17834 #: debian-trixie debian-unstable
17835 msgid ""
17836 "This is subroutine definition, not a real function I<per se>. Without a "
17837 "BLOCK it's just a forward declaration. Without a NAME, it's an anonymous "
17838 "function declaration, so does return a value: the CODE ref of the closure "
17839 "just created."
17840 msgstr ""
17841
17842 #. type: Plain text
17843 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17844 #: opensuse-leap-16-1 opensuse-tumbleweed
17845 msgid ""
17846 "See perlsub and perlref for details about subroutines and references; see "
17847 "attributes and Attribute::Handlers for more information about attributes."
17848 msgstr ""
17849
17850 #. type: IP
17851 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17852 #: opensuse-leap-16-1 opensuse-tumbleweed
17853 #, no-wrap
17854 msgid "_\\|_SUB_\\|_"
17855 msgstr ""
17856
17857 #. type: IX
17858 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17859 #: opensuse-leap-16-1 opensuse-tumbleweed
17860 #, no-wrap
17861 msgid "__SUB__"
17862 msgstr ""
17863
17864 #. type: Plain text
17865 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17866 #: opensuse-leap-16-1 opensuse-tumbleweed
17867 msgid ""
17868 "A special token that returns a reference to the current subroutine, or "
17869 "\\&CW<\\*(C`undef\\*(C'> outside of a subroutine."
17870 msgstr ""
17871
17872 #. type: Plain text
17873 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17874 #: opensuse-leap-16-1 opensuse-tumbleweed
17875 msgid ""
17876 "The behaviour of CW<\\*(C`_\\|_SUB_\\|_\\*(C'> within a regex code block "
17877 "(such as CW<\\*(C`/(?{...})/\\*(C'>) is subject to change."
17878 msgstr ""
17879
17880 #. type: Plain text
17881 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17882 #: opensuse-leap-16-1 opensuse-tumbleweed
17883 msgid ""
17884 "This token is only available under CW<\\*(C`use v5.16\\*(C'> or the "
17885 "\\&CW<\"current_sub\"> feature. See feature."
17886 msgstr ""
17887
17888 #. type: IX
17889 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17890 #: opensuse-leap-16-1 opensuse-tumbleweed
17891 #, no-wrap
17892 msgid "substr EXPR,OFFSET,LENGTH,REPLACEMENT"
17893 msgstr ""
17894
17895 #. type: IX
17896 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17897 #: opensuse-leap-16-1 opensuse-tumbleweed
17898 #, no-wrap
17899 msgid "substr substring mid left right"
17900 msgstr ""
17901
17902 #. type: IX
17903 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17904 #: opensuse-leap-16-1 opensuse-tumbleweed
17905 #, no-wrap
17906 msgid "substr EXPR,OFFSET,LENGTH"
17907 msgstr ""
17908
17909 #. type: IX
17910 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17911 #: opensuse-leap-16-1 opensuse-tumbleweed
17912 #, no-wrap
17913 msgid "substr EXPR,OFFSET"
17914 msgstr ""
17915
17916 #. type: Plain text
17917 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17918 #: opensuse-leap-16-1 opensuse-tumbleweed
17919 msgid ""
17920 "Extracts a substring out of EXPR and returns it. First character is at "
17921 "offset zero. If OFFSET is negative, starts that far back from the end of "
17922 "the string. If LENGTH is omitted, returns everything through the end of the "
17923 "string. If LENGTH is negative, leaves that many characters off the end of "
17924 "the string."
17925 msgstr ""
17926
17927 #. type: Plain text
17928 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17929 #: opensuse-leap-16-1 opensuse-tumbleweed
17930 #, no-wrap
17931 msgid ""
17932 "\\& my $s = \"The black cat climbed the green tree\";\n"
17933 "\\& my $color = substr $s, 4, 5; # black\n"
17934 "\\& my $middle = substr $s, 4, -11; # black cat climbed the\n"
17935 "\\& my $end = substr $s, 14; # climbed the green tree\n"
17936 "\\& my $tail = substr $s, -4; # tree\n"
17937 "\\& my $z = substr $s, -4, 2; # tr\n"
17938 msgstr ""
17939
17940 #. type: Plain text
17941 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17942 #: opensuse-leap-16-1 opensuse-tumbleweed
17943 msgid ""
17944 "You can use the CW<\\*(C`substr\\*(C'> function as an lvalue, in which case "
17945 "EXPR must itself be an lvalue. If you assign something shorter than LENGTH, "
17946 "the string will shrink, and if you assign something longer than LENGTH, the "
17947 "string will grow to accommodate it. To keep the string the same length, you "
17948 "may need to pad or chop your value using \\&CW<\\*(C`sprintf\\*(C'>."
17949 msgstr ""
17950
17951 #. type: Plain text
17952 #: debian-trixie debian-unstable
17953 msgid ""
17954 "If OFFSET and LENGTH specify a substring that is partly outside the string, "
17955 "only the part within the string is returned. If the substring is beyond "
17956 "either end of the string, \\&CW<\\*(C`substr\\*(C'> returns the undefined "
17957 "value and produces a warning. When used as an lvalue, specifying a "
17958 "substring that is entirely outside the string raises an exception. Here's "
17959 "an example showing the behavior for boundary cases:"
17960 msgstr ""
17961
17962 #. type: Plain text
17963 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17964 #: opensuse-leap-16-1 opensuse-tumbleweed
17965 #, no-wrap
17966 msgid ""
17967 "\\& my $name = \\*(Aqfred\\*(Aq;\n"
17968 "\\& substr($name, 4) = \\*(Aqdy\\*(Aq; # $name is now \\*(Aqfreddy\\*(Aq\n"
17969 "\\& my $null = substr $name, 6, 2; # returns \"\" (no warning)\n"
17970 "\\& my $oops = substr $name, 7; # returns undef, with warning\n"
17971 "\\& substr($name, 7) = \\*(Aqgap\\*(Aq; # raises an exception\n"
17972 msgstr ""
17973
17974 #. type: Plain text
17975 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17976 #: opensuse-leap-16-1 opensuse-tumbleweed
17977 msgid ""
17978 "An alternative to using \\&CW<\\*(C`substr\\*(C'> as an lvalue is to specify "
17979 "the REPLACEMENT string as the 4th argument. This allows you to replace "
17980 "parts of the EXPR and return what was there before in one operation, just as "
17981 "you can with \\&CW<\\*(C`splice\\*(C'>."
17982 msgstr ""
17983
17984 #. type: Plain text
17985 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
17986 #: opensuse-leap-16-1 opensuse-tumbleweed
17987 #, no-wrap
17988 msgid ""
17989 "\\& my $s = \"The black cat climbed the green tree\";\n"
17990 "\\& my $z = substr $s, 14, 7, \"jumped from\"; # climbed\n"
17991 "\\& # $s is now \"The black cat jumped from the green tree\"\n"
17992 msgstr ""
17993
17994 #. type: Plain text
17995 #: debian-trixie debian-unstable
17996 msgid ""
17997 "Note that the lvalue returned by the three-argument version of "
17998 "\\&CW<\\*(C`substr\\*(C'> acts as a 'magic bullet'; each time it is assigned "
17999 "to, it remembers which part of the original string is being modified; for "
18000 "example:"
18001 msgstr ""
18002
18003 #. type: Plain text
18004 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18005 #: opensuse-leap-16-1 opensuse-tumbleweed
18006 #, no-wrap
18007 msgid ""
18008 "\\& my $x = \\*(Aq1234\\*(Aq;\n"
18009 "\\& for (substr($x,1,2)) {\n"
18010 "\\& $_ = \\*(Aqa\\*(Aq; print $x,\"\\en\"; # prints 1a4\n"
18011 "\\& $_ = \\*(Aqxyz\\*(Aq; print $x,\"\\en\"; # prints 1xyz4\n"
18012 "\\& $x = \\*(Aq56789\\*(Aq;\n"
18013 "\\& $_ = \\*(Aqpq\\*(Aq; print $x,\"\\en\"; # prints 5pq9\n"
18014 "\\& }\n"
18015 msgstr ""
18016
18017 #. type: Plain text
18018 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18019 #: opensuse-leap-16-1 opensuse-tumbleweed
18020 msgid ""
18021 "With negative offsets, it remembers its position from the end of the string "
18022 "when the target string is modified:"
18023 msgstr ""
18024
18025 #. type: Plain text
18026 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18027 #: opensuse-leap-16-1 opensuse-tumbleweed
18028 #, no-wrap
18029 msgid ""
18030 "\\& my $x = \\*(Aq1234\\*(Aq;\n"
18031 "\\& for (substr($x, -3, 2)) {\n"
18032 "\\& $_ = \\*(Aqa\\*(Aq; print $x,\"\\en\"; # prints 1a4, as above\n"
18033 "\\& $x = \\*(Aqabcdefg\\*(Aq;\n"
18034 "\\& print $_,\"\\en\"; # prints f\n"
18035 "\\& }\n"
18036 msgstr ""
18037
18038 #. type: Plain text
18039 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18040 #: opensuse-leap-16-1 opensuse-tumbleweed
18041 msgid ""
18042 "Prior to Perl version 5.10, the result of using an lvalue multiple times was "
18043 "unspecified. Prior to 5.16, the result with negative offsets was "
18044 "unspecified."
18045 msgstr ""
18046
18047 #. type: IX
18048 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18049 #: opensuse-leap-16-1 opensuse-tumbleweed
18050 #, no-wrap
18051 msgid "symlink OLDFILE,NEWFILE"
18052 msgstr ""
18053
18054 #. type: IX
18055 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18056 #: opensuse-leap-16-1 opensuse-tumbleweed
18057 #, no-wrap
18058 msgid "symlink link symbolic link link, symbolic"
18059 msgstr ""
18060
18061 #. type: Plain text
18062 #: debian-trixie debian-unstable
18063 msgid ""
18064 "Creates a new filename symbolically linked to the old filename. Returns "
18065 "CW<1> for success, CW<0> otherwise. On systems that don't support symbolic "
18066 "links, raises an exception. To check for that, use eval:"
18067 msgstr ""
18068
18069 #. type: Plain text
18070 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18071 #: opensuse-leap-16-1 opensuse-tumbleweed
18072 #, no-wrap
18073 msgid "\\& my $symlink_exists = eval { symlink(\"\",\"\"); 1 };\n"
18074 msgstr ""
18075
18076 #. type: Plain text
18077 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18078 #: opensuse-leap-16-1 opensuse-tumbleweed
18079 msgid "Portability issues: \"symlink\" in perlport."
18080 msgstr ""
18081
18082 #. type: IX
18083 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18084 #: opensuse-leap-16-1 opensuse-tumbleweed
18085 #, no-wrap
18086 msgid "syscall NUMBER, LIST"
18087 msgstr ""
18088
18089 #. type: IX
18090 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18091 #: opensuse-leap-16-1 opensuse-tumbleweed
18092 #, no-wrap
18093 msgid "syscall system call"
18094 msgstr ""
18095
18096 #. type: Plain text
18097 #: debian-trixie debian-unstable
18098 msgid ""
18099 "Calls the system call specified as the first element of the list, passing "
18100 "the remaining elements as arguments to the system call. If unimplemented, "
18101 "raises an exception. The arguments are interpreted as follows: if a given "
18102 "argument is numeric, the argument is passed as an int. If not, the pointer "
18103 "to the string value is passed. You are responsible to make sure a string is "
18104 "pre-extended long enough to receive any result that might be written into a "
18105 "string. You can't use a string literal (or other read-only string) as an "
18106 "argument to \\&CW<\\*(C`syscall\\*(C'> because Perl has to assume that any "
18107 "string pointer might be written through. If your integer arguments are not "
18108 "literals and have never been interpreted in a numeric context, you may need "
18109 "to add CW<0> to them to force them to look like numbers. This emulates the "
18110 "\\&CW<\\*(C`syswrite\\*(C'> function (or vice versa):"
18111 msgstr ""
18112
18113 #. type: Plain text
18114 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18115 #: opensuse-leap-16-1 opensuse-tumbleweed
18116 #, no-wrap
18117 msgid ""
18118 "\\& require \\*(Aqsyscall.ph\\*(Aq; # may need to run h2ph\n"
18119 "\\& my $s = \"hi there\\en\";\n"
18120 "\\& syscall(SYS_write(), fileno(STDOUT), $s, length $s);\n"
18121 msgstr ""
18122
18123 #. type: Plain text
18124 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18125 #: opensuse-leap-16-1 opensuse-tumbleweed
18126 msgid ""
18127 "Note that Perl supports passing of up to only 14 arguments to your syscall, "
18128 "which in practice should (usually) suffice."
18129 msgstr ""
18130
18131 #. type: Plain text
18132 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18133 #: opensuse-leap-16-1 opensuse-tumbleweed
18134 msgid ""
18135 "Syscall returns whatever value returned by the system call it calls. If the "
18136 "system call fails, CW<\\*(C`syscall\\*(C'> returns \\&CW<-1> and sets CW<$!> "
18137 "(errno). Note that some system calls I<can> legitimately return CW<-1>. "
18138 "The proper way to handle such calls is to assign CW<\\*(C`$! = 0\\*(C'> "
18139 "before the call, then check the value of CW<$!> if "
18140 "\\&CW<\\*(C`syscall\\*(C'> returns CW<-1>."
18141 msgstr ""
18142
18143 #. type: Plain text
18144 #: debian-trixie debian-unstable
18145 msgid ""
18146 "There's a problem with CW<\\*(C`syscall(SYS_pipe())\\*(C'>: it returns the "
18147 "file number of the read end of the pipe it creates, but there is no way to "
18148 "retrieve the file number of the other end. You can avoid this problem by "
18149 "using CW<\\*(C`pipe\\*(C'> instead."
18150 msgstr ""
18151
18152 #. type: Plain text
18153 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18154 #: opensuse-leap-16-1 opensuse-tumbleweed
18155 msgid "Portability issues: \"syscall\" in perlport."
18156 msgstr ""
18157
18158 #. type: IX
18159 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18160 #: opensuse-leap-16-1 opensuse-tumbleweed
18161 #, no-wrap
18162 msgid "sysopen FILEHANDLE,FILENAME,MODE"
18163 msgstr ""
18164
18165 #. type: IX
18166 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18167 #: opensuse-leap-16-1 opensuse-tumbleweed
18168 #, no-wrap
18169 msgid "sysopen"
18170 msgstr ""
18171
18172 #. type: IX
18173 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18174 #: opensuse-leap-16-1 opensuse-tumbleweed
18175 #, no-wrap
18176 msgid "sysopen FILEHANDLE,FILENAME,MODE,PERMS"
18177 msgstr ""
18178
18179 #. type: Plain text
18180 #: debian-trixie debian-unstable
18181 msgid ""
18182 "Opens the file whose filename is given by FILENAME, and associates it with "
18183 "FILEHANDLE. If FILEHANDLE is an expression, its value is used as the real "
18184 "filehandle wanted; an undefined scalar will be suitably autovivified. This "
18185 "function calls the underlying operating system's B<open>\\|(2) function with "
18186 "the parameters FILENAME, MODE, and PERMS."
18187 msgstr ""
18188
18189 #. type: Plain text
18190 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18191 #: opensuse-leap-16-1 opensuse-tumbleweed
18192 msgid "Returns true on success and CW<\\*(C`undef\\*(C'> otherwise."
18193 msgstr ""
18194
18195 #. type: Plain text
18196 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18197 #: opensuse-leap-16-1 opensuse-tumbleweed
18198 msgid ""
18199 "PerlIO layers will be applied to the handle the same way they would in an "
18200 "\\&CW<\\*(C`open\\*(C'> call that does not specify layers. That is, the "
18201 "current value of CW<\\*(C`${^OPEN}\\*(C'> as set by the open pragma in a "
18202 "lexical scope, or the CW<\\*(C`-C\\*(C'> command-line option or "
18203 "CW<\\*(C`PERL_UNICODE\\*(C'> environment variable in the main program scope, "
18204 "falling back to the platform defaults as described in \"Defaults and how to "
18205 "override them\" in PerlIO. If you want to remove any layers that may "
18206 "transform the byte stream, use \\&CW<\\*(C`binmode\\*(C'> after opening it."
18207 msgstr ""
18208
18209 #. type: Plain text
18210 #: debian-trixie debian-unstable
18211 msgid ""
18212 "The possible values and flag bits of the MODE parameter are system-"
18213 "dependent; they are available via the standard module "
18214 "\\&CW<\\*(C`Fcntl\\*(C'>. See the documentation of your operating system's "
18215 "\\&B<open>\\|(2) syscall to see which values and flag bits are available. "
18216 "You may combine several flags using the CW<\\*(C`|\\*(C'>-operator."
18217 msgstr ""
18218
18219 #. type: Plain text
18220 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18221 #: opensuse-leap-16-1 opensuse-tumbleweed
18222 msgid ""
18223 "Some of the most common values are CW<\\*(C`O_RDONLY\\*(C'> for opening the "
18224 "file in read-only mode, CW<\\*(C`O_WRONLY\\*(C'> for opening the file in "
18225 "write-only mode, and CW<\\*(C`O_RDWR\\*(C'> for opening the file in read-"
18226 "write mode."
18227 msgstr ""
18228
18229 #. type: IX
18230 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18231 #: opensuse-leap-16-1 opensuse-tumbleweed
18232 #, no-wrap
18233 msgid "O_RDONLY O_RDWR O_WRONLY"
18234 msgstr ""
18235
18236 #. type: Plain text
18237 #: debian-trixie debian-unstable
18238 msgid ""
18239 "For historical reasons, some values work on almost every system supported by "
18240 "Perl: 0 means read-only, 1 means write-only, and 2 means read/write. We "
18241 "know that these values do I<not> work under OS/390; you probably don't want "
18242 "to use them in new code."
18243 msgstr ""
18244
18245 #. type: Plain text
18246 #: debian-trixie debian-unstable
18247 msgid ""
18248 "If the file named by FILENAME does not exist and the \\&CW<\\*(C`open\\*(C'> "
18249 "call creates it (typically because MODE includes the CW<\\*(C`O_CREAT\\*(C'> "
18250 "flag), then the value of PERMS specifies the permissions of the newly "
18251 "created file. If you omit the PERMS argument to CW<\\*(C`sysopen\\*(C'>, "
18252 "Perl uses the octal value CW<0666>. These permission values need to be in "
18253 "octal, and are modified by your process's current CW<\\*(C`umask\\*(C'>."
18254 msgstr ""
18255
18256 #. type: IX
18257 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18258 #: opensuse-leap-16-1 opensuse-tumbleweed
18259 #, no-wrap
18260 msgid "O_CREAT"
18261 msgstr ""
18262
18263 #. type: Plain text
18264 #: debian-trixie debian-unstable
18265 msgid ""
18266 "In many systems the CW<\\*(C`O_EXCL\\*(C'> flag is available for opening "
18267 "files in exclusive mode. This is B<not> locking: exclusiveness means here "
18268 "that if the file already exists, \\&CW<\\*(C`sysopen\\*(C'> fails. "
18269 "CW<\\*(C`O_EXCL\\*(C'> may not work on network filesystems, and has no "
18270 "effect unless the CW<\\*(C`O_CREAT\\*(C'> flag is set as well. Setting "
18271 "CW<\\*(C`O_CREAT|O_EXCL\\*(C'> prevents the file from being opened if it is "
18272 "a symbolic link. It does not protect against symbolic links in the file's "
18273 "path."
18274 msgstr ""
18275
18276 #. type: IX
18277 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18278 #: opensuse-leap-16-1 opensuse-tumbleweed
18279 #, no-wrap
18280 msgid "O_EXCL"
18281 msgstr ""
18282
18283 #. type: Plain text
18284 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18285 #: opensuse-leap-16-1 opensuse-tumbleweed
18286 msgid ""
18287 "Sometimes you may want to truncate an already-existing file. This can be "
18288 "done using the CW<\\*(C`O_TRUNC\\*(C'> flag. The behavior of "
18289 "\\&CW<\\*(C`O_TRUNC\\*(C'> with CW<\\*(C`O_RDONLY\\*(C'> is undefined."
18290 msgstr ""
18291
18292 #. type: IX
18293 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18294 #: opensuse-leap-16-1 opensuse-tumbleweed
18295 #, no-wrap
18296 msgid "O_TRUNC"
18297 msgstr ""
18298
18299 #. type: Plain text
18300 #: debian-trixie debian-unstable
18301 msgid ""
18302 "You should seldom if ever use CW<0644> as argument to "
18303 "\\&CW<\\*(C`sysopen\\*(C'>, because that takes away the user's option to "
18304 "have a more permissive umask. Better to omit it. See CW<\\*(C`umask\\*(C'> "
18305 "for more on this."
18306 msgstr ""
18307
18308 #. type: Plain text
18309 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18310 #: opensuse-leap-16-1 opensuse-tumbleweed
18311 msgid ""
18312 "This function has no direct relation to the usage of "
18313 "\\&CW<\\*(C`sysread\\*(C'>, \\&CW<\\*(C`syswrite\\*(C'>, or "
18314 "CW<\\*(C`sysseek\\*(C'>. A handle opened with this function can be used "
18315 "with buffered IO just as one opened with \\&CW<\\*(C`open\\*(C'> can be used "
18316 "with unbuffered IO."
18317 msgstr ""
18318
18319 #. type: Plain text
18320 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18321 #: opensuse-leap-16-1 opensuse-tumbleweed
18322 msgid ""
18323 "Note that under Perls older than 5.8.0, \\&CW<\\*(C`sysopen\\*(C'> depends "
18324 "on the \\&B<fdopen>\\|(3) C library function. On many Unix systems, "
18325 "B<fdopen>\\|(3) is known to fail when file descriptors exceed a certain "
18326 "value, typically 255. If you need more file descriptors than that, consider "
18327 "using the \\&CW<\\*(C`POSIX::open\\*(C'> function. For Perls 5.8.0 and "
18328 "later, PerlIO is (most often) the default."
18329 msgstr ""
18330
18331 #. type: Plain text
18332 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18333 #: opensuse-leap-16-1 opensuse-tumbleweed
18334 msgid "See perlopentut for a kinder, gentler explanation of opening files."
18335 msgstr ""
18336
18337 #. type: Plain text
18338 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18339 #: opensuse-leap-16-1 opensuse-tumbleweed
18340 msgid "Portability issues: \"sysopen\" in perlport."
18341 msgstr ""
18342
18343 #. type: IX
18344 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18345 #: opensuse-leap-16-1 opensuse-tumbleweed
18346 #, no-wrap
18347 msgid "sysread FILEHANDLE,SCALAR,LENGTH,OFFSET"
18348 msgstr ""
18349
18350 #. type: IX
18351 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18352 #: opensuse-leap-16-1 opensuse-tumbleweed
18353 #, no-wrap
18354 msgid "sysread"
18355 msgstr ""
18356
18357 #. type: IX
18358 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18359 #: opensuse-leap-16-1 opensuse-tumbleweed
18360 #, no-wrap
18361 msgid "sysread FILEHANDLE,SCALAR,LENGTH"
18362 msgstr ""
18363
18364 #. type: Plain text
18365 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18366 #: opensuse-leap-16-1 opensuse-tumbleweed
18367 msgid ""
18368 "Attempts to read LENGTH bytes of data into variable SCALAR from the "
18369 "specified FILEHANDLE, using B<read>\\|(2). It bypasses any PerlIO layers "
18370 "including buffered IO (but is affected by the presence of the "
18371 "CW<\\*(C`:utf8\\*(C'> layer as described later), so mixing this with other "
18372 "kinds of reads, \\&CW<\\*(C`print\\*(C'>, CW<\\*(C`write\\*(C'>, "
18373 "\\&CW<\\*(C`seek\\*(C'>, \\&CW<\\*(C`tell\\*(C'>, or CW<\\*(C`eof\\*(C'> can "
18374 "cause confusion because the \\&CW<\\*(C`:perlio\\*(C'> or "
18375 "CW<\\*(C`:crlf\\*(C'> layers usually buffer data. Returns the number of "
18376 "bytes actually read, CW<0> at end of file, or undef if there was an error "
18377 "(in the latter case CW<$!> is also set). SCALAR will be grown or shrunk so "
18378 "that the last byte actually read is the last byte of the scalar after the "
18379 "read."
18380 msgstr ""
18381
18382 #. type: Plain text
18383 #: debian-trixie debian-unstable
18384 msgid ""
18385 "There is no B<syseof()> function, which is ok, since \\&CW<\\*(C`eof\\*(C'> "
18386 "doesn't work well on device files (like ttys) anyway. Use "
18387 "CW<\\*(C`sysread\\*(C'> and check for a return value of 0 to decide whether "
18388 "you're done."
18389 msgstr ""
18390
18391 #. type: Plain text
18392 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18393 #: opensuse-leap-16-1 opensuse-tumbleweed
18394 msgid ""
18395 "Note that if the filehandle has been marked as CW<\\*(C`:utf8\\*(C'>, "
18396 "CW<\\*(C`sysread\\*(C'> will throw an exception. The CW<:encoding(...)> "
18397 "layer implicitly introduces the CW<\\*(C`:utf8\\*(C'> layer. See "
18398 "\\&CW<\\*(C`binmode\\*(C'>, \\&CW<\\*(C`open\\*(C'>, and the open pragma."
18399 msgstr ""
18400
18401 #. type: IX
18402 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18403 #: opensuse-leap-16-1 opensuse-tumbleweed
18404 #, no-wrap
18405 msgid "sysseek FILEHANDLE,POSITION,WHENCE"
18406 msgstr ""
18407
18408 #. type: IX
18409 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18410 #: opensuse-leap-16-1 opensuse-tumbleweed
18411 #, no-wrap
18412 msgid "sysseek lseek"
18413 msgstr ""
18414
18415 #. type: Plain text
18416 #: debian-trixie debian-unstable
18417 msgid ""
18418 "Sets FILEHANDLE's system position I<in bytes> using B<lseek>\\|(2). "
18419 "FILEHANDLE may be an expression whose value gives the name of the "
18420 "filehandle. The values for WHENCE are CW<0> to set the new position to "
18421 "POSITION; CW<1> to set it to the current position plus POSITION; and CW<2> "
18422 "to set it to EOF plus POSITION, typically negative."
18423 msgstr ""
18424
18425 #. type: Plain text
18426 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18427 #: opensuse-leap-16-1 opensuse-tumbleweed
18428 msgid ""
18429 "\\&CW<\\*(C`sysseek\\*(C'> bypasses normal buffered IO, so mixing it with "
18430 "reads other than \\&CW<\\*(C`sysread\\*(C'> (for example "
18431 "\\&CW<\\*(C`readline\\*(C'> or \\&CW<\\*(C`read\\*(C'>), "
18432 "\\&CW<\\*(C`print\\*(C'>, CW<\\*(C`write\\*(C'>, \\&CW<\\*(C`seek\\*(C'>, "
18433 "\\&CW<\\*(C`tell\\*(C'>, or CW<\\*(C`eof\\*(C'> may cause confusion."
18434 msgstr ""
18435
18436 #. type: Plain text
18437 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18438 #: opensuse-leap-16-1 opensuse-tumbleweed
18439 msgid ""
18440 "For WHENCE, you may also use the constants CW<\\*(C`SEEK_SET\\*(C'>, "
18441 "CW<\\*(C`SEEK_CUR\\*(C'>, and CW<\\*(C`SEEK_END\\*(C'> (start of the file, "
18442 "current position, end of the file) from the Fcntl module. Use of the "
18443 "constants is also more portable than relying on 0, 1, and 2. For example to "
18444 "define a \"systell\" function:"
18445 msgstr ""
18446
18447 #. type: Plain text
18448 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18449 #: opensuse-leap-16-1 opensuse-tumbleweed
18450 #, no-wrap
18451 msgid ""
18452 "\\& use Fcntl \\*(AqSEEK_CUR\\*(Aq;\n"
18453 "\\& sub systell { sysseek($_[0], 0, SEEK_CUR) }\n"
18454 msgstr ""
18455
18456 #. type: Plain text
18457 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18458 #: opensuse-leap-16-1 opensuse-tumbleweed
18459 msgid ""
18460 "Returns the new position, or the undefined value on failure. A position of "
18461 "zero is returned as the string CW<\"0 but true\">; thus "
18462 "\\&CW<\\*(C`sysseek\\*(C'> returns true on success and false on failure, yet "
18463 "you can still easily determine the new position."
18464 msgstr ""
18465
18466 #. type: IX
18467 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18468 #: opensuse-leap-16-1 opensuse-tumbleweed
18469 #, no-wrap
18470 msgid "system LIST"
18471 msgstr ""
18472
18473 #. type: IX
18474 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18475 #: opensuse-leap-16-1 opensuse-tumbleweed
18476 #, no-wrap
18477 msgid "system shell"
18478 msgstr ""
18479
18480 #. type: IX
18481 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18482 #: opensuse-leap-16-1 opensuse-tumbleweed
18483 #, no-wrap
18484 msgid "system PROGRAM LIST"
18485 msgstr ""
18486
18487 #. type: Plain text
18488 #: debian-trixie debian-unstable
18489 msgid ""
18490 "Does exactly the same thing as CW<\\*(C`exec\\*(C'>, except that a fork is "
18491 "done first and the parent process waits for the child process to exit. Note "
18492 "that argument processing varies depending on the number of arguments. If "
18493 "there is more than one argument in LIST, or if LIST is an array with more "
18494 "than one value, starts the program given by the first element of the list "
18495 "with arguments given by the rest of the list. If there is only one scalar "
18496 "argument, the argument is checked for shell metacharacters, and if there are "
18497 "any, the entire argument is passed to the system's command shell for parsing "
18498 "(this is CW<\\*(C`/bin/sh -c\\*(C'> on Unix platforms, but varies on other "
18499 "platforms). If there are no shell metacharacters in the argument, it is "
18500 "split into words and passed directly to CW<\\*(C`execvp\\*(C'>, which is "
18501 "more efficient. On Windows, only the CW<\\*(C`system PROGRAM LIST\\*(C'> "
18502 "syntax will reliably avoid using the shell; CW<\\*(C`system LIST\\*(C'>, "
18503 "even with more than one element, will fall back to the shell if the first "
18504 "spawn fails."
18505 msgstr ""
18506
18507 #. type: Plain text
18508 #: debian-trixie debian-unstable
18509 msgid ""
18510 "The return value is the exit status of the program as returned by the "
18511 "\\&CW<\\*(C`wait\\*(C'> call. To get the actual exit value, shift right by "
18512 "eight (see below). See also CW<\\*(C`exec\\*(C'>. This is I<not> what you "
18513 "want to use to capture the output from a command; for that you should use "
18514 "merely backticks or \\&CW<\\*(C`qx//\\*(C'>, as described in \"`STRING`\" in "
18515 "perlop. Return value of -1 indicates a failure to start the program or an "
18516 "error of the B<wait>\\|(2) system call (inspect \\&CW<$!> for the reason)."
18517 msgstr ""
18518
18519 #. type: Plain text
18520 #: debian-trixie debian-unstable
18521 msgid ""
18522 "If you'd like to make CW<\\*(C`system\\*(C'> (and many other bits of Perl) "
18523 "die on error, have a look at the autodie pragma."
18524 msgstr ""
18525
18526 #. type: Plain text
18527 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18528 #: opensuse-leap-16-1 opensuse-tumbleweed
18529 msgid ""
18530 "Like CW<\\*(C`exec\\*(C'>, CW<\\*(C`system\\*(C'> allows you to lie to a "
18531 "program about its name if you use the CW<\\*(C`system PROGRAM LIST\\*(C'> "
18532 "syntax. Again, see CW<\\*(C`exec\\*(C'>."
18533 msgstr ""
18534
18535 #. type: Plain text
18536 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18537 #: opensuse-leap-16-1 opensuse-tumbleweed
18538 msgid ""
18539 "Since CW<\\*(C`SIGINT\\*(C'> and CW<\\*(C`SIGQUIT\\*(C'> are ignored during "
18540 "the execution of \\&CW<\\*(C`system\\*(C'>, if you expect your program to "
18541 "terminate on receipt of these signals you will need to arrange to do so "
18542 "yourself based on the return value."
18543 msgstr ""
18544
18545 #. type: Plain text
18546 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18547 #: opensuse-leap-16-1 opensuse-tumbleweed
18548 #, no-wrap
18549 msgid ""
18550 "\\& my @args = (\"command\", \"arg1\", \"arg2\");\n"
18551 "\\& system(@args) == 0\n"
18552 "\\& or die \"system @args failed: $?\";\n"
18553 msgstr ""
18554
18555 #. type: Plain text
18556 #: debian-trixie debian-unstable
18557 msgid ""
18558 "If you'd like to manually inspect CW<\\*(C`system\\*(C'>'s failure, you can "
18559 "check all possible failure modes by inspecting \\&CW<$?> like this:"
18560 msgstr ""
18561
18562 #. type: Plain text
18563 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18564 #: opensuse-leap-16-1 opensuse-tumbleweed
18565 #, no-wrap
18566 msgid ""
18567 "\\& if ($? == -1) {\n"
18568 "\\& print \"failed to execute: $!\\en\";\n"
18569 "\\& }\n"
18570 "\\& elsif ($? & 127) {\n"
18571 "\\& printf \"child died with signal %d, %s coredump\\en\",\n"
18572 "\\& ($? & 127), ($? & 128) ? \\*(Aqwith\\*(Aq : \\*(Aqwithout\\*(Aq;\n"
18573 "\\& }\n"
18574 "\\& else {\n"
18575 "\\& printf \"child exited with value %d\\en\", $? E<gt>E<gt> 8;\n"
18576 "\\& }\n"
18577 msgstr ""
18578
18579 #. type: Plain text
18580 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18581 #: opensuse-leap-16-1 opensuse-tumbleweed
18582 msgid ""
18583 "Alternatively, you may inspect the value of \\&CW<\\*(C`$"
18584 "{^CHILD_ERROR_NATIVE}\\*(C'> with the \\&CW<\\*(C`W*()\\*(C'> calls from the "
18585 "POSIX module."
18586 msgstr ""
18587
18588 #. type: Plain text
18589 #: debian-trixie debian-unstable
18590 msgid ""
18591 "When CW<\\*(C`system\\*(C'>'s arguments are executed indirectly by the "
18592 "shell, results and return codes are subject to its quirks. See \"`STRING`\" "
18593 "in perlop and CW<\\*(C`exec\\*(C'> for details."
18594 msgstr ""
18595
18596 #. type: Plain text
18597 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18598 #: opensuse-leap-16-1 opensuse-tumbleweed
18599 msgid ""
18600 "Since CW<\\*(C`system\\*(C'> does a CW<\\*(C`fork\\*(C'> and "
18601 "\\&CW<\\*(C`wait\\*(C'> it may affect a CW<\\*(C`SIGCHLD\\*(C'> handler. "
18602 "See perlipc for details."
18603 msgstr ""
18604
18605 #. type: Plain text
18606 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18607 #: opensuse-leap-16-1 opensuse-tumbleweed
18608 msgid "Portability issues: \"system\" in perlport."
18609 msgstr ""
18610
18611 #. type: IX
18612 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18613 #: opensuse-leap-16-1 opensuse-tumbleweed
18614 #, no-wrap
18615 msgid "syswrite FILEHANDLE,SCALAR,LENGTH,OFFSET"
18616 msgstr ""
18617
18618 #. type: IX
18619 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18620 #: opensuse-leap-16-1 opensuse-tumbleweed
18621 #, no-wrap
18622 msgid "syswrite"
18623 msgstr ""
18624
18625 #. type: IX
18626 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18627 #: opensuse-leap-16-1 opensuse-tumbleweed
18628 #, no-wrap
18629 msgid "syswrite FILEHANDLE,SCALAR,LENGTH"
18630 msgstr ""
18631
18632 #. type: IX
18633 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18634 #: opensuse-leap-16-1 opensuse-tumbleweed
18635 #, no-wrap
18636 msgid "syswrite FILEHANDLE,SCALAR"
18637 msgstr ""
18638
18639 #. type: Plain text
18640 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18641 #: opensuse-leap-16-1 opensuse-tumbleweed
18642 msgid ""
18643 "Attempts to write LENGTH bytes of data from variable SCALAR to the specified "
18644 "FILEHANDLE, using B<write>\\|(2). If LENGTH is not specified, writes whole "
18645 "SCALAR. It bypasses any PerlIO layers including buffered IO (but is "
18646 "affected by the presence of the CW<\\*(C`:utf8\\*(C'> layer as described "
18647 "later), so mixing this with reads (other than CW<\\*(C`sysread)\\*(C'>), "
18648 "\\&CW<\\*(C`print\\*(C'>, CW<\\*(C`write\\*(C'>, \\&CW<\\*(C`seek\\*(C'>, "
18649 "\\&CW<\\*(C`tell\\*(C'>, or CW<\\*(C`eof\\*(C'> may cause confusion because "
18650 "the CW<\\*(C`:perlio\\*(C'> and CW<\\*(C`:crlf\\*(C'> layers usually buffer "
18651 "data. Returns the number of bytes actually written, or "
18652 "CW<\\*(C`undef\\*(C'> if there was an error (in this case the errno variable "
18653 "\\&CW<$!> is also set). If the LENGTH is greater than the data available in "
18654 "the SCALAR after the OFFSET, only as much data as is available will be "
18655 "written."
18656 msgstr ""
18657
18658 #. type: Plain text
18659 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18660 #: opensuse-leap-16-1 opensuse-tumbleweed
18661 msgid ""
18662 "An OFFSET may be specified to write the data from some part of the string "
18663 "other than the beginning. A negative OFFSET specifies writing that many "
18664 "characters counting backwards from the end of the string. If SCALAR is of "
18665 "length zero, you can only use an OFFSET of 0."
18666 msgstr ""
18667
18668 #. type: Plain text
18669 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18670 #: opensuse-leap-16-1 opensuse-tumbleweed
18671 msgid ""
18672 "\\&B<WARNING>: If the filehandle is marked CW<\\*(C`:utf8\\*(C'>, "
18673 "CW<\\*(C`syswrite\\*(C'> will raise an exception. The CW<:encoding(...)> "
18674 "layer implicitly introduces the CW<\\*(C`:utf8\\*(C'> layer. Alternately, "
18675 "if the handle is not marked with an encoding but you attempt to write "
18676 "characters with code points over 255, raises an exception. See "
18677 "CW<\\*(C`binmode\\*(C'>, \\&CW<\\*(C`open\\*(C'>, and the open pragma."
18678 msgstr ""
18679
18680 #. type: IX
18681 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18682 #: opensuse-leap-16-1 opensuse-tumbleweed
18683 #, no-wrap
18684 msgid "tell FILEHANDLE"
18685 msgstr ""
18686
18687 #. type: IX
18688 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18689 #: opensuse-leap-16-1 opensuse-tumbleweed
18690 #, no-wrap
18691 msgid "tell"
18692 msgstr ""
18693
18694 #. type: Plain text
18695 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18696 #: opensuse-leap-16-1 opensuse-tumbleweed
18697 msgid ""
18698 "Returns the current position I<in bytes> for FILEHANDLE, or -1 on error. "
18699 "FILEHANDLE may be an expression whose value gives the name of the actual "
18700 "filehandle. If FILEHANDLE is omitted, assumes the file last read."
18701 msgstr ""
18702
18703 #. type: Plain text
18704 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18705 #: opensuse-leap-16-1 opensuse-tumbleweed
18706 msgid ""
18707 "The return value of CW<\\*(C`tell\\*(C'> for the standard streams like the "
18708 "STDIN depends on the operating system: it may return -1 or something else. "
18709 "CW<\\*(C`tell\\*(C'> on pipes, fifos, and sockets usually returns -1."
18710 msgstr ""
18711
18712 #. type: Plain text
18713 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18714 #: opensuse-leap-16-1 opensuse-tumbleweed
18715 msgid ""
18716 "There is no CW<\\*(C`systell\\*(C'> function. Use \\&CW<\\*(C`sysseek($fh, "
18717 "0, 1)\\*(C'> for that."
18718 msgstr ""
18719
18720 #. type: Plain text
18721 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18722 #: opensuse-leap-16-1 opensuse-tumbleweed
18723 msgid ""
18724 "Do not use CW<\\*(C`tell\\*(C'> (or other buffered I/O operations) on a "
18725 "filehandle that has been manipulated by \\&CW<\\*(C`sysread\\*(C'>, "
18726 "\\&CW<\\*(C`syswrite\\*(C'>, or \\&CW<\\*(C`sysseek\\*(C'>. Those functions "
18727 "ignore the buffering, while CW<\\*(C`tell\\*(C'> does not."
18728 msgstr ""
18729
18730 #. type: IX
18731 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18732 #: opensuse-leap-16-1 opensuse-tumbleweed
18733 #, no-wrap
18734 msgid "telldir DIRHANDLE"
18735 msgstr ""
18736
18737 #. type: IX
18738 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18739 #: opensuse-leap-16-1 opensuse-tumbleweed
18740 #, no-wrap
18741 msgid "telldir"
18742 msgstr ""
18743
18744 #. type: Plain text
18745 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18746 #: opensuse-leap-16-1 opensuse-tumbleweed
18747 msgid ""
18748 "Returns the current position of the CW<\\*(C`readdir\\*(C'> routines on "
18749 "DIRHANDLE. Value may be given to \\&CW<\\*(C`seekdir\\*(C'> to access a "
18750 "particular location in a directory. CW<\\*(C`telldir\\*(C'> has the same "
18751 "caveats about possible directory compaction as the corresponding system "
18752 "library routine."
18753 msgstr ""
18754
18755 #. type: IX
18756 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18757 #: opensuse-leap-16-1 opensuse-tumbleweed
18758 #, no-wrap
18759 msgid "tie VARIABLE,CLASSNAME,LIST"
18760 msgstr ""
18761
18762 #. type: IX
18763 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18764 #: opensuse-leap-16-1 opensuse-tumbleweed
18765 #, no-wrap
18766 msgid "tie"
18767 msgstr ""
18768
18769 #. type: Plain text
18770 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18771 #: opensuse-leap-16-1 opensuse-tumbleweed
18772 msgid ""
18773 "This function binds a variable to a package class that will provide the "
18774 "implementation for the variable. VARIABLE is the name of the variable to be "
18775 "enchanted. CLASSNAME is the name of a class implementing objects of correct "
18776 "type. Any additional arguments are passed to the appropriate constructor "
18777 "method of the class (meaning CW<\\*(C`TIESCALAR\\*(C'>, "
18778 "CW<\\*(C`TIEHANDLE\\*(C'>, CW<\\*(C`TIEARRAY\\*(C'>, or "
18779 "CW<\\*(C`TIEHASH\\*(C'>). Typically these are arguments such as might be "
18780 "passed to the B<dbm_open>\\|(3) function of C. The object returned by the "
18781 "constructor is also returned by the \\&CW<\\*(C`tie\\*(C'> function, which "
18782 "would be useful if you want to access other methods in CLASSNAME."
18783 msgstr ""
18784
18785 #. type: Plain text
18786 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18787 #: opensuse-leap-16-1 opensuse-tumbleweed
18788 msgid ""
18789 "Note that functions such as CW<\\*(C`keys\\*(C'> and "
18790 "\\&CW<\\*(C`values\\*(C'> may return huge lists when used on large objects, "
18791 "like DBM files. You may prefer to use the CW<\\*(C`each\\*(C'> function to "
18792 "iterate over such. Example:"
18793 msgstr ""
18794
18795 #. type: Plain text
18796 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18797 #: opensuse-leap-16-1 opensuse-tumbleweed
18798 #, no-wrap
18799 msgid ""
18800 "\\& # print out history file offsets\n"
18801 "\\& use NDBM_File;\n"
18802 "\\& tie(my %HIST, \\*(AqNDBM_File\\*(Aq, \\*(Aq/usr/lib/news/history\\*(Aq, 1, 0);\n"
18803 "\\& while (my ($key,$val) = each %HIST) {\n"
18804 "\\& print $key, \\*(Aq = \\*(Aq, unpack(\\*(AqL\\*(Aq, $val), \"\\en\";\n"
18805 "\\& }\n"
18806 msgstr ""
18807
18808 #. type: Plain text
18809 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18810 #: opensuse-leap-16-1 opensuse-tumbleweed
18811 msgid "A class implementing a hash should have the following methods:"
18812 msgstr ""
18813
18814 #. type: Plain text
18815 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18816 #: opensuse-leap-16-1 opensuse-tumbleweed
18817 #, no-wrap
18818 msgid ""
18819 "\\& TIEHASH classname, LIST\n"
18820 "\\& FETCH this, key\n"
18821 "\\& STORE this, key, value\n"
18822 "\\& DELETE this, key\n"
18823 "\\& CLEAR this\n"
18824 "\\& EXISTS this, key\n"
18825 "\\& FIRSTKEY this\n"
18826 "\\& NEXTKEY this, lastkey\n"
18827 "\\& SCALAR this\n"
18828 "\\& DESTROY this\n"
18829 "\\& UNTIE this\n"
18830 msgstr ""
18831
18832 #. type: Plain text
18833 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18834 #: opensuse-leap-16-1 opensuse-tumbleweed
18835 msgid ""
18836 "A class implementing an ordinary array should have the following methods:"
18837 msgstr ""
18838
18839 #. type: Plain text
18840 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18841 #: opensuse-leap-16-1 opensuse-tumbleweed
18842 #, no-wrap
18843 msgid ""
18844 "\\& TIEARRAY classname, LIST\n"
18845 "\\& FETCH this, key\n"
18846 "\\& STORE this, key, value\n"
18847 "\\& FETCHSIZE this\n"
18848 "\\& STORESIZE this, count\n"
18849 "\\& CLEAR this\n"
18850 "\\& PUSH this, LIST\n"
18851 "\\& POP this\n"
18852 "\\& SHIFT this\n"
18853 "\\& UNSHIFT this, LIST\n"
18854 "\\& SPLICE this, offset, length, LIST\n"
18855 "\\& EXTEND this, count\n"
18856 "\\& DELETE this, key\n"
18857 "\\& EXISTS this, key\n"
18858 "\\& DESTROY this\n"
18859 "\\& UNTIE this\n"
18860 msgstr ""
18861
18862 #. type: Plain text
18863 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18864 #: opensuse-leap-16-1 opensuse-tumbleweed
18865 msgid "A class implementing a filehandle should have the following methods:"
18866 msgstr ""
18867
18868 #. type: Plain text
18869 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18870 #: opensuse-leap-16-1 opensuse-tumbleweed
18871 #, no-wrap
18872 msgid ""
18873 "\\& TIEHANDLE classname, LIST\n"
18874 "\\& READ this, scalar, length, offset\n"
18875 "\\& READLINE this\n"
18876 "\\& GETC this\n"
18877 "\\& WRITE this, scalar, length, offset\n"
18878 "\\& PRINT this, LIST\n"
18879 "\\& PRINTF this, format, LIST\n"
18880 "\\& BINMODE this\n"
18881 "\\& EOF this\n"
18882 "\\& FILENO this\n"
18883 "\\& SEEK this, position, whence\n"
18884 "\\& TELL this\n"
18885 "\\& OPEN this, mode, LIST\n"
18886 "\\& CLOSE this\n"
18887 "\\& DESTROY this\n"
18888 "\\& UNTIE this\n"
18889 msgstr ""
18890
18891 #. type: Plain text
18892 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18893 #: opensuse-leap-16-1 opensuse-tumbleweed
18894 msgid "A class implementing a scalar should have the following methods:"
18895 msgstr ""
18896
18897 #. type: Plain text
18898 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18899 #: opensuse-leap-16-1 opensuse-tumbleweed
18900 #, no-wrap
18901 msgid ""
18902 "\\& TIESCALAR classname, LIST\n"
18903 "\\& FETCH this,\n"
18904 "\\& STORE this, value\n"
18905 "\\& DESTROY this\n"
18906 "\\& UNTIE this\n"
18907 msgstr ""
18908
18909 #. type: Plain text
18910 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18911 #: opensuse-leap-16-1 opensuse-tumbleweed
18912 msgid ""
18913 "Not all methods indicated above need be implemented. See perltie, "
18914 "Tie::Hash, Tie::Array, Tie::Scalar, and Tie::Handle."
18915 msgstr ""
18916
18917 #. type: Plain text
18918 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18919 #: opensuse-leap-16-1 opensuse-tumbleweed
18920 msgid ""
18921 "Unlike CW<\\*(C`dbmopen\\*(C'>, the \\&CW<\\*(C`tie\\*(C'> function will not "
18922 "\\&CW<\\*(C`use\\*(C'> or CW<\\*(C`require\\*(C'> a module for you; you need "
18923 "to do that explicitly yourself. See DB_File or the Config module for "
18924 "interesting \\&CW<\\*(C`tie\\*(C'> implementations."
18925 msgstr ""
18926
18927 #. type: Plain text
18928 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18929 #: opensuse-leap-16-1 opensuse-tumbleweed
18930 msgid "For further details see perltie, CW<\\*(C`tied\\*(C'>."
18931 msgstr ""
18932
18933 #. type: IX
18934 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18935 #: opensuse-leap-16-1 opensuse-tumbleweed
18936 #, no-wrap
18937 msgid "tied VARIABLE"
18938 msgstr ""
18939
18940 #. type: IX
18941 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18942 #: opensuse-leap-16-1 opensuse-tumbleweed
18943 #, no-wrap
18944 msgid "tied"
18945 msgstr ""
18946
18947 #. type: Plain text
18948 #: debian-trixie debian-unstable
18949 msgid ""
18950 "Returns a reference to the object underlying VARIABLE (the same value that "
18951 "was originally returned by the \\&CW<\\*(C`tie\\*(C'> call that bound the "
18952 "variable to a package.) Returns the undefined value if VARIABLE isn't tied "
18953 "to a package."
18954 msgstr ""
18955
18956 #. type: IX
18957 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18958 #: opensuse-leap-16-1 opensuse-tumbleweed
18959 #, no-wrap
18960 msgid "time"
18961 msgstr ""
18962
18963 #. type: IX
18964 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18965 #: opensuse-leap-16-1 opensuse-tumbleweed
18966 #, no-wrap
18967 msgid "time epoch"
18968 msgstr ""
18969
18970 #. type: Plain text
18971 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18972 #: opensuse-leap-16-1 opensuse-tumbleweed
18973 msgid ""
18974 "Returns the number of non-leap seconds since whatever time the system "
18975 "considers to be the epoch, suitable for feeding to \\&CW<\\*(C`gmtime\\*(C'> "
18976 "and CW<\\*(C`localtime\\*(C'>. On most systems the epoch is 00:00:00 UTC, "
18977 "January 1, 1970; a prominent exception being Mac OS Classic which uses "
18978 "00:00:00, January 1, 1904 in the current local time zone for its epoch."
18979 msgstr ""
18980
18981 #. type: Plain text
18982 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18983 #: opensuse-leap-16-1 opensuse-tumbleweed
18984 msgid ""
18985 "For measuring time in better granularity than one second, use the "
18986 "Time::HiRes module from Perl 5.8 onwards (or from CPAN before then), or, if "
18987 "you have B<gettimeofday>\\|(2), you may be able to use the "
18988 "\\&CW<\\*(C`syscall\\*(C'> interface of Perl. See perlfaq8 for details."
18989 msgstr ""
18990
18991 #. type: Plain text
18992 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
18993 #: opensuse-leap-16-1 opensuse-tumbleweed
18994 msgid ""
18995 "For date and time processing look at the many related modules on CPAN. For "
18996 "a comprehensive date and time representation look at the DateTime module."
18997 msgstr ""
18998
18999 #. type: IX
19000 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19001 #: opensuse-leap-16-1 opensuse-tumbleweed
19002 #, no-wrap
19003 msgid "times"
19004 msgstr ""
19005
19006 #. type: Plain text
19007 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19008 #: opensuse-leap-16-1 opensuse-tumbleweed
19009 msgid ""
19010 "Returns a four-element list giving the user and system times in seconds for "
19011 "this process and any exited children of this process."
19012 msgstr ""
19013
19014 #. type: Plain text
19015 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19016 #: opensuse-leap-16-1 opensuse-tumbleweed
19017 #, no-wrap
19018 msgid "\\& my ($user,$system,$cuser,$csystem) = times;\n"
19019 msgstr ""
19020
19021 #. type: Plain text
19022 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19023 #: opensuse-leap-16-1 opensuse-tumbleweed
19024 msgid "In scalar context, CW<\\*(C`times\\*(C'> returns CW<$user>."
19025 msgstr ""
19026
19027 #. type: Plain text
19028 #: debian-trixie debian-unstable
19029 msgid "Children's times are only included for terminated children."
19030 msgstr ""
19031
19032 #. type: Plain text
19033 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19034 #: opensuse-leap-16-1 opensuse-tumbleweed
19035 msgid "Portability issues: \"times\" in perlport."
19036 msgstr ""
19037
19038 #. type: IX
19039 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19040 #: opensuse-leap-16-1 opensuse-tumbleweed
19041 #, no-wrap
19042 msgid "tr///"
19043 msgstr ""
19044
19045 #. type: Plain text
19046 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19047 #: opensuse-leap-16-1 opensuse-tumbleweed
19048 msgid ""
19049 "The transliteration operator. Same as \\&CW<\\*(C`y///\\*(C'>. See \"Quote-"
19050 "Like Operators\" in perlop."
19051 msgstr ""
19052
19053 #. type: IX
19054 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19055 #: opensuse-leap-16-1 opensuse-tumbleweed
19056 #, no-wrap
19057 msgid "truncate FILEHANDLE,LENGTH"
19058 msgstr ""
19059
19060 #. type: IX
19061 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19062 #: opensuse-leap-16-1 opensuse-tumbleweed
19063 #, no-wrap
19064 msgid "truncate"
19065 msgstr ""
19066
19067 #. type: IX
19068 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19069 #: opensuse-leap-16-1 opensuse-tumbleweed
19070 #, no-wrap
19071 msgid "truncate EXPR,LENGTH"
19072 msgstr ""
19073
19074 #. type: Plain text
19075 #: debian-trixie debian-unstable
19076 msgid ""
19077 "Truncates the file opened on FILEHANDLE, or named by EXPR, to the specified "
19078 "length. Raises an exception if truncate isn't implemented on your system. "
19079 "Returns true if successful, CW<\\*(C`undef\\*(C'> on error."
19080 msgstr ""
19081
19082 #. type: Plain text
19083 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19084 #: opensuse-leap-16-1 opensuse-tumbleweed
19085 msgid ""
19086 "The behavior is undefined if LENGTH is greater than the length of the file."
19087 msgstr ""
19088
19089 #. type: Plain text
19090 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19091 #: opensuse-leap-16-1 opensuse-tumbleweed
19092 msgid ""
19093 "The position in the file of FILEHANDLE is left unchanged. You may want to "
19094 "call seek before writing to the file."
19095 msgstr ""
19096
19097 #. type: Plain text
19098 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19099 #: opensuse-leap-16-1 opensuse-tumbleweed
19100 msgid "Portability issues: \"truncate\" in perlport."
19101 msgstr ""
19102
19103 #. type: IX
19104 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19105 #: opensuse-leap-16-1 opensuse-tumbleweed
19106 #, no-wrap
19107 msgid "uc EXPR"
19108 msgstr ""
19109
19110 #. type: IX
19111 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19112 #: opensuse-leap-16-1 opensuse-tumbleweed
19113 #, no-wrap
19114 msgid "uc uppercase toupper"
19115 msgstr ""
19116
19117 #. type: IX
19118 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19119 #: opensuse-leap-16-1 opensuse-tumbleweed
19120 #, no-wrap
19121 msgid "uc"
19122 msgstr ""
19123
19124 #. type: Plain text
19125 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19126 #: opensuse-leap-16-1 opensuse-tumbleweed
19127 msgid ""
19128 "Returns an uppercased version of EXPR. If EXPR is omitted, uses \\&CW<$_>."
19129 msgstr ""
19130
19131 #. type: Plain text
19132 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19133 #: opensuse-leap-16-1 opensuse-tumbleweed
19134 #, no-wrap
19135 msgid "\\& my $str = uc(\"Perl is GREAT\"); # \"PERL IS GREAT\"\n"
19136 msgstr ""
19137
19138 #. type: Plain text
19139 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19140 #: opensuse-leap-16-1 opensuse-tumbleweed
19141 msgid ""
19142 "If you want titlecase mapping on initial letters see "
19143 "\\&CW<\\*(C`ucfirst\\*(C'> instead."
19144 msgstr ""
19145
19146 #. type: Plain text
19147 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19148 #: opensuse-leap-16-1 opensuse-tumbleweed
19149 msgid ""
19150 "\\&B<Note:> This is the internal function implementing the "
19151 "\\&CW<\\*(C`\\eU\\*(C'> escape in double-quoted strings."
19152 msgstr ""
19153
19154 #. type: Plain text
19155 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19156 #: opensuse-leap-16-1 opensuse-tumbleweed
19157 #, no-wrap
19158 msgid "\\& my $str = \"Perl is \\eUgreat\\eE\"; # \"Perl is GREAT\"\n"
19159 msgstr ""
19160
19161 #. type: IX
19162 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19163 #: opensuse-leap-16-1 opensuse-tumbleweed
19164 #, no-wrap
19165 msgid "ucfirst EXPR"
19166 msgstr ""
19167
19168 #. type: IX
19169 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19170 #: opensuse-leap-16-1 opensuse-tumbleweed
19171 #, no-wrap
19172 msgid "ucfirst uppercase"
19173 msgstr ""
19174
19175 #. type: IX
19176 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19177 #: opensuse-leap-16-1 opensuse-tumbleweed
19178 #, no-wrap
19179 msgid "ucfirst"
19180 msgstr ""
19181
19182 #. type: Plain text
19183 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19184 #: opensuse-leap-16-1 opensuse-tumbleweed
19185 msgid ""
19186 "Returns the value of EXPR with the B<first> character in uppercase (Unicode "
19187 "calls this titlecase). If EXPR is omitted, CW<\\*(C`ucfirst\\*(C'> uses "
19188 "CW<$_>."
19189 msgstr ""
19190
19191 #. type: Plain text
19192 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19193 #: opensuse-leap-16-1 opensuse-tumbleweed
19194 #, no-wrap
19195 msgid "\\& my $str = ucfirst(\"hello world!\"); # \"Hello world!\"\n"
19196 msgstr ""
19197
19198 #. type: Plain text
19199 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19200 #: opensuse-leap-16-1 opensuse-tumbleweed
19201 msgid ""
19202 "\\&B<Note:> This is the internal function implementing the "
19203 "CW<\\*(C`\\eu\\*(C'> escape in double-quoted strings."
19204 msgstr ""
19205
19206 #. type: Plain text
19207 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19208 #: opensuse-leap-16-1 opensuse-tumbleweed
19209 #, no-wrap
19210 msgid "\\& my $str = \"\\euperl\\eE is great\"; # \"Perl is great\"\n"
19211 msgstr ""
19212
19213 #. type: IX
19214 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19215 #: opensuse-leap-16-1 opensuse-tumbleweed
19216 #, no-wrap
19217 msgid "umask EXPR"
19218 msgstr ""
19219
19220 #. type: IX
19221 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19222 #: opensuse-leap-16-1 opensuse-tumbleweed
19223 #, no-wrap
19224 msgid "umask"
19225 msgstr ""
19226
19227 #. type: Plain text
19228 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19229 #: opensuse-leap-16-1 opensuse-tumbleweed
19230 msgid ""
19231 "Sets the umask for the process to EXPR and returns the previous value. If "
19232 "EXPR is omitted, merely returns the current umask."
19233 msgstr ""
19234
19235 #. type: Plain text
19236 #: debian-trixie debian-unstable
19237 msgid ""
19238 "The Unix permission CW<\\*(C`rwxr-x---\\*(C'> is represented as three sets "
19239 "of three bits, or three octal digits: CW<0750> (the leading 0 indicates "
19240 "octal and isn't one of the digits). The CW<\\*(C`umask\\*(C'> value is such "
19241 "a number representing disabled permissions bits. The permission (or "
19242 "\"mode\") values you pass CW<\\*(C`mkdir\\*(C'> or "
19243 "\\&CW<\\*(C`sysopen\\*(C'> are modified by your umask, so even if you tell "
19244 "\\&CW<\\*(C`sysopen\\*(C'> to create a file with permissions CW<0777>, if "
19245 "your umask is CW<0022>, then the file will actually be created with "
19246 "permissions CW<0755>. If your \\&CW<\\*(C`umask\\*(C'> were CW<0027> (group "
19247 "can't write; others can't read, write, or execute), then passing "
19248 "\\&CW<\\*(C`sysopen\\*(C'> CW<0666> would create a file with mode CW<0640> "
19249 "(because CW<\\*(C`0666 &~ 027\\*(C'> is CW<0640>)."
19250 msgstr ""
19251
19252 #. type: Plain text
19253 #: debian-trixie debian-unstable
19254 msgid ""
19255 "Here's some advice: supply a creation mode of CW<0666> for regular files (in "
19256 "CW<\\*(C`sysopen\\*(C'>) and one of \\&CW<0777> for directories (in "
19257 "CW<\\*(C`mkdir\\*(C'>) and executable files. This gives users the freedom "
19258 "of choice: if they want protected files, they might choose process umasks of "
19259 "CW<022>, CW<027>, or even the particularly antisocial mask of CW<077>. "
19260 "Programs should rarely if ever make policy decisions better left to the "
19261 "user. The exception to this is when writing files that should be kept "
19262 "private: mail files, web browser cookies, I<.rhosts> files, and so on."
19263 msgstr ""
19264
19265 #. type: Plain text
19266 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19267 #: opensuse-leap-16-1 opensuse-tumbleweed
19268 msgid ""
19269 "If B<umask>\\|(2) is not implemented on your system and you are trying to "
19270 "restrict access for I<yourself> (i.e., CW<\\*(C`(EXPR & 0700) E<gt> "
19271 "0\\*(C'>), raises an exception. If B<umask>\\|(2) is not implemented and "
19272 "you are not trying to restrict access for yourself, returns "
19273 "\\&CW<\\*(C`undef\\*(C'>."
19274 msgstr ""
19275
19276 #. type: Plain text
19277 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19278 #: opensuse-leap-16-1 opensuse-tumbleweed
19279 msgid ""
19280 "Remember that a umask is a number, usually given in octal; it is I<not> a "
19281 "string of octal digits. See also CW<\\*(C`oct\\*(C'>, if all you have is a "
19282 "string."
19283 msgstr ""
19284
19285 #. type: Plain text
19286 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19287 #: opensuse-leap-16-1 opensuse-tumbleweed
19288 msgid "Portability issues: \"umask\" in perlport."
19289 msgstr ""
19290
19291 #. type: IX
19292 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19293 #: opensuse-leap-16-1 opensuse-tumbleweed
19294 #, no-wrap
19295 msgid "undef EXPR"
19296 msgstr ""
19297
19298 #. type: IX
19299 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19300 #: opensuse-leap-16-1 opensuse-tumbleweed
19301 #, no-wrap
19302 msgid "undef undefine"
19303 msgstr ""
19304
19305 #. type: IX
19306 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19307 #: opensuse-leap-16-1 opensuse-tumbleweed
19308 #, no-wrap
19309 msgid "undef"
19310 msgstr ""
19311
19312 #. type: Plain text
19313 #: debian-trixie debian-unstable
19314 msgid ""
19315 "Undefines the value of EXPR, which must be an lvalue. Use only on a scalar "
19316 "value, an array (using CW<\\*(C`@\\*(C'>), a hash (using CW<\\*(C`%\\*(C'>), "
19317 "a subroutine (using CW<\\*(C`&\\*(C'>), or a typeglob (using "
19318 "CW<\\*(C`*\\*(C'>). Saying CW<\\*(C`undef $hash{$key}\\*(C'> will probably "
19319 "not do what you expect on most predefined variables or DBM list values, so "
19320 "don't do that; see CW<\\*(C`delete\\*(C'>. Always returns the undefined "
19321 "value. You can omit the EXPR, in which case nothing is undefined, but you "
19322 "still get an undefined value that you could, for instance, return from a "
19323 "subroutine, assign to a variable, or pass as a parameter. Examples:"
19324 msgstr ""
19325
19326 #. type: Plain text
19327 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19328 #: opensuse-leap-16-1 opensuse-tumbleweed
19329 #, no-wrap
19330 msgid ""
19331 "\\& undef $foo;\n"
19332 "\\& undef $bar{\\*(Aqblurfl\\*(Aq}; # Compare to: delete $bar{\\*(Aqblurfl\\*(Aq};\n"
19333 "\\& undef @ary;\n"
19334 "\\& undef %hash;\n"
19335 "\\& undef &mysub;\n"
19336 "\\& undef *xyz; # destroys $xyz, @xyz, %xyz, &xyz, etc.\n"
19337 "\\& return (wantarray ? (undef, $errmsg) : undef) if $they_blew_it;\n"
19338 "\\& select undef, undef, undef, 0.25;\n"
19339 "\\& my ($x, $y, undef, $z) = foo(); # Ignore third value returned\n"
19340 msgstr ""
19341
19342 #. type: Plain text
19343 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19344 #: opensuse-leap-16-1 opensuse-tumbleweed
19345 msgid "Note that this is a unary operator, not a list operator."
19346 msgstr ""
19347
19348 #. type: IX
19349 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19350 #: opensuse-leap-16-1 opensuse-tumbleweed
19351 #, no-wrap
19352 msgid "unlink LIST"
19353 msgstr ""
19354
19355 #. type: IX
19356 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19357 #: opensuse-leap-16-1 opensuse-tumbleweed
19358 #, no-wrap
19359 msgid "unlink delete remove rm del"
19360 msgstr ""
19361
19362 #. type: IX
19363 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19364 #: opensuse-leap-16-1 opensuse-tumbleweed
19365 #, no-wrap
19366 msgid "unlink"
19367 msgstr ""
19368
19369 #. type: Plain text
19370 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19371 #: opensuse-leap-16-1 opensuse-tumbleweed
19372 msgid ""
19373 "Deletes a list of files. On success, it returns the number of files it "
19374 "successfully deleted. On failure, it returns false and sets \\&CW<$!> "
19375 "(errno):"
19376 msgstr ""
19377
19378 #. type: Plain text
19379 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19380 #: opensuse-leap-16-1 opensuse-tumbleweed
19381 #, no-wrap
19382 msgid ""
19383 "\\& my $unlinked = unlink \\*(Aqa\\*(Aq, \\*(Aqb\\*(Aq, \\*(Aqc\\*(Aq;\n"
19384 "\\& unlink @goners;\n"
19385 "\\& unlink glob \"*.bak\";\n"
19386 msgstr ""
19387
19388 #. type: Plain text
19389 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19390 #: opensuse-leap-16-1 opensuse-tumbleweed
19391 msgid ""
19392 "On error, CW<\\*(C`unlink\\*(C'> will not tell you which files it could not "
19393 "remove. If you want to know which files you could not remove, try them one "
19394 "at a time:"
19395 msgstr ""
19396
19397 #. type: Plain text
19398 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19399 #: opensuse-leap-16-1 opensuse-tumbleweed
19400 #, no-wrap
19401 msgid ""
19402 "\\& foreach my $file ( @goners ) {\n"
19403 "\\& unlink $file or warn \"Could not unlink $file: $!\";\n"
19404 "\\& }\n"
19405 msgstr ""
19406
19407 #. type: Plain text
19408 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19409 #: opensuse-leap-16-1 opensuse-tumbleweed
19410 msgid ""
19411 "Note: CW<\\*(C`unlink\\*(C'> will not attempt to delete directories unless "
19412 "you are superuser and the B<-U> flag is supplied to Perl. Even if these "
19413 "conditions are met, be warned that unlinking a directory can inflict damage "
19414 "on your filesystem. Finally, using CW<\\*(C`unlink\\*(C'> on directories is "
19415 "not supported on many operating systems. Use \\&CW<\\*(C`rmdir\\*(C'> "
19416 "instead."
19417 msgstr ""
19418
19419 #. type: Plain text
19420 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19421 #: opensuse-leap-16-1 opensuse-tumbleweed
19422 msgid "If LIST is omitted, CW<\\*(C`unlink\\*(C'> uses CW<$_>."
19423 msgstr ""
19424
19425 #. type: IX
19426 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19427 #: opensuse-leap-16-1 opensuse-tumbleweed
19428 #, no-wrap
19429 msgid "unpack TEMPLATE,EXPR"
19430 msgstr ""
19431
19432 #. type: IX
19433 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19434 #: opensuse-leap-16-1 opensuse-tumbleweed
19435 #, no-wrap
19436 msgid "unpack"
19437 msgstr ""
19438
19439 #. type: IX
19440 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19441 #: opensuse-leap-16-1 opensuse-tumbleweed
19442 #, no-wrap
19443 msgid "unpack TEMPLATE"
19444 msgstr ""
19445
19446 #. type: Plain text
19447 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19448 #: opensuse-leap-16-1 opensuse-tumbleweed
19449 msgid ""
19450 "\\&CW<\\*(C`unpack\\*(C'> does the reverse of \\&CW<\\*(C`pack\\*(C'>: it "
19451 "takes a string and expands it out into a list of values. (In scalar "
19452 "context, it returns merely the first value produced.)"
19453 msgstr ""
19454
19455 #. type: Plain text
19456 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19457 #: opensuse-leap-16-1 opensuse-tumbleweed
19458 msgid ""
19459 "If EXPR is omitted, unpacks the CW<$_> string. See perlpacktut for an "
19460 "introduction to this function."
19461 msgstr ""
19462
19463 #. type: Plain text
19464 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19465 #: opensuse-leap-16-1 opensuse-tumbleweed
19466 msgid ""
19467 "The string is broken into chunks described by the TEMPLATE. Each chunk is "
19468 "converted separately to a value. Typically, either the string is a result "
19469 "of CW<\\*(C`pack\\*(C'>, or the characters of the string represent a C "
19470 "structure of some kind."
19471 msgstr ""
19472
19473 #. type: Plain text
19474 #: debian-trixie debian-unstable
19475 msgid ""
19476 "The TEMPLATE has the same format as in the \\&CW<\\*(C`pack\\*(C'> "
19477 "function. Here's a subroutine that does substring:"
19478 msgstr ""
19479
19480 #. type: Plain text
19481 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19482 #: opensuse-leap-16-1 opensuse-tumbleweed
19483 #, no-wrap
19484 msgid ""
19485 "\\& sub substr {\n"
19486 "\\& my ($what, $where, $howmuch) = @_;\n"
19487 "\\& unpack(\"x$where a$howmuch\", $what);\n"
19488 "\\& }\n"
19489 msgstr ""
19490
19491 #. type: Plain text
19492 #: debian-trixie debian-unstable
19493 msgid "and then there's"
19494 msgstr ""
19495
19496 #. type: Plain text
19497 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19498 #: opensuse-leap-16-1 opensuse-tumbleweed
19499 #, no-wrap
19500 msgid "\\& sub ordinal { unpack(\"W\",$_[0]); } # same as ord()\n"
19501 msgstr ""
19502
19503 #. type: Plain text
19504 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19505 #: opensuse-leap-16-1 opensuse-tumbleweed
19506 msgid ""
19507 "In addition to fields allowed in CW<\\*(C`pack\\*(C'>, you may prefix a "
19508 "field with a %E<lt>numberE<gt> to indicate that you want a E<lt>numberE<gt>-"
19509 "bit checksum of the items instead of the items themselves. Default is a 16-"
19510 "bit checksum. The checksum is calculated by summing numeric values of "
19511 "expanded values (for string fields the sum of \\&CW<ord($char)> is taken; "
19512 "for bit fields the sum of zeroes and ones)."
19513 msgstr ""
19514
19515 #. type: Plain text
19516 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19517 #: opensuse-leap-16-1 opensuse-tumbleweed
19518 msgid ""
19519 "For example, the following computes the same number as the System V sum "
19520 "program:"
19521 msgstr ""
19522
19523 #. type: Plain text
19524 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19525 #: opensuse-leap-16-1 opensuse-tumbleweed
19526 #, no-wrap
19527 msgid ""
19528 "\\& my $checksum = do {\n"
19529 "\\& local $/; # slurp!\n"
19530 "\\& unpack(\"%32W*\", readline) % 65535;\n"
19531 "\\& };\n"
19532 msgstr ""
19533
19534 #. type: Plain text
19535 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19536 #: opensuse-leap-16-1 opensuse-tumbleweed
19537 msgid ""
19538 "The following efficiently counts the number of set bits in a bit vector:"
19539 msgstr ""
19540
19541 #. type: Plain text
19542 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19543 #: opensuse-leap-16-1 opensuse-tumbleweed
19544 #, no-wrap
19545 msgid "\\& my $setbits = unpack(\"%32b*\", $selectmask);\n"
19546 msgstr ""
19547
19548 #. type: Plain text
19549 #: debian-trixie debian-unstable
19550 msgid ""
19551 "The CW<\\*(C`p\\*(C'> and CW<\\*(C`P\\*(C'> formats should be used with "
19552 "care. Since Perl has no way of checking whether the value passed to "
19553 "\\&CW<\\*(C`unpack\\*(C'> corresponds to a valid memory location, passing a "
19554 "pointer value that's not known to be valid is likely to have disastrous "
19555 "consequences."
19556 msgstr ""
19557
19558 #. type: Plain text
19559 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19560 #: opensuse-leap-16-1 opensuse-tumbleweed
19561 msgid ""
19562 "If there are more pack codes or if the repeat count of a field or a group is "
19563 "larger than what the remainder of the input string allows, the result is not "
19564 "well defined: the repeat count may be decreased, or "
19565 "\\&CW<\\*(C`unpack\\*(C'> may produce empty strings or zeros, or it may "
19566 "raise an exception. If the input string is longer than one described by the "
19567 "TEMPLATE, the remainder of that input string is ignored."
19568 msgstr ""
19569
19570 #. type: Plain text
19571 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19572 #: opensuse-leap-16-1 opensuse-tumbleweed
19573 msgid "See CW<\\*(C`pack\\*(C'> for more examples and notes."
19574 msgstr ""
19575
19576 #. type: IX
19577 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19578 #: opensuse-leap-16-1 opensuse-tumbleweed
19579 #, no-wrap
19580 msgid "unshift ARRAY,LIST"
19581 msgstr ""
19582
19583 #. type: IX
19584 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19585 #: opensuse-leap-16-1 opensuse-tumbleweed
19586 #, no-wrap
19587 msgid "unshift"
19588 msgstr ""
19589
19590 #. type: Plain text
19591 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19592 #: opensuse-leap-16-1 opensuse-tumbleweed
19593 msgid ""
19594 "Add one or more elements to the B<beginning> of an array. This is the "
19595 "opposite of a CW<\\*(C`shift\\*(C'>."
19596 msgstr ""
19597
19598 #. type: Plain text
19599 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19600 #: opensuse-leap-16-1 opensuse-tumbleweed
19601 #, no-wrap
19602 msgid ""
19603 "\\& my @animals = (\"cat\");\n"
19604 "\\& unshift(@animals, \"mouse\"); # (\"mouse\", \"cat\")\n"
19605 "\\&\n"
19606 "\\& my @colors = (\"red\");\n"
19607 "\\& unshift(@colors, (\"blue\", \"green\")); # (\"blue\", \"green\", \"red\")\n"
19608 msgstr ""
19609
19610 #. type: Plain text
19611 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19612 #: opensuse-leap-16-1 opensuse-tumbleweed
19613 msgid "Returns the new number of elements in the updated array."
19614 msgstr ""
19615
19616 #. type: Plain text
19617 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19618 #: opensuse-leap-16-1 opensuse-tumbleweed
19619 #, no-wrap
19620 msgid ""
19621 "\\& # Return value is the number of items in the updated array\n"
19622 "\\& my $color_count = unshift(@colors, (\"yellow\", \"purple\"));\n"
19623 "\\&\n"
19624 "\\& say \"There are $color_count colors in the updated array\";\n"
19625 msgstr ""
19626
19627 #. type: Plain text
19628 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19629 #: opensuse-leap-16-1 opensuse-tumbleweed
19630 msgid ""
19631 "Note the LIST is prepended whole, not one element at a time, so the "
19632 "prepended elements stay in the same order. Use \\&CW<\\*(C`reverse\\*(C'> "
19633 "to do the reverse."
19634 msgstr ""
19635
19636 #. type: Plain text
19637 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19638 #: opensuse-leap-16-1 opensuse-tumbleweed
19639 msgid ""
19640 "Starting with Perl 5.14, an experimental feature allowed "
19641 "\\&CW<\\*(C`unshift\\*(C'> to take a scalar expression. This experiment has "
19642 "been deemed unsuccessful, and was removed as of Perl 5.24."
19643 msgstr ""
19644
19645 #. type: IX
19646 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19647 #: opensuse-leap-16-1 opensuse-tumbleweed
19648 #, no-wrap
19649 msgid "untie VARIABLE"
19650 msgstr ""
19651
19652 #. type: IX
19653 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19654 #: opensuse-leap-16-1 opensuse-tumbleweed
19655 #, no-wrap
19656 msgid "untie"
19657 msgstr ""
19658
19659 #. type: Plain text
19660 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19661 #: opensuse-leap-16-1 opensuse-tumbleweed
19662 msgid ""
19663 "Breaks the binding between a variable and a package. (See tie.) Has no "
19664 "effect if the variable is not tied."
19665 msgstr ""
19666
19667 #. type: IX
19668 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19669 #: opensuse-leap-16-1 opensuse-tumbleweed
19670 #, no-wrap
19671 msgid "use Module VERSION LIST"
19672 msgstr ""
19673
19674 #. type: IX
19675 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19676 #: opensuse-leap-16-1 opensuse-tumbleweed
19677 #, no-wrap
19678 msgid "use module import"
19679 msgstr ""
19680
19681 #. type: IX
19682 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19683 #: opensuse-leap-16-1 opensuse-tumbleweed
19684 #, no-wrap
19685 msgid "use Module VERSION"
19686 msgstr ""
19687
19688 #. type: IX
19689 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19690 #: opensuse-leap-16-1 opensuse-tumbleweed
19691 #, no-wrap
19692 msgid "use Module LIST"
19693 msgstr ""
19694
19695 #. type: IX
19696 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19697 #: opensuse-leap-16-1 opensuse-tumbleweed
19698 #, no-wrap
19699 msgid "use Module"
19700 msgstr ""
19701
19702 #. type: Plain text
19703 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19704 #: opensuse-leap-16-1 opensuse-tumbleweed
19705 msgid ""
19706 "Imports some semantics into the current package from the named module, "
19707 "generally by aliasing certain subroutine or variable names into your "
19708 "package. It is exactly equivalent to"
19709 msgstr ""
19710
19711 #. type: Plain text
19712 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19713 #: opensuse-leap-16-1 opensuse-tumbleweed
19714 #, no-wrap
19715 msgid "\\& BEGIN { require Module; Module-E<gt>import( LIST ); }\n"
19716 msgstr ""
19717
19718 #. type: Plain text
19719 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19720 #: opensuse-leap-16-1 opensuse-tumbleweed
19721 msgid ""
19722 "except that Module I<must> be a bareword. The importation can be made "
19723 "conditional by using the if module."
19724 msgstr ""
19725
19726 #. type: Plain text
19727 #: debian-trixie debian-unstable
19728 msgid ""
19729 "The CW<\\*(C`BEGIN\\*(C'> forces the CW<\\*(C`require\\*(C'> and "
19730 "\\&CW<\\*(C`import\\*(C'> to happen at compile time. The "
19731 "\\&CW<\\*(C`require\\*(C'> makes sure the module is loaded into memory if it "
19732 "hasn't been yet. The CW<\\*(C`import\\*(C'> is not a builtin; it's just an "
19733 "ordinary static method call into the CW<\\*(C`Module\\*(C'> package to tell "
19734 "the module to import the list of features back into the current package. "
19735 "The module can implement its \\&CW<\\*(C`import\\*(C'> method any way it "
19736 "likes, though most modules just choose to derive their "
19737 "CW<\\*(C`import\\*(C'> method via inheritance from the "
19738 "CW<\\*(C`Exporter\\*(C'> class that is defined in the "
19739 "\\&CW<\\*(C`Exporter\\*(C'> module. See Exporter. If no "
19740 "\\&CW<\\*(C`import\\*(C'> method can be found, then the call is skipped, "
19741 "even if there is an AUTOLOAD method."
19742 msgstr ""
19743
19744 #. type: Plain text
19745 #: debian-trixie debian-unstable
19746 msgid ""
19747 "If you do not want to call the package's CW<\\*(C`import\\*(C'> method (for "
19748 "instance, to stop your namespace from being altered), explicitly supply the "
19749 "empty list:"
19750 msgstr ""
19751
19752 #. type: Plain text
19753 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19754 #: opensuse-leap-16-1 opensuse-tumbleweed
19755 #, no-wrap
19756 msgid "\\& use Module ();\n"
19757 msgstr ""
19758
19759 #. type: Plain text
19760 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19761 #: opensuse-leap-16-1 opensuse-tumbleweed
19762 msgid "That is exactly equivalent to"
19763 msgstr ""
19764
19765 #. type: Plain text
19766 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19767 #: opensuse-leap-16-1 opensuse-tumbleweed
19768 #, no-wrap
19769 msgid "\\& BEGIN { require Module }\n"
19770 msgstr ""
19771
19772 #. type: Plain text
19773 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19774 #: opensuse-leap-16-1 opensuse-tumbleweed
19775 msgid ""
19776 "If the VERSION argument is present between Module and LIST, then the "
19777 "\\&CW<\\*(C`use\\*(C'> will call the CW<\\*(C`VERSION\\*(C'> method in class "
19778 "Module with the given version as an argument:"
19779 msgstr ""
19780
19781 #. type: Plain text
19782 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19783 #: opensuse-leap-16-1 opensuse-tumbleweed
19784 #, no-wrap
19785 msgid "\\& use Module 12.34;\n"
19786 msgstr ""
19787
19788 #. type: Plain text
19789 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19790 #: opensuse-leap-16-1 opensuse-tumbleweed
19791 msgid "is equivalent to:"
19792 msgstr ""
19793
19794 #. type: Plain text
19795 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19796 #: opensuse-leap-16-1 opensuse-tumbleweed
19797 #, no-wrap
19798 msgid "\\& BEGIN { require Module; Module-E<gt>VERSION(12.34) }\n"
19799 msgstr ""
19800
19801 #. type: Plain text
19802 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19803 #: opensuse-leap-16-1 opensuse-tumbleweed
19804 msgid ""
19805 "The default CW<\\*(C`VERSION\\*(C'> method, inherited from the "
19806 "CW<\\*(C`UNIVERSAL\\*(C'> class, croaks if the given version is larger than "
19807 "the value of the variable CW<$Module::VERSION>."
19808 msgstr ""
19809
19810 #. type: Plain text
19811 #: debian-trixie debian-unstable
19812 msgid ""
19813 "The VERSION argument cannot be an arbitrary expression. It only counts as a "
19814 "VERSION argument if it is a version number literal, starting with either a "
19815 "digit or CW<\\*(C`v\\*(C'> followed by a digit. Anything that doesn't look "
19816 "like a version literal will be parsed as the start of the LIST. "
19817 "Nevertheless, many attempts to use an arbitrary expression as a VERSION "
19818 "argument will appear to work, because Exporter's CW<\\*(C`import\\*(C'> "
19819 "method handles numeric arguments specially, performing version checks rather "
19820 "than treating them as things to export."
19821 msgstr ""
19822
19823 #. type: Plain text
19824 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19825 #: opensuse-leap-16-1 opensuse-tumbleweed
19826 msgid ""
19827 "Again, there is a distinction between omitting LIST (CW<\\*(C`import\\*(C'> "
19828 "called with no arguments) and an explicit empty LIST CW<\\*(C`()\\*(C'> "
19829 "(CW<\\*(C`import\\*(C'> not called). Note that there is no comma after "
19830 "VERSION!"
19831 msgstr ""
19832
19833 #. type: Plain text
19834 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19835 #: opensuse-leap-16-1 opensuse-tumbleweed
19836 msgid ""
19837 "Because this is a wide-open interface, pragmas (compiler directives) are "
19838 "also implemented this way. Some of the currently implemented pragmas are:"
19839 msgstr ""
19840
19841 #. type: Plain text
19842 #: debian-trixie debian-unstable
19843 #, no-wrap
19844 msgid ""
19845 "\\& use constant;\n"
19846 "\\& use diagnostics;\n"
19847 "\\& use integer;\n"
19848 "\\& use sigtrap qw(SEGV BUS);\n"
19849 "\\& use strict qw(subs vars refs);\n"
19850 "\\& use subs qw(afunc blurfl);\n"
19851 "\\& use warnings qw(all);\n"
19852 "\\& use sort qw(stable);\n"
19853 msgstr ""
19854
19855 #. type: Plain text
19856 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19857 #: opensuse-leap-16-1 opensuse-tumbleweed
19858 msgid ""
19859 "Some of these pseudo-modules import semantics into the current block scope "
19860 "(like CW<\\*(C`strict\\*(C'> or CW<\\*(C`integer\\*(C'>, unlike ordinary "
19861 "modules, which import symbols into the current package (which are effective "
19862 "through the end of the file)."
19863 msgstr ""
19864
19865 #. type: Plain text
19866 #: debian-trixie debian-unstable
19867 msgid ""
19868 "Because CW<\\*(C`use\\*(C'> takes effect at compile time, it doesn't respect "
19869 "the ordinary flow control of the code being compiled. In particular, "
19870 "putting a CW<\\*(C`use\\*(C'> inside the false branch of a conditional "
19871 "doesn't prevent it from being processed. If a module or pragma only needs "
19872 "to be loaded conditionally, this can be done using the if pragma:"
19873 msgstr ""
19874
19875 #. type: Plain text
19876 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19877 #: opensuse-leap-16-1 opensuse-tumbleweed
19878 #, no-wrap
19879 msgid ""
19880 "\\& use if $] E<lt> 5.008, \"utf8\";\n"
19881 "\\& use if WANT_WARNINGS, warnings =E<gt> qw(all);\n"
19882 msgstr ""
19883
19884 #. type: Plain text
19885 #: debian-trixie debian-unstable
19886 msgid ""
19887 "There's a corresponding CW<\\*(C`no\\*(C'> declaration that unimports "
19888 "meanings imported by CW<\\*(C`use\\*(C'>, i.e., it calls CW<\\*(C`Module-"
19889 "E<gt>unimport(LIST)\\*(C'> instead of \\&CW<\\*(C`import\\*(C'>. It behaves "
19890 "just as CW<\\*(C`import\\*(C'> does with VERSION, an omitted or empty LIST, "
19891 "or no unimport method being found."
19892 msgstr ""
19893
19894 #. type: Plain text
19895 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19896 #: opensuse-leap-16-1 opensuse-tumbleweed
19897 #, no-wrap
19898 msgid ""
19899 "\\& no integer;\n"
19900 "\\& no strict \\*(Aqrefs\\*(Aq;\n"
19901 "\\& no warnings;\n"
19902 msgstr ""
19903
19904 #. type: Plain text
19905 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19906 #: opensuse-leap-16-1 opensuse-tumbleweed
19907 msgid ""
19908 "See perlmodlib for a list of standard modules and pragmas. See perlrun for "
19909 "the CW<\\*(C`-M\\*(C'> and CW<\\*(C`-m\\*(C'> command-line options to Perl "
19910 "that give CW<\\*(C`use\\*(C'> functionality from the command-line."
19911 msgstr ""
19912
19913 #. type: IX
19914 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19915 #: opensuse-leap-16-1 opensuse-tumbleweed
19916 #, no-wrap
19917 msgid "use VERSION"
19918 msgstr ""
19919
19920 #. type: Plain text
19921 #: debian-trixie debian-unstable
19922 msgid ""
19923 "Lexically enables all features available in the requested version as defined "
19924 "by the feature pragma, disabling any features not in the requested version's "
19925 "feature bundle. See feature."
19926 msgstr ""
19927
19928 #. type: Plain text
19929 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19930 #: opensuse-leap-16-1 opensuse-tumbleweed
19931 msgid ""
19932 "VERSION may be either a v-string such as v5.24.1, which will be compared to "
19933 "CW<$^V> (aka CW<$PERL_VERSION>), or a numeric argument of the form 5.024001, "
19934 "which will be compared to CW<$]>. An exception is raised if VERSION is "
19935 "greater than the version of the current Perl interpreter; Perl will not "
19936 "attempt to parse the rest of the file. Compare with "
19937 "CW<\\*(C`require\\*(C'>, which can do a similar check at run time."
19938 msgstr ""
19939
19940 #. type: Plain text
19941 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19942 #: opensuse-leap-16-1 opensuse-tumbleweed
19943 msgid ""
19944 "If the specified Perl version is 5.12 or higher, strictures are enabled "
19945 "lexically as with CW<\\*(C`use strict\\*(C'>."
19946 msgstr ""
19947
19948 #. type: Plain text
19949 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19950 #: opensuse-leap-16-1 opensuse-tumbleweed
19951 msgid ""
19952 "If the specified Perl version is 5.35.0 or higher, warnings are enabled."
19953 msgstr ""
19954
19955 #. type: Plain text
19956 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19957 #: opensuse-leap-16-1 opensuse-tumbleweed
19958 msgid ""
19959 "If the specified Perl version is 5.39.0 or higher, builtin functions are "
19960 "imported lexically as with CW<\\*(C`use builtin\\*(C'> with a corresponding "
19961 "version bundle."
19962 msgstr ""
19963
19964 #. type: Plain text
19965 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19966 #: opensuse-leap-16-1 opensuse-tumbleweed
19967 msgid ""
19968 "Use of CW<\\*(C`use VERSION\\*(C'> while another is in effect is not allowed "
19969 "with a \\&CW<\\*(C`use v5.39;\\*(C'> or greater version. For lower "
19970 "versions, CW<\\*(C`use VERSION\\*(C'> will override most behavior of a "
19971 "previous CW<\\*(C`use VERSION\\*(C'>, possibly removing "
19972 "\\&CW<\\*(C`warnings\\*(C'> and CW<\\*(C`feature\\*(C'> effects added by it. "
19973 "This behavior is deprecated, and a future release of perl will disallow "
19974 "changing the version once one has been declared. Additionally, a "
19975 "CW<\\*(C`use VERSION\\*(C'> with a version less than 5.11 is not allowed "
19976 "after a CW<\\*(C`use VERSION\\*(C'> with a version greater than 5.11."
19977 msgstr ""
19978
19979 #. type: Plain text
19980 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19981 #: opensuse-leap-16-1 opensuse-tumbleweed
19982 msgid ""
19983 "\\&CW<\\*(C`use VERSION\\*(C'> does not load the I<feature.pm>, "
19984 "I<strict.pm>, I<warnings.pm> or I<builtin.pm> files, but instead implements "
19985 "the equivalent functionality directly."
19986 msgstr ""
19987
19988 #. type: Plain text
19989 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
19990 #: opensuse-leap-16-1 opensuse-tumbleweed
19991 msgid ""
19992 "In the current implementation, any explicit use of CW<\\*(C`no strict\\*(C'> "
19993 "overrides \\&CW<\\*(C`use VERSION\\*(C'>, even if it comes before it. "
19994 "However, this may be subject to change in a future release of Perl, so new "
19995 "code should not rely on this fact. It is recommended that a CW<\\*(C`use "
19996 "VERSION\\*(C'> declaration be the first significant statement within a file "
19997 "(possibly after a CW<\\*(C`package\\*(C'> statement or any amount of "
19998 "whitespace or comment), so that its effects happen first, and other pragmata "
19999 "are applied after it."
20000 msgstr ""
20001
20002 #. type: Plain text
20003 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20004 #: opensuse-leap-16-1 opensuse-tumbleweed
20005 msgid ""
20006 "Specifying VERSION as a numeric argument of the form 5.024001 should "
20007 "generally be avoided as older less readable syntax compared to v5.24.1. "
20008 "Before perl 5.8.0 released in 2002 the more verbose numeric form was the "
20009 "only supported syntax, which is why you might see it in older code."
20010 msgstr ""
20011
20012 #. type: Plain text
20013 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20014 #: opensuse-leap-16-1 opensuse-tumbleweed
20015 #, no-wrap
20016 msgid ""
20017 "\\& use v5.24.1; # compile time version check\n"
20018 "\\& use 5.24.1; # ditto\n"
20019 "\\& use 5.024_001; # ditto; older syntax compatible with perl 5.6\n"
20020 msgstr ""
20021
20022 #. type: Plain text
20023 #: debian-trixie debian-unstable
20024 msgid ""
20025 "This is often useful if you need to check the current Perl version before "
20026 "\\&CW<\\*(C`use\\*(C'>ing library modules that won't work with older "
20027 "versions of Perl. (We try not to do this more than we have to.)"
20028 msgstr ""
20029
20030 #. type: Plain text
20031 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20032 #: opensuse-leap-16-1 opensuse-tumbleweed
20033 msgid ""
20034 "Symmetrically, CW<\\*(C`no VERSION\\*(C'> allows you to specify that you "
20035 "want a version of Perl older than the specified one. Historically this was "
20036 "added during early designs of the Raku language (formerly \"Perl 6\"), so "
20037 "that a Perl 5 program could begin"
20038 msgstr ""
20039
20040 #. type: Plain text
20041 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20042 #: opensuse-leap-16-1 opensuse-tumbleweed
20043 #, no-wrap
20044 msgid "\\& no 6;\n"
20045 msgstr ""
20046
20047 #. type: Plain text
20048 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20049 #: opensuse-leap-16-1 opensuse-tumbleweed
20050 msgid ""
20051 "to declare that it is not a Perl 6 program. As the two languages have "
20052 "different implementations, file naming conventions, and other "
20053 "infrastructure, this feature is now little used in practice and should be "
20054 "avoided in newly-written code."
20055 msgstr ""
20056
20057 #. type: Plain text
20058 #: debian-trixie debian-unstable
20059 msgid ""
20060 "Care should be taken when using the CW<\\*(C`no VERSION\\*(C'> form, as it "
20061 "is I<only> meant to be used to assert that the running Perl is of a earlier "
20062 "version than its argument and I<not> to undo the feature-enabling side "
20063 "effects of CW<\\*(C`use VERSION\\*(C'>."
20064 msgstr ""
20065
20066 #. type: IX
20067 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20068 #: opensuse-leap-16-1 opensuse-tumbleweed
20069 #, no-wrap
20070 msgid "utime LIST"
20071 msgstr ""
20072
20073 #. type: IX
20074 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20075 #: opensuse-leap-16-1 opensuse-tumbleweed
20076 #, no-wrap
20077 msgid "utime"
20078 msgstr ""
20079
20080 #. type: Plain text
20081 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20082 #: opensuse-leap-16-1 opensuse-tumbleweed
20083 msgid ""
20084 "Changes the access and modification times on each file of a list of files. "
20085 "The first two elements of the list must be the NUMERIC access and "
20086 "modification times, in that order. Returns the number of files successfully "
20087 "changed. The inode change time of each file is set to the current time. "
20088 "For example, this code has the same effect as the Unix B<touch>\\|(1) "
20089 "command when the files I<already exist> and belong to the user running the "
20090 "program:"
20091 msgstr ""
20092
20093 #. type: Plain text
20094 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20095 #: opensuse-leap-16-1 opensuse-tumbleweed
20096 #, no-wrap
20097 msgid ""
20098 "\\& #!/usr/bin/perl\n"
20099 "\\& my $atime = my $mtime = time;\n"
20100 "\\& utime $atime, $mtime, @ARGV;\n"
20101 msgstr ""
20102
20103 #. type: Plain text
20104 #: debian-trixie debian-unstable
20105 msgid ""
20106 "Since Perl 5.8.0, if the first two elements of the list are "
20107 "\\&CW<\\*(C`undef\\*(C'>, the B<utime>\\|(2) syscall from your C library is "
20108 "called with a null second argument. On most systems, this will set the "
20109 "file's access and modification times to the current time (i.e., equivalent "
20110 "to the example above) and will work even on files you don't own provided you "
20111 "have write permission:"
20112 msgstr ""
20113
20114 #. type: Plain text
20115 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20116 #: opensuse-leap-16-1 opensuse-tumbleweed
20117 #, no-wrap
20118 msgid ""
20119 "\\& for my $file (@ARGV) {\n"
20120 "\\& utime(undef, undef, $file)\n"
20121 "\\& || warn \"Couldn\\*(Aqt touch $file: $!\";\n"
20122 "\\& }\n"
20123 msgstr ""
20124
20125 #. type: Plain text
20126 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20127 #: opensuse-leap-16-1 opensuse-tumbleweed
20128 msgid ""
20129 "Under NFS this will use the time of the NFS server, not the time of the "
20130 "local machine. If there is a time synchronization problem, the NFS server "
20131 "and local machine will have different times. The Unix \\&B<touch>\\|(1) "
20132 "command will in fact normally use this form instead of the one shown in the "
20133 "first example."
20134 msgstr ""
20135
20136 #. type: Plain text
20137 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20138 #: opensuse-leap-16-1 opensuse-tumbleweed
20139 msgid ""
20140 "Passing only one of the first two elements as CW<\\*(C`undef\\*(C'> is "
20141 "equivalent to passing a 0 and will not have the effect described when both "
20142 "are CW<\\*(C`undef\\*(C'>. This also triggers an uninitialized warning."
20143 msgstr ""
20144
20145 #. type: Plain text
20146 #: debian-trixie debian-unstable
20147 msgid ""
20148 "On systems that support B<futimes>\\|(2), you may pass filehandles among the "
20149 "files. On systems that don't support B<futimes>\\|(2), passing filehandles "
20150 "raises an exception. Filehandles must be passed as globs or glob references "
20151 "to be recognized; barewords are considered filenames."
20152 msgstr ""
20153
20154 #. type: Plain text
20155 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20156 #: opensuse-leap-16-1 opensuse-tumbleweed
20157 msgid "Portability issues: \"utime\" in perlport."
20158 msgstr ""
20159
20160 #. type: IX
20161 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20162 #: opensuse-leap-16-1 opensuse-tumbleweed
20163 #, no-wrap
20164 msgid "values HASH"
20165 msgstr ""
20166
20167 #. type: IX
20168 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20169 #: opensuse-leap-16-1 opensuse-tumbleweed
20170 #, no-wrap
20171 msgid "values"
20172 msgstr ""
20173
20174 #. type: IX
20175 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20176 #: opensuse-leap-16-1 opensuse-tumbleweed
20177 #, no-wrap
20178 msgid "values ARRAY"
20179 msgstr ""
20180
20181 #. type: Plain text
20182 #: debian-trixie debian-unstable
20183 msgid ""
20184 "In list context, returns a list consisting of all the values of the named "
20185 "hash. In Perl 5.12 or later only, will also return a list of the values of "
20186 "an array; prior to that release, attempting to use an array argument will "
20187 "produce a syntax error. In scalar context, returns the number of values."
20188 msgstr ""
20189
20190 #. type: Plain text
20191 #: debian-trixie debian-unstable
20192 msgid ""
20193 "Hash entries are returned in an apparently random order. The actual random "
20194 "order is specific to a given hash; the exact same series of operations on "
20195 "two hashes may result in a different order for each hash. Any insertion "
20196 "into the hash may change the order, as will any deletion, with the exception "
20197 "that the most recent key returned by CW<\\*(C`each\\*(C'> or "
20198 "\\&CW<\\*(C`keys\\*(C'> may be deleted without changing the order. So long "
20199 "as a given hash is unmodified you may rely on \\&CW<\\*(C`keys\\*(C'>, "
20200 "CW<\\*(C`values\\*(C'> and \\&CW<\\*(C`each\\*(C'> to repeatedly return the "
20201 "same order as each other. See \"Algorithmic Complexity Attacks\" in perlsec "
20202 "for details on why hash order is randomized. Aside from the guarantees "
20203 "provided here the exact details of Perl's hash algorithm and the hash "
20204 "traversal order are subject to change in any release of Perl. Tied hashes "
20205 "may behave differently to Perl's hashes with respect to changes in order on "
20206 "insertion and deletion of items."
20207 msgstr ""
20208
20209 #. type: Plain text
20210 #: debian-trixie debian-unstable
20211 msgid ""
20212 "As a side effect, calling CW<\\*(C`values\\*(C'> resets the HASH or ARRAY's "
20213 "internal iterator (see CW<\\*(C`each\\*(C'>) before yielding the values. In "
20214 "particular, calling CW<\\*(C`values\\*(C'> in void context resets the "
20215 "iterator with no other overhead."
20216 msgstr ""
20217
20218 #. type: Plain text
20219 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20220 #: opensuse-leap-16-1 opensuse-tumbleweed
20221 msgid ""
20222 "Apart from resetting the iterator, \\&CW<\\*(C`values @array\\*(C'> in list "
20223 "context is the same as plain CW<@array>. (We recommend that you use void "
20224 "context CW<\\*(C`keys @array\\*(C'> for this, but reasoned that taking "
20225 "CW<\\*(C`values @array\\*(C'> out would require more documentation than "
20226 "leaving it in.)"
20227 msgstr ""
20228
20229 #. type: Plain text
20230 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20231 #: opensuse-leap-16-1 opensuse-tumbleweed
20232 msgid ""
20233 "Note that the values are not copied, which means modifying them will modify "
20234 "the contents of the hash:"
20235 msgstr ""
20236
20237 #. type: Plain text
20238 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20239 #: opensuse-leap-16-1 opensuse-tumbleweed
20240 #, no-wrap
20241 msgid ""
20242 "\\& for (values %hash) { s/foo/bar/g } # modifies %hash values\n"
20243 "\\& for (@hash{keys %hash}) { s/foo/bar/g } # same\n"
20244 msgstr ""
20245
20246 #. type: Plain text
20247 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20248 #: opensuse-leap-16-1 opensuse-tumbleweed
20249 msgid ""
20250 "Starting with Perl 5.14, an experimental feature allowed "
20251 "\\&CW<\\*(C`values\\*(C'> to take a scalar expression. This experiment has "
20252 "been deemed unsuccessful, and was removed as of Perl 5.24."
20253 msgstr ""
20254
20255 #. type: Plain text
20256 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20257 #: opensuse-leap-16-1 opensuse-tumbleweed
20258 msgid ""
20259 "See also CW<\\*(C`keys\\*(C'>, CW<\\*(C`each\\*(C'>, and "
20260 "\\&CW<\\*(C`sort\\*(C'>."
20261 msgstr ""
20262
20263 #. type: IX
20264 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20265 #: opensuse-leap-16-1 opensuse-tumbleweed
20266 #, no-wrap
20267 msgid "vec EXPR,OFFSET,BITS"
20268 msgstr ""
20269
20270 #. type: IX
20271 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20272 #: opensuse-leap-16-1 opensuse-tumbleweed
20273 #, no-wrap
20274 msgid "vec bit bit vector"
20275 msgstr ""
20276
20277 #. type: Plain text
20278 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20279 #: opensuse-leap-16-1 opensuse-tumbleweed
20280 msgid ""
20281 "Treats the string in EXPR as a bit vector made up of elements of width BITS "
20282 "and returns the value of the element specified by OFFSET as an unsigned "
20283 "integer. BITS therefore specifies the number of bits that are reserved for "
20284 "each element in the bit vector. This must be a power of two from 1 to 32 "
20285 "(or 64, if your platform supports that)."
20286 msgstr ""
20287
20288 #. type: Plain text
20289 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20290 #: opensuse-leap-16-1 opensuse-tumbleweed
20291 msgid "If BITS is 8, \"elements\" coincide with bytes of the input string."
20292 msgstr ""
20293
20294 #. type: Plain text
20295 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20296 #: opensuse-leap-16-1 opensuse-tumbleweed
20297 msgid ""
20298 "If BITS is 16 or more, bytes of the input string are grouped into chunks of "
20299 "size BITS/8, and each group is converted to a number as with "
20300 "\\&CW<\\*(C`pack\\*(C'>/CW<\\*(C`unpack\\*(C'> with big-endian formats "
20301 "CW<\\*(C`n\\*(C'>/CW<\\*(C`N\\*(C'> (and analogously for BITS==64). See "
20302 "\\&CW<\\*(C`pack\\*(C'> for details."
20303 msgstr ""
20304
20305 #. type: Plain text
20306 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20307 #: opensuse-leap-16-1 opensuse-tumbleweed
20308 msgid ""
20309 "If bits is 4 or less, the string is broken into bytes, then the bits of each "
20310 "byte are broken into 8/BITS groups. Bits of a byte are numbered in a little-"
20311 "endian-ish way, as in CW<0x01>, CW<0x02>, \\&CW<0x04>, CW<0x08>, CW<0x10>, "
20312 "CW<0x20>, CW<0x40>, CW<0x80>. For example, breaking the single input byte "
20313 "CW<chr(0x36)> into two groups gives a list \\&CW<\\*(C`(0x6, 0x3)\\*(C'>; "
20314 "breaking it into 4 groups gives CW<\\*(C`(0x2, 0x1, 0x3, 0x0)\\*(C'>."
20315 msgstr ""
20316
20317 #. type: Plain text
20318 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20319 #: opensuse-leap-16-1 opensuse-tumbleweed
20320 msgid ""
20321 "\\&CW<\\*(C`vec\\*(C'> may also be assigned to, in which case parentheses "
20322 "are needed to give the expression the correct precedence as in"
20323 msgstr ""
20324
20325 #. type: Plain text
20326 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20327 #: opensuse-leap-16-1 opensuse-tumbleweed
20328 #, no-wrap
20329 msgid "\\& vec($image, $max_x * $x + $y, 8) = 3;\n"
20330 msgstr ""
20331
20332 #. type: Plain text
20333 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20334 #: opensuse-leap-16-1 opensuse-tumbleweed
20335 msgid ""
20336 "If the selected element is outside the string, the value 0 is returned. If "
20337 "an element off the end of the string is written to, Perl will first extend "
20338 "the string with sufficiently many zero bytes. It is an error to try to "
20339 "write off the beginning of the string (i.e., negative OFFSET)."
20340 msgstr ""
20341
20342 #. type: Plain text
20343 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20344 #: opensuse-leap-16-1 opensuse-tumbleweed
20345 msgid ""
20346 "If the string happens to be encoded as UTF-8 internally (and thus has the "
20347 "UTF8 flag set), CW<\\*(C`vec\\*(C'> tries to convert it to use a one-byte-"
20348 "per-character internal representation. However, if the string contains "
20349 "characters with values of 256 or higher, a fatal error will occur."
20350 msgstr ""
20351
20352 #. type: Plain text
20353 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20354 #: opensuse-leap-16-1 opensuse-tumbleweed
20355 msgid ""
20356 "Strings created with CW<\\*(C`vec\\*(C'> can also be manipulated with the "
20357 "logical operators CW<\\*(C`|\\*(C'>, CW<\\*(C`&\\*(C'>, CW<\\*(C`^\\*(C'>, "
20358 "and CW<\\*(C`~\\*(C'>. These operators will assume a bit vector operation "
20359 "is desired when both operands are strings. See \"Bitwise String Operators\" "
20360 "in perlop."
20361 msgstr ""
20362
20363 #. type: Plain text
20364 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20365 #: opensuse-leap-16-1 opensuse-tumbleweed
20366 msgid ""
20367 "The following code will build up an ASCII string saying "
20368 "CW<\\*(AqPerlPerlPerl\\*(Aq>. The comments show the string after each "
20369 "step. Note that this code works in the same way on big-endian or little-"
20370 "endian machines."
20371 msgstr ""
20372
20373 #. type: Plain text
20374 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20375 #: opensuse-leap-16-1 opensuse-tumbleweed
20376 #, no-wrap
20377 msgid ""
20378 "\\& my $foo = \\*(Aq\\*(Aq;\n"
20379 "\\& vec($foo, 0, 32) = 0x5065726C; # \\*(AqPerl\\*(Aq\n"
20380 "\\&\n"
20381 "\\& # $foo eq \"Perl\" eq \"\\ex50\\ex65\\ex72\\ex6C\", 32 bits\n"
20382 "\\& print vec($foo, 0, 8); # prints 80 == 0x50 == ord(\\*(AqP\\*(Aq)\n"
20383 "\\&\n"
20384 "\\& vec($foo, 2, 16) = 0x5065; # \\*(AqPerlPe\\*(Aq\n"
20385 "\\& vec($foo, 3, 16) = 0x726C; # \\*(AqPerlPerl\\*(Aq\n"
20386 "\\& vec($foo, 8, 8) = 0x50; # \\*(AqPerlPerlP\\*(Aq\n"
20387 "\\& vec($foo, 9, 8) = 0x65; # \\*(AqPerlPerlPe\\*(Aq\n"
20388 "\\& vec($foo, 20, 4) = 2; # \\*(AqPerlPerlPe\\*(Aq . \"\\ex02\"\n"
20389 "\\& vec($foo, 21, 4) = 7; # \\*(AqPerlPerlPer\\*(Aq\n"
20390 "\\& # \\*(Aqr\\*(Aq is \"\\ex72\"\n"
20391 "\\& vec($foo, 45, 2) = 3; # \\*(AqPerlPerlPer\\*(Aq . \"\\ex0c\"\n"
20392 "\\& vec($foo, 93, 1) = 1; # \\*(AqPerlPerlPer\\*(Aq . \"\\ex2c\"\n"
20393 "\\& vec($foo, 94, 1) = 1; # \\*(AqPerlPerlPerl\\*(Aq\n"
20394 "\\& # \\*(Aql\\*(Aq is \"\\ex6c\"\n"
20395 msgstr ""
20396
20397 #. type: Plain text
20398 #: debian-trixie debian-unstable
20399 msgid ""
20400 "To transform a bit vector into a string or list of 0's and 1's, use these:"
20401 msgstr ""
20402
20403 #. type: Plain text
20404 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20405 #: opensuse-leap-16-1 opensuse-tumbleweed
20406 #, no-wrap
20407 msgid ""
20408 "\\& my $bits = unpack(\"b*\", $vector);\n"
20409 "\\& my @bits = split(//, unpack(\"b*\", $vector));\n"
20410 msgstr ""
20411
20412 #. type: Plain text
20413 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20414 #: opensuse-leap-16-1 opensuse-tumbleweed
20415 msgid ""
20416 "If you know the exact length in bits, it can be used in place of the "
20417 "CW<\\*(C`*\\*(C'>."
20418 msgstr ""
20419
20420 #. type: Plain text
20421 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20422 #: opensuse-leap-16-1 opensuse-tumbleweed
20423 msgid "Here is an example to illustrate how the bits actually fall in place:"
20424 msgstr ""
20425
20426 #. type: Plain text
20427 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20428 #: opensuse-leap-16-1 opensuse-tumbleweed
20429 #, no-wrap
20430 msgid ""
20431 "\\& #!/usr/bin/perl -wl\n"
20432 "\\&\n"
20433 "\\& print E<lt>E<lt>\\*(AqEOT\\*(Aq;\n"
20434 "\\& 0 1 2 3\n"
20435 "\\& unpack(\"V\",$_) 01234567890123456789012345678901\n"
20436 "\\& ------------------------------------------------------------------\n"
20437 "\\& EOT\n"
20438 "\\&\n"
20439 "\\& for $w (0..3) {\n"
20440 "\\& $width = 2**$w;\n"
20441 "\\& for ($shift=0; $shift E<lt> $width; ++$shift) {\n"
20442 "\\& for ($off=0; $off E<lt> 32/$width; ++$off) {\n"
20443 "\\& $str = pack(\"B*\", \"0\"x32);\n"
20444 "\\& $bits = (1E<lt>E<lt>$shift);\n"
20445 "\\& vec($str, $off, $width) = $bits;\n"
20446 "\\& $res = unpack(\"b*\",$str);\n"
20447 "\\& $val = unpack(\"V\", $str);\n"
20448 "\\& write;\n"
20449 "\\& }\n"
20450 "\\& }\n"
20451 "\\& }\n"
20452 "\\&\n"
20453 "\\& format STDOUT =\n"
20454 "\\& vec($_,@#,@#) = @E<lt>E<lt> == @######### @E<gt>E<gt>E<gt>E<gt>E<gt>E<gt>E<gt>E<gt>E<gt>E<gt>E<gt>E<gt>E<gt>E<gt>E<gt>E<gt>E<gt>E<gt>E<gt>E<gt>E<gt>E<gt>E<gt>E<gt>E<gt>E<gt>E<gt>E<gt>E<gt>E<gt>E<gt>\n"
20455 "\\& $off, $width, $bits, $val, $res\n"
20456 "\\& .\n"
20457 "\\& _\\|_END_\\|_\n"
20458 msgstr ""
20459
20460 #. type: Plain text
20461 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20462 #: opensuse-leap-16-1 opensuse-tumbleweed
20463 msgid ""
20464 "Regardless of the machine architecture on which it runs, the example above "
20465 "should print the following table:"
20466 msgstr ""
20467
20468 #. type: Plain text
20469 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20470 #: opensuse-leap-16-1 opensuse-tumbleweed
20471 #, no-wrap
20472 msgid ""
20473 "\\& 0 1 2 3\n"
20474 "\\& unpack(\"V\",$_) 01234567890123456789012345678901\n"
20475 "\\& ------------------------------------------------------------------\n"
20476 "\\& vec($_, 0, 1) = 1 == 1 10000000000000000000000000000000\n"
20477 "\\& vec($_, 1, 1) = 1 == 2 01000000000000000000000000000000\n"
20478 "\\& vec($_, 2, 1) = 1 == 4 00100000000000000000000000000000\n"
20479 "\\& vec($_, 3, 1) = 1 == 8 00010000000000000000000000000000\n"
20480 "\\& vec($_, 4, 1) = 1 == 16 00001000000000000000000000000000\n"
20481 "\\& vec($_, 5, 1) = 1 == 32 00000100000000000000000000000000\n"
20482 "\\& vec($_, 6, 1) = 1 == 64 00000010000000000000000000000000\n"
20483 "\\& vec($_, 7, 1) = 1 == 128 00000001000000000000000000000000\n"
20484 "\\& vec($_, 8, 1) = 1 == 256 00000000100000000000000000000000\n"
20485 "\\& vec($_, 9, 1) = 1 == 512 00000000010000000000000000000000\n"
20486 "\\& vec($_,10, 1) = 1 == 1024 00000000001000000000000000000000\n"
20487 "\\& vec($_,11, 1) = 1 == 2048 00000000000100000000000000000000\n"
20488 "\\& vec($_,12, 1) = 1 == 4096 00000000000010000000000000000000\n"
20489 "\\& vec($_,13, 1) = 1 == 8192 00000000000001000000000000000000\n"
20490 "\\& vec($_,14, 1) = 1 == 16384 00000000000000100000000000000000\n"
20491 "\\& vec($_,15, 1) = 1 == 32768 00000000000000010000000000000000\n"
20492 "\\& vec($_,16, 1) = 1 == 65536 00000000000000001000000000000000\n"
20493 "\\& vec($_,17, 1) = 1 == 131072 00000000000000000100000000000000\n"
20494 "\\& vec($_,18, 1) = 1 == 262144 00000000000000000010000000000000\n"
20495 "\\& vec($_,19, 1) = 1 == 524288 00000000000000000001000000000000\n"
20496 "\\& vec($_,20, 1) = 1 == 1048576 00000000000000000000100000000000\n"
20497 "\\& vec($_,21, 1) = 1 == 2097152 00000000000000000000010000000000\n"
20498 "\\& vec($_,22, 1) = 1 == 4194304 00000000000000000000001000000000\n"
20499 "\\& vec($_,23, 1) = 1 == 8388608 00000000000000000000000100000000\n"
20500 "\\& vec($_,24, 1) = 1 == 16777216 00000000000000000000000010000000\n"
20501 "\\& vec($_,25, 1) = 1 == 33554432 00000000000000000000000001000000\n"
20502 "\\& vec($_,26, 1) = 1 == 67108864 00000000000000000000000000100000\n"
20503 "\\& vec($_,27, 1) = 1 == 134217728 00000000000000000000000000010000\n"
20504 "\\& vec($_,28, 1) = 1 == 268435456 00000000000000000000000000001000\n"
20505 "\\& vec($_,29, 1) = 1 == 536870912 00000000000000000000000000000100\n"
20506 "\\& vec($_,30, 1) = 1 == 1073741824 00000000000000000000000000000010\n"
20507 "\\& vec($_,31, 1) = 1 == 2147483648 00000000000000000000000000000001\n"
20508 "\\& vec($_, 0, 2) = 1 == 1 10000000000000000000000000000000\n"
20509 "\\& vec($_, 1, 2) = 1 == 4 00100000000000000000000000000000\n"
20510 "\\& vec($_, 2, 2) = 1 == 16 00001000000000000000000000000000\n"
20511 "\\& vec($_, 3, 2) = 1 == 64 00000010000000000000000000000000\n"
20512 "\\& vec($_, 4, 2) = 1 == 256 00000000100000000000000000000000\n"
20513 "\\& vec($_, 5, 2) = 1 == 1024 00000000001000000000000000000000\n"
20514 "\\& vec($_, 6, 2) = 1 == 4096 00000000000010000000000000000000\n"
20515 "\\& vec($_, 7, 2) = 1 == 16384 00000000000000100000000000000000\n"
20516 "\\& vec($_, 8, 2) = 1 == 65536 00000000000000001000000000000000\n"
20517 "\\& vec($_, 9, 2) = 1 == 262144 00000000000000000010000000000000\n"
20518 "\\& vec($_,10, 2) = 1 == 1048576 00000000000000000000100000000000\n"
20519 "\\& vec($_,11, 2) = 1 == 4194304 00000000000000000000001000000000\n"
20520 "\\& vec($_,12, 2) = 1 == 16777216 00000000000000000000000010000000\n"
20521 "\\& vec($_,13, 2) = 1 == 67108864 00000000000000000000000000100000\n"
20522 "\\& vec($_,14, 2) = 1 == 268435456 00000000000000000000000000001000\n"
20523 "\\& vec($_,15, 2) = 1 == 1073741824 00000000000000000000000000000010\n"
20524 "\\& vec($_, 0, 2) = 2 == 2 01000000000000000000000000000000\n"
20525 "\\& vec($_, 1, 2) = 2 == 8 00010000000000000000000000000000\n"
20526 "\\& vec($_, 2, 2) = 2 == 32 00000100000000000000000000000000\n"
20527 "\\& vec($_, 3, 2) = 2 == 128 00000001000000000000000000000000\n"
20528 "\\& vec($_, 4, 2) = 2 == 512 00000000010000000000000000000000\n"
20529 "\\& vec($_, 5, 2) = 2 == 2048 00000000000100000000000000000000\n"
20530 "\\& vec($_, 6, 2) = 2 == 8192 00000000000001000000000000000000\n"
20531 "\\& vec($_, 7, 2) = 2 == 32768 00000000000000010000000000000000\n"
20532 "\\& vec($_, 8, 2) = 2 == 131072 00000000000000000100000000000000\n"
20533 "\\& vec($_, 9, 2) = 2 == 524288 00000000000000000001000000000000\n"
20534 "\\& vec($_,10, 2) = 2 == 2097152 00000000000000000000010000000000\n"
20535 "\\& vec($_,11, 2) = 2 == 8388608 00000000000000000000000100000000\n"
20536 "\\& vec($_,12, 2) = 2 == 33554432 00000000000000000000000001000000\n"
20537 "\\& vec($_,13, 2) = 2 == 134217728 00000000000000000000000000010000\n"
20538 "\\& vec($_,14, 2) = 2 == 536870912 00000000000000000000000000000100\n"
20539 "\\& vec($_,15, 2) = 2 == 2147483648 00000000000000000000000000000001\n"
20540 "\\& vec($_, 0, 4) = 1 == 1 10000000000000000000000000000000\n"
20541 "\\& vec($_, 1, 4) = 1 == 16 00001000000000000000000000000000\n"
20542 "\\& vec($_, 2, 4) = 1 == 256 00000000100000000000000000000000\n"
20543 "\\& vec($_, 3, 4) = 1 == 4096 00000000000010000000000000000000\n"
20544 "\\& vec($_, 4, 4) = 1 == 65536 00000000000000001000000000000000\n"
20545 "\\& vec($_, 5, 4) = 1 == 1048576 00000000000000000000100000000000\n"
20546 "\\& vec($_, 6, 4) = 1 == 16777216 00000000000000000000000010000000\n"
20547 "\\& vec($_, 7, 4) = 1 == 268435456 00000000000000000000000000001000\n"
20548 "\\& vec($_, 0, 4) = 2 == 2 01000000000000000000000000000000\n"
20549 "\\& vec($_, 1, 4) = 2 == 32 00000100000000000000000000000000\n"
20550 "\\& vec($_, 2, 4) = 2 == 512 00000000010000000000000000000000\n"
20551 "\\& vec($_, 3, 4) = 2 == 8192 00000000000001000000000000000000\n"
20552 "\\& vec($_, 4, 4) = 2 == 131072 00000000000000000100000000000000\n"
20553 "\\& vec($_, 5, 4) = 2 == 2097152 00000000000000000000010000000000\n"
20554 "\\& vec($_, 6, 4) = 2 == 33554432 00000000000000000000000001000000\n"
20555 "\\& vec($_, 7, 4) = 2 == 536870912 00000000000000000000000000000100\n"
20556 "\\& vec($_, 0, 4) = 4 == 4 00100000000000000000000000000000\n"
20557 "\\& vec($_, 1, 4) = 4 == 64 00000010000000000000000000000000\n"
20558 "\\& vec($_, 2, 4) = 4 == 1024 00000000001000000000000000000000\n"
20559 "\\& vec($_, 3, 4) = 4 == 16384 00000000000000100000000000000000\n"
20560 "\\& vec($_, 4, 4) = 4 == 262144 00000000000000000010000000000000\n"
20561 "\\& vec($_, 5, 4) = 4 == 4194304 00000000000000000000001000000000\n"
20562 "\\& vec($_, 6, 4) = 4 == 67108864 00000000000000000000000000100000\n"
20563 "\\& vec($_, 7, 4) = 4 == 1073741824 00000000000000000000000000000010\n"
20564 "\\& vec($_, 0, 4) = 8 == 8 00010000000000000000000000000000\n"
20565 "\\& vec($_, 1, 4) = 8 == 128 00000001000000000000000000000000\n"
20566 "\\& vec($_, 2, 4) = 8 == 2048 00000000000100000000000000000000\n"
20567 "\\& vec($_, 3, 4) = 8 == 32768 00000000000000010000000000000000\n"
20568 "\\& vec($_, 4, 4) = 8 == 524288 00000000000000000001000000000000\n"
20569 "\\& vec($_, 5, 4) = 8 == 8388608 00000000000000000000000100000000\n"
20570 "\\& vec($_, 6, 4) = 8 == 134217728 00000000000000000000000000010000\n"
20571 "\\& vec($_, 7, 4) = 8 == 2147483648 00000000000000000000000000000001\n"
20572 "\\& vec($_, 0, 8) = 1 == 1 10000000000000000000000000000000\n"
20573 "\\& vec($_, 1, 8) = 1 == 256 00000000100000000000000000000000\n"
20574 "\\& vec($_, 2, 8) = 1 == 65536 00000000000000001000000000000000\n"
20575 "\\& vec($_, 3, 8) = 1 == 16777216 00000000000000000000000010000000\n"
20576 "\\& vec($_, 0, 8) = 2 == 2 01000000000000000000000000000000\n"
20577 "\\& vec($_, 1, 8) = 2 == 512 00000000010000000000000000000000\n"
20578 "\\& vec($_, 2, 8) = 2 == 131072 00000000000000000100000000000000\n"
20579 "\\& vec($_, 3, 8) = 2 == 33554432 00000000000000000000000001000000\n"
20580 "\\& vec($_, 0, 8) = 4 == 4 00100000000000000000000000000000\n"
20581 "\\& vec($_, 1, 8) = 4 == 1024 00000000001000000000000000000000\n"
20582 "\\& vec($_, 2, 8) = 4 == 262144 00000000000000000010000000000000\n"
20583 "\\& vec($_, 3, 8) = 4 == 67108864 00000000000000000000000000100000\n"
20584 "\\& vec($_, 0, 8) = 8 == 8 00010000000000000000000000000000\n"
20585 "\\& vec($_, 1, 8) = 8 == 2048 00000000000100000000000000000000\n"
20586 "\\& vec($_, 2, 8) = 8 == 524288 00000000000000000001000000000000\n"
20587 "\\& vec($_, 3, 8) = 8 == 134217728 00000000000000000000000000010000\n"
20588 "\\& vec($_, 0, 8) = 16 == 16 00001000000000000000000000000000\n"
20589 "\\& vec($_, 1, 8) = 16 == 4096 00000000000010000000000000000000\n"
20590 "\\& vec($_, 2, 8) = 16 == 1048576 00000000000000000000100000000000\n"
20591 "\\& vec($_, 3, 8) = 16 == 268435456 00000000000000000000000000001000\n"
20592 "\\& vec($_, 0, 8) = 32 == 32 00000100000000000000000000000000\n"
20593 "\\& vec($_, 1, 8) = 32 == 8192 00000000000001000000000000000000\n"
20594 "\\& vec($_, 2, 8) = 32 == 2097152 00000000000000000000010000000000\n"
20595 "\\& vec($_, 3, 8) = 32 == 536870912 00000000000000000000000000000100\n"
20596 "\\& vec($_, 0, 8) = 64 == 64 00000010000000000000000000000000\n"
20597 "\\& vec($_, 1, 8) = 64 == 16384 00000000000000100000000000000000\n"
20598 "\\& vec($_, 2, 8) = 64 == 4194304 00000000000000000000001000000000\n"
20599 "\\& vec($_, 3, 8) = 64 == 1073741824 00000000000000000000000000000010\n"
20600 "\\& vec($_, 0, 8) = 128 == 128 00000001000000000000000000000000\n"
20601 "\\& vec($_, 1, 8) = 128 == 32768 00000000000000010000000000000000\n"
20602 "\\& vec($_, 2, 8) = 128 == 8388608 00000000000000000000000100000000\n"
20603 "\\& vec($_, 3, 8) = 128 == 2147483648 00000000000000000000000000000001\n"
20604 msgstr ""
20605
20606 #. type: IX
20607 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20608 #: opensuse-leap-16-1 opensuse-tumbleweed
20609 #, no-wrap
20610 msgid "wait"
20611 msgstr ""
20612
20613 #. type: Plain text
20614 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20615 #: opensuse-leap-16-1 opensuse-tumbleweed
20616 msgid ""
20617 "Behaves like B<wait>\\|(2) on your system: it waits for a child process to "
20618 "terminate and returns the pid of the deceased process, or \\&CW<-1> if there "
20619 "are no child processes. The status is returned in \\&CW<$?> and "
20620 "\\&CW<\\*(C`${^CHILD_ERROR_NATIVE}\\*(C'>. Note that a return value of "
20621 "CW<-1> could mean that child processes are being automatically reaped, as "
20622 "described in perlipc."
20623 msgstr ""
20624
20625 #. type: Plain text
20626 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20627 #: opensuse-leap-16-1 opensuse-tumbleweed
20628 msgid ""
20629 "If you use CW<\\*(C`wait\\*(C'> in your handler for \\&CW<$SIG{CHLD}>, it "
20630 "may accidentally wait for the child created by CW<\\*(C`qx\\*(C'> or "
20631 "CW<\\*(C`system\\*(C'>. See perlipc for details."
20632 msgstr ""
20633
20634 #. type: Plain text
20635 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20636 #: opensuse-leap-16-1 opensuse-tumbleweed
20637 msgid "Equivalent to CW<\\*(C`waitpid(-1, 0)\\*(C'>."
20638 msgstr ""
20639
20640 #. type: Plain text
20641 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20642 #: opensuse-leap-16-1 opensuse-tumbleweed
20643 msgid "Portability issues: \"wait\" in perlport."
20644 msgstr ""
20645
20646 #. type: IX
20647 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20648 #: opensuse-leap-16-1 opensuse-tumbleweed
20649 #, no-wrap
20650 msgid "waitpid PID,FLAGS"
20651 msgstr ""
20652
20653 #. type: IX
20654 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20655 #: opensuse-leap-16-1 opensuse-tumbleweed
20656 #, no-wrap
20657 msgid "waitpid"
20658 msgstr ""
20659
20660 #. type: Plain text
20661 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20662 #: opensuse-leap-16-1 opensuse-tumbleweed
20663 msgid ""
20664 "Waits for a particular child process to terminate and returns the pid of the "
20665 "deceased process, or CW<-1> if there is no such child process. A non-"
20666 "blocking wait (with WNOHANG in FLAGS) can return 0 if there are child "
20667 "processes matching PID but none have terminated yet. The status is returned "
20668 "in CW<$?> and \\&CW<\\*(C`${^CHILD_ERROR_NATIVE}\\*(C'>."
20669 msgstr ""
20670
20671 #. type: Plain text
20672 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20673 #: opensuse-leap-16-1 opensuse-tumbleweed
20674 msgid ""
20675 "A PID of CW<0> indicates to wait for any child process whose process group "
20676 "ID is equal to that of the current process. A PID of less than CW<-1> "
20677 "indicates to wait for any child process whose process group ID is equal to "
20678 "-PID. A PID of \\&CW<-1> indicates to wait for any child process."
20679 msgstr ""
20680
20681 #. type: Plain text
20682 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20683 #: opensuse-leap-16-1 opensuse-tumbleweed
20684 msgid "If you say"
20685 msgstr ""
20686
20687 #. type: Plain text
20688 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20689 #: opensuse-leap-16-1 opensuse-tumbleweed
20690 #, no-wrap
20691 msgid ""
20692 "\\& use POSIX \":sys_wait_h\";\n"
20693 "\\&\n"
20694 "\\& my $kid;\n"
20695 "\\& do {\n"
20696 "\\& $kid = waitpid(-1, WNOHANG);\n"
20697 "\\& } while $kid E<gt> 0;\n"
20698 msgstr ""
20699
20700 #. type: Plain text
20701 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20702 #: opensuse-leap-16-1 opensuse-tumbleweed
20703 #, no-wrap
20704 msgid "\\& 1 while waitpid(-1, WNOHANG) E<gt> 0;\n"
20705 msgstr ""
20706
20707 #. type: Plain text
20708 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20709 #: opensuse-leap-16-1 opensuse-tumbleweed
20710 msgid ""
20711 "then you can do a non-blocking wait for all pending zombie processes (see "
20712 "\"WAIT\" in POSIX). Non-blocking wait is available on machines supporting "
20713 "either the \\&B<waitpid>\\|(2) or B<wait4>\\|(2) syscalls. However, waiting "
20714 "for a particular pid with FLAGS of CW<0> is implemented everywhere. (Perl "
20715 "emulates the system call by remembering the status values of processes that "
20716 "have exited but have not been harvested by the Perl script yet.)"
20717 msgstr ""
20718
20719 #. type: Plain text
20720 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20721 #: opensuse-leap-16-1 opensuse-tumbleweed
20722 msgid ""
20723 "Note that on some systems, a return value of CW<-1> could mean that child "
20724 "processes are being automatically reaped. See perlipc for details, and for "
20725 "other examples."
20726 msgstr ""
20727
20728 #. type: Plain text
20729 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20730 #: opensuse-leap-16-1 opensuse-tumbleweed
20731 msgid "Portability issues: \"waitpid\" in perlport."
20732 msgstr ""
20733
20734 #. type: IX
20735 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20736 #: opensuse-leap-16-1 opensuse-tumbleweed
20737 #, no-wrap
20738 msgid "wantarray"
20739 msgstr ""
20740
20741 #. type: IX
20742 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20743 #: opensuse-leap-16-1 opensuse-tumbleweed
20744 #, no-wrap
20745 msgid "wantarray context"
20746 msgstr ""
20747
20748 #. type: Plain text
20749 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20750 #: opensuse-leap-16-1 opensuse-tumbleweed
20751 msgid ""
20752 "Returns true if the context of the currently executing subroutine or "
20753 "\\&CW<\\*(C`eval\\*(C'> is looking for a list value. Returns false if the "
20754 "context is looking for a scalar. Returns the undefined value if the context "
20755 "is looking for no value (void context)."
20756 msgstr ""
20757
20758 #. type: Plain text
20759 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20760 #: opensuse-leap-16-1 opensuse-tumbleweed
20761 #, no-wrap
20762 msgid ""
20763 "\\& return unless defined wantarray; # don\\*(Aqt bother doing more\n"
20764 "\\& my @a = complex_calculation();\n"
20765 "\\& return wantarray ? @a : \"@a\";\n"
20766 msgstr ""
20767
20768 #. type: Plain text
20769 #: debian-trixie debian-unstable
20770 msgid ""
20771 "\\&CW<\\*(C`wantarray\\*(C'>'s result is unspecified in the top level of a "
20772 "file, in a CW<\\*(C`BEGIN\\*(C'>, CW<\\*(C`UNITCHECK\\*(C'>, "
20773 "CW<\\*(C`CHECK\\*(C'>, CW<\\*(C`INIT\\*(C'> or CW<\\*(C`END\\*(C'> block, or "
20774 "in a CW<\\*(C`DESTROY\\*(C'> method."
20775 msgstr ""
20776
20777 #. type: Plain text
20778 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20779 #: opensuse-leap-16-1 opensuse-tumbleweed
20780 msgid "This function should have been named B<wantlist()> instead."
20781 msgstr ""
20782
20783 #. type: IX
20784 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20785 #: opensuse-leap-16-1 opensuse-tumbleweed
20786 #, no-wrap
20787 msgid "warn LIST"
20788 msgstr ""
20789
20790 #. type: IX
20791 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20792 #: opensuse-leap-16-1 opensuse-tumbleweed
20793 #, no-wrap
20794 msgid "warn warning STDERR"
20795 msgstr ""
20796
20797 #. type: Plain text
20798 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20799 #: opensuse-leap-16-1 opensuse-tumbleweed
20800 msgid ""
20801 "Emits a warning, usually by printing it to CW<\\*(C`STDERR\\*(C'>. "
20802 "CW<\\*(C`warn\\*(C'> interprets its operand LIST in the same way as "
20803 "CW<\\*(C`die\\*(C'>, but is slightly different in what it defaults to when "
20804 "LIST is empty or makes an empty string. If it is empty and CW<$@> already "
20805 "contains an exception value then that value is used after appending "
20806 "CW<\"\\et...caught\">. If it is empty and CW<$@> is also empty then the "
20807 "string CW<\"Warning: Something\\*(Aqs wrong\"> is used."
20808 msgstr ""
20809
20810 #. type: Plain text
20811 #: debian-trixie debian-unstable
20812 msgid ""
20813 "By default, the exception derived from the operand LIST is stringified and "
20814 "printed to CW<\\*(C`STDERR\\*(C'>. This behaviour can be altered by "
20815 "installing a CW<$SIG{_\\|_WARN_\\|_}> handler. If there is such a handler "
20816 "then no message is automatically printed; it is the handler's responsibility "
20817 "to deal with the exception as it sees fit (like, for instance, converting it "
20818 "into a \\&CW<\\*(C`die\\*(C'>). Most handlers must therefore arrange to "
20819 "actually display the warnings that they are not prepared to deal with, by "
20820 "calling \\&CW<\\*(C`warn\\*(C'> again in the handler. Note that this is "
20821 "quite safe and will not produce an endless loop, since CW<\\*(C`_\\|_WARN_\\|"
20822 "_\\*(C'> hooks are not called from inside one."
20823 msgstr ""
20824
20825 #. type: Plain text
20826 #: debian-trixie debian-unstable
20827 msgid ""
20828 "You will find this behavior is slightly different from that of "
20829 "\\&CW<$SIG{_\\|_DIE_\\|_}> handlers (which don't suppress the error text, "
20830 "but can instead call CW<\\*(C`die\\*(C'> again to change it)."
20831 msgstr ""
20832
20833 #. type: Plain text
20834 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20835 #: opensuse-leap-16-1 opensuse-tumbleweed
20836 msgid ""
20837 "Using a CW<\\*(C`_\\|_WARN_\\|_\\*(C'> handler provides a powerful way to "
20838 "silence all warnings (even the so-called mandatory ones). An example:"
20839 msgstr ""
20840
20841 #. type: Plain text
20842 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20843 #: opensuse-leap-16-1 opensuse-tumbleweed
20844 #, no-wrap
20845 msgid ""
20846 "\\& # wipe out *all* compile-time warnings\n"
20847 "\\& BEGIN { $SIG{\\*(Aq_\\|_WARN_\\|_\\*(Aq} = sub { warn $_[0] if $DOWARN } }\n"
20848 "\\& my $foo = 10;\n"
20849 "\\& my $foo = 20; # no warning about duplicate my $foo,\n"
20850 "\\& # but hey, you asked for it!\n"
20851 "\\& # no compile-time or run-time warnings before here\n"
20852 "\\& $DOWARN = 1;\n"
20853 "\\&\n"
20854 "\\& # run-time warnings enabled after here\n"
20855 "\\& warn \"\\e$foo is alive and $foo!\"; # does show up\n"
20856 msgstr ""
20857
20858 #. type: Plain text
20859 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20860 #: opensuse-leap-16-1 opensuse-tumbleweed
20861 msgid ""
20862 "See perlvar for details on setting CW<%SIG> entries and for more examples. "
20863 "See the Carp module for other kinds of warnings using its "
20864 "\\&CW<\\*(C`carp\\*(C'> and CW<\\*(C`cluck\\*(C'> functions."
20865 msgstr ""
20866
20867 #. type: IX
20868 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20869 #: opensuse-leap-16-1 opensuse-tumbleweed
20870 #, no-wrap
20871 msgid "write FILEHANDLE"
20872 msgstr ""
20873
20874 #. type: IX
20875 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20876 #: opensuse-leap-16-1 opensuse-tumbleweed
20877 #, no-wrap
20878 msgid "write"
20879 msgstr ""
20880
20881 #. type: IX
20882 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20883 #: opensuse-leap-16-1 opensuse-tumbleweed
20884 #, no-wrap
20885 msgid "write EXPR"
20886 msgstr ""
20887
20888 #. type: Plain text
20889 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20890 #: opensuse-leap-16-1 opensuse-tumbleweed
20891 msgid ""
20892 "Writes a formatted record (possibly multi-line) to the specified FILEHANDLE, "
20893 "using the format associated with that file. By default the format for a "
20894 "file is the one having the same name as the filehandle, but the format for "
20895 "the current output channel (see the \\&CW<\\*(C`select\\*(C'> function) may "
20896 "be set explicitly by assigning the name of the format to the CW<$~> variable."
20897 msgstr ""
20898
20899 #. type: Plain text
20900 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20901 #: opensuse-leap-16-1 opensuse-tumbleweed
20902 msgid ""
20903 "Top of form processing is handled automatically: if there is insufficient "
20904 "room on the current page for the formatted record, the page is advanced by "
20905 "writing a form feed and a special top-of-page format is used to format the "
20906 "new page header before the record is written. By default, the top-of-page "
20907 "format is the name of the filehandle with CW<\\*(C`_TOP\\*(C'> appended, or "
20908 "CW<\\*(C`top\\*(C'> in the current package if the former does not exist. "
20909 "This would be a problem with autovivified filehandles, but it may be "
20910 "dynamically set to the format of your choice by assigning the name to the "
20911 "CW<$^> variable while that filehandle is selected. The number of lines "
20912 "remaining on the current page is in variable CW<\\*(C`$-\\*(C'>, which can "
20913 "be set to CW<0> to force a new page."
20914 msgstr ""
20915
20916 #. type: Plain text
20917 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20918 #: opensuse-leap-16-1 opensuse-tumbleweed
20919 msgid ""
20920 "If FILEHANDLE is unspecified, output goes to the current default output "
20921 "channel, which starts out as STDOUT but may be changed by the "
20922 "\\&CW<\\*(C`select\\*(C'> operator. If the FILEHANDLE is an EXPR, then the "
20923 "expression is evaluated and the resulting string is used to look up the name "
20924 "of the FILEHANDLE at run time. For more on formats, see perlform."
20925 msgstr ""
20926
20927 #. type: Plain text
20928 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20929 #: opensuse-leap-16-1 opensuse-tumbleweed
20930 msgid ""
20931 "Note that write is I<not> the opposite of \\&CW<\\*(C`read\\*(C'>. "
20932 "Unfortunately."
20933 msgstr ""
20934
20935 #. type: IX
20936 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20937 #: opensuse-leap-16-1 opensuse-tumbleweed
20938 #, no-wrap
20939 msgid "y///"
20940 msgstr ""
20941
20942 #. type: Plain text
20943 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20944 #: opensuse-leap-16-1 opensuse-tumbleweed
20945 msgid ""
20946 "The transliteration operator. Same as \\&CW<\\*(C`tr///\\*(C'>. See "
20947 "\"Quote-Like Operators\" in perlop."
20948 msgstr ""
20949
20950 #. type: IX
20951 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20952 #: opensuse-leap-16-1 opensuse-tumbleweed
20953 #, no-wrap
20954 msgid "Non-function Keywords by Cross-reference"
20955 msgstr ""
20956
20957 #. type: Plain text
20958 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20959 #: opensuse-leap-16-1 opensuse-tumbleweed
20960 msgid "I<perldata>"
20961 msgstr ""
20962
20963 #. type: IX
20964 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20965 #: opensuse-leap-16-1 opensuse-tumbleweed
20966 #, no-wrap
20967 msgid "perldata"
20968 msgstr ""
20969
20970 #. type: IP
20971 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20972 #: opensuse-leap-16-1 opensuse-tumbleweed
20973 #, no-wrap
20974 msgid "_\\|_DATA_\\|_"
20975 msgstr ""
20976
20977 #. type: IX
20978 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20979 #: opensuse-leap-16-1 opensuse-tumbleweed
20980 #, no-wrap
20981 msgid "__DATA__"
20982 msgstr ""
20983
20984 #. type: IP
20985 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20986 #: opensuse-leap-16-1 opensuse-tumbleweed
20987 #, no-wrap
20988 msgid "_\\|_END_\\|_"
20989 msgstr ""
20990
20991 #. type: IX
20992 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
20993 #: opensuse-leap-16-1 opensuse-tumbleweed
20994 #, no-wrap
20995 msgid "__END__"
20996 msgstr ""
20997
20998 #. type: Plain text
20999 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21000 #: opensuse-leap-16-1 opensuse-tumbleweed
21001 msgid "These keywords are documented in \"Special Literals\" in perldata."
21002 msgstr ""
21003
21004 #. type: Plain text
21005 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21006 #: opensuse-leap-16-1 opensuse-tumbleweed
21007 msgid "I<perlmod>"
21008 msgstr ""
21009
21010 #. type: IX
21011 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21012 #: opensuse-leap-16-1 opensuse-tumbleweed
21013 #, no-wrap
21014 msgid "perlmod"
21015 msgstr ""
21016
21017 #. type: IX
21018 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21019 #: opensuse-leap-16-1 opensuse-tumbleweed
21020 #, no-wrap
21021 msgid "BEGIN"
21022 msgstr ""
21023
21024 #. type: IX
21025 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21026 #: opensuse-leap-16-1 opensuse-tumbleweed
21027 #, no-wrap
21028 msgid "CHECK"
21029 msgstr ""
21030
21031 #. type: IX
21032 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21033 #: opensuse-leap-16-1 opensuse-tumbleweed
21034 #, no-wrap
21035 msgid "END"
21036 msgstr ""
21037
21038 #. type: IX
21039 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21040 #: opensuse-leap-16-1 opensuse-tumbleweed
21041 #, no-wrap
21042 msgid "INIT"
21043 msgstr ""
21044
21045 #. type: IX
21046 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21047 #: opensuse-leap-16-1 opensuse-tumbleweed
21048 #, no-wrap
21049 msgid "UNITCHECK"
21050 msgstr ""
21051
21052 #. type: Plain text
21053 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21054 #: opensuse-leap-16-1 opensuse-tumbleweed
21055 msgid ""
21056 "These compile phase keywords are documented in \"BEGIN, UNITCHECK, CHECK, "
21057 "INIT and END\" in perlmod."
21058 msgstr ""
21059
21060 #. type: Plain text
21061 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21062 #: opensuse-leap-16-1 opensuse-tumbleweed
21063 msgid "I<perlobj>"
21064 msgstr ""
21065
21066 #. type: IX
21067 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21068 #: opensuse-leap-16-1 opensuse-tumbleweed
21069 #, no-wrap
21070 msgid "perlobj"
21071 msgstr ""
21072
21073 #. type: IX
21074 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21075 #: opensuse-leap-16-1 opensuse-tumbleweed
21076 #, no-wrap
21077 msgid "DESTROY"
21078 msgstr ""
21079
21080 #. type: Plain text
21081 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21082 #: opensuse-leap-16-1 opensuse-tumbleweed
21083 msgid "This method keyword is documented in \"Destructors\" in perlobj."
21084 msgstr ""
21085
21086 #. type: Plain text
21087 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21088 #: opensuse-leap-16-1 opensuse-tumbleweed
21089 msgid "I<perlop>"
21090 msgstr ""
21091
21092 #. type: IX
21093 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21094 #: opensuse-leap-16-1 opensuse-tumbleweed
21095 #, no-wrap
21096 msgid "perlop"
21097 msgstr ""
21098
21099 #. type: IX
21100 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21101 #: opensuse-leap-16-1 opensuse-tumbleweed
21102 #, no-wrap
21103 msgid "and"
21104 msgstr ""
21105
21106 #. type: IX
21107 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21108 #: opensuse-leap-16-1 opensuse-tumbleweed
21109 #, no-wrap
21110 msgid "cmp"
21111 msgstr ""
21112
21113 #. type: IX
21114 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21115 #: opensuse-leap-16-1 opensuse-tumbleweed
21116 #, no-wrap
21117 msgid "eq"
21118 msgstr ""
21119
21120 #. type: IX
21121 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21122 #: opensuse-leap-16-1 opensuse-tumbleweed
21123 #, no-wrap
21124 msgid "ge"
21125 msgstr ""
21126
21127 #. type: IX
21128 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21129 #: opensuse-leap-16-1 opensuse-tumbleweed
21130 #, no-wrap
21131 msgid "gt"
21132 msgstr ""
21133
21134 #. type: IX
21135 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21136 #: opensuse-leap-16-1 opensuse-tumbleweed
21137 #, no-wrap
21138 msgid "isa"
21139 msgstr ""
21140
21141 #. type: IX
21142 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21143 #: opensuse-leap-16-1 opensuse-tumbleweed
21144 #, no-wrap
21145 msgid "le"
21146 msgstr ""
21147
21148 #. type: IX
21149 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21150 #: opensuse-leap-16-1 opensuse-tumbleweed
21151 #, no-wrap
21152 msgid "lt"
21153 msgstr ""
21154
21155 #. type: IX
21156 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21157 #: opensuse-leap-16-1 opensuse-tumbleweed
21158 #, no-wrap
21159 msgid "ne"
21160 msgstr ""
21161
21162 #. type: IX
21163 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21164 #: opensuse-leap-16-1 opensuse-tumbleweed
21165 #, no-wrap
21166 msgid "not"
21167 msgstr ""
21168
21169 #. type: IX
21170 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21171 #: opensuse-leap-16-1 opensuse-tumbleweed
21172 #, no-wrap
21173 msgid "x"
21174 msgstr ""
21175
21176 #. type: IX
21177 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21178 #: opensuse-leap-16-1 opensuse-tumbleweed
21179 #, no-wrap
21180 msgid "xor"
21181 msgstr ""
21182
21183 #. type: Plain text
21184 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21185 #: opensuse-leap-16-1 opensuse-tumbleweed
21186 msgid "These operators are documented in perlop."
21187 msgstr ""
21188
21189 #. type: Plain text
21190 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21191 #: opensuse-leap-16-1 opensuse-tumbleweed
21192 msgid "I<perlsub>"
21193 msgstr ""
21194
21195 #. type: IX
21196 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21197 #: opensuse-leap-16-1 opensuse-tumbleweed
21198 #, no-wrap
21199 msgid "perlsub"
21200 msgstr ""
21201
21202 #. type: IX
21203 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21204 #: opensuse-leap-16-1 opensuse-tumbleweed
21205 #, no-wrap
21206 msgid "AUTOLOAD"
21207 msgstr ""
21208
21209 #. type: Plain text
21210 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21211 #: opensuse-leap-16-1 opensuse-tumbleweed
21212 msgid "This keyword is documented in \"Autoloading\" in perlsub."
21213 msgstr ""
21214
21215 #. type: Plain text
21216 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21217 #: opensuse-leap-16-1 opensuse-tumbleweed
21218 msgid "I<perlsyn>"
21219 msgstr ""
21220
21221 #. type: IX
21222 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21223 #: opensuse-leap-16-1 opensuse-tumbleweed
21224 #, no-wrap
21225 msgid "perlsyn"
21226 msgstr ""
21227
21228 #. type: IX
21229 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21230 #: opensuse-leap-16-1 opensuse-tumbleweed
21231 #, no-wrap
21232 msgid "else"
21233 msgstr ""
21234
21235 #. type: IX
21236 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21237 #: opensuse-leap-16-1 opensuse-tumbleweed
21238 #, no-wrap
21239 msgid "elsif"
21240 msgstr ""
21241
21242 #. type: IX
21243 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21244 #: opensuse-leap-16-1 opensuse-tumbleweed
21245 #, no-wrap
21246 msgid "for"
21247 msgstr ""
21248
21249 #. type: IX
21250 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21251 #: opensuse-leap-16-1 opensuse-tumbleweed
21252 #, no-wrap
21253 msgid "foreach"
21254 msgstr ""
21255
21256 #. type: IX
21257 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21258 #: opensuse-leap-16-1 opensuse-tumbleweed
21259 #, no-wrap
21260 msgid "if"
21261 msgstr ""
21262
21263 #. type: IX
21264 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21265 #: opensuse-leap-16-1 opensuse-tumbleweed
21266 #, no-wrap
21267 msgid "unless"
21268 msgstr ""
21269
21270 #. type: IX
21271 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21272 #: opensuse-leap-16-1 opensuse-tumbleweed
21273 #, no-wrap
21274 msgid "until"
21275 msgstr ""
21276
21277 #. type: IX
21278 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21279 #: opensuse-leap-16-1 opensuse-tumbleweed
21280 #, no-wrap
21281 msgid "while"
21282 msgstr ""
21283
21284 #. type: Plain text
21285 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21286 #: opensuse-leap-16-1 opensuse-tumbleweed
21287 msgid ""
21288 "These flow-control keywords are documented in \"Compound Statements\" in "
21289 "perlsyn."
21290 msgstr ""
21291
21292 #. type: IX
21293 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21294 #: opensuse-leap-16-1 opensuse-tumbleweed
21295 #, no-wrap
21296 msgid "elseif"
21297 msgstr ""
21298
21299 #. type: Plain text
21300 #: debian-trixie debian-unstable
21301 msgid ""
21302 "The \"else if\" keyword is spelled CW<\\*(C`elsif\\*(C'> in Perl. There's "
21303 "no CW<\\*(C`elif\\*(C'> or CW<\\*(C`else if\\*(C'> either. It does parse "
21304 "CW<\\*(C`elseif\\*(C'>, but only to warn you about not using it."
21305 msgstr ""
21306
21307 #. type: Plain text
21308 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21309 #: opensuse-leap-16-1 opensuse-tumbleweed
21310 msgid ""
21311 "See the documentation for flow-control keywords in \"Compound Statements\" "
21312 "in perlsyn."
21313 msgstr ""
21314
21315 #. type: IX
21316 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21317 #: opensuse-leap-16-1 opensuse-tumbleweed
21318 #, no-wrap
21319 msgid "default"
21320 msgstr ""
21321
21322 #. type: IX
21323 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21324 #: opensuse-leap-16-1 opensuse-tumbleweed
21325 #, no-wrap
21326 msgid "given"
21327 msgstr ""
21328
21329 #. type: IX
21330 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21331 #: opensuse-leap-16-1 opensuse-tumbleweed
21332 #, no-wrap
21333 msgid "when"
21334 msgstr ""
21335
21336 #. type: Plain text
21337 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21338 #: opensuse-leap-16-1 opensuse-tumbleweed
21339 msgid ""
21340 "These flow-control keywords related to the experimental switch feature are "
21341 "documented in \"Switch Statements\" in perlsyn."
21342 msgstr ""
21343
21344 #. type: IX
21345 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21346 #: opensuse-leap-16-1 opensuse-tumbleweed
21347 #, no-wrap
21348 msgid "try"
21349 msgstr ""
21350
21351 #. type: IX
21352 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21353 #: opensuse-leap-16-1 opensuse-tumbleweed
21354 #, no-wrap
21355 msgid "catch"
21356 msgstr ""
21357
21358 #. type: IX
21359 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21360 #: opensuse-leap-16-1 opensuse-tumbleweed
21361 #, no-wrap
21362 msgid "finally"
21363 msgstr ""
21364
21365 #. type: Plain text
21366 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21367 #: opensuse-leap-16-1 opensuse-tumbleweed
21368 msgid ""
21369 "These flow-control keywords related to the experimental CW<\\*(C`try\\*(C'> "
21370 "feature are documented in \"Try Catch Exception Handling\" in perlsyn."
21371 msgstr ""
21372
21373 #. type: IX
21374 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21375 #: opensuse-leap-16-1 opensuse-tumbleweed
21376 #, no-wrap
21377 msgid "defer"
21378 msgstr ""
21379
21380 #. type: Plain text
21381 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21382 #: opensuse-leap-16-1 opensuse-tumbleweed
21383 msgid ""
21384 "This flow-control keyword related to the experimental CW<\\*(C`defer\\*(C'> "
21385 "feature is documented in \"defer blocks\" in perlsyn."
21386 msgstr ""
21387
21388 #. type: IX
21389 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21390 #: opensuse-leap-16-1 opensuse-tumbleweed
21391 #, no-wrap
21392 msgid "ADJUST"
21393 msgstr ""
21394
21395 #. type: Plain text
21396 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21397 #: opensuse-leap-16-1 opensuse-tumbleweed
21398 msgid "This class-related phaser block is documented in perlclass."
21399 msgstr ""
21400
21401 #. type: TH
21402 #: debian-unstable
21403 #, no-wrap
21404 msgid "2025-11-16"
21405 msgstr ""
21406
21407 #. type: TH
21408 #: fedora-44 opensuse-leap-16-1 opensuse-tumbleweed
21409 #, no-wrap
21410 msgid "2026-03-09"
21411 msgstr ""
21412
21413 #. type: TH
21414 #: fedora-44 opensuse-leap-16-1 opensuse-tumbleweed
21415 #, no-wrap
21416 msgid "perl v5.42.1"
21417 msgstr ""
21418
21419 #. type: Plain text
21420 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21421 #: opensuse-tumbleweed
21422 msgid ""
21423 "Any function in the list below may be used either with or without "
21424 "parentheses around its arguments. (The syntax descriptions omit the "
21425 "parentheses.) If you use parentheses, the simple but occasionally "
21426 "surprising rule is this: It I<looks> like a function, therefore it I<is> a "
21427 "function, and precedence doesn\\*(Aqt matter. Otherwise it\\*(Aqs a list "
21428 "operator or unary operator, and precedence does matter. Whitespace between "
21429 "the function and left parenthesis doesn\\*(Aqt count, so sometimes you need "
21430 "to be careful:"
21431 msgstr ""
21432
21433 #. type: Plain text
21434 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21435 #: opensuse-tumbleweed
21436 msgid ""
21437 "A named array in scalar context is quite different from what would at first "
21438 "glance appear to be a list in scalar context. You can\\*(Aqt get a list "
21439 "like CW<\\*(C`(1,2,3)\\*(C'> into being in scalar context, because the "
21440 "compiler knows the context at compile time. It would generate the scalar "
21441 "comma operator there, not the list concatenation version of the comma. That "
21442 "means it was never a list to start with."
21443 msgstr ""
21444
21445 #. type: Plain text
21446 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21447 #: opensuse-tumbleweed
21448 msgid ""
21449 "Extension modules can also hook into the Perl parser to define new kinds of "
21450 "keyword-headed expression. These may look like functions, but may also look "
21451 "completely different. The syntax following the keyword is defined entirely "
21452 "by the extension. If you are an implementor, see \"PL_keyword_plugin\" in "
21453 "perlapi for the mechanism. If you are using such a module, see the "
21454 "module\\*(Aqs documentation for details of the syntax that it defines."
21455 msgstr ""
21456
21457 #. type: Plain text
21458 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21459 #: opensuse-tumbleweed
21460 msgid ""
21461 "Here are Perl\\*(Aqs functions (including things that look like functions, "
21462 "like some keywords and named operators) arranged by category. Some "
21463 "functions appear in more than one place. Any warnings, including those "
21464 "produced by keywords, are described in perldiag and warnings."
21465 msgstr ""
21466
21467 #. type: Plain text
21468 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21469 #: opensuse-tumbleweed
21470 msgid ""
21471 "\\&CW<\\*(C`all\\*(C'>, CW<\\*(C`any\\*(C'>, \\&CW<\\*(C`grep\\*(C'>, "
21472 "CW<\\*(C`join\\*(C'>, \\&CW<\\*(C`map\\*(C'>, CW<\\*(C`qw//\\*(C'>, "
21473 "\\&CW<\\*(C`reverse\\*(C'>, CW<\\*(C`sort\\*(C'>, \\&CW<\\*(C`unpack\\*(C'>"
21474 msgstr ""
21475
21476 #. type: Plain text
21477 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21478 #: opensuse-tumbleweed
21479 msgid ""
21480 "A file test, where X is one of the letters listed below. This unary "
21481 "operator takes one argument, either a filename, a filehandle, or a "
21482 "dirhandle, and tests the associated file to see if something is true about "
21483 "it. If the argument is omitted, tests CW<$_>, except for CW<\\*(C`-"
21484 "t\\*(C'>, which tests STDIN. Unless otherwise documented, it returns CW<1> "
21485 "for true and \\&CW<\\*(Aq\\*(Aq> for false. If the file doesn\\*(Aqt exist "
21486 "or can\\*(Aqt be examined, it returns CW<\\*(C`undef\\*(C'> and sets CW<$!> "
21487 "(errno). With the exception of the CW<\\*(C`-l\\*(C'> test they all follow "
21488 "symbolic links because they use CW<stat()> and not CW<lstat()> (so dangling "
21489 "symlinks can\\*(Aqt be examined and will therefore report failure)."
21490 msgstr ""
21491
21492 #. type: Plain text
21493 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21494 #: opensuse-tumbleweed
21495 msgid ""
21496 "The interpretation of the file permission operators CW<\\*(C`-r\\*(C'>, "
21497 "CW<\\*(C`-R\\*(C'>, \\&CW<\\*(C`-w\\*(C'>, CW<\\*(C`-W\\*(C'>, CW<\\*(C`-"
21498 "x\\*(C'>, and CW<\\*(C`-X\\*(C'> is by default based solely on the mode of "
21499 "the file and the uids and gids of the user. There may be other reasons you "
21500 "can\\*(Aqt actually read, write, or execute the file: for example network "
21501 "filesystem access controls, ACLs (access control lists), read-only "
21502 "filesystems, and unrecognized executable formats. Note that the use of "
21503 "these six specific operators to verify if some operation is possible is "
21504 "usually a mistake, because it may be open to race conditions."
21505 msgstr ""
21506
21507 #. type: Plain text
21508 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21509 #: opensuse-tumbleweed
21510 msgid ""
21511 "If you are using ACLs, there is a pragma called CW<\\*(C`filetest\\*(C'> "
21512 "that may produce more accurate results than the bare \\&CW<\\*(C`stat\\*(C'> "
21513 "mode bits. When under CW<\\*(C`use filetest \\*(Aqaccess\\*(Aq\\*(C'>, the "
21514 "above-mentioned filetests test whether the permission can(not) be granted "
21515 "using the B<access>\\|(2) family of system calls. Also note that the "
21516 "CW<\\*(C`-x\\*(C'> and CW<\\*(C`-X\\*(C'> tests may under this pragma return "
21517 "true even if there are no execute permission bits set (nor any extra execute "
21518 "permission ACLs). This strangeness is due to the underlying system "
21519 "calls\\*(Aq definitions. Note also that, due to the implementation of "
21520 "CW<\\*(C`use filetest \\*(Aqaccess\\*(Aq\\*(C'>, the CW<\\*(C`_\\*(C'> "
21521 "special filehandle won\\*(Aqt cache the results of the file tests when this "
21522 "pragma is in effect. Read the documentation for the "
21523 "CW<\\*(C`filetest\\*(C'> pragma for more information."
21524 msgstr ""
21525
21526 #. type: Plain text
21527 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21528 #: opensuse-tumbleweed
21529 msgid ""
21530 "The CW<\\*(C`-T\\*(C'> and CW<\\*(C`-B\\*(C'> tests work as follows. The "
21531 "first block or so of the file is examined to see if it is valid UTF-8 that "
21532 "includes non-ASCII characters. If so, it\\*(Aqs a CW<\\*(C`-T\\*(C'> file. "
21533 "Otherwise, that same portion of the file is examined for odd characters such "
21534 "as strange control codes or characters with the high bit set. If more than "
21535 "a third of the characters are strange, it\\*(Aqs a CW<\\*(C`-B\\*(C'> file; "
21536 "otherwise it\\*(Aqs a CW<\\*(C`-T\\*(C'> file. Also, any file containing a "
21537 "zero byte in the examined portion is considered a binary file. (If executed "
21538 "within the scope of a use\\ locale which includes CW<\\*(C`LC_CTYPE\\*(C'>, "
21539 "odd characters are anything that isn\\*(Aqt a printable nor space in the "
21540 "current locale.) If \\&CW<\\*(C`-T\\*(C'> or CW<\\*(C`-B\\*(C'> is used on "
21541 "a filehandle, the current IO buffer is examined rather than the first "
21542 "block. Both CW<\\*(C`-T\\*(C'> and CW<\\*(C`-B\\*(C'> return true on an "
21543 "empty file, or a file at EOF when testing a filehandle. Because you have to "
21544 "read a file to do the CW<\\*(C`-T\\*(C'> test, on most occasions you want to "
21545 "use a CW<\\*(C`-f\\*(C'> against the file first, as in CW<\\*(C`next unless "
21546 "-f $file && -T $file\\*(C'>."
21547 msgstr ""
21548
21549 #. type: Plain text
21550 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21551 #: opensuse-tumbleweed
21552 msgid ""
21553 "If any of the file tests (or either the CW<\\*(C`stat\\*(C'> or "
21554 "\\&CW<\\*(C`lstat\\*(C'> operator) is given the special filehandle "
21555 "consisting of a solitary underline, then the stat structure of the previous "
21556 "file test (or CW<\\*(C`stat\\*(C'> operator) is used, saving a system call. "
21557 "(This doesn\\*(Aqt work with CW<\\*(C`-t\\*(C'>, and you need to remember "
21558 "that CW<\\*(C`lstat\\*(C'> and CW<\\*(C`-l\\*(C'> leave values in the stat "
21559 "structure for the symbolic link, not the real file.) (Also, if the stat "
21560 "buffer was filled by an CW<\\*(C`lstat\\*(C'> call, \\&CW<\\*(C`-T\\*(C'> "
21561 "and CW<\\*(C`-B\\*(C'> will reset it with the results of CW<\\*(C`stat "
21562 "_\\*(C'>). Example:"
21563 msgstr ""
21564
21565 #. type: Plain text
21566 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21567 #: opensuse-tumbleweed
21568 msgid ""
21569 "For delays of finer granularity than one second, the Time::HiRes module "
21570 "(from CPAN, and starting from Perl 5.8 part of the standard distribution) "
21571 "provides \\&CW<\\*(C`ualarm\\*(C'>. You may also use Perl\\*(Aqs four-"
21572 "argument version of \\&CW<\\*(C`select\\*(C'> leaving the first three "
21573 "arguments undefined, or you might be able to use the "
21574 "\\&CW<\\*(C`syscall\\*(C'> interface to access B<setitimer>\\|(2) if your "
21575 "system supports it. See perlfaq8 for details."
21576 msgstr ""
21577
21578 #. type: Plain text
21579 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21580 #: opensuse-tumbleweed
21581 msgid ""
21582 "If you want to use CW<\\*(C`alarm\\*(C'> to time out a system call you need "
21583 "to use an CW<\\*(C`eval\\*(C'>/CW<\\*(C`die\\*(C'> pair. You can\\*(Aqt "
21584 "rely on the alarm causing the system call to fail with \\&CW<$!> set to "
21585 "CW<\\*(C`EINTR\\*(C'> because Perl sets up signal handlers to restart system "
21586 "calls on some systems. Using \\&CW<\\*(C`eval\\*(C'>/CW<\\*(C`die\\*(C'> "
21587 "always works, modulo the caveats given in \"Signals\" in perlipc."
21588 msgstr ""
21589
21590 #. type: IX
21591 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21592 #: opensuse-tumbleweed
21593 #, no-wrap
21594 msgid "all BLOCK LIST"
21595 msgstr ""
21596
21597 #. type: Plain text
21598 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21599 #: opensuse-tumbleweed
21600 msgid ""
21601 "Evaluates the BLOCK for each element of the LIST (locally setting \\&CW<$_> "
21602 "to each element) and checks the truth of the result of that block. Returns "
21603 "true if every element makes the block yield true, or returns false if at "
21604 "least one element makes the block false."
21605 msgstr ""
21606
21607 #. type: Plain text
21608 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21609 #: opensuse-tumbleweed
21610 msgid ""
21611 "As soon as any element makes the block yield false, then the result of this "
21612 "operator is determined. It will short-circuit in that case and not consider "
21613 "any further elements."
21614 msgstr ""
21615
21616 #. type: Plain text
21617 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21618 #: opensuse-tumbleweed
21619 msgid ""
21620 "When used as a condition, this is similar to using CW<\\*(C`grep\\*(C'> to "
21621 "count that every value satisfies the condition, except for this short-"
21622 "circuit behaviour."
21623 msgstr ""
21624
21625 #. type: Plain text
21626 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21627 #: opensuse-tumbleweed
21628 #, no-wrap
21629 msgid ""
21630 "\\& if( all { length $_ } @strings ) {\n"
21631 "\\& say \"Every string is non-empty\";\n"
21632 "\\& }\n"
21633 msgstr ""
21634
21635 #. type: Plain text
21636 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21637 #: opensuse-tumbleweed
21638 msgid "is roughly equivalent to"
21639 msgstr ""
21640
21641 #. type: Plain text
21642 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21643 #: opensuse-tumbleweed
21644 #, no-wrap
21645 msgid "\\& if( @strings == grep { length $_ } @strings ) ...\n"
21646 msgstr ""
21647
21648 #. type: Plain text
21649 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21650 #: opensuse-tumbleweed
21651 msgid ""
21652 "This operator is only available if the \\&CW<\\*(C`keyword_all\\*(C'> "
21653 "feature is enabled."
21654 msgstr ""
21655
21656 #. type: Plain text
21657 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21658 #: opensuse-tumbleweed
21659 msgid ""
21660 "It is currently considered B<experimental>, and will issue a compile-time "
21661 "warning in the category CW<\\*(C`experimental::all\\*(C'> unless that "
21662 "category is silenced."
21663 msgstr ""
21664
21665 #. type: IX
21666 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21667 #: opensuse-tumbleweed
21668 #, no-wrap
21669 msgid "any BLOCK LIST"
21670 msgstr ""
21671
21672 #. type: Plain text
21673 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21674 #: opensuse-tumbleweed
21675 msgid ""
21676 "Evaluates the BLOCK for each element of the LIST (locally setting \\&CW<$_> "
21677 "to each element) and checks the truth of the result of that block. Returns "
21678 "true if at least one element makes the block yield true, or returns false if "
21679 "no element is found to make it true."
21680 msgstr ""
21681
21682 #. type: Plain text
21683 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21684 #: opensuse-tumbleweed
21685 msgid ""
21686 "As soon as any element makes the block yield true, then the result of this "
21687 "operator is determined. It will short-circuit in that case and not consider "
21688 "any further elements."
21689 msgstr ""
21690
21691 #. type: Plain text
21692 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21693 #: opensuse-tumbleweed
21694 msgid ""
21695 "When used as a condition, this is similar to CW<\\*(C`grep\\*(C'>, except "
21696 "for this short-circuit behaviour."
21697 msgstr ""
21698
21699 #. type: Plain text
21700 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21701 #: opensuse-tumbleweed
21702 #, no-wrap
21703 msgid ""
21704 "\\& if( any { length $_ } @strings ) {\n"
21705 "\\& say \"At least one string is non-empty\";\n"
21706 "\\& }\n"
21707 msgstr ""
21708
21709 #. type: Plain text
21710 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21711 #: opensuse-tumbleweed
21712 #, no-wrap
21713 msgid "\\& if( grep { length $_ } @strings ) ...\n"
21714 msgstr ""
21715
21716 #. type: Plain text
21717 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21718 #: opensuse-tumbleweed
21719 msgid ""
21720 "This operator is only available if the \\&CW<\\*(C`keyword_any\\*(C'> "
21721 "feature is enabled."
21722 msgstr ""
21723
21724 #. type: Plain text
21725 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21726 #: opensuse-tumbleweed
21727 msgid ""
21728 "It is currently considered B<experimental>, and will issue a compile-time "
21729 "warning in the category CW<\\*(C`experimental::any\\*(C'> unless that "
21730 "category is silenced."
21731 msgstr ""
21732
21733 #. type: Plain text
21734 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21735 #: opensuse-tumbleweed
21736 msgid ""
21737 "On some systems (in general, DOS- and Windows-based systems) "
21738 "\\&CW<\\*(C`binmode\\*(C'> is necessary when you\\*(Aqre not working with a "
21739 "text file. For the sake of portability it is a good idea always to use it "
21740 "when appropriate, and never to use it when it isn\\*(Aqt appropriate. Also, "
21741 "people can set their I/O to be by default UTF8-encoded Unicode, not bytes."
21742 msgstr ""
21743
21744 #. type: Plain text
21745 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21746 #: opensuse-tumbleweed
21747 msgid ""
21748 "In general, CW<\\*(C`binmode\\*(C'> should be called after "
21749 "CW<\\*(C`open\\*(C'> but before any I/O is done on the filehandle. Calling "
21750 "CW<\\*(C`binmode\\*(C'> normally flushes any pending buffered output data "
21751 "(and perhaps pending input data) on the handle. An exception to this is the "
21752 "CW<\\*(C`:encoding\\*(C'> layer that changes the default character encoding "
21753 "of the handle. The CW<\\*(C`:encoding\\*(C'> layer sometimes needs to be "
21754 "called in mid-stream, and it doesn\\*(Aqt flush the stream. "
21755 "CW<\\*(C`:encoding\\*(C'> also implicitly pushes on top of itself the "
21756 "CW<\\*(C`:utf8\\*(C'> layer because internally Perl operates on UTF8-encoded "
21757 "Unicode characters."
21758 msgstr ""
21759
21760 #. type: Plain text
21761 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21762 #: opensuse-tumbleweed
21763 msgid ""
21764 "All variants of Unix, Mac OS (old and new), and Stream_LF files on VMS use a "
21765 "single character to end each line in the external representation of text "
21766 "(even though that single character is CARRIAGE RETURN on old, pre-Darwin "
21767 "flavors of Mac OS, and is LINE FEED on Unix and most VMS files). In other "
21768 "systems like OS/2, DOS, and the various flavors of MS-Windows, your program "
21769 "sees a CW<\\*(C`\\en\\*(C'> as a simple CW<\\*(C`\\ecJ\\*(C'>, but "
21770 "what\\*(Aqs stored in text files are the two characters "
21771 "CW<\\*(C`\\ecM\\ecJ\\*(C'>. That means that if you don\\*(Aqt use "
21772 "\\&CW<\\*(C`binmode\\*(C'> on these systems, CW<\\*(C`\\ecM\\ecJ\\*(C'> "
21773 "sequences on disk will be converted to CW<\\*(C`\\en\\*(C'> on input, and "
21774 "any CW<\\*(C`\\en\\*(C'> in your program will be converted back to "
21775 "CW<\\*(C`\\ecM\\ecJ\\*(C'> on output. This is what you want for text files, "
21776 "but it can be disastrous for binary files."
21777 msgstr ""
21778
21779 #. type: Plain text
21780 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21781 #: opensuse-tumbleweed
21782 msgid ""
21783 "\\&CW<\\*(C`bless\\*(C'> returns its first argument, the supplied reference, "
21784 "as the value of the function; since CW<\\*(C`bless\\*(C'> is commonly the "
21785 "last thing executed in constructors, this means that the reference to the "
21786 "object is returned as the constructor\\*(Aqs value and allows the caller to "
21787 "immediately use this returned object in method calls."
21788 msgstr ""
21789
21790 #. type: Plain text
21791 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21792 #: opensuse-tumbleweed
21793 msgid ""
21794 "Also avoid CW<\\*(C`bless\\*(C'>ing things into the class name CW<0>; this "
21795 "will cause code which (erroneously) checks the result of "
21796 "\\&CW<\\*(C`ref\\*(C'> to see if a reference is CW<\\*(C`bless\\*(C'>ed to "
21797 "fail, as \"0\", a false value, is returned."
21798 msgstr ""
21799
21800 #. type: Plain text
21801 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21802 #: opensuse-tumbleweed
21803 msgid ""
21804 "Returns the context of the current pure perl subroutine call. In scalar "
21805 "context, returns the caller\\*(Aqs package name if there I<is> a caller "
21806 "(that is, if we\\*(Aqre in a subroutine or CW<\\*(C`eval\\*(C'> or "
21807 "\\&CW<\\*(C`require\\*(C'>) and the undefined value otherwise. "
21808 "\\&CW<\\*(C`caller\\*(C'> never returns XS subs and they are skipped. The "
21809 "next pure perl sub will appear instead of the XS sub in caller\\*(Aqs return "
21810 "values. In list context, caller returns"
21811 msgstr ""
21812
21813 #. type: Plain text
21814 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21815 #: opensuse-tumbleweed
21816 msgid ""
21817 "Be aware that setting CW<@DB::args> is I<best effort>, intended for "
21818 "debugging or generating backtraces, and should not be relied upon. In "
21819 "particular, as CW<@_> contains aliases to the caller\\*(Aqs arguments, Perl "
21820 "does not take a copy of CW<@_>, so \\&CW<@DB::args> will contain "
21821 "modifications the subroutine makes to \\&CW<@_> or its contents, not the "
21822 "original values at call time. CW<@DB::args>, like CW<@_>, does not hold "
21823 "explicit references to its elements, so under certain cases its elements may "
21824 "have become freed and reallocated for other variables or temporary values. "
21825 "Finally, a side effect of the current implementation is that the effects of "
21826 "CW<\\*(C`shift @_\\*(C'> can I<normally> be undone (but not CW<\\*(C`pop "
21827 "@_\\*(C'> or other splicing, I<and> not if a reference to CW<@_> has been "
21828 "taken, I<and> subject to the caveat about reallocated elements), so "
21829 "\\&CW<@DB::args> is actually a hybrid of the current state and initial state "
21830 "of CW<@_>. Buyer beware."
21831 msgstr ""
21832
21833 #. type: Plain text
21834 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21835 #: opensuse-tumbleweed
21836 msgid ""
21837 "On systems that support B<fchdir>\\|(2), you may pass a filehandle or "
21838 "directory handle as the argument. On systems that don\\*(Aqt support "
21839 "B<fchdir>\\|(2), passing handles raises an exception."
21840 msgstr ""
21841
21842 #. type: Plain text
21843 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21844 #: opensuse-tumbleweed
21845 msgid ""
21846 "On systems that support B<fchmod>\\|(2), you may pass filehandles among the "
21847 "files. On systems that don\\*(Aqt support B<fchmod>\\|(2), passing "
21848 "filehandles raises an exception. Filehandles must be passed as globs or "
21849 "glob references to be recognized; barewords are considered filenames."
21850 msgstr ""
21851
21852 #. type: Plain text
21853 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21854 #: opensuse-tumbleweed
21855 msgid ""
21856 "This safer version of CW<\\*(C`chop\\*(C'> removes any trailing string that "
21857 "corresponds to the current value of \\&CW<$/> (also known as "
21858 "CW<$INPUT_RECORD_SEPARATOR> in the CW<\\*(C`English\\*(C'> module). It "
21859 "returns the total number of characters removed from all its arguments. "
21860 "It\\*(Aqs often used to remove the newline from the end of an input record "
21861 "when you\\*(Aqre worried that the final record may be missing its newline. "
21862 "When in paragraph mode (CW<\\*(C`$/ = \\*(Aq\\*(Aq\\*(C'>), it removes all "
21863 "trailing newlines from the string. When in slurp mode (CW<\\*(C`$/ = "
21864 "undef\\*(C'>) or fixed-length record mode (CW<$/> is a reference to an "
21865 "integer or the like; see perlvar), CW<\\*(C`chomp\\*(C'> won\\*(Aqt remove "
21866 "anything. If VARIABLE is omitted, it chomps CW<$_>. Example:"
21867 msgstr ""
21868
21869 #. type: Plain text
21870 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21871 #: opensuse-tumbleweed
21872 msgid ""
21873 "If VARIABLE is a hash, it chomps the hash\\*(Aqs values, but not its keys, "
21874 "resetting the CW<\\*(C`each\\*(C'> iterator in the process."
21875 msgstr ""
21876
21877 #. type: Plain text
21878 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21879 #: opensuse-tumbleweed
21880 msgid ""
21881 "You can actually chomp anything that\\*(Aqs an lvalue, including an "
21882 "assignment:"
21883 msgstr ""
21884
21885 #. type: Plain text
21886 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21887 #: opensuse-tumbleweed
21888 msgid ""
21889 "Note that parentheses are necessary when you\\*(Aqre chomping anything that "
21890 "is not a simple variable. This is because CW<\\*(C`chomp $cwd = \\`pwd\\`;"
21891 "\\*(C'> is interpreted as CW<\\*(C`(chomp $cwd) = \\`pwd\\`;\\*(C'>, rather "
21892 "than as \\&CW<\\*(C`chomp( $cwd = \\`pwd\\` )\\*(C'> which you might "
21893 "expect. Similarly, \\&CW<\\*(C`chomp $x, $y\\*(C'> is interpreted as "
21894 "CW<\\*(C`chomp($x), $y\\*(C'> rather than as CW<\\*(C`chomp($x, $y)\\*(C'>."
21895 msgstr ""
21896
21897 #. type: Plain text
21898 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21899 #: opensuse-tumbleweed
21900 msgid ""
21901 "Chops off the last character of a string and returns the character chopped. "
21902 "It is much more efficient than CW<\\*(C`s/.$//s\\*(C'> because it neither "
21903 "scans nor copies the string. If VARIABLE is omitted, chops \\&CW<$_>. If "
21904 "VARIABLE is a hash, it chops the hash\\*(Aqs values, but not its keys, "
21905 "resetting the CW<\\*(C`each\\*(C'> iterator in the process."
21906 msgstr ""
21907
21908 #. type: Plain text
21909 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21910 #: opensuse-tumbleweed
21911 msgid ""
21912 "You can actually chop anything that\\*(Aqs an lvalue, including an "
21913 "assignment."
21914 msgstr ""
21915
21916 #. type: Plain text
21917 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21918 #: opensuse-tumbleweed
21919 msgid ""
21920 "On systems that support B<fchown>\\|(2), you may pass filehandles among the "
21921 "files. On systems that don\\*(Aqt support B<fchown>\\|(2), passing "
21922 "filehandles raises an exception. Filehandles must be passed as globs or "
21923 "glob references to be recognized; barewords are considered filenames."
21924 msgstr ""
21925
21926 #. type: Plain text
21927 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21928 #: opensuse-tumbleweed
21929 msgid ""
21930 "Here\\*(Aqs an example that looks up nonnumeric uids in the passwd file:"
21931 msgstr ""
21932
21933 #. type: Plain text
21934 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21935 #: opensuse-tumbleweed
21936 msgid ""
21937 "On most systems, you are not allowed to change the ownership of the file "
21938 "unless you\\*(Aqre the superuser, although you should be able to change the "
21939 "group to any of your secondary groups. On insecure systems, these "
21940 "restrictions may be relaxed, but this is not a portable assumption. On "
21941 "POSIX systems, you can detect this condition this way:"
21942 msgstr ""
21943
21944 #. type: Plain text
21945 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21946 #: opensuse-tumbleweed
21947 msgid ""
21948 "This function works like the system call by the same name: it makes the "
21949 "named directory the new root directory for all further pathnames that begin "
21950 "with a CW<\\*(C`/\\*(C'> by your process and all its children. (It "
21951 "doesn\\*(Aqt change your current working directory, which is unaffected.) "
21952 "For security reasons, this call is restricted to the superuser. If FILENAME "
21953 "is omitted, does a CW<\\*(C`chroot\\*(C'> to CW<$_>."
21954 msgstr ""
21955
21956 #. type: Plain text
21957 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21958 #: opensuse-tumbleweed
21959 msgid ""
21960 "Declares the BLOCK or the rest of the compilation unit as being in the given "
21961 "namespace, which implements an object class (see perlclass). This behaves "
21962 "similarly to CW<\\*(C`package\\*(C'>, except that the newly-created package "
21963 "behaves as a class."
21964 msgstr ""
21965
21966 #. type: Plain text
21967 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21968 #: opensuse-tumbleweed
21969 msgid ""
21970 "You don\\*(Aqt have to close FILEHANDLE if you are immediately going to do "
21971 "another CW<\\*(C`open\\*(C'> on it, because \\&CW<\\*(C`open\\*(C'> closes "
21972 "it for you. (See \\&CW<\\*(C`open\\*(C'>.) However, an explicit "
21973 "\\&CW<\\*(C`close\\*(C'> on an input file resets the line counter (CW<$.>), "
21974 "while the implicit close done by \\&CW<\\*(C`open\\*(C'> does not."
21975 msgstr ""
21976
21977 #. type: Plain text
21978 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21979 #: opensuse-tumbleweed
21980 msgid ""
21981 "Closing the read end of a pipe before the process writing to it at the other "
21982 "end is done writing results in the writer receiving a SIGPIPE. If the other "
21983 "end can\\*(Aqt handle that, be sure to read all the data before closing the "
21984 "pipe."
21985 msgstr ""
21986
21987 #. type: Plain text
21988 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
21989 #: opensuse-tumbleweed
21990 msgid ""
21991 "There is no decrypt function. This function isn\\*(Aqt all that useful for "
21992 "cryptography (for that, look for I<Crypt> modules on your nearby CPAN "
21993 "mirror) and the name \"crypt\" is a bit of a misnomer. Instead it is "
21994 "primarily used to check if two pieces of text are the same without having to "
21995 "transmit or store the text itself. An example is checking if a correct "
21996 "password is given. The digest of the password is stored, not the password "
21997 "itself. The user types in a password that is "
21998 "\\&CW<\\*(C`crypt\\*(C'>\\*(Aqd with the same salt as the stored digest. If "
21999 "the two digests match, the password is correct."
22000 msgstr ""
22001
22002 #. type: Plain text
22003 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22004 #: opensuse-tumbleweed
22005 msgid ""
22006 "When choosing a new salt create a random two character string whose "
22007 "characters come from the set CW<\\*(C`[./0-9A-Za-z]\\*(C'> (like "
22008 "CW<\\*(C`join \\*(Aq\\*(Aq, (\\*(Aq.\\*(Aq, \\&\\*(Aq/\\*(Aq, 0..9, "
22009 "\\*(AqA\\*(Aq..\\*(AqZ\\*(Aq, \\*(Aqa\\*(Aq..\\*(Aqz\\*(Aq)[rand 64, rand "
22010 "64]\\*(C'>). This set of characters is just a recommendation; the "
22011 "characters allowed in the salt depend solely on your system\\*(Aqs crypt "
22012 "library, and Perl can\\*(Aqt restrict what salts CW<\\*(C`crypt\\*(C'> "
22013 "accepts."
22014 msgstr ""
22015
22016 #. type: Plain text
22017 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22018 #: opensuse-tumbleweed
22019 msgid ""
22020 "Here\\*(Aqs an example that makes sure that whoever runs this program knows "
22021 "their password:"
22022 msgstr ""
22023
22024 #. type: Plain text
22025 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22026 #: opensuse-tumbleweed
22027 msgid ""
22028 "The CW<\\*(C`crypt\\*(C'> function is unsuitable for hashing large "
22029 "quantities of data, not least of all because you can\\*(Aqt get the "
22030 "information back. Look at the Digest module for more robust algorithms."
22031 msgstr ""
22032
22033 #. type: Plain text
22034 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22035 #: opensuse-tumbleweed
22036 msgid ""
22037 "This binds a B<dbm>\\|(3), B<ndbm>\\|(3), B<sdbm>\\|(3), B<gdbm>\\|(3), or "
22038 "Berkeley DB file to a hash. HASH is the name of the hash. (Unlike normal "
22039 "\\&CW<\\*(C`open\\*(C'>, the first argument is I<not> a filehandle, even "
22040 "though it looks like one). DBNAME is the name of the database (without the "
22041 "I<.dir> or I<.pag> extension if any). If the database does not exist, it is "
22042 "created with protection specified by MASK (as modified by the "
22043 "CW<\\*(C`umask\\*(C'>). To prevent creation of the database if it "
22044 "doesn\\*(Aqt exist, you may specify a MASK of 0, and the function will "
22045 "return a false value if it can\\*(Aqt find an existing database. If your "
22046 "system supports only the older DBM functions, you may make only one "
22047 "CW<\\*(C`dbmopen\\*(C'> call in your program. In older versions of Perl, if "
22048 "your system had neither DBM nor ndbm, calling CW<\\*(C`dbmopen\\*(C'> "
22049 "produced a fatal error; it now falls back to B<sdbm>\\|(3)."
22050 msgstr ""
22051
22052 #. type: Plain text
22053 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22054 #: opensuse-tumbleweed
22055 msgid ""
22056 "If you don\\*(Aqt have write access to the DBM file, you can only read hash "
22057 "variables, not set them. If you want to test whether you can write, either "
22058 "use file tests or try setting a dummy hash entry inside an "
22059 "\\&CW<\\*(C`eval\\*(C'> to trap the error."
22060 msgstr ""
22061
22062 #. type: Plain text
22063 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22064 #: opensuse-tumbleweed
22065 msgid ""
22066 "Many operations return CW<\\*(C`undef\\*(C'> to indicate failure, end of "
22067 "file, system error, uninitialized variable, and other exceptional "
22068 "conditions. This function allows you to distinguish "
22069 "\\&CW<\\*(C`undef\\*(C'> from other values. (A simple Boolean test will not "
22070 "distinguish among CW<\\*(C`undef\\*(C'>, zero, the empty string, and "
22071 "CW<\"0\">, which are all equally false.) Note that since "
22072 "\\&CW<\\*(C`undef\\*(C'> is a valid scalar, its presence doesn\\*(Aqt "
22073 "\\&I<necessarily> indicate an exceptional condition: CW<\\*(C`pop\\*(C'> "
22074 "returns CW<\\*(C`undef\\*(C'> when its argument is an empty array, \\&I<or> "
22075 "when the element to return happens to be CW<\\*(C`undef\\*(C'>."
22076 msgstr ""
22077
22078 #. type: Plain text
22079 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22080 #: opensuse-tumbleweed
22081 msgid ""
22082 "The pattern match succeeds and CW<$1> is defined, although it matched "
22083 "\"nothing\". It didn\\*(Aqt really fail to match anything. Rather, it "
22084 "matched something that happened to be zero characters long. This is all "
22085 "very above-board and honest. When a function returns an undefined value, "
22086 "it\\*(Aqs an admission that it couldn\\*(Aqt give you an honest answer. So "
22087 "you should use CW<\\*(C`defined\\*(C'> only when questioning the integrity "
22088 "of what you\\*(Aqre trying to do. At other times, a simple comparison to "
22089 "CW<0> or CW<\"\"> is what you want."
22090 msgstr ""
22091
22092 #. type: Plain text
22093 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22094 #: opensuse-tumbleweed
22095 msgid ""
22096 "In list context, usually returns the value or values deleted, or the last "
22097 "such element in scalar context. The return list\\*(Aqs length corresponds "
22098 "to that of the argument list: deleting non-existent elements returns the "
22099 "undefined value in their corresponding positions. Since Perl 5.28, a key/"
22100 "value hash slice can be passed to CW<\\*(C`delete\\*(C'>, and the return "
22101 "value is a list of key/value pairs (two elements for each item deleted from "
22102 "the hash)."
22103 msgstr ""
22104
22105 #. type: Plain text
22106 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22107 #: opensuse-tumbleweed
22108 msgid ""
22109 "\\&CW<\\*(C`delete\\*(C'> may also be used on arrays and array slices, but "
22110 "its behavior is less straightforward. Although \\&CW<\\*(C`exists\\*(C'> "
22111 "will return false for deleted entries, deleting array elements never changes "
22112 "indices of existing values; use \\&CW<\\*(C`shift\\*(C'> or "
22113 "CW<\\*(C`splice\\*(C'> for that. However, if any deleted elements fall at "
22114 "the end of an array, the array\\*(Aqs size shrinks to the position of the "
22115 "highest element that still tests true for CW<\\*(C`exists\\*(C'>, or to 0 if "
22116 "none do. In other words, an array won\\*(Aqt have trailing nonexistent "
22117 "elements after a delete."
22118 msgstr ""
22119
22120 #. type: Plain text
22121 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22122 #: opensuse-tumbleweed
22123 msgid ""
22124 "Deleting from CW<%ENV> modifies the environment. Deleting from a hash tied "
22125 "to a DBM file deletes the entry from the DBM file. Deleting from a "
22126 "CW<\\*(C`tied\\*(C'> hash or array may not necessarily return anything; it "
22127 "depends on the implementation of the \\&CW<\\*(C`tied\\*(C'> package\\*(Aqs "
22128 "DELETE method, which may do whatever it pleases."
22129 msgstr ""
22130
22131 #. type: Plain text
22132 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22133 #: opensuse-tumbleweed
22134 msgid ""
22135 "Because Perl stringifies uncaught exception messages before display, "
22136 "you\\*(Aqll probably want to overload stringification operations on "
22137 "exception objects. See overload for details about that. The stringified "
22138 "message should be non-empty, and should end in a newline, in order to fit in "
22139 "with the treatment of string exceptions. Also, because an exception object "
22140 "reference cannot be stringified without destroying it, Perl doesn\\*(Aqt "
22141 "attempt to append location or other information to a reference exception. "
22142 "If you want location information with a complex exception object, "
22143 "you\\*(Aqll have to arrange to put the location information into the object "
22144 "yourself."
22145 msgstr ""
22146
22147 #. type: Plain text
22148 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22149 #: opensuse-tumbleweed
22150 msgid ""
22151 "Because CW<$@> is a global variable, be careful that analyzing an exception "
22152 "caught by CW<\\*(C`eval\\*(C'> doesn\\*(Aqt replace the reference in the "
22153 "global variable. It\\*(Aqs easiest to make a local copy of the reference "
22154 "before any manipulations. Here\\*(Aqs an example:"
22155 msgstr ""
22156
22157 #. type: Plain text
22158 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22159 #: opensuse-tumbleweed
22160 msgid ""
22161 "As with CW<\\*(C`exit\\*(C'>, CW<$?> is set prior to unwinding the call "
22162 "stack; any CW<\\*(C`DESTROY\\*(C'> or CW<\\*(C`END\\*(C'> handlers can then "
22163 "alter this value, and thus Perl\\*(Aqs exit code."
22164 msgstr ""
22165
22166 #. type: Plain text
22167 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22168 #: opensuse-tumbleweed
22169 msgid ""
22170 "The intent is to squeeze as much possible information about the likely cause "
22171 "into the limited space of the system exit code. However, as \\&CW<$!> is "
22172 "the value of C\\*(Aqs CW<\\*(C`errno\\*(C'>, which can be set by any system "
22173 "call, this means that the value of the exit code used by "
22174 "\\&CW<\\*(C`die\\*(C'> can be non-predictable, so should not be relied upon, "
22175 "other than to be non-zero."
22176 msgstr ""
22177
22178 #. type: Plain text
22179 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22180 #: opensuse-tumbleweed
22181 msgid ""
22182 "except that it\\*(Aqs more concise, runs no external processes, and keeps "
22183 "track of the current filename for error messages. It also differs in that "
22184 "code evaluated with CW<\\*(C`do FILE\\*(C'> cannot see lexicals in the "
22185 "enclosing scope; CW<\\*(C`eval STRING\\*(C'> does. It\\*(Aqs the same, "
22186 "however, in that it does reparse the file every time you call it, so you "
22187 "probably don\\*(Aqt want to do this inside a loop."
22188 msgstr ""
22189
22190 #. type: Plain text
22191 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22192 #: opensuse-tumbleweed
22193 msgid ""
22194 "will search the CW<@INC> directories, and update \\&CW<%INC> if the file is "
22195 "found. See \"@INC\" in perlvar and \"%INC\" in perlvar for these variables. "
22196 "In particular, note that whilst historically CW<@INC> contained \\*(Aq."
22197 "\\*(Aq (the current directory) making these two cases equivalent, that is no "
22198 "longer necessarily the case, as \\*(Aq.\\*(Aq is not included in CW<@INC> by "
22199 "default in perl versions 5.26.0 onwards. Instead, perl will now warn:"
22200 msgstr ""
22201
22202 #. type: Plain text
22203 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22204 #: opensuse-tumbleweed
22205 msgid ""
22206 "Inclusion of library modules is better done with the \\&CW<\\*(C`use\\*(C'> "
22207 "and CW<\\*(C`require\\*(C'> operators, which also do automatic error "
22208 "checking and raise an exception if there\\*(Aqs a problem."
22209 msgstr ""
22210
22211 #. type: Plain text
22212 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22213 #: opensuse-tumbleweed
22214 msgid ""
22215 "This function is now largely obsolete, mostly because it\\*(Aqs very hard to "
22216 "convert a core file into an executable. As of Perl 5.30, it must be invoked "
22217 "as CW<CORE::dump()>."
22218 msgstr ""
22219
22220 #. type: Plain text
22221 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22222 #: opensuse-tumbleweed
22223 msgid ""
22224 "When called on a hash in list context, returns a 2-element list consisting "
22225 "of the key and value for the next element of a hash. When called in scalar "
22226 "context, returns only the key (not the value)."
22227 msgstr ""
22228
22229 #. type: Plain text
22230 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22231 #: opensuse-tumbleweed
22232 msgid ""
22233 "When called on an array in list context, in Perl 5.12 and later, it returns "
22234 "a 2-element list consisting of the index and value for the next element of "
22235 "the array so that you can iterate over it; older Perls consider this a "
22236 "syntax error. When called in scalar context, returns only the index in the "
22237 "array."
22238 msgstr ""
22239
22240 #. type: Plain text
22241 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22242 #: opensuse-tumbleweed
22243 msgid ""
22244 "Hash entries are returned in an apparently random order. The actual random "
22245 "order is specific to a given hash; the exact same series of operations on "
22246 "two hashes may result in a different order for each hash. Any insertion "
22247 "into the hash may change the order, as will any deletion, with the exception "
22248 "that the most recent key returned by CW<\\*(C`each\\*(C'> or "
22249 "\\&CW<\\*(C`keys\\*(C'> may be deleted without changing the order. So long "
22250 "as a given hash is unmodified you may rely on \\&CW<\\*(C`keys\\*(C'>, "
22251 "CW<\\*(C`values\\*(C'> and \\&CW<\\*(C`each\\*(C'> to repeatedly return the "
22252 "same order as each other. See \"Algorithmic Complexity Attacks\" in perlsec "
22253 "for details on why hash order is randomized. Aside from the guarantees "
22254 "provided here, the exact details of Perl\\*(Aqs hash algorithm and the hash "
22255 "traversal order are subject to change in any release of Perl."
22256 msgstr ""
22257
22258 #. type: Plain text
22259 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22260 #: opensuse-tumbleweed
22261 msgid "Array entries are returned lowest index first."
22262 msgstr ""
22263
22264 #. type: Plain text
22265 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22266 #: opensuse-tumbleweed
22267 #, no-wrap
22268 msgid ""
22269 "\\& my @colors = (qw(red, green, blue));\n"
22270 "\\& while (my ($index, $value) = each @colors) {\n"
22271 "\\& print \"[$index] = $value\\en\";\n"
22272 "\\& }\n"
22273 "\\&\n"
22274 "\\& [0] = red\n"
22275 "\\& [1] = green\n"
22276 "\\& [2] = blue\n"
22277 msgstr ""
22278
22279 #. type: Plain text
22280 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22281 #: opensuse-tumbleweed
22282 msgid ""
22283 "After CW<\\*(C`each\\*(C'> has returned all entries from the hash or array, "
22284 "the next call to CW<\\*(C`each\\*(C'> returns the empty list in list context "
22285 "and CW<\\*(C`undef\\*(C'> in scalar context; the next call following I<that> "
22286 "one restarts iteration. Each hash or array has its own internal iterator, "
22287 "accessed by CW<\\*(C`each\\*(C'>, \\&CW<\\*(C`keys\\*(C'>, and "
22288 "CW<\\*(C`values\\*(C'>. The iterator is implicitly reset when "
22289 "CW<\\*(C`each\\*(C'> has reached the end as just described; it can be "
22290 "explicitly reset by calling CW<\\*(C`keys\\*(C'> or CW<\\*(C`values\\*(C'> "
22291 "on the hash or array, or by referencing the hash (but not array) in list "
22292 "context. If you add or delete a hash\\*(Aqs elements while iterating over "
22293 "it, the effect on the iterator is unspecified; for example, entries may be "
22294 "skipped or duplicated--so don\\*(Aqt do that. Exception: It is always safe "
22295 "to delete the item most recently returned by CW<\\*(C`each\\*(C'>, so the "
22296 "following code works properly:"
22297 msgstr ""
22298
22299 #. type: Plain text
22300 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22301 #: opensuse-tumbleweed
22302 msgid ""
22303 "Tied hashes may have a different ordering behaviour to perl\\*(Aqs hash "
22304 "implementation."
22305 msgstr ""
22306
22307 #. type: Plain text
22308 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22309 #: opensuse-tumbleweed
22310 msgid ""
22311 "The iterator used by CW<\\*(C`each\\*(C'> is attached to the hash or array, "
22312 "and is shared between all iteration operations applied to the same hash or "
22313 "array. Thus all uses of CW<\\*(C`each\\*(C'> on a particular hash or array "
22314 "advance the same iterator location. All uses of CW<\\*(C`each\\*(C'> are "
22315 "also subject to having the iterator reset by any use of CW<\\*(C`keys\\*(C'> "
22316 "or CW<\\*(C`values\\*(C'> on the same hash or array, or by the hash (but not "
22317 "array) being referenced in list context. This makes CW<\\*(C`each\\*(C'>-"
22318 "based loops quite fragile: it is easy to arrive at such a loop with the "
22319 "iterator already part way through the object, or to accidentally clobber the "
22320 "iterator state during execution of the loop body. It\\*(Aqs easy enough to "
22321 "explicitly reset the iterator before starting a loop, but there is no way to "
22322 "insulate the iterator state used by a loop from the iterator state used by "
22323 "anything else that might execute during the loop body."
22324 msgstr ""
22325
22326 #. type: Plain text
22327 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22328 #: opensuse-tumbleweed
22329 #, no-wrap
22330 msgid ""
22331 "\\& # loops forever\n"
22332 "\\& while (my ($key, $value) = each %{ +{ a =E<gt> 1 } }) {\n"
22333 "\\& print \"$key=$value\\en\";\n"
22334 "\\& }\n"
22335 msgstr ""
22336
22337 #. type: Plain text
22338 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22339 #: opensuse-tumbleweed
22340 msgid ""
22341 "To avoid these problems resulting from the hash-embedded iterator, use a "
22342 "\\&CW<\\*(C`foreach\\*(C'> loop rather than CW<\\*(C`while\\*(C'>-"
22343 "CW<\\*(C`each\\*(C'>. As of Perl 5.36, you can iterate over both keys and "
22344 "values directly with a multiple-value CW<\\*(C`foreach\\*(C'> loop."
22345 msgstr ""
22346
22347 #. type: Plain text
22348 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22349 #: opensuse-tumbleweed
22350 #, no-wrap
22351 msgid ""
22352 "\\& # retrieves the keys one time for iteration\n"
22353 "\\& # iteration is unaffected by any operations on %hash within\n"
22354 "\\& foreach my $key (keys %hash) {\n"
22355 "\\& my $value = $hash{$key};\n"
22356 "\\& $hash{$key} = {keys =E<gt> scalar keys %hash, outer =E<gt> [%hash]};\n"
22357 "\\& some_function_that_may_mess_with(\\e%hash, $key, $value);\n"
22358 "\\& $hash{\"new$key\"} = delete $hash{$key};\n"
22359 "\\& }\n"
22360 "\\&\n"
22361 "\\& # Perl 5.36+\n"
22362 "\\& foreach my ($key, $value) (%{ +{ a =E<gt> 1 } }) {\n"
22363 "\\& print \"$key=$value\\en\";\n"
22364 "\\& }\n"
22365 msgstr ""
22366
22367 #. type: Plain text
22368 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22369 #: opensuse-tumbleweed
22370 msgid ""
22371 "As of Perl 5.18 you can use a bare CW<\\*(C`each\\*(C'> in a "
22372 "CW<\\*(C`while\\*(C'> loop, which will set CW<$_> on every iteration. If "
22373 "either an CW<\\*(C`each\\*(C'> expression or an explicit assignment of an "
22374 "CW<\\*(C`each\\*(C'> expression to a scalar is used as a "
22375 "CW<\\*(C`while\\*(C'>/CW<\\*(C`for\\*(C'> condition, then the condition "
22376 "actually tests for definedness of the expression\\*(Aqs value, not for its "
22377 "regular truth value."
22378 msgstr ""
22379
22380 #. type: Plain text
22381 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22382 #: opensuse-tumbleweed
22383 msgid ""
22384 "Returns 1 if the next read on FILEHANDLE will return end of file I<or> if "
22385 "FILEHANDLE is not open. FILEHANDLE may be an expression whose value gives "
22386 "the real filehandle. (Note that this function actually reads a character "
22387 "and then CW<\\*(C`ungetc\\*(C'>s it, so isn\\*(Aqt useful in an interactive "
22388 "context.) Do not read from a terminal file (or call \\&CW<eof(FILEHANDLE)> "
22389 "on it) after end-of-file is reached. File types such as terminals may lose "
22390 "the end-of-file condition if you do."
22391 msgstr ""
22392
22393 #. type: Plain text
22394 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22395 #: opensuse-tumbleweed
22396 msgid ""
22397 "An CW<\\*(C`eof\\*(C'> without an argument uses the last file read. Using "
22398 "CW<eof()> with empty parentheses is different. It refers to the pseudo file "
22399 "formed from the files listed on the command line and accessed via the "
22400 "CW<\\*(C`E<lt>E<gt>\\*(C'> operator. Since \\&CW<\\*(C`E<lt>E<gt>\\*(C'> "
22401 "isn\\*(Aqt explicitly opened, as a normal filehandle is, an \\&CW<eof()> "
22402 "before CW<\\*(C`E<lt>E<gt>\\*(C'> has been used will cause \\&CW<@ARGV> to "
22403 "be examined to determine if input is available. Similarly, an CW<eof()> "
22404 "after CW<\\*(C`E<lt>E<gt>\\*(C'> has returned end-of-file will assume you "
22405 "are processing another \\&CW<@ARGV> list, and if you haven\\*(Aqt set "
22406 "\\&CW<@ARGV>, will read input from CW<\\*(C`STDIN\\*(C'>; see \"I/O "
22407 "Operators\" in perlop."
22408 msgstr ""
22409
22410 #. type: Plain text
22411 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22412 #: opensuse-tumbleweed
22413 msgid ""
22414 "\\&CW<\\*(C`eval\\*(C'> in all its forms is used to execute a little Perl "
22415 "program, trapping any errors encountered so they don\\*(Aqt crash the "
22416 "calling program."
22417 msgstr ""
22418
22419 #. type: Plain text
22420 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22421 #: opensuse-tumbleweed
22422 msgid ""
22423 "Note that, because CW<\\*(C`eval\\*(C'> traps otherwise-fatal errors, it is "
22424 "useful for determining whether a particular feature (such as "
22425 "\\&CW<\\*(C`socket\\*(C'> or \\&CW<\\*(C`symlink\\*(C'>) is implemented. It "
22426 "is also Perl\\*(Aqs exception-trapping mechanism, where the "
22427 "CW<\\*(C`die\\*(C'> operator is used to raise exceptions."
22428 msgstr ""
22429
22430 #. type: Plain text
22431 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22432 #: opensuse-tumbleweed
22433 msgid ""
22434 "Perl\\*(Aqs internal storage of EXPR affects the behavior of the executed "
22435 "code. For example:"
22436 msgstr ""
22437
22438 #. type: Plain text
22439 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22440 #: opensuse-tumbleweed
22441 msgid ""
22442 "This is undesirable since being upgraded or not should not affect a "
22443 "string\\*(Aqs behavior."
22444 msgstr ""
22445
22446 #. type: Plain text
22447 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22448 #: opensuse-tumbleweed
22449 msgid ""
22450 "You should be especially careful to remember what\\*(Aqs being looked at "
22451 "when:"
22452 msgstr ""
22453
22454 #. type: Plain text
22455 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22456 #: opensuse-tumbleweed
22457 msgid ""
22458 "An CW<\\*(C`eval \\*(Aq\\*(Aq\\*(C'> executed within a subroutine defined in "
22459 "the CW<\\*(C`DB\\*(C'> package doesn\\*(Aqt see the usual surrounding "
22460 "lexical scope, but rather the scope of the first non-DB piece of code that "
22461 "called it. You don\\*(Aqt normally need to worry about this unless you are "
22462 "writing a Perl debugger."
22463 msgstr ""
22464
22465 #. type: Plain text
22466 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22467 #: opensuse-tumbleweed
22468 msgid ""
22469 "If the code to be executed doesn\\*(Aqt vary, you may use the eval-BLOCK "
22470 "form to trap run-time errors without incurring the penalty of recompiling "
22471 "each time. The error, if any, is still returned in \\&CW<$@>. Examples:"
22472 msgstr ""
22473
22474 #. type: Plain text
22475 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22476 #: opensuse-tumbleweed
22477 msgid ""
22478 "The CW<\\*(C`exec\\*(C'> function executes a system command I<and never "
22479 "returns>; use CW<\\*(C`system\\*(C'> instead of CW<\\*(C`exec\\*(C'> if you "
22480 "want it to return. It fails and returns false only if the command does not "
22481 "exist I<and> it is executed directly instead of via your system\\*(Aqs "
22482 "command shell (see below)."
22483 msgstr ""
22484
22485 #. type: Plain text
22486 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22487 #: opensuse-tumbleweed
22488 msgid ""
22489 "Since it\\*(Aqs a common mistake to use CW<\\*(C`exec\\*(C'> instead of "
22490 "\\&CW<\\*(C`system\\*(C'>, Perl warns you if CW<\\*(C`exec\\*(C'> is called "
22491 "in void context and if there is a following statement that isn\\*(Aqt "
22492 "\\&CW<\\*(C`die\\*(C'>, CW<\\*(C`warn\\*(C'>, or CW<\\*(C`exit\\*(C'> (if "
22493 "warnings are enabled--but you always do that, right?). If you \\&I<really> "
22494 "want to follow an CW<\\*(C`exec\\*(C'> with some other statement, you can "
22495 "use one of these styles to avoid the warning:"
22496 msgstr ""
22497
22498 #. type: Plain text
22499 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22500 #: opensuse-tumbleweed
22501 msgid ""
22502 "If there is more than one argument in LIST, this calls B<execvp>\\|(3) with "
22503 "the arguments in LIST. If there is only one element in LIST, the argument "
22504 "is checked for shell metacharacters, and if there are any, the entire "
22505 "argument is passed to the system\\*(Aqs command shell for parsing (this is "
22506 "\\&CW<\\*(C`/bin/sh -c\\*(C'> on Unix platforms, but varies on other "
22507 "platforms). If there are no shell metacharacters in the argument, it is "
22508 "split into words and passed directly to CW<\\*(C`execvp\\*(C'>, which is "
22509 "more efficient. Examples:"
22510 msgstr ""
22511
22512 #. type: Plain text
22513 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22514 #: opensuse-tumbleweed
22515 msgid ""
22516 "If you don\\*(Aqt really want to execute the first argument, but want to lie "
22517 "to the program you are executing about its own name, you can specify the "
22518 "program you actually want to run as an \"indirect object\" (without a comma) "
22519 "in front of the LIST, as in CW<\\*(C`exec PROGRAM LIST\\*(C'>. (This always "
22520 "forces interpretation of the LIST as a multivalued list, even if there is "
22521 "only a single scalar in the list.) Example:"
22522 msgstr ""
22523
22524 #. type: Plain text
22525 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22526 #: opensuse-tumbleweed
22527 msgid ""
22528 "When the arguments get executed via the system shell, results are subject to "
22529 "its quirks and capabilities. See \"\\`STRING\\`\" in perlop for details."
22530 msgstr ""
22531
22532 #. type: Plain text
22533 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22534 #: opensuse-tumbleweed
22535 msgid ""
22536 "Using an indirect object with CW<\\*(C`exec\\*(C'> or "
22537 "\\&CW<\\*(C`system\\*(C'> is also more secure. This usage (which also works "
22538 "fine with CW<\\*(C`system\\*(C'>) forces interpretation of the arguments as "
22539 "a multivalued list, even if the list had just one argument. That way "
22540 "you\\*(Aqre safe from the shell expanding wildcards or splitting up words "
22541 "with whitespace in them."
22542 msgstr ""
22543
22544 #. type: Plain text
22545 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22546 #: opensuse-tumbleweed
22547 msgid ""
22548 "The first version, the one without the indirect object, ran the I<echo> "
22549 "program, passing it CW<\"surprise\"> as an argument. The second version "
22550 "didn\\*(Aqt; it tried to run a program named I<\"echo surprise\">, "
22551 "didn\\*(Aqt find it, and set \\&CW<$?> to a non-zero value indicating "
22552 "failure."
22553 msgstr ""
22554
22555 #. type: Plain text
22556 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22557 #: opensuse-tumbleweed
22558 msgid ""
22559 "A hash or array element can be true only if it\\*(Aqs defined and defined "
22560 "only if it exists, but the reverse doesn\\*(Aqt necessarily hold true."
22561 msgstr ""
22562
22563 #. type: Plain text
22564 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22565 #: opensuse-tumbleweed
22566 msgid ""
22567 "See also CW<\\*(C`die\\*(C'>. If EXPR is omitted, exits with CW<0> status. "
22568 "The only universally recognized values for EXPR are CW<0> for success and "
22569 "CW<1> for error; other values are subject to interpretation depending on the "
22570 "environment in which the Perl program is running. For example, exiting 69 "
22571 "(EX_UNAVAILABLE) from a I<sendmail> incoming-mail filter will cause the "
22572 "mailer to return the item undelivered, but that\\*(Aqs not true everywhere."
22573 msgstr ""
22574
22575 #. type: Plain text
22576 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22577 #: opensuse-tumbleweed
22578 msgid ""
22579 "Don\\*(Aqt use CW<\\*(C`exit\\*(C'> to abort a subroutine if there\\*(Aqs "
22580 "any chance that someone might want to trap whatever error happened. Use "
22581 "\\&CW<\\*(C`die\\*(C'> instead, which can be trapped by an "
22582 "\\&CW<\\*(C`eval\\*(C'>."
22583 msgstr ""
22584
22585 #. type: Plain text
22586 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22587 #: opensuse-tumbleweed
22588 msgid ""
22589 "Implements the B<fcntl>\\|(2) function. You\\*(Aqll probably have to say"
22590 msgstr ""
22591
22592 #. type: Plain text
22593 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22594 #: opensuse-tumbleweed
22595 msgid ""
22596 "You don\\*(Aqt have to check for CW<\\*(C`defined\\*(C'> on the return from "
22597 "CW<\\*(C`fcntl\\*(C'>. Like \\&CW<\\*(C`ioctl\\*(C'>, it maps a CW<0> "
22598 "return from the system call into CW<\"0 but true\"> in Perl. This string is "
22599 "true in boolean context and CW<0> in numeric context. It is also exempt "
22600 "from the normal \\&CW<\\*(C`Argument \"...\" isn\\*(Aqt numeric\\*(C'> "
22601 "warnings on improper numeric conversions."
22602 msgstr ""
22603
22604 #. type: Plain text
22605 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22606 #: opensuse-tumbleweed
22607 msgid ""
22608 "Note that CW<\\*(C`fcntl\\*(C'> raises an exception if used on a machine "
22609 "that doesn\\*(Aqt implement B<fcntl>\\|(2). See the Fcntl module or your "
22610 "B<fcntl>\\|(2) manpage to learn what functions are available on your system."
22611 msgstr ""
22612
22613 #. type: Plain text
22614 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22615 #: opensuse-tumbleweed
22616 msgid ""
22617 "Here\\*(Aqs an example of setting a filehandle named CW<$REMOTE> to be non-"
22618 "blocking at the system level. You\\*(Aqll have to negotiate \\&CW<$|> on "
22619 "your own, though."
22620 msgstr ""
22621
22622 #. type: Plain text
22623 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22624 #: opensuse-tumbleweed
22625 msgid ""
22626 "Calls B<flock>\\|(2), or an emulation of it, on FILEHANDLE. Returns true "
22627 "for success, false on failure. Produces a fatal error if used on a machine "
22628 "that doesn\\*(Aqt implement B<flock>\\|(2), B<fcntl>\\|(2) locking, or "
22629 "\\&B<lockf>\\|(3). CW<\\*(C`flock\\*(C'> is Perl\\*(Aqs portable file-"
22630 "locking interface, although it locks entire files only, not records."
22631 msgstr ""
22632
22633 #. type: Plain text
22634 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22635 #: opensuse-tumbleweed
22636 msgid ""
22637 "Two potentially non-obvious but traditional CW<\\*(C`flock\\*(C'> semantics "
22638 "are that it waits indefinitely until the lock is granted, and that its locks "
22639 "are B<merely advisory>. Such discretionary locks are more flexible, but "
22640 "offer fewer guarantees. This means that programs that do not also use "
22641 "\\&CW<\\*(C`flock\\*(C'> may modify files locked with "
22642 "\\&CW<\\*(C`flock\\*(C'>. See perlport, your port\\*(Aqs specific "
22643 "documentation, and your system-specific local manpages for details. "
22644 "It\\*(Aqs best to assume traditional behavior if you\\*(Aqre writing "
22645 "portable programs. (But if you\\*(Aqre not, you should as always feel "
22646 "perfectly free to write for your own system\\*(Aqs idiosyncrasies (sometimes "
22647 "called \"features\"). Slavish adherence to portability concerns "
22648 "shouldn\\*(Aqt get in the way of your getting your job done.)"
22649 msgstr ""
22650
22651 #. type: Plain text
22652 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22653 #: opensuse-tumbleweed
22654 msgid ""
22655 "OPERATION is one of LOCK_SH, LOCK_EX, or LOCK_UN, possibly combined with "
22656 "LOCK_NB. These constants are traditionally valued 1, 2, 8 and 4, but you "
22657 "can use the symbolic names if you import them from the Fcntl module, either "
22658 "individually, or as a group using the CW<\\*(C`:flock\\*(C'> tag. LOCK_SH "
22659 "requests a shared lock, LOCK_EX requests an exclusive lock, and LOCK_UN "
22660 "releases a previously requested lock. If LOCK_NB is bitwise-or\\*(Aqed with "
22661 "LOCK_SH or LOCK_EX, then CW<\\*(C`flock\\*(C'> returns immediately rather "
22662 "than blocking waiting for the lock; check the return status to see if you "
22663 "got it."
22664 msgstr ""
22665
22666 #. type: Plain text
22667 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22668 #: opensuse-tumbleweed
22669 msgid ""
22670 "Note that the emulation built with B<lockf>\\|(3) doesn\\*(Aqt provide "
22671 "shared locks, and it requires that FILEHANDLE be open with write intent. "
22672 "These are the semantics that B<lockf>\\|(3) implements. Most if not all "
22673 "systems implement B<lockf>\\|(3) in terms of B<fcntl>\\|(2) locking, though, "
22674 "so the differing semantics shouldn\\*(Aqt bite too many people."
22675 msgstr ""
22676
22677 #. type: Plain text
22678 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22679 #: opensuse-tumbleweed
22680 msgid ""
22681 "Note also that some versions of CW<\\*(C`flock\\*(C'> cannot lock things "
22682 "over the network; you would need to use the more system-specific "
22683 "CW<\\*(C`fcntl\\*(C'> for that. If you like you can force Perl to ignore "
22684 "your system\\*(Aqs B<flock>\\|(2) function, and so provide its own "
22685 "B<fcntl>\\|(2)-based emulation, by passing the switch CW<\\*(C`-"
22686 "Ud_flock\\*(C'> to the I<Configure> program when you configure and build a "
22687 "new Perl."
22688 msgstr ""
22689
22690 #. type: Plain text
22691 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22692 #: opensuse-tumbleweed
22693 msgid "Here\\*(Aqs a mailbox appender for BSD systems."
22694 msgstr ""
22695
22696 #. type: Plain text
22697 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22698 #: opensuse-tumbleweed
22699 msgid ""
22700 "Note that if your forked child inherits system file descriptors like STDIN "
22701 "and STDOUT that are actually connected by a pipe or socket, even if you "
22702 "exit, then the remote server (such as, say, a CGI script or a backgrounded "
22703 "job launched from a remote shell) won\\*(Aqt think you\\*(Aqre done. You "
22704 "should reopen those to I</dev/null> if it\\*(Aqs any issue."
22705 msgstr ""
22706
22707 #. type: Plain text
22708 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22709 #: opensuse-tumbleweed
22710 msgid ""
22711 "This is an internal function used by CW<\\*(C`format\\*(C'>s, though you may "
22712 "call it, too. It formats (see perlform) a list of values according to the "
22713 "contents of PICTURE, placing the output into the format output accumulator, "
22714 "CW<$^A> (or CW<$ACCUMULATOR> in English). Eventually, when a "
22715 "CW<\\*(C`write\\*(C'> is done, the contents of CW<$^A> are written to some "
22716 "filehandle. You could also read CW<$^A> and then set \\&CW<$^A> back to "
22717 "CW<\"\">. Note that a format typically does one CW<\\*(C`formline\\*(C'> "
22718 "per line of form, but the \\&CW<\\*(C`formline\\*(C'> function itself "
22719 "doesn\\*(Aqt care how many newlines are embedded in the PICTURE. This means "
22720 "that the CW<\\*(C`~\\*(C'> and \\&CW<\\*(C`~~\\*(C'> tokens treat the entire "
22721 "PICTURE as a single line. You may therefore need to use multiple formlines "
22722 "to implement a single record format, just like the CW<\\*(C`format\\*(C'> "
22723 "compiler."
22724 msgstr ""
22725
22726 #. type: Plain text
22727 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22728 #: opensuse-tumbleweed
22729 msgid ""
22730 "Returns the current process group for the specified PID. Use a PID of CW<0> "
22731 "to get the current process group for the current process. Will raise an "
22732 "exception if used on a machine that doesn\\*(Aqt implement B<getpgrp>\\|"
22733 "(2). If PID is omitted, returns the process group of the current process."
22734 msgstr ""
22735
22736 #. type: Plain text
22737 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22738 #: opensuse-tumbleweed
22739 msgid ""
22740 "Returns the current priority for a process, a process group, or a user. "
22741 "(See B<getpriority>\\|(2).) Will raise a fatal exception if used on a "
22742 "machine that doesn\\*(Aqt implement B<getpriority>\\|(2)."
22743 msgstr ""
22744
22745 #. type: Plain text
22746 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22747 #: opensuse-tumbleweed
22748 msgid ""
22749 "(If the entry doesn\\*(Aqt exist, the return value is a single meaningless "
22750 "true value.)"
22751 msgstr ""
22752
22753 #. type: Plain text
22754 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22755 #: opensuse-tumbleweed
22756 msgid ""
22757 "The exact meaning of the CW<$gcos> field varies but it usually contains the "
22758 "real name of the user (as opposed to the login name) and other information "
22759 "pertaining to the user. Beware, however, that in many system users are able "
22760 "to change this information and therefore it cannot be trusted and therefore "
22761 "the CW<$gcos> is tainted (see perlsec). The CW<$passwd> and CW<$shell>, "
22762 "user\\*(Aqs encrypted password and login shell, are also tainted, for the "
22763 "same reason."
22764 msgstr ""
22765
22766 #. type: Plain text
22767 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22768 #: opensuse-tumbleweed
22769 msgid ""
22770 "In scalar context, you get the name, unless the function was a lookup by "
22771 "name, in which case you get the other thing, whatever it is. (If the entry "
22772 "doesn\\*(Aqt exist you get the undefined value.) For example:"
22773 msgstr ""
22774
22775 #. type: Plain text
22776 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22777 #: opensuse-tumbleweed
22778 msgid ""
22779 "In I<getpw*()> the fields CW<$quota>, CW<$comment>, and CW<$expire> are "
22780 "special in that they are unsupported on many systems. If the \\&CW<$quota> "
22781 "is unsupported, it is an empty scalar. If it is supported, it usually "
22782 "encodes the disk quota. If the CW<$comment> field is unsupported, it is an "
22783 "empty scalar. If it is supported it usually encodes some administrative "
22784 "comment about the user. In some systems the CW<$quota> field may be "
22785 "CW<$change> or CW<$age>, fields that have to do with password aging. In "
22786 "some systems the CW<$comment> field may be CW<$class>. The CW<$expire> "
22787 "field, if present, encodes the expiration period of the account or the "
22788 "password. For the availability and the exact meaning of these fields in "
22789 "your system, please consult B<getpwnam>\\|(3) and your system\\*(Aqs "
22790 "\\&I<pwd.h> file. You can also find out from within Perl what your "
22791 "\\&CW<$quota> and CW<$comment> fields mean and whether you have the "
22792 "CW<$expire> field by using the CW<\\*(C`Config\\*(C'> module and the values "
22793 "CW<\\*(C`d_pwquota\\*(C'>, CW<\\*(C`d_pwage\\*(C'>, "
22794 "\\&CW<\\*(C`d_pwchange\\*(C'>, CW<\\*(C`d_pwcomment\\*(C'>, and "
22795 "CW<\\*(C`d_pwexpire\\*(C'>. Shadow password files are supported only if "
22796 "your vendor has implemented them in the intuitive fashion that calling the "
22797 "regular C library routines gets the shadow versions if you\\*(Aqre running "
22798 "under privilege or if there exists the B<shadow>\\|(3) functions as found in "
22799 "System V (this includes Solaris and Linux). Those systems that implement a "
22800 "proprietary shadow password facility are unlikely to be supported."
22801 msgstr ""
22802
22803 #. type: Plain text
22804 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22805 #: opensuse-tumbleweed
22806 msgid ""
22807 "Even though it looks as though they\\*(Aqre the same method calls (uid), "
22808 "they aren\\*(Aqt, because a CW<\\*(C`File::stat\\*(C'> object is different "
22809 "from a CW<\\*(C`User::pwent\\*(C'> object."
22810 msgstr ""
22811
22812 #. type: Plain text
22813 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22814 #: opensuse-tumbleweed
22815 msgid ""
22816 "Returns the packed sockaddr address of this end of the SOCKET connection, in "
22817 "case you don\\*(Aqt know the address because you have several different IPs "
22818 "that the connection might have come in on."
22819 msgstr ""
22820
22821 #. type: Plain text
22822 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22823 #: opensuse-tumbleweed
22824 msgid ""
22825 "Here\\*(Aqs an example to test whether Nagle\\*(Aqs algorithm is enabled on "
22826 "a socket:"
22827 msgstr ""
22828
22829 #. type: Plain text
22830 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22831 #: opensuse-tumbleweed
22832 msgid ""
22833 "Note that CW<\\*(C`glob\\*(C'> splits its arguments on whitespace and treats "
22834 "each segment as separate pattern. As such, CW<\\*(C`glob(\"*.c *.h\")"
22835 "\\*(C'> matches all files with a I<.c> or I<.h> extension. The expression "
22836 "\\&CW<\\*(C`glob(\".* *\")\\*(C'> matches all files in the current working "
22837 "directory. If you want to glob filenames that might contain whitespace, "
22838 "you\\*(Aqll have to use extra quotes around the spacey filename to protect "
22839 "it. For example, to glob filenames that have an CW<\\*(C`e\\*(C'> followed "
22840 "by a space followed by an CW<\\*(C`f\\*(C'>, use one of:"
22841 msgstr ""
22842
22843 #. type: Plain text
22844 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22845 #: opensuse-tumbleweed
22846 msgid ""
22847 "If a CW<\\*(C`glob\\*(C'> expression is used as the condition of a "
22848 "CW<\\*(C`while\\*(C'> or CW<\\*(C`for\\*(C'> loop, then it will be "
22849 "implicitly assigned to CW<$_>. If either a CW<\\*(C`glob\\*(C'> expression "
22850 "or an explicit assignment of a CW<\\*(C`glob\\*(C'> expression to a scalar "
22851 "is used as a CW<\\*(C`while\\*(C'>/CW<\\*(C`for\\*(C'> condition, then the "
22852 "condition actually tests for definedness of the expression\\*(Aqs value, not "
22853 "for its regular truth value."
22854 msgstr ""
22855
22856 #. type: Plain text
22857 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22858 #: opensuse-tumbleweed
22859 msgid "Internal implementation details:"
22860 msgstr ""
22861
22862 #. type: Plain text
22863 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22864 #: opensuse-tumbleweed
22865 msgid ""
22866 "\\&CW<\\*(C`goto\\*(C'> transfers execution to a specified point in the "
22867 "program. Unlike a function call, execution does not return to "
22868 "CW<\\*(C`goto\\*(C'>."
22869 msgstr ""
22870
22871 #. type: Plain text
22872 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22873 #: opensuse-tumbleweed
22874 msgid ""
22875 "The CW<\\*(C`goto LABEL\\*(C'> form finds the statement labeled with LABEL "
22876 "and resumes execution there. It can\\*(Aqt be used to get out of a block or "
22877 "subroutine given to CW<\\*(C`sort\\*(C'>. It can be used to go almost "
22878 "anywhere else within the dynamic scope, including out of subroutines, but "
22879 "it\\*(Aqs usually better to use some other construct such as "
22880 "\\&CW<\\*(C`last\\*(C'> or CW<\\*(C`die\\*(C'>. The author of Perl has "
22881 "never felt the need to use this form of CW<\\*(C`goto\\*(C'> (in Perl, that "
22882 "is; C is another matter). (The difference is that C does not offer named "
22883 "loops combined with loop control. Perl does, and this replaces most "
22884 "structured uses of CW<\\*(C`goto\\*(C'> in other languages.)"
22885 msgstr ""
22886
22887 #. type: Plain text
22888 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22889 #: opensuse-tumbleweed
22890 msgid ""
22891 "If the expression evaluates to a label name, its scope will be resolved "
22892 "dynamically. This allows for computed CW<\\*(C`goto\\*(C'>s per FORTRAN, "
22893 "but isn\\*(Aqt necessarily recommended if you\\*(Aqre optimizing for "
22894 "maintainability:"
22895 msgstr ""
22896
22897 #. type: Plain text
22898 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22899 #: opensuse-tumbleweed
22900 msgid ""
22901 "Use of CW<\\*(C`goto LABEL\\*(C'> or CW<\\*(C`goto EXPR\\*(C'> to jump into "
22902 "a construct is deprecated and will issue a warning; it will become a fatal "
22903 "error in Perl 5.42. While still available, it may not be used to go into any "
22904 "construct that requires initialization, such as a subroutine, a "
22905 "CW<\\*(C`foreach\\*(C'> loop, or a CW<\\*(C`given\\*(C'> block. In general, "
22906 "it may not be used to jump into the parameter of a binary or list operator, "
22907 "but it may be used to jump into the \\&I<first> parameter of a binary "
22908 "operator. (The CW<\\*(C`=\\*(C'> assignment operator\\*(Aqs \"first\" "
22909 "operand is its right-hand operand.) It also can\\*(Aqt be used to go into a "
22910 "construct that is optimized away."
22911 msgstr ""
22912
22913 #. type: Plain text
22914 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22915 #: opensuse-tumbleweed
22916 msgid ""
22917 "The CW<\\*(C`goto &NAME\\*(C'> form is quite different from the other forms "
22918 "of \\&CW<\\*(C`goto\\*(C'>. In fact, it isn\\*(Aqt a goto in the normal "
22919 "sense at all, and doesn\\*(Aqt have the stigma associated with other gotos. "
22920 "Instead, it exits the current subroutine (losing any changes set by "
22921 "\\&CW<\\*(C`local\\*(C'>) and immediately calls in its place the named "
22922 "subroutine using the current value of CW<@_>. This is used by "
22923 "CW<\\*(C`AUTOLOAD\\*(C'> subroutines that wish to load another subroutine "
22924 "and then pretend that the other subroutine had been called in the first "
22925 "place (except that any modifications to CW<@_> in the current subroutine are "
22926 "propagated to the other subroutine.) After the \\&CW<\\*(C`goto\\*(C'>, not "
22927 "even CW<\\*(C`caller\\*(C'> will be able to tell that this routine was "
22928 "called first."
22929 msgstr ""
22930
22931 #. type: Plain text
22932 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22933 #: opensuse-tumbleweed
22934 msgid ""
22935 "NAME needn\\*(Aqt be the name of a subroutine; it can be a scalar variable "
22936 "containing a code reference or a block that evaluates to a code reference."
22937 msgstr ""
22938
22939 #. type: Plain text
22940 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22941 #: opensuse-tumbleweed
22942 msgid ""
22943 "Note that CW<$_> is an alias to the list value, so it can be used to modify "
22944 "the elements of the LIST. While this is useful and supported, it can cause "
22945 "bizarre results if the elements of LIST are not variables. Similarly, grep "
22946 "returns aliases into the original list, much as a for loop\\*(Aqs index "
22947 "variable aliases the list elements. That is, modifying an element of a list "
22948 "returned by grep (for example, in a CW<\\*(C`foreach\\*(C'>, "
22949 "\\&CW<\\*(C`map\\*(C'> or another CW<\\*(C`grep\\*(C'>) actually modifies "
22950 "the element in the original list. This is usually something to be avoided "
22951 "when writing clear code."
22952 msgstr ""
22953
22954 #. type: Plain text
22955 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22956 #: opensuse-tumbleweed
22957 msgid ""
22958 "Returns the integer portion of EXPR. If EXPR is omitted, uses \\&CW<$_>. "
22959 "You should not use this function for rounding: one because it truncates "
22960 "towards CW<0>, and two because machine representations of floating-point "
22961 "numbers can sometimes produce counterintuitive results. For example, "
22962 "\\&CW<int(-6.725/0.025)> produces -268 rather than the correct -269; "
22963 "that\\*(Aqs because it\\*(Aqs really more like -268.99999999999994315658 "
22964 "instead. Usually, the CW<\\*(C`sprintf\\*(C'>, \\&CW<\\*(C`printf\\*(C'>, "
22965 "or the \\&CW<\\*(C`POSIX::floor\\*(C'> and CW<\\*(C`POSIX::ceil\\*(C'> "
22966 "functions will serve you better than will CW<\\*(C`int\\*(C'>. Moreover, "
22967 "CW<\\*(C`int \\*(AqInf\\*(Aq\\*(C'> produces Inf (see \"Special floating "
22968 "point: infinity (Inf) and not-a-number (NaN)\" in perldata for explanation), "
22969 "but so do all the alternative methods mentioned above."
22970 msgstr ""
22971
22972 #. type: Plain text
22973 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22974 #: opensuse-tumbleweed
22975 msgid ""
22976 "Implements the B<ioctl>\\|(2) function. You\\*(Aqll probably first have to "
22977 "say"
22978 msgstr ""
22979
22980 #. type: Plain text
22981 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
22982 #: opensuse-tumbleweed
22983 msgid ""
22984 "to get the correct function definitions. If I<sys/ioctl.ph> doesn\\*(Aqt "
22985 "exist or doesn\\*(Aqt have the correct definitions you\\*(Aqll have to roll "
22986 "your own, based on your C header files such as I<E<lt>sys/ioctl.hE<gt>>. "
22987 "(There is a Perl script called B<h2ph> that comes with the Perl kit that may "
22988 "help you in this, but it\\*(Aqs nontrivial.) SCALAR will be read and/or "
22989 "written depending on the FUNCTION; a C pointer to the string value of SCALAR "
22990 "will be passed as the third argument of the actual \\&CW<\\*(C`ioctl\\*(C'> "
22991 "call. (If SCALAR has no string value but does have a numeric value, that "
22992 "value will be passed rather than a pointer to the string value. To "
22993 "guarantee this to be true, add a CW<0> to the scalar before using it.) The "
22994 "\\&CW<\\*(C`pack\\*(C'> and CW<\\*(C`unpack\\*(C'> functions may be needed "
22995 "to manipulate the values of structures used by \\&CW<\\*(C`ioctl\\*(C'>."
22996 msgstr ""
22997
22998 #. type: Plain text
22999 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23000 #: opensuse-tumbleweed
23001 msgid ""
23002 "Beware that unlike CW<\\*(C`split\\*(C'>, \\&CW<\\*(C`join\\*(C'> "
23003 "doesn\\*(Aqt take a pattern as its first argument. Compare "
23004 "CW<\\*(C`split\\*(C'>."
23005 msgstr ""
23006
23007 #. type: Plain text
23008 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23009 #: opensuse-tumbleweed
23010 msgid ""
23011 "Called in list context, returns a list consisting of all the keys of the "
23012 "named hash, or in Perl 5.12 or later, the indices of an array. Perl "
23013 "releases prior to 5.12 will produce a syntax error if you try to use an "
23014 "array argument. In scalar context, returns the number of keys or indices."
23015 msgstr ""
23016
23017 #. type: Plain text
23018 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23019 #: opensuse-tumbleweed
23020 msgid ""
23021 "Hash entries are returned in an apparently random order. The actual random "
23022 "order is specific to a given hash; the exact same series of operations on "
23023 "two hashes may result in a different order for each hash. Any insertion "
23024 "into the hash may change the order, as will any deletion, with the exception "
23025 "that the most recent key returned by CW<\\*(C`each\\*(C'> or "
23026 "\\&CW<\\*(C`keys\\*(C'> may be deleted without changing the order. So long "
23027 "as a given hash is unmodified you may rely on \\&CW<\\*(C`keys\\*(C'>, "
23028 "CW<\\*(C`values\\*(C'> and CW<\\*(C`each\\*(C'> to repeatedly return the "
23029 "same order as each other. See \"Algorithmic Complexity Attacks\" in perlsec "
23030 "for details on why hash order is randomized. Aside from the guarantees "
23031 "provided here, the exact details of Perl\\*(Aqs hash algorithm and the hash "
23032 "traversal order are subject to change in any release of Perl. Tied hashes "
23033 "may behave differently to Perl\\*(Aqs hashes with respect to changes in "
23034 "order on insertion and deletion of items."
23035 msgstr ""
23036
23037 #. type: Plain text
23038 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23039 #: opensuse-tumbleweed
23040 msgid ""
23041 "To sort a hash by value, you\\*(Aqll need to use a \\&CW<\\*(C`sort\\*(C'> "
23042 "function. Here\\*(Aqs a descending numeric sort of a hash by its values:"
23043 msgstr ""
23044
23045 #. type: Plain text
23046 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23047 #: opensuse-tumbleweed
23048 msgid ""
23049 "Used as an lvalue on a hash, CW<\\*(C`keys\\*(C'> allows you to increase the "
23050 "number of hash buckets allocated for the given hash. This can gain you a "
23051 "measure of efficiency if you know the hash is going to get big. (This is "
23052 "similar to pre-extending an array by assigning a larger number to $#array.) "
23053 "If you say"
23054 msgstr ""
23055
23056 #. type: Plain text
23057 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23058 #: opensuse-tumbleweed
23059 msgid ""
23060 "then CW<%hash> will have at least 200 buckets allocated for it--256 of them, "
23061 "in fact, since it rounds up to the next power of two. These buckets will be "
23062 "retained even if you do CW<\\*(C`%hash = ()\\*(C'>, use CW<undef %hash> if "
23063 "you want to free the storage while CW<%hash> is still in scope. You "
23064 "can\\*(Aqt shrink the number of buckets allocated for the hash using "
23065 "\\&CW<\\*(C`keys\\*(C'> in this way (but you needn\\*(Aqt worry about doing "
23066 "this by accident, as trying has no effect)."
23067 msgstr ""
23068
23069 #. type: Plain text
23070 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23071 #: opensuse-tumbleweed
23072 msgid "\\&CW<\\*(C`keys @array\\*(C'> in an lvalue context is a syntax error."
23073 msgstr ""
23074
23075 #. type: Plain text
23076 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23077 #: opensuse-tumbleweed
23078 msgid ""
23079 "If SIGNAL is either the number 0 or the string CW<\\*(C`ZERO\\*(C'> (or "
23080 "CW<\\*(C`SIGZERO\\*(C'>), no signal is sent to the process, but "
23081 "CW<\\*(C`kill\\*(C'> checks whether it\\*(Aqs I<possible> to send a signal "
23082 "to it (that means, to be brief, that the process is owned by the same user, "
23083 "or we are the super-user). This is useful to check that a child process is "
23084 "still alive (even if only as a zombie) and hasn\\*(Aqt changed its UID. See "
23085 "perlport for notes on the portability of this construct."
23086 msgstr ""
23087
23088 #. type: Plain text
23089 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23090 #: opensuse-tumbleweed
23091 msgid ""
23092 "Starting in v5.20, Perl uses full Unicode rules if the locale is UTF-8. "
23093 "Otherwise, there is a deficiency in this scheme, which is that case changes "
23094 "that cross the 255/256 boundary are not well-defined. For example, the "
23095 "lower case of LATIN CAPITAL LETTER SHARP S (U+1E9E) in Unicode rules is "
23096 "U+00DF (on ASCII platforms). But under CW<\\*(C`use locale\\*(C'> (prior to "
23097 "v5.20 or not a UTF-8 locale), the lower case of U+1E9E is itself, because "
23098 "0xDF may not be LATIN SMALL LETTER SHARP S in the current locale, and Perl "
23099 "has no way of knowing if that character even exists in the locale, much less "
23100 "what code point it is. Perl returns a result that is above 255 (almost "
23101 "always the input character unchanged), for all instances (and there "
23102 "aren\\*(Aqt many) where the 255/256 boundary would otherwise be crossed; and "
23103 "starting in v5.22, it raises a locale warning."
23104 msgstr ""
23105
23106 #. type: IX
23107 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23108 #: opensuse-tumbleweed
23109 #, no-wrap
23110 msgid "Otherwise, if use feature 'unicode_strings' or use locale ':not_characters' is in effect:"
23111 msgstr ""
23112
23113 #. type: Plain text
23114 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23115 #: opensuse-tumbleweed
23116 msgid ""
23117 "Like all Perl character operations, CW<\\*(C`length\\*(C'> normally deals in "
23118 "logical characters, not physical bytes. For how many bytes a string encoded "
23119 "as UTF-8 would take up, use "
23120 "CW<\\*(C`length(Encode::encode(\\*(AqUTF-8\\*(Aq, EXPR))\\*(C'> (you\\*(Aqll "
23121 "have to CW<\\*(C`use Encode\\*(C'> first). See Encode and perlunicode."
23122 msgstr ""
23123
23124 #. type: Plain text
23125 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23126 #: opensuse-tumbleweed
23127 msgid ""
23128 "You really probably want to be using CW<\\*(C`my\\*(C'> instead, because "
23129 "CW<\\*(C`local\\*(C'> isn\\*(Aqt what most people think of as \"local\". "
23130 "See \"Private Variables via B<my()>\" in perlsub for details."
23131 msgstr ""
23132
23133 #. type: Plain text
23134 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23135 #: opensuse-tumbleweed
23136 msgid ""
23137 "Converts a time as returned by the time function to a 9-element list with "
23138 "the time analyzed for the local time zone. If EXPR is omitted, "
23139 "\\&CW<\\*(C`localtime\\*(C'> uses the current time (as returned by "
23140 "\\&CW<\\*(C`time\\*(C'>)."
23141 msgstr ""
23142
23143 #. type: Plain text
23144 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23145 #: opensuse-tumbleweed
23146 msgid "Typically used as follows:"
23147 msgstr ""
23148
23149 #. type: Plain text
23150 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23151 #: opensuse-tumbleweed
23152 msgid ""
23153 "All list elements are numeric and come straight out of the C CW<\\*(C`struct "
23154 "tm\\*(C'>. CW<$sec>, CW<$min>, and CW<$hour> are the seconds, minutes, and "
23155 "hours of the specified time."
23156 msgstr ""
23157
23158 #. type: Plain text
23159 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23160 #: opensuse-tumbleweed
23161 msgid ""
23162 "\\&CW<$mday> is the day of the month in the range CW<1..31> (i.e. 1-based). "
23163 "CW<$mon> is the month in the range CW<0..11> (i.e. 0-based), with 0 "
23164 "indicating January and 11 indicating December. This makes it easy to get a "
23165 "month name from a list:"
23166 msgstr ""
23167
23168 #. type: Plain text
23169 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23170 #: opensuse-tumbleweed
23171 msgid ""
23172 "\\&CW<$year> contains the number of years since 1900 (e.g. CW<129> for 2029)."
23173 msgstr ""
23174
23175 #. type: Plain text
23176 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23177 #: opensuse-tumbleweed
23178 msgid ""
23179 "To get a human-readable date/time string, use \"CW<\\*(C`strftime\\*(C'>\" "
23180 "in POSIX:"
23181 msgstr ""
23182
23183 #. type: Plain text
23184 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23185 #: opensuse-tumbleweed
23186 #, no-wrap
23187 msgid ""
23188 "\\& use POSIX qw(strftime);\n"
23189 "\\& my @now = localtime;\n"
23190 "\\& my $now_string = strftime \"%Y-%m-%d %H:%M:%S\", @now;\n"
23191 "\\& # e.g. \"2025-11-29 15:19:02\"\n"
23192 msgstr ""
23193
23194 #. type: Plain text
23195 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23196 #: opensuse-tumbleweed
23197 msgid ""
23198 "To get just the year, you can use either \"CW<\\*(C`strftime\\*(C'>\" in "
23199 "POSIX:"
23200 msgstr ""
23201
23202 #. type: Plain text
23203 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23204 #: opensuse-tumbleweed
23205 #, no-wrap
23206 msgid ""
23207 "\\& use POSIX qw(strftime);\n"
23208 "\\& # full year:\n"
23209 "\\& my $year = strftime \"%Y\", localtime;\n"
23210 "\\& # just the last two digits of the year:\n"
23211 "\\& my $ar = strftime \"%y\", localtime;\n"
23212 msgstr ""
23213
23214 #. type: Plain text
23215 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23216 #: opensuse-tumbleweed
23217 msgid "\\&... or manual arithmetic:"
23218 msgstr ""
23219
23220 #. type: Plain text
23221 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23222 #: opensuse-tumbleweed
23223 #, no-wrap
23224 msgid ""
23225 "\\& my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =\n"
23226 "\\& localtime;\n"
23227 "\\& # full year:\n"
23228 "\\& $year += 1900;\n"
23229 "\\& # just the last two digits of the year:\n"
23230 "\\& my $ar = sprintf(\"%02d\", $year % 100);\n"
23231 msgstr ""
23232
23233 #. type: Plain text
23234 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23235 #: opensuse-tumbleweed
23236 #, no-wrap
23237 msgid "\\& my $now_string = localtime; # e.g., \"Thu Oct 13 04:54:34 1994\"\n"
23238 msgstr ""
23239
23240 #. type: Plain text
23241 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23242 #: opensuse-tumbleweed
23243 #, no-wrap
23244 msgid ""
23245 "\\& use POSIX qw(strftime);\n"
23246 "\\& my $now_string = strftime \"%a %b %e %H:%M:%S %Y\", localtime;\n"
23247 "\\& # or for GMT formatted appropriately for your locale:\n"
23248 "\\& my $now_string = strftime \"%a %b %e %H:%M:%S %Y\", gmtime;\n"
23249 msgstr ""
23250
23251 #. type: Plain text
23252 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23253 #: opensuse-tumbleweed
23254 msgid ""
23255 "See also the CW<\\*(C`Time::Local\\*(C'> module (for converting seconds, "
23256 "minutes, hours, and such back to the integer value returned by "
23257 "\\&CW<\\*(C`time\\*(C'>), and the POSIX module\\*(Aqs "
23258 "\\&CW<\\*(C`mktime\\*(C'> function."
23259 msgstr ""
23260
23261 #. type: Plain text
23262 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23263 #: opensuse-tumbleweed
23264 msgid ""
23265 "\\&CW<\\*(C`lock\\*(C'> is a \"weak keyword\"; this means that if "
23266 "you\\*(Aqve defined a function by this name (before any calls to it), that "
23267 "function will be called instead. If you are not under CW<\\*(C`use "
23268 "threads::shared\\*(C'> this does nothing. See threads::shared."
23269 msgstr ""
23270
23271 #. type: Plain text
23272 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23273 #: opensuse-tumbleweed
23274 msgid ""
23275 "\\&CW<\\*(C`{\\*(C'> starts both hash references and blocks, so CW<\\*(C`map "
23276 "{ ...\\*(C'> could be either the start of map BLOCK LIST or map EXPR, LIST. "
23277 "Because Perl doesn\\*(Aqt look ahead for the closing CW<\\*(C`}\\*(C'> it "
23278 "has to take a guess at which it\\*(Aqs dealing with based on what it finds "
23279 "just after the \\&CW<\\*(C`{\\*(C'>. Usually it gets it right, but if it "
23280 "doesn\\*(Aqt it won\\*(Aqt realize something is wrong until it gets to the "
23281 "CW<\\*(C`}\\*(C'> and encounters the missing (or unexpected) comma. The "
23282 "syntax error will be reported close to the CW<\\*(C`}\\*(C'>, but "
23283 "you\\*(Aqll need to change something near the CW<\\*(C`{\\*(C'> such as "
23284 "using a unary CW<\\*(C`+\\*(C'> or semicolon to give Perl some help:"
23285 msgstr ""
23286
23287 #. type: Plain text
23288 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23289 #: opensuse-tumbleweed
23290 msgid ""
23291 "Calls the System V IPC function B<msgctl>\\|(2). You\\*(Aqll probably have "
23292 "to say"
23293 msgstr ""
23294
23295 #. type: Plain text
23296 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23297 #: opensuse-tumbleweed
23298 msgid ""
23299 "Like CW<\\*(C`state\\*(C'>, CW<\\*(C`local\\*(C'>, and "
23300 "\\&CW<\\*(C`our\\*(C'>, CW<\\*(C`my\\*(C'> can operate on a variable "
23301 "anywhere it appears in an expression (aside from interpolation in strings). "
23302 "The declaration will not apply to additional uses of the same variable until "
23303 "the next statement. This means additional uses of that variable within the "
23304 "same statement will act as they would have before that declaration occurred, "
23305 "or result in a strict \\*(Aqvars\\*(Aq error, as appropriate."
23306 msgstr ""
23307
23308 #. type: Plain text
23309 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23310 #: opensuse-tumbleweed
23311 msgid ""
23312 "When calling CW<\\*(C`open\\*(C'> with three or more arguments, the second "
23313 "argument \\&-- labeled MODE here -- defines the I<open mode>. MODE is "
23314 "usually a literal string comprising special characters that define the "
23315 "intended I/O role of the filehandle being created: whether it\\*(Aqs read-"
23316 "only, or read-and-write, and so on."
23317 msgstr ""
23318
23319 #. type: Plain text
23320 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23321 #: opensuse-tumbleweed
23322 msgid ""
23323 "You can put a CW<\\*(C`+\\*(C'> in front of the CW<\\*(C`E<gt>\\*(C'> or "
23324 "CW<\\*(C`E<lt>\\*(C'> to indicate that you want both read and write access "
23325 "to the file; thus \\&CW<\\*(C`+E<lt>\\*(C'> is almost always preferred for "
23326 "read/write updates--the \\&CW<\\*(C`+E<gt>\\*(C'> mode would clobber the "
23327 "file first. You can\\*(Aqt usually use either read-write mode for updating "
23328 "textfiles, since they have variable-length records. See the B<-i> switch in "
23329 "perlrun for a better approach. The file is created with permissions of "
23330 "CW<0666> modified by the process\\*(Aqs \\&CW<\\*(C`umask\\*(C'> value."
23331 msgstr ""
23332
23333 #. type: Plain text
23334 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23335 #: opensuse-tumbleweed
23336 msgid ""
23337 "When opening a file, it\\*(Aqs seldom a good idea to continue if the request "
23338 "failed, so CW<\\*(C`open\\*(C'> is frequently used with CW<\\*(C`die\\*(C'>. "
23339 "Even if you want your code to do something other than CW<\\*(C`die\\*(C'> on "
23340 "a failed open, you should still always check the return value from opening a "
23341 "file."
23342 msgstr ""
23343
23344 #. type: Plain text
23345 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23346 #: opensuse-tumbleweed
23347 msgid ""
23348 "\\&I<Technical note>: This feature works only when Perl is built with PerlIO "
23349 "-- the default, except with older (pre-5.16) Perl installations that were "
23350 "configured to not include it (e.g. via CW<\\*(C`Configure \\&-"
23351 "Uuseperlio\\*(C'>). You can see whether your Perl was built with PerlIO by "
23352 "running CW<\\*(C`perl -V:useperlio\\*(C'>. If it says "
23353 "CW<\\*(Aqdefine\\*(Aq>, you have PerlIO; otherwise you don\\*(Aqt."
23354 msgstr ""
23355
23356 #. type: Plain text
23357 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23358 #: opensuse-tumbleweed
23359 msgid ""
23360 "The filehandle behaves normally for the parent, but I/O to that filehandle "
23361 "is piped from/to the STDOUT/STDIN of the child process. In the child "
23362 "process, the filehandle isn\\*(Aqt opened--I/O happens from/to the new "
23363 "STDOUT/STDIN. Typically this is used like the normal piped open when you "
23364 "want to exercise more control over just how the pipe command gets executed, "
23365 "such as when running setuid and you don\\*(Aqt want to have to scan shell "
23366 "commands for metacharacters."
23367 msgstr ""
23368
23369 #. type: Plain text
23370 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23371 #: opensuse-tumbleweed
23372 msgid ""
23373 "If you specify CW<\\*(AqE<lt>&=X\\*(Aq>, where CW<\\*(C`X\\*(C'> is a file "
23374 "descriptor number or a filehandle, then Perl will do an equivalent of "
23375 "C\\*(Aqs B<fdopen>\\|(3) of that file descriptor (and not call B<dup>\\|"
23376 "(2)); this is more parsimonious of file descriptors. For example:"
23377 msgstr ""
23378
23379 #. type: Plain text
23380 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23381 #: opensuse-tumbleweed
23382 msgid ""
23383 "Note that under Perls older than 5.8.0, Perl uses the standard C "
23384 "library\\*(Aqs\\*(Aq \\&B<fdopen>\\|(3) to implement the CW<\\*(C`=\\*(C'> "
23385 "functionality. On many Unix systems, \\&B<fdopen>\\|(3) fails when file "
23386 "descriptors exceed a certain value, typically 255. For Perls 5.8.0 and "
23387 "later, PerlIO is (most often) the default."
23388 msgstr ""
23389
23390 #. type: Plain text
23391 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23392 #: opensuse-tumbleweed
23393 msgid ""
23394 "In the one- and two-argument forms of the call, the mode and filename should "
23395 "be concatenated (in that order), preferably separated by white space. You "
23396 "can--but shouldn\\*(Aqt--omit the mode in these forms when that mode is "
23397 "CW<\\*(C`E<lt>\\*(C'>. It is safe to use the two-argument form of "
23398 "\\&CW<\\*(C`open\\*(C'> if the filename argument is a known literal."
23399 msgstr ""
23400
23401 #. type: Plain text
23402 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23403 #: opensuse-tumbleweed
23404 msgid ""
23405 "Then you can use CW<\\*(C`FH\\*(C'> as the filehandle, in CW<\\*(C`close "
23406 "FH\\*(C'> and CW<\\*(C`E<lt>FHE<gt>\\*(C'> and so on. Note that it\\*(Aqs a "
23407 "global variable, so this form is not recommended when dealing with "
23408 "filehandles other than Perl\\*(Aqs built-in ones (e.g. STDOUT and STDIN). "
23409 "In fact, using a bareword for the filehandle is an error when the "
23410 "\\&CW<\"bareword_filehandles\"> feature has been disabled. This feature is "
23411 "disabled automatically when in the scope of CW<\\*(C`use v5.36.0\\*(C'> or "
23412 "later."
23413 msgstr ""
23414
23415 #. type: Plain text
23416 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23417 #: opensuse-tumbleweed
23418 msgid ""
23419 "otherwise it\\*(Aqs necessary to protect any leading and trailing whitespace:"
23420 msgstr ""
23421
23422 #. type: Plain text
23423 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23424 #: opensuse-tumbleweed
23425 msgid ""
23426 "Opens a directory named EXPR for processing by \\&CW<\\*(C`readdir\\*(C'>, "
23427 "CW<\\*(C`telldir\\*(C'>, \\&CW<\\*(C`seekdir\\*(C'>, "
23428 "\\&CW<\\*(C`rewinddir\\*(C'>, and \\&CW<\\*(C`closedir\\*(C'>. Returns true "
23429 "if successful. DIRHANDLE may be an expression whose value can be used as an "
23430 "indirect dirhandle, usually the real dirhandle name. If DIRHANDLE is an "
23431 "undefined scalar variable (or array or hash element), the variable is "
23432 "assigned a reference to a new anonymous dirhandle; that is, it\\*(Aqs "
23433 "autovivified. Dirhandles are the same objects as filehandles; an I/O object "
23434 "can only be open as one of these handle types at once."
23435 msgstr ""
23436
23437 #. type: Plain text
23438 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23439 #: opensuse-tumbleweed
23440 msgid ""
23441 "Because the variable becomes legal immediately under CW<\\*(C`use strict "
23442 "\\*(Aqvars\\*(Aq\\*(C'>, so long as there is no variable with that name "
23443 "already in scope, you can then reference the package variable again even "
23444 "within the same statement."
23445 msgstr ""
23446
23447 #. type: Plain text
23448 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23449 #: opensuse-tumbleweed
23450 msgid ""
23451 "Like CW<\\*(C`my\\*(C'>, CW<\\*(C`state\\*(C'>, and "
23452 "\\&CW<\\*(C`local\\*(C'>, CW<\\*(C`our\\*(C'> can operate on a variable "
23453 "anywhere it appears in an expression (aside from interpolation in strings). "
23454 "The declaration will not apply to additional uses of the same variable until "
23455 "the next statement. This means additional uses of that variable within the "
23456 "same statement will act as they would have before that declaration occurred, "
23457 "with the exception that it will still satisfy strict \\*(Aqvars\\*(Aq and "
23458 "interpret that variable as the newly aliased package variable if it was not "
23459 "yet declared in that scope."
23460 msgstr ""
23461
23462 #. type: Plain text
23463 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23464 #: opensuse-tumbleweed
23465 msgid ""
23466 "\\&CW<\\*(C`our\\*(C'> creates a lexically scoped alias to the package "
23467 "variable of the same name, and as such differs from CW<\\*(C`use "
23468 "vars\\*(C'>, which allows use of an unqualified name I<only> within the "
23469 "affected package, without consideration for scopes."
23470 msgstr ""
23471
23472 #. type: Plain text
23473 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23474 #: opensuse-tumbleweed
23475 msgid ""
23476 "Takes a LIST of values and converts it into a string using the rules given "
23477 "by the TEMPLATE. The resulting string is the concatenation of the converted "
23478 "values. Typically, each converted value looks like its machine-level "
23479 "representation. For example, on 32-bit machines an integer may be "
23480 "represented by a sequence of 4 bytes, which will in Perl be presented as a "
23481 "string that\\*(Aqs 4 characters long."
23482 msgstr ""
23483
23484 #. type: Plain text
23485 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23486 #: opensuse-tumbleweed
23487 #, no-wrap
23488 msgid ""
23489 "\\& a A string with arbitrary binary data, will be null padded.\n"
23490 "\\& A A text (ASCII) string, will be space padded.\n"
23491 "\\& Z A null-terminated (ASCIZ) string, will be null padded.\n"
23492 "\\&\n"
23493 "\\& b A bit string (ascending bit order inside each byte,\n"
23494 "\\& like vec()).\n"
23495 "\\& B A bit string (descending bit order inside each byte).\n"
23496 "\\& h A hex string (low nybble first).\n"
23497 "\\& H A hex string (high nybble first).\n"
23498 "\\&\n"
23499 "\\& c A signed char (8-bit) value.\n"
23500 "\\& C An unsigned char (octet) value.\n"
23501 "\\& W An unsigned char value (can be greater than 255).\n"
23502 "\\&\n"
23503 "\\& s A signed short (16-bit) value.\n"
23504 "\\& S An unsigned short value.\n"
23505 "\\&\n"
23506 "\\& l A signed long (32-bit) value.\n"
23507 "\\& L An unsigned long value.\n"
23508 "\\&\n"
23509 "\\& q A signed quad (64-bit) value.\n"
23510 "\\& Q An unsigned quad value.\n"
23511 "\\& (Quads are available only if your system supports 64-bit\n"
23512 "\\& integer values _and_ if Perl has been compiled to support\n"
23513 "\\& those. Raises an exception otherwise.)\n"
23514 "\\&\n"
23515 "\\& i A signed integer value.\n"
23516 "\\& I An unsigned integer value.\n"
23517 "\\& (This \\*(Aqinteger\\*(Aq is _at_least_ 32 bits wide. Its exact\n"
23518 "\\& size depends on what a local C compiler calls \\*(Aqint\\*(Aq.)\n"
23519 "\\&\n"
23520 "\\& n An unsigned short (16-bit) in \"network\" (big-endian) order.\n"
23521 "\\& N An unsigned long (32-bit) in \"network\" (big-endian) order.\n"
23522 "\\& v An unsigned short (16-bit) in \"VAX\" (little-endian) order.\n"
23523 "\\& V An unsigned long (32-bit) in \"VAX\" (little-endian) order.\n"
23524 "\\&\n"
23525 "\\& j A Perl internal signed integer value (IV).\n"
23526 "\\& J A Perl internal unsigned integer value (UV).\n"
23527 "\\&\n"
23528 "\\& f A single-precision float in native format.\n"
23529 "\\& d A double-precision float in native format.\n"
23530 "\\&\n"
23531 "\\& F A Perl internal floating-point value (NV) in native format\n"
23532 "\\& D A float of long-double precision in native format.\n"
23533 "\\& (Long doubles are available only if your system supports\n"
23534 "\\& long double values. Raises an exception otherwise.\n"
23535 "\\& Note that there are different long double formats.)\n"
23536 "\\&\n"
23537 "\\& p A pointer to a null-terminated string.\n"
23538 "\\& P A pointer to a structure (fixed-length string).\n"
23539 "\\&\n"
23540 "\\& u A uuencoded string.\n"
23541 "\\& U A Unicode character number. Encodes to a character in char-\n"
23542 "\\& acter mode and UTF-8 (or UTF-EBCDIC in EBCDIC platforms) in\n"
23543 "\\& byte mode. Also on EBCDIC platforms, the character number will\n"
23544 "\\& be the native EBCDIC value for character numbers below 256.\n"
23545 "\\& This allows most programs using this feature to not have to\n"
23546 "\\& care which type of platform they are running on.\n"
23547 "\\&\n"
23548 "\\& w A BER compressed integer (not an ASN.1 BER, see perlpacktut\n"
23549 "\\& for details). Its bytes represent an unsigned integer in\n"
23550 "\\& base 128, most significant digit first, with as few digits\n"
23551 "\\& as possible. Bit eight (the high bit) is set on each byte\n"
23552 "\\& except the last.\n"
23553 "\\&\n"
23554 "\\& x A null byte (a.k.a. ASCII NUL, \"\\e000\", chr(0))\n"
23555 "\\& X Back up a byte.\n"
23556 "\\& @ Null-fill or truncate to absolute position, counted from the\n"
23557 "\\& start of the innermost ()-group.\n"
23558 "\\& . Null-fill or truncate to absolute position specified by\n"
23559 "\\& the value.\n"
23560 "\\& ( Start of a ()-group.\n"
23561 msgstr ""
23562
23563 #. type: Plain text
23564 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23565 #: opensuse-tumbleweed
23566 msgid ""
23567 "If the repeat count is CW<0>, it\\*(Aqs relative to the current position."
23568 msgstr ""
23569
23570 #. type: Plain text
23571 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23572 #: opensuse-tumbleweed
23573 msgid ""
23574 "And if it\\*(Aqs an integer I<n>, the offset is relative to the start of the "
23575 "\\&I<n>th innermost CW<\\*(C`( )\\*(C'> group, or to the start of the string "
23576 "if I<n> is bigger then the group level."
23577 msgstr ""
23578
23579 #. type: Plain text
23580 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23581 #: opensuse-tumbleweed
23582 msgid ""
23583 "If the value to pack is too long, the result is truncated. If it\\*(Aqs too "
23584 "long and an explicit count is provided, CW<\\*(C`Z\\*(C'> packs only "
23585 "CW<\\*(C`$count-1\\*(C'> bytes, followed by a null byte. Thus "
23586 "CW<\\*(C`Z\\*(C'> always packs a trailing null, except when the count is 0."
23587 msgstr ""
23588
23589 #. type: Plain text
23590 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23591 #: opensuse-tumbleweed
23592 msgid ""
23593 "Likewise, the CW<\\*(C`b\\*(C'> and CW<\\*(C`B\\*(C'> formats pack a string "
23594 "that\\*(Aqs that many bits long. Each such format generates 1 bit of the "
23595 "result. These are typically followed by a repeat count like "
23596 "CW<\\*(C`B8\\*(C'> or CW<\\*(C`B64\\*(C'>."
23597 msgstr ""
23598
23599 #. type: Plain text
23600 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23601 #: opensuse-tumbleweed
23602 msgid ""
23603 "The CW<\\*(C`/\\*(C'> template character allows packing and unpacking of a "
23604 "sequence of items where the packed structure contains a packed item count "
23605 "followed by the packed items themselves. This is useful when the structure "
23606 "you\\*(Aqre unpacking has encoded the sizes or repeat counts for some of its "
23607 "fields within the structure itself as separate fields."
23608 msgstr ""
23609
23610 #. type: Plain text
23611 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23612 #: opensuse-tumbleweed
23613 msgid ""
23614 "For CW<\\*(C`pack\\*(C'>, I<sequence-item> may have a repeat count, in which "
23615 "case the minimum of that and the number of available items is used as the "
23616 "argument for I<length-item>. If it has no repeat count or uses a "
23617 "\\*(Aq*\\*(Aq, the number of available items is used."
23618 msgstr ""
23619
23620 #. type: Plain text
23621 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23622 #: opensuse-tumbleweed
23623 #, no-wrap
23624 msgid ""
23625 "\\& This code: gives this result:\n"
23626 "\\&\n"
23627 "\\& unpack(\"W/a\", \"\\e004Gurusamy\") (\"Guru\")\n"
23628 "\\& unpack(\"a3/A A*\", \"007 Bond J \") (\" Bond\", \"J\")\n"
23629 "\\& unpack(\"a3 x2 /A A*\", \"007: Bond, J.\") (\"Bond, J\", \".\")\n"
23630 "\\&\n"
23631 "\\& pack(\"n/a* w/a\", \"hi,\", \"world\") \"\\e000\\e003hi,\\e005world\"\n"
23632 "\\& pack(\"a/W2\", ord(\"a\") .. ord(\"z\")) \"2ab\"\n"
23633 msgstr ""
23634
23635 #. type: Plain text
23636 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23637 #: opensuse-tumbleweed
23638 msgid ""
23639 "\\&CW<\\*(C`i!\\*(C'> and CW<\\*(C`I!\\*(C'> are also allowed, but only for "
23640 "completeness\\*(Aq sake: they are identical to CW<\\*(C`i\\*(C'> and "
23641 "CW<\\*(C`I\\*(C'>."
23642 msgstr ""
23643
23644 #. type: Plain text
23645 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23646 #: opensuse-tumbleweed
23647 #, no-wrap
23648 msgid ""
23649 "\\& use Config;\n"
23650 "\\& print $Config{shortsize}, \"\\en\";\n"
23651 "\\& print $Config{intsize}, \"\\en\";\n"
23652 "\\& print $Config{longsize}, \"\\en\";\n"
23653 "\\& print $Config{longlongsize}, \"\\en\";\n"
23654 msgstr ""
23655
23656 #. type: Plain text
23657 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23658 #: opensuse-tumbleweed
23659 msgid ""
23660 "The names I<big-endian> and I<little-endian> are comic references to the egg-"
23661 "eating habits of the little-endian Lilliputians and the big-endian "
23662 "Blefuscudians from the classic Jonathan Swift satire, I<Gulliver\\*(Aqs "
23663 "Travels>. This entered computer lingo via the paper \"On Holy Wars and a "
23664 "Plea for Peace\" by Danny Cohen, USC/ISI IEN 137, April 1, 1980."
23665 msgstr ""
23666
23667 #. type: Plain text
23668 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23669 #: opensuse-tumbleweed
23670 #, no-wrap
23671 msgid ""
23672 "\\& 0x56 0x78 0x12 0x34\n"
23673 "\\& 0x34 0x12 0x78 0x56\n"
23674 msgstr ""
23675
23676 #. type: Plain text
23677 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23678 #: opensuse-tumbleweed
23679 #, no-wrap
23680 msgid "\\& printf(\"%#02x \", $_) for unpack(\"W*\", pack(\"L\", 0x12345678));\n"
23681 msgstr ""
23682
23683 #. type: Plain text
23684 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23685 #: opensuse-tumbleweed
23686 msgid ""
23687 "Byteorders CW<\"1234\"> and CW<\"12345678\"> are little-endian; CW<\"4321\"> "
23688 "and CW<\"87654321\"> are big-endian. Systems with multiarchitecture "
23689 "binaries will have CW<\"ffff\">, signifying that static information "
23690 "doesn\\*(Aqt work, one must use runtime probing."
23691 msgstr ""
23692
23693 #. type: Plain text
23694 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23695 #: opensuse-tumbleweed
23696 msgid ""
23697 "Starting with Perl 5.10.0, integer and floating-point formats, along with "
23698 "the CW<\\*(C`p\\*(C'> and CW<\\*(C`P\\*(C'> formats and CW<\\*(C`()\\*(C'> "
23699 "groups, may all be followed by the \\&CW<\\*(C`E<gt>\\*(C'> or "
23700 "CW<\\*(C`E<lt>\\*(C'> endianness modifiers to respectively enforce big- or "
23701 "little-endian byte-order. These modifiers are especially useful given how "
23702 "CW<\\*(C`n\\*(C'>, CW<\\*(C`N\\*(C'>, CW<\\*(C`v\\*(C'>, and "
23703 "CW<\\*(C`V\\*(C'> don\\*(Aqt cover signed integers, 64-bit integers, or "
23704 "floating-point values."
23705 msgstr ""
23706
23707 #. type: Plain text
23708 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23709 #: opensuse-tumbleweed
23710 msgid ""
23711 "Exchanging signed integers between different platforms works only when all "
23712 "platforms store them in the same format. Most platforms store signed "
23713 "integers in two\\*(Aqs-complement notation, so usually this is not an issue."
23714 msgstr ""
23715
23716 #. type: Plain text
23717 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23718 #: opensuse-tumbleweed
23719 msgid ""
23720 "Forcing big- or little-endian byte-order on floating-point values for data "
23721 "exchange can work only if all platforms use the same binary representation "
23722 "such as IEEE floating-point. Even if all platforms are using IEEE, there "
23723 "may still be subtle differences. Being able to use CW<\\*(C`E<gt>\\*(C'> or "
23724 "CW<\\*(C`E<lt>\\*(C'> on floating-point values can be useful, but also "
23725 "dangerous if you don\\*(Aqt know exactly what you\\*(Aqre doing. It is not "
23726 "a general way to portably store floating-point values."
23727 msgstr ""
23728
23729 #. type: Plain text
23730 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23731 #: opensuse-tumbleweed
23732 msgid ""
23733 "If you know I<exactly> what you\\*(Aqre doing, you can use the "
23734 "CW<\\*(C`E<gt>\\*(C'> or CW<\\*(C`E<lt>\\*(C'> modifiers to force big- or "
23735 "little-endian byte-order on floating-point values."
23736 msgstr ""
23737
23738 #. type: Plain text
23739 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23740 #: opensuse-tumbleweed
23741 #, no-wrap
23742 msgid ""
23743 "\\& # note: single quotes around the template string to prevent\n"
23744 "\\& # array interpolation of @1, @2, @3\n"
23745 "\\& pack(\\*(Aq@1A((@2A)@3A)\\*(Aq, qw[X Y Z])\n"
23746 msgstr ""
23747
23748 #. type: Plain text
23749 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23750 #: opensuse-tumbleweed
23751 msgid ""
23752 "\\&CW<\\*(C`n\\*(C'>, CW<\\*(C`N\\*(C'>, CW<\\*(C`v\\*(C'> and "
23753 "CW<\\*(C`V\\*(C'> accept the CW<\\*(C`!\\*(C'> modifier to represent signed "
23754 "16-/32-bit integers in big-/little-endian order. This is portable only when "
23755 "all platforms sharing packed data use the same binary representation for "
23756 "signed integers; for example, when all platforms use two\\*(Aqs-complement "
23757 "representation."
23758 msgstr ""
23759
23760 #. type: Plain text
23761 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23762 #: opensuse-tumbleweed
23763 msgid ""
23764 "Attempting to pack the special floating point values CW<\\*(C`Inf\\*(C'> and "
23765 "CW<\\*(C`NaN\\*(C'> (infinity, also in negative, and not-a-number) into "
23766 "packed integer values (like CW<\"L\">) is a fatal error. The reason for "
23767 "this is that there simply isn\\*(Aqt any sensible mapping for these special "
23768 "values into integers."
23769 msgstr ""
23770
23771 #. type: Plain text
23772 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23773 #: opensuse-tumbleweed
23774 msgid ""
23775 "Declares the BLOCK or the rest of the compilation unit as being in the given "
23776 "namespace. The scope of the package declaration is either the supplied code "
23777 "BLOCK or, in the absence of a BLOCK, from the declaration itself through the "
23778 "end of current scope (the enclosing block, file, or "
23779 "\\&CW<\\*(C`eval\\*(C'>). That is, the forms without a BLOCK are operative "
23780 "through the end of the current scope, just like the \\&CW<\\*(C`my\\*(C'>, "
23781 "CW<\\*(C`state\\*(C'>, and \\&CW<\\*(C`our\\*(C'> operators. All "
23782 "unqualified dynamic identifiers in this scope will be in the given "
23783 "namespace, except where overridden by another CW<\\*(C`package\\*(C'> "
23784 "declaration or when they\\*(Aqre one of the special identifiers that qualify "
23785 "into CW<\\*(C`main::\\*(C'>, like CW<\\*(C`STDOUT\\*(C'>, "
23786 "CW<\\*(C`ARGV\\*(C'>, CW<\\*(C`ENV\\*(C'>, and the punctuation variables."
23787 msgstr ""
23788
23789 #. type: Plain text
23790 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23791 #: opensuse-tumbleweed
23792 msgid ""
23793 "A package statement affects dynamic variables only, including those "
23794 "you\\*(Aqve used CW<\\*(C`local\\*(C'> on, but I<not> lexically-scoped "
23795 "variables, which are created with CW<\\*(C`my\\*(C'>, "
23796 "\\&CW<\\*(C`state\\*(C'>, or CW<\\*(C`our\\*(C'>. Typically it would be the "
23797 "first declaration in a file included by \\&CW<\\*(C`require\\*(C'> or "
23798 "CW<\\*(C`use\\*(C'>. You can switch into a package in more than one place, "
23799 "since this only determines which default symbol table the compiler uses for "
23800 "the rest of that block. You can refer to identifiers in other packages than "
23801 "the current one by prefixing the identifier with the package name and a "
23802 "double colon, as in CW<$SomePack::var> or "
23803 "CW<\\*(C`ThatPack::INPUT_HANDLE\\*(C'>. If package name is omitted, the "
23804 "CW<\\*(C`main\\*(C'> package is assumed. That is, CW<$::sail> is equivalent "
23805 "to \\&CW<$main::sail> (as well as to CW<\\*(C`$main\\*(Aqsail\\*(C'>, still "
23806 "seen in ancient code, mostly from Perl 4)."
23807 msgstr ""
23808
23809 #. type: Plain text
23810 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23811 #: opensuse-tumbleweed
23812 msgid ""
23813 "If VERSION is provided, CW<\\*(C`package\\*(C'> sets the \\&CW<$VERSION> "
23814 "variable in the given namespace to a version object with the VERSION "
23815 "provided. VERSION must be a \"strict\" style version number as defined by "
23816 "the version module: a positive decimal number (integer or decimal-fraction) "
23817 "without exponentiation or else a dotted-decimal v-string with a leading "
23818 "\\*(Aqv\\*(Aq character and at least three components. You should set "
23819 "CW<$VERSION> only once per package."
23820 msgstr ""
23821
23822 #. type: Plain text
23823 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23824 #: opensuse-tumbleweed
23825 msgid ""
23826 "Opens a pair of connected pipes like the corresponding system call. Note "
23827 "that if you set up a loop of piped processes, deadlock can occur unless you "
23828 "are very careful. In addition, note that Perl\\*(Aqs pipes use IO "
23829 "buffering, so you may need to set CW<$|> to flush your WRITEHANDLE after "
23830 "each command, depending on the application."
23831 msgstr ""
23832
23833 #. type: Plain text
23834 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23835 #: opensuse-tumbleweed
23836 msgid ""
23837 "\\&CW<\\*(C`pos\\*(C'> directly accesses the location used by the regexp "
23838 "engine to store the offset, so assigning to CW<\\*(C`pos\\*(C'> will change "
23839 "that offset, and so will also influence the CW<\\*(C`\\eG\\*(C'> zero-width "
23840 "assertion in regular expressions. Both of these effects take place for the "
23841 "next match, so you can\\*(Aqt affect the position with "
23842 "\\&CW<\\*(C`pos\\*(C'> during the current match, such as in \\&CW<\\*(C`(?"
23843 "{pos() = 5})\\*(C'> or CW<\\*(C`s//pos() = 5/e\\*(C'>."
23844 msgstr ""
23845
23846 #. type: Plain text
23847 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23848 #: opensuse-tumbleweed
23849 msgid ""
23850 "Because a failed CW<\\*(C`m//gc\\*(C'> match doesn\\*(Aqt reset the offset, "
23851 "the return from CW<\\*(C`pos\\*(C'> won\\*(Aqt change either in this case. "
23852 "See perlre and perlop."
23853 msgstr ""
23854
23855 #. type: Plain text
23856 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23857 #: opensuse-tumbleweed
23858 msgid ""
23859 "The current value of CW<$,> (if any) is printed between each LIST item. The "
23860 "current value of CW<\\*(C`$\\e\\*(C'> (if any) is printed after the entire "
23861 "LIST has been printed. Because print takes a LIST, anything in the LIST is "
23862 "evaluated in list context, including any subroutines whose return lists you "
23863 "pass to \\&CW<\\*(C`print\\*(C'>. Be careful not to follow the print "
23864 "keyword with a left parenthesis unless you want the corresponding right "
23865 "parenthesis to terminate the arguments to the print; put parentheses around "
23866 "all arguments (or interpose a CW<\\*(C`+\\*(C'>, but that doesn\\*(Aqt look "
23867 "as good)."
23868 msgstr ""
23869
23870 #. type: Plain text
23871 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23872 #: opensuse-tumbleweed
23873 msgid ""
23874 "If you\\*(Aqre storing handles in an array or hash, or in general whenever "
23875 "you\\*(Aqre using any expression more complex than a bareword handle or a "
23876 "plain, unsubscripted scalar variable to retrieve it, you will have to use a "
23877 "block returning the filehandle value instead, in which case the LIST may not "
23878 "be omitted:"
23879 msgstr ""
23880
23881 #. type: Plain text
23882 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23883 #: opensuse-tumbleweed
23884 msgid ""
23885 "Don\\*(Aqt fall into the trap of using a \\&CW<\\*(C`printf\\*(C'> when a "
23886 "simple \\&CW<\\*(C`print\\*(C'> would do. The \\&CW<\\*(C`print\\*(C'> is "
23887 "more efficient and less error prone."
23888 msgstr ""
23889
23890 #. type: Plain text
23891 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23892 #: opensuse-tumbleweed
23893 msgid ""
23894 "If FUNCTION is a string starting with CW<\\*(C`CORE::\\*(C'>, the rest is "
23895 "taken as a name for a Perl builtin. If the builtin\\*(Aqs arguments cannot "
23896 "be adequately expressed by a prototype (such as CW<\\*(C`system\\*(C'>), "
23897 "CW<\\*(C`prototype\\*(C'> returns CW<\\*(C`undef\\*(C'>, because the builtin "
23898 "does not really behave like a Perl function. Otherwise, the string "
23899 "describing the equivalent prototype is returned."
23900 msgstr ""
23901
23902 #. type: Plain text
23903 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23904 #: opensuse-tumbleweed
23905 msgid ""
23906 "The motivation behind this is to make all characters in EXPR match their "
23907 "literal selves. Otherwise any metacharacters in it could trigger their "
23908 "\"magic\" matching behaviors. The characters this function has been applied "
23909 "to are said to be \"quoted\" or \"escaped\"."
23910 msgstr ""
23911
23912 #. type: Plain text
23913 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23914 #: opensuse-tumbleweed
23915 msgid ""
23916 "Returns a random fractional number greater than or equal to CW<0> and "
23917 "B<less> than the value of EXPR. (EXPR should be positive.) If EXPR is "
23918 "omitted, the value CW<1> is used."
23919 msgstr ""
23920
23921 #. type: Plain text
23922 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23923 #: opensuse-tumbleweed
23924 #, no-wrap
23925 msgid ""
23926 "\\& my $num1 = rand(); # Random float at least 0 and below 1\n"
23927 "\\& my $num2 = rand(7); # Random float at least 0 and below 7\n"
23928 "\\& my $num3 = int(rand(10)); # Random integer at least 0 and below 10\n"
23929 msgstr ""
23930
23931 #. type: Plain text
23932 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23933 #: opensuse-tumbleweed
23934 msgid "\\&B<Notes:>"
23935 msgstr ""
23936
23937 #. type: Plain text
23938 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23939 #: opensuse-tumbleweed
23940 msgid ""
23941 "Calling CW<\\*(C`rand\\*(C'> automatically calls CW<\\*(C`srand\\*(C'> "
23942 "unless srand has already been called."
23943 msgstr ""
23944
23945 #. type: Plain text
23946 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23947 #: opensuse-tumbleweed
23948 msgid ""
23949 "Currently EXPR with the value CW<0> is special-cased as CW<1>. This was "
23950 "undocumented before Perl 5.8.0 and is subject to change in future versions "
23951 "of Perl."
23952 msgstr ""
23953
23954 #. type: Plain text
23955 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23956 #: opensuse-tumbleweed
23957 msgid ""
23958 "As of Perl v5.20.0 CW<rand()> uses the CW<\\*(C`drand48\\*(C'> pseudorandom "
23959 "number generator to generate random numbers. As a PRNG "
23960 "CW<\\*(C`drand48\\*(C'> should be sufficient for most non-cryptographic "
23961 "needs. If you need cryptographic random numbers check CPAN for crypto safe "
23962 "alternatives."
23963 msgstr ""
23964
23965 #. type: IP
23966 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23967 #: opensuse-tumbleweed
23968 #, no-wrap
23969 msgid "B<Security:>"
23970 msgstr ""
23971
23972 #. type: IX
23973 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23974 #: opensuse-tumbleweed
23975 #, no-wrap
23976 msgid "Security:"
23977 msgstr ""
23978
23979 #. type: Plain text
23980 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23981 #: opensuse-tumbleweed
23982 msgid ""
23983 "\\&\\f(CB\\*(C`rand\\*(C'B< is not cryptographically secure. You should not "
23984 "rely on it in security-sensitive situations.> As of this writing, a number "
23985 "of third-party CPAN modules offer random number generators intended by their "
23986 "authors to be cryptographically secure, including:"
23987 msgstr ""
23988
23989 #. type: Plain text
23990 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23991 #: opensuse-tumbleweed
23992 msgid "Crypt::URandom"
23993 msgstr ""
23994
23995 #. type: Plain text
23996 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
23997 #: opensuse-tumbleweed
23998 msgid "Crypt::PRNG"
23999 msgstr ""
24000
24001 #. type: Plain text
24002 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24003 #: opensuse-tumbleweed
24004 #, no-wrap
24005 msgid ""
24006 "\\& open(my $FH, \"E<lt>\", \"input.txt\") or die(\"Cannot open file: $!\");\n"
24007 "\\&\n"
24008 "\\& my $buf = \"\";\n"
24009 "\\& my $num = 0;\n"
24010 "\\&\n"
24011 "\\& # Read 32 bytes\n"
24012 "\\& $num = read($FH, $buf, 32);\n"
24013 "\\&\n"
24014 "\\& # Read 16 bytes into position 1024 of $buf\n"
24015 "\\& $num = read($FH, $buf, 16, 1024);\n"
24016 msgstr ""
24017
24018 #. type: Plain text
24019 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24020 #: opensuse-tumbleweed
24021 msgid ""
24022 "The call is implemented in terms of either Perl\\*(Aqs or your system\\*(Aqs "
24023 "native \\&B<fread>\\|(3) library function, via the PerlIO layers applied to "
24024 "the handle. To get a true B<read>\\|(2) system call, see sysread."
24025 msgstr ""
24026
24027 #. type: Plain text
24028 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24029 #: opensuse-tumbleweed
24030 msgid ""
24031 "If you\\*(Aqre planning to filetest the return values out of a "
24032 "\\&CW<\\*(C`readdir\\*(C'>, you\\*(Aqd better prepend the directory in "
24033 "question. Otherwise, because we didn\\*(Aqt CW<\\*(C`chdir\\*(C'> there, it "
24034 "would have been testing the wrong file."
24035 msgstr ""
24036
24037 #. type: Plain text
24038 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24039 #: opensuse-tumbleweed
24040 msgid ""
24041 "As of Perl 5.12 you can use a bare CW<\\*(C`readdir\\*(C'> in a "
24042 "\\&CW<\\*(C`while\\*(C'> loop, which will set CW<$_> on every iteration. If "
24043 "either a CW<\\*(C`readdir\\*(C'> expression or an explicit assignment of a "
24044 "\\&CW<\\*(C`readdir\\*(C'> expression to a scalar is used as a "
24045 "CW<\\*(C`while\\*(C'>/CW<\\*(C`for\\*(C'> condition, then the condition "
24046 "actually tests for definedness of the expression\\*(Aqs value, not for its "
24047 "regular truth value."
24048 msgstr ""
24049
24050 #. type: Plain text
24051 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24052 #: opensuse-tumbleweed
24053 msgid ""
24054 "If CW<\\*(C`readline\\*(C'> encounters an operating system error, \\&CW<$!> "
24055 "will be set with the corresponding error message. It can be helpful to "
24056 "check CW<$!> when you are reading from filehandles you don\\*(Aqt trust, "
24057 "such as a tty or a socket. The following example uses the operator form of "
24058 "CW<\\*(C`readline\\*(C'> and dies if the result is not defined."
24059 msgstr ""
24060
24061 #. type: Plain text
24062 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24063 #: opensuse-tumbleweed
24064 msgid ""
24065 "Note that you can\\*(Aqt handle CW<\\*(C`readline\\*(C'> errors that way "
24066 "with the CW<\\*(C`ARGV\\*(C'> filehandle. In that case, you have to open "
24067 "each element of CW<@ARGV> yourself since \\&CW<\\*(C`eof\\*(C'> handles "
24068 "CW<\\*(C`ARGV\\*(C'> differently."
24069 msgstr ""
24070
24071 #. type: Plain text
24072 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24073 #: opensuse-tumbleweed
24074 msgid ""
24075 "Like the CW<\\*(C`E<lt>EXPRE<gt>\\*(C'> operator, if a "
24076 "CW<\\*(C`readline\\*(C'> expression is used as the condition of a "
24077 "CW<\\*(C`while\\*(C'> or CW<\\*(C`for\\*(C'> loop, then it will be "
24078 "implicitly assigned to CW<$_>. If either a CW<\\*(C`readline\\*(C'> "
24079 "expression or an explicit assignment of a CW<\\*(C`readline\\*(C'> "
24080 "expression to a scalar is used as a CW<\\*(C`while\\*(C'>/"
24081 "CW<\\*(C`for\\*(C'> condition, then the condition actually tests for "
24082 "definedness of the expression\\*(Aqs value, not for its regular truth value."
24083 msgstr ""
24084
24085 #. type: Plain text
24086 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24087 #: opensuse-tumbleweed
24088 msgid ""
24089 "EXPR is executed as a system command. The collected standard output of the "
24090 "command is returned. In scalar context, it comes back as a single "
24091 "(potentially multi-line) string. In list context, returns a list of lines "
24092 "(however you\\*(Aqve defined lines with CW<$/> (or "
24093 "\\&CW<$INPUT_RECORD_SEPARATOR> in English)). This is the internal function "
24094 "implementing the CW<\\*(C`qx/EXPR/\\*(C'> operator, but you can use it "
24095 "directly. The CW<\\*(C`qx/EXPR/\\*(C'> operator is discussed in more detail "
24096 "in \"CW<\\*(C`qx/>\\f(CISTRINGCW</\\*(C'>\" in perlop. If EXPR is omitted, "
24097 "uses CW<$_>."
24098 msgstr ""
24099
24100 #. type: Plain text
24101 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24102 #: opensuse-tumbleweed
24103 msgid ""
24104 "Receives a message on a socket. Attempts to receive LENGTH characters of "
24105 "data into variable SCALAR from the specified SOCKET filehandle. SCALAR will "
24106 "be grown or shrunk to the length actually read. Takes the same flags as the "
24107 "system call of the same name. Returns the address of the sender if "
24108 "SOCKET\\*(Aqs protocol supports this; returns an empty string otherwise. If "
24109 "there\\*(Aqs an error, returns the undefined value. This call is actually "
24110 "implemented in terms of the B<recvfrom>\\|(2) system call. See \"UDP: "
24111 "Message Passing\" in perlipc for examples."
24112 msgstr ""
24113
24114 #. type: Plain text
24115 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24116 #: opensuse-tumbleweed
24117 msgid ""
24118 "If the operand is a reference to a blessed object, then the name of the "
24119 "class into which the referent is blessed will be returned. "
24120 "CW<\\*(C`ref\\*(C'> doesn\\*(Aqt care what the physical type of the referent "
24121 "is; blessing takes precedence over such concerns. Beware that exact "
24122 "comparison of CW<\\*(C`ref\\*(C'> results against a class name doesn\\*(Aqt "
24123 "perform a class membership test: a class\\*(Aqs members also include objects "
24124 "blessed into subclasses, for which CW<\\*(C`ref\\*(C'> will return the name "
24125 "of the subclass. Also beware that class names can clash with the built-in "
24126 "type names (described below). Use the CW<\\*(C`isa\\*(C'> method to test "
24127 "class membership of a class name or blessed object, after ensuring it is one "
24128 "of these things. Alternatively, the \\&CW<\\*(C`isa\\*(C'> operator can "
24129 "test class membership without checking blessedness first."
24130 msgstr ""
24131
24132 #. type: Plain text
24133 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24134 #: opensuse-tumbleweed
24135 msgid ""
24136 "If the operand is a reference to an unblessed object, then the return value "
24137 "indicates the type of object. If the unblessed referent is not a scalar, "
24138 "then the return value will be one of the strings CW<\\*(C`ARRAY\\*(C'>, "
24139 "\\&CW<\\*(C`HASH\\*(C'>, CW<\\*(C`CODE\\*(C'>, CW<\\*(C`FORMAT\\*(C'>, or "
24140 "CW<\\*(C`IO\\*(C'>, indicating only which kind of object it is. If the "
24141 "unblessed referent is a scalar, then the return value will be one of the "
24142 "strings CW<\\*(C`SCALAR\\*(C'>, CW<\\*(C`VSTRING\\*(C'>, "
24143 "CW<\\*(C`REF\\*(C'>, CW<\\*(C`GLOB\\*(C'>, \\&CW<\\*(C`LVALUE\\*(C'>, or "
24144 "CW<\\*(C`REGEXP\\*(C'>, depending on the kind of value the scalar currently "
24145 "has. But note that CW<\\*(C`qr//\\*(C'> scalars are created already "
24146 "blessed, so CW<\\*(C`ref qr/.../\\*(C'> will likely return "
24147 "CW<\\*(C`Regexp\\*(C'>. Beware that these built-in type names can also be "
24148 "used as class names, so CW<\\*(C`ref\\*(C'> returning one of these names "
24149 "doesn\\*(Aqt unambiguously indicate that the referent is of the kind to "
24150 "which the name refers."
24151 msgstr ""
24152
24153 #. type: Plain text
24154 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24155 #: opensuse-tumbleweed
24156 msgid ""
24157 "The ambiguity between built-in type names and class names may limit the "
24158 "utility of CW<\\*(C`ref\\*(C'>, but in practice, such clashes rarely occur "
24159 "unless intentionally engineered. For unambiguous information, use "
24160 "\"blessed\" in builtin for information about blessing, and \"reftype\" in "
24161 "builtin for information about physical types. But beware that the physical "
24162 "type returned by CW<\\*(C`reftype\\*(C'> does not indicate how a blessed "
24163 "object is meant to be used, and the appropriate dereference operations for "
24164 "an object (whether to access the blessed structure directly, or via an "
24165 "overload) will be described by the documentation for the object class."
24166 msgstr ""
24167
24168 #. type: Plain text
24169 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24170 #: opensuse-tumbleweed
24171 msgid ""
24172 "Otherwise, CW<\\*(C`require\\*(C'> demands that a library file be included "
24173 "if it hasn\\*(Aqt already been included. The file is included via the do-"
24174 "FILE mechanism, which is essentially just a variety of "
24175 "\\&CW<\\*(C`eval\\*(C'> with the caveat that lexical variables in the "
24176 "invoking script will be invisible to the included code. If it were "
24177 "implemented in pure Perl, it would have semantics similar to the following:"
24178 msgstr ""
24179
24180 #. type: Plain text
24181 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24182 #: opensuse-tumbleweed
24183 msgid ""
24184 "Historically the file must return true as the last statement to indicate "
24185 "successful execution of any initialization code, so it\\*(Aqs customary to "
24186 "end such a file with CW<\\*(C`1;\\*(C'> unless you\\*(Aqre sure it\\*(Aqll "
24187 "return true otherwise. But it\\*(Aqs better just to put the "
24188 "CW<\\*(C`1;\\*(C'>, in case you add more statements. As of 5.37.6 this "
24189 "requirement may be avoided by enabling the \\*(Aqmodule_true\\*(Aq feature, "
24190 "which is enabled by default in modern version bundles. Thus code with "
24191 "CW<\\*(C`use v5.37;\\*(C'> no longer needs to concern itself with this "
24192 "issue. See feature for more details. Note that this affects the compilation "
24193 "unit within which the feature is used, and using it before requiring a "
24194 "module will not change the behavior of existing modules that do not "
24195 "themselves also use it."
24196 msgstr ""
24197
24198 #. type: Plain text
24199 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24200 #: opensuse-tumbleweed
24201 msgid ""
24202 "If the hook is an array reference, its first element must be a subroutine "
24203 "reference or an object as described above. When the first element is an "
24204 "object that supports an CW<\\*(C`INC\\*(C'> or CW<\\*(C`INCDIR\\*(C'> method "
24205 "then the method will be called with the object as the first argument, the "
24206 "filename requested as the second, and the hook array reference as the third. "
24207 "When the first element is a subroutine then it will be called with the array "
24208 "as the first argument, and the filename as the second, no third parameter "
24209 "will be passed in. In both forms you can modify the contents of the array to "
24210 "provide state between calls, or whatever you like."
24211 msgstr ""
24212
24213 #. type: Plain text
24214 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24215 #: opensuse-tumbleweed
24216 msgid ""
24217 "The CW<\\*(C`${^HOOK}{require_\\|_before}\\*(C'> hook may return a code "
24218 "reference, in which case the code reference will be executed (in an eval "
24219 "with the filename as a parameter) after the require completes. It will be "
24220 "executed regardless of how the compilation completed, and even if the "
24221 "require throws a fatal exception. The function may consult CW<%INC> to "
24222 "determine if the require failed or not. For instance the following code "
24223 "will print some diagnostics before and after every CW<\\*(C`require\\*(C'> "
24224 "statement. The example also includes logic to chain the signal, so that "
24225 "multiple signals can cooperate. Well behaved CW<\\*(C`${^HOOK}{require_\\|"
24226 "_before}\\*(C'> handlers should always take this into account."
24227 msgstr ""
24228
24229 #. type: Plain text
24230 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24231 #: opensuse-tumbleweed
24232 msgid ""
24233 "Resetting CW<\"A-Z\"> is not recommended because you\\*(Aqll wipe out your "
24234 "\\&CW<@ARGV> and CW<@INC> arrays and your \\&CW<%ENV> hash."
24235 msgstr ""
24236
24237 #. type: Plain text
24238 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24239 #: opensuse-tumbleweed
24240 msgid ""
24241 "Resets only package variables; lexical variables are unaffected, but they "
24242 "clean themselves up on scope exit anyway, so you\\*(Aqll probably want to "
24243 "use them instead. See CW<\\*(C`my\\*(C'>."
24244 msgstr ""
24245
24246 #. type: Plain text
24247 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24248 #: opensuse-tumbleweed
24249 msgid ""
24250 "Sets FILEHANDLE\\*(Aqs position, just like the B<fseek>\\|(3) call of C "
24251 "CW<\\*(C`stdio\\*(C'>. FILEHANDLE may be an expression whose value gives "
24252 "the name of the filehandle. The values for WHENCE are CW<0> to set the new "
24253 "position \\&I<in bytes> to POSITION; CW<1> to set it to the current position "
24254 "plus POSITION; and CW<2> to set it to EOF plus POSITION, typically "
24255 "negative. For WHENCE you may use the constants CW<\\*(C`SEEK_SET\\*(C'>, "
24256 "\\&CW<\\*(C`SEEK_CUR\\*(C'>, and CW<\\*(C`SEEK_END\\*(C'> (start of the "
24257 "file, current position, end of the file) from the Fcntl module. Returns "
24258 "CW<1> on success, false otherwise."
24259 msgstr ""
24260
24261 #. type: Plain text
24262 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24263 #: opensuse-tumbleweed
24264 msgid ""
24265 "If you want to position the file for \\&CW<\\*(C`sysread\\*(C'> or "
24266 "\\&CW<\\*(C`syswrite\\*(C'>, don\\*(Aqt use \\&CW<\\*(C`seek\\*(C'>, because "
24267 "buffering makes its effect on the file\\*(Aqs read-write position "
24268 "unpredictable and non-portable. Use CW<\\*(C`sysseek\\*(C'> instead."
24269 msgstr ""
24270
24271 #. type: Plain text
24272 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24273 #: opensuse-tumbleweed
24274 msgid ""
24275 "Due to the rules and rigors of ANSI C, on some systems you have to do a seek "
24276 "whenever you switch between reading and writing. Amongst other things, this "
24277 "may have the effect of calling stdio\\*(Aqs B<clearerr>\\|(3). A WHENCE of "
24278 "CW<1> (CW<\\*(C`SEEK_CUR\\*(C'>) is useful for not moving the file position:"
24279 msgstr ""
24280
24281 #. type: Plain text
24282 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24283 #: opensuse-tumbleweed
24284 msgid ""
24285 "This is also useful for applications emulating CW<\\*(C`tail -f\\*(C'>. "
24286 "Once you hit EOF on your read and then sleep for a while, you (probably) "
24287 "have to stick in a dummy CW<\\*(C`seek\\*(C'> to reset things. The "
24288 "\\&CW<\\*(C`seek\\*(C'> doesn\\*(Aqt change the position, but it I<does> "
24289 "clear the end-of-file condition on the handle, so that the next "
24290 "CW<\\*(C`readline FILE\\*(C'> makes Perl try again to read something. (We "
24291 "hope.)"
24292 msgstr ""
24293
24294 #. type: Plain text
24295 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24296 #: opensuse-tumbleweed
24297 msgid ""
24298 "If that doesn\\*(Aqt work (some I/O implementations are particularly "
24299 "cantankerous), you might need something like this:"
24300 msgstr ""
24301
24302 #. type: Plain text
24303 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24304 #: opensuse-tumbleweed
24305 msgid ""
24306 "Calls the System V IPC function B<semctl>\\|(2). You\\*(Aqll probably have "
24307 "to say"
24308 msgstr ""
24309
24310 #. type: Plain text
24311 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24312 #: opensuse-tumbleweed
24313 msgid ""
24314 "Sets the current process group for the specified PID, CW<0> for the current "
24315 "process. Raises an exception when used on a machine that doesn\\*(Aqt "
24316 "implement POSIX B<setpgid>\\|(2) or BSD B<setpgrp>\\|(2). If the arguments "
24317 "are omitted, it defaults to CW<\\*(C`0,0\\*(C'>. Note that the BSD 4.2 "
24318 "version of \\&CW<\\*(C`setpgrp\\*(C'> does not accept any arguments, so only "
24319 "\\&CW<\\*(C`setpgrp(0,0)\\*(C'> is portable. See also "
24320 "\\&CW<POSIX::setsid()>."
24321 msgstr ""
24322
24323 #. type: Plain text
24324 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24325 #: opensuse-tumbleweed
24326 msgid ""
24327 "Sets the current priority for a process, a process group, or a user. (See "
24328 "B<setpriority>\\|(2).) Raises an exception when used on a machine that "
24329 "doesn\\*(Aqt implement B<setpriority>\\|(2)."
24330 msgstr ""
24331
24332 #. type: Plain text
24333 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24334 #: opensuse-tumbleweed
24335 msgid "An example disabling Nagle\\*(Aqs algorithm on a socket:"
24336 msgstr ""
24337
24338 #. type: Plain text
24339 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24340 #: opensuse-tumbleweed
24341 msgid ""
24342 "Calls the System V IPC function shmctl. You\\*(Aqll probably have to say"
24343 msgstr ""
24344
24345 #. type: Plain text
24346 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24347 #: opensuse-tumbleweed
24348 msgid ""
24349 "This is useful with sockets when you want to tell the other side you\\*(Aqre "
24350 "done writing but not done reading, or vice versa. It\\*(Aqs also a more "
24351 "insistent form of close because it also disables the file descriptor in any "
24352 "forked copies in other processes."
24353 msgstr ""
24354
24355 #. type: Plain text
24356 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24357 #: opensuse-tumbleweed
24358 msgid ""
24359 "For delays of finer granularity than one second, the Time::HiRes module "
24360 "(from CPAN, and starting from Perl 5.8 part of the standard distribution) "
24361 "provides CW<\\*(C`usleep\\*(C'>. You may also use Perl\\*(Aqs four-argument "
24362 "version of CW<\\*(C`select\\*(C'> leaving the first three arguments "
24363 "undefined, or you might be able to use the \\&CW<\\*(C`syscall\\*(C'> "
24364 "interface to access B<setitimer>\\|(2) if your system supports it. See "
24365 "perlfaq8 for details."
24366 msgstr ""
24367
24368 #. type: Plain text
24369 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24370 #: opensuse-tumbleweed
24371 msgid "See also the POSIX module\\*(Aqs CW<\\*(C`pause\\*(C'> function."
24372 msgstr ""
24373
24374 #. type: Plain text
24375 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24376 #: opensuse-tumbleweed
24377 msgid ""
24378 "If the subroutine\\*(Aqs prototype is CW<\\*(C`($$)\\*(C'>, the elements to "
24379 "be compared are passed by reference in CW<@_>, as for a normal subroutine. "
24380 "This is slower than unprototyped subroutines, where the elements to be "
24381 "compared are passed into the subroutine as the package global variables "
24382 "\\&CW<$a> and CW<$b> (see example below)."
24383 msgstr ""
24384
24385 #. type: Plain text
24386 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24387 #: opensuse-tumbleweed
24388 msgid ""
24389 "If two or more elements of LIST compare the same (i.e. the comparison "
24390 "operation returns 0 for them), they retain the relative order they had in "
24391 "LIST. In other words, sorting is stable (and has been since v5.8.0)."
24392 msgstr ""
24393
24394 #. type: Plain text
24395 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24396 #: opensuse-tumbleweed
24397 msgid ""
24398 "\\&CW<\\*(C`sort\\*(C'> returns aliases into the original list, much as a "
24399 "for loop\\*(Aqs index variable aliases the list elements. That is, "
24400 "modifying an element of a list returned by CW<\\*(C`sort\\*(C'> (for "
24401 "example, in a CW<\\*(C`foreach\\*(C'>, CW<\\*(C`map\\*(C'> or "
24402 "\\&CW<\\*(C`grep\\*(C'>) actually modifies the element in the original "
24403 "list. This is usually something to be avoided when writing clear code."
24404 msgstr ""
24405
24406 #. type: Plain text
24407 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24408 #: opensuse-tumbleweed
24409 #, no-wrap
24410 msgid ""
24411 "\\& # sort lexically\n"
24412 "\\& my @articles = sort @files;\n"
24413 "\\&\n"
24414 "\\& # same thing, but with explicit sort routine\n"
24415 "\\& my @articles = sort {$a cmp $b} @files;\n"
24416 "\\&\n"
24417 "\\& # now case-insensitively\n"
24418 "\\& my @articles = sort {fc($a) cmp fc($b)} @files;\n"
24419 "\\&\n"
24420 "\\& # same thing in reversed order\n"
24421 "\\& my @articles = sort {$b cmp $a} @files;\n"
24422 "\\&\n"
24423 "\\& # sort numerically ascending\n"
24424 "\\& my @articles = sort {$a E<lt>=E<gt> $b} @files;\n"
24425 "\\&\n"
24426 "\\& # sort numerically descending\n"
24427 "\\& my @articles = sort {$b E<lt>=E<gt> $a} @files;\n"
24428 "\\&\n"
24429 "\\& # this sorts the %age hash by value instead of key\n"
24430 "\\& # using an in-line function\n"
24431 "\\& my @eldest = sort { $age{$b} E<lt>=E<gt> $age{$a} } keys %age;\n"
24432 "\\&\n"
24433 "\\& # sort using explicit subroutine name\n"
24434 "\\& sub byage {\n"
24435 "\\& $age{$a} E<lt>=E<gt> $age{$b}; # presuming numeric\n"
24436 "\\& }\n"
24437 "\\& my @sortedclass = sort byage @class;\n"
24438 "\\&\n"
24439 "\\& sub backwards { $b cmp $a }\n"
24440 "\\& my @harry = qw(dog cat x Cain Abel);\n"
24441 "\\& my @george = qw(gone chased yz Punished Axed);\n"
24442 "\\& print sort @harry;\n"
24443 "\\& # prints AbelCaincatdogx\n"
24444 "\\& print sort backwards @harry;\n"
24445 "\\& # prints xdogcatCainAbel\n"
24446 "\\& print sort @george, \\*(Aqto\\*(Aq, @harry;\n"
24447 "\\& # prints AbelAxedCainPunishedcatchaseddoggonetoxyz\n"
24448 "\\&\n"
24449 "\\& # inefficiently sort by descending numeric compare using\n"
24450 "\\& # the first integer after the first = sign, or the\n"
24451 "\\& # whole record case-insensitively otherwise\n"
24452 "\\&\n"
24453 "\\& my @new = sort {\n"
24454 "\\& ($b =~ /=(\\ed+)/)[0] E<lt>=E<gt> ($a =~ /=(\\ed+)/)[0]\n"
24455 "\\& ||\n"
24456 "\\& fc($a) cmp fc($b)\n"
24457 "\\& } @old;\n"
24458 "\\&\n"
24459 "\\& # same thing, but much more efficiently;\n"
24460 "\\& # we\\*(Aqll build auxiliary indices instead\n"
24461 "\\& # for speed\n"
24462 "\\& my (@nums, @caps);\n"
24463 "\\& for (@old) {\n"
24464 "\\& push @nums, ( /=(\\ed+)/ ? $1 : undef );\n"
24465 "\\& push @caps, fc($_);\n"
24466 "\\& }\n"
24467 "\\&\n"
24468 "\\& my @new = @old[ sort {\n"
24469 "\\& $nums[$b] E<lt>=E<gt> $nums[$a]\n"
24470 "\\& ||\n"
24471 "\\& $caps[$a] cmp $caps[$b]\n"
24472 "\\& } 0..$#old\n"
24473 "\\& ];\n"
24474 "\\&\n"
24475 "\\& # same thing, but without any temps\n"
24476 "\\& my @new = map { $_-E<gt>[0] }\n"
24477 "\\& sort { $b-E<gt>[1] E<lt>=E<gt> $a-E<gt>[1]\n"
24478 "\\& ||\n"
24479 "\\& $a-E<gt>[2] cmp $b-E<gt>[2]\n"
24480 "\\& } map { [$_, /=(\\ed+)/, fc($_)] } @old;\n"
24481 "\\&\n"
24482 "\\& # using a prototype allows you to use any comparison subroutine\n"
24483 "\\& # as a sort subroutine (including other package\\*(Aqs subroutines)\n"
24484 "\\& package Other;\n"
24485 "\\& sub backwards ($$) { $_[1] cmp $_[0]; } # $a and $b are\n"
24486 "\\& # not set here\n"
24487 "\\& package main;\n"
24488 "\\& my @new = sort Other::backwards @old;\n"
24489 "\\&\n"
24490 "\\& ## using a prototype with function signature\n"
24491 "\\& use feature \\*(Aqsignatures\\*(Aq;\n"
24492 "\\& sub function_with_signature :prototype($$) ($one, $two) {\n"
24493 "\\& return $one E<lt>=E<gt> $two\n"
24494 "\\& }\n"
24495 "\\&\n"
24496 "\\& my @new = sort function_with_signature @old;\n"
24497 msgstr ""
24498
24499 #. type: Plain text
24500 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24501 #: opensuse-tumbleweed
24502 msgid ""
24503 "Sort subroutines written using CW<$a> and CW<$b> are bound to their calling "
24504 "package. It is possible, but of limited interest, to define them in a "
24505 "different package, since the subroutine must still refer to the calling "
24506 "package\\*(Aqs CW<$a> and CW<$b> :"
24507 msgstr ""
24508
24509 #. type: Plain text
24510 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24511 #: opensuse-tumbleweed
24512 msgid ""
24513 "In the current version of Perl, the CW<\\*(C`sort\\*(C'> function is "
24514 "implemented via the mergesort algorithm."
24515 msgstr ""
24516
24517 #. type: Plain text
24518 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24519 #: opensuse-tumbleweed
24520 msgid ""
24521 "As a special case for CW<\\*(C`split\\*(C'>PATTERN/,EXPR,LIMITE<gt>, the "
24522 "empty pattern given in match operator syntax (CW<\\*(C`//\\*(C'>) "
24523 "specifically matches the empty string, which is contrary to its usual "
24524 "interpretation as the last successful match."
24525 msgstr ""
24526
24527 #. type: Plain text
24528 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24529 #: opensuse-tumbleweed
24530 msgid ""
24531 "If PATTERN is CW<\\*(C`/^/\\*(C'>, then it is treated as if it used the "
24532 "multiline modifier (CW<\\*(C`/^/m\\*(C'>), since it isn\\*(Aqt much use "
24533 "otherwise."
24534 msgstr ""
24535
24536 #. type: Plain text
24537 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24538 #: opensuse-tumbleweed
24539 msgid ""
24540 "As another special case, \\&CW<\\*(C`split\\*(C'>PATTERN/,EXPR,LIMITE<gt> "
24541 "emulates the default behavior of the command line tool B<awk> when the "
24542 "PATTERN is either omitted or a string composed of a single space character "
24543 "(such as CW<\\*(Aq\\ \\*(Aq> or \\&CW<\"\\ex20\">, but not e.g. CW<\\*(C`/"
24544 "\\ /\\*(C'>). In this case, any leading whitespace in EXPR is removed "
24545 "before splitting occurs, and the PATTERN is instead treated as if it were "
24546 "CW<\\*(C`/\\es+/\\*(C'>; in particular, this means that \\&I<any> contiguous "
24547 "whitespace (not just a single space character) is used as a separator."
24548 msgstr ""
24549
24550 #. type: Plain text
24551 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24552 #: opensuse-tumbleweed
24553 msgid ""
24554 "As of Perl 5.28, this special-cased whitespace splitting works as expected "
24555 "in the scope of CW<\"use\\ feature\\ \\*(Aqunicode_strings\\*(Aq\">. In "
24556 "previous versions, and outside the scope of that feature, it exhibits \"The "
24557 "\"Unicode Bug\"\" in perlunicode: characters that are whitespace according "
24558 "to Unicode rules but not according to ASCII rules can be treated as part of "
24559 "fields rather than as field separators, depending on the string\\*(Aqs "
24560 "internal encoding."
24561 msgstr ""
24562
24563 #. type: Plain text
24564 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24565 #: opensuse-tumbleweed
24566 msgid ""
24567 "As of Perl 5.39.9 the CW<\\*(C`/x\\*(C'> default modifier does NOT affect "
24568 "\\&CW<\\*(C`split STRING\\*(C'> but does affect CW<\\*(C`split "
24569 "PATTERN\\*(C'>, this means that \\&CW<\\*(C`split \" \"\\*(C'> will produce "
24570 "the expected I<awk> emulation regardless as to whether it is used in the "
24571 "scope of a CW<\\*(C`use re \"/x\"\\*(C'> statement. If you want to split by "
24572 "spaces under CW<\\*(C`use re \"/x\"\\*(C'> you must do something like "
24573 "\\&CW<\\*(C`split /(?-x: )/\\*(C'> or CW<\\*(C`split /\\ex{20}/\\*(C'> "
24574 "instead of CW<\\*(C`split / /\\*(C'>."
24575 msgstr ""
24576
24577 #. type: Plain text
24578 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24579 #: opensuse-tumbleweed
24580 msgid ""
24581 "Perl does its own CW<\\*(C`sprintf\\*(C'> formatting: it emulates the C "
24582 "function B<sprintf>\\|(3), but doesn\\*(Aqt use it except for floating-point "
24583 "numbers, and even then only standard modifiers are allowed. Non-standard "
24584 "extensions in your local B<sprintf>\\|(3) are therefore unavailable from "
24585 "Perl."
24586 msgstr ""
24587
24588 #. type: Plain text
24589 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24590 #: opensuse-tumbleweed
24591 msgid ""
24592 "Perl\\*(Aqs CW<\\*(C`sprintf\\*(C'> permits the following universally-known "
24593 "conversions:"
24594 msgstr ""
24595
24596 #. type: Plain text
24597 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24598 #: opensuse-tumbleweed
24599 msgid ""
24600 "When the # flag and a precision are given in the CW<%o> conversion, the "
24601 "precision is incremented if it\\*(Aqs necessary for the leading \"0\"."
24602 msgstr ""
24603
24604 #. type: Plain text
24605 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24606 #: opensuse-tumbleweed
24607 msgid ""
24608 "Return the positive square root of EXPR. If EXPR is omitted, uses "
24609 "\\&CW<$_>. Works only for non-negative operands unless you\\*(Aqve loaded "
24610 "the CW<\\*(C`Math::Complex\\*(C'> module."
24611 msgstr ""
24612
24613 #. type: Plain text
24614 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24615 #: opensuse-tumbleweed
24616 msgid ""
24617 "\\&\\f(CB\\*(C`rand\\*(C'B< is not cryptographically secure. You should not "
24618 "rely on it in security-sensitive situations.> See documentation of "
24619 "CW<\\*(C`rand\\*(C'> for a list of suitable alternatives."
24620 msgstr ""
24621
24622 #. type: Plain text
24623 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24624 #: opensuse-tumbleweed
24625 #, no-wrap
24626 msgid ""
24627 "\\& S_IMODE($mode) the part of $mode containing the permission\n"
24628 "\\& bits and the setuid/setgid/sticky bits\n"
24629 "\\&\n"
24630 "\\& S_IFMT($mode) the part of $mode containing the file type,\n"
24631 "\\& which will match one of the S_IF* constants\n"
24632 "\\& (e.g. S_IFMT($mode) == S_IFDIR for directories),\n"
24633 "\\& but see the following helper functions\n"
24634 "\\&\n"
24635 "\\& # The operators -f, -d, -l, -b, -c, -p, and -S.\n"
24636 "\\&\n"
24637 "\\& S_ISREG($mode) S_ISDIR($mode) S_ISLNK($mode)\n"
24638 "\\& S_ISBLK($mode) S_ISCHR($mode) S_ISFIFO($mode) S_ISSOCK($mode)\n"
24639 "\\&\n"
24640 "\\& # No direct -X operator counterpart.\n"
24641 "\\&\n"
24642 "\\& S_ISWHT($mode)\n"
24643 msgstr ""
24644
24645 #. type: Plain text
24646 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24647 #: opensuse-tumbleweed
24648 msgid ""
24649 "Like CW<\\*(C`my\\*(C'>, CW<\\*(C`local\\*(C'>, and \\&CW<\\*(C`our\\*(C'>, "
24650 "CW<\\*(C`state\\*(C'> can operate on a variable anywhere it appears in an "
24651 "expression (aside from interpolation in strings). The declaration will not "
24652 "apply to additional uses of the same variable until the next statement. This "
24653 "means additional uses of that variable within the same statement will act as "
24654 "they would have before that declaration occurred, or result in a strict "
24655 "\\*(Aqvars\\*(Aq error, as appropriate."
24656 msgstr ""
24657
24658 #. type: Plain text
24659 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24660 #: opensuse-tumbleweed
24661 msgid ""
24662 "This is subroutine definition, not a real function I<per se>. Without a "
24663 "BLOCK it\\*(Aqs just a forward declaration. Without a NAME, it\\*(Aqs an "
24664 "anonymous function declaration, so does return a value: the CODE ref of the "
24665 "closure just created."
24666 msgstr ""
24667
24668 #. type: Plain text
24669 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24670 #: opensuse-tumbleweed
24671 msgid ""
24672 "If OFFSET and LENGTH specify a substring that is partly outside the string, "
24673 "only the part within the string is returned. If the substring is beyond "
24674 "either end of the string, \\&CW<\\*(C`substr\\*(C'> returns the undefined "
24675 "value and produces a warning. When used as an lvalue, specifying a "
24676 "substring that is entirely outside the string raises an exception. "
24677 "Here\\*(Aqs an example showing the behavior for boundary cases:"
24678 msgstr ""
24679
24680 #. type: Plain text
24681 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24682 #: opensuse-tumbleweed
24683 msgid ""
24684 "Note that the lvalue returned by the three-argument version of "
24685 "\\&CW<\\*(C`substr\\*(C'> acts as a \\*(Aqmagic bullet\\*(Aq; each time it "
24686 "is assigned to, it remembers which part of the original string is being "
24687 "modified; for example:"
24688 msgstr ""
24689
24690 #. type: Plain text
24691 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24692 #: opensuse-tumbleweed
24693 msgid ""
24694 "Creates a new filename symbolically linked to the old filename. Returns "
24695 "CW<1> for success, CW<0> otherwise. On systems that don\\*(Aqt support "
24696 "symbolic links, raises an exception. To check for that, use eval:"
24697 msgstr ""
24698
24699 #. type: Plain text
24700 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24701 #: opensuse-tumbleweed
24702 msgid ""
24703 "Calls the system call specified as the first element of the list, passing "
24704 "the remaining elements as arguments to the system call. If unimplemented, "
24705 "raises an exception. The arguments are interpreted as follows: if a given "
24706 "argument is numeric, the argument is passed as an int. If not, the pointer "
24707 "to the string value is passed. You are responsible to make sure a string is "
24708 "pre-extended long enough to receive any result that might be written into a "
24709 "string. You can\\*(Aqt use a string literal (or other read-only string) as "
24710 "an argument to \\&CW<\\*(C`syscall\\*(C'> because Perl has to assume that "
24711 "any string pointer might be written through. If your integer arguments are "
24712 "not literals and have never been interpreted in a numeric context, you may "
24713 "need to add CW<0> to them to force them to look like numbers. This emulates "
24714 "the \\&CW<\\*(C`syswrite\\*(C'> function (or vice versa):"
24715 msgstr ""
24716
24717 #. type: Plain text
24718 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24719 #: opensuse-tumbleweed
24720 msgid ""
24721 "There\\*(Aqs a problem with CW<\\*(C`syscall(SYS_pipe())\\*(C'>: it returns "
24722 "the file number of the read end of the pipe it creates, but there is no way "
24723 "to retrieve the file number of the other end. You can avoid this problem by "
24724 "using CW<\\*(C`pipe\\*(C'> instead."
24725 msgstr ""
24726
24727 #. type: Plain text
24728 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24729 #: opensuse-tumbleweed
24730 msgid ""
24731 "Opens the file whose filename is given by FILENAME, and associates it with "
24732 "FILEHANDLE. If FILEHANDLE is an expression, its value is used as the real "
24733 "filehandle wanted; an undefined scalar will be suitably autovivified. This "
24734 "function calls the underlying operating system\\*(Aqs B<open>\\|(2) function "
24735 "with the parameters FILENAME, MODE, and PERMS."
24736 msgstr ""
24737
24738 #. type: Plain text
24739 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24740 #: opensuse-tumbleweed
24741 msgid ""
24742 "The possible values and flag bits of the MODE parameter are system-"
24743 "dependent; they are available via the standard module "
24744 "\\&CW<\\*(C`Fcntl\\*(C'>. See the documentation of your operating "
24745 "system\\*(Aqs \\&B<open>\\|(2) syscall to see which values and flag bits are "
24746 "available. You may combine several flags using the CW<\\*(C`|\\*(C'>-"
24747 "operator."
24748 msgstr ""
24749
24750 #. type: Plain text
24751 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24752 #: opensuse-tumbleweed
24753 msgid ""
24754 "For historical reasons, some values work on almost every system supported by "
24755 "Perl: 0 means read-only, 1 means write-only, and 2 means read/write. We "
24756 "know that these values do I<not> work under OS/390; you probably don\\*(Aqt "
24757 "want to use them in new code."
24758 msgstr ""
24759
24760 #. type: Plain text
24761 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24762 #: opensuse-tumbleweed
24763 msgid ""
24764 "If the file named by FILENAME does not exist and the \\&CW<\\*(C`open\\*(C'> "
24765 "call creates it (typically because MODE includes the CW<\\*(C`O_CREAT\\*(C'> "
24766 "flag), then the value of PERMS specifies the permissions of the newly "
24767 "created file. If you omit the PERMS argument to CW<\\*(C`sysopen\\*(C'>, "
24768 "Perl uses the octal value CW<0666>. These permission values need to be in "
24769 "octal, and are modified by your process\\*(Aqs current CW<\\*(C`umask\\*(C'>."
24770 msgstr ""
24771
24772 #. type: Plain text
24773 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24774 #: opensuse-tumbleweed
24775 msgid ""
24776 "In many systems the CW<\\*(C`O_EXCL\\*(C'> flag is available for opening "
24777 "files in exclusive mode. This is B<not> locking: exclusiveness means here "
24778 "that if the file already exists, \\&CW<\\*(C`sysopen\\*(C'> fails. "
24779 "CW<\\*(C`O_EXCL\\*(C'> may not work on network filesystems, and has no "
24780 "effect unless the CW<\\*(C`O_CREAT\\*(C'> flag is set as well. Setting "
24781 "CW<\\*(C`O_CREAT|O_EXCL\\*(C'> prevents the file from being opened if it is "
24782 "a symbolic link. It does not protect against symbolic links in the "
24783 "file\\*(Aqs path."
24784 msgstr ""
24785
24786 #. type: Plain text
24787 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24788 #: opensuse-tumbleweed
24789 msgid ""
24790 "You should seldom if ever use CW<0644> as argument to "
24791 "\\&CW<\\*(C`sysopen\\*(C'>, because that takes away the user\\*(Aqs option "
24792 "to have a more permissive umask. Better to omit it. See "
24793 "CW<\\*(C`umask\\*(C'> for more on this."
24794 msgstr ""
24795
24796 #. type: Plain text
24797 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24798 #: opensuse-tumbleweed
24799 #, no-wrap
24800 msgid ""
24801 "\\& open(my $FH, \"E<lt>\", \"input.txt\") or die(\"Cannot open file: $!\");\n"
24802 "\\&\n"
24803 "\\& my $buf = \"\";\n"
24804 "\\& my $num = 0;\n"
24805 "\\&\n"
24806 "\\& # Read up to 64 bytes\n"
24807 "\\& $num = sysread($FH, $buf, 64);\n"
24808 "\\&\n"
24809 "\\& # Read up to 32 bytes into position 512 of $buf\n"
24810 "\\& $num = sysread($FH, $buf, 32, 512);\n"
24811 msgstr ""
24812
24813 #. type: Plain text
24814 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24815 #: opensuse-tumbleweed
24816 msgid ""
24817 "There is no B<syseof()> function, which is ok, since \\&CW<\\*(C`eof\\*(C'> "
24818 "doesn\\*(Aqt work well on device files (like ttys) anyway. Use "
24819 "CW<\\*(C`sysread\\*(C'> and check for a return value of 0 to decide whether "
24820 "you\\*(Aqre done."
24821 msgstr ""
24822
24823 #. type: Plain text
24824 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24825 #: opensuse-tumbleweed
24826 msgid ""
24827 "Sets FILEHANDLE\\*(Aqs system position I<in bytes> using B<lseek>\\|(2). "
24828 "FILEHANDLE may be an expression whose value gives the name of the "
24829 "filehandle. The values for WHENCE are CW<0> to set the new position to "
24830 "POSITION; CW<1> to set it to the current position plus POSITION; and CW<2> "
24831 "to set it to EOF plus POSITION, typically negative."
24832 msgstr ""
24833
24834 #. type: Plain text
24835 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24836 #: opensuse-tumbleweed
24837 msgid ""
24838 "Does exactly the same thing as CW<\\*(C`exec\\*(C'>, except that a fork is "
24839 "done first and the parent process waits for the child process to exit. Note "
24840 "that argument processing varies depending on the number of arguments. If "
24841 "there is more than one argument in LIST, or if LIST is an array with more "
24842 "than one value, starts the program given by the first element of the list "
24843 "with arguments given by the rest of the list. If there is only one scalar "
24844 "argument, the argument is checked for shell metacharacters, and if there are "
24845 "any, the entire argument is passed to the system\\*(Aqs command shell for "
24846 "parsing (this is CW<\\*(C`/bin/sh -c\\*(C'> on Unix platforms, but varies on "
24847 "other platforms). If there are no shell metacharacters in the argument, it "
24848 "is split into words and passed directly to CW<\\*(C`execvp\\*(C'>, which is "
24849 "more efficient. On Windows, only the CW<\\*(C`system PROGRAM LIST\\*(C'> "
24850 "syntax will reliably avoid using the shell; CW<\\*(C`system LIST\\*(C'>, "
24851 "even with more than one element, will fall back to the shell if the first "
24852 "spawn fails."
24853 msgstr ""
24854
24855 #. type: Plain text
24856 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24857 #: opensuse-tumbleweed
24858 msgid ""
24859 "The return value is the exit status of the program as returned by the "
24860 "\\&CW<\\*(C`wait\\*(C'> call. To get the actual exit value, shift right by "
24861 "eight (see below). See also CW<\\*(C`exec\\*(C'>. This is I<not> what you "
24862 "want to use to capture the output from a command; for that you should use "
24863 "merely backticks or \\&CW<\\*(C`qx//\\*(C'>, as described in "
24864 "\"\\`STRING\\`\" in perlop. Return value of -1 indicates a failure to start "
24865 "the program or an error of the B<wait>\\|(2) system call (inspect \\&CW<$!> "
24866 "for the reason)."
24867 msgstr ""
24868
24869 #. type: Plain text
24870 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24871 #: opensuse-tumbleweed
24872 msgid ""
24873 "If you\\*(Aqd like to make CW<\\*(C`system\\*(C'> (and many other bits of "
24874 "Perl) die on error, have a look at the autodie pragma."
24875 msgstr ""
24876
24877 #. type: Plain text
24878 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24879 #: opensuse-tumbleweed
24880 msgid ""
24881 "If you\\*(Aqd like to manually inspect CW<\\*(C`system\\*(C'>\\*(Aqs "
24882 "failure, you can check all possible failure modes by inspecting \\&CW<$?> "
24883 "like this:"
24884 msgstr ""
24885
24886 #. type: Plain text
24887 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24888 #: opensuse-tumbleweed
24889 msgid ""
24890 "When CW<\\*(C`system\\*(C'>\\*(Aqs arguments are executed indirectly by the "
24891 "shell, results and return codes are subject to its quirks. See "
24892 "\"\\`STRING\\`\" in perlop and CW<\\*(C`exec\\*(C'> for details."
24893 msgstr ""
24894
24895 #. type: Plain text
24896 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24897 #: opensuse-tumbleweed
24898 msgid ""
24899 "Returns a reference to the object underlying VARIABLE (the same value that "
24900 "was originally returned by the \\&CW<\\*(C`tie\\*(C'> call that bound the "
24901 "variable to a package.) Returns the undefined value if VARIABLE isn\\*(Aqt "
24902 "tied to a package."
24903 msgstr ""
24904
24905 #. type: Plain text
24906 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24907 #: opensuse-tumbleweed
24908 msgid "Children\\*(Aqs times are only included for terminated children."
24909 msgstr ""
24910
24911 #. type: Plain text
24912 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24913 #: opensuse-tumbleweed
24914 msgid ""
24915 "Truncates the file opened on FILEHANDLE, or named by EXPR, to the specified "
24916 "length. Raises an exception if truncate isn\\*(Aqt implemented on your "
24917 "system. Returns true if successful, CW<\\*(C`undef\\*(C'> on error."
24918 msgstr ""
24919
24920 #. type: Plain text
24921 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24922 #: opensuse-tumbleweed
24923 msgid ""
24924 "The Unix permission CW<\\*(C`rwxr-x---\\*(C'> is represented as three sets "
24925 "of three bits, or three octal digits: CW<0750> (the leading 0 indicates "
24926 "octal and isn\\*(Aqt one of the digits). The CW<\\*(C`umask\\*(C'> value is "
24927 "such a number representing disabled permissions bits. The permission (or "
24928 "\"mode\") values you pass CW<\\*(C`mkdir\\*(C'> or "
24929 "\\&CW<\\*(C`sysopen\\*(C'> are modified by your umask, so even if you tell "
24930 "\\&CW<\\*(C`sysopen\\*(C'> to create a file with permissions CW<0777>, if "
24931 "your umask is CW<0022>, then the file will actually be created with "
24932 "permissions CW<0755>. If your \\&CW<\\*(C`umask\\*(C'> were CW<0027> (group "
24933 "can\\*(Aqt write; others can\\*(Aqt read, write, or execute), then passing "
24934 "\\&CW<\\*(C`sysopen\\*(C'> CW<0666> would create a file with mode CW<0640> "
24935 "(because CW<\\*(C`0666 &~ 027\\*(C'> is CW<0640>)."
24936 msgstr ""
24937
24938 #. type: Plain text
24939 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24940 #: opensuse-tumbleweed
24941 msgid ""
24942 "Here\\*(Aqs some advice: supply a creation mode of CW<0666> for regular "
24943 "files (in CW<\\*(C`sysopen\\*(C'>) and one of \\&CW<0777> for directories "
24944 "(in CW<\\*(C`mkdir\\*(C'>) and executable files. This gives users the "
24945 "freedom of choice: if they want protected files, they might choose process "
24946 "umasks of CW<022>, CW<027>, or even the particularly antisocial mask of "
24947 "CW<077>. Programs should rarely if ever make policy decisions better left "
24948 "to the user. The exception to this is when writing files that should be "
24949 "kept private: mail files, web browser cookies, I<.rhosts> files, and so on."
24950 msgstr ""
24951
24952 #. type: Plain text
24953 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24954 #: opensuse-tumbleweed
24955 msgid ""
24956 "Undefines the value of EXPR, which must be an lvalue. Use only on a scalar "
24957 "value, an array (using CW<\\*(C`@\\*(C'>), a hash (using CW<\\*(C`%\\*(C'>), "
24958 "a subroutine (using CW<\\*(C`&\\*(C'>), or a typeglob (using "
24959 "CW<\\*(C`*\\*(C'>). Saying CW<\\*(C`undef $hash{$key}\\*(C'> will probably "
24960 "not do what you expect on most predefined variables or DBM list values, so "
24961 "don\\*(Aqt do that; see CW<\\*(C`delete\\*(C'>. Always returns the "
24962 "undefined value. You can omit the EXPR, in which case nothing is undefined, "
24963 "but you still get an undefined value that you could, for instance, return "
24964 "from a subroutine, assign to a variable, or pass as a parameter. Examples:"
24965 msgstr ""
24966
24967 #. type: Plain text
24968 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24969 #: opensuse-tumbleweed
24970 msgid ""
24971 "The TEMPLATE has the same format as in the \\&CW<\\*(C`pack\\*(C'> "
24972 "function. Here\\*(Aqs a subroutine that does substring:"
24973 msgstr ""
24974
24975 #. type: Plain text
24976 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24977 #: opensuse-tumbleweed
24978 msgid "and then there\\*(Aqs"
24979 msgstr ""
24980
24981 #. type: Plain text
24982 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24983 #: opensuse-tumbleweed
24984 msgid ""
24985 "The CW<\\*(C`p\\*(C'> and CW<\\*(C`P\\*(C'> formats should be used with "
24986 "care. Since Perl has no way of checking whether the value passed to "
24987 "\\&CW<\\*(C`unpack\\*(C'> corresponds to a valid memory location, passing a "
24988 "pointer value that\\*(Aqs not known to be valid is likely to have disastrous "
24989 "consequences."
24990 msgstr ""
24991
24992 #. type: Plain text
24993 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
24994 #: opensuse-tumbleweed
24995 msgid ""
24996 "The CW<\\*(C`BEGIN\\*(C'> forces the CW<\\*(C`require\\*(C'> and "
24997 "\\&CW<\\*(C`import\\*(C'> to happen at compile time. The "
24998 "\\&CW<\\*(C`require\\*(C'> makes sure the module is loaded into memory if it "
24999 "hasn\\*(Aqt been yet. The CW<\\*(C`import\\*(C'> is not a builtin; "
25000 "it\\*(Aqs just an ordinary static method call into the "
25001 "CW<\\*(C`Module\\*(C'> package to tell the module to import the list of "
25002 "features back into the current package. The module can implement its "
25003 "\\&CW<\\*(C`import\\*(C'> method any way it likes, though most modules just "
25004 "choose to derive their CW<\\*(C`import\\*(C'> method via inheritance from "
25005 "the CW<\\*(C`Exporter\\*(C'> class that is defined in the "
25006 "\\&CW<\\*(C`Exporter\\*(C'> module. See Exporter. If no "
25007 "\\&CW<\\*(C`import\\*(C'> method can be found, then the call is skipped, "
25008 "even if there is an AUTOLOAD method."
25009 msgstr ""
25010
25011 #. type: Plain text
25012 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
25013 #: opensuse-tumbleweed
25014 msgid ""
25015 "If you do not want to call the package\\*(Aqs CW<\\*(C`import\\*(C'> method "
25016 "(for instance, to stop your namespace from being altered), explicitly supply "
25017 "the empty list:"
25018 msgstr ""
25019
25020 #. type: Plain text
25021 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
25022 #: opensuse-tumbleweed
25023 msgid ""
25024 "The VERSION argument cannot be an arbitrary expression. It only counts as a "
25025 "VERSION argument if it is a version number literal, starting with either a "
25026 "digit or CW<\\*(C`v\\*(C'> followed by a digit. Anything that doesn\\*(Aqt "
25027 "look like a version literal will be parsed as the start of the LIST. "
25028 "Nevertheless, many attempts to use an arbitrary expression as a VERSION "
25029 "argument will appear to work, because Exporter\\*(Aqs CW<\\*(C`import\\*(C'> "
25030 "method handles numeric arguments specially, performing version checks rather "
25031 "than treating them as things to export."
25032 msgstr ""
25033
25034 #. type: Plain text
25035 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
25036 #: opensuse-tumbleweed
25037 #, no-wrap
25038 msgid ""
25039 "\\& use constant;\n"
25040 "\\& use diagnostics;\n"
25041 "\\& use integer;\n"
25042 "\\& use feature qw(say signatures bitwise);\n"
25043 "\\& use sigtrap qw(SEGV BUS);\n"
25044 "\\& use strict qw(subs vars refs);\n"
25045 "\\& use subs qw(afunc blurfl);\n"
25046 "\\& use warnings qw(all);\n"
25047 msgstr ""
25048
25049 #. type: Plain text
25050 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
25051 #: opensuse-tumbleweed
25052 msgid ""
25053 "Because CW<\\*(C`use\\*(C'> takes effect at compile time, it doesn\\*(Aqt "
25054 "respect the ordinary flow control of the code being compiled. In "
25055 "particular, putting a CW<\\*(C`use\\*(C'> inside the false branch of a "
25056 "conditional doesn\\*(Aqt prevent it from being processed. If a module or "
25057 "pragma only needs to be loaded conditionally, this can be done using the if "
25058 "pragma:"
25059 msgstr ""
25060
25061 #. type: Plain text
25062 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
25063 #: opensuse-tumbleweed
25064 msgid ""
25065 "There\\*(Aqs a corresponding CW<\\*(C`no\\*(C'> declaration that unimports "
25066 "meanings imported by CW<\\*(C`use\\*(C'>, i.e., it calls CW<\\*(C`Module-"
25067 "E<gt>unimport(LIST)\\*(C'> instead of \\&CW<\\*(C`import\\*(C'>. It behaves "
25068 "just as CW<\\*(C`import\\*(C'> does with VERSION, an omitted or empty LIST, "
25069 "or no unimport method being found."
25070 msgstr ""
25071
25072 #. type: Plain text
25073 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
25074 #: opensuse-tumbleweed
25075 msgid ""
25076 "Lexically enables all features available in the requested version as defined "
25077 "by the feature pragma, disabling any features not in the requested "
25078 "version\\*(Aqs feature bundle. See feature."
25079 msgstr ""
25080
25081 #. type: Plain text
25082 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
25083 #: opensuse-tumbleweed
25084 msgid ""
25085 "This is often useful if you need to check the current Perl version before "
25086 "\\&CW<\\*(C`use\\*(C'>ing library modules that won\\*(Aqt work with older "
25087 "versions of Perl. (We try not to do this more than we have to.)"
25088 msgstr ""
25089
25090 #. type: Plain text
25091 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
25092 #: opensuse-tumbleweed
25093 msgid ""
25094 "Care should be taken when using the CW<\\*(C`no VERSION\\*(C'> form, as it "
25095 "is I<only> meant to be used to assert that the running Perl is of an earlier "
25096 "version than its argument and I<not> to undo the feature-enabling side "
25097 "effects of CW<\\*(C`use VERSION\\*(C'>."
25098 msgstr ""
25099
25100 #. type: Plain text
25101 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
25102 #: opensuse-tumbleweed
25103 msgid ""
25104 "Since Perl 5.8.0, if the first two elements of the list are "
25105 "\\&CW<\\*(C`undef\\*(C'>, the B<utime>\\|(2) syscall from your C library is "
25106 "called with a null second argument. On most systems, this will set the "
25107 "file\\*(Aqs access and modification times to the current time (i.e., "
25108 "equivalent to the example above) and will work even on files you don\\*(Aqt "
25109 "own provided you have write permission:"
25110 msgstr ""
25111
25112 #. type: Plain text
25113 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
25114 #: opensuse-tumbleweed
25115 msgid ""
25116 "On systems that support B<futimes>\\|(2), you may pass filehandles among the "
25117 "files. On systems that don\\*(Aqt support B<futimes>\\|(2), passing "
25118 "filehandles raises an exception. Filehandles must be passed as globs or "
25119 "glob references to be recognized; barewords are considered filenames."
25120 msgstr ""
25121
25122 #. type: Plain text
25123 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
25124 #: opensuse-tumbleweed
25125 msgid ""
25126 "Called in list context, returns a list consisting of all the value of the "
25127 "named hash, or in Perl 5.12 or later, the values of an array. Perl releases "
25128 "prior to 5.12 will produce a syntax error if you try to use an array "
25129 "argument. In scalar context, returns the number of keys or indices."
25130 msgstr ""
25131
25132 #. type: Plain text
25133 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
25134 #: opensuse-tumbleweed
25135 msgid "Array entries are returned in the order of lowest index first."
25136 msgstr ""
25137
25138 #. type: Plain text
25139 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
25140 #: opensuse-tumbleweed
25141 msgid ""
25142 "Hash entries are returned in an apparently random order. The actual random "
25143 "order is specific to a given hash; the exact same series of operations on "
25144 "two hashes may result in a different order for each hash. Any insertion "
25145 "into the hash may change the order, as will any deletion, with the exception "
25146 "that the most recent key returned by CW<\\*(C`each\\*(C'> or "
25147 "\\&CW<\\*(C`keys\\*(C'> may be deleted without changing the order. So long "
25148 "as a given hash is unmodified you may rely on \\&CW<\\*(C`keys\\*(C'>, "
25149 "CW<\\*(C`values\\*(C'> and \\&CW<\\*(C`each\\*(C'> to repeatedly return the "
25150 "same order as each other. See \"Algorithmic Complexity Attacks\" in perlsec "
25151 "for details on why hash order is randomized. Aside from the guarantees "
25152 "provided here, the exact details of Perl\\*(Aqs hash algorithm and the hash "
25153 "traversal order are subject to change in any release of Perl. Tied hashes "
25154 "may behave differently to Perl\\*(Aqs hashes with respect to changes in "
25155 "order on insertion and deletion of items."
25156 msgstr ""
25157
25158 #. type: Plain text
25159 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
25160 #: opensuse-tumbleweed
25161 msgid ""
25162 "As a side effect, calling CW<\\*(C`values\\*(C'> resets the HASH or "
25163 "ARRAY\\*(Aqs internal iterator (see CW<\\*(C`each\\*(C'>) before yielding "
25164 "the values. In particular, calling CW<\\*(C`values\\*(C'> in void context "
25165 "resets the iterator with no other overhead."
25166 msgstr ""
25167
25168 #. type: Plain text
25169 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
25170 #: opensuse-tumbleweed
25171 msgid ""
25172 "To transform a bit vector into a string or list of 0\\*(Aqs and 1\\*(Aqs, "
25173 "use these:"
25174 msgstr ""
25175
25176 #. type: Plain text
25177 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
25178 #: opensuse-tumbleweed
25179 msgid ""
25180 "\\&CW<\\*(C`wantarray\\*(C'>\\*(Aqs result is unspecified in the top level "
25181 "of a file, in a CW<\\*(C`BEGIN\\*(C'>, CW<\\*(C`UNITCHECK\\*(C'>, "
25182 "CW<\\*(C`CHECK\\*(C'>, CW<\\*(C`INIT\\*(C'> or CW<\\*(C`END\\*(C'> block, or "
25183 "in a CW<\\*(C`DESTROY\\*(C'> method."
25184 msgstr ""
25185
25186 #. type: Plain text
25187 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
25188 #: opensuse-tumbleweed
25189 msgid ""
25190 "By default, the exception derived from the operand LIST is stringified and "
25191 "printed to CW<\\*(C`STDERR\\*(C'>. This behaviour can be altered by "
25192 "installing a CW<$SIG{_\\|_WARN_\\|_}> handler. If there is such a handler "
25193 "then no message is automatically printed; it is the handler\\*(Aqs "
25194 "responsibility to deal with the exception as it sees fit (like, for "
25195 "instance, converting it into a \\&CW<\\*(C`die\\*(C'>). Most handlers must "
25196 "therefore arrange to actually display the warnings that they are not "
25197 "prepared to deal with, by calling \\&CW<\\*(C`warn\\*(C'> again in the "
25198 "handler. Note that this is quite safe and will not produce an endless loop, "
25199 "since CW<\\*(C`_\\|_WARN_\\|_\\*(C'> hooks are not called from inside one."
25200 msgstr ""
25201
25202 #. type: Plain text
25203 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
25204 #: opensuse-tumbleweed
25205 msgid ""
25206 "You will find this behavior is slightly different from that of "
25207 "\\&CW<$SIG{_\\|_DIE_\\|_}> handlers (which don\\*(Aqt suppress the error "
25208 "text, but can instead call CW<\\*(C`die\\*(C'> again to change it)."
25209 msgstr ""
25210
25211 #. type: Plain text
25212 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
25213 #: opensuse-tumbleweed
25214 msgid ""
25215 "The \"else if\" keyword is spelled CW<\\*(C`elsif\\*(C'> in Perl. "
25216 "There\\*(Aqs no CW<\\*(C`elif\\*(C'> or CW<\\*(C`else if\\*(C'> either. It "
25217 "does parse CW<\\*(C`elseif\\*(C'>, but only to warn you about not using it."
25218 msgstr ""
25219
25220 #. type: TH
25221 #: fedora-rawhide
25222 #, no-wrap
25223 msgid "2026-03-30"
25224 msgstr ""
25225
25226 #. type: TH
25227 #: fedora-rawhide
25228 #, no-wrap
25229 msgid "perl v5.42.2"
25230 msgstr ""
25231
25232 #. type: TH
25233 #: mageia-cauldron
25234 #, no-wrap
25235 msgid "2025-06-24"
25236 msgstr ""
25237
25238 #. type: TH
25239 #: mageia-cauldron
25240 #, no-wrap
25241 msgid "perl v5.42.0"
25242 msgstr ""