Debian Codegraph @

po/pl/archive/man1/perlop.1.po

raw
1 # Polish translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Przemek Borys <[email protected]>, 1999.
5 # Wojtek Kotwica <[email protected]>, 1999-2000.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: manpages-l10n\n"
9 "POT-Creation-Date: 2025-02-16 05:40+0100\n"
10 "PO-Revision-Date: 2000-10-22 16:15+0200\n"
11 "Last-Translator: Wojtek Kotwica <[email protected]>\n"
12 "Language-Team: Polish <[email protected]>\n"
13 "Language: pl\n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17 "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
18 "|| n%100>=20) ? 1 : 2);\n"
19
20 #. type: TH
21 #: perlop.1:128
22 #, no-wrap
23 msgid "PERLOP"
24 msgstr "PERLOP"
25
26 #. type: TH
27 #: perlop.1:128
28 #, no-wrap
29 msgid "perl 5.004, patch 01"
30 msgstr "perl 5.004, patch 01"
31
32 #. type: TH
33 #: perlop.1:128
34 #, no-wrap
35 msgid "7/Jun/97"
36 msgstr "7/06/97"
37
38 #. type: TH
39 #: perlop.1:128
40 #, no-wrap
41 msgid "Perl Programmer's Guide"
42 msgstr "Podręcznik programisty perla"
43
44 #. type: IX
45 #: perlop.1:129
46 #, no-wrap
47 msgid "Title"
48 msgstr "Title"
49
50 #. type: IX
51 #: perlop.1:129
52 #, no-wrap
53 msgid "PERLOP 1"
54 msgstr "PERLOP 1"
55
56 #. type: IX
57 #: perlop.1:131
58 #, no-wrap
59 msgid "Name"
60 msgstr "Name"
61
62 #. type: ds C+
63 #: perlop.1:134
64 #, no-wrap
65 msgid "C\\v'-.1v'\\h'-1p'\\s-2+\\h'-1p'+\\s0\\v'.1v'\\h'-1p'"
66 msgstr "C\\v'-.1v'\\h'-1p'\\s-2+\\h'-1p'+\\s0\\v'.1v'\\h'-1p'"
67
68 #. type: ds :
69 #: perlop.1:186
70 #, no-wrap
71 msgid "\\k:\\h'-(\\n(.wu*8/10-\\*(#H+.1m+\\*(#F)'\\v'-\\*(#V'\\z.\\h'.2m+\\*(#F'.\\h'|\\n:u'\\v'\\*(#V'"
72 msgstr "\\k:\\h'-(\\n(.wu*8/10-\\*(#H+.1m+\\*(#F)'\\v'-\\*(#V'\\z.\\h'.2m+\\*(#F'.\\h'|\\n:u'\\v'\\*(#V'"
73
74 #. type: ds 8
75 #: perlop.1:187
76 #, no-wrap
77 msgid "\\h'\\*(#H'\\(*b\\h'-\\*(#H'"
78 msgstr "\\h'\\*(#H'\\(*b\\h'-\\*(#H'"
79
80 #. type: ds v
81 #: perlop.1:188
82 #, no-wrap
83 msgid "\\k:\\h'-(\\n(.wu*9/10-\\*(#H)'\\v'-\\*(#V'\\*(#[\\s-4v\\s0\\v'\\*(#V'\\h'|\\n:u'\\*(#]"
84 msgstr "\\k:\\h'-(\\n(.wu*9/10-\\*(#H)'\\v'-\\*(#V'\\*(#[\\s-4v\\s0\\v'\\*(#V'\\h'|\\n:u'\\*(#]"
85
86 #. type: ds _
87 #: perlop.1:189
88 #, no-wrap
89 msgid "\\k:\\h'-(\\n(.wu*9/10-\\*(#H+(\\*(#F*2/3))'\\v'-.4m'\\z\\(hy\\v'.4m'\\h'|\\n:u'"
90 msgstr "\\k:\\h'-(\\n(.wu*9/10-\\*(#H+(\\*(#F*2/3))'\\v'-.4m'\\z\\(hy\\v'.4m'\\h'|\\n:u'"
91
92 #. type: ds .
93 #: perlop.1:190
94 #, no-wrap
95 msgid "\\k:\\h'-(\\n(.wu*8/10)'\\v'\\*(#V*4/10'\\z.\\v'-\\*(#V*4/10'\\h'|\\n:u'"
96 msgstr "\\k:\\h'-(\\n(.wu*8/10)'\\v'\\*(#V*4/10'\\z.\\v'-\\*(#V*4/10'\\h'|\\n:u'"
97
98 #. type: ds 3
99 #: perlop.1:191
100 #, no-wrap
101 msgid "\\*(#[\\v'.2m'\\s-2\\&3\\s0\\v'-.2m'\\*(#]"
102 msgstr "\\*(#[\\v'.2m'\\s-2\\&3\\s0\\v'-.2m'\\*(#]"
103
104 #. type: ds o
105 #: perlop.1:192
106 #, no-wrap
107 msgid "\\k:\\h'-(\\n(.wu+\\w'\\(de'u-\\*(#H)/2u'\\v'-.3n'\\*(#[\\z\\(de\\v'.3n'\\h'|\\n:u'\\*(#]"
108 msgstr "\\k:\\h'-(\\n(.wu+\\w'\\(de'u-\\*(#H)/2u'\\v'-.3n'\\*(#[\\z\\(de\\v'.3n'\\h'|\\n:u'\\*(#]"
109
110 #. type: ds d-
111 #: perlop.1:193
112 #, no-wrap
113 msgid "\\h'\\*(#H'\\(pd\\h'-\\w'~'u'\\v'-.25m'I<\\(hy>\\v'.25m'\\h'-\\*(#H'"
114 msgstr "\\h'\\*(#H'\\(pd\\h'-\\w'~'u'\\v'-.25m'I<\\(hy>\\v'.25m'\\h'-\\*(#H'"
115
116 #. type: ds D-
117 #: perlop.1:194
118 #, no-wrap
119 msgid "D\\k:\\h'-\\w'D'u'\\v'-.11m'\\z\\(hy\\v'.11m'\\h'|\\n:u'"
120 msgstr "D\\k:\\h'-\\w'D'u'\\v'-.11m'\\z\\(hy\\v'.11m'\\h'|\\n:u'"
121
122 #. type: ds th
123 #: perlop.1:195
124 #, no-wrap
125 msgid "\\*(#[\\v'.3m'\\s+1I\\s-1\\v'-.3m'\\h'-(\\w'I'u*2/3)'\\s-1o\\s+1\\*(#]"
126 msgstr "\\*(#[\\v'.3m'\\s+1I\\s-1\\v'-.3m'\\h'-(\\w'I'u*2/3)'\\s-1o\\s+1\\*(#]"
127
128 #. type: ds Th
129 #: perlop.1:196
130 #, no-wrap
131 msgid "\\*(#[\\s+2I\\s-2\\h'-\\w'I'u*3/5'\\v'-.3m'o\\v'.3m'\\*(#]"
132 msgstr "\\*(#[\\s+2I\\s-2\\h'-\\w'I'u*3/5'\\v'-.3m'o\\v'.3m'\\*(#]"
133
134 #. type: ds ae
135 #: perlop.1:197
136 #, no-wrap
137 msgid "a\\h'-(\\w'a'u*4/10)'e"
138 msgstr "a\\h'-(\\w'a'u*4/10)'e"
139
140 #. type: ds Ae
141 #: perlop.1:198
142 #, no-wrap
143 msgid "A\\h'-(\\w'A'u*4/10)'E"
144 msgstr "A\\h'-(\\w'A'u*4/10)'E"
145
146 #. type: ds oe
147 #: perlop.1:199
148 #, no-wrap
149 msgid "o\\h'-(\\w'o'u*4/10)'e"
150 msgstr "o\\h'-(\\w'o'u*4/10)'e"
151
152 #. type: ds Oe
153 #: perlop.1:200
154 #, no-wrap
155 msgid "O\\h'-(\\w'O'u*4/10)'E"
156 msgstr "O\\h'-(\\w'O'u*4/10)'E"
157
158 #. type: IX
159 #: perlop.1:225 perlop.1:228 perlop.1:264
160 #, no-wrap
161 msgid "Header"
162 msgstr "Header"
163
164 #. type: IX
165 #: perlop.1:225
166 #, no-wrap
167 msgid "NAME"
168 msgstr "NAZWA"
169
170 #. type: Plain text
171 #: perlop.1:227
172 msgid "perlop - Perl operators and precedence"
173 msgstr "perlop - operatory perla i priorytety"
174
175 #. type: IX
176 #: perlop.1:228
177 #, no-wrap
178 msgid "SYNOPSIS"
179 msgstr "STRESZCZENIE"
180
181 #. type: Plain text
182 #: perlop.1:234
183 msgid ""
184 "Perl operators have the following associations and precedences, listed from "
185 "highest to lowest. Note that all operators borrowed from C preserve their "
186 "associations, although the conventions are a bit screwed up. (This makes it "
187 "easier for C programmers to learn Perl.) With a few exceptions, they all "
188 "operate on scalar values, not arrays."
189 msgstr ""
190 "Operatory perla mają następujące związki i priorytety, wymienione od "
191 "najwyższych do najniższych. Zauważ, że wszystkie operatory pożyczone z C "
192 "zachowują tamtejsze związki, choć te konwencje są trochę skopane. (Ułatwia "
193 "to naukę perla programistom C.) Poza paroma wyjątkami, wszystkie one operują "
194 "na wartościach skalarnych, nie tablicowych."
195
196 #. type: Plain text
197 #: perlop.1:260
198 msgid ""
199 "\\& left expressions and left-side list operators \\& left -E<gt> \\& unbound "
200 "++ -- \\& right ** \\& right ! ~ \\e and unary + and - \\& left =~ !~ \\& "
201 "left * / % x \\& left + - . \\& left E<lt>E<lt> E<gt>E<gt> \\& unbound named "
202 "unary operators \\& unbound E<lt> E<gt> E<lt>= E<gt>= lt gt le ge \\& unbound "
203 "== != E<lt>=E<gt> eq ne cmp \\& left & \\& left | ^ \\& left && \\& left || "
204 "\\& unbound .. ... \\& right ?: \\& right = += -= *= etc. \\& left , =E<gt> "
205 "\\& unbound right list operators \\& right not \\& left and \\& left or xor"
206 msgstr ""
207 "\\& lewe wyrażenia i lewostronne operatory list \\& lewe -E<gt> \\& "
208 "niezwiązane ++ -- \\& prawe ** \\& prawe ! ~ \\e and jednoargumentowy + and - "
209 "\\& lewe =~ !~ \\& lewe * / % x \\& lewe + - . \\& lewe E<lt>E<lt> "
210 "E<gt>E<gt> \\& niezwiązane nazwane operatory jednoargumentowe \\& niezwiązane "
211 "E<lt> E<gt> E<lt>= E<gt>= lt gt le ge \\& niezwiązane == != E<lt>=E<gt> eq ne "
212 "cmp \\& lewe & \\& lewe | ^ \\& lewe && \\& lewe || \\& niezwiązane .. ... "
213 "\\& prawe ?: \\& prawe = += -= *= etc. \\& lewe , =E<gt> \\& niezwiązane "
214 "prawostronne operatory list \\& prawe not \\& lewe and \\& lewe or xor"
215
216 #. type: Plain text
217 #: perlop.1:263
218 msgid ""
219 "In the following sections, these operators are described in order of "
220 "precedence."
221 msgstr ""
222 "W następujących sekcjach, operatory te są opisane w kolejności priorytetowej."
223
224 #. type: IX
225 #: perlop.1:264
226 #, no-wrap
227 msgid "DESCRIPTION"
228 msgstr "OPIS"
229
230 #. type: IX
231 #: perlop.1:266 perlop.1:321 perlop.1:335 perlop.1:358 perlop.1:365 perlop.1:393
232 #: perlop.1:412 perlop.1:441 perlop.1:448 perlop.1:457 perlop.1:489 perlop.1:514
233 #: perlop.1:537 perlop.1:542 perlop.1:549 perlop.1:555 perlop.1:586 perlop.1:659
234 #: perlop.1:685 perlop.1:731 perlop.1:744 perlop.1:759 perlop.1:763 perlop.1:768
235 #: perlop.1:776 perlop.1:789 perlop.1:844 perlop.1:1281 perlop.1:1462
236 #: perlop.1:1484 perlop.1:1506
237 #, no-wrap
238 msgid "Subsection"
239 msgstr "Subsection"
240
241 #. type: IX
242 #: perlop.1:266
243 #, no-wrap
244 msgid "Terms and List Operators (Leftward)"
245 msgstr ""
246
247 #. type: Plain text
248 #: perlop.1:274
249 msgid ""
250 "An expression has the highest precedence in Perl. These are variables, "
251 "quotes, quote-like operators, any expression in parentheses, and any function "
252 "whose arguments are enclosed in parentheses. In fact, there are no real "
253 "functions in Perl in the general sense, only list operators and unary "
254 "operators, which behave like functions because you put parentheses around "
255 "them. These are described in the B<perlfunc>(1) manual page."
256 msgstr ""
257 "Wyrażenie ma w perlu najwyższy priorytet. Są to zmienne, cytaty, operatory w "
258 "rodzaju cytatów, dowolne wyrażenie w nawiasach, i dowolna funkcja, której "
259 "argumenty są umieszczone w nawiasach. W rzeczywistości, w perlu nie ma tak "
260 "naprawdę funkcji w ogólnym sensie, są tylko operatory listowe i operatory "
261 "jednoargumentowe, zachowujące się jak funkcje, bo ustawiasz wokół nich "
262 "nawiasy. Są one opisane w podręczniku B<perlfunc>(1)."
263
264 #. type: Plain text
265 #: perlop.1:279
266 msgid ""
267 "If any list operator (I<print()> etc.), or any unary operator (I<chdir()>) "
268 "has a left parenthesis after it, then the operator and arguments in the "
269 "parenthesis are taken with the highest precedence, just like in a normal "
270 "function call."
271 msgstr ""
272 "Jeśli dowolny operator listowy (I<print()> itp.), lub dowolny operator "
273 "jednoargumentowy (I<chdir()>) ma za sobą lewy nawias, to operator i argumenty "
274 "z nawiasów są brane w najwyższym priorytecie, tak jak przy normalnym "
275 "wywołaniu funkcji."
276
277 #. type: Plain text
278 #: perlop.1:285
279 msgid ""
280 "When parentheses are not specified, the precedence of list operators like "
281 "CW<print>, CW<sort>, or CW<chmod> is either very high or very low, depending "
282 "on whether you look at the left side or the right side of the operator. For "
283 "example, in"
284 msgstr ""
285 "Gdy nawiasy nie są podane, priorytet operatorów listowych w rodzaju "
286 "CW<print>, CW<sort>, lub CW<chmod> jest albo bardzo wysoki, albo bardzo "
287 "niski, zależnie od tego czy patrzysz na lewą stronę, czy na prawą stronę "
288 "operatora. Na przykład w"
289
290 #. type: Plain text
291 #: perlop.1:289
292 msgid "\\& @ary = (1, 3, sort 4, 2); \\& print @ary; # print 1324"
293 msgstr "\\& @ary = (1, 3, sort 4, 2); \\& print @ary; # drukuje 1324"
294
295 #. type: Plain text
296 #: perlop.1:295
297 msgid ""
298 "commas on the right side of sort are evaluated before sorting, but commas on "
299 "the left are evaluated afterward. In other words, list operators eat up any "
300 "arguments that follow them, and then behave like a simple expression that "
301 "respects the expression before it. Note that you have to be careful with the "
302 "parentheses:"
303 msgstr ""
304 "przecinki po prawej stronie sort-a są analizowane przed sortowaniem, lecz "
305 "przecinki po lewej są analizowane później. Innymi słowy, operatory listowe "
306 "pożerają wszystkie argumenty, które za nimi następują, a potem zachowują się "
307 "jak proste wyrażenie, szanujące wyrażenie poprzedzające. Zauważ, że musisz "
308 "być ostrożny z nawiasami:"
309
310 #. type: Plain text
311 #: perlop.1:300
312 msgid ""
313 "\\& # Exit before printing: \\& print($foo, exit); # probably not what you "
314 "want \\& print $foo, exit; # neither"
315 msgstr ""
316 "\\& # Wykonują exit przed drukowaniem: \\& print($foo, exit); # raczej nie "
317 "to, czego chcesz \\& print $foo, exit; # ani to"
318
319 #. type: Plain text
320 #: perlop.1:306
321 msgid ""
322 "\\& # These print before executing exit \\& (print $foo), exit; # This is "
323 "what you want \\& print($foo), exit; # this too \\& print ($foo), exit; # "
324 "even this"
325 msgstr ""
326 "\\& # Te drukują przed wykonaniem exit \\& (print $foo), exit; # To jest to "
327 "czego chcesz \\& print($foo), exit; # to też \\& print ($foo), exit; # nawet "
328 "to"
329
330 #. type: Plain text
331 #: perlop.1:308
332 msgid "Also note that"
333 msgstr "Zauważ też, że"
334
335 #. type: Plain text
336 #: perlop.1:311
337 msgid "\\& print ($foo & 255) + 1, \"\\en\";"
338 msgstr "\\& print ($foo & 255) + 1, \"\\en\";"
339
340 #. type: Plain text
341 #: perlop.1:314
342 msgid ""
343 "probably doesn't do what you expect. See the section on named unary operators."
344 msgstr ""
345 "prawdopodobnie nie robi tego, co oczekujesz. Zobacz sekcję o nazwanych "
346 "operatorach jednoargumentowych."
347
348 #. type: Plain text
349 #: perlop.1:318
350 msgid ""
351 "Additionally, the constructs CW<do {}> and CW<eval {}> are also processed as "
352 "expressions, as are calls to subroutines and methods, and the anonymous "
353 "constructors CW<[]> and CW<{}>."
354 msgstr ""
355 "Ponadto, jako wyrażenia przetwarzane są też konstrukcje CW<do {}> i CW<eval {}"
356 ">, a także wywołania podprocedur i metod, oraz anonimowe konstruktory CW<[]> "
357 "i CW<{}>."
358
359 #. type: Plain text
360 #: perlop.1:320
361 msgid ""
362 "See also the section on quoting operators, and the section on I/O operators."
363 msgstr ""
364 "Zobacz też sekcję o operatorach cytowania, a także sekcję o operatorach I/O."
365
366 #. type: IX
367 #: perlop.1:321
368 #, no-wrap
369 msgid "The Arrow Operator"
370 msgstr ""
371
372 #. type: Plain text
373 #: perlop.1:328
374 msgid ""
375 "As in C and \\*(C+, \\*(L\"CW<-E<gt>>\\*(R\" is the dereferencing operator. "
376 "If the right side is an element of CW<[...]> or CW<{...}>, then the left side "
377 "must be a hard or symbolic reference to an array or associative array (or a "
378 "place that is able to hold a hard reference if it is an lvalue (assignable)). "
379 "See the B<perlref>(1) page."
380 msgstr ""
381 "Podobnie jak w C i \\*(C+, \\*(L\"CW<-E<gt>>\\*(R\" jest operatorem "
382 "dereferencji. Jeśli prawa strona to element CW<[...]> lub CW<{...}>, to lewa "
383 "strona musi być twardą, lub symboliczną referencją do tablicy, lub tablicy "
384 "asocjacyjnej (lub miejsca, które jest w stanie przechowywać twardą "
385 "referencję, jeśli jest to lwartość (przypisywalna)). Zobacz stronę "
386 "B<perlref>(1)."
387
388 #. type: Plain text
389 #: perlop.1:334
390 msgid ""
391 "Otherwise, the right side is a method name, or a simple scalar variable "
392 "containing the method name, and the left side must be either an object (a "
393 "blessed reference) or a class name (i.e. a package name). See the "
394 "B<perlobj>(1) page."
395 msgstr ""
396 "W przeciwnym wypadku, prawa strona jest nazwą metody, lub prostą zmienną "
397 "skalarną, zawierającą nazwę metody, a lewa strona musi być albo obiektem "
398 "(pobłogosławioną przez bless referencją), lub nazwą klasy (tj. nazwą "
399 "pakietu). Zobacz stronę B<perlobj>(1)."
400
401 #. type: IX
402 #: perlop.1:335
403 #, no-wrap
404 msgid "Auto-increment and Auto-decrement"
405 msgstr ""
406
407 #. type: Plain text
408 #: perlop.1:340
409 msgid ""
410 "\\*(L\"++\\*(R\" and \\*(L\"--\\*(R\" work as in C. That is, if they are "
411 "placed before a variable, they increment or decrement the variable before "
412 "returning a value, and if they are placed after the variable, they increment "
413 "or decrement it after returning a value."
414 msgstr ""
415 "\\*(L\"++\\*(R\" i \\*(L\"--\\*(R\" działają jak w C. To znaczy, jeśli są "
416 "umieszczone przed zmienną, to inkrementują lub dekrementują zmienną przed "
417 "zwróceniem wartości, a jeśli są umieszczone za zmienną, to powodują "
418 "inkrementację lub dekrementację po zwróceniu wartości."
419
420 #. type: Plain text
421 #: perlop.1:349
422 msgid ""
423 "The auto-increment operator has a few extra things built in. If you're "
424 "incrementing a variable that's numeric, or that's ever been used in a numeric "
425 "context, you'll get normal incrementing. However, if the variable has only "
426 "been used in string contexts, and its value is not null and matches the "
427 "pattern CW</^[a-zA-Z]*[0-9]*$/>, then you'll increment as if it were a "
428 "string, preserving every character in the range, with carry:"
429 msgstr ""
430 "Operator auto-inkrementacji ma wbudowanych parę dodatkowych rzeczy. Jeśli "
431 "inkrementujesz zmienną, która jest numeryczna, lub która była kiedykolwiek "
432 "użyta w kontekście numerycznym, to uzyskasz normalną inkrementację. Jednak "
433 "jeśli zmienna była używana tylko w kontekstach łańcuchowych, a jej wartość "
434 "nie jest nullem i odpowiada wzorcowi CW</^[a-zA-Z]*[0-9]*$/>, to "
435 "inkrementacja jest dokonywana jak na łańcuchu, zachowując każdy znak w "
436 "zakresie, z przeniesieniem:"
437
438 #. type: Plain text
439 #: perlop.1:355
440 msgid ""
441 "\\& print ++($foo = '99'); # prints '100' \\& print ++($foo = 'a0'); # prints "
442 "'a1' \\& print ++($foo = 'Az'); # prints 'Ba' \\& print ++($foo = 'zz'); # "
443 "prints 'aaa'"
444 msgstr ""
445 "\\& print ++($foo = '99'); # drukuje '100' \\& print ++($foo = 'a0'); # "
446 "drukuje 'a1' \\& print ++($foo = 'Az'); # drukuje 'Ba' \\& print ++($foo = "
447 "'zz'); # drukuje 'aaa'"
448
449 #. type: Plain text
450 #: perlop.1:357
451 msgid "The autodecrement operator does not have these properties."
452 msgstr "Operator autodekrementacji nie ma tych właściwości."
453
454 #. type: IX
455 #: perlop.1:358
456 #, no-wrap
457 msgid "Exponentiation"
458 msgstr ""
459
460 #. type: Plain text
461 #: perlop.1:364
462 msgid ""
463 "Binary \\*(L\"**\\*(R\" is the exponentiation operator. Note that it is more "
464 "cooperative than unary minus, so -2**4 is -(2**4), not (-2)**4. (This is "
465 "implemented using the C function I<pow>\\|(3) , which actually operates on "
466 "double-precision numbers.)"
467 msgstr ""
468 "Binarny \\*(L\"**\\*(R\" jest operatorem potęgowania. Zauważ, że łączy "
469 "mocniej niż jednoargumentowy minus, więc -2**4 to -(2**4), a nie (-2)**4. "
470 "(Jest to zaimplementowane przy użyciu funkcji I<pow>\\|(3) z C, która w "
471 "rzeczywistości działa na liczbach typu podwójnej precyzji.)"
472
473 #. type: IX
474 #: perlop.1:365
475 #, no-wrap
476 msgid "Symbolic Unary Operators"
477 msgstr ""
478
479 #. type: Plain text
480 #: perlop.1:369
481 msgid ""
482 "The unary \\*(L\"!\\*(R\" performs logical negation, i.e. \\*(L\"not\\*(R\". "
483 "See also CW<not> for a lower priority version."
484 msgstr ""
485 "Jednoargumentowy \\*(L\"!\\*(R\" wykonuje negację logiczną, czyli "
486 "\\*(L\"not\\*(R\". Zobacz też CW<not> dla wersji o niższym priorytecie."
487
488 #. type: Plain text
489 #: perlop.1:377
490 msgid ""
491 "The unary \\*(L\"-\\*(R\" performs arithmetic negation on a numeric operand. "
492 "If the operand is an identifier, a string consisting of the minus sign and "
493 "the identifier is returned. Otherwise, if the string begins with a plus or "
494 "minus sign, a string with the opposite sign is returned. One effect of this "
495 "is that CW<-bareword> is equivalent to CW<\"-bareword\">."
496 msgstr ""
497 "Jednoargumentowy \\*(L\"-\\*(R\" dokonuje arytmetycznej negacji na "
498 "numerycznym operandzie. Jeśli operand jest identyfikatorem, zwracany jest "
499 "łańcuch składający się ze znaku minus i z identyfikatora. W przeciwnym "
500 "wypadku, jeśli łańcuch rozpoczyna się znakiem plus lub minus, zwracany jest "
501 "łańcuch z przeciwnym znakiem. Jednym z efektów tego działania jest to, że CW<-"
502 "bareword> jest równoważne CW<\"-bareword\">."
503
504 #. type: Plain text
505 #: perlop.1:380
506 msgid ""
507 "The unary \\*(L\"~\\*(R\" performs bitwise negation. (See also the section on "
508 "integer arithmetic.)"
509 msgstr ""
510 "Jednoargumentowy \\*(L\"~\\*(R\" dokonuje negacji bitowej. (Zobacz też "
511 "sekcję o arytmetyce całkowitej.)"
512
513 #. type: Plain text
514 #: perlop.1:386
515 msgid ""
516 "A single-argument \\*(L\"+\\*(R\" has no effect, even on strings. It is "
517 "useful for separating a function name from a parenthesized expression that "
518 "would otherwise be interpreted as a complete list of function arguments. (See "
519 "examples in the section on expressions and left-hand list operators.)"
520 msgstr ""
521 "Jednoargumentowy \\*(L\"+\\*(R\" nie daje żadnego efektu, nawet na "
522 "łańcuchach. Jest przydatny do rozdzielania nazwy funkcji od otoczonego "
523 "nawiasami wyrażenia, które w przeciwnym wypadku byłoby interpretowane jako "
524 "całkowita lista argumentów funkcji. (Zobacz przykłady w sekcji o wyrażeniach "
525 "i lewostronnych operatorach listowych.)"
526
527 #. type: Plain text
528 #: perlop.1:392
529 msgid ""
530 "A unary \\*(L\"\\e\\*(R\" creates a reference to whatever comes after it. See "
531 "the B<perlref>(1) manual page. Do not confuse this behavior with the behavior "
532 "of backslash in a string, although both forms have the same property of "
533 "protecting the next thing from interpretation."
534 msgstr ""
535 "Jednoargumentowy \\*(L\"\\e\\*(R\" tworzy referencję do tego, co po nim "
536 "następuje. Zobacz podręcznik B<perlref>(1). Nie myl tego zachowania z "
537 "zachowaniem w łańcuchu odwrotnego ukośnika, choć obie postacie mają tę samą "
538 "właściwość chronienia następnej rzeczy od interpretacji."
539
540 #. type: IX
541 #: perlop.1:393
542 #, no-wrap
543 msgid "Binding Operators"
544 msgstr ""
545
546 #. type: Plain text
547 #: perlop.1:405
548 msgid ""
549 "Binary \\*(L\"=~\\*(R\" combines a scalar expression with regular expression "
550 "support. Certain operations implicitly search for or change the string "
551 "CW<$_>. This operator causes such an operation to operate on another string. "
552 "The right argument is a search, substitution, or translation pattern. The "
553 "left argument is the string being searched for, instead of the default "
554 "CW<$_>. The return value indicates the success of the operation. (If the "
555 "right argument is an expression rather than a search, substitution, or "
556 "translation pattern, it is interpreted as a run-time search pattern. This may "
557 "be less efficient than an explicit search, since the pattern must be compiled "
558 "each time."
559 msgstr ""
560 "Binarny \\*(L\"=~\\*(R\" łączy wyrażenie skalarne z obsługą wyrażenia "
561 "regularnego. Pewne operacje domyślnie szukają lub zmieniają łańcuch CW<$_>. "
562 "Operator ten powoduje, że taka operacja działa na innym łańcuchu. Prawy "
563 "argument jest wzorcem przeszukiwania, podstawienia lub translacji. Lewy "
564 "argument jest przeszukiwanym łańcuchem, zamiast domyślnego CW<$_>. Wartość "
565 "zwracana określa sukces operacji. (Jeśli prawy argument jest raczej "
566 "wyrażeniem niż wzorcem przeszukiwania, podstawiania lub translacji, to jest "
567 "interpretowany jako wzorzec przeszukiwania czasu działania. Może to być mniej "
568 "efektywne niż jawne szukanie, gdyż wzorzec musi być za każdym razem "
569 "kompilowany."
570
571 #. type: Plain text
572 #: perlop.1:411
573 msgid ""
574 "Binary \\*(L\"!~\\*(R\" is similar to \\*(L\"=~\\*(R\" but the return value "
575 "is logically negated."
576 msgstr ""
577 "Binarny \\*(L\"!~\\*(R\" jest podobny do \\*(L\"=~\\*(R\" lecz wartość "
578 "zwracana jest logicznie negowana."
579
580 #. type: IX
581 #: perlop.1:412
582 #, no-wrap
583 msgid "Multiplicative Operators"
584 msgstr ""
585
586 #. type: Plain text
587 #: perlop.1:414
588 msgid "Binary \\*(L\"*\\*(R\" multiplies two numbers."
589 msgstr "Binarny \\*(L\"*\\*(R\" mnoży dwie liczby."
590
591 #. type: Plain text
592 #: perlop.1:416
593 msgid "Binary \\*(L\"/\\*(R\" divides two numbers."
594 msgstr "Binarny \\*(L\"/\\*(R\" dzieli dwie liczby."
595
596 #. type: Plain text
597 #: perlop.1:424
598 msgid ""
599 "Binary \\*(L\"%\\*(R\" computes the remainder (modulo) of two numbers. With "
600 "integer operands CW<$a> and CW<$b>: if CW<$b> is positive, then CW<$a % $b> "
601 "is CW<$a> minus the largest multiple of CW<$b> that is not greater than "
602 "CW<$a>. If CW<$b> is negative, then CW<$a % $b> is CW<$a> minus the smallest "
603 "multiple of CW<$b> that is not less than CW<$a> (i.e. the result will be less "
604 "than or equal to zero)."
605 msgstr ""
606 "Binarny \\*(L\"%\\*(R\" oblicza resztę (modulo) z dwóch liczb. Z całkowitymi "
607 "operandami CW<$a> i CW<$b>: jeśli CW<$b> jest dodatnie, to CW<$a % $b> to "
608 "CW<$a> minus największa wielokrotność CW<$b>, która nie jest większa od "
609 "CW<$a>. Jeśli CW<$b> jest ujemne, to CW<$a % $b> to CW<$a> minus najmniejsza "
610 "wielokrotność CW<$b>, która nie jest mniejsza niż CW<$a> (np. wynik będzie "
611 "mniejszy lub równy od zera)."
612
613 #. type: Plain text
614 #: perlop.1:429
615 msgid ""
616 "Binary \\*(L\"x\\*(R\" is the repetition operator. In scalar context, it "
617 "returns a string consisting of the left operand repeated a number of times "
618 "specified in the right. In list context, if the left operand is a "
619 "parenthesized list, the list is repeated."
620 msgstr ""
621 "Binarny \\*(L\"x\\*(R\" jest operatorem powtórzenia. W kontekście skalarnym, "
622 "zwraca łańcuch składający się z lewego operanda, powtórzonego tyle razy, ile "
623 "podano w prawym. W kontekście listowym, jeśli lewy operand jest listą w "
624 "nawiasach, powtarzana jest lista."
625
626 #. type: Plain text
627 #: perlop.1:432
628 msgid "\\& print '-' x 80; # print a line of dashes"
629 msgstr "\\& print '-' x 80; # wydrukuj wiersz kresek"
630
631 #. type: Plain text
632 #: perlop.1:435
633 msgid "\\& print \"\\et\" x ($tab/8), ' ' x ($tab%8); # tabulate through"
634 msgstr "\\& print \"\\et\" x ($tab/8), ' ' x ($tab%8); # tabuluj poprzez"
635
636 #. type: Plain text
637 #: perlop.1:439
638 msgid ""
639 "\\& @ones = (1) x 80; # list of 80 ones \\& @ones = (5) x @ones; # set all "
640 "elements to 5"
641 msgstr ""
642 "\\& @ones = (1) x 80; # lista 80 jedynek \\& @ones = (5) x @ones; # ustaw "
643 "wszystkie elementy na 5"
644
645 #. type: IX
646 #: perlop.1:441
647 #, no-wrap
648 msgid "Additive Operators"
649 msgstr ""
650
651 #. type: Plain text
652 #: perlop.1:443
653 msgid "Binary \\*(L\"+\\*(R\" returns the sum of two numbers."
654 msgstr "Binarny \\*(L\"+\\*(R\" zwraca sumę dwóch liczb."
655
656 #. type: Plain text
657 #: perlop.1:445
658 msgid "Binary \\*(L\"-\\*(R\" returns the difference of two numbers."
659 msgstr "Binarny \\*(L\"-\\*(R\" zwraca różnicę dwóch liczb."
660
661 #. type: Plain text
662 #: perlop.1:447
663 msgid "Binary \\*(L\".\\*(R\" concatenates strings."
664 msgstr "Binarny \\*(L\".\\*(R\" łączy (konkatenuje) łańcuchy."
665
666 #. type: IX
667 #: perlop.1:448
668 #, no-wrap
669 msgid "Shift Operators"
670 msgstr ""
671
672 #. type: Plain text
673 #: perlop.1:452
674 msgid ""
675 "Binary \\*(L\"E<lt>E<lt>\\*(R\" returns the value of its left argument, "
676 "shifted left by the number of bits given by the right argument. The arguments "
677 "should be integers. (See also the section on integer arithmetic.)"
678 msgstr ""
679 "Binarny \\*(L\"E<lt>E<lt>\\*(R\" zwraca wartość swojego lewego argumentu, "
680 "przesuniętego w lewo o ilość bitów, podaną w prawym argumencie. Argumenty "
681 "powinny być liczbami całkowitymi. (Zobacz też sekcję o arytmetyce całkowitej.)"
682
683 #. type: Plain text
684 #: perlop.1:456
685 msgid ""
686 "Binary \\*(L\"E<gt>E<gt>\\*(R\" returns the value of its left argument "
687 "shifted right by the number of bits given by the right argument. The "
688 "arguments should be integers."
689 msgstr ""
690 "Binarny \\*(L\"E<gt>E<gt>\\*(R\" zwraca wartość swojego lewego argumentu, "
691 "przesuniętego w prawo o ilość bitów, podaną w prawym argumencie. Argumenty "
692 "powinny być liczbami całkowitymi."
693
694 #. type: IX
695 #: perlop.1:457
696 #, no-wrap
697 msgid "Named Unary Operators"
698 msgstr ""
699
700 #. type: Plain text
701 #: perlop.1:461
702 msgid ""
703 "The various named unary operators are treated as unary functions, with "
704 "optional parentheses. These include file tests, etc. See the manual page for "
705 "B<perlfunc>(1)."
706 msgstr ""
707 "Różne nazwane operatory jednoargumentowe są traktowane jak jednoargumentowe "
708 "funkcje, z opcjonalnymi nawiasami. Są to m.in testy plikowe, itp. Zobacz "
709 "podręcznik B<perlfunc>(1)."
710
711 #. type: Plain text
712 #: perlop.1:466
713 msgid ""
714 "If any list operator (I<print()> etc.) or unary operator (I<chdir()> etc.) is "
715 "followed by a left parenthesis, then the operator and arguments in the "
716 "parenthesis are taken with the highest precedence, just as in a function "
717 "call. Examples:"
718 msgstr ""
719 "Jeśli za dowolnym operatorem listowym (I<print()> itp.), lub operatorem "
720 "jednoargumentowym (I<chdir()> itp.) następuje lewy nawias, to operator i "
721 "argumenty w nawiasach są brane z najwyższym priorytetem, tak jak przy "
722 "wywołaniu funkcji. Przykłady:"
723
724 #. type: Plain text
725 #: perlop.1:472
726 msgid ""
727 "\\& chdir $foo || die; # (chdir $foo) || die \\& chdir($foo) || die; # "
728 "(chdir $foo) || die \\& chdir ($foo) || die; # (chdir $foo) || die \\& chdir "
729 "+($foo) || die; # (chdir $foo) || die"
730 msgstr ""
731 "\\& chdir $foo || die; # (chdir $foo) || die \\& chdir($foo) || die; # "
732 "(chdir $foo) || die \\& chdir ($foo) || die; # (chdir $foo) || die \\& chdir "
733 "+($foo) || die; # (chdir $foo) || die"
734
735 #. type: Plain text
736 #: perlop.1:474
737 msgid "but since * has higher precedence than ||:"
738 msgstr "lecz ponieważ * ma wyższy priorytet niż ||:"
739
740 #. type: Plain text
741 #: perlop.1:480
742 msgid ""
743 "\\& chdir $foo * 20; # chdir ($foo * 20) \\& chdir($foo) * 20; # (chdir "
744 "$foo) * 20 \\& chdir ($foo) * 20; # (chdir $foo) * 20 \\& chdir +($foo) * 20; "
745 "# chdir ($foo * 20)"
746 msgstr ""
747 "\\& chdir $foo * 20; # chdir ($foo * 20) \\& chdir($foo) * 20; # (chdir "
748 "$foo) * 20 \\& chdir ($foo) * 20; # (chdir $foo) * 20 \\& chdir +($foo) * 20; "
749 "# chdir ($foo * 20)"
750
751 #. type: Plain text
752 #: perlop.1:486
753 msgid ""
754 "\\& rand 10 * 20; # rand (10 * 20) \\& rand(10) * 20; # (rand 10) * 20 \\& "
755 "rand (10) * 20; # (rand 10) * 20 \\& rand +(10) * 20; # rand (10 * 20)"
756 msgstr ""
757 "\\& rand 10 * 20; # rand (10 * 20) \\& rand(10) * 20; # (rand 10) * 20 \\& "
758 "rand (10) * 20; # (rand 10) * 20 \\& rand +(10) * 20; # rand (10 * 20)"
759
760 #. type: Plain text
761 #: perlop.1:488
762 msgid "See also the section on expressions and left-hand list operators."
763 msgstr "Zobacz też sekcję o wyrażeniach i lewostronnych operatorach listowych."
764
765 #. type: IX
766 #: perlop.1:489
767 #, no-wrap
768 msgid "Relational Operators"
769 msgstr ""
770
771 #. type: Plain text
772 #: perlop.1:492
773 msgid ""
774 "Binary \\*(L\"E<lt>\\*(R\" returns true if the left argument is numerically "
775 "less than the right argument."
776 msgstr ""
777 "Binarny \\*(L\"E<lt>\\*(R\" zwraca prawdę, jeśli lewy argument jest "
778 "numerycznie mniejszy niż prawy."
779
780 #. type: Plain text
781 #: perlop.1:495
782 msgid ""
783 "Binary \\*(L\"E<gt>\\*(R\" returns true if the left argument is numerically "
784 "greater than the right argument."
785 msgstr ""
786 "Binarny \\*(L\"E<gt>\\*(R\" zwraca prawdę, jeśli lewy argument jest "
787 "numerycznie większy niż prawy."
788
789 #. type: Plain text
790 #: perlop.1:498
791 msgid ""
792 "Binary \\*(L\"E<lt>=\\*(R\" returns true if the left argument is numerically "
793 "less than or equal to the right argument."
794 msgstr ""
795 "Binarny \\*(L\"E<lt>=\\*(R\" zwraca prawdę, jeśli lewy argument jest "
796 "numerycznie mniejszy lub równy prawemu."
797
798 #. type: Plain text
799 #: perlop.1:501
800 msgid ""
801 "Binary \\*(L\"E<gt>=\\*(R\" returns true if the left argument is numerically "
802 "greater than or equal to the right argument."
803 msgstr ""
804 "Binarny \\*(L\"E<gt>=\\*(R\" zwraca prawdę, jeśli lewy argument jest "
805 "numerycznie większy lub równy prawemu."
806
807 #. type: Plain text
808 #: perlop.1:504
809 msgid ""
810 "Binary \\*(L\"lt\\*(R\" returns true if the left argument is stringwise less "
811 "than the right argument."
812 msgstr ""
813 "Binarny \\*(L\"lt\\*(R\" zwraca prawdę, jeśli lewy argument jest łańcuchowo "
814 "mniejszy od prawego."
815
816 #. type: Plain text
817 #: perlop.1:507
818 msgid ""
819 "Binary \\*(L\"gt\\*(R\" returns true if the left argument is stringwise "
820 "greater than the right argument."
821 msgstr ""
822 "Binarny \\*(L\"gt\\*(R\" zwraca prawdę, jeśli lewy argument jest łańcuchowo "
823 "większy od prawego."
824
825 #. type: Plain text
826 #: perlop.1:510
827 msgid ""
828 "Binary \\*(L\"le\\*(R\" returns true if the left argument is stringwise less "
829 "than or equal to the right argument."
830 msgstr ""
831 "Binarny \\*(L\"le\\*(R\" zwraca prawdę, jeśli lewy argument jest łańcuchowo "
832 "mniejszy lub równy prawemu."
833
834 #. type: Plain text
835 #: perlop.1:513
836 msgid ""
837 "Binary \\*(L\"ge\\*(R\" returns true if the left argument is stringwise "
838 "greater than or equal to the right argument."
839 msgstr ""
840 "Binarny \\*(L\"ge\\*(R\" zwraca prawdę, jeśli lewy argument jest łańcuchowo "
841 "większy lub równy prawemu."
842
843 #. type: IX
844 #: perlop.1:514
845 #, no-wrap
846 msgid "Equality Operators"
847 msgstr ""
848
849 #. type: Plain text
850 #: perlop.1:517
851 msgid ""
852 "Binary \\*(L\"==\\*(R\" returns true if the left argument is numerically "
853 "equal to the right argument."
854 msgstr ""
855 "Binarny \\*(L\"==\\*(R\" zwraca prawdę, jeśli lewy argument jest numerycznie "
856 "równy prawemu."
857
858 #. type: Plain text
859 #: perlop.1:520
860 msgid ""
861 "Binary \\*(L\"!=\\*(R\" returns true if the left argument is not numerically "
862 "equal to the right argument."
863 msgstr ""
864 "Binarny \\*(L\"!=\\*(R\" zwraca prawdę, jeśli lewy argument nie jest "
865 "numerycznie równy prawemu."
866
867 #. type: Plain text
868 #: perlop.1:523
869 msgid ""
870 "Binary \\*(L\"E<lt>=E<gt>\\*(R\" returns -1, 0, or 1, depending on whether "
871 "the left argument is numerically less than, equal to, or greater than the "
872 "right argument."
873 msgstr ""
874 "Binarny \\*(L\"E<lt>=E<gt>\\*(R\" zwraca -1, 0, lub 1, zależnie od tego czy "
875 "lewy argument jest numerycznie mniejszy, równy, lub większy od prawego."
876
877 #. type: Plain text
878 #: perlop.1:526
879 msgid ""
880 "Binary \\*(L\"eq\\*(R\" returns true if the left argument is stringwise equal "
881 "to the right argument."
882 msgstr ""
883 "Binarny \\*(L\"eq\\*(R\" zwraca prawdę, jeśli lewy argument jest łańcuchowo "
884 "równy prawemu."
885
886 #. type: Plain text
887 #: perlop.1:529
888 msgid ""
889 "Binary \\*(L\"ne\\*(R\" returns true if the left argument is not stringwise "
890 "equal to the right argument."
891 msgstr ""
892 "Binarny \\*(L\"ne\\*(R\" zwraca prawdę, jeśli lewy argument nie jest "
893 "łańcuchowo równy prawemu."
894
895 #. type: Plain text
896 #: perlop.1:532
897 msgid ""
898 "Binary \\*(L\"cmp\\*(R\" returns -1, 0, or 1, depending on whether the left "
899 "argument is stringwise less than, equal to, or greater than the right "
900 "argument."
901 msgstr ""
902 "Binarny \\*(L\"cmp\\*(R\" zwraca -1, 0, lub 1, zależnie od tego, czy lewy "
903 "argument jest łańcuchowo mniejszy, równy, lub większy od prawego."
904
905 #. type: Plain text
906 #: perlop.1:536
907 msgid ""
908 "\\*(L\"lt\\*(R\", \\*(L\"le\\*(R\", \\*(L\"ge\\*(R\", \\*(L\"gt\\*(R\" i "
909 "\\*(L\"cmp\\*(R\" may use the sort order specified by the current locale "
910 "(when CW<use locale> is used). See the B<perllocale>(1) manual page."
911 msgstr ""
912 "\\*(L\"lt\\*(R\", \\*(L\"le\\*(R\", \\*(L\"ge\\*(R\", \\*(L\"gt\\*(R\" i "
913 "\\*(L\"cmp\\*(R\" mogą używać kolejności sortowania, określonej przez bieżące "
914 "locale (gdy użyte jest CW<use locale>). Zobacz podręcznik B<perllocale>(1)."
915
916 #. type: IX
917 #: perlop.1:537
918 #, no-wrap
919 msgid "Bitwise And"
920 msgstr ""
921
922 #. type: Plain text
923 #: perlop.1:541
924 msgid ""
925 "Binary \\*(L\"&\\*(R\" returns its operators, combined bitwise by the logical "
926 "AND operation. (See also the section on integer arithmetic.)"
927 msgstr ""
928 "Binarny \\*(L\"&\\*(R\" zwraca jego operatory, połączone bitowo operacją "
929 "logiczną AND. (Zobacz też sekcję o arytmetyce całkowitej.)"
930
931 #. type: IX
932 #: perlop.1:542
933 #, no-wrap
934 msgid "Bitwise Or and Exclusive Or"
935 msgstr ""
936
937 #. type: Plain text
938 #: perlop.1:545
939 msgid ""
940 "Binary \\*(L\"|\\*(R\" returns its operators, combined bitwise by the logical "
941 "OR operation. (See also the section on integer arithmetic.)"
942 msgstr ""
943 "Binarny \\*(L\"|\\*(R\" zwraca swoje operatory, połączone bitowo operacją "
944 "logiczną OR. (Zobacz też sekcję o arytmetyce całkowitej)."
945
946 #. type: Plain text
947 #: perlop.1:548
948 msgid ""
949 "Binary \\*(L\"^\\*(R\" returns its operators, combined bitwise by XOR. (See "
950 "also the section on integer arithmetic.)"
951 msgstr ""
952 "Binarny \\*(L\"^\\*(R\" zwraca swoje operatory, połączone bitowo operacją "
953 "XOR. (Zobacz też sekcję o arytmetyce całkowitej.)"
954
955 #. type: IX
956 #: perlop.1:549
957 #, no-wrap
958 msgid "C-style Logical And"
959 msgstr ""
960
961 #. type: Plain text
962 #: perlop.1:554
963 msgid ""
964 "Binary \\*(L\"&&\\*(R\" performs a logical AND operation. If the left operand "
965 "is false, the right one is not even evaluated. The scalar or list context "
966 "propagates to the right operator if it is evaluated."
967 msgstr ""
968 "Binarny \\*(L\"&&\\*(R\" dokonuje logicznej operacji AND. Jeśli lewy operand "
969 "jest fałszywy (false), to prawy nie jest nawet analizowany. Kontekst "
970 "skalarny, lub listowy propaguje do prawego operatora, jeśli jest on "
971 "analizowany."
972
973 #. type: IX
974 #: perlop.1:555
975 #, no-wrap
976 msgid "C-style Logical Or"
977 msgstr ""
978
979 #. type: Plain text
980 #: perlop.1:560
981 msgid ""
982 "Binary \\*(L\"||\\*(R\" performs a logical OR operation. That is, if the left "
983 "operand is true, the right one is not even evaluated. The scalar or list "
984 "context propagates to the right operator if it is evaluated."
985 msgstr ""
986 "Binarny \\*(L\"||\\*(R\" dokonuje logicznej operacji OR. To znaczy, że jeśli "
987 "lewy operand jest prawdziwy (true), to prawy nie jest nawet analizowany. "
988 "Kontekst skalarny, lub listowy propaguje do prawego operatora, jeśli jest on "
989 "analizowany."
990
991 #. type: Plain text
992 #: perlop.1:564
993 msgid ""
994 "The CW<||> and CW<&&> operators differ from C in that they return the last "
995 "value evaluated instead of 0 or 1. So a portable way to find the home "
996 "directory (assuming it is not \\*(L\"0\") would be:"
997 msgstr ""
998 "Operatory CW<||> i CW<&&> różnią się od C tym, że zwracają ostatnią "
999 "analizowaną wartość zamiast 0 czy 1. Tak więc przenośnym sposobem znalezienia "
1000 "katalogu domowego (zakładając, że nie jest \\*(L\"0\"), może być:"
1001
1002 #. type: Plain text
1003 #: perlop.1:568
1004 msgid ""
1005 "\\& $home = $ENV{'HOME'} || $ENV{'LOGDIR'} || \\& (getpwuid($E<lt>))[7] || "
1006 "die \"You're homeless!\\en\";"
1007 msgstr ""
1008 "\\& $home = $ENV{'HOME'} || $ENV{'LOGDIR'} || \\& (getpwuid($E<lt>))[7] || "
1009 "die \"You're homeless!\\en\";"
1010
1011 #. type: Plain text
1012 #: perlop.1:574
1013 msgid ""
1014 "As more readable alternatives to CW<&&> and CW<||>, Perl provides the "
1015 "operators \\*(L\"and\\*(R\" and \\*(L\"or\\*(R\" (see below). The behavior is "
1016 "identical. However, their precedence is lower, so you can safely use them "
1017 "after the list operator, without having to use parentheses:"
1018 msgstr ""
1019 "Jako czytelniejsze alternatywy CW<&&> i CW<||>, perl udostępnia operatory "
1020 "\\*(L\"and\\*(R\" i \\*(L\"or\\*(R\" (patrz niżej). Zachowanie jest "
1021 "identyczne. Jednak ich priorytet jest niższy, więc możesz ich bezpiecznie "
1022 "używać po operatorze listowym, bez konieczności używania nawiasów:"
1023
1024 #. type: Plain text
1025 #: perlop.1:578
1026 msgid "\\& unlink \"alpha\", \"beta\", \"gamma\" \\& or gripe(), next LINE;"
1027 msgstr "\\& unlink \"alpha\", \"beta\", \"gamma\" \\& or gripe(), next LINE;"
1028
1029 #. type: Plain text
1030 #: perlop.1:580
1031 msgid "Using C-style operators, this would have to be written as:"
1032 msgstr "Z użyciem operatorów w stylu C, trzeba by było to zapisać jako:"
1033
1034 #. type: Plain text
1035 #: perlop.1:584
1036 msgid "\\& unlink(\"alpha\", \"beta\", \"gamma\") \\& || (gripe(), next LINE);"
1037 msgstr ""
1038 "\\& unlink(\"alpha\", \"beta\", \"gamma\") \\& || (gripe(), next LINE);"
1039
1040 #. type: IX
1041 #: perlop.1:586
1042 #, no-wrap
1043 msgid "Range Operator"
1044 msgstr ""
1045
1046 #. type: Plain text
1047 #: perlop.1:594
1048 msgid ""
1049 "Binary \\*(L\"..\\*(R\" is the range operator, which is really two other "
1050 "operators, depending on the context. In list context, it returns an array of "
1051 "values, counted (one by one) from left to right. This is useful for writing "
1052 "CW<for (1..10)> loops and doing slice operations on arrays. Be aware that in "
1053 "the current implementation a temporary array is created, so some memory is "
1054 "needed for this if you write something like this:"
1055 msgstr ""
1056 "Binarny \\*(L\"..\\*(R\" jest operatorem zakresu, który jest w rzeczywistości "
1057 "dwoma innymi operatorami, zależnymi od kontekstu. W kontekście listowym, "
1058 "zwraca tablicę wartości, liczoną (po jednym) od wartości lewej do prawej. "
1059 "Jest to przydatne do zapisywania pętli CW<for (1..10)> i robienia operacji "
1060 "wycinania (slice) na tablicach. Bądź świadom, że w bieżącej implementacji "
1061 "tworzona jest tymczasowa tablica, więc potrzeba na to trochę pamięci, jeśli "
1062 "zapiszesz coś takiego:"
1063
1064 #. type: Plain text
1065 #: perlop.1:599
1066 msgid "\\& for (1 .. 1_000_000) { \\& # code \\& }"
1067 msgstr "\\& for (1 .. 1_000_000) { \\& # kod \\& }"
1068
1069 #. type: Plain text
1070 #: perlop.1:624
1071 msgid ""
1072 "In scalar context, \\*(L\"..\\*(R\" returns a logical value. The operator is "
1073 "two-state, like a flip-flop, and emulates the linear (comma) range operator "
1074 "from B<sed>(1), B<awk>(1), and various editors. Each \\*(L\"..\\*(R\" "
1075 "operator handles its own logical state. It is false as long as the left "
1076 "operand is false. Once the left operand becomes true, the range operator "
1077 "remains true as long as the right operand becomes true, AFTER which, the "
1078 "range operator evaluates to false. (It does not become false until the next "
1079 "time it is evaluated. It may test the right operand and become false in the "
1080 "same evaluation when it becomes true (as in B<awk>(1)), but it will still "
1081 "return true once. If you do not want it to test the right operand before the "
1082 "next evaluation (as in B<sed>(1)), use three dots (\\*(R\"...\") instead of "
1083 "two.) The right operand is not evaluated while the operator is false, and the "
1084 "left operand is not evaluated while the operator is true. The priority is "
1085 "slightly lower than || and &&. The return value is either a null string for "
1086 "false, or a sequence number (starting at 1) for true. The sequence number is "
1087 "reset for each range encountered. The final sequence number in the range has "
1088 "the string \\*(L\"E0\\*R\" appended to it, which has no effect on the numeric "
1089 "value, but gives you something to look forward to at the end. You can "
1090 "suppress the starting point by waiting until the sequence number becomes "
1091 "greater than one. If either operand of the scalar \\*(L\"..\\*(R\" is a "
1092 "numeric literal, the operand is implicitly compared to the variable CW<$.>, "
1093 "the current line number. Examples:"
1094 msgstr ""
1095 "W kontekście skalarnym, \\*(L\"..\\*(R\" zwraca wartość logiczną. Operator "
1096 "jest dwustanowy, jak flip-flop i emuluje operator zakresu liniowego "
1097 "(przecinek) z B<sed>(1), B<awk>(1) i różnych edytorów. Każdy operator "
1098 "\\*(L\"..\\*(R\" obsługuje swój własny stan logiczny. Jest on fałszywy tak "
1099 "długo, jak długo lewy operand jest fałszywy. Gdy lewy operand stanie się "
1100 "prawdziwy, operator zakresu pozostaje prawdziwy dopóki prawy argument jest "
1101 "prawdą, PO czym, operator zakresu przyjmuje wartość fałszu. (Nie staje się "
1102 "fałszywym do czasu następnej jego analizy. Może testować prawy operand i stać "
1103 "się fałszywym w tej samej analizie, kiedy stał się prawdziwym (jak w "
1104 "B<awk>(1)), lecz wciąż będzie raz zwracał prawdę. Jeśli nie chcesz by "
1105 "testował prawy operand przed następną analizą (jak w B<sed>(1)), użyj trzech "
1106 "kropek (\\*(R\"...\") zamiast dwóch.) Prawy operand nie jest analizowany "
1107 "podczas gdy operator jest w stanie fałszu, a lewy operand nie jest "
1108 "analizowany gdy operator jest w stanie prawdy. Priorytet jest trochę niższy "
1109 "niż || i &&. Zwracana wartość jest albo łańcuchem null dla fałszu, lub liczbą "
1110 "sekwencyjną (zaczynającą się od 1) dla prawdy. Liczba sekwencyjna jest "
1111 "resetowana dla każdego napotkanego zakresu. Końcowa liczba sekwencyjna w "
1112 "zakresie ma doklejony łańcuch \\*(L\"E0\\*R\", który nie ma jednak wpływu na "
1113 "wartość numeryczną, a za to daje coś, czego możesz oczekiwać na końcu. Możesz "
1114 "wyłączyć punkt początkowy przez oczekiwanie aż liczba sekwencyjna stanie się "
1115 "większa niż jeden. Jeśli któryś z operandów skalarnego \\*(L\"..\\*(R\" jest "
1116 "literałem numerycznym, operand jest niejawnie porównywany ze zmienną CW<$.>, "
1117 "bieżącym numerem linii. Przykłady:"
1118
1119 #. type: Plain text
1120 #: perlop.1:626
1121 msgid "As a scalar operator:"
1122 msgstr "Jako operator skalarny:"
1123
1124 #. type: Plain text
1125 #: perlop.1:631
1126 msgid ""
1127 "\\& if (101 .. 200) { print; } # print second hundred lines \\& next line if "
1128 "(1 .. /^$/); # skip [mail] header lines \\& s/^/E<gt> / if (/^$/ .. eof()); # "
1129 "Quote body"
1130 msgstr ""
1131 "\\& if (101 .. 200) { print; } # wydrukuj drugą setkę linii \\& next line if "
1132 "(1 .. /^$/); # pomiń linie nagłówka [pocztowego] \\& s/^/E<gt> / if (/^$/ .. "
1133 "eof()); # Cytuj ciało"
1134
1135 #. type: Plain text
1136 #: perlop.1:633
1137 msgid "As a list operator:"
1138 msgstr "Jako operator listowy:"
1139
1140 #. type: Plain text
1141 #: perlop.1:638
1142 msgid ""
1143 "\\& for (101 .. 200) { print; } # print 100 times $_ 100 \\& @foo = @foo[0 .. "
1144 "$#foo]; # expensive no-op \\& @foo = @foo[$#foo-4 .. $#foo]; # cut out the "
1145 "last 5 pieces"
1146 msgstr ""
1147 "\\& for (101 .. 200) { print; } # drukuj 100 razy $_ 100 \\& @foo = @foo[0 .. "
1148 "$#foo]; # kosztowny no-op \\& @foo = @foo[$#foo-4 .. $#foo]; # wytnij "
1149 "ostatnich 5 elementów"
1150
1151 #. type: Plain text
1152 #: perlop.1:641
1153 msgid ""
1154 "The range operator (in list context) uses the magic auto-increment algorithm "
1155 "when the operands are strings. You can say"
1156 msgstr ""
1157 "Operator zakresu (w kontekście listowym) używa w wypadku gdy operandy są "
1158 "łańcuchami magicznego algorytmu autoinkrementacji. Możesz powiedzieć"
1159
1160 #. type: Plain text
1161 #: perlop.1:644
1162 msgid "\\& @alphabet = ('A' .. 'Z');"
1163 msgstr "\\& @alphabet = ('A' .. 'Z');"
1164
1165 #. type: Plain text
1166 #: perlop.1:646
1167 msgid "and get all the letters of the alphabet, or"
1168 msgstr "i uzyskać tak wszystkie litery alfabetu, lub"
1169
1170 #. type: Plain text
1171 #: perlop.1:649
1172 msgid "\\& $hexdigit = (0 .. 9, 'a' .. 'f')[$num & 15];"
1173 msgstr "\\& $hexdigit = (0 .. 9, 'a' .. 'f')[$num & 15];"
1174
1175 #. type: Plain text
1176 #: perlop.1:651
1177 msgid "to get hexadecimal numbers, or"
1178 msgstr "by uzyskać liczby szesnastkowe, lub"
1179
1180 #. type: Plain text
1181 #: perlop.1:654
1182 msgid "\\& @z2 = ('01' .. '31'); print $z2[$mday];"
1183 msgstr "\\& @z2 = ('01' .. '31'); print $z2[$mday];"
1184
1185 #. type: Plain text
1186 #: perlop.1:658
1187 msgid ""
1188 "to get dates with leading zeros. If the last value given is not in the "
1189 "sequence that magical increment gives, then the sequence continues until the "
1190 "next value is no longer than the last value given."
1191 msgstr ""
1192 "by uzyskać daty z początkowymi zerami. Jeśli ostatnia podana wartość nie jest "
1193 "w sekwencji, którą daje magiczna inkrementacja, to sekwencja idzie tak "
1194 "daleko, aż następna wartość nie będzie dłuższa niż podana ostatnia wartość."
1195
1196 #. type: IX
1197 #: perlop.1:659
1198 #, no-wrap
1199 msgid "Conditional Operator"
1200 msgstr ""
1201
1202 #. type: Plain text
1203 #: perlop.1:664
1204 msgid ""
1205 "\\*(L\"?:\\*(R\" is a conditional operator, just like in C. It works "
1206 "similarly to an if-then-else construct. If the argument before ? is true, the "
1207 "argument before : is returned. Otherwise, the argument after : is returned. "
1208 "For example:"
1209 msgstr ""
1210 "\\*(L\"?:\\*(R\" jest operatorem warunkowym, zupełnie jak w C. Działa "
1211 "podobnie do konstrukcji if-then-else. Jeśli argument przed ? jest prawdziwy, "
1212 "to zwracany jest argument przed :. W przeciwnym wypadku, zwracany jest "
1213 "argument po :. Na przykład:"
1214
1215 #. type: Plain text
1216 #: perlop.1:668
1217 msgid "\\& printf \"I have %d ps%s.\\en\", $n, \\& ($n == 1) ? \"a\" : \"y\";"
1218 msgstr "\\& printf \"Mam %d ps%s.\\en\", $n, \\& ($n == 1) ? \"a\" : \"y\";"
1219
1220 #. type: Plain text
1221 #: perlop.1:671
1222 msgid ""
1223 "Scalar or list context propagates to the 2nd or 3rd argument, depending on "
1224 "the choice."
1225 msgstr ""
1226 "Kontekst skalarny, lub listowy propaguje do 2-giego lub 3-ciego argumentu, "
1227 "zależnie od wyboru."
1228
1229 #. type: Plain text
1230 #: perlop.1:676
1231 msgid ""
1232 "\\& $a = $ok ? $b : $c; # take a scalar \\& @a = $ok ? @b : @c; # take the "
1233 "board \\& $a = $ok ? @b : @c; # oops, it's just a counter!"
1234 msgstr ""
1235 "\\& $a = $ok ? $b : $c; # weź skalar \\& @a = $ok ? @b : @c; # weź tablicę "
1236 "\\& $a = $ok ? @b : @c; # oops, to tylko licznik!"
1237
1238 #. type: Plain text
1239 #: perlop.1:679
1240 msgid ""
1241 "The operator can be assigned if both the 2nd and 3rd operands are legal "
1242 "lvalues ​​(meaning they can be assigned to):"
1243 msgstr ""
1244 "Operator może być przypisany jeśli obydwa argumenty -- 2-gi i 3-ci są "
1245 "legalnymi lwartościami (co znaczy że można do nich przypisać):"
1246
1247 #. type: Plain text
1248 #: perlop.1:682
1249 msgid "\\& ($a_or_b ? $a : $b) = $c;"
1250 msgstr "\\& ($a_or_b ? $a : $b) = $c;"
1251
1252 #. type: Plain text
1253 #: perlop.1:684
1254 msgid ""
1255 "However, this may not necessarily improve the readability of your program."
1256 msgstr "Niekoniecznie musi to jednak poprawić czytelność twojego programu."
1257
1258 #. type: IX
1259 #: perlop.1:685
1260 #, no-wrap
1261 msgid "Assignment Operators"
1262 msgstr ""
1263
1264 #. type: Plain text
1265 #: perlop.1:687
1266 msgid "\\*(L\"=\\*(R\" is the usual assignment operator."
1267 msgstr "\\*(L\"=\\*(R\" jest zwykłym operatorem przypisania."
1268
1269 #. type: Plain text
1270 #: perlop.1:689
1271 msgid "The assignment operator works as in C. That is,"
1272 msgstr "Operator przypisania działa jak w C. Tzn,"
1273
1274 #. type: Plain text
1275 #: perlop.1:692
1276 msgid "\\& $a += 2;"
1277 msgstr "\\& $a += 2;"
1278
1279 #. type: Plain text
1280 #: perlop.1:694 perlop.1:725
1281 msgid "is equivalent to"
1282 msgstr "jest równoważne"
1283
1284 #. type: Plain text
1285 #: perlop.1:697
1286 msgid "\\& $a = $a + 2;"
1287 msgstr "\\& $a = $a + 2;"
1288
1289 #. type: Plain text
1290 #: perlop.1:701
1291 msgid ""
1292 "although without duplicating the side effects that dereferencing an lvalue "
1293 "can have, as with I<tie()>. The other assignment operators work similarly. "
1294 "The following are recognized:"
1295 msgstr ""
1296 "choć bez powielania efektów ubocznych, które może pociągać za sobą "
1297 "dereferencja lwartości, tak jak dla I<tie()>. Inne operatory przypisania "
1298 "działają podobnie. Rozpoznawane są następujące:"
1299
1300 #. type: Plain text
1301 #: perlop.1:707
1302 msgid ""
1303 "\\& **= += *= &= E<lt>E<lt>= &&= \\& -= /= |= E<gt>E<gt>= ||= \\& .= %= ^= "
1304 "\\& x="
1305 msgstr ""
1306 "\\& **= += *= &= E<lt>E<lt>= &&= \\& -= /= |= E<gt>E<gt>= ||= \\& .= %= ^= "
1307 "\\& x="
1308
1309 #. type: Plain text
1310 #: perlop.1:710
1311 msgid ""
1312 "Notice that while they are grouped into families, they have the same "
1313 "assignment priority."
1314 msgstr ""
1315 "Zauważ, że podczas gdy są one zgrupowane w rodziny, mają jednakowy priorytet "
1316 "przypisania."
1317
1318 #. type: Plain text
1319 #: perlop.1:715
1320 msgid ""
1321 "Unlike C, the assignment operator gives a valid lvalue. Modifying an "
1322 "assignment is equivalent to making the assignment and then changing the "
1323 "assigned variable. This is useful for modifying a copy of something, e.g.:"
1324 msgstr ""
1325 "W przeciwieństwie do C, operator przypisania daje prawidłową lwartość. "
1326 "Modyfikowanie przypisania jest równoważne do robienia przypisania, a potem "
1327 "zmieniania przypisanej zmiennej. jest to przydatne do modyfikowania kopii "
1328 "czegoś, np:"
1329
1330 #. type: Plain text
1331 #: perlop.1:718
1332 msgid "\\& ($tmp = $global) =~ tr [A-Z] [a-z];"
1333 msgstr "\\& ($tmp = $global) =~ tr [A-Z] [a-z];"
1334
1335 #. type: Plain text
1336 #: perlop.1:720
1337 msgid "Similarly,"
1338 msgstr "Podobnie,"
1339
1340 #. type: Plain text
1341 #: perlop.1:723
1342 msgid "\\& ($a += 2) *= 3;"
1343 msgstr "\\& ($a += 2) *= 3;"
1344
1345 #. type: Plain text
1346 #: perlop.1:729
1347 msgid "\\& $a += 2; \\& $a *= 3;"
1348 msgstr "\\& $a += 2; \\& $a *= 3;"
1349
1350 #. type: IX
1351 #: perlop.1:731
1352 #, no-wrap
1353 msgid "Comma Operator"
1354 msgstr ""
1355
1356 #. type: Plain text
1357 #: perlop.1:736
1358 msgid ""
1359 "Binary \\*(L\",\\*(R\" is the comma operator. In a scalar context, it "
1360 "evaluates its left argument, throws away its value, and then evaluates its "
1361 "right argument, returning its value. This is the same as the C comma operator."
1362 msgstr ""
1363 "Binarny \\*(L\",\\*(R\" jest operatorem przecinka. W kontekście skalarnym "
1364 "analizuje swój lewy argument, wyrzuca jego wartość i następnie analizuje "
1365 "prawy argument, zwracając jego wartość. Jest to takie samo, jak operator "
1366 "przecinka z C."
1367
1368 #. type: Plain text
1369 #: perlop.1:739
1370 msgid ""
1371 "In a list context, this is simply the list separator and inserts both "
1372 "arguments into the list."
1373 msgstr ""
1374 "W kontekście listowym, jest to po prostu separator listy i wstawia obydwa "
1375 "argumenty do listy."
1376
1377 #. type: Plain text
1378 #: perlop.1:743
1379 msgid ""
1380 "The character =E<gt> is often synonymous with the comma operator. It is "
1381 "useful for documenting arguments that come in pairs. Since version 5.001, it "
1382 "also forces each word on the left to be interpreted as a string."
1383 msgstr ""
1384 "Znak =E<gt> jest często synonimem operatora przecinka. Przydatny jest do "
1385 "dokumentowania argumentów, które są w parach. Od wersji 5.001 wymusza to też "
1386 "interpretację każdego słowa z lewej jako łańcucha."
1387
1388 #. type: IX
1389 #: perlop.1:744
1390 #, no-wrap
1391 msgid "List Operators (Rightward)"
1392 msgstr ""
1393
1394 #. type: Plain text
1395 #: perlop.1:751
1396 msgid ""
1397 "On the right hand side of the list operator, there is low precedence, such "
1398 "that it controls all elements found there, separated by commas. The only "
1399 "operators with lower precedence are the logical operators \\*(L\"and\\*(R\", "
1400 "\\*(L\"or\\*(R\", and \\*(L\"not\\*(R\", which can be used to parse calls to "
1401 "list operators without the need for additional parentheses:"
1402 msgstr ""
1403 "Po prawej stronie operatora listowego, jest niski priorytet, taki że "
1404 "kontroluje on wszystkie znalezione tam elementy, oddzielone przecinkami. "
1405 "Jedyne operatory o niższym priorytecie to operatory logiczne "
1406 "\\*(L\"and\\*(R\", \\*(L\"or\\*(R\", i \\*(L\"not\\*(R\", które mogą być "
1407 "używane do analizowania wywołań do operatorów listowych, bez potrzeby "
1408 "dodatkowych nawiasów:"
1409
1410 #. type: Plain text
1411 #: perlop.1:755
1412 msgid "\\& open HANDLE, \"filename\" \\& or die \"Can't open: $!\\en\";"
1413 msgstr "\\& open HANDLE, \"filename\" \\& or die \"Can't open: $!\\en\";"
1414
1415 #. type: Plain text
1416 #: perlop.1:758
1417 msgid ""
1418 "See also the discussion of list operators in the section on expressions and "
1419 "left-hand list operators."
1420 msgstr ""
1421 "Zobacz też dyskusję operatorów listowych w sekcji o wyrażeniach i operatorach "
1422 "listowych lewostronnych."
1423
1424 #. type: IX
1425 #: perlop.1:759
1426 #, no-wrap
1427 msgid "Logical Not"
1428 msgstr "Logical Not"
1429
1430 #. type: Plain text
1431 #: perlop.1:762
1432 msgid ""
1433 "The unary \\*(L\"not\\*(R\" returns the logical negation of the right "
1434 "argument. It is equivalent to \\*(L\"!\\*(R\", but has lower precedence."
1435 msgstr ""
1436 "Jednoargumentowy \\*(L\"not\\*(R\" zwraca logiczną negację prawego "
1437 "argumentu. Jest równoważny \\*(L\"!\\*(R\", lecz ma niższy priorytet."
1438
1439 #. type: IX
1440 #: perlop.1:763
1441 #, no-wrap
1442 msgid "Logical And"
1443 msgstr ""
1444
1445 #. type: Plain text
1446 #: perlop.1:767
1447 msgid ""
1448 "Binary \\*(L\"and\\*(R\" returns the logical conjunction of the surrounding "
1449 "expressions. It is equivalent to &&, but has lower precedence. This means "
1450 "that the right expression is evaluated only if the left one is true."
1451 msgstr ""
1452 "Binarny \\*(L\"and\\*(R\" zwraca logiczną koniunkcję otaczających wyrażeń. "
1453 "Jest równoważny &&, lecz ma niższy priorytet. Znaczy to, że prawe wyrażenie "
1454 "jest analizowane tylko jeśli lewe jest prawdziwe."
1455
1456 #. type: IX
1457 #: perlop.1:768
1458 #, no-wrap
1459 msgid "Logical or and Exclusive Or"
1460 msgstr ""
1461
1462 #. type: Plain text
1463 #: perlop.1:772
1464 msgid ""
1465 "Binary \\*(L\"or\\*(R\" returns the logical disjunction of the surrounding "
1466 "expressions. It is equivalent to ||, but has lower precedence. That is, the "
1467 "right expression is executed only if the left one is false."
1468 msgstr ""
1469 "Binarny \\*(L\"or\\*(R\" zwraca logiczną dyzjunkcję otaczających wyrażeń. "
1470 "Jest równoważny ||, lecz ma niższy priorytet. Znaczy to, że prawe wyrażenie "
1471 "jest wykonywane tylko jeśli lewe jest fałszywe."
1472
1473 #. type: Plain text
1474 #: perlop.1:775
1475 msgid ""
1476 "Binary \\*(L\"xor\\*(R\" returns \\s-1XOR\\s0 of the surrounding expressions. "
1477 "Of course, it cannot be used with a restriction like or."
1478 msgstr ""
1479 "Binarny \\*(L\"xor\\*(R\" zwraca \\s-1XOR\\s0 otaczających wyrażeń. Nie może "
1480 "być oczywiście używany z zawężeniem, jak or."
1481
1482 #. type: IX
1483 #: perlop.1:776
1484 #, no-wrap
1485 msgid "C Operators Missing From Perl"
1486 msgstr ""
1487
1488 #. type: Plain text
1489 #: perlop.1:778
1490 msgid "Here are the C operators that Perl doesn't have:"
1491 msgstr "Oto operatory C, których perl nie posiada:"
1492
1493 #. type: IX
1494 #: perlop.1:779 perlop.1:782 perlop.1:786 perlop.1:848 perlop.1:857 perlop.1:859
1495 #: perlop.1:1030 perlop.1:1032 perlop.1:1044 perlop.1:1046 perlop.1:1056
1496 #: perlop.1:1058 perlop.1:1070 perlop.1:1087 perlop.1:1197 perlop.1:1199
1497 #, no-wrap
1498 msgid "Item"
1499 msgstr "Item"
1500
1501 #. type: IX
1502 #: perlop.1:779
1503 #, no-wrap
1504 msgid "unary &"
1505 msgstr ""
1506
1507 #. type: Plain text
1508 #: perlop.1:781
1509 msgid ""
1510 "Address operator. (But see the description of the \\*(L\"\\e\\*(R\") "
1511 "operator.)"
1512 msgstr "Operator adresu. (Lecz zobacz opis operatora \\*(L\"\\e\\*(R\".)"
1513
1514 #. type: IX
1515 #: perlop.1:782
1516 #, no-wrap
1517 msgid "unary *"
1518 msgstr ""
1519
1520 #. type: Plain text
1521 #: perlop.1:785
1522 msgid ""
1523 "Address dereferencing operator. (Perl's prefix dereferencing operators are: "
1524 "$, @, %, &.)"
1525 msgstr ""
1526 "Operator dereferencji (wyłuskania) adresu. (Perlowe przedrostkowe operatory "
1527 "dereferencji to: $, @, %, &.)"
1528
1529 #. type: IX
1530 #: perlop.1:786
1531 #, no-wrap
1532 msgid "(\\s-1TYPE\\s0)"
1533 msgstr ""
1534
1535 #. type: Plain text
1536 #: perlop.1:788
1537 msgid "Type conversion operator."
1538 msgstr "Operator konwersji typów."
1539
1540 #. type: IX
1541 #: perlop.1:789
1542 #, no-wrap
1543 msgid "Quote and Quote-like Operators"
1544 msgstr ""
1545
1546 #. type: Plain text
1547 #: perlop.1:798
1548 msgid ""
1549 "While we normally think of quotes as literal values, in Perl they function as "
1550 "operators, providing various interpolation and pattern matching features. "
1551 "Perl provides traditional quote characters for these behaviors, but also a "
1552 "way to select a quote character. In the following array, CW<{}> denotes a "
1553 "pair of delimiters that you select. Non-bracket delimiters use the same "
1554 "character for start and end, but the 4 types of brackets can nest."
1555 msgstr ""
1556 "Podczas gdy normalnie myślimy o cytatach jak o literalnych wartościach, w "
1557 "perlu mają one funkcję operatorów, dając różne właściwości interpolowania i "
1558 "porównywania wzorców. Perl daje dla tych zachowań tradycyjne znaki "
1559 "cytowania, lecz również sposób na wybieranie znaku cytowania. W następującej "
1560 "tablicy, CW<{}> oznacza parę ograniczników, które wybierzesz. Ograniczniki "
1561 "nienawiasowe używają tego samego znaku na początek i koniec, ale 4 rodzaje "
1562 "nawiasów mogą się zagnieżdżać."
1563
1564 #. type: Plain text
1565 #: perlop.1:808
1566 msgid ""
1567 "\\& Customary Standard Meaning Interpolates \\& '' q{} Literal no \\& \"\" "
1568 "qq{} Literal yes \\& `` qx{} Command yes \\& qw{} Word list no \\& // m{} "
1569 "Pattern match yes \\& s{}{} Substitution yes \\& tr{}{} Translation no"
1570 msgstr ""
1571 "\\& Zwyczajowy Standardowy Znaczenie Interpoluje \\& '' q{} Literał nie \\& "
1572 "\"\" qq{} Literał tak \\& `` qx{} Komenda tak \\& qw{} Lista słów nie \\& // "
1573 "m{} Porównanie ze wzorcem tak \\& s{}{} Podstawienie tak \\& tr{}{} "
1574 "Translacja nie"
1575
1576 #. type: Plain text
1577 #: perlop.1:811
1578 msgid ""
1579 "For constructs that perform interpolation, variables starting with "
1580 "\\*(L\"CW<$>\\*(R\" or \\*(L\"CW<@>\\*(R\" are interpolated as the following "
1581 "sequences:"
1582 msgstr ""
1583 "Dla konstrukcji, wykonujących interpolację, zmienne zaczynające się od "
1584 "\\*(L\"CW<$>\\*(R\" lub \\*(L\"CW<@>\\*(R\" są interpolowane jako następujące "
1585 "sekwencje:"
1586
1587 #. type: Plain text
1588 #: perlop.1:829
1589 msgid ""
1590 "\\& \\et tab (HT, TAB) \\& \\en newline (LF, NL) \\& \\er return (CR) \\& "
1591 "\\ef form feed (FF) \\& \\eb backspace (BS) \\& \\ea alarm (bell) (BEL) \\& "
1592 "\\ee escape (ESC) \\& \\e033 octal character \\& \\ex1b hexadecimal character "
1593 "\\& \\ec[ control character \\& \\el change next character to lower case \\& "
1594 "\\eu change next character to upper case \\& \\eL change to lower case up to "
1595 "\\eE \\& \\eU change to upper case up to \\eE \\& \\eE end size modification "
1596 "\\& \\eQ quote regexp metacharacters up to \\eE"
1597 msgstr ""
1598 "\\& \\et tab (HT, TAB) \\& \\en nowalinia (LF, NL) \\& \\er return (CR) "
1599 "\\& \\ef form feed (FF) \\& \\eb backspace (BS) \\& \\ea alarm (dzwonek) "
1600 "(BEL) \\& \\ee escape (ESC) \\& \\e033 znak ósemkowy \\& \\ex1b znak "
1601 "szesnastkowy \\& \\ec[ znak sterujący \\& \\el zmień następny znak na małą "
1602 "literę \\& \\eu zmień następny znak na dużą literę \\& \\eL zmień na małą "
1603 "literę aż do \\eE \\& \\eU zmień na dużą literę aż do \\eE \\& \\eE koniec "
1604 "modyfikacji rozmiaru \\& \\eQ cytuj metaznaki regexp aż do \\eE"
1605
1606 #. type: Plain text
1607 #: perlop.1:832
1608 msgid ""
1609 "If CW<use locale> is used, the case map reflects the local situation. See the "
1610 "manual page for B<perllocale>(1)."
1611 msgstr ""
1612 "Jeśli używane jest CW<use locale>, mapa rozmiarów liter odpowiada lokalnej "
1613 "sytuacji. Zobacz podręcznik B<perllocale>(1)."
1614
1615 #. type: Plain text
1616 #: perlop.1:837
1617 msgid ""
1618 "Patterns are the basis for another level of interpretation -- as regular "
1619 "expressions. This is done as a second pass, after interpolating variables, so "
1620 "that regular expressions can be incorporated into the pattern from variables. "
1621 "If you don't want that, use CW<\\eQ>."
1622 msgstr ""
1623 "Wzorce są podstawą do innego poziomu interpretacji -- jako wyrażenia "
1624 "regularne. Jest to robione jako drugi przebieg, po interpolacji zmiennych, "
1625 "tak że wyrażenia regularne mogą być włączane do wzorca ze zmiennych. Jeśli "
1626 "tego nie chcesz, użyj CW<\\eQ>."
1627
1628 #. type: Plain text
1629 #: perlop.1:843
1630 msgid ""
1631 "Apart from the above, there are no multiple levels of interpolation. In fact, "
1632 "contrary to the expectations of shell programmers, backquotes do not "
1633 "interpolate within double quotes, and single quotes enclosed within double "
1634 "quotes do not impede the parsing of variables enclosed within them."
1635 msgstr ""
1636 "Poza powyższym, nie ma wielokrotnych poziomów interpolacji. W rzeczywistości, "
1637 "w przeciwieństwie do oczekiwań programistów powłokowych, odwrotne cudzysłowy "
1638 "nie interpolują w podwójnych cudzysłowach, a pojedyncze otoczone w podwójnych "
1639 "cudzysłowach nie utrudniają analizy zmiennych w nich zawartych."
1640
1641 #. type: IX
1642 #: perlop.1:844
1643 #, no-wrap
1644 msgid "Regexp Quote-Like Operators"
1645 msgstr ""
1646
1647 #. type: Plain text
1648 #: perlop.1:847
1649 msgid ""
1650 "Here are the quote-like operators that deal with pattern matching activities."
1651 msgstr ""
1652 "Oto cytatopodobne operatory, które dotyczą się działań związanych z "
1653 "porównywaniem wzorców."
1654
1655 #. type: IX
1656 #: perlop.1:848
1657 #, no-wrap
1658 msgid "?\\s-1PATTERN\\s0?"
1659 msgstr "?\\s-1WZORZEC\\s0?"
1660
1661 #. type: Plain text
1662 #: perlop.1:854
1663 msgid ""
1664 "This is something like a CW</pattern/> search, but between calls to the "
1665 "I<reset()> operator, the match is one-time. This is a useful optimization if, "
1666 "for example, you only want to see the first occurrence of something in a file "
1667 "or set. Only CW<??> patterns local to the current package are reset."
1668 msgstr ""
1669 "Jest to coś w rodzaju przeszukiwania CW</wzorzec/>, lecz między wywołaniami "
1670 "operatora I<reset()>, trafienie jest jednokrotne. Jest to przydatna "
1671 "optymalizacja, jeśli np. chcesz zobaczyć tylko pierwsze pojawienie się czegoś "
1672 "w pliku, lub zbiorze. Resetowane są tylko wzorce CW<??>, lokalne dla "
1673 "bieżącego pakietu."
1674
1675 #. type: Plain text
1676 #: perlop.1:856
1677 msgid "This usage is deprecated and may be removed in a future version of Perl."
1678 msgstr ""
1679 "To użycie jest niezalecane i może być usunięte w przyszłych wersjach perla."
1680
1681 #. type: IX
1682 #: perlop.1:857
1683 #, no-wrap
1684 msgid "m/\\s-1PATTERN/\\s0gimosx"
1685 msgstr "m/\\s-1WZORZEC/\\s0gimosx"
1686
1687 #. type: IX
1688 #: perlop.1:859
1689 #, no-wrap
1690 msgid "/\\s-1PATTERN/\\s0gimosx"
1691 msgstr "/\\s-1WZORZEC/\\s0gimosx"
1692
1693 #. type: Plain text
1694 #: perlop.1:869
1695 msgid ""
1696 "Searches for a pattern and in scalar context returns true (1), or false (''). "
1697 "If no string is supplied via the CW<=~> or CW<!~> operators, the string "
1698 "CW<$_> is searched for. (The string supplied by CW<=~> need not be the lvalue "
1699 "of \\*(-- it can be the result of evaluating an expression, but remember that "
1700 "CW<=~> binds quite tightly.) See also the I<perlre>(1) manual page. See the "
1701 "I<perllocale>(1) manual page for a discussion of additional issues related to "
1702 "the use of CW<use locale>."
1703 msgstr ""
1704 "Przeszukuje wzorzec dla trafienia i w kontekście skalarnym wzraca prawdę (1), "
1705 "lub fałsz (''). Jeśli nie podano żadnego łańcucha poprzez operator CW<=~>, "
1706 "lub CW<!~>, przeszukiwany jest łańcuch CW<$_>. (Łańcuch podany przez CW<=~> "
1707 "nie musi być lwartością \\*(-- może być wynikiem analizy wyrażenia, lecz "
1708 "pamiętaj, że CW<=~> wiąże dość mocno.) Zobacz też podręcznik I<perlre>(1). "
1709 "Zobacz podręcznik I<perllocale>(1) dla dyskusji o dodatkowych sprawach, "
1710 "związanych z użyciem CW<use locale>."
1711
1712 #. type: Plain text
1713 #: perlop.1:871 perlop.1:1110
1714 msgid "The options are:"
1715 msgstr "Opcje to:"
1716
1717 #. type: Plain text
1718 #: perlop.1:879
1719 msgid ""
1720 "\\& g Compare globally, on all occurrences \\& i Compare insensitively \\& m "
1721 "Treat string as multiple lines \\& o Compile pattern only once \\& s Treat "
1722 "string as single line \\& x Use extended regular expressions"
1723 msgstr ""
1724 "\\& g Porównuj globalnie, na wszystkich pojawieniach \\& i Porównuj bez "
1725 "zwracania uwagi na wielkość liter \\& m Traktuj łańcuch jako wielokrotne "
1726 "linie \\& o Kompiluj wzorzec tylko raz \\& s Traktuj łańcuch jako pojedynczą "
1727 "linię \\& x Użyj rozszerzonych wyrażeń regularnych"
1728
1729 #. type: Plain text
1730 #: perlop.1:887
1731 msgid ""
1732 "If the delimiter is \\*(L\"/\\*(R\", the leading CW<m> is optional. When "
1733 "using CW<m>, you can use any pair of non-whitespace, non-alphanumeric "
1734 "characters as delimiters. This is useful for comparing Unix pathnames, which "
1735 "may contain \\*(L\"/\\*(R\". This prevents \\s-1LTS\\s0 (narrow toothpick "
1736 "syndrome). If \\*(L\"?\\*(R\" is the delimiter, the match-once-only rule of "
1737 "CW<?PATTERN?> is applied."
1738 msgstr ""
1739 "Jeśli ogranicznikiem jest \\*(L\"/\\*(R\", to początkowe CW<m> jest "
1740 "opcjonalne. Używając CW<m>, możesz wykorzystać jako ograniczniki dowolną "
1741 "parę nialfanumerycznych, niebiałospacjowych znaków. Jest to przydatne do "
1742 "porównywania unixowych nazw ścieżek, które mogą zawierać \\*(L\"/\\*(R\". "
1743 "Zapobiega to \\s-1LTS\\s0 (syndrom wąskiej wykałaczki). Jeśli \\*(L\"?"
1744 "\\*(R\" jest ogranicznikiem, to stosowana jest reguła trafienia-tylko-raz "
1745 "instrukcji CW<?WZORZEC?>."
1746
1747 #. type: Plain text
1748 #: perlop.1:897
1749 msgid ""
1750 "\\s-1PATTERN\\s0 can contain variables that will be interpolated (and the "
1751 "pattern recompiled) with each analysis. (Note that CW<$)> and CW<$|> may not "
1752 "be interpolated, since they look like end-of-string tests.) If you want such "
1753 "patterns to be compiled only once, append CW</o> to the last delimiter. This "
1754 "prevents expensive runtime compilation and is useful when the value you are "
1755 "using does not change during the life of the script. However, remember that "
1756 "the CW</o> option promises that you will not change the variables in the "
1757 "pattern. If you do change them, Perl will not notice."
1758 msgstr ""
1759 "\\s-1WZORZEC\\s0 może zawierać zmienne, które będą interpolowane (a wzorzec "
1760 "rekompilowany) za każdą analizą. (Zauważ, że CW<$)> i CW<$|> mogą nie być "
1761 "interpolowane, gdyż wyglądają jak testy końca łańcucha.) Jeśli chcesz, by "
1762 "takie wzorce były kompilowane tylko raz, dodaj do ostatniego ogranicznika "
1763 "znak CW</o>. Zapobiega to kosztownej kompilacji czasu działania i jest "
1764 "przydatne, gdy wartość, z której korzystasz nie zmienia się w czasie życia "
1765 "skryptu. Jednak pamiętaj, że opcja CW</o> daje obietnicę, iż nie zmienisz "
1766 "zmiennych ze wzorca. Jeśli je zmienisz, perl tego nie zauważy."
1767
1768 #. type: Plain text
1769 #: perlop.1:900
1770 msgid ""
1771 "If \\s-1PATTERN\\s0 is parsed as a null string, the last regular expression "
1772 "executed is used."
1773 msgstr ""
1774 "Jeśli \\s-1WZORZEC\\s0 zostanie zanalizowany jako łańcuch null, to użyte "
1775 "zostanie ostatnie wykonane wyrażenie regularne."
1776
1777 #. type: Plain text
1778 #: perlop.1:908
1779 msgid ""
1780 "In a context requiring a list value, pattern matching returns a list "
1781 "consisting of the list of subexpressions matched by the parentheses in "
1782 "pattern, e.g. (CW<$1>, CW<$2>, CW<$3>...). (Note that CW<$1> etc. are also "
1783 "set here, and that this differs from Perl 4 behavior.) If the comparison "
1784 "fails, a null array is returned. If the comparison succeeds but there are no "
1785 "parentheses, a list value (1) is returned."
1786 msgstr ""
1787 "W kontekście, wymagającym wartości listowej, porównanie wzorca zwraca listę, "
1788 "składającą się z listy podwyrażeń, trafionych przez nawiasy z wzorca, np. "
1789 "(CW<$1>, CW<$2>, CW<$3>...). (Zauważ, że ustawione tu są również CW<$1> itp. "
1790 "i że różni się to od zachowania perla 4.) Jeśli porównanie się nie powiedzie, "
1791 "zwracana jest tablica null. Jeśli porównanie się powiedzie, lecz nie będzie "
1792 "nawiasów, zwracana zostanie wartość listowa (1)."
1793
1794 #. type: Plain text
1795 #: perlop.1:910 perlop.1:962 perlop.1:1134 perlop.1:1235
1796 msgid "Examples:"
1797 msgstr "Przykłady:"
1798
1799 #. type: Plain text
1800 #: perlop.1:914
1801 msgid ""
1802 "\\& open(TTY, '/dev/tty'); \\& E<lt>TTYE<gt> =~ /^y/i && foo(); # do foo if "
1803 "necessary"
1804 msgstr ""
1805 "\\& open(TTY, '/dev/tty'); \\& E<lt>TTYE<gt> =~ /^y/i && foo(); # zrób foo, "
1806 "jeśli trzeba"
1807
1808 #. type: Plain text
1809 #: perlop.1:917
1810 msgid "\\& if (/Version: *([0-9.]*)/) { $version = $1; }"
1811 msgstr "\\& if (/Version: *([0-9.]*)/) { $version = $1; }"
1812
1813 #. type: Plain text
1814 #: perlop.1:920
1815 msgid "\\& next if m#^/usr/spool/uucp#;"
1816 msgstr "\\& next if m#^/usr/spool/uucp#;"
1817
1818 #. type: Plain text
1819 #: perlop.1:927
1820 msgid ""
1821 "\\& # poor man's grep \\& $arg = shift; \\& while (E<lt>E<gt>) { \\& print "
1822 "if /$arg/o; # compile only once \\& }"
1823 msgstr ""
1824 "\\& # grep biedaka \\& $arg = shift; \\& while (E<lt>E<gt>) { \\& print if /"
1825 "$arg/o; # kompiluj tylko raz \\& }"
1826
1827 #. type: Plain text
1828 #: perlop.1:930
1829 msgid "\\& if (($F1, $F2, $Etc) = ($foo =~ /^(\\eS+)\\es+(\\eS+)\\es*(.*)/))"
1830 msgstr "\\& if (($F1, $F2, $Etc) = ($foo =~ /^(\\eS+)\\es+(\\eS+)\\es*(.*)/))"
1831
1832 #. type: Plain text
1833 #: perlop.1:935
1834 msgid ""
1835 "The last example splits CW<$foo> into the first two words and the rest of the "
1836 "line. It assigns these three fields to CW<$F1>, CW<$F2>, and CW<$Etc>. The "
1837 "condition is true if any of the variables have been assigned values, that is, "
1838 "if the pattern is matched."
1839 msgstr ""
1840 "Ostatni przykład dzieli CW<$foo> na pierwsze dwa słowa i resztę linii. "
1841 "Przypisuje te trzy pola do CW<$F1>, CW<$F2> i CW<$Etc>. Warunek jest "
1842 "prawdziwy, jeśli przypisane zostały wartości którejkolwiek ze zmiennych, "
1843 "czyli jeśli wzorzec został trafiony."
1844
1845 #. type: Plain text
1846 #: perlop.1:942
1847 msgid ""
1848 "The CW</g> modifier specifies global pattern matching \\*(-- i.e., where "
1849 "there are as many matches as possible in a given string. The behavior of this "
1850 "depends on the context -- in a list match, a list of all substrings matched "
1851 "by all the parentheses of the regular expression is returned. If there were "
1852 "no parentheses, a list of matched strings is returned, as if there were "
1853 "parentheses around the entire pattern."
1854 msgstr ""
1855 "Modyfikator CW</g> określa globalne porównywanie wzorców \\*(-- tj. takie, "
1856 "gdzie trafień jest tyle ile się da w danym łańcuchu. Zachowanie tego zależy "
1857 "od kontektu -- w listowym zwracana jest lista wszystkich podłańcuchów, "
1858 "trafionych przez wszystkie nawaisy wyrażenia regularnego. Jeśli nie było "
1859 "nawiasów, zwracana jest lista trafionych łańcuchów, tak jakby były nawiasy "
1860 "wokół całego wzorca."
1861
1862 #. type: Plain text
1863 #: perlop.1:952
1864 msgid ""
1865 "In scalar context, CW<,//g> iterates through the string, returning "
1866 "\\s-1TRUE\\s0 on each hit, and \\s-1FALSE\\s0 on no hit. (In other words, it "
1867 "remembers the last position and restarts from there. You can find the current "
1868 "position of the hit using the I<pos()> function; see its manual page for "
1869 "B<perlfunc>(1).) A no hit normally resets the search position to the "
1870 "beginning of the string, but you can override this by adding the "
1871 "\\*(L\"c\\*(R\" modifier (e.g. CW<m//gc>). Modifying the target string also "
1872 "resets the search position."
1873 msgstr ""
1874 "W kontekście skalarnym, CW<,//g> iteruje poprzez łańcuch, zwracając "
1875 "\\s-1TRUE\\s0 za każdym trafieniem i \\s-1FALSE\\s0 przy braku trafienia. "
1876 "(Innymi słowy, zapamiętuje ostatnią pozycję i restartuje od tego miejsca. "
1877 "Możesz znaleźć bieżącą pozycję trafienia przy użyciu funkcji I<pos()>; zobacz "
1878 "jej opis w podręczniku B<perlfunc>(1).) Brak trafienia normalnie resetuje "
1879 "pozycję przeszukiwania na początek łańcucha, lecz możesz temu zapobiec, "
1880 "dodając modyfikator \\*(L\"c\\*(R\" (np. CW<m//gc>). Modyfikowanie łańcucha "
1881 "docelowego również resetuje pozycję przeszukiwania."
1882
1883 #. type: Plain text
1884 #: perlop.1:960
1885 msgid ""
1886 "You can mix CW<m//g> comparisons with CW<m/\\eG.../g>, where CW<\\eG> is a "
1887 "zero-width assertion that lands in exactly the same position where any "
1888 "previous CW<m//g> ended up. The CW<\\eG> assertion is not supported without "
1889 "the CW</g> modifier; currently without CW</g>, CW<\\eG> behaves just like "
1890 "CW<\\eA>, but this is random and may change in the future."
1891 msgstr ""
1892 "Możesz mieszać porównania CW<m//g> z CW<m/\\eG.../g>, gdzie CW<\\eG> jest "
1893 "zapewnieniem zerowej szerokości, które trafia w dokładnie tę samą pozycję, "
1894 "gdzie skończył ewentualny poprzedni CW<m//g>. Zapewnienie CW<\\eG> nie jest "
1895 "obsługiwane bez modyfikatora CW</g>; obecnie bez CW</g>, CW<\\eG>, zachowuje "
1896 "się zupełnie jak CW<\\eA>, lecz jest to przypadkowe i może się w przyszłości "
1897 "zmienić."
1898
1899 #. type: Plain text
1900 #: perlop.1:966
1901 msgid ""
1902 "\\& # list context \\& ($one,$five,$fifteen) = (`uptime` =~ /(\\ed+\\e.\\ed+)/"
1903 "g);"
1904 msgstr ""
1905 "\\& # kontekst listowy \\& ($one,$five,$fifteen) = (`uptime` =~ /(\\ed+\\e."
1906 "\\ed+)/g);"
1907
1908 #. type: Plain text
1909 #: perlop.1:976
1910 msgid ""
1911 "\\& # scalar context \\& $/ = \"\"; $* = 1; # $*, not recommended in modern "
1912 "Perl \\& while (defined($paragraph = E<lt>E<gt>)) { \\& while ($paragraph =~ /"
1913 "[a-z]['\")]*[.!?]+['\")]*\\es/g) { \\& $sentences++; \\& } \\& } \\& print "
1914 "\"$sentences\\en\";"
1915 msgstr ""
1916 "\\& # kontekst skalarny \\& $/ = \"\"; $* = 1; # $*, niezalecany w "
1917 "nowoczesnych perlach \\& while (defined($paragraph = E<lt>E<gt>)) { \\& while "
1918 "($paragraph =~ /[a-z]['\")]*[.!?]+['\")]*\\es/g) { \\& $sentences++; \\& } "
1919 "\\& } \\& print \"$sentences\\en\";"
1920
1921 #. type: Plain text
1922 #: perlop.1:988
1923 msgid ""
1924 "\\& # używanie m//gc z \\eG \\& $_ = \"ppooqppqq\"; \\& while ($i++ E<lt> 2) "
1925 "{ \\& print \"1: '\"; \\& print $1 while /(o)/gc; print \"', pos=\", pos, "
1926 "\"\\en\"; \\& print \"2: '\"; \\& print $1 if /\\eG(q)/gc; print \"', pos=\", "
1927 "pos, \"\\en\"; \\& print \"3: '\"; \\& print $1 while /(p)/gc; print \"', "
1928 "pos=\", pos, \"\\en\"; \\& }"
1929 msgstr ""
1930 "\\& # używanie m//gc z \\eG \\& $_ = \"ppooqppqq\"; \\& while ($i++ E<lt> 2) "
1931 "{ \\& print \"1: '\"; \\& print $1 while /(o)/gc; print \"', pos=\", pos, "
1932 "\"\\en\"; \\& print \"2: '\"; \\& print $1 if /\\eG(q)/gc; print \"', pos=\", "
1933 "pos, \"\\en\"; \\& print \"3: '\"; \\& print $1 while /(p)/gc; print \"', "
1934 "pos=\", pos, \"\\en\"; \\& }"
1935
1936 #. type: Plain text
1937 #: perlop.1:990
1938 msgid "The last example should give:"
1939 msgstr "Ostatni przykład powinien dać:"
1940
1941 #. type: Plain text
1942 #: perlop.1:998
1943 msgid ""
1944 "\\& 1: 'oo', pos=4 \\& 2: 'q', pos=5 \\& 3: 'pp', pos=7 \\& 1: '', pos=7 \\& "
1945 "2: 'q', pos=8 \\& 3: '', pos=8"
1946 msgstr ""
1947 "\\& 1: 'oo', pos=4 \\& 2: 'q', pos=5 \\& 3: 'pp', pos=7 \\& 1: '', pos=7 \\& "
1948 "2: 'q', pos=8 \\& 3: '', pos=8"
1949
1950 #. type: Plain text
1951 #: perlop.1:1004
1952 msgid ""
1953 "A useful idiom for scanners like CW<lex> is CW</\\eG.../gc>. You can combine "
1954 "different kinds of regular expressions in this way, allowing you to process a "
1955 "string piece by piece, doing different things depending on which expression "
1956 "it hits. Each expression tries to pick up where the last one left off."
1957 msgstr ""
1958 "Przydatnym idiomem dla skanerów w rodzaju CW<lex> jest CW</\\eG.../gc>. "
1959 "Możesz tak łączyć różne rodzaje wyrażeń regularnych, mając tak możliwość "
1960 "przetwarzania łańcucha kawałek po kawałku, dokonując różnych akcji, zależnie "
1961 "od tego, które wyrażenie zostało trafione. Każde wyrażenie próbuje trafić "
1962 "tam, gdzie poprzednie zakończyło."
1963
1964 #. type: Plain text
1965 #: perlop.1:1020
1966 msgid ""
1967 "\\& $_ = E<lt>E<lt>'EOL'; \\& $url = new URI::URL \"http://www/\"; die if "
1968 "$url eq \"xXx\"; \\& EOL \\& LOOP: \\& { \\& print(\" digits\"), redo LOOP "
1969 "if /\\eG\\ed+\\eb[,.;]?\\es*/gc; \\& print(\" lowercase\"), redo LOOP if /"
1970 "\\eG[a-z]+\\eb[,.;]?\\es*/gc; \\& print(\" UPPERCASE\"), redo LOOP if /\\eG[A-"
1971 "Z]+\\eb[,.;]?\\es*/gc; \\& print(\" Capitalized\"), redo LOOP if /\\eG[A-Z][a-"
1972 "z]+\\eb[,.;]?\\es*/gc; \\& print(\" MiXeD\"), redo LOOP if /\\eG[A-Za-z]+"
1973 "\\eb[,.;]?\\es*/gc; \\& print(\" alphanumeric\"), redo LOOP if /\\eG[A-Za-"
1974 "z0-9]+\\eb[,.;]?\\es*/gc; \\& print(\" line-noise\"), redo LOOP if /\\eG[^A-"
1975 "Za-z0-9]+/gc; \\& print \". That's all!\\en\"; \\& }"
1976 msgstr ""
1977 "\\& $_ = E<lt>E<lt>'EOL'; \\& $url = new URI::URL \"http://www/\"; die if "
1978 "$url eq \"xXx\"; \\& EOL \\& LOOP: \\& { \\& print(\" digits\"), redo LOOP "
1979 "if /\\eG\\ed+\\eb[,.;]?\\es*/gc; \\& print(\" lowercase\"), redo LOOP if /"
1980 "\\eG[a-z]+\\eb[,.;]?\\es*/gc; \\& print(\" UPPERCASE\"), redo LOOP if /\\eG[A-"
1981 "Z]+\\eb[,.;]?\\es*/gc; \\& print(\" Capitalized\"), redo LOOP if /\\eG[A-Z][a-"
1982 "z]+\\eb[,.;]?\\es*/gc; \\& print(\" MiXeD\"), redo LOOP if /\\eG[A-Za-z]+"
1983 "\\eb[,.;]?\\es*/gc; \\& print(\" alphanumeric\"), redo LOOP if /\\eG[A-Za-"
1984 "z0-9]+\\eb[,.;]?\\es*/gc; \\& print(\" line-noise\"), redo LOOP if /\\eG[^A-"
1985 "Za-z0-9]+/gc; \\& print \". That's all!\\en\"; \\& }"
1986
1987 #. type: Plain text
1988 #: perlop.1:1022
1989 msgid "Here is the output (split over multiple lines):"
1990 msgstr "Oto wyjście (podzielone na kilka linii):"
1991
1992 #. type: Plain text
1993 #: perlop.1:1028
1994 msgid ""
1995 "\\& line-noise lowercase line-noise lowercase UPPERCASE line-noise \\& "
1996 "UPPERCASE line-noise lowercase line-noise lowercase line-noise \\& lowercase "
1997 "lowercase line-noise lowercase lowercase line-noise \\& MiXeD line-noise. "
1998 "That's all!"
1999 msgstr ""
2000 "\\& line-noise lowercase line-noise lowercase UPPERCASE line-noise \\& "
2001 "UPPERCASE line-noise lowercase line-noise lowercase line-noise \\& lowercase "
2002 "lowercase line-noise lowercase lowercase line-noise \\& MiXeD line-noise. "
2003 "That's all!"
2004
2005 #. type: IX
2006 #: perlop.1:1030
2007 #, no-wrap
2008 msgid "q/\\s-1STRING\\s0/"
2009 msgstr "q/\\s-1ŁAŃCUCH\\s0/"
2010
2011 #. type: IX
2012 #: perlop.1:1032
2013 #, no-wrap
2014 msgid "CW<'STRING'>"
2015 msgstr "CW<'ŁAŃCUCH'>"
2016
2017 #. type: Plain text
2018 #: perlop.1:1037
2019 msgid ""
2020 "A single quoted literal string. A backslash matches a backslash, unless it is "
2021 "followed by a delimiter or another backslash -- in which case the backslash "
2022 "or delimiter is interpolated."
2023 msgstr ""
2024 "Pojedynczo zacytowany łańcuch literalny. Odwrotny ukośnik oznacza odwrotny "
2025 "ukośnik, chyba że znajduje się za nim ogranicznik lub inny odwrotny ukośnik "
2026 "-- w tym wypadku odwrotny ukośnik, lub ogranicznik jest interpolowany."
2027
2028 #. type: Plain text
2029 #: perlop.1:1042
2030 msgid ""
2031 "\\& $foo = q!I said, \"You said, 'She said it.'\"!; \\& $bar = q('This is "
2032 "it.'); \\& $baz = '\\en'; # two-character string"
2033 msgstr ""
2034 "\\& $foo = q!I said, \"You said, 'She said it.'\"!; \\& $bar = q('This is "
2035 "it.'); \\& $baz = '\\en'; # łańcuch dwuznakowy"
2036
2037 #. type: IX
2038 #: perlop.1:1044
2039 #, no-wrap
2040 msgid "qq/\\s-1STRING\\s0/"
2041 msgstr "qq/\\s-1ŁAŃCUCH\\s0/"
2042
2043 #. type: IX
2044 #: perlop.1:1046
2045 #, no-wrap
2046 msgid "\\*(N"
2047 msgstr "\\*(N"
2048
2049 #. type: IX
2050 #: perlop.1:1046
2051 #, no-wrap
2052 msgid "\\s-1STRING\\s0\\*(T\"\""
2053 msgstr "\\s-1ŁAŃCUCH\\s0\\*(T\"\""
2054
2055 #. type: Plain text
2056 #: perlop.1:1048
2057 msgid "A string in double quotes, interpolated."
2058 msgstr "Łańcuch w podwójnych cudzysłowach, interpolowany."
2059
2060 #. type: Plain text
2061 #: perlop.1:1054
2062 msgid ""
2063 "\\& $_ .= qq \\& (*** The previous line contains the naughty word \"$1\"."
2064 "\\en) \\& if /(tcl|rexx|python)/; # :-) \\& $baz = \"\\en\"; # single "
2065 "character string"
2066 msgstr ""
2067 "\\& $_ .= qq \\& (*** The previous line contains the naughty word \"$1\"."
2068 "\\en) \\& if /(tcl|rexx|python)/; # :-) \\& $baz = \"\\en\"; # łańcuch "
2069 "jednoznakowy"
2070
2071 #. type: IX
2072 #: perlop.1:1056
2073 #, no-wrap
2074 msgid "qx/\\s-1STRING\\s0/"
2075 msgstr "qx/\\s-1ŁAŃCUCH\\s0/"
2076
2077 #. type: IX
2078 #: perlop.1:1058
2079 #, no-wrap
2080 msgid "`\\s-1STRING\\s0`"
2081 msgstr "`\\s-1ŁAŃCUCH\\s0`"
2082
2083 #. type: Plain text
2084 #: perlop.1:1064
2085 msgid ""
2086 "A string that is interpolated and then run as a system command. The collected "
2087 "standard output of the command is returned. In scalar context, it appears as "
2088 "a single, multi-line string. In list context, it is separated into a list of "
2089 "lines (however you defined $/ lines or CW<$INPUT_RECORD_SEPARATOR>)."
2090 msgstr ""
2091 "Łańcuch, który jest interpolowany, a następnie uruchamainay jako komenda "
2092 "systemowa. Zebrane standardowe wyjście komendy jest zwracane. W kontekście "
2093 "skalarnym, pojawia się jako pojedynczy, wieloliniowy łańcuch. W kontekście "
2094 "listowym, jest rozdzielony na listę linii (jakkolwiek zdefiniowałeś linie $/ "
2095 "lub CW<$INPUT_RECORD_SEPARATOR>)."
2096
2097 #. type: Plain text
2098 #: perlop.1:1067
2099 msgid "\\& $today = qx{ date };"
2100 msgstr "\\& $today = qx{ date };"
2101
2102 #. type: Plain text
2103 #: perlop.1:1069
2104 msgid "See the section on I/O operators."
2105 msgstr "Zobacz sekcję o operatorach I/O."
2106
2107 #. type: IX
2108 #: perlop.1:1070
2109 #, no-wrap
2110 msgid "qw/\\s-1STRING\\s0/"
2111 msgstr "qw/\\s-1ŁAŃCUCH\\s0/"
2112
2113 #. type: Plain text
2114 #: perlop.1:1073
2115 msgid ""
2116 "Returns a list of words, extracted from a string using embedded whitespace "
2117 "characters as word delimiters. This is equivalent to"
2118 msgstr ""
2119 "Zwraca listę słów, wyciągniętych z łańcucha przy użyciu osadzonych białych "
2120 "spacji, jako ograniczników słów. Jest to równoważne"
2121
2122 #. type: Plain text
2123 #: perlop.1:1076
2124 msgid "\\& split(' ', q/STRING/);"
2125 msgstr "\\& split(' ', q/ŁAŃCUCH/);"
2126
2127 #. type: Plain text
2128 #: perlop.1:1078
2129 msgid "Some frequently used examples:"
2130 msgstr "Pewne często używane przykłady:"
2131
2132 #. type: Plain text
2133 #: perlop.1:1082
2134 msgid ""
2135 "\\& use POSIX qw( setlocale localeconv ) \\& @EXPORT = qw( foo bar baz );"
2136 msgstr ""
2137 "\\& use POSIX qw( setlocale localeconv ) \\& @EXPORT = qw( foo bar baz );"
2138
2139 #. type: Plain text
2140 #: perlop.1:1086
2141 msgid ""
2142 "A common mistake is to try to separate words with a comma, or to insert "
2143 "comments into multi-line strings. In this situation, the CW<-w> switch "
2144 "produces warnings if the string contains the characters \\*(L\"#\\*(R\"."
2145 msgstr ""
2146 "Częstym błędem jest próba rozdzielania słów przecinkiem, lub wstwianie do "
2147 "wieloliniowych łańcuchów qw komentarzy. W tej sytuacji, przełącznik CW<-w> "
2148 "daje ostrzeżenia jeśli łańcuch zawiera znaki \\*(L\"#\\*(R\"."
2149
2150 #. type: IX
2151 #: perlop.1:1087
2152 #, no-wrap
2153 msgid "s/\\s-1PATTERN/REPLACEMENT/\\s0egimosx"
2154 msgstr ""
2155
2156 #. type: Plain text
2157 #: perlop.1:1091
2158 msgid ""
2159 "Looks for a pattern in a string, and if it finds one, replaces it with the "
2160 "replacement text and returns the number of replacements. Otherwise, it "
2161 "returns false (specifically, the empty string)."
2162 msgstr ""
2163 "Szuka w łańcuchu wzorca, a jeśli go znajdzie, to zamienia go tekstem zamiany "
2164 "i zwraca liczbę zamian. W przeciwnym wypadku zwraca fałsz (specyficznie pusty "
2165 "łańcuch)."
2166
2167 #. type: Plain text
2168 #: perlop.1:1096
2169 msgid ""
2170 "If no string is supplied by the CW<=~> or CW<!~> operator, the variable "
2171 "CW<$_> is used. (The string supplied by CW<=~> must be a scalar variable, an "
2172 "element of an array, an associative array, or an assignment to one of these, "
2173 "i.e. an lvalue.)"
2174 msgstr ""
2175 "Jeśli przez operator CW<=~> lub CW<!~> nie podano łańcucha, używana jest "
2176 "zmienna CW<$_>. (Łańcuch podany przez CW<=~> musi być zmienną skalarną, "
2177 "elementem tablicy, tablicy asocjacyjnej, lub przypisaniem do jednego z nich, "
2178 "czyli lwartością.)"
2179
2180 #. type: Plain text
2181 #: perlop.1:1108
2182 msgid ""
2183 "If the chosen delimiter is a single quote, neither \\s-1PATTERN\\s0 nor "
2184 "\\s-1REPLACEMENT\\s0 are interpolated. Otherwise, if \\s-1PATTERN\\s0 "
2185 "contains $, which looks more like a variable than an end-of-string test, the "
2186 "variable will be interpolated at runtime. If you want the pattern to be "
2187 "compiled only once, the first time the variable is interpolated, use the CW</"
2188 "o> option. If the pattern is parsed as a null string, the last normal regular "
2189 "expression is used instead. See also the B<perlre>(1) manual page. Also see "
2190 "B<perllocale>(1) for the effects of CW<use locale>."
2191 msgstr ""
2192 "Jeśli wybrany ogranicznik jest pojedynczym cudzysłowem, nie dokonywana jest "
2193 "interpolacja ani zmiennych \\s-1WZORCA\\s0, ani \\s-1ZAMIANY\\s0. W "
2194 "przeciwnym wypadku, jeśli \\s-1WZORZEC\\s0 zawiera $, który wygląda bardziej "
2195 "jak zmienna, niż test końca łańcucha, zmienna będzie interpolowana w czasie "
2196 "działania. Jeśli chcesz, by wzorzec był kompilowany tylko raz, za pierwszą "
2197 "interpolacją zmiennej, użyj opcji CW</o>. Jeśli wzorzec jest analizowany jako "
2198 "łańcuch null, uzywane jest zamiast tego ostatnie normalne wyrażenie "
2199 "regularne. Zobacz jeszcze podręcznik B<perlre>(1). Zobacz też "
2200 "B<perllocale>(1), aby dowiedzieć się o wpływie CW<use locale>."
2201
2202 #. type: Plain text
2203 #: perlop.1:1119
2204 msgid ""
2205 "\\& e Parse the right side as an expression \\& g Replace globally \\& i "
2206 "Don't care about case \\& m Treat the string as multiple lines \\& o Compile "
2207 "the pattern only once \\& s Treat the string as a single line \\& x Use "
2208 "extended regular expressions"
2209 msgstr ""
2210 "\\& e Analizuj prawą stronę jako wyrażenie \\& g Zamieniaj globalnie \\& i "
2211 "Nie zwracaj uwagi na wielkość liter \\& m Traktuj łańcuch jak wiele linii \\& "
2212 "o Kompiluj wzorzec tylko raz \\& s Traktuj łańcuch jako pojedynczą linię \\& "
2213 "x Użyj rozszerzonych wyrażeń regularnych"
2214
2215 #. type: Plain text
2216 #: perlop.1:1132
2217 msgid ""
2218 "Backslashes may be replaced by any non-alphanumeric, non-whitespace "
2219 "delimiter. If single quotes are used, no expansion of the replacement string "
2220 "is done (the CW</e> modifier overrides this behavior). Unlike Perl 4, Perl 5 "
2221 "treats backquotes as normal delimiters; the replacement text is not executed "
2222 "as a command. If \\s-1PATTERN\\s0 is delimited by bracket quotes, "
2223 "\\s-1REPLACEMENT\\s0 has its own quote pair, which may or may not be bracket "
2224 "quotes, e.g. CW<s(foo)(bar)> or CW<sE<lt>fooE<gt>/bar/>. CW</e> will cause "
2225 "the replacement portion to be interpreted as a full Perl expression and "
2226 "I<eval()>ed immediately afterwards. Its syntax is, however, checked at "
2227 "compile time."
2228 msgstr ""
2229 "Ukośniki mogą być zamienione przez dowolny, niealfanumeryczny i "
2230 "niebiałospacjowy ogranicznik. Jeśli użyte są pojedyncze cudzysłowy, nie "
2231 "dokonywana jest interpretacja łańcucha zamiany (modyfikator CW</e> przeciąża "
2232 "to zachowanie). W przeciwnieństwie do perla 4, perl 5 traktuje odwrotne "
2233 "cudzysłowy jako normalne ograniczniki; tekst zamiany nie jest wykonywany jako "
2234 "komenda. Jeśli \\s-1WZORZEC\\s0 jest rozdzielany cytatami nawiasowymi, "
2235 "\\s-1ZAMIANA\\s0 ma swoją własną parę cytatów, która może, lub nie, być "
2236 "cytatami nawiasowymi, np. CW<s(foo)(bar)> lub CW<sE<lt>fooE<gt>/bar/>. CW</"
2237 "e> spowoduje, że porcja zamiany zostanie zinterpretowana jako pełne perlowe "
2238 "wyrażenie i zI<eval()>owana zaraz potem. Jego składnia jest jednak "
2239 "sprawdzania podczas kompilacji."
2240
2241 #. type: Plain text
2242 #: perlop.1:1137
2243 msgid "\\& s/\\ebgreen\\eb/mauve/g; # don't change wintergreen"
2244 msgstr "\\& s/\\ebgreen\\eb/mauve/g; # nie zmieniaj wintergreen"
2245
2246 #. type: Plain text
2247 #: perlop.1:1140
2248 msgid "\\& $path =~ s|/usr/bin|/usr/local/bin|;"
2249 msgstr "\\& $path =~ s|/usr/bin|/usr/local/bin|;"
2250
2251 #. type: Plain text
2252 #: perlop.1:1143
2253 msgid "\\& s/Login: $foo/Login: $bar/; # time pattern of operation"
2254 msgstr "\\& s/Login: $foo/Login: $bar/; # wzorzec czasu działania"
2255
2256 #. type: Plain text
2257 #: perlop.1:1146
2258 msgid "\\& ($foo = $bar) =~ s/this/that/;"
2259 msgstr "\\& ($foo = $bar) =~ s/this/that/;"
2260
2261 #. type: Plain text
2262 #: perlop.1:1149
2263 msgid "\\& $count = ($paragraph =~ s/Mister\\eb/Mr./g);"
2264 msgstr "\\& $count = ($paragraph =~ s/Mister\\eb/Mr./g);"
2265
2266 #. type: Plain text
2267 #: perlop.1:1155
2268 msgid ""
2269 "\\& $_ = 'abc123xyz'; \\& s/\\ed+/$&*2/e; # daje 'abc246xyz' \\& s/\\ed+/"
2270 "sprintf(\"%5d\",$&)/e; # daje 'abc 246xyz' \\& s/\\ew/$& x 2/eg; # daje "
2271 "'aabbcc 224466xxyyzz'"
2272 msgstr ""
2273 "\\& $_ = 'abc123xyz'; \\& s/\\ed+/$&*2/e; # daje 'abc246xyz' \\& s/\\ed+/"
2274 "sprintf(\"%5d\",$&)/e; # daje 'abc 246xyz' \\& s/\\ew/$& x 2/eg; # daje "
2275 "'aabbcc 224466xxyyzz'"
2276
2277 #. type: Plain text
2278 #: perlop.1:1160
2279 msgid ""
2280 "\\& s/%(.)/$percent{$1}/g; # change percentage escapes; without /e \\& s/%(.)/"
2281 "$percent{$1} || $&/ge; # now with the expression, with /e \\& s/^=(\\ew+)/"
2282 "&pod($1)/ge; # use function call"
2283 msgstr ""
2284 "\\& s/%(.)/$percent{$1}/g; # zmień eskejpy procentowe; bez /e \\& s/%(.)/"
2285 "$percent{$1} || $&/ge; # teraz z wyrażenim, z /e \\& s/^=(\\ew+)/&pod($1)/ge; "
2286 "# użyj wywołania funkcji"
2287
2288 #. type: Plain text
2289 #: perlop.1:1165
2290 msgid ""
2291 "\\& # /e can nest; this will expand \\& # simple variables embedded in $_ \\& "
2292 "s/(\\e$\\ew+)/$1/eeg;"
2293 msgstr ""
2294 "\\& # /e mogą się zagnieżdżać; to rozwinie \\& # proste zmienne osadzone w $_ "
2295 "\\& s/(\\e$\\ew+)/$1/eeg;"
2296
2297 #. type: Plain text
2298 #: perlop.1:1173
2299 msgid ""
2300 "\\& # Remove comments C \\& $program =~ s { \\& /\\e* # Match the opening "
2301 "delimiter. \\& .*? # Match the minimum number of characters. \\& \\e*/ # "
2302 "Match the closing delimiter. \\& } []gsx;"
2303 msgstr ""
2304 "\\& # Usuń komentarze C \\& $program =~ s { \\& /\\e* # Traf na rozdzielacz "
2305 "otwierający. \\& .*? # Traf w minimalną liczbę znaków. \\& \\e*/ # Traf w "
2306 "rozdzielacz zamykający. \\& } []gsx;"
2307
2308 #. type: Plain text
2309 #: perlop.1:1176
2310 msgid "\\& s/^\\es*(.*?)\\es*$/$1/; # cut off white space"
2311 msgstr "\\& s/^\\es*(.*?)\\es*$/$1/; # odetnij białą spację"
2312
2313 #. type: Plain text
2314 #: perlop.1:1179
2315 msgid "\\& s/([^ ]*) *([^ ]*)/$2 $1/; # swap first 2 fields"
2316 msgstr "\\& s/([^ ]*) *([^ ]*)/$2 $1/; # zamień 1-sze 2 pola"
2317
2318 #. type: Plain text
2319 #: perlop.1:1183
2320 msgid ""
2321 "Notice that in the last example \\e is used instead of $. Unlike B<sed>(1)a, "
2322 "we use the form \\eE<lt>I<digit>E<gt> only on the left side. Everywhere else, "
2323 "it is $E<lt>I<digit>E<gt>."
2324 msgstr ""
2325 "Zauważ, że w ostatnim przykładzie zamiast $ użyto \\e. W przeciwieństwie do "
2326 "B<sed>(1)a, używamy postaci \\eE<lt>I<cyfra>E<gt> tylko po lewej stronie. "
2327 "Wszędzie indziej, jest to $E<lt>I<cyfra>E<gt>."
2328
2329 #. type: Plain text
2330 #: perlop.1:1186
2331 msgid ""
2332 "Sometimes you can't just use CW</g> for all the changes to happen. Here are "
2333 "two common cases:"
2334 msgstr ""
2335 "Czasami nie można użyć po prostu CW</g>, aby zaszły wszystkie zmiany. Oto "
2336 "dwa popularne przypadki:"
2337
2338 #. type: Plain text
2339 #: perlop.1:1191
2340 msgid ""
2341 "\\& # insert commas in the appropriate integer places \\& 1 while s/(.*\\ed)"
2342 "(\\ed\\ed\\ed)/$1,$2/g; # perl4 \\& 1 while s/(\\ed)(\\ed\\ed\\ed)(?!\\ed)/"
2343 "$1,$2/g; # perl5"
2344 msgstr ""
2345 "\\& # wstaw przecinki we właściwych miejscach integera \\& 1 while s/(.*\\ed)"
2346 "(\\ed\\ed\\ed)/$1,$2/g; # perl4 \\& 1 while s/(\\ed)(\\ed\\ed\\ed)(?!\\ed)/"
2347 "$1,$2/g; # perl5"
2348
2349 #. type: Plain text
2350 #: perlop.1:1195
2351 msgid ""
2352 "\\& # expand tabs to 8-column spaces \\& 1 while s/\\et+/' ' x (length($&)*8 "
2353 "- length($`)%8)/e;"
2354 msgstr ""
2355 "\\& # rozwiń tabulacje na 8-kolumnowe spacje \\& 1 while s/\\et+/' ' x "
2356 "(length($&)*8 - length($`)%8)/e;"
2357
2358 #. type: IX
2359 #: perlop.1:1197
2360 #, no-wrap
2361 msgid "tr/\\s-1SEARCHLIST/REPLACEMENTLIST/\\s0cds"
2362 msgstr ""
2363
2364 #. type: IX
2365 #: perlop.1:1199
2366 #, no-wrap
2367 msgid "y/\\s-1SEARCHLIST/REPLACEMENTLIST/\\s0cds"
2368 msgstr ""
2369
2370 #. type: IX
2371 #: perlop.1:1199
2372 #, no-wrap
2373 msgid "8"
2374 msgstr "8"
2375
2376 #. type: Plain text
2377 #: perlop.1:1210
2378 msgid ""
2379 "Translates all occurrences of characters found in the search list to the "
2380 "corresponding characters in the replacement list. Returns the number of "
2381 "characters replaced or deleted. If no string is supplied with the =~ or !~ "
2382 "operator, CW<$_> is used. (The string specified by =~ must be a scalar "
2383 "variable, an array element, an associative array element, or an assignment to "
2384 "one of these, i.e., an lvalue.) For B<sed>(1) enthusiasts, a synonym for "
2385 "CW<tr> is provided called CW<y>. If \\s-1SEARCHLIST\\s0 is bracketed, then "
2386 "\\s-1REPLACEMENTLIST\\s0 need not have brackets, e.g., CW<tr[A-Z][a-z]> or "
2387 "CW<tr(+-*/)/ABCD/>."
2388 msgstr ""
2389 "Tłumaczy wszystkie pojawienia się znaków, znalezione w liście szukania, na "
2390 "odpowiadające znaki z listy zamiany. Zwraca liczbę zamienionych, lub "
2391 "skasowanych znaków. Jeśli nie podano łańcucha w operatorze =~ lub !~, używane "
2392 "jest CW<$_>. (Łańcuch określony przez =~ musi być zmienną skalarną, elementem "
2393 "tablicy, elementem tablicy asocjacyjnej, lub przypisaniem do jednego z nich, "
2394 "czyli lwartością). Dla miłośników edytora B<sed>(1), udostępniono synonim "
2395 "CW<tr> pod nazwą CW<y>. Jeśli \\s-1LISTASZUKANIA\\s0 jest rozdzielona "
2396 "nawiasami, to \\s-1LISTAZAMIANY\\s0 nie musi ich mieć, np. CW<tr[A-Z][a-z]> "
2397 "lub CW<tr(+-*/)/ABCD/>."
2398
2399 #. type: Plain text
2400 #: perlop.1:1212
2401 msgid "Options:"
2402 msgstr "Opcje:"
2403
2404 #. type: Plain text
2405 #: perlop.1:1217
2406 msgid ""
2407 "\\& c Complete SEARCHLIST \\& d Delete found but not replaced characters \\& "
2408 "s Squash duplicate replaced characters"
2409 msgstr ""
2410 "\\& c Dopełnij LISTĘSZUKANIA \\& d Kasuj znalezione, lecz niezamienione znaki "
2411 "\\& s Zmiażdż zduplikowane zamienione znaki"
2412
2413 #. type: Plain text
2414 #: perlop.1:1225
2415 msgid ""
2416 "If the CW</c> modifier is given, the set of characters from "
2417 "\\s-1SEARCHLIST\\s0 is complemented. If the CW</d> modifier is given, any "
2418 "characters given in \\s-1SEARCHLIST\\s0 but not found in "
2419 "\\s-1REPLACEMENTLIST\\s0 are deleted. If the CW</s> modifier is given, then "
2420 "sequences that translate to the same character are crushed to a single "
2421 "instance of that character."
2422 msgstr ""
2423 "Jeśli podany jest modyfikator CW</c>, zbiór znaków z \\s-1LISTYSZUKANIA\\s0 "
2424 "jest dopełniany. Jeśli podany jest modyfikator CW</d>, wszelkie znaki, podane "
2425 "w \\s-1LIŚCIESZUKANIA\\s0, a nie znalezione w \\s-1LIŚCIEZAMIANY\\s0 są "
2426 "kasowane. Jeśli podany jest modyfikator CW</s>, to sekwencje, które zostały "
2427 "przetłumaczone do tego samego znaku są miażdżone do pojedynczej instancji "
2428 "tego znaku."
2429
2430 #. type: Plain text
2431 #: perlop.1:1233
2432 msgid ""
2433 "If the CW</d> modifier is used, \\s-1REPLACEMENTLIST\\s0 is always "
2434 "interpreted as given. Otherwise, if \\s-1REPLACEMENTLIST\\s0 is shorter than "
2435 "\\s-1SEARCHLIST\\s0, the last character of it is replicated until it fills "
2436 "the missing spaces. If \\s-1REPLACEMENTLIST\\s0 is null, then "
2437 "\\s-1SEARCHLIST\\s0 is replicated. This is useful for counting characters in "
2438 "a class, or for crushing character sequences of the class."
2439 msgstr ""
2440 "Jeśli użyty jest modyfikator CW</d>, \\s-1LISTAZAMIANY\\s0 jest zawsze "
2441 "interpretowana tak, jak jest podana. W przeciwnym wypadku, gdy "
2442 "\\s-1LISTAZAMIANY\\s0 jest krótsza niż \\s-1LISTASZUKANIA\\s0, ostatni jej "
2443 "znak jest replikowany tak długo, aż wypełni brakujące miejsca. Jeśli "
2444 "\\s-1LISTAZAMIANY\\s0 jest null, to replikowana jest \\s-1LISTASZUKANIA\\s0. "
2445 "Jest to przydatne do zliczania znaków w klasie, lub dla miażdżenia sekwencji "
2446 "znakowych klasy."
2447
2448 #. type: Plain text
2449 #: perlop.1:1238
2450 msgid "\\& $ARGV[1] =~ tr/A-Z/a-z/; # change to lowercase"
2451 msgstr "\\& $ARGV[1] =~ tr/A-Z/a-z/; # zmień na małe litery"
2452
2453 #. type: Plain text
2454 #: perlop.1:1241
2455 msgid "\\& $cnt = tr/*/*/; # count stars in $_"
2456 msgstr "\\& $cnt = tr/*/*/; # zlicz gwiazdy w $_"
2457
2458 #. type: Plain text
2459 #: perlop.1:1244
2460 msgid "\\& $cnt = $sky =~ tr/*/*/; # count sockets in $sky"
2461 msgstr "\\& $cnt = $sky =~ tr/*/*/; # zlicz gniazdy w $sky"
2462
2463 #. type: Plain text
2464 #: perlop.1:1247
2465 msgid "\\& $cnt = tr/0-9//; # count digits in $_"
2466 msgstr "\\& $cnt = tr/0-9//; # zlicz cyfry w $_"
2467
2468 #. type: Plain text
2469 #: perlop.1:1250
2470 msgid "\\& tr/a-zA-Z//s; # bookkeeper -E<gt> bokeper"
2471 msgstr "\\& tr/a-zA-Z//s; # bookkeeper -E<gt> bokeper"
2472
2473 #. type: Plain text
2474 #: perlop.1:1253
2475 msgid "\\& ($HOST = $host) =~ tr/a-z/A-Z/;"
2476 msgstr "\\& ($HOST = $host) =~ tr/a-z/A-Z/;"
2477
2478 #. type: Plain text
2479 #: perlop.1:1256
2480 msgid "\\& tr/a-zA-Z/ /cs; # change non-alphabetical to spaces"
2481 msgstr "\\& tr/a-zA-Z/ /cs; # zmień niealfabetyczne na spacje"
2482
2483 #. type: Plain text
2484 #: perlop.1:1260
2485 msgid "\\& tr [\\e200-\\e377] \\& [\\e000-\\e177]; # delete 8th bit"
2486 msgstr "\\& tr [\\e200-\\e377] \\& [\\e000-\\e177]; # skasuj 8-my bit"
2487
2488 #. type: Plain text
2489 #: perlop.1:1262
2490 msgid ""
2491 "If multiple translations are given for a character, only the first one is "
2492 "used:"
2493 msgstr "Jeśli dla znaku podano wiele translacji, używana jest tylko pierwsza:"
2494
2495 #. type: Plain text
2496 #: perlop.1:1265
2497 msgid "\\& tr/AAA/XYZ/"
2498 msgstr "\\& tr/AAA/XYZ/"
2499
2500 #. type: Plain text
2501 #: perlop.1:1267
2502 msgid "will translate A to X."
2503 msgstr "przetłumaczy A na X."
2504
2505 #. type: Plain text
2506 #: perlop.1:1272
2507 msgid ""
2508 "Note that because the translation table is built at compile time, neither "
2509 "\\s-1SEARCHLIST\\s0 nor \\s-1REPLACEMENTLIST\\s0 are subject to quote "
2510 "interpolation. This means that if you want to use variables, you must use "
2511 "I<eval()>:"
2512 msgstr ""
2513 "Zauważ, że z uwagi na to, że tablica translacji jest budowana w czasie "
2514 "kompilacji, ani \\s-1LISTASZUKANIA\\s0, ani \\s-1LISTAZAMIANY\\s0 nie "
2515 "podlegają interpolacji cudzysłowowej. Znaczy to, że jeśli chcesz używać "
2516 "zmiennych, musisz użyć I<eval()>:"
2517
2518 #. type: Plain text
2519 #: perlop.1:1276
2520 msgid "\\& eval \"tr/$oldlist/$newlist/\"; \\& die $@ if $@;"
2521 msgstr "\\& eval \"tr/$oldlist/$newlist/\"; \\& die $@ if $@;"
2522
2523 #. type: Plain text
2524 #: perlop.1:1279
2525 msgid "\\& eval \"tr/$oldlist/$newlist/, 1\" or die $@;"
2526 msgstr "\\& eval \"tr/$oldlist/$newlist/, 1\" or die $@;"
2527
2528 #. type: IX
2529 #: perlop.1:1281
2530 #, no-wrap
2531 msgid "I/O Operators"
2532 msgstr ""
2533
2534 #. type: Plain text
2535 #: perlop.1:1301
2536 msgid ""
2537 "There are a number of I/O operators you should know about. A string enclosed "
2538 "in backquotes is first subjected to variable substitution, similar to a "
2539 "string enclosed in double quotes. It is then interpreted as a command, and "
2540 "its output is the value of the pseudo-literal, as in the shell. In scalar "
2541 "context, a single string consisting of the entire output is returned. In list "
2542 "context, a list of values ​​is returned for each line of output. (CW<$/> may be "
2543 "set, which overrides the default line terminator.) The command is executed "
2544 "each time the pseudo-literal is parsed. The status of the command is returned "
2545 "to CW<$?> (see the B<perlvar>(1) manual page). Unlike B<csh>(1), no \\*(-- "
2546 "newlines remain newlines on the return data. Unlike in all other shells, "
2547 "single quotes do not hide variable names in the command from expansion. To "
2548 "pass $ on, escape it with a backslash. The general form of backquotes is "
2549 "CW<qx//>. (Since they are always also expanded by the shell, see the "
2550 "B<perlsec>(1) manual page for security issues.)"
2551 msgstr ""
2552 "Istnieje wiele operatorów I/O (wejścia/wyjścia), o których powinieneś "
2553 "wiedzieć. Łańcuch ujęty w odwrotne cudzysłowy podlega najpierw podstawieniu "
2554 "zmiennych, podobnie jak łańcuch ujęty w podwójne cudzysłowy. Następnie jest "
2555 "interpretowany jako komenda, a jej wyjście jest wartością pseudoliterału, jak "
2556 "w powłoce. W kontekście skalarnym, zwracany jest pojedynczy łańcuch, "
2557 "skłądający się z całego wyjścia. W kontekście listowym, zwracana jest lista "
2558 "wartości dla każdej linii wyjścia. (Można ustawić CW<$/>, co przeciąży "
2559 "domyślny terminator linii.) Komenda jest wykonywana przy każdej analizie "
2560 "pseudoliterału. Status komendy jest zwracany do CW<$?> (zobacz podręcznik "
2561 "B<perlvar>(1)). W przeciwieństwie do B<csh>(1), nie jest na danych "
2562 "zwracanych dokonywana translacja \\*(-- nowe linie pozostają nowymi liniami. "
2563 "W przeciwieństwie do wszelkich innych powłok, pojedyncze cudzysłowyu nie "
2564 "ukrywają nazw zmiennych w komendzie od interpretacji. Aby przekazać $ dalej, "
2565 "należy go wycytować odwrotnym ukośnikiem. Ogólną postacią odwrotnych "
2566 "cudzysłowów jest CW<qx//>. (Ponieważ podlegają one zawsze również rozwinięciu "
2567 "przez powłokę, zobacz podręcznik B<perlsec>(1), który opisuje problemy "
2568 "bezpieczeństwa.)"
2569
2570 #. type: Plain text
2571 #: perlop.1:1312
2572 msgid ""
2573 "Parsing a filehandle that is in angle brackets extracts the next line from "
2574 "the file, or CW<undef> at the end of it. Normally, you would assign a value "
2575 "to the variable, but there is a situation where automatic assignment occurs. "
2576 "I<If and \\s-1ONLY\\s0 if> the entry symbol is the only thing inside the loop "
2577 "condition of CW<while> or CW<for(;;)>, then the value is automatically "
2578 "assigned to the variable CW<$_>. The assigned value is then checked to see if "
2579 "it is defined. (This may seem a bit strange, but you will use this construct "
2580 "in almost every Perl script you write.) The following lines are equivalent:"
2581 msgstr ""
2582 "Analiza uchwytu pliku, który jest w nawiasach trójkątnych, wyciąga z pliku "
2583 "następną linię, lub CW<undef> na jego końcu. Normalnie, musisz zmiennej "
2584 "przypisać wartość, lecz jest sytuacja, w której następuje automatyczne "
2585 "przypisanie. I<Jeśli i \\s-1TYLKO\\s0 jeśli> symbol wejścia jest jedyną "
2586 "rzeczą wewnątrz warunku pętli CW<while> lub CW<for(;;)>, to wartość jest "
2587 "przypisywana automatycznie zmiennej CW<$_>. Przypisana wartość jest potem "
2588 "sprawdzana, by zobaczyć czy jest zdefiniowane (Może się to wydawać trochę "
2589 "dziwne, lecz będziesz używać tej konstrukcji w prawie każdym swoim skrypcie "
2590 "perlowym.) Następujące linijki są sobie równoważne:"
2591
2592 #. type: Plain text
2593 #: perlop.1:1319
2594 msgid ""
2595 "\\& while (defined($_ = E<lt>STDINE<gt>)) { print; } \\& while "
2596 "(E<lt>STDINE<gt>) { print; } \\& for (;E<lt>STDINE<gt>;) { print; } \\& print "
2597 "while defined($_ = E<lt>STDINE<gt>); \\& print while E<lt>STDINE<gt>;"
2598 msgstr ""
2599 "\\& while (defined($_ = E<lt>STDINE<gt>)) { print; } \\& while "
2600 "(E<lt>STDINE<gt>) { print; } \\& for (;E<lt>STDINE<gt>;) { print; } \\& print "
2601 "while defined($_ = E<lt>STDINE<gt>); \\& print while E<lt>STDINE<gt>;"
2602
2603 #. type: Plain text
2604 #: perlop.1:1326
2605 msgid ""
2606 "(The filehandles \\s-1STDIN\\s0, \\s-1STDOUT\\s0, and \\s-1STDERR\\s0 are "
2607 "predefined filehandles. The filehandles CW<stdin>, CW<stdout>, and CW<stderr> "
2608 "will also work, but not in packages where they are interpreted as local "
2609 "identifiers rather than global ones.) Additional filehandles can be created "
2610 "with the I<open()> function. See its description in B<perlfunc>(1)."
2611 msgstr ""
2612 "Uchwyty plików \\s-1STDIN\\s0, \\s-1STDOUT\\s0 i \\s-1STDERR\\s0 to uchwyty "
2613 "predefiniowane. Uchwyty CW<stdin>, CW<stdout> i CW<stderr> też będą działać, "
2614 "lecz nie w pakietach, w których są interpretowane jako lokalne identyfikatory "
2615 "nie zaś jako globalne.) Dodatkowe uchwyty plików można tworzyć funkcją "
2616 "I<open()>. Zobacz jej opis w podręczniku B<perlfunc>(1)."
2617
2618 #. type: Plain text
2619 #: perlop.1:1331
2620 msgid ""
2621 "If E<lt>\\s-1FILEHANDLE\\s0 is used in a context expecting a list, a list is "
2622 "returned consisting of all the input lines, one line per list element. It is "
2623 "easy to waste such a large data area, so use this with caution."
2624 msgstr ""
2625 "Jeśli E<lt>\\s-1UCHWYTPLIKU\\s0 jest używany w kontekście, oczekującym listy, "
2626 "zwracana jest lista, składająca się ze wszystkich linii wejściowych, jedna "
2627 "linia na element listy. Łatwo jest zająć tak duży obszar danych, więc używaj "
2628 "tego ostrożnie."
2629
2630 #. type: Plain text
2631 #: perlop.1:1341
2632 msgid ""
2633 "The null filehandle E<lt>E<gt> is special and can be used to emulate the "
2634 "behavior of the B<sed>(1) or B<awk>(1) editors. Input from E<lt>E<gt> can "
2635 "come either from standard input or from any file listed on the command line. "
2636 "Here's how it works: the first time E<lt>E<gt> is parsed, the CW<@ARGV> array "
2637 "is checked and if it is null, CW<$ARGV[0]> is set to \\*(L\"-\\*(R\", which "
2638 "means standard input when opened. The CW<@ARGV> array is then parsed as a "
2639 "list of filenames. The loop"
2640 msgstr ""
2641 "Zerowy uchwyt pliku E<lt>E<gt> jest specjalny i może być używany do emulacji "
2642 "zachowania edytora B<sed>(1), lub B<awk>(1). Wejście z E<lt>E<gt> może "
2643 "nadchodzić zarówno ze standardowego wejścia, lub z każdego pliku, "
2644 "wymienionego w linii komend. Oto jak to działa: za pierwszą analizą "
2645 "E<lt>E<gt>, sprawdzana jest tablica CW<@ARGV> i jeśli jest zerowa, "
2646 "CW<$ARGV[0]> jest ustawiane na \\*(L\"-\\*(R\", co oznacza po otwarciu "
2647 "standardowe wejście. Tablica CW<@ARGV> jest następnie przetwarzana jako lista "
2648 "nazw plików. Pętla"
2649
2650 #. type: Plain text
2651 #: perlop.1:1346
2652 msgid "\\& while (E<lt>E<gt>) { \\& ... # code for each line \\& }"
2653 msgstr "\\& while (E<lt>E<gt>) { \\& ... # kod dla każdej linii \\& }"
2654
2655 #. type: Plain text
2656 #: perlop.1:1348
2657 msgid "is equivalent to the following pseudocode:"
2658 msgstr "jest równoważna następującemu pseudokodowi:"
2659
2660 #. type: Plain text
2661 #: perlop.1:1357
2662 msgid ""
2663 "\\& unshift(@ARGV, '-') unless @ARGV; \\& while ($ARGV = shift) { \\& "
2664 "open(ARGV, $ARGV); \\& while (E<lt>ARGVE<gt>) { \\& ... # code for each line "
2665 "\\& } \\& }"
2666 msgstr ""
2667 "\\& unshift(@ARGV, '-') unless @ARGV; \\& while ($ARGV = shift) { \\& "
2668 "open(ARGV, $ARGV); \\& while (E<lt>ARGVE<gt>) { \\& ... # kod dla każdej "
2669 "linii \\& } \\& }"
2670
2671 #. type: Plain text
2672 #: perlop.1:1363
2673 msgid ""
2674 "except that it's a bit prettier, and it works. It really just shifts the "
2675 "CW<@ARGV> array and puts the current filename into the CW<$ARGV> variable. It "
2676 "also uses the I<\\s-1ARGV\\s0> handle internally--E<lt>E<gt> is just a "
2677 "synonym for E<lt>\\s-1ARGV\\s0E<gt>, which is magic. (The above pseudocode "
2678 "doesn't work, because it treats \\s-1ARGV\\s0 as magic.)"
2679 msgstr ""
2680 "poza tym, że jest trochę ładniejsza i działa. Naprawdę przesuwa tablicę "
2681 "CW<@ARGV> i wstawia bieżącą nazwę pliku do zmiennej CW<$ARGV>. Używa też "
2682 "wewnętrznie uchwytu I<\\s-1ARGV\\s0>--E<lt>E<gt> jest po prostu synonimem "
2683 "E<lt>\\s-1ARGV\\s0E<gt>, który jest magiczny. (Powyższy pseudokod nie działa, "
2684 "gdyż traktuje \\s-1ARGV\\s0 amagicznie.)"
2685
2686 #. type: Plain text
2687 #: perlop.1:1368
2688 msgid ""
2689 "Przed pierwszym E<lt>E<gt> możesz modyfikować CW<@ARGV>, o ile tablica będzie "
2690 "zawierała listę plików, których oczekujesz. Numey linii (CW<$.>) są liczone "
2691 "tak, jakby wejście było tylko jednym, szczęśliwym plikiem. (Lecz zobacz "
2692 "przykład z I<eof()>, aby zobaczyć jak zresetować numery linii.)"
2693 msgstr ""
2694 "Przed pierwszym E<lt>E<gt> możesz modyfikować CW<@ARGV>, o ile tablica będzie "
2695 "zawierała listę plików, których oczekujesz. Numey linii (CW<$.>) są liczone "
2696 "tak, jakby wejście było tylko jednym, szczęśliwym plikiem. (Lecz zobacz "
2697 "przykład z I<eof()>, aby zobaczyć jak zresetować numery linii.)"
2698
2699 #. type: Plain text
2700 #: perlop.1:1372
2701 msgid ""
2702 "If you want to set CW<@ARGC> to your own list of files, that's fine. If you "
2703 "want to pass switches to your script, you can use one of the Getopts modules, "
2704 "or insert a loop like this at the beginning:"
2705 msgstr ""
2706 "Jeśli chcesz ustawić CW<@ARGC> na swoją własną listę plików, to nie ma "
2707 "sprawy. Jeśli chcesz przekazać do swojego skryptu przełączniki, możesz użyć "
2708 "jednego z modułów Getopts, lub wstawić na początku podobną pętlę:"
2709
2710 #. type: Plain text
2711 #: perlop.1:1384
2712 msgid ""
2713 "\\& while ($_ = $ARGV[0], /^-/) { \\& shift; \\& last if /^--$/; \\& if (/^-"
2714 "D(.*)/) { $debug = $1 } \\& if (/^-v/) { $verbose++ } \\& ... # other "
2715 "switches \\& } \\& while (E<lt>E<gt>) { \\& ... # code for each line \\& }"
2716 msgstr ""
2717 "\\& while ($_ = $ARGV[0], /^-/) { \\& shift; \\& last if /^--$/; \\& if (/^-"
2718 "D(.*)/) { $debug = $1 } \\& if (/^-v/) { $verbose++ } \\& ... # inne "
2719 "przełączniki \\& } \\& while (E<lt>E<gt>) { \\& ... # kod dla każdej linii "
2720 "\\& }"
2721
2722 #. type: Plain text
2723 #: perlop.1:1388
2724 msgid ""
2725 "The symbol E<lt>E<gt> returns \\s-1FALSE\\s0 only once. If you call it after "
2726 "that, it will assume you are processing a new CW<@ARGV> list, and if you "
2727 "haven't set one, it will take input from \\s-1STDIN\\s0."
2728 msgstr ""
2729 "Symbol E<lt>E<gt> zwraca \\s-1FALSE\\s0 tylko raz. Jesli wywołasz go po tym, "
2730 "założy, że przetwarzasz nową listę CW<@ARGV> i jeśli jej nie ustawiłeś, "
2731 "pobierze wejście ze \\s-1STDIN\\s0."
2732
2733 #. type: Plain text
2734 #: perlop.1:1392
2735 msgid ""
2736 "If the string inside the angle brackets is a pointer to a scalar variable "
2737 "(e.g. E<lt>$fooE<gt>), then that variable holds the name of the handle from "
2738 "which the input is taken. For example:"
2739 msgstr ""
2740 "Jeśli łańcuch wewnątrz nawiasów trójkątnych jest wskazaniem do zmiennej "
2741 "skalarnej (np. E<lt>$fooE<gt>), to zmienna ta przechowuje nazwę uchwytu, z "
2742 "którego pobierane jest wejście. Np:"
2743
2744 #. type: Plain text
2745 #: perlop.1:1396
2746 msgid "\\& $fh = \\e*STDIN; \\& $line = E<lt>$fhE<gt>;"
2747 msgstr "\\& $fh = \\e*STDIN; \\& $line = E<lt>$fhE<gt>;"
2748
2749 #. type: Plain text
2750 #: perlop.1:1406
2751 msgid ""
2752 "The string in angle brackets is not a filehandle, that is, it is interpreted "
2753 "as a filename pattern for glob()ing, and either a list of filenames or the "
2754 "next filename is returned (depending on context). First, one level of $ "
2755 "interpretation is done, but you can't say CW<E<lt>$fooE<gt>>, since that is "
2756 "an indirect filehandle, as described in the previous section. (In older "
2757 "versions of Perl, programmers could insert parentheses to force "
2758 "interpretation as a filename for globbing: CW<E<lt>${foo}E<gt>>. Today, "
2759 "however, it is considered cleaner to call the internal function directly -- "
2760 "CW<glob($foo)>. Example:"
2761 msgstr ""
2762 "Łańcuch w nawiasach trójkątnych nie jest uchwytem pliku, to jest "
2763 "interpretowany jako wzorzec nazwy pliku do glob()owania i zwracana jest albo "
2764 "lista nazw pliku lub następna nazwa pliku (zależnie od kontekstu). Najpierw "
2765 "dokonywany jest jeden poziom interpretacji $, lecz nie można powiedzieć "
2766 "CW<E<lt>$fooE<gt>>, gdyż jest to niebezpośredni uchwyt pliku, opisany w "
2767 "poprzednim paragrafie. (W starszych wersjach perla, programiści mogli "
2768 "wstawiać nawiasy do wymuszania interpretacji jako nazwy pliku do globowania: "
2769 "CW<E<lt>${foo}E<gt>>. Dziś jednak, za czystsze uważa się bezpośrednie wołanie "
2770 "funkcji wewnętrznej -- CW<glob($foo)>. Przykład:"
2771
2772 #. type: Plain text
2773 #: perlop.1:1411
2774 msgid "\\& while (E<lt>*.cE<gt>) { \\& chmod 0644, $_; \\& }"
2775 msgstr "\\& while (E<lt>*.cE<gt>) { \\& chmod 0644, $_; \\& }"
2776
2777 #. type: Plain text
2778 #: perlop.1:1420
2779 msgid ""
2780 "\\& open(FOO, \"echo *.c | tr -s ' \\et\\er\\ef' "
2781 "'\\e\\e012\\e\\e012\\e\\e012\\e\\e012'|\"); \\& while (E<lt>FOOE<gt>) { \\& "
2782 "chop; \\& chmod 0644, $_; \\& }"
2783 msgstr ""
2784 "\\& open(FOO, \"echo *.c | tr -s ' \\et\\er\\ef' "
2785 "'\\e\\e012\\e\\e012\\e\\e012\\e\\e012'|\"); \\& while (E<lt>FOOE<gt>) { \\& "
2786 "chop; \\& chmod 0644, $_; \\& }"
2787
2788 #. type: Plain text
2789 #: perlop.1:1424
2790 msgid ""
2791 "In fact, that's how it's currently implemented. (Which means it won't work on "
2792 "filenames with spaces, unless you have I<csh>(1) in place.) Of course, the "
2793 "shortest way to do the above is:"
2794 msgstr ""
2795 "W rzeczywistości, obecnie jest to właśnie tak zaimplementowane. (Co znaczy, "
2796 "że nie będzie działać na nazwach plików ze spacjami, chyba że masz u siebie "
2797 "I<csh>(1).) Oczywiście najkrótszym sposobem dokonania powyższego jest:"
2798
2799 #. type: Plain text
2800 #: perlop.1:1427
2801 msgid "\\& chmod 0644, E<lt>*.cE<gt>;"
2802 msgstr "\\& chmod 0644, E<lt>*.cE<gt>;"
2803
2804 #. type: Plain text
2805 #: perlop.1:1433
2806 msgid ""
2807 "Since globbing uses the shell, it is often faster to call I<readdir()> "
2808 "yourself and do I<grep()> on the filenames. Furthermore, due to the current "
2809 "implementation, calling I<glob()> may encounter errors like \\*(L\"Arg list "
2810 "too long\\*(R\" (unless you have installed B<tcsh>\\|(1L) as I</bin/csh>)."
2811 msgstr ""
2812 "Ponieważ globowanie używa powłoki, często szybciej jest wywołać samodzielnie "
2813 "I<readdir()> i dokonać I<grep()>a na nazwach plików. Co więcej, z powodu "
2814 "obecnej implementacji, wywołanie I<glob()> może napotkać błędy w rodzaju "
2815 "\\*(L\"Arg list too long\\*(R\" (chyba że zainstalowałeś B<tcsh>\\|(1L) jako "
2816 "I</bin/csh>)."
2817
2818 #. type: Plain text
2819 #: perlop.1:1441
2820 msgid ""
2821 "The glob evaluates its (embedded) argument only if it starts a new list. All "
2822 "values ​​must be read before it starts again. In list context this is not "
2823 "important, since you automatically read all of them. However, in scalar "
2824 "context, the operator returns the next value after each call, or "
2825 "\\s-1FALSE\\s0 at the end. Again, \\s-1FALSE\\s0 is returned only once. So if "
2826 "you expect a single value from the glob, it is better to say"
2827 msgstr ""
2828 "Glob analizuje swój (osadzony) argument tylko jeśli rozpoczyna nową listę. "
2829 "Wszystkie wartości muszą być odczytane zanim znów rozpocznie. W kontekście "
2830 "listowym nie jest to istotne, gdyż autmatycznie odczytujesz wszystkie. "
2831 "Jednak w kontekście skalarnym, operator zwraca następną wartość za każdym "
2832 "wywołaniem, lub \\s-1FALSE\\s0 na końcu. Znowu, \\s-1FALSE\\s0 jest zwracane "
2833 "tylko raz. Jeśli więc oczekujesz od globa pojedynczej wartości, to lepiej "
2834 "powiedzieć"
2835
2836 #. type: Plain text
2837 #: perlop.1:1444
2838 msgid "\\& ($file) = E<lt>blurch*E<gt>;"
2839 msgstr "\\& ($file) = E<lt>blurch*E<gt>;"
2840
2841 #. type: Plain text
2842 #: perlop.1:1446
2843 msgid "and not"
2844 msgstr "a nie"
2845
2846 #. type: Plain text
2847 #: perlop.1:1449
2848 msgid "\\& $file = E<lt>blurch*E<gt>;"
2849 msgstr "\\& $file = E<lt>blurch*E<gt>;"
2850
2851 #. type: Plain text
2852 #: perlop.1:1452
2853 msgid ""
2854 "since the latter will distinguish between returning filenames and returning "
2855 "\\s-1FALSE\\s0."
2856 msgstr ""
2857 "gdyż to drugie będzie rozróżniać zwrócenie nazwy plików i zwrócenie "
2858 "\\s-1FALSE\\s0."
2859
2860 #. type: Plain text
2861 #: perlop.1:1456
2862 msgid ""
2863 "If you are trying to interpolate variables, it is definitely better to use "
2864 "the I<glob()> function, as the older notation can cause confusion for some "
2865 "people."
2866 msgstr ""
2867 "Jeśli próbujesz dokonać interpolacji zmiennych, to zdecydowanie lepiej jest "
2868 "użyć funkcji I<glob()>, gdyż starsza notacja może spowodować zakłopotanie u "
2869 "niektórych osób."
2870
2871 #. type: Plain text
2872 #: perlop.1:1460
2873 msgid "\\& @files = glob(\"$dir/*.[ch]\"); \\& @files = glob($files[$i]);"
2874 msgstr "\\& @files = glob(\"$dir/*.[ch]\"); \\& @files = glob($files[$i]);"
2875
2876 #. type: IX
2877 #: perlop.1:1462
2878 #, no-wrap
2879 msgid "Constant Folding"
2880 msgstr ""
2881
2882 #. type: Plain text
2883 #: perlop.1:1469
2884 msgid ""
2885 "Like C, Perl has a set of expression evaluations that are performed at "
2886 "compile time -- this happens if it notices that all the arguments to an "
2887 "operator are static and have no side effects. In particular, literal "
2888 "concatenation without variable substitution is performed at compile time. "
2889 "Backslash interpretation also occurs at compile time. You can say"
2890 msgstr ""
2891 "Podobnie jak C, perl posiada pewien zestaw analiz wyrażeń, wykonywanych "
2892 "podczas kompilacji -- dzieje się to jeśli zauważy, że wszystkie argumenty "
2893 "operatora są statyczne i nie mają efektów ubocznych. W szczególności, np. "
2894 "konkatenacja literałów bez podstawień zmiennych jest dokonywana podczas "
2895 "kompilacji. Interpretacja odwrotnych ukośników następuje również podczas "
2896 "kompilacji. Możesz powiedzieć"
2897
2898 #. type: Plain text
2899 #: perlop.1:1473
2900 msgid "\\& 'Now is the time for all' . \"\\en\" . \\& 'good men to come to.'"
2901 msgstr "\\& 'Now is the time for all' . \"\\en\" . \\& 'good men to come to.'"
2902
2903 #. type: Plain text
2904 #: perlop.1:1476
2905 msgid "and all this internally reduces to one string. Similarly, if you say"
2906 msgstr ""
2907 "a wszystko to wewnętrznie zredukuje się do jednego łańcucha. Podobnie, jeśli "
2908 "powiesz"
2909
2910 #. type: Plain text
2911 #: perlop.1:1481
2912 msgid ""
2913 "\\& foreach $file (@filenames) { \\& if (-s $file E<gt> 5 + 100 * 2**16) "
2914 "{ ... } \\& }"
2915 msgstr ""
2916 "\\& foreach $file (@filenames) { \\& if (-s $file E<gt> 5 + 100 * 2**16) "
2917 "{ ... } \\& }"
2918
2919 #. type: Plain text
2920 #: perlop.1:1483
2921 msgid "the compiler will calculate the numbers that the expression represents."
2922 msgstr "to kompilator przeliczy liczby, które reprezentuje wyrażenie."
2923
2924 #. type: IX
2925 #: perlop.1:1484
2926 #, no-wrap
2927 msgid "Integer Arithmetic"
2928 msgstr ""
2929
2930 #. type: Plain text
2931 #: perlop.1:1487
2932 msgid ""
2933 "By default, Perl does all of its calculations in floating point. However, the "
2934 "saying"
2935 msgstr ""
2936 "Domyślnie, perl wykonuje wszystkie obliczenia zmiennoprzecinkowo. Jednak "
2937 "powiedzenie"
2938
2939 #. type: Plain text
2940 #: perlop.1:1490
2941 msgid "\\& use integer;"
2942 msgstr "\\& use integer;"
2943
2944 #. type: Plain text
2945 #: perlop.1:1493
2946 msgid ""
2947 "tells the compiler that it can use from now on until the end of the integer "
2948 "block. The inner blocks can deny this by saying"
2949 msgstr ""
2950 "mówi kompilatorowi, że może używać odtąd, do końca bloku operacji "
2951 "całkowitych. Wewnętrzne bloki mogą temu zaprzeczyć, mówiąc"
2952
2953 #. type: Plain text
2954 #: perlop.1:1496
2955 msgid "\\& no integer;"
2956 msgstr "\\& no integer;"
2957
2958 #. type: Plain text
2959 #: perlop.1:1498
2960 msgid "which is enough for the rest of their block."
2961 msgstr "co wystarcza do końca ich bloku."
2962
2963 #. type: Plain text
2964 #: perlop.1:1505
2965 msgid ""
2966 "The bitwise operators (\"&\\*(R\", \\*(L\"|\\*(R\", \\*(L\"^\\*(R\", "
2967 "\\*(L\"~\\*(R\", \\*(L\"E<lt>E<lt>\\*(R\", and \\*(L\"E<gt>E<gt>\") always "
2968 "produce integer results. However, CW<use integer> still has meaning for them. "
2969 "By default, their results are interpreted as unsigned integers. When this "
2970 "option is turned on, they are interpreted with a sign. For example, CW<~0> "
2971 "normally evaluates to a large integer value. After CW<use integer; ~0> it "
2972 "becomes -1."
2973 msgstr ""
2974 "Operatory bitowe (\"&\\*(R\", \\*(L\"|\\*(R\", \\*(L\"^\\*(R\", "
2975 "\\*(L\"~\\*(R\", \\*(L\"E<lt>E<lt>\\*(R\", i \\*(L\"E<gt>E<gt>\") zawsze dają "
2976 "wyniki całkowite. Jednak CW<use integer> ma wciąż dla nich znaczenie. "
2977 "Domyślnie ich wyniki są interpretowane jako liczby całkowite bez znaku. Po "
2978 "włączeniu tej opcji, sa interpretowane ze znakiem. Np. CW<~0> normalnie jest "
2979 "analizowane do wielkiej wartości całkowitej. Po CW<use integer; ~0> staje "
2980 "się -1."
2981
2982 #. type: IX
2983 #: perlop.1:1506
2984 #, no-wrap
2985 msgid "Floating-point Arithmetic"
2986 msgstr ""
2987
2988 #. type: Plain text
2989 #: perlop.1:1511
2990 msgid ""
2991 "While CW<use integer> gives integer arithmetic, there is no similar "
2992 "instruction for giving rounding, or cutting off at specific decimal places. "
2993 "For rounding to a specific number of digits, it is best to use <sprintf()> or "
2994 "I<printf()>."
2995 msgstr ""
2996 "Podczas gdy CW<use integer> daje arytmetykę całkowitą, nie ma podobnej "
2997 "instrukcji dla dawania zaokrągleń, lub odcięć w konkretnych miejscach "
2998 "dziesiętnych. Dla zaokrągleń do określonej ilości cyfr, najlepiej użyć "
2999 "I<sprintf()> lub I<printf()>."
3000
3001 #. type: Plain text
3002 #: perlop.1:1519
3003 msgid ""
3004 "The \\s-1POSIX\\s0 module (part of the standard Perl distribution) implements "
3005 "the I<ceil()>, I<floor()>, and several other mathematical and trigonometric "
3006 "functions. The Math::Complex module (also standard) defines a number of "
3007 "mathematical functions that can also operate on real numbers. The "
3008 "Math::Complex module is not as efficient as \\s-1POSIX\\s0, but "
3009 "\\s-1POSIX\\s0 cannot operate on complex numbers."
3010 msgstr ""
3011 "Moduł \\s-1POSIX\\s0 (część standardowej dystrybucji perla) implementuje "
3012 "funkcje I<ceil()>, I<floor()> i kilka innych funkcji matematycznych i "
3013 "trygonometrycznych. Moduł Math::Complex (również standardowy) definiuje sporo "
3014 "funkcji matematycznych, które mogą działać również na liczbach rzeczywistych. "
3015 "Moduł Math::Complex nie jest tak wydajny jak \\s-1POSIX\\s0, lecz "
3016 "\\s-1POSIX\\s0 nie może działać na liczbach zespolonych."
3017
3018 #. type: Plain text
3019 #: perlop.1:1524
3020 msgid ""
3021 "Rounding in financial applications can have serious consequences and the "
3022 "method used should be specified exactly. In these cases, it is better not to "
3023 "trust which rounding system is used by Perl, but to implement such a function "
3024 "yourself."
3025 msgstr ""
3026 "Zaokrąglanie w aplikacjach finansowych może mieć poważne konsekwencje i "
3027 "używana metoda powinna być podawana dokładnie. W tych wypadkach, lepiej nie "
3028 "ufać temu, który system zaokrąglania jest używany przez perla, lecz "
3029 "zaimplementować taką funkcję samodzielnie."