| 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 |
# Robert Luberda <[email protected]>, 2002. |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: manpages-l10n\n" |
| 10 |
"POT-Creation-Date: 2026-06-05 06:34+0200\n" |
| 11 |
"PO-Revision-Date: 2002-05-21 09:29+0200\n" |
| 12 |
"Last-Translator: Robert Luberda <[email protected]>\n" |
| 13 |
"Language-Team: Polish <[email protected]>\n" |
| 14 |
"Language: pl\n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\n" |
| 18 |
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " |
| 19 |
"|| n%100>=20) ? 1 : 2);\n" |
| 20 |
|
| 21 |
#. #-#-#-#-# debian-trixie: perldata.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 22 |
#. ======================================================================== |
| 23 |
#. type: IX |
| 24 |
#. #-#-#-#-# debian-unstable: perldata.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 25 |
#. ======================================================================== |
| 26 |
#. type: IX |
| 27 |
#. #-#-#-#-# fedora-44: perldata.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 28 |
#. Required to disable full justification in groff 1.23.0. |
| 29 |
#. ======================================================================== |
| 30 |
#. type: IX |
| 31 |
#. #-#-#-#-# fedora-rawhide: perldata.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 32 |
#. Required to disable full justification in groff 1.23.0. |
| 33 |
#. ======================================================================== |
| 34 |
#. type: IX |
| 35 |
#. #-#-#-#-# mageia-cauldron: perldata.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 36 |
#. Required to disable full justification in groff 1.23.0. |
| 37 |
#. ======================================================================== |
| 38 |
#. type: IX |
| 39 |
#. #-#-#-#-# opensuse-leap-16-1: perldata.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 40 |
#. Required to disable full justification in groff 1.23.0. |
| 41 |
#. ======================================================================== |
| 42 |
#. type: IX |
| 43 |
#. #-#-#-#-# opensuse-tumbleweed: perldata.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 44 |
#. Required to disable full justification in groff 1.23.0. |
| 45 |
#. ======================================================================== |
| 46 |
#. type: IX |
| 47 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 48 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 49 |
#, no-wrap |
| 50 |
msgid "Title" |
| 51 |
msgstr "Title" |
| 52 |
|
| 53 |
#. #-#-#-#-# debian-trixie: perldata.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 54 |
#. ======================================================================== |
| 55 |
#. type: IX |
| 56 |
#. #-#-#-#-# debian-unstable: perldata.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 57 |
#. ======================================================================== |
| 58 |
#. type: IX |
| 59 |
#. #-#-#-#-# fedora-44: perldata.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 60 |
#. Required to disable full justification in groff 1.23.0. |
| 61 |
#. ======================================================================== |
| 62 |
#. type: IX |
| 63 |
#. #-#-#-#-# fedora-rawhide: perldata.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 64 |
#. Required to disable full justification in groff 1.23.0. |
| 65 |
#. ======================================================================== |
| 66 |
#. type: IX |
| 67 |
#. #-#-#-#-# mageia-cauldron: perldata.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 68 |
#. Required to disable full justification in groff 1.23.0. |
| 69 |
#. ======================================================================== |
| 70 |
#. type: IX |
| 71 |
#. #-#-#-#-# opensuse-leap-16-1: perldata.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 72 |
#. Required to disable full justification in groff 1.23.0. |
| 73 |
#. ======================================================================== |
| 74 |
#. type: IX |
| 75 |
#. #-#-#-#-# opensuse-tumbleweed: perldata.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 76 |
#. Required to disable full justification in groff 1.23.0. |
| 77 |
#. ======================================================================== |
| 78 |
#. type: IX |
| 79 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 80 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 81 |
#, no-wrap |
| 82 |
msgid "PERLDATA 1" |
| 83 |
msgstr "PERLDATA 1" |
| 84 |
|
| 85 |
#. type: TH |
| 86 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 87 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 88 |
#, no-wrap |
| 89 |
msgid "PERLDATA" |
| 90 |
msgstr "PERLDATA" |
| 91 |
|
| 92 |
#. type: TH |
| 93 |
#: debian-trixie |
| 94 |
#, no-wrap |
| 95 |
msgid "2025-07-27" |
| 96 |
msgstr "27 lipca 2025 r." |
| 97 |
|
| 98 |
#. type: TH |
| 99 |
#: debian-trixie debian-unstable |
| 100 |
#, no-wrap |
| 101 |
msgid "perl v5.40.1" |
| 102 |
msgstr "perl v5.40.1" |
| 103 |
|
| 104 |
#. type: TH |
| 105 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 106 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 107 |
#, no-wrap |
| 108 |
msgid "Perl Programmers Reference Guide" |
| 109 |
msgstr "Instrukcja programisty Perla" |
| 110 |
|
| 111 |
#. type: SH |
| 112 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 113 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 114 |
#, no-wrap |
| 115 |
msgid "NAME" |
| 116 |
msgstr "NAZWA" |
| 117 |
|
| 118 |
#. type: Plain text |
| 119 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 120 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 121 |
msgid "perldata - Perl data types" |
| 122 |
msgstr "perldata - typy danych Perla" |
| 123 |
|
| 124 |
#. type: IX |
| 125 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 126 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 127 |
#, no-wrap |
| 128 |
msgid "DESCRIPTION" |
| 129 |
msgstr "OPIS" |
| 130 |
|
| 131 |
#. type: IX |
| 132 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 133 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 134 |
#, no-wrap |
| 135 |
msgid "Header" |
| 136 |
msgstr "Header" |
| 137 |
|
| 138 |
#. type: IX |
| 139 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 140 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 141 |
#, no-wrap |
| 142 |
msgid "Variable names" |
| 143 |
msgstr "Nazwy zmiennych" |
| 144 |
|
| 145 |
#. type: IX |
| 146 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 147 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 148 |
#, no-wrap |
| 149 |
msgid "Xref" |
| 150 |
msgstr "Xref" |
| 151 |
|
| 152 |
#. type: IX |
| 153 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 154 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 155 |
#, no-wrap |
| 156 |
msgid "variable, name variable name data type type" |
| 157 |
msgstr "" |
| 158 |
|
| 159 |
#. type: IX |
| 160 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 161 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 162 |
#, no-wrap |
| 163 |
msgid "Subsection" |
| 164 |
msgstr "Subsection" |
| 165 |
|
| 166 |
#. type: Plain text |
| 167 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 168 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 169 |
msgid "" |
| 170 |
"Perl has three built-in data types: scalars, arrays of scalars, and " |
| 171 |
"associative arrays of scalars, known as \"hashes\". A scalar is a single " |
| 172 |
"string (of any size, limited only by the available memory), number, or a " |
| 173 |
"reference to something (which will be discussed in perlref). Normal arrays " |
| 174 |
"are ordered lists of scalars indexed by number, starting with 0. Hashes are " |
| 175 |
"unordered collections of scalar values indexed by their associated string " |
| 176 |
"key." |
| 177 |
msgstr "" |
| 178 |
|
| 179 |
#. type: Plain text |
| 180 |
#: debian-trixie debian-unstable |
| 181 |
#, fuzzy |
| 182 |
#| msgid "" |
| 183 |
#| "Values are usually assigned to a name (or named reference). The first " |
| 184 |
#| "character of the name tells what kind of data structure it refers to. The " |
| 185 |
#| "rest of the name tells the specific value that the name refers to. It " |
| 186 |
#| "usually consists of a single I<identifier>, that is, a string starting " |
| 187 |
#| "with a letter or underscore and containing letters, underscores, and " |
| 188 |
#| "digits. In some cases, it may be a sequence of identifiers, separated by " |
| 189 |
#| "CW<::> (or by CW<'>, but that is not recommended). All but the last one " |
| 190 |
#| "are interpreted as package names, indicating the namespaces in which to " |
| 191 |
#| "search for the last identifier (see the CW<Packages> section of the " |
| 192 |
#| "I<perlmod>(1) manual page for details). It is possible to replace a " |
| 193 |
#| "simple identifier with an expression that creates a reference to the " |
| 194 |
#| "value at runtime; this is described in detail below and in the " |
| 195 |
#| "I<perlref>(1) manual page." |
| 196 |
msgid "" |
| 197 |
"Values are usually referred to by name, or through a named reference. The " |
| 198 |
"first character of the name tells you to what sort of data structure it " |
| 199 |
"refers. The rest of the name tells you the particular value to which it " |
| 200 |
"refers. Usually this name is a single I<identifier>, that is, a string " |
| 201 |
"beginning with a letter or underscore, and containing letters, underscores, " |
| 202 |
"and digits. In some cases, it may be a chain of identifiers, separated by " |
| 203 |
"CW<\\*(C`::\\*(C'> (or by the deprecated CW<\\*(C`\\*(Aq\\*(C'>); all but " |
| 204 |
"the last are interpreted as names of packages, to locate the namespace in " |
| 205 |
"which to look up the final identifier (see \"Packages\" in perlmod for " |
| 206 |
"details). For a more in-depth discussion on identifiers, see \"Identifier " |
| 207 |
"parsing\". It's possible to substitute for a simple identifier, an " |
| 208 |
"expression that produces a reference to the value at runtime. This is " |
| 209 |
"described in more detail below and in perlref." |
| 210 |
msgstr "" |
| 211 |
"Wartości są zwykle przypisane do nazwy (lub nazwanego odwołania). Pierwszy " |
| 212 |
"znak nazwy mówi o tym, do jakiego rodzaju struktury danych się ona odnosi. " |
| 213 |
"Reszta nazwy określa konkretną wartość, do której odnosi się nazwa. " |
| 214 |
"Najczęściej składa się ona z pojedynczego I<identyfikatora>, to znaczy, " |
| 215 |
"łańcucha rozpoczynającego się literą lub znakiem podkreślenia i " |
| 216 |
"zawierającego litery, podkreślenia i cyfry. W niektórych przypadkach może " |
| 217 |
"być ciągiem identyfikatorów, rozdzielonych przez CW<::> (lub przez CW<'>, " |
| 218 |
"ale nie jest to polecane). Wszystkie oprócz ostatniego interpretowane są " |
| 219 |
"jako nazwy pakietów, wskazując przestrzenie nazw, w których będzie " |
| 220 |
"wyszukiwany ostatni identyfikator (szczegóły znajdziesz w sekcji " |
| 221 |
"CW<Packages> podręcznika I<perlmod>(1)). Możliwe jest zastąpienie prostego " |
| 222 |
"identyfikatora wyrażeniem, które w czasie wykonania tworzy odwołanie do " |
| 223 |
"wartości; jest to opisane szczegółowo poniżej oraz na stronie I<perlref>(1) " |
| 224 |
"podręcznika." |
| 225 |
|
| 226 |
#. type: IX |
| 227 |
#: debian-trixie debian-unstable |
| 228 |
#, fuzzy, no-wrap |
| 229 |
#| msgid "IdentityFile" |
| 230 |
msgid "identifier" |
| 231 |
msgstr "IdentityFile" |
| 232 |
|
| 233 |
#. type: Plain text |
| 234 |
#: debian-trixie debian-unstable |
| 235 |
#, fuzzy |
| 236 |
#| msgid "" |
| 237 |
#| "There are also special variables whose names do not follow the above " |
| 238 |
#| "rules, so that they do not accidentally clash with one of your regular " |
| 239 |
#| "variables. Strings that match the parenthesized parts of a regular " |
| 240 |
#| "expression are saved with names that contain only digits after the CW<$> " |
| 241 |
#| "character (see the I<perlop>(1) and I<perlre>(1) documentation pages). " |
| 242 |
#| "Additionally, several special variables that provide access to Perl's " |
| 243 |
#| "internals have names that contain punctuation characters (see the " |
| 244 |
#| "I<perlvar>(1) documentation pages)." |
| 245 |
msgid "" |
| 246 |
"Perl also has its own built-in variables whose names don't follow these " |
| 247 |
"rules. They have strange names so they don't accidentally collide with one " |
| 248 |
"of your normal variables. Strings that match parenthesized parts of a " |
| 249 |
"regular expression are saved under names containing only digits after the " |
| 250 |
"CW<\\*(C`$\\*(C'> (see perlop and perlre). In addition, several special " |
| 251 |
"variables that provide windows into the inner working of Perl have names " |
| 252 |
"containing punctuation characters. These are documented in perlvar." |
| 253 |
msgstr "" |
| 254 |
"Istnieją również zmienne specjalne, których nazwy nie przestrzegają " |
| 255 |
"powyższych reguł, po to by nie kolidowały przypadkowo z którąś z twych " |
| 256 |
"zwykłych zmiennych. Łańcuchy, które pasują do objętych nawiasami okrągłymi " |
| 257 |
"części wyrażenia regularnego zachowywane są pod nazwami zawierającymi tylko " |
| 258 |
"cyfry po znaku CW<$> (patrz strony I<perlop>(1) i I<perlre>(1) " |
| 259 |
"dokumentacji). Dodatkowo, kilka zmiennych specjalnych, umożliwiających " |
| 260 |
"dostęp do wewnętrznych rozwiązań Perla, posiada nazwy zawierające znaki " |
| 261 |
"przestankowe (zobacz strony I<perlvar>(1) dokumentacji)." |
| 262 |
|
| 263 |
#. type: IX |
| 264 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 265 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 266 |
#, no-wrap |
| 267 |
msgid "variable, built-in" |
| 268 |
msgstr "" |
| 269 |
|
| 270 |
#. type: Plain text |
| 271 |
#: debian-trixie debian-unstable |
| 272 |
#, fuzzy |
| 273 |
#| msgid "" |
| 274 |
#| "Scalar values always have names starting with the character \\*(L'$" |
| 275 |
#| "\\*(R', even when they refer to a scalar that is part of an array. This " |
| 276 |
#| "works similarly to the English article \\*(L\"the\\*(R\". So we have:" |
| 277 |
msgid "" |
| 278 |
"Scalar values are always named with '$', even when referring to a scalar " |
| 279 |
"that is part of an array or a hash. The '$' symbol works semantically like " |
| 280 |
"the English word \"the\" in that it indicates a single value is expected." |
| 281 |
msgstr "" |
| 282 |
"Wartości skalarne zawsze noszą nazwy rozpoczynające się znakiem \\*(L'$" |
| 283 |
"\\*(R', nawet, gdy odnoszą się do skalara będącego częścią tablicy. Działa " |
| 284 |
"to podobnie jak angielski przedimek \\*(L\"the\\*(R\". A zatem mamy:" |
| 285 |
|
| 286 |
#. type: IX |
| 287 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 288 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 289 |
#, no-wrap |
| 290 |
msgid "scalar" |
| 291 |
msgstr "" |
| 292 |
|
| 293 |
#. type: Plain text |
| 294 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 295 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 296 |
#, fuzzy, no-wrap |
| 297 |
#| msgid "\\& $days # plain scalar value \"days\" \\i $days[28] # 29th element of the array \\& $days{'February'} # value for key 'February' from hash %days \\& $#days # last index of the @days array" |
| 298 |
msgid "" |
| 299 |
"\\& $days # the simple scalar value \"days\"\n" |
| 300 |
"\\& $days[28] # the 29th element of array @days\n" |
| 301 |
"\\& $days{\\*(AqFeb\\*(Aq} # the \\*(AqFeb\\*(Aq value from hash %days\n" |
| 302 |
"\\& $#days # the last index of array @days\n" |
| 303 |
msgstr "\\& $dni # zwykła wartość skalarna \"dni\" \\& $dni[28] # 29-ty element tablicy \\& $dni{'luty'} # wartość dla klucza 'luty' z hasza %dni \\& $#dni # ostatni indeks tablicy @dni" |
| 304 |
|
| 305 |
#. type: Plain text |
| 306 |
#: debian-trixie debian-unstable |
| 307 |
msgid "" |
| 308 |
"Entire arrays (and slices of arrays and hashes) are denoted by '@', which " |
| 309 |
"works much as the word \"these\" or \"those\" does in English, in that it " |
| 310 |
"indicates multiple values are expected." |
| 311 |
msgstr "" |
| 312 |
|
| 313 |
#. type: IX |
| 314 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 315 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 316 |
#, fuzzy, no-wrap |
| 317 |
#| msgid "Arrays" |
| 318 |
msgid "array" |
| 319 |
msgstr "Tablice" |
| 320 |
|
| 321 |
#. type: Plain text |
| 322 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 323 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 324 |
#, fuzzy, no-wrap |
| 325 |
#| msgid "\\& @days # ($days[0], $days[1],... $days[n]) \\& @days[3,4,5] # same as @days[3..5] \\& @days{'a','c'} # same as ($days{'a'},$days{'c'})" |
| 326 |
msgid "" |
| 327 |
"\\& @days # ($days[0], $days[1],... $days[n])\n" |
| 328 |
"\\& @days[3,4,5] # same as ($days[3],$days[4],$days[5])\n" |
| 329 |
"\\& @days{\\*(Aqa\\*(Aq,\\*(Aqc\\*(Aq} # same as ($days{\\*(Aqa\\*(Aq},$days{\\*(Aqc\\*(Aq})\n" |
| 330 |
msgstr "\\& @dni # ($dni[0], $dni[1],... $dni[n]) \\& @dni[3,4,5] # to samo, co @dni[3..5] \\& @dni{'a','c'} # to samo, co ($dni{'a'},$dni{'c'})" |
| 331 |
|
| 332 |
#. type: Plain text |
| 333 |
#: debian-trixie debian-unstable |
| 334 |
#, fuzzy |
| 335 |
#| msgid "and entire associative arrays (hashes) are denoted by \\*(L'%':" |
| 336 |
msgid "Entire hashes are denoted by '%':" |
| 337 |
msgstr "zaś całe tablice asocjacyjne (hasze) oznaczane są przez \\*(L'%':" |
| 338 |
|
| 339 |
#. type: IX |
| 340 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 341 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 342 |
#, no-wrap |
| 343 |
msgid "hash" |
| 344 |
msgstr "hash" |
| 345 |
|
| 346 |
#. type: Plain text |
| 347 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 348 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 349 |
#, fuzzy, no-wrap |
| 350 |
#| msgid "\\& %days # (key1, value1, key2, value2 ...)" |
| 351 |
msgid "\\& %days # (key1, val1, key2, val2 ...)\n" |
| 352 |
msgstr "\\& %dni # (klucz1, wartość1, klucz2, wartość2 ...)" |
| 353 |
|
| 354 |
#. type: Plain text |
| 355 |
#: debian-trixie debian-unstable |
| 356 |
#, fuzzy |
| 357 |
#| msgid "" |
| 358 |
#| "Additionally, procedures are named using a leading \\*(L'&\\*(R', " |
| 359 |
#| "although this is optional if not ambiguous (as in English it is often " |
| 360 |
#| "redundant to use the word \\*(L\"do\\*(R\")). Symbol table elements may " |
| 361 |
#| "be named using a leading \\*(L'*\\*(R', but you don't need to worry about " |
| 362 |
#| "that for now." |
| 363 |
msgid "" |
| 364 |
"In addition, subroutines are named with an initial '&', though this is " |
| 365 |
"optional when unambiguous, just as the word \"do\" is often redundant in " |
| 366 |
"English. Symbol table entries can be named with an initial '*', but you " |
| 367 |
"don't really care about that yet (if ever :-)." |
| 368 |
msgstr "" |
| 369 |
"Dodatkowo, procedury nazywane są z użyciem początkowego \\*(L'&\\*(R', choć " |
| 370 |
"jest to opcjonalne, jeśli nie jest dwuznaczne (tak jak w języku angielskim " |
| 371 |
"często zbyteczne jest użycie słowa\\*(L\"do\\*(R\"). Elementy tablicy " |
| 372 |
"symboli mogą być nazywane z użyciem początkowego \\*(L'*\\*(R', ale na razie " |
| 373 |
"nie musisz się tym zajmować." |
| 374 |
|
| 375 |
#. type: Plain text |
| 376 |
#: debian-trixie debian-unstable |
| 377 |
#, fuzzy |
| 378 |
#| msgid "" |
| 379 |
#| "Each type of variable has its own namespace. You can use the same name " |
| 380 |
#| "for a scalar variable, an array, or an associative array (or a " |
| 381 |
#| "filehandle, procedure name, or label) without fear of conflict. This " |
| 382 |
#| "means that CW<$foo> and CW<@foo> are two different variables. It also " |
| 383 |
#| "means that CW<$foo[1]> is part of the array CW<@foo>, not part of the " |
| 384 |
#| "scalar CW<$foo>. This may seem a bit strange, but that's how it is, " |
| 385 |
#| "because it is strange." |
| 386 |
msgid "" |
| 387 |
"Every variable type has its own namespace, as do several non-variable " |
| 388 |
"identifiers. This means that you can, without fear of conflict, use the " |
| 389 |
"same name for a scalar variable, an array, or a hash--or, for that matter, " |
| 390 |
"for a filehandle, a directory handle, a subroutine name, a format name, or a " |
| 391 |
"label. This means that CW<$foo> and CW<@foo> are two different variables. " |
| 392 |
"It also means that CW<$foo[1]> is a part of CW<@foo>, not a part of " |
| 393 |
"CW<$foo>. This may seem a bit weird, but that's okay, because it is weird." |
| 394 |
msgstr "" |
| 395 |
"Każdy typ zmiennych ma swoją własną przestrzeń nazw. Możesz, bez obawy o " |
| 396 |
"konflikt, używać tej samej nazwy dla zmiennej skalarnej, tablicy czy tablicy " |
| 397 |
"asocjacyjnej (lub uchwytu pliku, nazwy procedury czy etykiety). Oznacza to, " |
| 398 |
"że CW<$foo> i CW<@foo> są dwoma różnymi zmiennymi. Znaczy to też, że " |
| 399 |
"CW<$foo[1]> jest częścią tablicy CW<@foo>, nie zaś częścią skalara CW<$foo>. " |
| 400 |
"Może się to wydawać trochę dziwne, ale tak ma być, gdyż to jest dziwne." |
| 401 |
|
| 402 |
#. type: IX |
| 403 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 404 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 405 |
#, fuzzy, no-wrap |
| 406 |
#| msgid "IPC namespaces" |
| 407 |
msgid "namespace" |
| 408 |
msgstr "Przestrzenie nazw IPC" |
| 409 |
|
| 410 |
#. type: Plain text |
| 411 |
#: debian-trixie debian-unstable |
| 412 |
#, fuzzy |
| 413 |
#| msgid "" |
| 414 |
#| "Since variable and array references always start with \\&'$', '@' or '%', " |
| 415 |
#| "the words \\*(L\"reserved\\*(R\" are not truly reserved for variable " |
| 416 |
#| "names. (However, \\s-1ARE\\s0 reserved for labels and filehandles, which " |
| 417 |
#| "do not have a special leading character. You cannot, for example, use a " |
| 418 |
#| "filehandle named \\*(L\"log\\*(R\". Hint: you can write " |
| 419 |
#| "CW<open(LOG,'logfile')> instead of CW<open(log,'logfile')>. Using " |
| 420 |
#| "uppercase filehandle names also improves readability and prevents " |
| 421 |
#| "conflicts with future reserved words. Case IS significant\\*(--" |
| 422 |
#| "\"\\s-1FOO\\s0\\*(R\", \\*(L\"Foo\\*(R\" and \\*(L\"foo\\*(R\" are " |
| 423 |
#| "completely different names. Names starting with a letter or underscore " |
| 424 |
#| "can also contain digits and underscores." |
| 425 |
msgid "" |
| 426 |
"Because variable references always start with '$', '@', or '%', the " |
| 427 |
"\"reserved\" words aren't in fact reserved with respect to variable names. " |
| 428 |
"They I<are> reserved with respect to labels and filehandles, however, which " |
| 429 |
"don't have an initial special character. You can't have a filehandle named " |
| 430 |
"\"log\", for instance. Hint: you could say \\&CW<\\*(C`open(LOG," |
| 431 |
"\\*(Aqlogfile\\*(Aq)\\*(C'> rather than CW<\\*(C`open(log," |
| 432 |
"\\*(Aqlogfile\\*(Aq)\\*(C'>. Using uppercase filehandles also improves " |
| 433 |
"readability and protects you from conflict with future reserved words. Case " |
| 434 |
"I<is> significant--\"FOO\", \"Foo\", and \"foo\" are all different names. " |
| 435 |
"Names that start with a letter or underscore may also contain digits and " |
| 436 |
"underscores." |
| 437 |
msgstr "" |
| 438 |
"Ponieważ odniesienia do zmiennych i tablic zawsze rozpoczynają się od " |
| 439 |
"\\&'$', '@' lub '%', to słowa \\*(L\"zarezerwowane\\*(R\" nie są naprawdę " |
| 440 |
"zarezerwowane w odniesieniu do nazw zmiennych. (Jednak \\s-1SĄ\\s0 one " |
| 441 |
"zarezerwowane w odniesieniu do etykiet i uchwytów plików, które nie " |
| 442 |
"posiadają specjalnego początkowego znaku. Nie możesz, na przykład, użyć " |
| 443 |
"uchwytu pliku o nazwie \\*(L\"log\\*(R\". Wskazówka: możesz napisać " |
| 444 |
"CW<open(LOG,'logfile')> zamiast CW<open(log,'logfile')>. Użycie nazw " |
| 445 |
"uchwytów plików złożonych z dużych liter poprawia również czytelność i " |
| 446 |
"chroni przed konfliktami z przyszłymi słowami zastrzeżonymi. Wielkość liter " |
| 447 |
"JEST znacząca\\*(--\"\\s-1FOO\\s0\\*(R\", \\*(L\"Foo\\*(R\" oraz " |
| 448 |
"\\*(L\"foo\\*(R\" są zupełnie innymi nazwami. Nazwy rozpoczynające się " |
| 449 |
"literą lub znakiem podkreślenia mogą zawierać również cyfry i podkreślenia." |
| 450 |
|
| 451 |
#. type: IX |
| 452 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 453 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 454 |
#, no-wrap |
| 455 |
msgid "identifier, case sensitivity case" |
| 456 |
msgstr "" |
| 457 |
|
| 458 |
#. type: Plain text |
| 459 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 460 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 461 |
#, fuzzy |
| 462 |
#| msgid "" |
| 463 |
#| "It is possible to replace such an alphanumeric name with an expression " |
| 464 |
#| "that returns a reference to an object of that type. See the manual page " |
| 465 |
#| "I<perlref>(1) for a description of how to do this." |
| 466 |
msgid "" |
| 467 |
"It is possible to replace such an alphanumeric name with an expression that " |
| 468 |
"returns a reference to the appropriate type. For a description of this, see " |
| 469 |
"perlref." |
| 470 |
msgstr "" |
| 471 |
"Możliwe jest zastąpienie takiej alfanumerycznej nazwy wyrażeniem, które " |
| 472 |
"zwraca odwołanie do obiektu danego typu. Opis tego znajdziesz na stronie " |
| 473 |
"I<perlref>(1) podręcznika." |
| 474 |
|
| 475 |
#. type: Plain text |
| 476 |
#: debian-trixie debian-unstable |
| 477 |
#, fuzzy |
| 478 |
#| msgid "" |
| 479 |
#| "Names starting with a digit can only contain digits. Names that do not " |
| 480 |
#| "start with a letter, underscore, or digit are limited to a single " |
| 481 |
#| "character, such as CW<$%> or CW<$$>. (Most of these single-character " |
| 482 |
#| "names have a predefined meaning to Perl. For example, CW<$$> is the " |
| 483 |
#| "current process identifier.)" |
| 484 |
msgid "" |
| 485 |
"Names that start with a digit may contain only more digits. Names that do " |
| 486 |
"not start with a letter, underscore, digit or a caret are limited to one " |
| 487 |
"character, e.g., CW<$%> or \\&CW<$$>. (Most of these one character names " |
| 488 |
"have a predefined significance to Perl. For instance, CW<$$> is the current " |
| 489 |
"process id. And all such names are reserved for Perl's possible use.)" |
| 490 |
msgstr "" |
| 491 |
"Nazwy rozpoczynające się cyfrą mogą zawierać tylko cyfry. Nazwy, które nie " |
| 492 |
"zaczynają się od litery, podkreślenia ani cyfry ograniczone są do " |
| 493 |
"pojedynczego znaku, np. CW<$%> czy CW<$$>. (Większość z tych jednoznakowych " |
| 494 |
"nazw ma predefiniowane znaczenie dla Perla. Na przykład, CW<$$> jest " |
| 495 |
"identyfikatorem bieżącego procesu.)" |
| 496 |
|
| 497 |
#. type: IX |
| 498 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 499 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 500 |
#, fuzzy, no-wrap |
| 501 |
#| msgid "IdentitiesOnly" |
| 502 |
msgid "Identifier parsing" |
| 503 |
msgstr "IdentitiesOnly" |
| 504 |
|
| 505 |
#. type: IX |
| 506 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 507 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 508 |
#, fuzzy, no-wrap |
| 509 |
#| msgid "Modifiers" |
| 510 |
msgid "identifiers" |
| 511 |
msgstr "Modyfikatory" |
| 512 |
|
| 513 |
#. type: Plain text |
| 514 |
#: debian-trixie debian-unstable |
| 515 |
msgid "" |
| 516 |
"Up until Perl 5.18, the actual rules of what a valid identifier was were a " |
| 517 |
"bit fuzzy. However, in general, anything defined here should work on " |
| 518 |
"previous versions of Perl, while the opposite -- edge cases that work in " |
| 519 |
"previous versions, but aren't defined here -- probably won't work on newer " |
| 520 |
"versions. As an important side note, please note that the following only " |
| 521 |
"applies to bareword identifiers as found in Perl source code, not " |
| 522 |
"identifiers introduced through symbolic references, which have much fewer " |
| 523 |
"restrictions. If working under the effect of the CW<\\*(C`use utf8;\\*(C'> " |
| 524 |
"pragma, the following rules apply:" |
| 525 |
msgstr "" |
| 526 |
|
| 527 |
#. type: Plain text |
| 528 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 529 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 530 |
#, no-wrap |
| 531 |
msgid "" |
| 532 |
"\\& / (?[ ( \\ep{Word} & \\ep{XID_Start} ) + [_] ])\n" |
| 533 |
"\\& (?[ ( \\ep{Word} & \\ep{XID_Continue} ) ]) * /x\n" |
| 534 |
msgstr "" |
| 535 |
|
| 536 |
#. type: Plain text |
| 537 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 538 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 539 |
msgid "" |
| 540 |
"That is, a \"start\" character followed by any number of \"continue\" " |
| 541 |
"characters. Perl requires every character in an identifier to also match " |
| 542 |
"CW<\\*(C`\\ew\\*(C'> (this prevents some problematic cases); and Perl " |
| 543 |
"additionally accepts identifier names beginning with an underscore." |
| 544 |
msgstr "" |
| 545 |
|
| 546 |
#. type: Plain text |
| 547 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 548 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 549 |
msgid "" |
| 550 |
"If not under CW<\\*(C`use utf8\\*(C'>, the source is treated as ASCII + 128 " |
| 551 |
"extra generic characters, and identifiers should match" |
| 552 |
msgstr "" |
| 553 |
|
| 554 |
#. type: Plain text |
| 555 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 556 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 557 |
#, no-wrap |
| 558 |
msgid "\\& / (?aa) (?!\\ed) \\ew+ /x\n" |
| 559 |
msgstr "\\& / (?aa) (?!\\ed) \\ew+ /x\n" |
| 560 |
|
| 561 |
#. type: Plain text |
| 562 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 563 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 564 |
msgid "" |
| 565 |
"That is, any word character in the ASCII range, as long as the first " |
| 566 |
"character is not a digit." |
| 567 |
msgstr "" |
| 568 |
|
| 569 |
#. type: Plain text |
| 570 |
#: debian-trixie debian-unstable |
| 571 |
msgid "" |
| 572 |
"There are two package separators in Perl: A double colon (CW<\\*(C`::" |
| 573 |
"\\*(C'>) and a single quote (CW<\\*(C`\\*(Aq\\*(C'>). Use of " |
| 574 |
"CW<\\*(C`\\*(Aq\\*(C'> as the package separator is deprecated and will be " |
| 575 |
"removed in Perl 5.40. Normal identifiers can start or end with a double " |
| 576 |
"colon, and can contain several parts delimited by double colons. Single " |
| 577 |
"quotes have similar rules, but with the exception that they are not legal at " |
| 578 |
"the end of an identifier: That is, CW<\\*(C`$\\*(Aqfoo\\*(C'> and " |
| 579 |
"CW<\\*(C`$foo\\*(Aqbar\\*(C'> are legal, but " |
| 580 |
"\\&CW<\\*(C`$foo\\*(Aqbar\\*(Aq\\*(C'> is not." |
| 581 |
msgstr "" |
| 582 |
|
| 583 |
#. type: Plain text |
| 584 |
#: debian-trixie debian-unstable |
| 585 |
msgid "" |
| 586 |
"Additionally, if the identifier is preceded by a sigil -- that is, if the " |
| 587 |
"identifier is part of a variable name -- it may optionally be enclosed in " |
| 588 |
"braces." |
| 589 |
msgstr "" |
| 590 |
|
| 591 |
#. type: Plain text |
| 592 |
#: debian-trixie debian-unstable |
| 593 |
msgid "" |
| 594 |
"While you can mix double colons with singles quotes, the quotes must come " |
| 595 |
"after the colons: CW<\\*(C`$::::\\*(Aqfoo\\*(C'> and CW<\\*(C`$foo::" |
| 596 |
"\\*(Aqbar\\*(C'> are legal, but CW<\\*(C`$::\\*(Aq::foo\\*(C'> and " |
| 597 |
"CW<\\*(C`$foo\\*(Aq::bar\\*(C'> are not." |
| 598 |
msgstr "" |
| 599 |
|
| 600 |
#. type: Plain text |
| 601 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 602 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 603 |
msgid "Put together, a grammar to match a basic identifier becomes" |
| 604 |
msgstr "" |
| 605 |
|
| 606 |
#. type: Plain text |
| 607 |
#: debian-trixie debian-unstable |
| 608 |
#, no-wrap |
| 609 |
msgid "" |
| 610 |
"\\& /\n" |
| 611 |
"\\& (?(DEFINE)\n" |
| 612 |
"\\& (?E<lt>variableE<gt>\n" |
| 613 |
"\\& (?&sigil)\n" |
| 614 |
"\\& (?:\n" |
| 615 |
"\\& (?&normal_identifier)\n" |
| 616 |
"\\& | \\e{ \\es* (?&normal_identifier) \\es* \\e}\n" |
| 617 |
"\\& )\n" |
| 618 |
"\\& )\n" |
| 619 |
"\\& (?E<lt>normal_identifierE<gt>\n" |
| 620 |
"\\& (?: :: )* \\*(Aq?\n" |
| 621 |
"\\& (?&basic_identifier)\n" |
| 622 |
"\\& (?: (?= (?: :: )+ \\*(Aq? | (?: :: )* \\*(Aq ) (?&normal_identifier) )?\n" |
| 623 |
"\\& (?: :: )*\n" |
| 624 |
"\\& )\n" |
| 625 |
"\\& (?E<lt>basic_identifierE<gt>\n" |
| 626 |
"\\& # is use utf8 on?\n" |
| 627 |
"\\& (?(?{ (caller(0))[8] & $utf8::hint_bits })\n" |
| 628 |
"\\& (?&Perl_XIDS) (?&Perl_XIDC)*\n" |
| 629 |
"\\& | (?aa) (?!\\ed) \\ew+\n" |
| 630 |
"\\& )\n" |
| 631 |
"\\& )\n" |
| 632 |
"\\& (?E<lt>sigilE<gt> [&*\\e$\\e@\\e%])\n" |
| 633 |
"\\& (?E<lt>Perl_XIDSE<gt> (?[ ( \\ep{Word} & \\ep{XID_Start} ) + [_] ]) )\n" |
| 634 |
"\\& (?E<lt>Perl_XIDCE<gt> (?[ \\ep{Word} & \\ep{XID_Continue} ]) )\n" |
| 635 |
"\\& )\n" |
| 636 |
"\\& /x\n" |
| 637 |
msgstr "" |
| 638 |
|
| 639 |
#. type: Plain text |
| 640 |
#: debian-trixie debian-unstable |
| 641 |
msgid "" |
| 642 |
"Meanwhile, special identifiers don't follow the above rules; For the most " |
| 643 |
"part, all of the identifiers in this category have a special meaning given " |
| 644 |
"by Perl. Because they have special parsing rules, these generally can't be " |
| 645 |
"fully-qualified. They come in six forms (but don't use forms 5 and 6):" |
| 646 |
msgstr "" |
| 647 |
|
| 648 |
#. type: IP |
| 649 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 650 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 651 |
#, no-wrap |
| 652 |
msgid "1." |
| 653 |
msgstr "1." |
| 654 |
|
| 655 |
#. type: Plain text |
| 656 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 657 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 658 |
msgid "" |
| 659 |
"A sigil, followed solely by digits matching CW<\\*(C`\\ep{POSIX_Digit}" |
| 660 |
"\\*(C'>, like \\&CW<$0>, CW<$1>, or CW<$10000>." |
| 661 |
msgstr "" |
| 662 |
|
| 663 |
#. type: IP |
| 664 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 665 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 666 |
#, no-wrap |
| 667 |
msgid "2." |
| 668 |
msgstr "2." |
| 669 |
|
| 670 |
#. type: Plain text |
| 671 |
#: debian-trixie debian-unstable |
| 672 |
msgid "" |
| 673 |
"A sigil followed by a single character matching the " |
| 674 |
"CW<\\*(C`\\ep{POSIX_Punct}\\*(C'> property, like CW<$!> or CW<\\*(C`%+" |
| 675 |
"\\*(C'>, except the character CW<\"{\"> doesn't work." |
| 676 |
msgstr "" |
| 677 |
|
| 678 |
#. type: IP |
| 679 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 680 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 681 |
#, no-wrap |
| 682 |
msgid "3." |
| 683 |
msgstr "3." |
| 684 |
|
| 685 |
#. type: Plain text |
| 686 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 687 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 688 |
msgid "" |
| 689 |
"A sigil, followed by a caret and any one of the characters \\&CW<\\*(C`[][A-" |
| 690 |
"Z^_?\\e]\\*(C'>, like CW<$^V> or CW<$^]>." |
| 691 |
msgstr "" |
| 692 |
|
| 693 |
#. type: IP |
| 694 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 695 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 696 |
#, no-wrap |
| 697 |
msgid "4." |
| 698 |
msgstr "4." |
| 699 |
|
| 700 |
#. type: Plain text |
| 701 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 702 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 703 |
msgid "" |
| 704 |
"Similar to the above, a sigil, followed by bareword text in braces, where " |
| 705 |
"the first character is a caret. The next character is any one of the " |
| 706 |
"characters CW<\\*(C`[][A-Z^_?\\e]\\*(C'>, followed by ASCII word " |
| 707 |
"characters. An example is CW<\\*(C`${^GLOBAL_PHASE}\\*(C'>." |
| 708 |
msgstr "" |
| 709 |
|
| 710 |
#. type: IP |
| 711 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 712 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 713 |
#, no-wrap |
| 714 |
msgid "5." |
| 715 |
msgstr "5." |
| 716 |
|
| 717 |
#. type: Plain text |
| 718 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 719 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 720 |
msgid "" |
| 721 |
"A sigil, followed by any single character in the range CW<\\*(C`[\\exA1-" |
| 722 |
"\\exAC\\exAE-\\exFF]\\*(C'> when not under CW<\"use\\ utf8\">. (Under " |
| 723 |
"CW<\"use\\ utf8\">, the normal identifier rules given earlier in this " |
| 724 |
"section apply.) Use of non-graphic characters (the C1 controls, the NO-" |
| 725 |
"BREAK SPACE, and the SOFT HYPHEN) has been disallowed since v5.26.0. The " |
| 726 |
"use of the other characters is unwise, as these are all reserved to have " |
| 727 |
"special meaning to Perl, and none of them currently do have special meaning, " |
| 728 |
"though this could change without notice." |
| 729 |
msgstr "" |
| 730 |
|
| 731 |
#. type: Plain text |
| 732 |
#: debian-trixie debian-unstable |
| 733 |
msgid "" |
| 734 |
"Note that an implication of this form is that there are identifiers only " |
| 735 |
"legal under CW<\"use\\ utf8\">, and vice-versa, for example the identifier " |
| 736 |
"\\&CW<\\*(C`$état\\*(C'> is legal under CW<\"use\\ utf8\">, but is otherwise " |
| 737 |
"considered to be the single character variable CW<$é> followed by the " |
| 738 |
"bareword CW<\"tat\">, the combination of which is a syntax error." |
| 739 |
msgstr "" |
| 740 |
|
| 741 |
#. type: IP |
| 742 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 743 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 744 |
#, no-wrap |
| 745 |
msgid "6." |
| 746 |
msgstr "6." |
| 747 |
|
| 748 |
#. type: Plain text |
| 749 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 750 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 751 |
msgid "" |
| 752 |
"This is a combination of the previous two forms. It is valid only when not " |
| 753 |
"under CW<\"use\\ utf8\"> (normal identifier rules apply when under " |
| 754 |
"\\&CW<\"use\\ utf8\">). The form is a sigil, followed by text in braces, " |
| 755 |
"where the first character is any one of the characters in the range " |
| 756 |
"\\&CW<\\*(C`[\\ex80-\\exFF]\\*(C'> followed by ASCII word characters up to " |
| 757 |
"the trailing brace." |
| 758 |
msgstr "" |
| 759 |
|
| 760 |
#. type: Plain text |
| 761 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 762 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 763 |
msgid "" |
| 764 |
"The same caveats as the previous form apply: The non-graphic characters are " |
| 765 |
"no longer allowed with \"use\\ utf8\", it is unwise to use this form at all, " |
| 766 |
"and utf8ness makes a big difference." |
| 767 |
msgstr "" |
| 768 |
|
| 769 |
#. type: Plain text |
| 770 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 771 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 772 |
msgid "" |
| 773 |
"Prior to Perl v5.24, non-graphical ASCII control characters were also " |
| 774 |
"allowed in some situations; this had been deprecated since v5.20." |
| 775 |
msgstr "" |
| 776 |
|
| 777 |
#. type: IX |
| 778 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 779 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 780 |
#, no-wrap |
| 781 |
msgid "Context" |
| 782 |
msgstr "Kontekst" |
| 783 |
|
| 784 |
#. type: IX |
| 785 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 786 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 787 |
#, no-wrap |
| 788 |
msgid "context scalar context list context" |
| 789 |
msgstr "" |
| 790 |
|
| 791 |
#. type: Plain text |
| 792 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 793 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 794 |
#, fuzzy |
| 795 |
#| msgid "" |
| 796 |
#| "The interpretation of operations and values in Perl sometimes depends on " |
| 797 |
#| "the requirements of the context in which the operation or value is used. " |
| 798 |
#| "There are two main contexts: scalar and list. Some operations return list " |
| 799 |
#| "values in a context expecting a list, and scalar values otherwise. (If " |
| 800 |
#| "this is the case for a given operation, it will be mentioned in its " |
| 801 |
#| "description.) In other words, Perl overloads certain operations based on " |
| 802 |
#| "whether a single value or a plural value is expected. (Some words in " |
| 803 |
#| "English, such as \\*(L\"fish\\*(R\" and \\*(L\"sheep\\*(R\"), function in " |
| 804 |
#| "a similar way.)" |
| 805 |
msgid "" |
| 806 |
"The interpretation of operations and values in Perl sometimes depends on the " |
| 807 |
"requirements of the context around the operation or value. There are two " |
| 808 |
"major contexts: list and scalar. Certain operations return list values in " |
| 809 |
"contexts wanting a list, and scalar values otherwise. If this is true of an " |
| 810 |
"operation it will be mentioned in the documentation for that operation. In " |
| 811 |
"other words, Perl overloads certain operations based on whether the expected " |
| 812 |
"return value is singular or plural. Some words in English work this way, " |
| 813 |
"like \"fish\" and \"sheep\"." |
| 814 |
msgstr "" |
| 815 |
"Interpretacja operacji i wartości w Perlu zależy czasami od wymagań " |
| 816 |
"kontekstu, w jakim użyta jest operacja czy wartość. Istnieją dwa główne " |
| 817 |
"konteksty: skalarny i listowy. Niektóre z operacji zwracają wartości listowe " |
| 818 |
"w kontekście oczekującym listy, zaś wartości skalarne w przeciwnym " |
| 819 |
"przypadku. (Jeśli tak jest dla danej operacji, to zostanie to wspomniane w " |
| 820 |
"jej opisie.) Innymi słowy, Perl przeciąża pewne operacje w oparciu o to, " |
| 821 |
"czy spodziewana jest pojedyncza wartość czy mnoga. (W podobny sposób " |
| 822 |
"funkcjonują w języku angielskim niektóre słowa, jak \\*(L\"fish\\*(R\" czy " |
| 823 |
"\\*(L\"sheep\\*(R\".)" |
| 824 |
|
| 825 |
#. type: Plain text |
| 826 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 827 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 828 |
#, fuzzy |
| 829 |
#| msgid "" |
| 830 |
#| "By reciprocity, an operation provides either a scalar or list context to " |
| 831 |
#| "each of its arguments. For example, if you write" |
| 832 |
msgid "" |
| 833 |
"In a reciprocal fashion, an operation provides either a scalar or a list " |
| 834 |
"context to each of its arguments. For example, if you say" |
| 835 |
msgstr "" |
| 836 |
"Na zasadzie wzajemności, operacja dostarcza albo kontekstu skalarnego albo " |
| 837 |
"listowego każdemu ze swych argumentów. Na przykład, jeśli napiszesz" |
| 838 |
|
| 839 |
#. type: Plain text |
| 840 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 841 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 842 |
#, no-wrap |
| 843 |
msgid "\\& int( E<lt>STDINE<gt> )\n" |
| 844 |
msgstr "\\& int( E<lt>STDINE<gt> )\n" |
| 845 |
|
| 846 |
#. type: Plain text |
| 847 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 848 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 849 |
#, fuzzy |
| 850 |
#| msgid "" |
| 851 |
#| "is an integer operation that provides a scalar context for the " |
| 852 |
#| "E<lt>\\s-1STDIN\\s0E<gt> operator, which responds by reading one row from " |
| 853 |
#| "\\s-1STDIN\\s0 and passing it back to the integer operation. This in turn " |
| 854 |
#| "finds the integer value of that row and returns it. If, on the other " |
| 855 |
#| "hand, you write" |
| 856 |
msgid "" |
| 857 |
"the integer operation provides scalar context for the E<lt>E<gt> operator, " |
| 858 |
"which responds by reading one line from STDIN and passing it back to the " |
| 859 |
"integer operation, which will then find the integer value of that line and " |
| 860 |
"return that. If, on the other hand, you say" |
| 861 |
msgstr "" |
| 862 |
"to operacja całkowita (integer) dostarcza kontekst skalarny dla operatora " |
| 863 |
"E<lt>\\s-1STDIN\\s0E<gt>, który odpowiada czytając jeden wiersz z " |
| 864 |
"\\s-1STDIN\\s0 i przesyłając go z powrotem do operacji integer. Ta z kolei " |
| 865 |
"znajduje wartość typu integer tego wiersza i zwraca ją. Jeżeli, z drugiej " |
| 866 |
"strony, napiszesz" |
| 867 |
|
| 868 |
#. type: Plain text |
| 869 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 870 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 871 |
#, no-wrap |
| 872 |
msgid "\\& sort( E<lt>STDINE<gt> )\n" |
| 873 |
msgstr "\\& sort( E<lt>STDINE<gt> )\n" |
| 874 |
|
| 875 |
#. type: Plain text |
| 876 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 877 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 878 |
#, fuzzy |
| 879 |
#| msgid "" |
| 880 |
#| "This sort operation provides a list context for E<lt>\\s-1STDIN\\s0E<gt>, " |
| 881 |
#| "which will process all available lines up to the end of the file. It will " |
| 882 |
#| "then pass a list of those lines back to the sort routine, which in turn " |
| 883 |
#| "will sort the supplied lines and return them as a list to the context in " |
| 884 |
#| "which sort was called." |
| 885 |
msgid "" |
| 886 |
"then the sort operation provides list context for E<lt>E<gt>, which will " |
| 887 |
"proceed to read every line available up to the end of file, and pass that " |
| 888 |
"list of lines back to the sort routine, which will then sort those lines and " |
| 889 |
"return them as a list to whatever the context of the sort was." |
| 890 |
msgstr "" |
| 891 |
"To operacja sortowania dostarcza kontekstu listowego dla " |
| 892 |
"E<lt>\\s-1STDIN\\s0E<gt>, który będzie przetwarzać wszystkie dostępne " |
| 893 |
"wiersze aż do końca pliku. Następnie prześle listę tych wierszy z powrotem " |
| 894 |
"do procedury sortowania, która z kolei posortuje dostarczone wiersze i " |
| 895 |
"zwróci je w postaci listy do kontekstu w jakim wywołano sort." |
| 896 |
|
| 897 |
#. type: Plain text |
| 898 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 899 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 900 |
#, fuzzy |
| 901 |
#| msgid "" |
| 902 |
#| "Assignment is a bit special in that it uses its left argument to " |
| 903 |
#| "establish the context for its right argument. Assignment to a scalar " |
| 904 |
#| "evaluates the right side in scalar context, while assignment to an array " |
| 905 |
#| "or array slice evaluates the right side in list context. Assignment to a " |
| 906 |
#| "list also evaluates the right side in list context." |
| 907 |
msgid "" |
| 908 |
"Assignment is a little bit special in that it uses its left argument to " |
| 909 |
"determine the context for the right argument. Assignment to a scalar " |
| 910 |
"evaluates the right-hand side in scalar context, while assignment to an " |
| 911 |
"array or hash evaluates the righthand side in list context. Assignment to a " |
| 912 |
"list (or slice, which is just a list anyway) also evaluates the right-hand " |
| 913 |
"side in list context." |
| 914 |
msgstr "" |
| 915 |
"Przypisanie jest trochę specyficzne, w tym, iż posługuje się swym lewym " |
| 916 |
"argumentem do ustalenia kontekstu dla prawego argumentu. Przypisanie do " |
| 917 |
"skalara oblicza prawą stronę w kontekście skalarnym, podczas gdy przypisanie " |
| 918 |
"do tablicy lub wycinka tablicy rozwija prawą stronę w kontekście listowym. " |
| 919 |
"Przypisanie do listy również oblicza prawą stronę w kontekście listowym." |
| 920 |
|
| 921 |
#. type: Plain text |
| 922 |
#: debian-trixie debian-unstable |
| 923 |
msgid "" |
| 924 |
"When you use the CW<\\*(C`use warnings\\*(C'> pragma or Perl's B<-w> command-" |
| 925 |
"line option, you may see warnings about useless uses of constants or " |
| 926 |
"functions in \"void context\". Void context just means the value has been " |
| 927 |
"discarded, such as a statement containing only CW<\\*(C`\"fred\";\\*(C'> or " |
| 928 |
"CW<\\*(C`getpwuid(0);\\*(C'>. It still counts as scalar context for " |
| 929 |
"functions that care whether or not they're being called in list context." |
| 930 |
msgstr "" |
| 931 |
|
| 932 |
#. type: Plain text |
| 933 |
#: debian-trixie debian-unstable |
| 934 |
#, fuzzy |
| 935 |
#| msgid "" |
| 936 |
#| "User-defined procedures can check whether they are called in scalar or " |
| 937 |
#| "list context, but most of them don't care, since scalars are " |
| 938 |
#| "automatically interpolated into lists. See the description of the " |
| 939 |
#| "CW<wantarray> function in the I<perlfunc>(1) page." |
| 940 |
msgid "" |
| 941 |
"User-defined subroutines may choose to care whether they are being called in " |
| 942 |
"a void, scalar, or list context. Most subroutines do not need to bother, " |
| 943 |
"though. That's because both scalars and lists are automatically " |
| 944 |
"interpolated into lists. See \"wantarray\" in perlfunc for how you would " |
| 945 |
"dynamically discern your function's calling context." |
| 946 |
msgstr "" |
| 947 |
"Procedury definiowane przez użytkownika mogą sprawdzać, czy są wywołane w " |
| 948 |
"kontekście skalarnym czy listowym, ale większość z nich nie dba o to, gdyż " |
| 949 |
"skalary są automatycznie interpolowane w listy. Zobacz opis funkcji " |
| 950 |
"CW<wantarray> na stronie I<perlfunc>(1)." |
| 951 |
|
| 952 |
#. type: IX |
| 953 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 954 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 955 |
#, no-wrap |
| 956 |
msgid "Scalar values" |
| 957 |
msgstr "Wartości skalarne" |
| 958 |
|
| 959 |
#. type: IX |
| 960 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 961 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 962 |
#, no-wrap |
| 963 |
msgid "scalar number string reference" |
| 964 |
msgstr "" |
| 965 |
|
| 966 |
#. type: Plain text |
| 967 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 968 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 969 |
#, fuzzy |
| 970 |
#| msgid "" |
| 971 |
#| "All data in Perl is either scalars or arrays of scalars or hashes of " |
| 972 |
#| "scalars. Scalar variables can hold various kinds of individual data, such " |
| 973 |
#| "as numbers, strings, or references. In general, conversion from one form " |
| 974 |
#| "to the other is transparent. (A scalar cannot hold multiple values, but " |
| 975 |
#| "it can hold a reference to an array or hash of multiple values.) Because " |
| 976 |
#| "of automatic scalar conversion, operators and functions that return " |
| 977 |
#| "scalars do not need to care (and in fact do not care) whether the context " |
| 978 |
#| "expects a string or a number." |
| 979 |
msgid "" |
| 980 |
"All data in Perl is a scalar, an array of scalars, or a hash of scalars. A " |
| 981 |
"scalar may contain one single value in any of three different flavors: a " |
| 982 |
"number, a string, or a reference. In general, conversion from one form to " |
| 983 |
"another is transparent. Although a scalar may not directly hold multiple " |
| 984 |
"values, it may contain a reference to an array or hash which in turn " |
| 985 |
"contains multiple values." |
| 986 |
msgstr "" |
| 987 |
"Wszystkie dane w Perlu są skalarami lub tablicami skalarów albo haszami " |
| 988 |
"skalarów. Zmienne skalarne mogą zawierać różne rodzaje pojedynczych danych, " |
| 989 |
"jak liczby, łańcuchy znakowe czy odwołania. Ogólnie, konwersja z jednej " |
| 990 |
"postaci na drugą jest transparentna. (Skalar nie może zawierać wielu " |
| 991 |
"wartości, ale może zawierać odwołanie do tablicy czy hasza zawierających " |
| 992 |
"wiele wartości.) Z powodu automatycznej konwersji skalarów, operatory i " |
| 993 |
"funkcje zwracające skalary nie muszą dbać o to (i faktycznie nie dbają), czy " |
| 994 |
"kontekst oczekuje łańcucha czy też liczby." |
| 995 |
|
| 996 |
#. type: Plain text |
| 997 |
#: debian-trixie debian-unstable |
| 998 |
#, fuzzy |
| 999 |
#| msgid "" |
| 1000 |
#| "Scalars are not necessarily one thing or another. There is no way to " |
| 1001 |
#| "declare a scalar variable of type \\*(L\"string\\*(R\", " |
| 1002 |
#| "\\*(L\"number\\*(R\", of type \\*(L\"filehandle\\*(R\", or something " |
| 1003 |
#| "else. Perl is a contextually polymorphic language, in which scalars can " |
| 1004 |
#| "be strings, numbers, or references (which includes objects). Strings and " |
| 1005 |
#| "numbers are considered to be more or less the same thing for almost all " |
| 1006 |
#| "purposes. References, however, are uncastable, strictly typed pointers " |
| 1007 |
#| "with built-in reference counting and destructor calls." |
| 1008 |
msgid "" |
| 1009 |
"Scalars aren't necessarily one thing or another. There's no place to " |
| 1010 |
"declare a scalar variable to be of type \"string\", type \"number\", type " |
| 1011 |
"\"reference\", or anything else. Because of the automatic conversion of " |
| 1012 |
"scalars, operations that return scalars don't need to care (and in fact, " |
| 1013 |
"cannot care) whether their caller is looking for a string, a number, or a " |
| 1014 |
"reference. Perl is a contextually polymorphic language whose scalars can be " |
| 1015 |
"strings, numbers, or references (which includes objects). Although strings " |
| 1016 |
"and numbers are considered pretty much the same thing for nearly all " |
| 1017 |
"purposes, references are strongly-typed, uncastable pointers with builtin " |
| 1018 |
"reference-counting and destructor invocation." |
| 1019 |
msgstr "" |
| 1020 |
"Skalary nie są koniecznie tą czy inną rzeczą. Nie ma możliwości " |
| 1021 |
"zadeklarowania zmiennej skalarnej o typie \\*(L\"string\\*(R\", " |
| 1022 |
"\\*(L\"number\\*(R\", typu \\*(L\"filehandle\\*(R\", czy jakiegoś innego. " |
| 1023 |
"Perl jest językiem kontekstowo polimorficznym, w którym skalary mogą być " |
| 1024 |
"łańcuchami, liczbami czy odwołaniami (co obejmuje obiekty). Łańcuchy i " |
| 1025 |
"liczby uważane są za mniejwięcej to samo w niemal każdym zastosowaniu. " |
| 1026 |
"Odwołania są jednak nierzutowalnymi wskaźnikami o ściśle określonym typie, z " |
| 1027 |
"wbudowanym licznikiem odwołań i wywołaniami destruktora." |
| 1028 |
|
| 1029 |
#. type: Plain text |
| 1030 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1031 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1032 |
msgid "" |
| 1033 |
"A scalar value is interpreted as FALSE in the Boolean sense if it is " |
| 1034 |
"undefined, the null string or the number 0 (or its string equivalent, " |
| 1035 |
"\"0\"), and TRUE if it is anything else. The Boolean context is just a " |
| 1036 |
"special kind of scalar context where no conversion to a string or a number " |
| 1037 |
"is ever performed. Negation of a true value by CW<\\*(C`!\\*(C'> or " |
| 1038 |
"CW<\\*(C`not\\*(C'> returns a special false value. When evaluated as a " |
| 1039 |
"string it is treated as CW<\"\">, but as a number, it is treated as 0. Most " |
| 1040 |
"Perl operators that return true or false behave this way." |
| 1041 |
msgstr "" |
| 1042 |
|
| 1043 |
#. type: IX |
| 1044 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1045 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1046 |
#, no-wrap |
| 1047 |
msgid "truth falsehood true false ! not negation 0 boolean bool" |
| 1048 |
msgstr "" |
| 1049 |
|
| 1050 |
#. type: Plain text |
| 1051 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1052 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1053 |
#, fuzzy |
| 1054 |
#| msgid "" |
| 1055 |
#| "There are actually two varieties of null scalars: defined and undefined. " |
| 1056 |
#| "Undefined null scalars are returned when there is no actual value for " |
| 1057 |
#| "something, such as in the event of an error or at the end of a file, or " |
| 1058 |
#| "when you refer to an undefined variable or array element. An undefined " |
| 1059 |
#| "null scalar can become defined after you first use it as if it were " |
| 1060 |
#| "defined. But before that, you can use the I<defined()> operator to " |
| 1061 |
#| "determine whether the value is defined or not." |
| 1062 |
msgid "" |
| 1063 |
"There are actually two varieties of null strings (sometimes referred to as " |
| 1064 |
"\"empty\" strings), a defined one and an undefined one. The defined version " |
| 1065 |
"is just a string of length zero, such as CW<\"\">. The undefined version is " |
| 1066 |
"the value that indicates that there is no real value for something, such as " |
| 1067 |
"when there was an error, or at end of file, or when you refer to an " |
| 1068 |
"uninitialized variable or element of an array or hash. Although in early " |
| 1069 |
"versions of Perl, an undefined scalar could become defined when first used " |
| 1070 |
"in a place expecting a defined value, this no longer happens except for rare " |
| 1071 |
"cases of autovivification as explained in perlref. You can use the " |
| 1072 |
"B<defined()> operator to determine whether a scalar value is defined (this " |
| 1073 |
"has no meaning on arrays or hashes), and the B<undef()> operator to produce " |
| 1074 |
"an undefined value." |
| 1075 |
msgstr "" |
| 1076 |
"Faktycznie istnieją dwie odmiany skalarów pustych: zdefiniowane i " |
| 1077 |
"niezdefiniowane. Niezdefiniowane skalary puste zwracane są gdy brak jest " |
| 1078 |
"rzeczywistej wartości czegoś, jak w przypadku wystąpienia błędu lub na końcu " |
| 1079 |
"pliku, albo gdy odwołujesz się do niezdefiniowanej zmiennej czy elementu " |
| 1080 |
"tablicy. Niezdefiniowany pusty skalar może stać się zdefiniowany po tym, jak " |
| 1081 |
"po raz pierwszy użyjesz go tak, jakby był zdefiniowany. Ale przed tym możesz " |
| 1082 |
"posłużyć się operatorem I<defined()>, by stwierdzić, czy wartość jest " |
| 1083 |
"zdefiniowana czy też nie." |
| 1084 |
|
| 1085 |
#. type: IX |
| 1086 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1087 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1088 |
#, no-wrap |
| 1089 |
msgid "defined undefined undef null string, null" |
| 1090 |
msgstr "defined undefined undef null string, null" |
| 1091 |
|
| 1092 |
#. type: Plain text |
| 1093 |
#: debian-trixie debian-unstable |
| 1094 |
#, fuzzy |
| 1095 |
#| msgid "" |
| 1096 |
#| "To determine whether a given string is a valid non-zero number, it is " |
| 1097 |
#| "usually sufficient to compare it to both the numeric 0 and the lexical " |
| 1098 |
#| "\\*(L\"0\\*(R\" (although this will cause warnings from the B<-w> " |
| 1099 |
#| "option). This method is because non-numeric strings are considered to be " |
| 1100 |
#| "0, as in B<awk>:" |
| 1101 |
msgid "" |
| 1102 |
"To find out whether a given string is a valid non-zero number, it's " |
| 1103 |
"sometimes enough to test it against both numeric 0 and also lexical \"0\" " |
| 1104 |
"(although this will cause noises if warnings are on). That's because " |
| 1105 |
"strings that aren't numbers count as 0, just as they do in B<awk>:" |
| 1106 |
msgstr "" |
| 1107 |
"By stwierdzić, czy dany łańcuch jest poprawną liczbą niezerową wystarczy " |
| 1108 |
"zwykle porównać go zarówno z numerycznym 0 jak i leksykalnym \\*(L\"0\\*(R\" " |
| 1109 |
"(choć spowoduje to ostrzeżenia opcji B<-w>). Sposób ten wynika stąd, że " |
| 1110 |
"łańcuchy nie będące liczbami uważane są za 0, tak jak w B<awk>:" |
| 1111 |
|
| 1112 |
#. type: Plain text |
| 1113 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1114 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1115 |
#, no-wrap |
| 1116 |
msgid "" |
| 1117 |
"\\& if ($str == 0 && $str ne \"0\") {\n" |
| 1118 |
"\\& warn \"That doesn\\*(Aqt look like a number\";\n" |
| 1119 |
"\\& }\n" |
| 1120 |
msgstr "" |
| 1121 |
"\\& if ($str == 0 && $str ne \"0\") {\n" |
| 1122 |
"\\& warn \"To nie wygląda na liczbę\";\n" |
| 1123 |
"\\& }\n" |
| 1124 |
|
| 1125 |
#. type: Plain text |
| 1126 |
#: debian-trixie debian-unstable |
| 1127 |
msgid "" |
| 1128 |
"That method may be best because otherwise you won't treat IEEE notations " |
| 1129 |
"like CW<\\*(C`NaN\\*(C'> or CW<\\*(C`Infinity\\*(C'> properly. At other " |
| 1130 |
"times, you might prefer to determine whether string data can be used " |
| 1131 |
"numerically by calling the B<POSIX::strtod()> function or by inspecting your " |
| 1132 |
"string with a regular expression (as documented in perlre)." |
| 1133 |
msgstr "" |
| 1134 |
|
| 1135 |
#. type: Plain text |
| 1136 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1137 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1138 |
#, no-wrap |
| 1139 |
msgid "" |
| 1140 |
"\\& warn \"has nondigits\" if /\\eD/;\n" |
| 1141 |
"\\& warn \"not a natural number\" unless /^\\ed+$/; # rejects -3\n" |
| 1142 |
"\\& warn \"not an integer\" unless /^-?\\ed+$/; # rejects +3\n" |
| 1143 |
"\\& warn \"not an integer\" unless /^[+-]?\\ed+$/;\n" |
| 1144 |
"\\& warn \"not a decimal number\" unless /^-?\\ed+\\e.?\\ed*$/; # rejects .2\n" |
| 1145 |
"\\& warn \"not a decimal number\" unless /^-?(?:\\ed+(?:\\e.\\ed*)?|\\e.\\ed+)$/;\n" |
| 1146 |
"\\& warn \"not a C float\"\n" |
| 1147 |
"\\& unless /^([+-]?)(?=\\ed|\\e.\\ed)\\ed*(\\e.\\ed*)?([Ee]([+-]?\\ed+))?$/;\n" |
| 1148 |
msgstr "" |
| 1149 |
"\\& warn \"has nondigits\" if /\\eD/;\n" |
| 1150 |
"\\& warn \"not a natural number\" unless /^\\ed+$/; # rejects -3\n" |
| 1151 |
"\\& warn \"not an integer\" unless /^-?\\ed+$/; # rejects +3\n" |
| 1152 |
"\\& warn \"not an integer\" unless /^[+-]?\\ed+$/;\n" |
| 1153 |
"\\& warn \"not a decimal number\" unless /^-?\\ed+\\e.?\\ed*$/; # rejects .2\n" |
| 1154 |
"\\& warn \"not a decimal number\" unless /^-?(?:\\ed+(?:\\e.\\ed*)?|\\e.\\ed+)$/;\n" |
| 1155 |
"\\& warn \"not a C float\"\n" |
| 1156 |
"\\& unless /^([+-]?)(?=\\ed|\\e.\\ed)\\ed*(\\e.\\ed*)?([Ee]([+-]?\\ed+))?$/;\n" |
| 1157 |
|
| 1158 |
#. type: Plain text |
| 1159 |
#: debian-trixie debian-unstable |
| 1160 |
msgid "" |
| 1161 |
"The length of an array is a scalar value. You may find the length of array " |
| 1162 |
"CW<@days> by evaluating CW<$#days>, as in B<csh>. However, this isn't the " |
| 1163 |
"length of the array; it's the subscript of the last element, which is a " |
| 1164 |
"different value since there is ordinarily a 0th element. Assigning to " |
| 1165 |
"CW<$#days> actually changes the length of the array. Shortening an array " |
| 1166 |
"this way destroys intervening values. Lengthening an array that was " |
| 1167 |
"previously shortened does not recover values that were in those elements." |
| 1168 |
msgstr "" |
| 1169 |
|
| 1170 |
#. type: IX |
| 1171 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1172 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1173 |
#, no-wrap |
| 1174 |
msgid "$# array, length" |
| 1175 |
msgstr "" |
| 1176 |
|
| 1177 |
#. type: Plain text |
| 1178 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1179 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1180 |
msgid "" |
| 1181 |
"You can also gain some minuscule measure of efficiency by pre-extending an " |
| 1182 |
"array that is going to get big. You can also extend an array by assigning " |
| 1183 |
"to an element that is off the end of the array. You can truncate an array " |
| 1184 |
"down to nothing by assigning the null list () to it. The following are " |
| 1185 |
"equivalent:" |
| 1186 |
msgstr "" |
| 1187 |
|
| 1188 |
#. type: Plain text |
| 1189 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1190 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1191 |
#, no-wrap |
| 1192 |
msgid "" |
| 1193 |
"\\& @whatever = ();\n" |
| 1194 |
"\\& $#whatever = -1;\n" |
| 1195 |
msgstr "" |
| 1196 |
"\\& @cokolwiek = ();\n" |
| 1197 |
"\\& $#cokolwiek = -1;\n" |
| 1198 |
|
| 1199 |
#. type: Plain text |
| 1200 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1201 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1202 |
#, fuzzy |
| 1203 |
#| msgid "" |
| 1204 |
#| "If you process a named array in a scalar context, it returns the length " |
| 1205 |
#| "of the array. (Note that this is not true for lists, which return the " |
| 1206 |
#| "last value, like the comma operator in C. It is also not true for built-" |
| 1207 |
#| "in functions, which return whatever they want.) The following is always " |
| 1208 |
#| "true:" |
| 1209 |
msgid "" |
| 1210 |
"If you evaluate an array in scalar context, it returns the length of the " |
| 1211 |
"array. (Note that this is not true of lists, which return the last value, " |
| 1212 |
"like the C comma operator, nor of built-in functions, which return whatever " |
| 1213 |
"they feel like returning.) The following is always true:" |
| 1214 |
msgstr "" |
| 1215 |
"Jeżeli przetwarzasz nazwaną tablicę w kontekście skalarnym, to zwraca on " |
| 1216 |
"długość tablicy. (Zauważ, że nie jest to prawdą dla list, które zwracają " |
| 1217 |
"ostatnią wartość, tak jak operator przecinka w C. Nie jest to też prawdą dla " |
| 1218 |
"funkcji wbudowanych, zwracających to, na co mają ochotę.) Poniższe jest " |
| 1219 |
"zawsze prawdziwe:" |
| 1220 |
|
| 1221 |
#. type: IX |
| 1222 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1223 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1224 |
#, no-wrap |
| 1225 |
msgid "array, length" |
| 1226 |
msgstr "" |
| 1227 |
|
| 1228 |
#. type: Plain text |
| 1229 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1230 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1231 |
#, no-wrap |
| 1232 |
msgid "\\& scalar(@whatever) == $#whatever + 1;\n" |
| 1233 |
msgstr "\\& scalar(@cokolwiek) == $#cokolwiek + 1;\n" |
| 1234 |
|
| 1235 |
#. type: Plain text |
| 1236 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1237 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1238 |
#, fuzzy |
| 1239 |
#| msgid "" |
| 1240 |
#| "Some programmers choose to use explicit conversion to avoid any ambiguity:" |
| 1241 |
msgid "" |
| 1242 |
"Some programmers choose to use an explicit conversion so as to leave nothing " |
| 1243 |
"to doubt:" |
| 1244 |
msgstr "" |
| 1245 |
"Niektórzy programiści wybierają użycie jawnej konwersji, by nie było żadnych " |
| 1246 |
"wątpliwości:" |
| 1247 |
|
| 1248 |
#. type: Plain text |
| 1249 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1250 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1251 |
#, no-wrap |
| 1252 |
msgid "\\& $element_count = scalar(@whatever);\n" |
| 1253 |
msgstr "\\& $liczba_elementow = scalar(@cokolwiek);\n" |
| 1254 |
|
| 1255 |
#. type: Plain text |
| 1256 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1257 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1258 |
msgid "" |
| 1259 |
"If you evaluate a hash in scalar context, it returns a false value if the " |
| 1260 |
"hash is empty. If there are any key/value pairs, it returns a true value. " |
| 1261 |
"A more precise definition is version dependent." |
| 1262 |
msgstr "" |
| 1263 |
|
| 1264 |
#. type: Plain text |
| 1265 |
#: debian-trixie debian-unstable |
| 1266 |
#, fuzzy |
| 1267 |
#| msgid "" |
| 1268 |
#| "If you use a hash (associative array) in scalar context, it returns a " |
| 1269 |
#| "value that is true if and only if the hash contains any key/value pairs. " |
| 1270 |
#| "(If there are any, the return value is a string consisting of the number " |
| 1271 |
#| "of buckets used and the number of buckets allocated, separated by a " |
| 1272 |
#| "slash. This is most useful for checking whether the Perl-compiled hashing " |
| 1273 |
#| "algorithm is performing poorly on your data set. For example, you put " |
| 1274 |
#| "10,000 items into a hash, but processing CW<%HASH> in scalar context " |
| 1275 |
#| "returns \\*(L\"1/16\\*(R\", which means that only one of the sixteen " |
| 1276 |
#| "buckets was used, and it presumably contains all of your 10,000 items. " |
| 1277 |
#| "This shouldn't happen.)" |
| 1278 |
msgid "" |
| 1279 |
"Prior to Perl 5.25 the value returned was a string consisting of the number " |
| 1280 |
"of used buckets and the number of allocated buckets, separated by a slash. " |
| 1281 |
"This is pretty much useful only to find out whether Perl's internal hashing " |
| 1282 |
"algorithm is performing poorly on your data set. For example, you stick " |
| 1283 |
"10,000 things in a hash, but evaluating \\&CW<%HASH> in scalar context " |
| 1284 |
"reveals CW<\"1/16\">, which means only one out of sixteen buckets has been " |
| 1285 |
"touched, and presumably contains all 10,000 of your items. This isn't " |
| 1286 |
"supposed to happen." |
| 1287 |
msgstr "" |
| 1288 |
"Jeżeli posługujesz się haszem (tablicą asocjacyjną) w kontekście skalarnym, " |
| 1289 |
"to zwraca on wartość, która jest prawdą wtedy i tylko wtedy, gdy hasz " |
| 1290 |
"zawiera jakąkolwiek parę klucz/wartość. (Jeżeli są takie pary, to wartość " |
| 1291 |
"zwracana jest łańcuchem składającym się z liczby użytych jednostek komórek " |
| 1292 |
"(buckets) oraz liczby zaalokowanych jednostek komórek, rozdzielonych " |
| 1293 |
"ukośnikiem. Najbardziej przydaje się to do sprawdzania, czy wkompilowany w " |
| 1294 |
"Perl algorytm haszowania działa kiepsko na twoim zestawie danych. Na " |
| 1295 |
"przykład, wrzucasz 10,000 elementów do hasza, ale przetworzenie CW<%HASH> w " |
| 1296 |
"kontekście skalarnym zwraca \\*(L\"1/16\\*(R\", co oznacza, że tylko jedna z " |
| 1297 |
"szesnastu komórek została użyta, i przypuszczalnie zawiera wszystkie twoje " |
| 1298 |
"10,000 pozycji. To się nie powinno zdarzyć.)" |
| 1299 |
|
| 1300 |
#. type: Plain text |
| 1301 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1302 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1303 |
msgid "" |
| 1304 |
"As of Perl 5.25 the return was changed to be the count of keys in the hash. " |
| 1305 |
"If you need access to the old behavior you can use " |
| 1306 |
"\\&CW<Hash::Util::bucket_ratio()> instead." |
| 1307 |
msgstr "" |
| 1308 |
|
| 1309 |
#. type: Plain text |
| 1310 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1311 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1312 |
msgid "" |
| 1313 |
"If a tied hash is evaluated in scalar context, the CW<\\*(C`SCALAR\\*(C'> " |
| 1314 |
"method is called (with a fallback to CW<\\*(C`FIRSTKEY\\*(C'>)." |
| 1315 |
msgstr "" |
| 1316 |
|
| 1317 |
#. type: IX |
| 1318 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1319 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1320 |
#, no-wrap |
| 1321 |
msgid "hash, scalar context hash, bucket bucket" |
| 1322 |
msgstr "" |
| 1323 |
|
| 1324 |
#. type: Plain text |
| 1325 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1326 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1327 |
#, fuzzy |
| 1328 |
#| msgid "" |
| 1329 |
#| "You can preallocate space for the hash by assigning to the I<keys()> " |
| 1330 |
#| "function. This will round the allocated cell units to the nearest power " |
| 1331 |
#| "of two." |
| 1332 |
msgid "" |
| 1333 |
"You can preallocate space for a hash by assigning to the B<keys()> " |
| 1334 |
"function. This rounds up the allocated buckets to the next power of two:" |
| 1335 |
msgstr "" |
| 1336 |
"Możesz wstępnie przydzielić miejsce na hasz przy pomocy przypisania do " |
| 1337 |
"funkcji I<keys()>. Zaokrągli to zaalokowane jednostki komórek do najbliższej " |
| 1338 |
"potęgi dwójki." |
| 1339 |
|
| 1340 |
#. type: Plain text |
| 1341 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1342 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1343 |
#, no-wrap |
| 1344 |
msgid "\\& keys(%users) = 1000; # allocate 1024 buckets\n" |
| 1345 |
msgstr "\\& keys(%users) = 1000; # zaalokuj 1024 buckets\n" |
| 1346 |
|
| 1347 |
#. type: IX |
| 1348 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1349 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1350 |
#, no-wrap |
| 1351 |
msgid "Scalar value constructors" |
| 1352 |
msgstr "" |
| 1353 |
|
| 1354 |
#. type: IX |
| 1355 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1356 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1357 |
#, no-wrap |
| 1358 |
msgid "scalar, literal scalar, constant" |
| 1359 |
msgstr "" |
| 1360 |
|
| 1361 |
#. type: Plain text |
| 1362 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1363 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1364 |
#, fuzzy |
| 1365 |
#| msgid "" |
| 1366 |
#| "Numeric literals are given in the usual floating-point or integer formats:" |
| 1367 |
msgid "" |
| 1368 |
"Numeric literals are specified in any of the following floating point or " |
| 1369 |
"integer formats:" |
| 1370 |
msgstr "" |
| 1371 |
"Literały numeryczne podawane są w zwyczajowych formatach " |
| 1372 |
"zmiennoprzecinkowych lub całkowitych:" |
| 1373 |
|
| 1374 |
#. type: Plain text |
| 1375 |
#: debian-trixie debian-unstable |
| 1376 |
#, no-wrap |
| 1377 |
msgid "" |
| 1378 |
"\\& 12345\n" |
| 1379 |
"\\& 12345.67\n" |
| 1380 |
"\\& .23E-10 # a very small number\n" |
| 1381 |
"\\& 3.14_15_92 # a very important number\n" |
| 1382 |
"\\& 4_294_967_296 # underscore for legibility\n" |
| 1383 |
"\\& 0xff # hex\n" |
| 1384 |
"\\& 0xdead_beef # more hex\n" |
| 1385 |
"\\& 0377 # octal (only numbers, begins with 0)\n" |
| 1386 |
"\\& 0o12_345 # alternative octal (introduced in Perl 5.33.5)\n" |
| 1387 |
"\\& 0b011011 # binary\n" |
| 1388 |
"\\& 0x1.999ap-4 # hexadecimal floating point (the \\*(Aqp\\*(Aq is required)\n" |
| 1389 |
msgstr "" |
| 1390 |
|
| 1391 |
#. type: Plain text |
| 1392 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1393 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1394 |
msgid "" |
| 1395 |
"You are allowed to use underscores (underbars) in numeric literals between " |
| 1396 |
"digits for legibility (but not multiple underscores in a row: " |
| 1397 |
"\\&CW<\\*(C`23_\\|_500\\*(C'> is not legal; CW<\\*(C`23_500\\*(C'> is). You " |
| 1398 |
"could, for example, group binary digits by threes (as for a Unix-style mode " |
| 1399 |
"argument such as 0b110_100_100) or by fours (to represent nibbles, as in " |
| 1400 |
"0b1010_0110) or in other groups." |
| 1401 |
msgstr "" |
| 1402 |
|
| 1403 |
#. type: IX |
| 1404 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1405 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1406 |
#, no-wrap |
| 1407 |
msgid "number, literal" |
| 1408 |
msgstr "" |
| 1409 |
|
| 1410 |
#. type: Plain text |
| 1411 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1412 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1413 |
#, fuzzy |
| 1414 |
#| msgid "" |
| 1415 |
#| "String literals are usually delimited by single or double quotes. They " |
| 1416 |
#| "work very similarly to the shell quote characters: variable substitution " |
| 1417 |
#| "and backslash expansion occur in quoted string literals. No substitution " |
| 1418 |
#| "or expansion occurs in quoted strings (with the exception of " |
| 1419 |
#| "\\*(L\"CW<\\e'>\\*(R\" and \\*(L\"CW<\\e\\e>\")). Both the usual Unix " |
| 1420 |
#| "backslash rules and more exotic forms apply to the creation of characters " |
| 1421 |
#| "such as newline, tab, and so on. See the I<Quote and Quotelike Operators> " |
| 1422 |
#| "section of the I<perlop>(1) manual page for a list of quoting methods." |
| 1423 |
msgid "" |
| 1424 |
"String literals are usually delimited by either single or double quotes. " |
| 1425 |
"They work much like quotes in the standard Unix shells: double-quoted string " |
| 1426 |
"literals are subject to backslash and variable substitution; single-quoted " |
| 1427 |
"strings are not (except for CW<\\*(C`\\e\\*(Aq\\*(C'> and " |
| 1428 |
"\\&CW<\\*(C`\\e\\e\\*(C'>). The usual C-style backslash rules apply for " |
| 1429 |
"making characters such as newline, tab, etc., as well as some more exotic " |
| 1430 |
"forms. See \"Quote and Quote-like Operators\" in perlop for a list." |
| 1431 |
msgstr "" |
| 1432 |
"Literały łańcuchowe ograniczone są zwykle przez pojedyncze lub podwójne " |
| 1433 |
"cudzysłowy. Działają one bardzo podobnie do znaków cytowania powłoki: w " |
| 1434 |
"literałach łańcuchowych w cudzysłowach zachodzi zastępowanie zmiennych i " |
| 1435 |
"interpretacja odwrotnego ukośnika. W łańcuchach w apostrofach nie występuje " |
| 1436 |
"zastępowanie i interpretacja (z wyjątkiem \\*(L\"CW<\\e'>\\*(R\" oraz " |
| 1437 |
"\\*(L\"CW<\\e\\e>\"). To tworzenia znaków takich jak nowa linia, tabulator " |
| 1438 |
"itd., stosowane są zarówno zwykłe reguły użycia odwrotnego ukośnika w " |
| 1439 |
"Unixie, jak i bardziej egzotyczne formy. Listę sposobów cytowania znajdziesz " |
| 1440 |
"w sekcji I<Quote and Quotelike Operators> podręcznika I<perlop>(1)." |
| 1441 |
|
| 1442 |
#. type: IX |
| 1443 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1444 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1445 |
#, no-wrap |
| 1446 |
msgid "string, literal" |
| 1447 |
msgstr "" |
| 1448 |
|
| 1449 |
#. type: Plain text |
| 1450 |
#: debian-trixie debian-unstable |
| 1451 |
#, fuzzy |
| 1452 |
#| msgid "" |
| 1453 |
#| "Octal or hexadecimal notations in string literals (e.g. \\*(L'0xffff') " |
| 1454 |
#| "are not automatically converted to their integer representation. These " |
| 1455 |
#| "conversions are performed by the I<hex()> and I<oct()> functions. For " |
| 1456 |
#| "more details, see the descriptions of these functions in the " |
| 1457 |
#| "I<perlfunc>(1) manual page." |
| 1458 |
msgid "" |
| 1459 |
"Hexadecimal, octal, or binary, representations in string literals (e.g. " |
| 1460 |
"'0xff') are not automatically converted to their integer representation. " |
| 1461 |
"The B<hex()> and B<oct()> functions make these conversions for you. See " |
| 1462 |
"\"hex\" in perlfunc and \"oct\" in perlfunc for more details." |
| 1463 |
msgstr "" |
| 1464 |
"Zapisy ósemkowe czy szesnastkowe w literałach łańcuchowych (np. " |
| 1465 |
"\\*(L'0xffff') nie są automatycznie zamieniane na ich całkowitą " |
| 1466 |
"reprezentację. Konwersje te wykonują funkcje I<hex()> i I<oct()>. Więcej " |
| 1467 |
"szczegółów znajdziesz w opisach tych funkcji w podręczniku I<perlfunc>(1)." |
| 1468 |
|
| 1469 |
#. type: Plain text |
| 1470 |
#: debian-trixie debian-unstable |
| 1471 |
msgid "" |
| 1472 |
"Hexadecimal floating point can start just like a hexadecimal literal, and it " |
| 1473 |
"can be followed by an optional fractional hexadecimal part, but it must be " |
| 1474 |
"followed by CW<\\*(C`p\\*(C'>, an optional sign, and a power of two. The " |
| 1475 |
"format is useful for accurately presenting floating point values, avoiding " |
| 1476 |
"conversions to or from decimal floating point, and therefore avoiding " |
| 1477 |
"possible loss in precision. Notice that while most current platforms use " |
| 1478 |
"the 64-bit IEEE 754 floating point, not all do. Another potential source of " |
| 1479 |
"(low-order) differences are the floating point rounding modes, which can " |
| 1480 |
"differ between CPUs, operating systems, and compilers, and which Perl " |
| 1481 |
"doesn't control." |
| 1482 |
msgstr "" |
| 1483 |
|
| 1484 |
#. type: Plain text |
| 1485 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1486 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1487 |
#, fuzzy |
| 1488 |
#| msgid "" |
| 1489 |
#| "You can also put newlines directly into strings, i.e., they can end on a " |
| 1490 |
#| "different line than they started on. This is nice, but if you forget the " |
| 1491 |
#| "closing quote, the error won't be reported until Perl finds another line " |
| 1492 |
#| "containing the quote, which may be much later in the script. Variable " |
| 1493 |
#| "substitution in strings is limited to scalar variables, arrays, and array " |
| 1494 |
#| "slices. (In other words, names starting with $ or @, optionally followed " |
| 1495 |
#| "by an expression enclosed in square brackets, treated as an array index.) " |
| 1496 |
#| "The following code fragment prints \\*(L\"The price is $\\&100.\\*(R\"" |
| 1497 |
msgid "" |
| 1498 |
"You can also embed newlines directly in your strings, i.e., they can end on " |
| 1499 |
"a different line than they begin. This is nice, but if you forget your " |
| 1500 |
"trailing quote, the error will not be reported until Perl finds another line " |
| 1501 |
"containing the quote character, which may be much further on in the script. " |
| 1502 |
"Variable substitution inside strings is limited to scalar variables, arrays, " |
| 1503 |
"and array or hash slices. (In other words, names beginning with $ or @, " |
| 1504 |
"followed by an optional bracketed expression as a subscript.) The following " |
| 1505 |
"code segment prints out \"The price is CW<$100>.\"" |
| 1506 |
msgstr "" |
| 1507 |
"Możesz też umieszczać znaki nowej linii bezpośrednio w łańcuchach, tj., mogą " |
| 1508 |
"one kończyć się w innym wierszu niż się rozpoczęły. Jest to przyjemne, ale " |
| 1509 |
"jeżeli zapomnisz zamykającego cudzysłowu, to błąd nie będzie zgłaszany " |
| 1510 |
"dopóty, dopóki Perl nie znajdzie innego wiersza, zawierającego znak " |
| 1511 |
"cudzysłowu, który może znajdować się o wiele dalej w skrypcie. Zastępowanie " |
| 1512 |
"zmiennych w łańcuchach ograniczone jest do zmiennych skalarnych, tablic oraz " |
| 1513 |
"wycinków tablic. (Inaczej mówiąc, nazw rozpoczynających się od $ lub @, po " |
| 1514 |
"których może opcjonalnie wystąpić, ujęte w nawiasy kwadratowe, wyrażenie " |
| 1515 |
"traktowane jako indeks elementu tablicy.) Poniższy fragment kodu drukuje " |
| 1516 |
"\\*(L\"Cena wynosi $\\&100.\\*(R\"" |
| 1517 |
|
| 1518 |
#. type: IX |
| 1519 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1520 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1521 |
#, fuzzy, no-wrap |
| 1522 |
#| msgid "intersection" |
| 1523 |
msgid "interpolation" |
| 1524 |
msgstr "intersection (przecięcie)" |
| 1525 |
|
| 1526 |
#. type: Plain text |
| 1527 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1528 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1529 |
#, fuzzy, no-wrap |
| 1530 |
#| msgid "\\& $price = '$100'; # not interpreted \\& print \"The price is $price.\\en\"; # interpreted" |
| 1531 |
msgid "" |
| 1532 |
"\\& $Price = \\*(Aq$100\\*(Aq; # not interpolated\n" |
| 1533 |
"\\& print \"The price is $Price.\\en\"; # interpolated\n" |
| 1534 |
msgstr "\\& $cena = '$100'; # nie interpretowane \\& print \"Cena wynosi $cena.\\en\"; # interpretowane" |
| 1535 |
|
| 1536 |
#. type: Plain text |
| 1537 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1538 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1539 |
msgid "" |
| 1540 |
"There is no double interpolation in Perl, so the CW<$100> is left as is." |
| 1541 |
msgstr "" |
| 1542 |
|
| 1543 |
#. type: Plain text |
| 1544 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1545 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1546 |
msgid "" |
| 1547 |
"By default floating point numbers substituted inside strings use the dot (\"." |
| 1548 |
"\") as the decimal separator. If CW<\\*(C`use locale\\*(C'> is in effect, " |
| 1549 |
"and B<POSIX::setlocale()> has been called, the character used for the " |
| 1550 |
"decimal separator is affected by the LC_NUMERIC locale. See perllocale and " |
| 1551 |
"POSIX." |
| 1552 |
msgstr "" |
| 1553 |
|
| 1554 |
#. type: Plain text |
| 1555 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1556 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1557 |
msgid "I<Demarcated variable names using braces>" |
| 1558 |
msgstr "" |
| 1559 |
|
| 1560 |
#. type: IX |
| 1561 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1562 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1563 |
#, no-wrap |
| 1564 |
msgid "Demarcated variable names using braces" |
| 1565 |
msgstr "" |
| 1566 |
|
| 1567 |
#. type: Plain text |
| 1568 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1569 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1570 |
msgid "" |
| 1571 |
"As in some shells, you can enclose the variable name in braces as a " |
| 1572 |
"demarcator to disambiguate it from following alphanumerics and underscores " |
| 1573 |
"or other text. You must also do this when interpolating a variable into a " |
| 1574 |
"string to separate the variable name from a following double-colon or an " |
| 1575 |
"apostrophe since these would be otherwise treated as a package separator:" |
| 1576 |
msgstr "" |
| 1577 |
|
| 1578 |
#. type: Plain text |
| 1579 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1580 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1581 |
#, no-wrap |
| 1582 |
msgid "" |
| 1583 |
"\\& $who = \"Larry\";\n" |
| 1584 |
"\\& print PASSWD \"${who}::0:0:Superuser:/:/bin/perl\\en\";\n" |
| 1585 |
"\\& print \"We use ${who}speak when ${who}\\*(Aqs here.\\en\";\n" |
| 1586 |
msgstr "" |
| 1587 |
|
| 1588 |
#. type: Plain text |
| 1589 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1590 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1591 |
msgid "" |
| 1592 |
"Without the braces, Perl would have looked for a CW<$whospeak>, a " |
| 1593 |
"\\&CW<$who::0>, and a CW<\\*(C`$who\\*(Aqs\\*(C'> variable. The last two " |
| 1594 |
"would be the \\&CW<$0> and the CW<$s> variables in the (presumably) non-" |
| 1595 |
"existent package \\&CW<\\*(C`who\\*(C'>." |
| 1596 |
msgstr "" |
| 1597 |
|
| 1598 |
#. type: Plain text |
| 1599 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1600 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1601 |
msgid "" |
| 1602 |
"In fact, a simple identifier within such curly braces is forced to be a " |
| 1603 |
"string, and likewise within a hash subscript. Neither need quoting. Our " |
| 1604 |
"earlier example, CW<$days{\\*(AqFeb\\*(Aq}> can be written as CW<$days{Feb}> " |
| 1605 |
"and the quotes will be assumed automatically. But anything more complicated " |
| 1606 |
"in the subscript will be interpreted as an expression. This means for " |
| 1607 |
"example that CW<\\*(C`$version{2.0}++\\*(C'> is equivalent to " |
| 1608 |
"CW<\\*(C`$version{2}++\\*(C'>, not to CW<\\*(C`$version{\\*(Aq2.0\\*(Aq}++" |
| 1609 |
"\\*(C'>." |
| 1610 |
msgstr "" |
| 1611 |
|
| 1612 |
#. type: Plain text |
| 1613 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1614 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1615 |
msgid "" |
| 1616 |
"There is a similar problem with interpolation with text that looks like " |
| 1617 |
"array or hash access notation. Placing a simple variable like CW<$who> " |
| 1618 |
"immediately in front of text like CW<\"[1]\"> or CW<\"{foo}\"> would cause " |
| 1619 |
"the variable to be interpolated as accessing an element of CW<@who> or a " |
| 1620 |
"value stored in CW<%who>:" |
| 1621 |
msgstr "" |
| 1622 |
|
| 1623 |
#. type: Plain text |
| 1624 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1625 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1626 |
#, no-wrap |
| 1627 |
msgid "" |
| 1628 |
"\\& $who = \"Larry Wall\";\n" |
| 1629 |
"\\& print \"$who[1] is the father of Perl.\\en\";\n" |
| 1630 |
msgstr "" |
| 1631 |
|
| 1632 |
#. type: Plain text |
| 1633 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1634 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1635 |
msgid "" |
| 1636 |
"would attempt to access index 1 of an array named CW<@who>. Again, using " |
| 1637 |
"braces will prevent this from happening:" |
| 1638 |
msgstr "" |
| 1639 |
|
| 1640 |
#. type: Plain text |
| 1641 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1642 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1643 |
#, no-wrap |
| 1644 |
msgid "" |
| 1645 |
"\\& $who = \"Larry Wall\";\n" |
| 1646 |
"\\& print \"${who}[1] is the father of Perl.\\en\";\n" |
| 1647 |
msgstr "" |
| 1648 |
|
| 1649 |
#. type: Plain text |
| 1650 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1651 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1652 |
msgid "will be treated the same as" |
| 1653 |
msgstr "" |
| 1654 |
|
| 1655 |
#. type: Plain text |
| 1656 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1657 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1658 |
#, no-wrap |
| 1659 |
msgid "" |
| 1660 |
"\\& $who = \"Larry Wall\";\n" |
| 1661 |
"\\& print $who . \"[1] is the father of Perl.\\en\";\n" |
| 1662 |
msgstr "" |
| 1663 |
|
| 1664 |
#. type: Plain text |
| 1665 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1666 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1667 |
msgid "" |
| 1668 |
"This notation also applies to more complex variable descriptions, such as " |
| 1669 |
"array or hash access with subscripts. For instance" |
| 1670 |
msgstr "" |
| 1671 |
|
| 1672 |
#. type: Plain text |
| 1673 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1674 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1675 |
#, no-wrap |
| 1676 |
msgid "" |
| 1677 |
"\\& @name = qw(Larry Curly Moe);\n" |
| 1678 |
"\\& print \"Also ${name[0]}[1] was a member\\en\";\n" |
| 1679 |
msgstr "" |
| 1680 |
|
| 1681 |
#. type: Plain text |
| 1682 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1683 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1684 |
msgid "" |
| 1685 |
"Without the braces the above example would be parsed as a two level array " |
| 1686 |
"subscript in the CW<@name> array, and under CW<\\*(C`use strict\\*(C'> would " |
| 1687 |
"likely produce a fatal exception, as it would be parsed like this:" |
| 1688 |
msgstr "" |
| 1689 |
|
| 1690 |
#. type: Plain text |
| 1691 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1692 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1693 |
#, no-wrap |
| 1694 |
msgid "\\& print \"Also \" . $name[0][1] . \" was a member\\en\";\n" |
| 1695 |
msgstr "" |
| 1696 |
|
| 1697 |
#. type: Plain text |
| 1698 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1699 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1700 |
msgid "and not as the intended:" |
| 1701 |
msgstr "" |
| 1702 |
|
| 1703 |
#. type: Plain text |
| 1704 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1705 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1706 |
#, no-wrap |
| 1707 |
msgid "\\& print \"Also \" . $name[0] . \"[1] was a member\\en\";\n" |
| 1708 |
msgstr "" |
| 1709 |
|
| 1710 |
#. type: Plain text |
| 1711 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1712 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1713 |
msgid "" |
| 1714 |
"A similar result may be derived by using a backslash on the first character " |
| 1715 |
"of the subscript or package notation that is not part of the variable you " |
| 1716 |
"want to access. Thus the above example could also be written:" |
| 1717 |
msgstr "" |
| 1718 |
|
| 1719 |
#. type: Plain text |
| 1720 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1721 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1722 |
#, no-wrap |
| 1723 |
msgid "" |
| 1724 |
"\\& @name = qw(Larry Curly Moe);\n" |
| 1725 |
"\\& print \"Also $name[0]\\e[1] was a member\\en\";\n" |
| 1726 |
msgstr "" |
| 1727 |
|
| 1728 |
#. type: Plain text |
| 1729 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1730 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1731 |
msgid "" |
| 1732 |
"however for some special variables (multi character caret variables) the " |
| 1733 |
"demarcated form using curly braces is the B<only> way you can reference the " |
| 1734 |
"variable at all, and the only way you can access a subscript of the variable " |
| 1735 |
"via interpolation." |
| 1736 |
msgstr "" |
| 1737 |
|
| 1738 |
#. type: Plain text |
| 1739 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1740 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1741 |
msgid "" |
| 1742 |
"Consider the magic array CW<\\*(C`@{^CAPTURE}\\*(C'> which is populated by " |
| 1743 |
"the regex engine with the contents of all of the capture buffers in a " |
| 1744 |
"pattern (see perlvar and perlre). The B<only> way you can access one of " |
| 1745 |
"these members inside of a string is via the braced (demarcated) form:" |
| 1746 |
msgstr "" |
| 1747 |
|
| 1748 |
#. type: Plain text |
| 1749 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1750 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1751 |
#, no-wrap |
| 1752 |
msgid "" |
| 1753 |
"\\& \"abc\"=~/(.)(.)(.)/\n" |
| 1754 |
"\\& and print \"Second buffer is ${^CAPTURE[1]}\";\n" |
| 1755 |
msgstr "" |
| 1756 |
|
| 1757 |
#. type: Plain text |
| 1758 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1759 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1760 |
msgid "is equivalent to" |
| 1761 |
msgstr "jest równoznaczne z" |
| 1762 |
|
| 1763 |
#. type: Plain text |
| 1764 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1765 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1766 |
#, no-wrap |
| 1767 |
msgid "" |
| 1768 |
"\\& \"abc\"=~/(.)(.)(.)/\n" |
| 1769 |
"\\& and print \"Second buffer is \" . ${^CAPTURE}[1];\n" |
| 1770 |
msgstr "" |
| 1771 |
|
| 1772 |
#. type: Plain text |
| 1773 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1774 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1775 |
msgid "" |
| 1776 |
"Saying CW<\\*(C`@^CAPTURE\\*(C'> is a syntax error, so it B<must> be " |
| 1777 |
"referenced as \\&CW<\\*(C`@{^CAPTURE}\\*(C'>, and to access one of its " |
| 1778 |
"elements in normal code you would write CW<\\*(C` ${^CAPTURE}[1] \\*(C'>. " |
| 1779 |
"However when interpolating in a string \\&CW<\"${^CAPTURE}[1]\"> would be " |
| 1780 |
"equivalent to CW<\\*(C`${^CAPTURE} . \"[1]\"\\*(C'>, which does not even " |
| 1781 |
"refer to the same variable! Thus the subscripts must \\&B<also> be placed " |
| 1782 |
"B<inside> of the braces: CW<\"${^CAPTURE[1]}\">." |
| 1783 |
msgstr "" |
| 1784 |
|
| 1785 |
#. type: Plain text |
| 1786 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1787 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1788 |
msgid "" |
| 1789 |
"The demarcated form using curly braces can be used with all the different " |
| 1790 |
"types of variable access, including array and hash slices. For instance code " |
| 1791 |
"like the following:" |
| 1792 |
msgstr "" |
| 1793 |
|
| 1794 |
#. type: Plain text |
| 1795 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1796 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1797 |
#, no-wrap |
| 1798 |
msgid "" |
| 1799 |
"\\& @name = qw(Larry Curly Moe);\n" |
| 1800 |
"\\& local $\" = \" and \";\n" |
| 1801 |
"\\& print \"My favorites were @{name[1,2]}.\\en\";\n" |
| 1802 |
msgstr "" |
| 1803 |
|
| 1804 |
#. type: Plain text |
| 1805 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1806 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1807 |
#, fuzzy |
| 1808 |
#| msgid "Example output" |
| 1809 |
msgid "would output" |
| 1810 |
msgstr "Przykładowe wyjście" |
| 1811 |
|
| 1812 |
#. type: Plain text |
| 1813 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1814 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1815 |
#, no-wrap |
| 1816 |
msgid "\\& My favorites were Curly and Moe.\n" |
| 1817 |
msgstr "" |
| 1818 |
|
| 1819 |
#. type: Plain text |
| 1820 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1821 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1822 |
msgid "I<Special floating point: infinity (Inf) and not-a-number (NaN)>" |
| 1823 |
msgstr "" |
| 1824 |
|
| 1825 |
#. type: IX |
| 1826 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1827 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1828 |
#, no-wrap |
| 1829 |
msgid "Special floating point: infinity (Inf) and not-a-number (NaN)" |
| 1830 |
msgstr "" |
| 1831 |
|
| 1832 |
#. type: Plain text |
| 1833 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1834 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1835 |
msgid "" |
| 1836 |
"Floating point values include the special values CW<\\*(C`Inf\\*(C'> and " |
| 1837 |
"CW<\\*(C`NaN\\*(C'>, for infinity and not-a-number. The infinity can be " |
| 1838 |
"also negative." |
| 1839 |
msgstr "" |
| 1840 |
|
| 1841 |
#. type: Plain text |
| 1842 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1843 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1844 |
msgid "" |
| 1845 |
"The infinity is the result of certain math operations that overflow the " |
| 1846 |
"floating point range, like 9**9**9. The not-a-number is the result when the " |
| 1847 |
"result is undefined or unrepresentable. Though note that you cannot get " |
| 1848 |
"CW<\\*(C`NaN\\*(C'> from some common \"undefined\" or \"out-of-range\" " |
| 1849 |
"operations like dividing by zero, or square root of a negative number, since " |
| 1850 |
"Perl generates fatal errors for those." |
| 1851 |
msgstr "" |
| 1852 |
|
| 1853 |
#. type: Plain text |
| 1854 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1855 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1856 |
msgid "" |
| 1857 |
"The infinity and not-a-number have their own special arithmetic rules. The " |
| 1858 |
"general rule is that they are \"contagious\": CW<\\*(C`Inf\\*(C'> plus one " |
| 1859 |
"is \\&CW<\\*(C`Inf\\*(C'>, and CW<\\*(C`NaN\\*(C'> plus one is " |
| 1860 |
"CW<\\*(C`NaN\\*(C'>. Where things get interesting is when you combine " |
| 1861 |
"infinities and not-a-numbers: CW<\\*(C`Inf\\*(C'> minus CW<\\*(C`Inf\\*(C'> " |
| 1862 |
"and CW<\\*(C`Inf\\*(C'> divided by CW<\\*(C`Inf\\*(C'> are " |
| 1863 |
"CW<\\*(C`NaN\\*(C'> (while CW<\\*(C`Inf\\*(C'> plus CW<\\*(C`Inf\\*(C'> is " |
| 1864 |
"\\&CW<\\*(C`Inf\\*(C'> and CW<\\*(C`Inf\\*(C'> times CW<\\*(C`Inf\\*(C'> is " |
| 1865 |
"CW<\\*(C`Inf\\*(C'>). CW<\\*(C`NaN\\*(C'> is also curious in that it does " |
| 1866 |
"not equal any number, I<including> itself: \\&CW<\\*(C`NaN\\*(C'> != " |
| 1867 |
"CW<\\*(C`NaN\\*(C'>." |
| 1868 |
msgstr "" |
| 1869 |
|
| 1870 |
#. type: Plain text |
| 1871 |
#: debian-trixie debian-unstable |
| 1872 |
msgid "" |
| 1873 |
"Perl doesn't understand CW<\\*(C`Inf\\*(C'> and CW<\\*(C`NaN\\*(C'> as " |
| 1874 |
"numeric literals, but you can have them as strings, and Perl will convert " |
| 1875 |
"them as needed: \"Inf\" + 1. (You can, however, import them from the POSIX " |
| 1876 |
"extension; \\&CW<\\*(C`use POSIX qw(Inf NaN);\\*(C'> and then use them as " |
| 1877 |
"literals.)" |
| 1878 |
msgstr "" |
| 1879 |
|
| 1880 |
#. type: Plain text |
| 1881 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1882 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1883 |
msgid "" |
| 1884 |
"Note that on input (string to number) Perl accepts CW<\\*(C`Inf\\*(C'> and " |
| 1885 |
"CW<\\*(C`NaN\\*(C'> in many forms. Case is ignored, and the Win32-specific " |
| 1886 |
"forms like \\&CW<\\*(C`1.#INF\\*(C'> are understood, but on output the " |
| 1887 |
"values are normalized to \\&CW<\\*(C`Inf\\*(C'> and CW<\\*(C`NaN\\*(C'>." |
| 1888 |
msgstr "" |
| 1889 |
|
| 1890 |
#. type: Plain text |
| 1891 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1892 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1893 |
#, fuzzy |
| 1894 |
#| msgid "Versions" |
| 1895 |
msgid "I<Version Strings>" |
| 1896 |
msgstr "Wersje" |
| 1897 |
|
| 1898 |
#. type: IX |
| 1899 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1900 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1901 |
#, no-wrap |
| 1902 |
msgid "version string vstring v-string" |
| 1903 |
msgstr "" |
| 1904 |
|
| 1905 |
#. type: IX |
| 1906 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1907 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1908 |
#, fuzzy, no-wrap |
| 1909 |
#| msgid "Versions" |
| 1910 |
msgid "Version Strings" |
| 1911 |
msgstr "Wersje" |
| 1912 |
|
| 1913 |
#. type: Plain text |
| 1914 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1915 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1916 |
msgid "" |
| 1917 |
"A literal of the form CW<\\*(C`v1.20.300.4000\\*(C'> is parsed as a string " |
| 1918 |
"composed of characters with the specified ordinals. This form, known as v-" |
| 1919 |
"strings, provides an alternative, more readable way to construct strings, " |
| 1920 |
"rather than use the somewhat less readable interpolation form " |
| 1921 |
"\\&CW<\"\\ex{1}\\ex{14}\\ex{12c}\\ex{fa0}\">. This is useful for " |
| 1922 |
"representing Unicode strings, and for comparing version \"numbers\" using " |
| 1923 |
"the string comparison operators, CW<\\*(C`cmp\\*(C'>, CW<\\*(C`gt\\*(C'>, " |
| 1924 |
"CW<\\*(C`lt\\*(C'> etc. If there are two or more dots in the literal, the " |
| 1925 |
"leading CW<\\*(C`v\\*(C'> may be omitted." |
| 1926 |
msgstr "" |
| 1927 |
|
| 1928 |
#. type: Plain text |
| 1929 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1930 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1931 |
#, no-wrap |
| 1932 |
msgid "" |
| 1933 |
"\\& print v9786; # prints SMILEY, \"\\ex{263a}\"\n" |
| 1934 |
"\\& print v102.111.111; # prints \"foo\"\n" |
| 1935 |
"\\& print 102.111.111; # same\n" |
| 1936 |
msgstr "" |
| 1937 |
|
| 1938 |
#. type: Plain text |
| 1939 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1940 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1941 |
msgid "" |
| 1942 |
"Such literals are accepted by both CW<\\*(C`require\\*(C'> and " |
| 1943 |
"CW<\\*(C`use\\*(C'> for doing a version check. Note that using the v-" |
| 1944 |
"strings for IPv4 addresses is not portable unless you also use the " |
| 1945 |
"\\&B<inet_aton()>/B<inet_ntoa()> routines of the Socket package." |
| 1946 |
msgstr "" |
| 1947 |
|
| 1948 |
#. type: Plain text |
| 1949 |
#: debian-trixie debian-unstable |
| 1950 |
msgid "" |
| 1951 |
"Note that since Perl 5.8.1 the single-number v-strings (like " |
| 1952 |
"CW<\\*(C`v65\\*(C'>) are not v-strings before the CW<\\*(C`=E<gt>\\*(C'> " |
| 1953 |
"operator (which is usually used to separate a hash key from a hash value); " |
| 1954 |
"instead they are interpreted as literal strings ('v65'). They were v-" |
| 1955 |
"strings from Perl 5.6.0 to Perl 5.8.0, but that caused more confusion and " |
| 1956 |
"breakage than good. Multi-number v-strings like CW<\\*(C`v65.66\\*(C'> and " |
| 1957 |
"CW<65.66.67> continue to be v-strings always." |
| 1958 |
msgstr "" |
| 1959 |
|
| 1960 |
#. type: Plain text |
| 1961 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1962 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1963 |
#, fuzzy |
| 1964 |
#| msgid "I<special>" |
| 1965 |
msgid "I<Special Literals>" |
| 1966 |
msgstr "I<specjalny>" |
| 1967 |
|
| 1968 |
#. type: IX |
| 1969 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1970 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1971 |
#, no-wrap |
| 1972 |
msgid "special literal __END__ __DATA__ END DATA end data ^D ^Z" |
| 1973 |
msgstr "" |
| 1974 |
|
| 1975 |
#. type: IX |
| 1976 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1977 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1978 |
#, no-wrap |
| 1979 |
msgid "Special Literals" |
| 1980 |
msgstr "" |
| 1981 |
|
| 1982 |
#. type: Plain text |
| 1983 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1984 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1985 |
#, fuzzy |
| 1986 |
#| msgid "" |
| 1987 |
#| "The three special literals are _\\|_FILE_\\|_, _\\|_LINE_\\|_, and _\\|" |
| 1988 |
#| "_PACKAGE_\\|_, which represent the current file name, line number, and " |
| 1989 |
#| "package name at a given point in your program. They can only be used as " |
| 1990 |
#| "distinct tokens. They will not be interpolated within strings. If there " |
| 1991 |
#| "is no current package (due to an empty CW<package;> directive), then _\\|" |
| 1992 |
#| "_PACKAGE_\\|_ is the undefined value." |
| 1993 |
msgid "" |
| 1994 |
"The special literals _\\|_FILE_\\|_, _\\|_LINE_\\|_, and _\\|_PACKAGE_\\|_ " |
| 1995 |
"represent the current filename, line number, and package name at that point " |
| 1996 |
"in your program. _\\|_SUB_\\|_ gives a reference to the current " |
| 1997 |
"subroutine. They may be used only as separate tokens; they will not be " |
| 1998 |
"interpolated into strings. If there is no current package (due to an empty " |
| 1999 |
"CW<\\*(C`package;\\*(C'> directive), _\\|_PACKAGE_\\|_ is the undefined " |
| 2000 |
"value. (But the empty CW<\\*(C`package;\\*(C'> is no longer supported, as " |
| 2001 |
"of version 5.10.) Outside of a subroutine, _\\|_SUB_\\|_ is the undefined " |
| 2002 |
"value. _\\|_SUB_\\|_ is only available in 5.16 or higher, and only with a " |
| 2003 |
"CW<\\*(C`use v5.16\\*(C'> or \\&CW<\\*(C`use feature \"current_sub\"\\*(C'> " |
| 2004 |
"declaration." |
| 2005 |
msgstr "" |
| 2006 |
"Trzema specjalnymi literałami są _\\|_FILE_\\|_, _\\|_LINE_\\|_ oraz _\\|" |
| 2007 |
"_PACKAGE_\\|_, które reprezentują nazwę bieżącego pliku, numer wiersza oraz " |
| 2008 |
"nazwę pakietu w danym punkcie twego programu. Mogą być używane wyłącznie " |
| 2009 |
"jako odrębne tokeny. Nie będą one interpolowane wewnątrz łańcuchów. Jeżeli " |
| 2010 |
"nie ma bieżącego pakietu (z powodu pustej dyrektywy CW<package;>), to _\\|" |
| 2011 |
"_PACKAGE_\\|_ jest wartością niezdefiniowaną." |
| 2012 |
|
| 2013 |
#. type: IX |
| 2014 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2015 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2016 |
#, no-wrap |
| 2017 |
msgid "__FILE__ __LINE__ __PACKAGE__ __SUB__ line file package" |
| 2018 |
msgstr "" |
| 2019 |
|
| 2020 |
#. type: Plain text |
| 2021 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2022 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2023 |
msgid "" |
| 2024 |
"The two control characters ^D and ^Z, and the tokens _\\|_END_\\|_ and _\\|" |
| 2025 |
"_DATA_\\|_ may be used to indicate the logical end of the script before the " |
| 2026 |
"actual end of file. Any following text is ignored by the interpreter unless " |
| 2027 |
"read by the program as described below." |
| 2028 |
msgstr "" |
| 2029 |
|
| 2030 |
#. type: Plain text |
| 2031 |
#: debian-trixie debian-unstable |
| 2032 |
msgid "" |
| 2033 |
"Text after _\\|_DATA_\\|_ may be read via the filehandle " |
| 2034 |
"CW<\\*(C`PACKNAME::DATA\\*(C'>, where CW<\\*(C`PACKNAME\\*(C'> is the " |
| 2035 |
"package that was current when the _\\|_DATA_\\|_ token was encountered. The " |
| 2036 |
"filehandle is left open pointing to the line after _\\|_DATA_\\|_. The " |
| 2037 |
"program should CW<\\*(C`close DATA\\*(C'> when it is done reading from it. " |
| 2038 |
"(Leaving it open leaks filehandles if the module is reloaded for any reason, " |
| 2039 |
"so it's a safer practice to close it.) For compatibility with older scripts " |
| 2040 |
"written before _\\|_DATA_\\|_ was introduced, _\\|_END_\\|_ behaves like _\\|" |
| 2041 |
"_DATA_\\|_ in the top level script (but not in files loaded with " |
| 2042 |
"CW<\\*(C`require\\*(C'> or CW<\\*(C`do\\*(C'>) and leaves the remaining " |
| 2043 |
"contents of the file accessible via CW<\\*(C`main::DATA\\*(C'>." |
| 2044 |
msgstr "" |
| 2045 |
|
| 2046 |
#. type: Plain text |
| 2047 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2048 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2049 |
#, no-wrap |
| 2050 |
msgid "" |
| 2051 |
"\\& while (my $line = E<lt>DATAE<gt>) { print $line; }\n" |
| 2052 |
"\\& close DATA;\n" |
| 2053 |
"\\& _\\|_DATA_\\|_\n" |
| 2054 |
"\\& Hello world.\n" |
| 2055 |
msgstr "" |
| 2056 |
|
| 2057 |
#. type: Plain text |
| 2058 |
#: debian-trixie debian-unstable |
| 2059 |
msgid "" |
| 2060 |
"The CW<\\*(C`DATA\\*(C'> file handle by default has whatever PerlIO layers " |
| 2061 |
"were in place when Perl read the file to parse the source. Normally that " |
| 2062 |
"means that the file is being read bytewise, as if it were encoded in " |
| 2063 |
"Latin-1, but there are two major ways for it to be otherwise. Firstly, if " |
| 2064 |
"the CW<\\*(C`_\\|_END_\\|_\\*(C'>/CW<\\*(C`_\\|_DATA_\\|_\\*(C'> token is in " |
| 2065 |
"the scope of a CW<\\*(C`use utf8\\*(C'> pragma then the CW<\\*(C`DATA\\*(C'> " |
| 2066 |
"handle will be in UTF-8 mode. And secondly, if the source is being read " |
| 2067 |
"from perl's standard input then the CW<\\*(C`DATA\\*(C'> file handle is " |
| 2068 |
"actually aliased to the CW<\\*(C`STDIN\\*(C'> file handle, and may be in " |
| 2069 |
"UTF-8 mode because of the CW<\\*(C`PERL_UNICODE\\*(C'> environment variable " |
| 2070 |
"or perl's command-line switches." |
| 2071 |
msgstr "" |
| 2072 |
|
| 2073 |
#. type: Plain text |
| 2074 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2075 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2076 |
msgid "" |
| 2077 |
"See SelfLoader for more description of _\\|_DATA_\\|_, and an example of its " |
| 2078 |
"use. Note that you cannot read from the DATA filehandle in a BEGIN block: " |
| 2079 |
"the BEGIN block is executed as soon as it is seen (during compilation), at " |
| 2080 |
"which point the corresponding _\\|_DATA_\\|_ (or _\\|_END_\\|_) token has " |
| 2081 |
"not yet been seen." |
| 2082 |
msgstr "" |
| 2083 |
|
| 2084 |
#. type: Plain text |
| 2085 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2086 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2087 |
#, fuzzy |
| 2088 |
#| msgid "I<password>" |
| 2089 |
msgid "I<Barewords>" |
| 2090 |
msgstr "I<password>" |
| 2091 |
|
| 2092 |
#. type: IX |
| 2093 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2094 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2095 |
#, no-wrap |
| 2096 |
msgid "bareword" |
| 2097 |
msgstr "" |
| 2098 |
|
| 2099 |
#. type: IX |
| 2100 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2101 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2102 |
#, fuzzy, no-wrap |
| 2103 |
#| msgid "B<keyword>" |
| 2104 |
msgid "Barewords" |
| 2105 |
msgstr "B<keyword>" |
| 2106 |
|
| 2107 |
#. type: Plain text |
| 2108 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2109 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2110 |
#, fuzzy |
| 2111 |
#| msgid "" |
| 2112 |
#| "A word that has no other interpretation in the Perl grammar will be " |
| 2113 |
#| "treated as if it were enclosed in double quotes. These are known as " |
| 2114 |
#| "\"bare words\" (\\*(L\"barewords\\*(R\"). As with labels and filehandles, " |
| 2115 |
#| "bare words consisting entirely of lowercase letters are prone to " |
| 2116 |
#| "conflicts with future reserved words. If you use the B<-w> switch, Perl " |
| 2117 |
#| "will warn you when such words are encountered. Some people would like to " |
| 2118 |
#| "outlaw bare words altogether. If you write" |
| 2119 |
msgid "" |
| 2120 |
"A word that has no other interpretation in the grammar will be treated as if " |
| 2121 |
"it were a quoted string. These are known as \"barewords\". As with " |
| 2122 |
"filehandles and labels, a bareword that consists entirely of lowercase " |
| 2123 |
"letters risks conflict with future reserved words, and if you use the " |
| 2124 |
"CW<\\*(C`use warnings\\*(C'> pragma or the B<-w> switch, Perl will warn you " |
| 2125 |
"about any such words. Perl limits barewords (like identifiers) to about 250 " |
| 2126 |
"characters. Future versions of Perl are likely to eliminate these arbitrary " |
| 2127 |
"limitations." |
| 2128 |
msgstr "" |
| 2129 |
"Słowo nie posiadające żadnej innej interpretacji w gramatyce Perla będzie " |
| 2130 |
"traktowane tak, jakby znajdowało się w cudzysłowie. Są one znane pod nazwą " |
| 2131 |
"\"gołych słów\" (\\*(L\"barewords\\*(R\"). Tak samo, jak w przypadku " |
| 2132 |
"etykiet i uchwytów plików, gołe słowa składające się wyłącznie z małych " |
| 2133 |
"liter narażają na konlikt z przyszłymi słowami zastrzeżonymi. Jeżeli " |
| 2134 |
"użyjesz przełącznika B<-w>, to Perl będzie ostrzegał o wystąpieniu takich " |
| 2135 |
"słów. Niektórzy chcieliby całkowicie wyjąć spod prawa gołe słowa. Jeśli " |
| 2136 |
"napiszesz" |
| 2137 |
|
| 2138 |
#. type: Plain text |
| 2139 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2140 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2141 |
msgid "Some people may wish to outlaw barewords entirely. If you say" |
| 2142 |
msgstr "" |
| 2143 |
|
| 2144 |
#. type: Plain text |
| 2145 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2146 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2147 |
#, no-wrap |
| 2148 |
msgid "\\& use strict \\*(Aqsubs\\*(Aq;\n" |
| 2149 |
msgstr "\\& use strict \\*(Aqsubs\\*(Aq;\n" |
| 2150 |
|
| 2151 |
#. type: Plain text |
| 2152 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2153 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2154 |
#, fuzzy |
| 2155 |
#| msgid "" |
| 2156 |
#| "then any bare word that is not interpreted as a procedure call will cause " |
| 2157 |
#| "a compilation error. This restriction extends to the end of the " |
| 2158 |
#| "containing block. An inner block can, however, negate it using CW<no " |
| 2159 |
#| "strict 'subs'>." |
| 2160 |
msgid "" |
| 2161 |
"then any bareword that would NOT be interpreted as a subroutine call " |
| 2162 |
"produces a compile-time error instead. The restriction lasts to the end of " |
| 2163 |
"the enclosing block. An inner block may countermand this by saying " |
| 2164 |
"CW<\\*(C`no strict \\*(Aqsubs\\*(Aq\\*(C'>." |
| 2165 |
msgstr "" |
| 2166 |
"to każde gołe słowo, które nie zostanie zinterpretowane jako wywołanie " |
| 2167 |
"procedury spowoduje błąd kompilacji. Ograniczenie to rozciąga się do końca " |
| 2168 |
"zawierającego je bloku. Blok wewnętrzny może je jednak zanegować przy pomocy " |
| 2169 |
"CW<no strict 'subs'>." |
| 2170 |
|
| 2171 |
#. type: Plain text |
| 2172 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2173 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2174 |
msgid "I<Array Interpolation>" |
| 2175 |
msgstr "" |
| 2176 |
|
| 2177 |
#. type: IX |
| 2178 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2179 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2180 |
#, no-wrap |
| 2181 |
msgid "array, interpolation interpolation, array $\"" |
| 2182 |
msgstr "" |
| 2183 |
|
| 2184 |
#. type: IX |
| 2185 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2186 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2187 |
#, no-wrap |
| 2188 |
msgid "Array Interpolation" |
| 2189 |
msgstr "" |
| 2190 |
|
| 2191 |
#. type: Plain text |
| 2192 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2193 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2194 |
#, fuzzy |
| 2195 |
#| msgid "" |
| 2196 |
#| "Array variables in quoted strings are interpolated by concatenating all " |
| 2197 |
#| "the elements of the array. The elements are then separated by the " |
| 2198 |
#| "delimiter given by the CW<$\"> variable (CW<$LIST_SEPARATOR> in the " |
| 2199 |
#| "English module), by default by a space. The following fragments are " |
| 2200 |
#| "equivalent:" |
| 2201 |
msgid "" |
| 2202 |
"Arrays and slices are interpolated into double-quoted strings by joining the " |
| 2203 |
"elements with the delimiter specified in the CW<$\"> variable " |
| 2204 |
"(CW<$LIST_SEPARATOR> if \"use English;\" is specified), space by default. " |
| 2205 |
"The following are equivalent:" |
| 2206 |
msgstr "" |
| 2207 |
"Zmienne tablicowe w łańcuchach objętych cudzysłowami interpolowane są przez " |
| 2208 |
"złączenie wszystkich elementów tablicy. Elementy są wówczas rozdzielone " |
| 2209 |
"ogranicznikiem podanym w zmiennej CW<$\"> (CW<$LIST_SEPARATOR> w module " |
| 2210 |
"English), domyślnie spacją. Poniższe fragmenty są równoważne:" |
| 2211 |
|
| 2212 |
#. type: Plain text |
| 2213 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2214 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2215 |
#, no-wrap |
| 2216 |
msgid "" |
| 2217 |
"\\& $temp = join($\", @ARGV);\n" |
| 2218 |
"\\& system \"echo $temp\";\n" |
| 2219 |
"\\&\n" |
| 2220 |
"\\& system \"echo @ARGV\";\n" |
| 2221 |
msgstr "" |
| 2222 |
"\\& $temp = join($\", @ARGV);\n" |
| 2223 |
"\\& system \"echo $temp\";\n" |
| 2224 |
"\\&\n" |
| 2225 |
"\\& system \"echo @ARGV\";\n" |
| 2226 |
|
| 2227 |
#. type: Plain text |
| 2228 |
#: debian-trixie debian-unstable |
| 2229 |
#, fuzzy |
| 2230 |
#| msgid "" |
| 2231 |
#| "Inside the search patterns (which are also subject to double-quoting " |
| 2232 |
#| "replacement), there is an ugly ambiguity: is CW</$foo[bar]/> supposed to " |
| 2233 |
#| "be interpreted as CW</${foo}[bar]/> (where CW<[bar]> is the character " |
| 2234 |
#| "class of the regex) or as CW</${foo[bar]}/> (where CW<[bar]> is the array " |
| 2235 |
#| "index of CW<@foo>)? If CW<@foo> does not exist, then it is of course the " |
| 2236 |
#| "character class. If CW<@foo> exists, then Perl guesses what CW<[bar]> is " |
| 2237 |
#| "supposed to be, and is almost always right. If it guesses wrong, or you " |
| 2238 |
#| "are just paranoid, you can force the correct interpretation by using " |
| 2239 |
#| "curly braces as above." |
| 2240 |
msgid "" |
| 2241 |
"Within search patterns (which also undergo double-quotish substitution) " |
| 2242 |
"there is an unfortunate ambiguity: Is CW<\\*(C`/$foo[bar]/\\*(C'> to be " |
| 2243 |
"interpreted as \\&CW<\\*(C`/${foo}[bar]/\\*(C'> (where CW<\\*(C`[bar]\\*(C'> " |
| 2244 |
"is a character class for the regular expression) or as CW<\\*(C`/${foo[bar]}/" |
| 2245 |
"\\*(C'> (where CW<\\*(C`[bar]\\*(C'> is the subscript to array \\&CW<@foo>)? " |
| 2246 |
"If CW<@foo> doesn't otherwise exist, then it's obviously a character class. " |
| 2247 |
"If CW<@foo> exists, Perl takes a good guess about CW<\\*(C`[bar]\\*(C'>, and " |
| 2248 |
"is almost always right. If it does guess wrong, or if you're just plain " |
| 2249 |
"paranoid, you can force the correct interpretation with curly braces as " |
| 2250 |
"above." |
| 2251 |
msgstr "" |
| 2252 |
"Wewnątrz wzorców wyszukiwania (które również podlegają zastępowaniu w " |
| 2253 |
"podwójnym cytowaniu) pojawia się brzydka niejednoznaczność: czy CW</" |
| 2254 |
"$foo[bar]/> ma być interpretowane jako CW</${foo}[bar]/> (gdzie CW<[bar]> " |
| 2255 |
"jest klasą znaków wyrażenia regularnego) czy też jako CW</${foo[bar]}/> " |
| 2256 |
"(gdzie CW<[bar]> jest indeksem tablicy CW<@foo>)? Jeżeli nie istnieje " |
| 2257 |
"CW<@foo>, to jest to oczywiście klasa znaków. Jeżeli CW<@foo> istnieje, to " |
| 2258 |
"Perl odgaduje czym ma być CW<[bar]>, i prawie zawsze ma rację. Jeśli " |
| 2259 |
"odgaduje źle, albo po prostu jesteś paranoikiem, możesz wymusić poprawną " |
| 2260 |
"interpretację używając nawiasów klamrowych jak powyżej." |
| 2261 |
|
| 2262 |
#. type: Plain text |
| 2263 |
#: debian-trixie debian-unstable |
| 2264 |
msgid "" |
| 2265 |
"If you're looking for the information on how to use here-documents, which " |
| 2266 |
"used to be here, that's been moved to \"Quote and Quote-like Operators\" in " |
| 2267 |
"perlop." |
| 2268 |
msgstr "" |
| 2269 |
|
| 2270 |
#. type: IX |
| 2271 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2272 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2273 |
#, no-wrap |
| 2274 |
msgid "List value constructors" |
| 2275 |
msgstr "" |
| 2276 |
|
| 2277 |
#. type: IX |
| 2278 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2279 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2280 |
#, fuzzy, no-wrap |
| 2281 |
#| msgid "Ic list" |
| 2282 |
msgid "list" |
| 2283 |
msgstr "Ic list" |
| 2284 |
|
| 2285 |
#. type: Plain text |
| 2286 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2287 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2288 |
#, fuzzy |
| 2289 |
#| msgid "" |
| 2290 |
#| "List values are denoted by separating individual values with commas (and " |
| 2291 |
#| "surrounding the list with parentheses if the order requires it):" |
| 2292 |
msgid "" |
| 2293 |
"List values are denoted by separating individual values by commas (and " |
| 2294 |
"enclosing the list in parentheses where precedence requires it):" |
| 2295 |
msgstr "" |
| 2296 |
"Wartości listowe oznaczane są przez oddzielenie pojedynczych wartości " |
| 2297 |
"przecinkami (i otoczenie listy nawiasami jeśli wymaga tego kolejność):" |
| 2298 |
|
| 2299 |
#. type: Plain text |
| 2300 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2301 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2302 |
#, fuzzy, no-wrap |
| 2303 |
#| msgid "\\& (LIST)" |
| 2304 |
msgid "\\& (LIST)\n" |
| 2305 |
msgstr "\\& (LIST)" |
| 2306 |
|
| 2307 |
#. type: Plain text |
| 2308 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2309 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2310 |
#, fuzzy |
| 2311 |
#| msgid "" |
| 2312 |
#| "In a context that does not require a list value, the value of a list " |
| 2313 |
#| "literal is the value of the last element, as with the C comma operator. " |
| 2314 |
#| "For example," |
| 2315 |
msgid "" |
| 2316 |
"In a context not requiring a list value, the value of what appears to be a " |
| 2317 |
"list literal is simply the value of the final element, as with the C comma " |
| 2318 |
"operator. For example," |
| 2319 |
msgstr "" |
| 2320 |
"W kontekście nie wymagającym wartości listowej wartość literału listowego " |
| 2321 |
"jest wartością ostatniego elementu, tak jak w przypadku występującego w C " |
| 2322 |
"operatora przecinkowego. Na przykład," |
| 2323 |
|
| 2324 |
#. type: Plain text |
| 2325 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2326 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2327 |
#, no-wrap |
| 2328 |
msgid "\\& @foo = (\\*(Aqcc\\*(Aq, \\*(Aq-E\\*(Aq, $bar);\n" |
| 2329 |
msgstr "\\& @foo = (\\*(Aqcc\\*(Aq, \\*(Aq-E\\*(Aq, $bar);\n" |
| 2330 |
|
| 2331 |
#. type: Plain text |
| 2332 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2333 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2334 |
msgid "assigns the entire list value to array CW<@foo>, but" |
| 2335 |
msgstr "przypisuje wartość całej listy do tablicy CW<@foo>, ale" |
| 2336 |
|
| 2337 |
#. type: Plain text |
| 2338 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2339 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2340 |
#, no-wrap |
| 2341 |
msgid "\\& $foo = (\\*(Aqcc\\*(Aq, \\*(Aq-E\\*(Aq, $bar);\n" |
| 2342 |
msgstr "\\& $foo = (\\*(Aqcc\\*(Aq, \\*(Aq-E\\*(Aq, $bar);\n" |
| 2343 |
|
| 2344 |
#. type: Plain text |
| 2345 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2346 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2347 |
#, fuzzy |
| 2348 |
#| msgid "" |
| 2349 |
#| "assigns the value of bar to the variable foo. Note that a real array in " |
| 2350 |
#| "scalar context returns the length of the array. The following code " |
| 2351 |
#| "assigns the value 3 to CW<$foo>:" |
| 2352 |
msgid "" |
| 2353 |
"assigns the value of variable CW<$bar> to the scalar variable CW<$foo>. " |
| 2354 |
"Note that the value of an actual array in scalar context is the length of " |
| 2355 |
"the array; the following assigns the value 3 to CW<$foo:>" |
| 2356 |
msgstr "" |
| 2357 |
"przypisuje zmiennej foo wartość zmiennej bar. Zauważ, że rzeczywista tablica " |
| 2358 |
"w kontekście skalarnym zwraca długość tablicy. Poniższy kod przypisuje " |
| 2359 |
"CW<$foo> wartość 3:" |
| 2360 |
|
| 2361 |
#. type: Plain text |
| 2362 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2363 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2364 |
#, no-wrap |
| 2365 |
msgid "" |
| 2366 |
"\\& @foo = (\\*(Aqcc\\*(Aq, \\*(Aq-E\\*(Aq, $bar);\n" |
| 2367 |
"\\& $foo = @foo; # $foo gets 3\n" |
| 2368 |
msgstr "" |
| 2369 |
"\\& @foo = (\\*(Aqcc\\*(Aq, \\*(Aq-E\\*(Aq, $bar);\n" |
| 2370 |
"\\& $foo = @foo; # $foo dostaje 3\n" |
| 2371 |
|
| 2372 |
#. type: Plain text |
| 2373 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2374 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2375 |
#, fuzzy |
| 2376 |
#| msgid "" |
| 2377 |
#| "You can use an optional comma before the closing parenthesis of a literal " |
| 2378 |
#| "list, so you can write:" |
| 2379 |
msgid "" |
| 2380 |
"You may have an optional comma before the closing parenthesis of a list " |
| 2381 |
"literal, so that you can say:" |
| 2382 |
msgstr "" |
| 2383 |
"Przed nawiasem zamykającym listę literałów możesz użyć opcjonalnego " |
| 2384 |
"przecinka, zatem możesz pisać:" |
| 2385 |
|
| 2386 |
#. type: Plain text |
| 2387 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2388 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2389 |
#, no-wrap |
| 2390 |
msgid "" |
| 2391 |
"\\& @foo = (\n" |
| 2392 |
"\\& 1,\n" |
| 2393 |
"\\& 2,\n" |
| 2394 |
"\\& 3,\n" |
| 2395 |
"\\& );\n" |
| 2396 |
msgstr "" |
| 2397 |
"\\& @foo = (\n" |
| 2398 |
"\\& 1,\n" |
| 2399 |
"\\& 2,\n" |
| 2400 |
"\\& 3,\n" |
| 2401 |
"\\& );\n" |
| 2402 |
|
| 2403 |
#. type: Plain text |
| 2404 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2405 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2406 |
msgid "" |
| 2407 |
"To use a here-document to assign an array, one line per element, you might " |
| 2408 |
"use an approach like this:" |
| 2409 |
msgstr "" |
| 2410 |
|
| 2411 |
#. type: Plain text |
| 2412 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2413 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2414 |
#, no-wrap |
| 2415 |
msgid "" |
| 2416 |
"\\& @sauces = E<lt>E<lt>End_Lines =~ m/(\\eS.*\\eS)/g;\n" |
| 2417 |
"\\& normal tomato\n" |
| 2418 |
"\\& spicy tomato\n" |
| 2419 |
"\\& green chile\n" |
| 2420 |
"\\& pesto\n" |
| 2421 |
"\\& white wine\n" |
| 2422 |
"\\& End_Lines\n" |
| 2423 |
msgstr "" |
| 2424 |
|
| 2425 |
#. type: Plain text |
| 2426 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2427 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2428 |
#, fuzzy |
| 2429 |
#| msgid "" |
| 2430 |
#| "LISTs perform automatic interpolation of sublists. That is, when " |
| 2431 |
#| "\\s-1LIST\\s0 is processed, each element of it is processed in list " |
| 2432 |
#| "context. The resulting list value is interpolated into \\s-1LIST\\s0 as " |
| 2433 |
#| "if each individual element were a member of \\s-1LIST\\s0. Thus, in " |
| 2434 |
#| "\\s-1LIST\\s0, arrays and hashes lose their identity--list" |
| 2435 |
msgid "" |
| 2436 |
"LISTs do automatic interpolation of sublists. That is, when a LIST is " |
| 2437 |
"evaluated, each element of the list is evaluated in list context, and the " |
| 2438 |
"resulting list value is interpolated into LIST just as if each individual " |
| 2439 |
"element were a member of LIST. Thus arrays and hashes lose their identity " |
| 2440 |
"in a LIST--the list" |
| 2441 |
msgstr "" |
| 2442 |
"LISTY dokonują automatycznej interpolacji podlist. To znaczy, kiedy " |
| 2443 |
"przetwarzana jest \\s-1LISTA\\s0, to każdy jej element jest przetwarzany w " |
| 2444 |
"kontekście listowym. Wynikowa wartość listy interpolowana jest do listy " |
| 2445 |
"\\s-1LISTA\\s0 tak, jakby każdy pojedynczy element był członkiem " |
| 2446 |
"\\s-1LISTY\\s0 Zatem w \\s-1LIŚCIE\\s0 tracą swoją tożsamość tablice i " |
| 2447 |
"hasze--lista" |
| 2448 |
|
| 2449 |
#. type: Plain text |
| 2450 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2451 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2452 |
#, no-wrap |
| 2453 |
msgid "\\& (@foo,@bar,&SomeSub,%glarch)\n" |
| 2454 |
msgstr "\\& (@foo,@bar,&SomeSub,%glarch)\n" |
| 2455 |
|
| 2456 |
#. type: Plain text |
| 2457 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2458 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2459 |
#, fuzzy |
| 2460 |
#| msgid "" |
| 2461 |
#| "contains all the elements of CW<@foo>, followed by all the elements of " |
| 2462 |
#| "CW<@bar>, followed by all the elements returned by a procedure named " |
| 2463 |
#| "SomeSub called in list context, and finally the key/value pairs from " |
| 2464 |
#| "CW<%glarch>. If you want to refer to a list WITHOUT interpolating, see " |
| 2465 |
#| "the manual page for B<perlref>(1)." |
| 2466 |
msgid "" |
| 2467 |
"contains all the elements of CW<@foo> followed by all the elements of " |
| 2468 |
"CW<@bar>, followed by all the elements returned by the subroutine named " |
| 2469 |
"SomeSub called in list context, followed by the key/value pairs of " |
| 2470 |
"CW<%glarch>. To make a list reference that does I<NOT> interpolate, see " |
| 2471 |
"perlref." |
| 2472 |
msgstr "" |
| 2473 |
"zawiera wszystkie elementy CW<@foo>, po których następują wszystkie elementy " |
| 2474 |
"CW<@bar>, wszystkie elementy zwrócone przez procedurę o nazwie SomeSub " |
| 2475 |
"wywołaną w kontekście listowym, i na końcu pary klucz/wartość z CW<%glarch>. " |
| 2476 |
"Jeżeli chcesz odwołać się do listy, NIE wykonując interpolacji zajrzyj do " |
| 2477 |
"podręcznika B<perlref>(1)." |
| 2478 |
|
| 2479 |
#. type: Plain text |
| 2480 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2481 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2482 |
#, fuzzy |
| 2483 |
#| msgid "" |
| 2484 |
#| "The empty list is represented by (). Interpolating it in the list has no " |
| 2485 |
#| "effect. Thus, ((),(),()) is equivalent to (). Similarly, interpolating an " |
| 2486 |
#| "array with no elements is the same as not interpolating any array at that " |
| 2487 |
#| "point." |
| 2488 |
msgid "" |
| 2489 |
"The null list is represented by (). Interpolating it in a list has no " |
| 2490 |
"effect. Thus ((),(),()) is equivalent to (). Similarly, interpolating an " |
| 2491 |
"array with no elements is the same as if no array had been interpolated at " |
| 2492 |
"that point." |
| 2493 |
msgstr "" |
| 2494 |
"Lista pusta reprezentowana jest przez (). Jej interpolowanie w liście nie " |
| 2495 |
"daje żadnego efektu. Zatem ((),(),()) jest równoważne (). Podobnie, " |
| 2496 |
"interpolowanie tablicy bez elementów jest tym samym, co nie interpolowanie w " |
| 2497 |
"tym miejscu żadnej tablicy." |
| 2498 |
|
| 2499 |
#. type: Plain text |
| 2500 |
#: debian-trixie debian-unstable |
| 2501 |
msgid "" |
| 2502 |
"This interpolation combines with the facts that the opening and closing " |
| 2503 |
"parentheses are optional (except when necessary for precedence) and lists " |
| 2504 |
"may end with an optional comma to mean that multiple commas within lists are " |
| 2505 |
"legal syntax. The list CW<\\*(C`1,,3\\*(C'> is a concatenation of two " |
| 2506 |
"lists, CW<\\*(C`1,\\*(C'> and CW<3>, the first of which ends with that " |
| 2507 |
"optional comma. CW<\\*(C`1,,3\\*(C'> is CW<\\*(C`(1,),(3)\\*(C'> is " |
| 2508 |
"CW<\\*(C`1,3\\*(C'> (And similarly for CW<\\*(C`1,,,3\\*(C'> is " |
| 2509 |
"CW<\\*(C`(1,),(,),3\\*(C'> is CW<\\*(C`1,3\\*(C'> and so on.) Not that we'd " |
| 2510 |
"advise you to use this obfuscation." |
| 2511 |
msgstr "" |
| 2512 |
|
| 2513 |
#. type: Plain text |
| 2514 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2515 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2516 |
#, fuzzy |
| 2517 |
#| msgid "" |
| 2518 |
#| "A list value can also be indexed like a regular array. You just need to " |
| 2519 |
#| "enclose the list in parentheses to avoid ambiguity. For example:" |
| 2520 |
msgid "" |
| 2521 |
"A list value may also be subscripted like a normal array. You must put the " |
| 2522 |
"list in parentheses to avoid ambiguity. For example:" |
| 2523 |
msgstr "" |
| 2524 |
"Wartość listowa może być też indeksowana tak, jak zwykła tablica. Musisz " |
| 2525 |
"tylko umieścić listę w nawiasach, by uniknąć niejasności. Na przykład:" |
| 2526 |
|
| 2527 |
#. type: Plain text |
| 2528 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2529 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2530 |
#, no-wrap |
| 2531 |
msgid "" |
| 2532 |
"\\& # Stat returns list value.\n" |
| 2533 |
"\\& $time = (stat($file))[8];\n" |
| 2534 |
"\\&\n" |
| 2535 |
"\\& # SYNTAX ERROR HERE.\n" |
| 2536 |
"\\& $time = stat($file)[8]; # OOPS, FORGOT PARENTHESES\n" |
| 2537 |
"\\&\n" |
| 2538 |
"\\& # Find a hex digit.\n" |
| 2539 |
"\\& $hexdigit = (\\*(Aqa\\*(Aq,\\*(Aqb\\*(Aq,\\*(Aqc\\*(Aq,\\*(Aqd\\*(Aq,\\*(Aqe\\*(Aq,\\*(Aqf\\*(Aq)[$digit-10];\n" |
| 2540 |
"\\&\n" |
| 2541 |
"\\& # A \"reverse comma operator\".\n" |
| 2542 |
"\\& return (pop(@foo),pop(@foo))[0];\n" |
| 2543 |
msgstr "" |
| 2544 |
|
| 2545 |
#. type: Plain text |
| 2546 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2547 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2548 |
msgid "" |
| 2549 |
"Lists may be assigned to only when each element of the list is itself legal " |
| 2550 |
"to assign to:" |
| 2551 |
msgstr "" |
| 2552 |
|
| 2553 |
#. type: Plain text |
| 2554 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2555 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2556 |
#, fuzzy, no-wrap |
| 2557 |
#| msgid "\\& ($map{'red'}, $map{'blue'}, $map{'green'}) \\& = (0x00f, 0x0f0, 0xf00);" |
| 2558 |
msgid "" |
| 2559 |
"\\& ($x, $y, $z) = (1, 2, 3);\n" |
| 2560 |
"\\&\n" |
| 2561 |
"\\& ($map{\\*(Aqred\\*(Aq}, $map{\\*(Aqblue\\*(Aq}, $map{\\*(Aqgreen\\*(Aq}) = (0x00f, 0x0f0, 0xf00);\n" |
| 2562 |
msgstr "\\& ($map{'czerwony'}, $map{'niebieski'}, $map{'zielony'}) \\& = (0x00f, 0x0f0, 0xf00);" |
| 2563 |
|
| 2564 |
#. type: Plain text |
| 2565 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2566 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2567 |
#, fuzzy |
| 2568 |
#| msgid "" |
| 2569 |
#| "In the list you can assign to CW<undef>. This is useful for getting rid " |
| 2570 |
#| "of some of the values returned by the function:" |
| 2571 |
msgid "" |
| 2572 |
"An exception to this is that you may assign to CW<\\*(C`undef\\*(C'> in a " |
| 2573 |
"list. This is useful for throwing away some of the return values of a " |
| 2574 |
"function:" |
| 2575 |
msgstr "" |
| 2576 |
"W liście możesz wykonać przypisanie do CW<undef>. Przydaje się to do " |
| 2577 |
"pozbywania się niektórych wartości zwracanych przez funkcję:" |
| 2578 |
|
| 2579 |
#. type: Plain text |
| 2580 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2581 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2582 |
#, no-wrap |
| 2583 |
msgid "\\& ($dev, $ino, undef, undef, $uid, $gid) = stat($file);\n" |
| 2584 |
msgstr "\\& ($dev, $ino, undef, undef, $uid, $gid) = stat($file);\n" |
| 2585 |
|
| 2586 |
#. type: Plain text |
| 2587 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2588 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2589 |
msgid "" |
| 2590 |
"As of Perl 5.22, you can also use CW<\\*(C`(undef)x2\\*(C'> instead of " |
| 2591 |
"CW<\\*(C`undef, undef\\*(C'>. (You can also do CW<\\*(C`($x) x 2\\*(C'>, " |
| 2592 |
"which is less useful, because it assigns to the same variable twice, " |
| 2593 |
"clobbering the first value assigned.)" |
| 2594 |
msgstr "" |
| 2595 |
|
| 2596 |
#. type: Plain text |
| 2597 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2598 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2599 |
msgid "" |
| 2600 |
"When you assign a list of scalars to an array, all previous values in that " |
| 2601 |
"array are wiped out and the number of elements in the array will now be " |
| 2602 |
"equal to the number of elements in the right-hand list -- the list from " |
| 2603 |
"which assignment was made. The array will automatically resize itself to " |
| 2604 |
"precisely accommodate each element in the right-hand list." |
| 2605 |
msgstr "" |
| 2606 |
|
| 2607 |
#. type: Plain text |
| 2608 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2609 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2610 |
#, no-wrap |
| 2611 |
msgid "" |
| 2612 |
"\\& use warnings;\n" |
| 2613 |
"\\& my (@xyz, $x, $y, $z);\n" |
| 2614 |
"\\&\n" |
| 2615 |
"\\& @xyz = (1, 2, 3);\n" |
| 2616 |
"\\& print \"@xyz\\en\"; # 1 2 3\n" |
| 2617 |
"\\&\n" |
| 2618 |
"\\& @xyz = (\\*(Aqal\\*(Aq, \\*(Aqbe\\*(Aq, \\*(Aqga\\*(Aq, \\*(Aqde\\*(Aq);\n" |
| 2619 |
"\\& print \"@xyz\\en\"; # al be ga de\n" |
| 2620 |
"\\&\n" |
| 2621 |
"\\& @xyz = (101, 102);\n" |
| 2622 |
"\\& print \"@xyz\\en\"; # 101 102\n" |
| 2623 |
msgstr "" |
| 2624 |
|
| 2625 |
#. type: Plain text |
| 2626 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2627 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2628 |
msgid "" |
| 2629 |
"When, however, you assign a list of scalars to another list of scalars, the " |
| 2630 |
"results differ according to whether the left-hand list -- the list being " |
| 2631 |
"assigned to -- has the same, more or fewer elements than the right-hand list." |
| 2632 |
msgstr "" |
| 2633 |
|
| 2634 |
#. type: Plain text |
| 2635 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2636 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2637 |
#, no-wrap |
| 2638 |
msgid "" |
| 2639 |
"\\& ($x, $y, $z) = (1, 2, 3);\n" |
| 2640 |
"\\& print \"$x $y $z\\en\"; # 1 2 3\n" |
| 2641 |
"\\&\n" |
| 2642 |
"\\& ($x, $y, $z) = (\\*(Aqal\\*(Aq, \\*(Aqbe\\*(Aq, \\*(Aqga\\*(Aq, \\*(Aqde\\*(Aq);\n" |
| 2643 |
"\\& print \"$x $y $z\\en\"; # al be ga\n" |
| 2644 |
"\\&\n" |
| 2645 |
"\\& ($x, $y, $z) = (101, 102);\n" |
| 2646 |
"\\& print \"$x $y $z\\en\"; # 101 102\n" |
| 2647 |
"\\& # Use of uninitialized value $z in concatenation (.)\n" |
| 2648 |
"\\& # or string at [program] line [line number].\n" |
| 2649 |
msgstr "" |
| 2650 |
|
| 2651 |
#. type: Plain text |
| 2652 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2653 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2654 |
msgid "" |
| 2655 |
"If the number of scalars in the left-hand list is less than that in the " |
| 2656 |
"right-hand list, the \"extra\" scalars in the right-hand list will simply " |
| 2657 |
"not be assigned." |
| 2658 |
msgstr "" |
| 2659 |
|
| 2660 |
#. type: Plain text |
| 2661 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2662 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2663 |
msgid "" |
| 2664 |
"If the number of scalars in the left-hand list is greater than that in the " |
| 2665 |
"left-hand list, the \"missing\" scalars will become undefined." |
| 2666 |
msgstr "" |
| 2667 |
|
| 2668 |
#. type: Plain text |
| 2669 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2670 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2671 |
#, no-wrap |
| 2672 |
msgid "" |
| 2673 |
"\\& ($x, $y, $z) = (101, 102);\n" |
| 2674 |
"\\& for my $el ($x, $y, $z) {\n" |
| 2675 |
"\\& (defined $el) ? print \"$el \" : print \"E<lt>undefE<gt>\";\n" |
| 2676 |
"\\& }\n" |
| 2677 |
"\\& print \"\\en\";\n" |
| 2678 |
"\\& # 101 102 E<lt>undefE<gt>\n" |
| 2679 |
msgstr "" |
| 2680 |
|
| 2681 |
#. type: Plain text |
| 2682 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2683 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2684 |
#, fuzzy |
| 2685 |
#| msgid "" |
| 2686 |
#| "Assigning an array in scalar context returns the number of elements " |
| 2687 |
#| "created by the expression on the right side of the assignment:" |
| 2688 |
msgid "" |
| 2689 |
"List assignment in scalar context returns the number of elements produced by " |
| 2690 |
"the expression on the right side of the assignment:" |
| 2691 |
msgstr "" |
| 2692 |
"Przypisanie tablicy w kontekście skalarnym zwraca liczbę elementów " |
| 2693 |
"utworzonych przez wyrażenie po prawej stronie przypisania:" |
| 2694 |
|
| 2695 |
#. type: Plain text |
| 2696 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2697 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2698 |
#, fuzzy, no-wrap |
| 2699 |
#| msgid "\\& $x = (($foo,$bar) = (3,2,1)); # set $x to 3, not 2 \\& $x = (($foo,$bar) = f()); # set $x to the number returned by f()" |
| 2700 |
msgid "" |
| 2701 |
"\\& $x = (($foo,$bar) = (3,2,1)); # set $x to 3, not 2\n" |
| 2702 |
"\\& $x = (($foo,$bar) = f()); # set $x to f()\\*(Aqs return count\n" |
| 2703 |
msgstr "\\& $x = (($foo,$bar) = (3,2,1)); # ustaw $x na 3, nie 2 \\& $x = (($foo,$bar) = f()); # ustaw $x na ilość zwróconych przez f()" |
| 2704 |
|
| 2705 |
#. type: Plain text |
| 2706 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2707 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2708 |
#, fuzzy |
| 2709 |
#| msgid "" |
| 2710 |
#| "This is very convenient when you want to perform list assignment in a " |
| 2711 |
#| "logical (Boolean) context, since most list functions return an empty list " |
| 2712 |
#| "after processing, which when assigned gives 0, which is interpreted as " |
| 2713 |
#| "false." |
| 2714 |
msgid "" |
| 2715 |
"This is handy when you want to do a list assignment in a Boolean context, " |
| 2716 |
"because most list functions return a null list when finished, which when " |
| 2717 |
"assigned produces a 0, which is interpreted as FALSE." |
| 2718 |
msgstr "" |
| 2719 |
"Jest to bardzo wygodne, gdy chcesz wykonać przypisanie listy w kontekście " |
| 2720 |
"logicznym (boolowskim), gdyż większość funkcji listowych zwraca po " |
| 2721 |
"zakończeniu przetwarzania listę pustą, co przy przypisaniu daje 0, " |
| 2722 |
"interpretowane jako fałsz." |
| 2723 |
|
| 2724 |
#. type: Plain text |
| 2725 |
#: debian-trixie debian-unstable |
| 2726 |
msgid "" |
| 2727 |
"It's also the source of a useful idiom for executing a function or " |
| 2728 |
"performing an operation in list context and then counting the number of " |
| 2729 |
"return values, by assigning to an empty list and then using that assignment " |
| 2730 |
"in scalar context. For example, this code:" |
| 2731 |
msgstr "" |
| 2732 |
|
| 2733 |
#. type: Plain text |
| 2734 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2735 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2736 |
#, no-wrap |
| 2737 |
msgid "\\& $count = () = $string =~ /\\ed+/g;\n" |
| 2738 |
msgstr "" |
| 2739 |
|
| 2740 |
#. type: Plain text |
| 2741 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2742 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2743 |
msgid "" |
| 2744 |
"will place into CW<$count> the number of digit groups found in CW<$string>. " |
| 2745 |
"This happens because the pattern match is in list context (since it is being " |
| 2746 |
"assigned to the empty list), and will therefore return a list of all " |
| 2747 |
"matching parts of the string. The list assignment in scalar context will " |
| 2748 |
"translate that into the number of elements (here, the number of times the " |
| 2749 |
"pattern matched) and assign that to CW<$count>. Note that simply using" |
| 2750 |
msgstr "" |
| 2751 |
|
| 2752 |
#. type: Plain text |
| 2753 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2754 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2755 |
#, no-wrap |
| 2756 |
msgid "\\& $count = $string =~ /\\ed+/g;\n" |
| 2757 |
msgstr "" |
| 2758 |
|
| 2759 |
#. type: Plain text |
| 2760 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2761 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2762 |
msgid "" |
| 2763 |
"would not have worked, since a pattern match in scalar context will only " |
| 2764 |
"return true or false, rather than a count of matches." |
| 2765 |
msgstr "" |
| 2766 |
|
| 2767 |
#. type: Plain text |
| 2768 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2769 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2770 |
#, fuzzy |
| 2771 |
#| msgid "The last element can be an array or a hash:" |
| 2772 |
msgid "The final element of a list assignment may be an array or a hash:" |
| 2773 |
msgstr "Ostatni element może być tablicą lub haszem:" |
| 2774 |
|
| 2775 |
#. type: Plain text |
| 2776 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2777 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2778 |
#, no-wrap |
| 2779 |
msgid "" |
| 2780 |
"\\& ($x, $y, @rest) = split;\n" |
| 2781 |
"\\& my($x, $y, %rest) = @_;\n" |
| 2782 |
msgstr "" |
| 2783 |
"\\& ($x, $y, @rest) = split;\n" |
| 2784 |
"\\& my($x, $y, %rest) = @_;\n" |
| 2785 |
|
| 2786 |
#. type: Plain text |
| 2787 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2788 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2789 |
#, fuzzy |
| 2790 |
#| msgid "" |
| 2791 |
#| "You can actually put an array or hash anywhere in the list, but the first " |
| 2792 |
#| "one in the list will grab all the values and the rest will get null. This " |
| 2793 |
#| "can be helpful in I<local()> or I<my()>." |
| 2794 |
msgid "" |
| 2795 |
"You can actually put an array or hash anywhere in the list, but the first " |
| 2796 |
"one in the list will soak up all the values, and anything after it will " |
| 2797 |
"become undefined. This may be useful in a B<my()> or B<local()>." |
| 2798 |
msgstr "" |
| 2799 |
"Faktycznie możesz umieścić tablicę lub hasza w dowolnym miejscu listy, ale " |
| 2800 |
"pierwsze z nich na liście wessie wszystkie wartości i pozostałe dostaną " |
| 2801 |
"wartość nul. Może to być pomocne w I<local()> lub I<my()>." |
| 2802 |
|
| 2803 |
#. type: Plain text |
| 2804 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2805 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2806 |
#, fuzzy |
| 2807 |
#| msgid "" |
| 2808 |
#| "A hash literal (associative array) contains pairs of values that will be " |
| 2809 |
#| "interpreted as a key and value:" |
| 2810 |
msgid "" |
| 2811 |
"A hash can be initialized using a literal list holding pairs of items to be " |
| 2812 |
"interpreted as a key and a value:" |
| 2813 |
msgstr "" |
| 2814 |
"Literał hasza (tablicy asocjacyjnej) zawiera pary wartości, które będą " |
| 2815 |
"interpretowane jako klucz i wartość:" |
| 2816 |
|
| 2817 |
#. type: Plain text |
| 2818 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2819 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2820 |
#, fuzzy, no-wrap |
| 2821 |
#| msgid "\\& # same assignment as above \\& %map = ('red',0x00f,'blue',0x0f0,'green',0xf00);" |
| 2822 |
msgid "" |
| 2823 |
"\\& # same as map assignment above\n" |
| 2824 |
"\\& %map = (\\*(Aqred\\*(Aq,0x00f,\\*(Aqblue\\*(Aq,0x0f0,\\*(Aqgreen\\*(Aq,0xf00);\n" |
| 2825 |
msgstr "\\& # takie samo przypisanie jak powyżej \\& %map = ('czerwony',0x00f,'niebieski',0x0f0,'zielony',0xf00);" |
| 2826 |
|
| 2827 |
#. type: Plain text |
| 2828 |
#: debian-trixie debian-unstable |
| 2829 |
#, fuzzy |
| 2830 |
#| msgid "" |
| 2831 |
#| "While literal lists and named arrays are usually interchangeable, this is " |
| 2832 |
#| "not the case for hashes. Just because you can index the values of a list " |
| 2833 |
#| "like a regular array doesn't mean you can index the list like a hash. " |
| 2834 |
#| "Similarly, hashes included as part of other lists (including parameter " |
| 2835 |
#| "lists and function return lists) always flatten out to key/value pairs. " |
| 2836 |
#| "That's why it's sometimes useful to use a pointer." |
| 2837 |
msgid "" |
| 2838 |
"While literal lists and named arrays are often interchangeable, that's not " |
| 2839 |
"the case for hashes. Just because you can subscript a list value like a " |
| 2840 |
"normal array does not mean that you can subscript a list value as a hash. " |
| 2841 |
"Likewise, hashes included as parts of other lists (including parameters " |
| 2842 |
"lists and return lists from functions) always flatten out into key/value " |
| 2843 |
"pairs. That's why it's good to use references sometimes." |
| 2844 |
msgstr "" |
| 2845 |
"Choć listy literałów i nazwane tablice są zwykle wzajemnie wymienne, to nie " |
| 2846 |
"zachodzi to w przypadku haszy. To, że możesz indeksować wartości listy tak " |
| 2847 |
"jak zwykłej tablicy nie oznacza, że możesz indeksować listę tak jak hasz. " |
| 2848 |
"Podobnie, hasze włączone jako części innych list (łącznie z listami " |
| 2849 |
"parametrów i list zwracanych przez funkcje) zawsze ulegają spłaszczeniu do " |
| 2850 |
"par klucz/wartość. Dlatego czasem dobrze jest użyć wskazania." |
| 2851 |
|
| 2852 |
#. type: Plain text |
| 2853 |
#: debian-trixie debian-unstable |
| 2854 |
#, fuzzy |
| 2855 |
#| msgid "" |
| 2856 |
#| "It is often more readable to use CW<=E<gt>> between key/value pairs. This " |
| 2857 |
#| "operator is simply a more visually distinctive synonym for comma. It also " |
| 2858 |
#| "causes its left operand to be interpreted as a string if it is a bare " |
| 2859 |
#| "word that could be a valid identifier. This makes initializing hashes " |
| 2860 |
#| "more convenient:" |
| 2861 |
msgid "" |
| 2862 |
"It is often more readable to use the CW<\\*(C`=E<gt>\\*(C'> operator between " |
| 2863 |
"key/value pairs. The CW<\\*(C`=E<gt>\\*(C'> operator is mostly just a more " |
| 2864 |
"visually distinctive synonym for a comma, but it also arranges for its left-" |
| 2865 |
"hand operand to be interpreted as a string if it's a bareword that would be " |
| 2866 |
"a legal simple identifier. CW<\\*(C`=E<gt>\\*(C'> doesn't quote compound " |
| 2867 |
"identifiers, that contain double colons. This makes it nice for " |
| 2868 |
"initializing hashes:" |
| 2869 |
msgstr "" |
| 2870 |
"Często bardziej czytelne jest użycie pomiędzy parami klucz/wartość operatora " |
| 2871 |
"CW<=E<gt>>. Operator ten jest po prostu bardziej wyróżniającym się wzrokowo " |
| 2872 |
"synonimem przecinka. Ponadto powoduje, że jego lewostronny operand jest " |
| 2873 |
"interpretowany jako łańcuch, jeśli jest on gołym słowem, które mogłoby być " |
| 2874 |
"poprawnym identyfikatorem. Uprzyjemnia to inicjowanie haszy:" |
| 2875 |
|
| 2876 |
#. type: Plain text |
| 2877 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2878 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2879 |
#, no-wrap |
| 2880 |
msgid "" |
| 2881 |
"\\& %map = (\n" |
| 2882 |
"\\& red =E<gt> 0x00f,\n" |
| 2883 |
"\\& blue =E<gt> 0x0f0,\n" |
| 2884 |
"\\& green =E<gt> 0xf00,\n" |
| 2885 |
"\\& );\n" |
| 2886 |
msgstr "" |
| 2887 |
"\\& %map = (\n" |
| 2888 |
"\\& czerwony =E<gt> 0x00f,\n" |
| 2889 |
"\\& niebieski =E<gt> 0x0f0,\n" |
| 2890 |
"\\& zielony =E<gt> 0xf00,\n" |
| 2891 |
"\\& );\n" |
| 2892 |
"\\& %map = ( \\& czerwony =E<gt> 0x00f, \\& niebieski =E<gt> 0x0f0, \\& zielony =E<gt> 0xf00, \\& );\n" |
| 2893 |
|
| 2894 |
#. type: Plain text |
| 2895 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2896 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2897 |
msgid "or for initializing hash references to be used as records:" |
| 2898 |
msgstr "lub inicjowanie odwołań do haszy, które będą używane jako rekordy:" |
| 2899 |
|
| 2900 |
#. type: Plain text |
| 2901 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2902 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2903 |
#, no-wrap |
| 2904 |
msgid "" |
| 2905 |
"\\& $rec = {\n" |
| 2906 |
"\\& witch =E<gt> \\*(AqMable the Merciless\\*(Aq,\n" |
| 2907 |
"\\& cat =E<gt> \\*(AqFluffy the Ferocious\\*(Aq,\n" |
| 2908 |
"\\& date =E<gt> \\*(Aq10/31/1776\\*(Aq,\n" |
| 2909 |
"\\& };\n" |
| 2910 |
msgstr "" |
| 2911 |
"\\& $rec = {\n" |
| 2912 |
"\\& witch =E<gt> \\*(AqMable the Merciless\\*(Aq,\n" |
| 2913 |
"\\& cat =E<gt> \\*(AqFluffy the Ferocious\\*(Aq,\n" |
| 2914 |
"\\& date =E<gt> \\*(Aq10/31/1776\\*(Aq,\n" |
| 2915 |
"\\& };\n" |
| 2916 |
|
| 2917 |
#. type: Plain text |
| 2918 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2919 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2920 |
msgid "or for using call-by-named-parameter to complicated functions:" |
| 2921 |
msgstr "" |
| 2922 |
"albo użycie wywoływanych przez nazwę parametrów skomplikowanej funkcji:" |
| 2923 |
|
| 2924 |
#. type: Plain text |
| 2925 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2926 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2927 |
#, no-wrap |
| 2928 |
msgid "" |
| 2929 |
"\\& $field = $query-E<gt>radio_group(\n" |
| 2930 |
"\\& name =E<gt> \\*(Aqgroup_name\\*(Aq,\n" |
| 2931 |
"\\& values =E<gt> [\\*(Aqeenie\\*(Aq,\\*(Aqmeenie\\*(Aq,\\*(Aqminie\\*(Aq],\n" |
| 2932 |
"\\& default =E<gt> \\*(Aqmeenie\\*(Aq,\n" |
| 2933 |
"\\& linebreak =E<gt> \\*(Aqtrue\\*(Aq,\n" |
| 2934 |
"\\& labels =E<gt> \\e%labels\n" |
| 2935 |
"\\& );\n" |
| 2936 |
msgstr "" |
| 2937 |
"\\& $field = $query-E<gt>radio_group(\n" |
| 2938 |
"\\& name =E<gt> \\*(Aqgroup_name\\*(Aq,\n" |
| 2939 |
"\\& values =E<gt> [\\*(Aqeenie\\*(Aq,\\*(Aqmeenie\\*(Aq,\\*(Aqminie\\*(Aq],\n" |
| 2940 |
"\\& default =E<gt> \\*(Aqmeenie\\*(Aq,\n" |
| 2941 |
"\\& linebreak =E<gt> \\*(Aqtrue\\*(Aq,\n" |
| 2942 |
"\\& labels =E<gt> \\e%labels\n" |
| 2943 |
"\\& );\n" |
| 2944 |
|
| 2945 |
#. type: Plain text |
| 2946 |
#: debian-trixie debian-unstable |
| 2947 |
#, fuzzy |
| 2948 |
#| msgid "" |
| 2949 |
#| "Note that just because the associative array is initialized in an order " |
| 2950 |
#| "doesn't mean it will be returned in that order. For examples of how to " |
| 2951 |
#| "sort the order of returned results, see CW<sort> in the B<perlfunc>(1) " |
| 2952 |
#| "manual page." |
| 2953 |
msgid "" |
| 2954 |
"Note that just because a hash is initialized in that order doesn't mean that " |
| 2955 |
"it comes out in that order. See \"sort\" in perlfunc for examples of how to " |
| 2956 |
"arrange for an output ordering." |
| 2957 |
msgstr "" |
| 2958 |
"Zwróć uwagę na to, iż fakt, że tablica asocjacyjna jest zainicjowana w takim " |
| 2959 |
"porządku, nie oznacza, że zostanie zwrócona w tym samym porządku. Przykłady, " |
| 2960 |
"jak ułożyć kolejność zwracanych wyników znajdziesz przy opisie CW<sort> w " |
| 2961 |
"podręczniku B<perlfunc>(1)." |
| 2962 |
|
| 2963 |
#. type: Plain text |
| 2964 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2965 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2966 |
msgid "" |
| 2967 |
"If a key appears more than once in the initializer list of a hash, the last " |
| 2968 |
"occurrence wins:" |
| 2969 |
msgstr "" |
| 2970 |
|
| 2971 |
#. type: Plain text |
| 2972 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2973 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2974 |
#, no-wrap |
| 2975 |
msgid "" |
| 2976 |
"\\& %circle = (\n" |
| 2977 |
"\\& center =E<gt> [5, 10],\n" |
| 2978 |
"\\& center =E<gt> [27, 9],\n" |
| 2979 |
"\\& radius =E<gt> 100,\n" |
| 2980 |
"\\& color =E<gt> [0xDF, 0xFF, 0x00],\n" |
| 2981 |
"\\& radius =E<gt> 54,\n" |
| 2982 |
"\\& );\n" |
| 2983 |
"\\&\n" |
| 2984 |
"\\& # same as\n" |
| 2985 |
"\\& %circle = (\n" |
| 2986 |
"\\& center =E<gt> [27, 9],\n" |
| 2987 |
"\\& color =E<gt> [0xDF, 0xFF, 0x00],\n" |
| 2988 |
"\\& radius =E<gt> 54,\n" |
| 2989 |
"\\& );\n" |
| 2990 |
msgstr "" |
| 2991 |
|
| 2992 |
#. type: Plain text |
| 2993 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2994 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2995 |
msgid "This can be used to provide overridable configuration defaults:" |
| 2996 |
msgstr "" |
| 2997 |
|
| 2998 |
#. type: Plain text |
| 2999 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3000 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3001 |
#, no-wrap |
| 3002 |
msgid "" |
| 3003 |
"\\& # values in %args take priority over %config_defaults\n" |
| 3004 |
"\\& %config = (%config_defaults, %args);\n" |
| 3005 |
msgstr "" |
| 3006 |
|
| 3007 |
#. type: IX |
| 3008 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3009 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3010 |
#, fuzzy, no-wrap |
| 3011 |
#| msgid "Scripts" |
| 3012 |
msgid "Subscripts" |
| 3013 |
msgstr "Skrypty" |
| 3014 |
|
| 3015 |
#. type: Plain text |
| 3016 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3017 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3018 |
msgid "" |
| 3019 |
"An array can be accessed one scalar at a time by specifying a dollar sign " |
| 3020 |
"(CW<\\*(C`$\\*(C'>), then the name of the array (without the leading " |
| 3021 |
"CW<\\*(C`@\\*(C'>), then the subscript inside square brackets. For example:" |
| 3022 |
msgstr "" |
| 3023 |
|
| 3024 |
#. type: Plain text |
| 3025 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3026 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3027 |
#, no-wrap |
| 3028 |
msgid "" |
| 3029 |
"\\& @myarray = (5, 50, 500, 5000);\n" |
| 3030 |
"\\& print \"The Third Element is\", $myarray[2], \"\\en\";\n" |
| 3031 |
msgstr "" |
| 3032 |
|
| 3033 |
#. type: Plain text |
| 3034 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3035 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3036 |
msgid "" |
| 3037 |
"The array indices start with 0. A negative subscript retrieves its value " |
| 3038 |
"from the end. In our example, CW<$myarray[-1]> would have been 5000, and " |
| 3039 |
"CW<$myarray[-2]> would have been 500." |
| 3040 |
msgstr "" |
| 3041 |
|
| 3042 |
#. type: Plain text |
| 3043 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3044 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3045 |
msgid "" |
| 3046 |
"Hash subscripts are similar, only instead of square brackets curly brackets " |
| 3047 |
"are used. For example:" |
| 3048 |
msgstr "" |
| 3049 |
|
| 3050 |
#. type: Plain text |
| 3051 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3052 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3053 |
#, no-wrap |
| 3054 |
msgid "" |
| 3055 |
"\\& %scientists = \n" |
| 3056 |
"\\& (\n" |
| 3057 |
"\\& \"Newton\" =E<gt> \"Isaac\",\n" |
| 3058 |
"\\& \"Einstein\" =E<gt> \"Albert\",\n" |
| 3059 |
"\\& \"Darwin\" =E<gt> \"Charles\",\n" |
| 3060 |
"\\& \"Feynman\" =E<gt> \"Richard\",\n" |
| 3061 |
"\\& );\n" |
| 3062 |
"\\&\n" |
| 3063 |
"\\& print \"Darwin\\*(Aqs First Name is \", $scientists{\"Darwin\"}, \"\\en\";\n" |
| 3064 |
msgstr "" |
| 3065 |
|
| 3066 |
#. type: Plain text |
| 3067 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3068 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3069 |
msgid "You can also subscript a list to get a single element from it:" |
| 3070 |
msgstr "" |
| 3071 |
|
| 3072 |
#. type: Plain text |
| 3073 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3074 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3075 |
#, no-wrap |
| 3076 |
msgid "\\& $dir = (getpwnam(\"daemon\"))[7];\n" |
| 3077 |
msgstr "\\& $dir = (getpwnam(\"daemon\"))[7];\n" |
| 3078 |
|
| 3079 |
#. type: IX |
| 3080 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3081 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3082 |
#, no-wrap |
| 3083 |
msgid "Multi-dimensional array emulation" |
| 3084 |
msgstr "" |
| 3085 |
|
| 3086 |
#. type: Plain text |
| 3087 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3088 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3089 |
msgid "" |
| 3090 |
"Multidimensional arrays may be emulated by subscripting a hash with a list. " |
| 3091 |
"The elements of the list are joined with the subscript separator (see \"$;\" " |
| 3092 |
"in perlvar)." |
| 3093 |
msgstr "" |
| 3094 |
|
| 3095 |
#. type: Plain text |
| 3096 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3097 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3098 |
#, no-wrap |
| 3099 |
msgid "\\& $foo{$x,$y,$z}\n" |
| 3100 |
msgstr "\\& $foo{$x,$y,$z}\n" |
| 3101 |
|
| 3102 |
#. type: Plain text |
| 3103 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3104 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3105 |
#, no-wrap |
| 3106 |
msgid "\\& $foo{join($;, $x, $y, $z)}\n" |
| 3107 |
msgstr "\\& $foo{join($;, $x, $y, $z)}\n" |
| 3108 |
|
| 3109 |
#. type: Plain text |
| 3110 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3111 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3112 |
msgid "" |
| 3113 |
"The default subscript separator is \"\\e034\", the same as SUBSEP in B<awk>." |
| 3114 |
msgstr "" |
| 3115 |
|
| 3116 |
#. type: IX |
| 3117 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3118 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3119 |
#, no-wrap |
| 3120 |
msgid "Slices" |
| 3121 |
msgstr "" |
| 3122 |
|
| 3123 |
#. type: IX |
| 3124 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3125 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3126 |
#, no-wrap |
| 3127 |
msgid "slice array, slice hash, slice" |
| 3128 |
msgstr "" |
| 3129 |
|
| 3130 |
#. type: Plain text |
| 3131 |
#: debian-trixie debian-unstable |
| 3132 |
msgid "" |
| 3133 |
"A slice accesses several elements of a list, an array, or a hash " |
| 3134 |
"simultaneously using a list of subscripts. It's more convenient than " |
| 3135 |
"writing out the individual elements as a list of separate scalar values." |
| 3136 |
msgstr "" |
| 3137 |
|
| 3138 |
#. type: Plain text |
| 3139 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3140 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3141 |
#, no-wrap |
| 3142 |
msgid "" |
| 3143 |
"\\& ($him, $her) = @folks[0,-1]; # array slice\n" |
| 3144 |
"\\& @them = @folks[0 .. 3]; # array slice\n" |
| 3145 |
"\\& ($who, $home) = @ENV{\"USER\", \"HOME\"}; # hash slice\n" |
| 3146 |
"\\& ($uid, $dir) = (getpwnam(\"daemon\"))[2,7]; # list slice\n" |
| 3147 |
msgstr "" |
| 3148 |
|
| 3149 |
#. type: Plain text |
| 3150 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3151 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3152 |
#, fuzzy |
| 3153 |
#| msgid "" |
| 3154 |
#| "You can assign to lists if and only if you can assign to each of the list " |
| 3155 |
#| "elements:" |
| 3156 |
msgid "" |
| 3157 |
"Since you can assign to a list of variables, you can also assign to an array " |
| 3158 |
"or hash slice." |
| 3159 |
msgstr "" |
| 3160 |
"Do list można wykonać przypisanie wtedy i tylko wtedy, gdy dozwolone jest " |
| 3161 |
"przypisanie do każdego z elementów listy:" |
| 3162 |
|
| 3163 |
#. type: Plain text |
| 3164 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3165 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3166 |
#, no-wrap |
| 3167 |
msgid "" |
| 3168 |
"\\& @days[3..5] = qw/Wed Thu Fri/;\n" |
| 3169 |
"\\& @colors{\\*(Aqred\\*(Aq,\\*(Aqblue\\*(Aq,\\*(Aqgreen\\*(Aq} \n" |
| 3170 |
"\\& = (0xff0000, 0x0000ff, 0x00ff00);\n" |
| 3171 |
"\\& @folks[0, -1] = @folks[-1, 0];\n" |
| 3172 |
msgstr "" |
| 3173 |
|
| 3174 |
#. type: Plain text |
| 3175 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3176 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3177 |
#, fuzzy |
| 3178 |
#| msgid "These functions return a value equivalent to" |
| 3179 |
msgid "The previous assignments are exactly equivalent to" |
| 3180 |
msgstr "Funkcje te zwracają wartość równoważną z" |
| 3181 |
|
| 3182 |
#. type: Plain text |
| 3183 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3184 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3185 |
#, no-wrap |
| 3186 |
msgid "" |
| 3187 |
"\\& ($days[3], $days[4], $days[5]) = qw/Wed Thu Fri/;\n" |
| 3188 |
"\\& ($colors{\\*(Aqred\\*(Aq}, $colors{\\*(Aqblue\\*(Aq}, $colors{\\*(Aqgreen\\*(Aq})\n" |
| 3189 |
"\\& = (0xff0000, 0x0000ff, 0x00ff00);\n" |
| 3190 |
"\\& ($folks[0], $folks[-1]) = ($folks[-1], $folks[0]);\n" |
| 3191 |
msgstr "" |
| 3192 |
|
| 3193 |
#. type: Plain text |
| 3194 |
#: debian-trixie debian-unstable |
| 3195 |
msgid "" |
| 3196 |
"Since changing a slice changes the original array or hash that it's slicing, " |
| 3197 |
"a CW<\\*(C`foreach\\*(C'> construct will alter some--or even all--of the " |
| 3198 |
"values of the array or hash." |
| 3199 |
msgstr "" |
| 3200 |
|
| 3201 |
#. type: Plain text |
| 3202 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3203 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3204 |
#, no-wrap |
| 3205 |
msgid "" |
| 3206 |
"\\& foreach (@array[ 4 .. 10 ]) { s/peter/paul/ } \n" |
| 3207 |
"\\&\n" |
| 3208 |
"\\& foreach (@hash{qw[key1 key2]}) {\n" |
| 3209 |
"\\& s/^\\es+//; # trim leading whitespace\n" |
| 3210 |
"\\& s/\\es+$//; # trim trailing whitespace\n" |
| 3211 |
"\\& s/\\eb(\\ew)(\\ew*)\\eb/\\eu$1\\eL$2/g; # \"titlecase\" words\n" |
| 3212 |
"\\& }\n" |
| 3213 |
msgstr "" |
| 3214 |
|
| 3215 |
#. type: Plain text |
| 3216 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3217 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3218 |
msgid "" |
| 3219 |
"As a special exception, when you slice a list (but not an array or a hash), " |
| 3220 |
"if the list evaluates to empty, then taking a slice of that empty list will " |
| 3221 |
"always yield the empty list in turn. Thus:" |
| 3222 |
msgstr "" |
| 3223 |
|
| 3224 |
#. type: Plain text |
| 3225 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3226 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3227 |
#, no-wrap |
| 3228 |
msgid "" |
| 3229 |
"\\& @a = ()[0,1]; # @a has no elements\n" |
| 3230 |
"\\& @b = (@a)[0,1]; # @b has no elements\n" |
| 3231 |
"\\& @c = (sub{}-E<gt>())[0,1]; # @c has no elements\n" |
| 3232 |
"\\& @d = (\\*(Aqa\\*(Aq,\\*(Aqb\\*(Aq)[0,1]; # @d has two elements\n" |
| 3233 |
"\\& @e = (@d)[0,1,8,9]; # @e has four elements\n" |
| 3234 |
"\\& @f = (@d)[8,9]; # @f has two elements\n" |
| 3235 |
msgstr "" |
| 3236 |
|
| 3237 |
#. type: Plain text |
| 3238 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3239 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3240 |
msgid "" |
| 3241 |
"This makes it easy to write loops that terminate when a null list is " |
| 3242 |
"returned:" |
| 3243 |
msgstr "" |
| 3244 |
|
| 3245 |
#. type: Plain text |
| 3246 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3247 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3248 |
#, no-wrap |
| 3249 |
msgid "" |
| 3250 |
"\\& while ( ($home, $user) = (getpwent)[7,0] ) {\n" |
| 3251 |
"\\& printf \"%-8s %s\\en\", $user, $home;\n" |
| 3252 |
"\\& }\n" |
| 3253 |
msgstr "" |
| 3254 |
|
| 3255 |
#. type: Plain text |
| 3256 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3257 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3258 |
msgid "" |
| 3259 |
"As noted earlier in this document, the scalar sense of list assignment is " |
| 3260 |
"the number of elements on the right-hand side of the assignment. The null " |
| 3261 |
"list contains no elements, so when the password file is exhausted, the " |
| 3262 |
"result is 0, not 2." |
| 3263 |
msgstr "" |
| 3264 |
|
| 3265 |
#. type: Plain text |
| 3266 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3267 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3268 |
msgid "Slices in scalar context return the last item of the slice." |
| 3269 |
msgstr "" |
| 3270 |
|
| 3271 |
#. type: Plain text |
| 3272 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3273 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3274 |
#, no-wrap |
| 3275 |
msgid "" |
| 3276 |
"\\& @a = qw/first second third/;\n" |
| 3277 |
"\\& %h = (first =E<gt> \\*(AqA\\*(Aq, second =E<gt> \\*(AqB\\*(Aq);\n" |
| 3278 |
"\\& $t = @a[0, 1]; # $t is now \\*(Aqsecond\\*(Aq\n" |
| 3279 |
"\\& $u = @h{\\*(Aqfirst\\*(Aq, \\*(Aqsecond\\*(Aq}; # $u is now \\*(AqB\\*(Aq\n" |
| 3280 |
msgstr "" |
| 3281 |
|
| 3282 |
#. type: Plain text |
| 3283 |
#: debian-trixie debian-unstable |
| 3284 |
msgid "" |
| 3285 |
"If you're confused about why you use an '@' there on a hash slice instead of " |
| 3286 |
"a '%', think of it like this. The type of bracket (square or curly) governs " |
| 3287 |
"whether it's an array or a hash being looked at. On the other hand, the " |
| 3288 |
"leading symbol ('$' or '@') on the array or hash indicates whether you are " |
| 3289 |
"getting back a singular value (a scalar) or a plural one (a list)." |
| 3290 |
msgstr "" |
| 3291 |
|
| 3292 |
#. type: Plain text |
| 3293 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3294 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3295 |
msgid "I<Key/Value Hash Slices>" |
| 3296 |
msgstr "" |
| 3297 |
|
| 3298 |
#. type: IX |
| 3299 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3300 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3301 |
#, no-wrap |
| 3302 |
msgid "Key/Value Hash Slices" |
| 3303 |
msgstr "" |
| 3304 |
|
| 3305 |
#. type: Plain text |
| 3306 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3307 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3308 |
msgid "" |
| 3309 |
"Starting in Perl 5.20, a hash slice operation with the % symbol is a variant " |
| 3310 |
"of slice operation returning a list of key/value pairs rather than just " |
| 3311 |
"values:" |
| 3312 |
msgstr "" |
| 3313 |
|
| 3314 |
#. type: Plain text |
| 3315 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3316 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3317 |
#, no-wrap |
| 3318 |
msgid "" |
| 3319 |
"\\& %h = (blonk =E<gt> 2, foo =E<gt> 3, squink =E<gt> 5, bar =E<gt> 8);\n" |
| 3320 |
"\\& %subset = %h{\\*(Aqfoo\\*(Aq, \\*(Aqbar\\*(Aq}; # key/value hash slice\n" |
| 3321 |
"\\& # %subset is now (foo =E<gt> 3, bar =E<gt> 8)\n" |
| 3322 |
"\\& %removed = delete %h{\\*(Aqfoo\\*(Aq, \\*(Aqbar\\*(Aq};\n" |
| 3323 |
"\\& # %removed is now (foo =E<gt> 3, bar =E<gt> 8)\n" |
| 3324 |
"\\& # %h is now (blonk =E<gt> 2, squink =E<gt> 5)\n" |
| 3325 |
msgstr "" |
| 3326 |
|
| 3327 |
#. type: Plain text |
| 3328 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3329 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3330 |
msgid "" |
| 3331 |
"However, the result of such a slice cannot be localized or assigned to. " |
| 3332 |
"These are otherwise very much consistent with hash slices using the @ symbol." |
| 3333 |
msgstr "" |
| 3334 |
|
| 3335 |
#. type: Plain text |
| 3336 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3337 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3338 |
msgid "I<Index/Value Array Slices>" |
| 3339 |
msgstr "" |
| 3340 |
|
| 3341 |
#. type: IX |
| 3342 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3343 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3344 |
#, no-wrap |
| 3345 |
msgid "Index/Value Array Slices" |
| 3346 |
msgstr "" |
| 3347 |
|
| 3348 |
#. type: Plain text |
| 3349 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3350 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3351 |
msgid "" |
| 3352 |
"Similar to key/value hash slices (and also introduced in Perl 5.20), the % " |
| 3353 |
"array slice syntax returns a list of index/value pairs:" |
| 3354 |
msgstr "" |
| 3355 |
|
| 3356 |
#. type: Plain text |
| 3357 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3358 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3359 |
#, no-wrap |
| 3360 |
msgid "" |
| 3361 |
"\\& @a = \"a\"..\"z\";\n" |
| 3362 |
"\\& @list = %a[3,4,6];\n" |
| 3363 |
"\\& # @list is now (3, \"d\", 4, \"e\", 6, \"g\")\n" |
| 3364 |
"\\& @removed = delete %a[3,4,6]\n" |
| 3365 |
"\\& # @removed is now (3, \"d\", 4, \"e\", 6, \"g\")\n" |
| 3366 |
"\\& # @list[3,4,6] are now undef\n" |
| 3367 |
msgstr "" |
| 3368 |
|
| 3369 |
#. type: Plain text |
| 3370 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3371 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3372 |
msgid "" |
| 3373 |
"Note that calling CW<\\*(C`delete\\*(C'> on array values is strongly " |
| 3374 |
"discouraged." |
| 3375 |
msgstr "" |
| 3376 |
|
| 3377 |
#. type: IX |
| 3378 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3379 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3380 |
#, no-wrap |
| 3381 |
msgid "Typeglobs and Filehandles" |
| 3382 |
msgstr "" |
| 3383 |
|
| 3384 |
#. type: IX |
| 3385 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3386 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3387 |
#, no-wrap |
| 3388 |
msgid "typeglob filehandle *" |
| 3389 |
msgstr "" |
| 3390 |
|
| 3391 |
#. type: Plain text |
| 3392 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3393 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3394 |
#, fuzzy |
| 3395 |
#| msgid "" |
| 3396 |
#| "Perl uses an internal type called I<typeglob>. It stores all symbol table " |
| 3397 |
#| "entries. The type prefix for typeglob is CW<*>, since it represents all " |
| 3398 |
#| "types. It used to be the preferred way to pass arrays and associative " |
| 3399 |
#| "arrays by reference to a function, but real references exist these days, " |
| 3400 |
#| "so this is rarely needed." |
| 3401 |
msgid "" |
| 3402 |
"Perl uses an internal type called a I<typeglob> to hold an entire symbol " |
| 3403 |
"table entry. The type prefix of a typeglob is a CW<\\*(C`*\\*(C'>, because " |
| 3404 |
"it represents all types. This used to be the preferred way to pass arrays " |
| 3405 |
"and hashes by reference into a function, but now that we have real " |
| 3406 |
"references, this is seldom needed." |
| 3407 |
msgstr "" |
| 3408 |
"Perl posługuje się wewnętrznym typem zwanym I<typeglob>. Przechowuje w nim " |
| 3409 |
"wszystkie zapisy tablicy symboli. Przedrostkiem typu typeglob jest CW<*>, " |
| 3410 |
"gdyż reprezentuje on wszystkie typy. Był on zalecanym sposobem przekazywania " |
| 3411 |
"tablic i tablic asocjacyjnych przez odwołanie do funkcji, ale obecnie " |
| 3412 |
"istnieją prawdziwe odwołania, więc jest to rzadko potrzebne." |
| 3413 |
|
| 3414 |
#. type: Plain text |
| 3415 |
#: debian-trixie debian-unstable |
| 3416 |
#, fuzzy |
| 3417 |
#| msgid "" |
| 3418 |
#| "The primary use of typeglob in modern Perl is to create symbol table " |
| 3419 |
#| "synonyms. This assignment:" |
| 3420 |
msgid "" |
| 3421 |
"The main use of typeglobs in modern Perl is create symbol table aliases. " |
| 3422 |
"This assignment:" |
| 3423 |
msgstr "" |
| 3424 |
"Podstawowym zastosowaniem typeglob we współczesnym Perlu jest tworzenie " |
| 3425 |
"synonimów tablicy symboli. To przypisanie:" |
| 3426 |
|
| 3427 |
#. type: Plain text |
| 3428 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3429 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3430 |
#, fuzzy, no-wrap |
| 3431 |
#| msgid "\\& *cos = *other;" |
| 3432 |
msgid "\\& *this = *that;\n" |
| 3433 |
msgstr "\\& *cos = *inne;" |
| 3434 |
|
| 3435 |
#. type: Plain text |
| 3436 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3437 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3438 |
#, fuzzy |
| 3439 |
#| msgid "" |
| 3440 |
#| "makes CW<$cos> an alias for CW<$other>, CW<@cos> an alias for CW<@other>, " |
| 3441 |
#| "CW<%cos> an alias for CW<%other>, &cos an alias for &other, etc. It's " |
| 3442 |
#| "much safer to use a reference. This:" |
| 3443 |
msgid "" |
| 3444 |
"makes CW<$this> an alias for CW<$that>, CW<@this> an alias for CW<@that>, " |
| 3445 |
"CW<%this> an alias for CW<%that>, &this an alias for &that, etc. Much safer " |
| 3446 |
"is to use a reference. This:" |
| 3447 |
msgstr "" |
| 3448 |
"robi CW<$cos> synonimem (aliasem) dla CW<$inne>, CW<@cos> jest aliasem dla " |
| 3449 |
"CW<@inne>, CW<%cos> aliasem dla CW<%inne>, &cos aliasem dla &inne, itd. Dużo " |
| 3450 |
"bezpieczniej jest użyć odwołania (wskazania). To:" |
| 3451 |
|
| 3452 |
#. type: Plain text |
| 3453 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3454 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3455 |
#, no-wrap |
| 3456 |
msgid "\\& local *Here::blue = \\e$There::green;\n" |
| 3457 |
msgstr "\\& local *Tutaj::niebieski = \\e$Tam::zielony;\n" |
| 3458 |
|
| 3459 |
#. type: Plain text |
| 3460 |
#: debian-trixie debian-unstable |
| 3461 |
#, fuzzy |
| 3462 |
#| msgid "" |
| 3463 |
#| "temporarily makes CW<$Here::blue> an alias for CW<$There::green>, but " |
| 3464 |
#| "does not make CW<@Here::blue> an alias for CW<@There::green>, or " |
| 3465 |
#| "CW<%Here::blue> an alias for CW<%There::green>, etc. See the I<Symbol " |
| 3466 |
#| "Tables> section of the I<perlmod>(1) manual page for more examples. " |
| 3467 |
#| "Although it may look strange, this is the basis of the entire module " |
| 3468 |
#| "import/export system." |
| 3469 |
msgid "" |
| 3470 |
"temporarily makes CW<$Here::blue> an alias for CW<$There::green>, but " |
| 3471 |
"doesn't make CW<@Here::blue> an alias for CW<@There::green>, or " |
| 3472 |
"CW<%Here::blue> an alias for \\&CW<%There::green>, etc. See \"Symbol " |
| 3473 |
"Tables\" in perlmod for more examples of this. Strange though this may " |
| 3474 |
"seem, this is the basis for the whole module import/export system." |
| 3475 |
msgstr "" |
| 3476 |
"tymczasowo czyni CW<$Tutaj::niebieski> aliasem dla CW<$Tam::zielony>, ale " |
| 3477 |
"nie robi CW<@Tutaj::niebieski> aliasem dla CW<@Tam::zielony>, czy " |
| 3478 |
"CW<%Tutaj::niebieski> aliasem dla CW<%Tam::zielony>, itd. W sekcji I<Symbol " |
| 3479 |
"Tables> podręcznika I<perlmod>(1) znajdziesz więcej takich przykładów. Mimo, " |
| 3480 |
"że może to wyglądać dziwnie, jest to podstawą całego systemu importu/exportu " |
| 3481 |
"modułów." |
| 3482 |
|
| 3483 |
#. type: Plain text |
| 3484 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3485 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3486 |
#, fuzzy |
| 3487 |
#| msgid "" |
| 3488 |
#| "Another use for typeglob is to pass file handles to functions or create " |
| 3489 |
#| "new handles. If you need to use typeglob to save a file handle, do it " |
| 3490 |
#| "like this:" |
| 3491 |
msgid "" |
| 3492 |
"Another use for typeglobs is to pass filehandles into a function or to " |
| 3493 |
"create new filehandles. If you need to use a typeglob to save away a " |
| 3494 |
"filehandle, do it this way:" |
| 3495 |
msgstr "" |
| 3496 |
"Innym zastosowaniem typeglob jest przesyłanie uchwytów plików do funkcji lub " |
| 3497 |
"tworzenie nowych uchwytów. Jeżeli potrzebujesz posłużyć się typeglob, by " |
| 3498 |
"zachować uchwyt pliku, zrób to tak:" |
| 3499 |
|
| 3500 |
#. type: Plain text |
| 3501 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3502 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3503 |
#, no-wrap |
| 3504 |
msgid "\\& $fh = *STDOUT;\n" |
| 3505 |
msgstr "\\& $fh = *STDOUT;\n" |
| 3506 |
|
| 3507 |
#. type: Plain text |
| 3508 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3509 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3510 |
msgid "or perhaps as a real reference, like this:" |
| 3511 |
msgstr "albo może jako prawdziwe odwołanie, jak to:" |
| 3512 |
|
| 3513 |
#. type: Plain text |
| 3514 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3515 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3516 |
#, no-wrap |
| 3517 |
msgid "\\& $fh = \\e*STDOUT;\n" |
| 3518 |
msgstr "\\& $fh = \\e*STDOUT;\n" |
| 3519 |
|
| 3520 |
#. type: Plain text |
| 3521 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3522 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3523 |
#, fuzzy |
| 3524 |
#| msgid "" |
| 3525 |
#| "See the B<perlsub>(1) manual page for examples of using typeglobs as " |
| 3526 |
#| "indirect filehandles in functions." |
| 3527 |
msgid "" |
| 3528 |
"See perlsub for examples of using these as indirect filehandles in functions." |
| 3529 |
msgstr "" |
| 3530 |
"W podręczniku B<perlsub>(1) znajdziesz przykłady zastosowania typeglob jako " |
| 3531 |
"pośrednich uchwytów plików w funkcjach." |
| 3532 |
|
| 3533 |
#. type: Plain text |
| 3534 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3535 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3536 |
#, fuzzy |
| 3537 |
#| msgid "" |
| 3538 |
#| "Typeglobs are also a way to create local filehandles using the I<local()> " |
| 3539 |
#| "operator. They then exist until their block is exited, but can be re-" |
| 3540 |
#| "sent. For example:" |
| 3541 |
msgid "" |
| 3542 |
"Typeglobs are also a way to create a local filehandle using the B<local()> " |
| 3543 |
"operator. These last until their block is exited, but may be passed back. " |
| 3544 |
"For example:" |
| 3545 |
msgstr "" |
| 3546 |
"Typeglob są również sposobem na tworzenie lokalnych uchwytów plików przy " |
| 3547 |
"użyciu operatora I<local()>. Istnieją wówczas aż do wyjścia z ich bloku, ale " |
| 3548 |
"mogą być przesłane powtórnie. Na przykład:" |
| 3549 |
|
| 3550 |
#. type: Plain text |
| 3551 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3552 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3553 |
#, fuzzy, no-wrap |
| 3554 |
#| msgid "\\& sub newopen { \\& my $path = shift; \\& local *FH; # dumb! \\& open (FH, $path) or return undef; \\& return *FH; \\& } \\& $fh = newopen('/etc/passwd');" |
| 3555 |
msgid "" |
| 3556 |
"\\& sub newopen {\n" |
| 3557 |
"\\& my $path = shift;\n" |
| 3558 |
"\\& local *FH; # not my!\n" |
| 3559 |
"\\& open (FH, $path) or return undef;\n" |
| 3560 |
"\\& return *FH;\n" |
| 3561 |
"\\& }\n" |
| 3562 |
"\\& $fh = newopen(\\*(Aq/etc/passwd\\*(Aq);\n" |
| 3563 |
msgstr "\\& sub newopen { \\& my $path = shift; \\& local *FH; # nie my! \\& open (FH, $path) or return undef; \\& return *FH; \\& } \\& $fh = newopen('/etc/passwd');" |
| 3564 |
|
| 3565 |
#. type: Plain text |
| 3566 |
#: debian-trixie debian-unstable |
| 3567 |
#, fuzzy |
| 3568 |
#| msgid "" |
| 3569 |
#| "Now that we have the *foo{\\s-1SOMETHING\\s0} notation, typeglobs are not " |
| 3570 |
#| "used as often to manipulate filehandles, although they are still " |
| 3571 |
#| "necessary to pass a completely new file or directory handle to or from a " |
| 3572 |
#| "function. This is because *\\s-1HANDLE\\s0{\\s-1IO\\s0} only works if " |
| 3573 |
#| "\\s-1HANDLE\\s0 has already been used as a handle. In other words, " |
| 3574 |
#| "*\\s-1FH\\s0 can be used to create new symbol table entries, but " |
| 3575 |
#| "*foo{\\s-1SOMETHING\\s0} cannot." |
| 3576 |
msgid "" |
| 3577 |
"Now that we have the CW<*foo{THING}> notation, typeglobs aren't used as much " |
| 3578 |
"for filehandle manipulations, although they're still needed to pass brand " |
| 3579 |
"new file and directory handles into or out of functions. That's because " |
| 3580 |
"\\&CW<*HANDLE{IO}> only works if HANDLE has already been used as a handle. " |
| 3581 |
"In other words, CW<*FH> must be used to create new symbol table entries; " |
| 3582 |
"\\&CW<*foo{THING}> cannot. When in doubt, use CW<*FH>." |
| 3583 |
msgstr "" |
| 3584 |
"Obecnie, gdy dysponujemy notacją *foo{\\s-1COŚ\\s0}, typeglob nie są tak " |
| 3585 |
"często używane do manipulowania uchwytami plików, chociaż wciąż są konieczne " |
| 3586 |
"do przesłania całkiem nowego uchwytu pliku czy katalogu do funkcji czy z " |
| 3587 |
"funkcji. Wynika to stąd, że *\\s-1UCHWYT\\s0{\\s-1IO\\s0} działa tylko " |
| 3588 |
"jeśli \\s-1UCHWYT\\s0 był już użyty jako uchwyt. Inaczej mówiąc, do " |
| 3589 |
"tworzenia nowych wpisów w tablicy symboli może posłużyć *\\s-1FH\\s0, ale " |
| 3590 |
"nie *foo{\\s-1COŚ\\s0}." |
| 3591 |
|
| 3592 |
#. type: Plain text |
| 3593 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3594 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3595 |
msgid "" |
| 3596 |
"All functions that are capable of creating filehandles (B<open()>, " |
| 3597 |
"\\&B<opendir()>, B<pipe()>, B<socketpair()>, B<sysopen()>, B<socket()>, and " |
| 3598 |
"B<accept()>) automatically create an anonymous filehandle if the handle " |
| 3599 |
"passed to them is an uninitialized scalar variable. This allows the " |
| 3600 |
"constructs such as CW<\\*(C`open(my $fh, ...)\\*(C'> and CW<\\*(C`open(local " |
| 3601 |
"$fh,...)\\*(C'> to be used to create filehandles that will conveniently be " |
| 3602 |
"closed automatically when the scope ends, provided there are no other " |
| 3603 |
"references to them. This largely eliminates the need for typeglobs when " |
| 3604 |
"opening filehandles that must be passed around, as in the following example:" |
| 3605 |
msgstr "" |
| 3606 |
|
| 3607 |
#. type: Plain text |
| 3608 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3609 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3610 |
#, no-wrap |
| 3611 |
msgid "" |
| 3612 |
"\\& sub myopen {\n" |
| 3613 |
"\\& open my $fh, \"@_\"\n" |
| 3614 |
"\\& or die \"Can\\*(Aqt open \\*(Aq@_\\*(Aq: $!\";\n" |
| 3615 |
"\\& return $fh;\n" |
| 3616 |
"\\& }\n" |
| 3617 |
"\\&\n" |
| 3618 |
"\\& {\n" |
| 3619 |
"\\& my $f = myopen(\"E<lt>/etc/motd\");\n" |
| 3620 |
"\\& print E<lt>$fE<gt>;\n" |
| 3621 |
"\\& # $f implicitly closed here\n" |
| 3622 |
"\\& }\n" |
| 3623 |
msgstr "" |
| 3624 |
|
| 3625 |
#. type: Plain text |
| 3626 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3627 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3628 |
msgid "" |
| 3629 |
"Note that if an initialized scalar variable is used instead the result is " |
| 3630 |
"different: CW<\\*(C`my $fh=\\*(Aqzzz\\*(Aq; open($fh, ...)\\*(C'> is " |
| 3631 |
"equivalent to CW<\\*(C`open( *{\\*(Aqzzz\\*(Aq}, ...)\\*(C'>. " |
| 3632 |
"\\&CW<\\*(C`use strict \\*(Aqrefs\\*(Aq\\*(C'> forbids such practice." |
| 3633 |
msgstr "" |
| 3634 |
|
| 3635 |
#. type: Plain text |
| 3636 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3637 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3638 |
#, fuzzy |
| 3639 |
#| msgid "" |
| 3640 |
#| "Another method for creating anonymous file handles is to use the \\s-1IO::" |
| 3641 |
#| "\\s0Handle module. These modules have the advantage of not hiding " |
| 3642 |
#| "different types of the same name during I<local()>. There is an example " |
| 3643 |
#| "at the end of the CW<open()> description in the B<perlfunc>(1) manual " |
| 3644 |
#| "page." |
| 3645 |
msgid "" |
| 3646 |
"Another way to create anonymous filehandles is with the Symbol module or " |
| 3647 |
"with the IO::Handle module and its ilk. These modules have the advantage of " |
| 3648 |
"not hiding different types of the same name during the B<local()>. See the " |
| 3649 |
"bottom of \"open\" in perlfunc for an example." |
| 3650 |
msgstr "" |
| 3651 |
"Inną metodą tworzenia anonimowych uchwytów plików jest wykorzystanie modułu " |
| 3652 |
"\\s-1IO::\\s0Handle. Zaletą tych modułów jest nieukrywanie różnych typów " |
| 3653 |
"tej samej nazwy podczas I<local()>. Na końcu opisu CW<open()> w podręczniku " |
| 3654 |
"B<perlfunc>(1) zamieszczono odpowiedni przykład." |
| 3655 |
|
| 3656 |
#. type: IX |
| 3657 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 3658 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3659 |
#, no-wrap |
| 3660 |
msgid "SEE ALSO" |
| 3661 |
msgstr "ZOBACZ TAKŻE" |
| 3662 |
|
| 3663 |
#. type: Plain text |
| 3664 |
#: debian-trixie debian-unstable |
| 3665 |
msgid "" |
| 3666 |
"See perlvar for a description of Perl's built-in variables and a discussion " |
| 3667 |
"of legal variable names. See perlref, perlsub, and \"Symbol Tables\" in " |
| 3668 |
"perlmod for more discussion on typeglobs and the CW<*foo{THING}> syntax." |
| 3669 |
msgstr "" |
| 3670 |
|
| 3671 |
#. type: TH |
| 3672 |
#: debian-unstable |
| 3673 |
#, no-wrap |
| 3674 |
msgid "2025-11-16" |
| 3675 |
msgstr "16 listopada 2025 r." |
| 3676 |
|
| 3677 |
#. type: TH |
| 3678 |
#: fedora-44 opensuse-leap-16-1 opensuse-tumbleweed |
| 3679 |
#, no-wrap |
| 3680 |
msgid "2026-03-09" |
| 3681 |
msgstr "9 marca 2026 r." |
| 3682 |
|
| 3683 |
#. type: TH |
| 3684 |
#: fedora-44 opensuse-leap-16-1 opensuse-tumbleweed |
| 3685 |
#, no-wrap |
| 3686 |
msgid "perl v5.42.1" |
| 3687 |
msgstr "perl v5.42.1" |
| 3688 |
|
| 3689 |
#. type: Plain text |
| 3690 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3691 |
#: opensuse-tumbleweed |
| 3692 |
#, fuzzy |
| 3693 |
#| msgid "" |
| 3694 |
#| "Values are usually assigned to a name (or named reference). The first " |
| 3695 |
#| "character of the name tells what kind of data structure it refers to. The " |
| 3696 |
#| "rest of the name tells the specific value that the name refers to. It " |
| 3697 |
#| "usually consists of a single I<identifier>, that is, a string starting " |
| 3698 |
#| "with a letter or underscore and containing letters, underscores, and " |
| 3699 |
#| "digits. In some cases, it may be a sequence of identifiers, separated by " |
| 3700 |
#| "CW<::> (or by CW<'>, but that is not recommended). All but the last one " |
| 3701 |
#| "are interpreted as package names, indicating the namespaces in which to " |
| 3702 |
#| "search for the last identifier (see the CW<Packages> section of the " |
| 3703 |
#| "I<perlmod>(1) manual page for details). It is possible to replace a " |
| 3704 |
#| "simple identifier with an expression that creates a reference to the " |
| 3705 |
#| "value at runtime; this is described in detail below and in the " |
| 3706 |
#| "I<perlref>(1) manual page." |
| 3707 |
msgid "" |
| 3708 |
"Values are usually referred to by name, or through a named reference. The " |
| 3709 |
"first character of the name tells you to what sort of data structure it " |
| 3710 |
"refers. This character is called a \"sigil\". The rest of the name tells " |
| 3711 |
"you the particular value to which it refers. Usually this name is a single " |
| 3712 |
"I<identifier>, that is, a string beginning with a letter or underscore, and " |
| 3713 |
"containing letters, underscores, and digits. In some cases, it may be a " |
| 3714 |
"chain of identifiers, separated by CW<\\*(C`::\\*(C'> (or by the deprecated " |
| 3715 |
"CW<\\*(C`\\*(Aq\\*(C'>); all but the last are interpreted as names of " |
| 3716 |
"packages, to locate the namespace in which to look up the final identifier " |
| 3717 |
"(see \"Packages\" in perlmod for details). For a more in-depth discussion " |
| 3718 |
"on identifiers, see \"Identifier parsing\". It\\*(Aqs possible to " |
| 3719 |
"substitute for a simple identifier, an expression that produces a reference " |
| 3720 |
"to the value at runtime. This is described in more detail below and in " |
| 3721 |
"perlref. It is legal, but not recommended, to separate a variable\\*(Aqs " |
| 3722 |
"sigil from its name by space and/or tab characters." |
| 3723 |
msgstr "" |
| 3724 |
"Wartości są zwykle przypisane do nazwy (lub nazwanego odwołania). Pierwszy " |
| 3725 |
"znak nazwy mówi o tym, do jakiego rodzaju struktury danych się ona odnosi. " |
| 3726 |
"Reszta nazwy określa konkretną wartość, do której odnosi się nazwa. " |
| 3727 |
"Najczęściej składa się ona z pojedynczego I<identyfikatora>, to znaczy, " |
| 3728 |
"łańcucha rozpoczynającego się literą lub znakiem podkreślenia i " |
| 3729 |
"zawierającego litery, podkreślenia i cyfry. W niektórych przypadkach może " |
| 3730 |
"być ciągiem identyfikatorów, rozdzielonych przez CW<::> (lub przez CW<'>, " |
| 3731 |
"ale nie jest to polecane). Wszystkie oprócz ostatniego interpretowane są " |
| 3732 |
"jako nazwy pakietów, wskazując przestrzenie nazw, w których będzie " |
| 3733 |
"wyszukiwany ostatni identyfikator (szczegóły znajdziesz w sekcji " |
| 3734 |
"CW<Packages> podręcznika I<perlmod>(1)). Możliwe jest zastąpienie prostego " |
| 3735 |
"identyfikatora wyrażeniem, które w czasie wykonania tworzy odwołanie do " |
| 3736 |
"wartości; jest to opisane szczegółowo poniżej oraz na stronie I<perlref>(1) " |
| 3737 |
"podręcznika." |
| 3738 |
|
| 3739 |
#. type: IX |
| 3740 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3741 |
#: opensuse-tumbleweed |
| 3742 |
#, fuzzy, no-wrap |
| 3743 |
#| msgid "Modifiers" |
| 3744 |
msgid "identifier sigil" |
| 3745 |
msgstr "Modyfikatory" |
| 3746 |
|
| 3747 |
#. type: Plain text |
| 3748 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3749 |
#: opensuse-tumbleweed |
| 3750 |
#, fuzzy |
| 3751 |
#| msgid "" |
| 3752 |
#| "There are also special variables whose names do not follow the above " |
| 3753 |
#| "rules, so that they do not accidentally clash with one of your regular " |
| 3754 |
#| "variables. Strings that match the parenthesized parts of a regular " |
| 3755 |
#| "expression are saved with names that contain only digits after the CW<$> " |
| 3756 |
#| "character (see the I<perlop>(1) and I<perlre>(1) documentation pages). " |
| 3757 |
#| "Additionally, several special variables that provide access to Perl's " |
| 3758 |
#| "internals have names that contain punctuation characters (see the " |
| 3759 |
#| "I<perlvar>(1) documentation pages)." |
| 3760 |
msgid "" |
| 3761 |
"Perl also has its own built-in variables whose names don\\*(Aqt follow these " |
| 3762 |
"rules. They have strange names so they don\\*(Aqt accidentally collide with " |
| 3763 |
"one of your normal variables. Strings that match parenthesized parts of a " |
| 3764 |
"regular expression are saved under names containing only digits after the " |
| 3765 |
"CW<\\*(C`$\\*(C'> (see perlop and perlre). In addition, several special " |
| 3766 |
"variables that provide windows into the inner working of Perl have names " |
| 3767 |
"containing punctuation characters. These are documented in perlvar." |
| 3768 |
msgstr "" |
| 3769 |
"Istnieją również zmienne specjalne, których nazwy nie przestrzegają " |
| 3770 |
"powyższych reguł, po to by nie kolidowały przypadkowo z którąś z twych " |
| 3771 |
"zwykłych zmiennych. Łańcuchy, które pasują do objętych nawiasami okrągłymi " |
| 3772 |
"części wyrażenia regularnego zachowywane są pod nazwami zawierającymi tylko " |
| 3773 |
"cyfry po znaku CW<$> (patrz strony I<perlop>(1) i I<perlre>(1) " |
| 3774 |
"dokumentacji). Dodatkowo, kilka zmiennych specjalnych, umożliwiających " |
| 3775 |
"dostęp do wewnętrznych rozwiązań Perla, posiada nazwy zawierające znaki " |
| 3776 |
"przestankowe (zobacz strony I<perlvar>(1) dokumentacji)." |
| 3777 |
|
| 3778 |
#. type: Plain text |
| 3779 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3780 |
#: opensuse-tumbleweed |
| 3781 |
#, fuzzy |
| 3782 |
#| msgid "" |
| 3783 |
#| "Scalar values always have names starting with the character \\*(L'$" |
| 3784 |
#| "\\*(R', even when they refer to a scalar that is part of an array. This " |
| 3785 |
#| "works similarly to the English article \\*(L\"the\\*(R\". So we have:" |
| 3786 |
msgid "" |
| 3787 |
"Scalar values are always named with the sigil CW<\\*(Aq$\\*(Aq>, even when " |
| 3788 |
"referring to a scalar that is part of an array or a hash. The CW<\\*(Aq$" |
| 3789 |
"\\*(Aq> symbol works semantically like the English word \"the\" in that it " |
| 3790 |
"indicates a single value is expected." |
| 3791 |
msgstr "" |
| 3792 |
"Wartości skalarne zawsze noszą nazwy rozpoczynające się znakiem \\*(L'$" |
| 3793 |
"\\*(R', nawet, gdy odnoszą się do skalara będącego częścią tablicy. Działa " |
| 3794 |
"to podobnie jak angielski przedimek \\*(L\"the\\*(R\". A zatem mamy:" |
| 3795 |
|
| 3796 |
#. type: Plain text |
| 3797 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3798 |
#: opensuse-tumbleweed |
| 3799 |
msgid "" |
| 3800 |
"Entire arrays (and slices of arrays and hashes) are denoted by the sigil " |
| 3801 |
"\\&CW<\\*(Aq@\\*(Aq>, which works much as the word \"these\" or \"those\" " |
| 3802 |
"does in English, in that it indicates multiple values are expected." |
| 3803 |
msgstr "" |
| 3804 |
|
| 3805 |
#. type: Plain text |
| 3806 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3807 |
#: opensuse-tumbleweed |
| 3808 |
#, fuzzy |
| 3809 |
#| msgid "and entire associative arrays (hashes) are denoted by \\*(L'%':" |
| 3810 |
msgid "Entire hashes are denoted by the sigil \\*(Aq%\\*(Aq:" |
| 3811 |
msgstr "zaś całe tablice asocjacyjne (hasze) oznaczane są przez \\*(L'%':" |
| 3812 |
|
| 3813 |
#. type: Plain text |
| 3814 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3815 |
#: opensuse-tumbleweed |
| 3816 |
#, fuzzy |
| 3817 |
#| msgid "" |
| 3818 |
#| "Additionally, procedures are named using a leading \\*(L'&\\*(R', " |
| 3819 |
#| "although this is optional if not ambiguous (as in English it is often " |
| 3820 |
#| "redundant to use the word \\*(L\"do\\*(R\")). Symbol table elements may " |
| 3821 |
#| "be named using a leading \\*(L'*\\*(R', but you don't need to worry about " |
| 3822 |
#| "that for now." |
| 3823 |
msgid "" |
| 3824 |
"In addition, subroutines are named with an initial sigil CW<\\*(Aq&\\*(Aq>, " |
| 3825 |
"though this is optional when unambiguous, just as the word \"do\" is often " |
| 3826 |
"redundant in English. Symbol table entries can be named with an initial " |
| 3827 |
"CW<\\*(Aq*\\*(Aq>, but you don\\*(Aqt really care about that yet (if " |
| 3828 |
"ever :-)." |
| 3829 |
msgstr "" |
| 3830 |
"Dodatkowo, procedury nazywane są z użyciem początkowego \\*(L'&\\*(R', choć " |
| 3831 |
"jest to opcjonalne, jeśli nie jest dwuznaczne (tak jak w języku angielskim " |
| 3832 |
"często zbyteczne jest użycie słowa\\*(L\"do\\*(R\"). Elementy tablicy " |
| 3833 |
"symboli mogą być nazywane z użyciem początkowego \\*(L'*\\*(R', ale na razie " |
| 3834 |
"nie musisz się tym zajmować." |
| 3835 |
|
| 3836 |
#. type: Plain text |
| 3837 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3838 |
#: opensuse-tumbleweed |
| 3839 |
#, fuzzy |
| 3840 |
#| msgid "" |
| 3841 |
#| "Each type of variable has its own namespace. You can use the same name " |
| 3842 |
#| "for a scalar variable, an array, or an associative array (or a " |
| 3843 |
#| "filehandle, procedure name, or label) without fear of conflict. This " |
| 3844 |
#| "means that CW<$foo> and CW<@foo> are two different variables. It also " |
| 3845 |
#| "means that CW<$foo[1]> is part of the array CW<@foo>, not part of the " |
| 3846 |
#| "scalar CW<$foo>. This may seem a bit strange, but that's how it is, " |
| 3847 |
#| "because it is strange." |
| 3848 |
msgid "" |
| 3849 |
"Every variable type has its own namespace, as do several non-variable " |
| 3850 |
"identifiers. This means that you can, without fear of conflict, use the " |
| 3851 |
"same name for a scalar variable, an array, or a hash--or, for that matter, " |
| 3852 |
"for a filehandle, a directory handle, a subroutine name, a format name, or a " |
| 3853 |
"label. This means that CW<$foo> and CW<@foo> are two different variables. " |
| 3854 |
"It also means that CW<$foo[1]> is a part of CW<@foo>, not a part of " |
| 3855 |
"CW<$foo>. This may seem a bit weird, but that\\*(Aqs okay, because it is " |
| 3856 |
"weird." |
| 3857 |
msgstr "" |
| 3858 |
"Każdy typ zmiennych ma swoją własną przestrzeń nazw. Możesz, bez obawy o " |
| 3859 |
"konflikt, używać tej samej nazwy dla zmiennej skalarnej, tablicy czy tablicy " |
| 3860 |
"asocjacyjnej (lub uchwytu pliku, nazwy procedury czy etykiety). Oznacza to, " |
| 3861 |
"że CW<$foo> i CW<@foo> są dwoma różnymi zmiennymi. Znaczy to też, że " |
| 3862 |
"CW<$foo[1]> jest częścią tablicy CW<@foo>, nie zaś częścią skalara CW<$foo>. " |
| 3863 |
"Może się to wydawać trochę dziwne, ale tak ma być, gdyż to jest dziwne." |
| 3864 |
|
| 3865 |
#. type: Plain text |
| 3866 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3867 |
#: opensuse-tumbleweed |
| 3868 |
#, fuzzy |
| 3869 |
#| msgid "" |
| 3870 |
#| "Since variable and array references always start with \\&'$', '@' or '%', " |
| 3871 |
#| "the words \\*(L\"reserved\\*(R\" are not truly reserved for variable " |
| 3872 |
#| "names. (However, \\s-1ARE\\s0 reserved for labels and filehandles, which " |
| 3873 |
#| "do not have a special leading character. You cannot, for example, use a " |
| 3874 |
#| "filehandle named \\*(L\"log\\*(R\". Hint: you can write " |
| 3875 |
#| "CW<open(LOG,'logfile')> instead of CW<open(log,'logfile')>. Using " |
| 3876 |
#| "uppercase filehandle names also improves readability and prevents " |
| 3877 |
#| "conflicts with future reserved words. Case IS significant\\*(--" |
| 3878 |
#| "\"\\s-1FOO\\s0\\*(R\", \\*(L\"Foo\\*(R\" and \\*(L\"foo\\*(R\" are " |
| 3879 |
#| "completely different names. Names starting with a letter or underscore " |
| 3880 |
#| "can also contain digits and underscores." |
| 3881 |
msgid "" |
| 3882 |
"Because variable references always start with the sigils CW<\\*(Aq$\\*(Aq>, " |
| 3883 |
"CW<\\*(Aq@\\*(Aq>, or \\&CW<\\*(Aq%\\*(Aq>, the \"reserved\" words " |
| 3884 |
"aren\\*(Aqt in fact reserved with respect to variable names. They I<are> " |
| 3885 |
"reserved with respect to labels and filehandles, however, which don\\*(Aqt " |
| 3886 |
"have an initial special character. You can\\*(Aqt have a filehandle named " |
| 3887 |
"\"log\", for instance. Hint: you could say \\&CW<\\*(C`open(LOG," |
| 3888 |
"\\*(Aqlogfile\\*(Aq)\\*(C'> rather than CW<\\*(C`open(log," |
| 3889 |
"\\*(Aqlogfile\\*(Aq)\\*(C'>. Using uppercase filehandles also improves " |
| 3890 |
"readability and protects you from conflict with future reserved words. Case " |
| 3891 |
"I<is> significant--\"FOO\", \"Foo\", and \"foo\" are all different names. " |
| 3892 |
"Names that start with a letter or underscore may also contain digits and " |
| 3893 |
"underscores." |
| 3894 |
msgstr "" |
| 3895 |
"Ponieważ odniesienia do zmiennych i tablic zawsze rozpoczynają się od " |
| 3896 |
"\\&'$', '@' lub '%', to słowa \\*(L\"zarezerwowane\\*(R\" nie są naprawdę " |
| 3897 |
"zarezerwowane w odniesieniu do nazw zmiennych. (Jednak \\s-1SĄ\\s0 one " |
| 3898 |
"zarezerwowane w odniesieniu do etykiet i uchwytów plików, które nie " |
| 3899 |
"posiadają specjalnego początkowego znaku. Nie możesz, na przykład, użyć " |
| 3900 |
"uchwytu pliku o nazwie \\*(L\"log\\*(R\". Wskazówka: możesz napisać " |
| 3901 |
"CW<open(LOG,'logfile')> zamiast CW<open(log,'logfile')>. Użycie nazw " |
| 3902 |
"uchwytów plików złożonych z dużych liter poprawia również czytelność i " |
| 3903 |
"chroni przed konfliktami z przyszłymi słowami zastrzeżonymi. Wielkość liter " |
| 3904 |
"JEST znacząca\\*(--\"\\s-1FOO\\s0\\*(R\", \\*(L\"Foo\\*(R\" oraz " |
| 3905 |
"\\*(L\"foo\\*(R\" są zupełnie innymi nazwami. Nazwy rozpoczynające się " |
| 3906 |
"literą lub znakiem podkreślenia mogą zawierać również cyfry i podkreślenia." |
| 3907 |
|
| 3908 |
#. type: Plain text |
| 3909 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3910 |
#: opensuse-tumbleweed |
| 3911 |
#, fuzzy |
| 3912 |
#| msgid "" |
| 3913 |
#| "Names starting with a digit can only contain digits. Names that do not " |
| 3914 |
#| "start with a letter, underscore, or digit are limited to a single " |
| 3915 |
#| "character, such as CW<$%> or CW<$$>. (Most of these single-character " |
| 3916 |
#| "names have a predefined meaning to Perl. For example, CW<$$> is the " |
| 3917 |
#| "current process identifier.)" |
| 3918 |
msgid "" |
| 3919 |
"Names that start with a digit may contain only more digits. Names that do " |
| 3920 |
"not start with a letter, underscore, digit or a caret are limited to one " |
| 3921 |
"character, e.g., CW<$%> or \\&CW<$$>. (Most of these one character names " |
| 3922 |
"have a predefined significance to Perl. For instance, CW<$$> is the current " |
| 3923 |
"process id. And all such names are reserved for Perl\\*(Aqs possible use.)" |
| 3924 |
msgstr "" |
| 3925 |
"Nazwy rozpoczynające się cyfrą mogą zawierać tylko cyfry. Nazwy, które nie " |
| 3926 |
"zaczynają się od litery, podkreślenia ani cyfry ograniczone są do " |
| 3927 |
"pojedynczego znaku, np. CW<$%> czy CW<$$>. (Większość z tych jednoznakowych " |
| 3928 |
"nazw ma predefiniowane znaczenie dla Perla. Na przykład, CW<$$> jest " |
| 3929 |
"identyfikatorem bieżącego procesu.)" |
| 3930 |
|
| 3931 |
#. type: Plain text |
| 3932 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3933 |
#: opensuse-tumbleweed |
| 3934 |
msgid "" |
| 3935 |
"Up until Perl 5.18, the actual rules of what a valid identifier was were a " |
| 3936 |
"bit fuzzy. However, in general, anything defined here should work on " |
| 3937 |
"previous versions of Perl, while the opposite -- edge cases that work in " |
| 3938 |
"previous versions, but aren\\*(Aqt defined here -- probably won\\*(Aqt work " |
| 3939 |
"on newer versions. As an important side note, please note that the " |
| 3940 |
"following only applies to bareword identifiers as found in Perl source code, " |
| 3941 |
"not identifiers introduced through symbolic references, which have much " |
| 3942 |
"fewer restrictions. If working under the effect of the CW<\\*(C`use " |
| 3943 |
"utf8;\\*(C'> pragma, the following rules apply:" |
| 3944 |
msgstr "" |
| 3945 |
|
| 3946 |
#. type: Plain text |
| 3947 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3948 |
#: opensuse-tumbleweed |
| 3949 |
msgid "" |
| 3950 |
"There is one package separator in Perl: A double colon (CW<\\*(C`::" |
| 3951 |
"\\*(C'>). Normal identifiers can start or end with a double colon, and can " |
| 3952 |
"contain several parts delimited by double colons." |
| 3953 |
msgstr "" |
| 3954 |
|
| 3955 |
#. type: Plain text |
| 3956 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3957 |
#: opensuse-tumbleweed |
| 3958 |
msgid "" |
| 3959 |
"Previously you could use CW<\\*(C`\\*(Aq\\*(C'> as a package separator, this " |
| 3960 |
"was removed in Perl 5.42." |
| 3961 |
msgstr "" |
| 3962 |
|
| 3963 |
#. type: Plain text |
| 3964 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3965 |
#: opensuse-tumbleweed |
| 3966 |
msgid "" |
| 3967 |
"Additionally, if the identifier is preceded by a sigil -- that is, if the " |
| 3968 |
"identifier is part of a variable name -- it may optionally be enclosed in " |
| 3969 |
"braces. For example, CW<\\*(C`${name}\\*(C'>, \\&CW<\\*(C`@{bigcats}\\*(C'>, " |
| 3970 |
"CW<\\*(C`%{pizza_toppings}\\*(C'>." |
| 3971 |
msgstr "" |
| 3972 |
|
| 3973 |
#. type: Plain text |
| 3974 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3975 |
#: opensuse-tumbleweed |
| 3976 |
#, no-wrap |
| 3977 |
msgid "" |
| 3978 |
"\\& /\n" |
| 3979 |
"\\& (?(DEFINE)\n" |
| 3980 |
"\\& (?E<lt>variableE<gt>\n" |
| 3981 |
"\\& (?&sigil)\n" |
| 3982 |
"\\& (?:\n" |
| 3983 |
"\\& (?&normal_identifier)\n" |
| 3984 |
"\\& | \\e{ \\es* (?&normal_identifier) \\es* \\e}\n" |
| 3985 |
"\\& )\n" |
| 3986 |
"\\& )\n" |
| 3987 |
"\\& (?E<lt>normal_identifierE<gt>\n" |
| 3988 |
"\\& (?: :: )*\n" |
| 3989 |
"\\& (?&basic_identifier)\n" |
| 3990 |
"\\& (?: (?= :: ) (?&normal_identifier) )?\n" |
| 3991 |
"\\& (?: :: )*\n" |
| 3992 |
"\\& )\n" |
| 3993 |
"\\& (?E<lt>basic_identifierE<gt>\n" |
| 3994 |
"\\& # is use utf8 on?\n" |
| 3995 |
"\\& (?(?{ (caller(0))[8] & $utf8::hint_bits })\n" |
| 3996 |
"\\& (?&Perl_XIDS) (?&Perl_XIDC)*\n" |
| 3997 |
"\\& | (?aa) (?!\\ed) \\ew+\n" |
| 3998 |
"\\& )\n" |
| 3999 |
"\\& )\n" |
| 4000 |
"\\& (?E<lt>sigilE<gt> \\e$\\e# | [&*\\e$\\e@%])\n" |
| 4001 |
"\\& (?E<lt>Perl_XIDSE<gt> (?[ ( \\ep{Word} & \\ep{XID_Start} ) + [_] ]) )\n" |
| 4002 |
"\\& (?E<lt>Perl_XIDCE<gt> (?[ \\ep{Word} & \\ep{XID_Continue} ]) )\n" |
| 4003 |
"\\& )\n" |
| 4004 |
"\\& /x\n" |
| 4005 |
msgstr "" |
| 4006 |
|
| 4007 |
#. type: Plain text |
| 4008 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 4009 |
#: opensuse-tumbleweed |
| 4010 |
msgid "" |
| 4011 |
"Meanwhile, special identifiers don\\*(Aqt follow the above rules; For the " |
| 4012 |
"most part, all of the identifiers in this category have a special meaning " |
| 4013 |
"given by Perl. Because they have special parsing rules, these generally " |
| 4014 |
"can\\*(Aqt be fully-qualified. They come in six forms (but don\\*(Aqt use " |
| 4015 |
"forms 5 and 6):" |
| 4016 |
msgstr "" |
| 4017 |
|
| 4018 |
#. type: Plain text |
| 4019 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 4020 |
#: opensuse-tumbleweed |
| 4021 |
msgid "" |
| 4022 |
"A sigil followed by a single character matching the " |
| 4023 |
"CW<\\*(C`\\ep{POSIX_Punct}\\*(C'> property, like CW<$!> or CW<\\*(C`%+" |
| 4024 |
"\\*(C'>, except the character CW<\"{\"> doesn\\*(Aqt work." |
| 4025 |
msgstr "" |
| 4026 |
|
| 4027 |
#. type: Plain text |
| 4028 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 4029 |
#: opensuse-tumbleweed |
| 4030 |
msgid "" |
| 4031 |
"Note that an implication of this form is that there are identifiers only " |
| 4032 |
"legal under CW<\"use\\ utf8\">, and vice-versa, for example the identifier " |
| 4033 |
"\\&CW<$état> is legal under CW<\"use\\ utf8\">, but is otherwise considered " |
| 4034 |
"to be the single character variable CW<$é> followed by the bareword " |
| 4035 |
"CW<\"tat\">, the combination of which is a syntax error." |
| 4036 |
msgstr "" |
| 4037 |
|
| 4038 |
#. type: Plain text |
| 4039 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 4040 |
#: opensuse-tumbleweed |
| 4041 |
msgid "" |
| 4042 |
"When you use the CW<\\*(C`use warnings\\*(C'> pragma or Perl\\*(Aqs B<-w> " |
| 4043 |
"command-line option, you may see warnings about useless uses of constants or " |
| 4044 |
"functions in \"void context\". Void context just means the value has been " |
| 4045 |
"discarded, such as a statement containing only CW<\\*(C`\"fred\";\\*(C'> or " |
| 4046 |
"CW<\\*(C`getpwuid(0);\\*(C'>. It still counts as scalar context for " |
| 4047 |
"functions that care whether or not they\\*(Aqre being called in list context." |
| 4048 |
msgstr "" |
| 4049 |
|
| 4050 |
#. type: Plain text |
| 4051 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 4052 |
#: opensuse-tumbleweed |
| 4053 |
#, fuzzy |
| 4054 |
#| msgid "" |
| 4055 |
#| "User-defined procedures can check whether they are called in scalar or " |
| 4056 |
#| "list context, but most of them don't care, since scalars are " |
| 4057 |
#| "automatically interpolated into lists. See the description of the " |
| 4058 |
#| "CW<wantarray> function in the I<perlfunc>(1) page." |
| 4059 |
msgid "" |
| 4060 |
"User-defined subroutines may choose to care whether they are being called in " |
| 4061 |
"a void, scalar, or list context. Most subroutines do not need to bother, " |
| 4062 |
"though. That\\*(Aqs because both scalars and lists are automatically " |
| 4063 |
"interpolated into lists. See \"wantarray\" in perlfunc for how you would " |
| 4064 |
"dynamically discern your function\\*(Aqs calling context." |
| 4065 |
msgstr "" |
| 4066 |
"Procedury definiowane przez użytkownika mogą sprawdzać, czy są wywołane w " |
| 4067 |
"kontekście skalarnym czy listowym, ale większość z nich nie dba o to, gdyż " |
| 4068 |
"skalary są automatycznie interpolowane w listy. Zobacz opis funkcji " |
| 4069 |
"CW<wantarray> na stronie I<perlfunc>(1)." |
| 4070 |
|
| 4071 |
#. type: Plain text |
| 4072 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 4073 |
#: opensuse-tumbleweed |
| 4074 |
#, fuzzy |
| 4075 |
#| msgid "" |
| 4076 |
#| "Scalars are not necessarily one thing or another. There is no way to " |
| 4077 |
#| "declare a scalar variable of type \\*(L\"string\\*(R\", " |
| 4078 |
#| "\\*(L\"number\\*(R\", of type \\*(L\"filehandle\\*(R\", or something " |
| 4079 |
#| "else. Perl is a contextually polymorphic language, in which scalars can " |
| 4080 |
#| "be strings, numbers, or references (which includes objects). Strings and " |
| 4081 |
#| "numbers are considered to be more or less the same thing for almost all " |
| 4082 |
#| "purposes. References, however, are uncastable, strictly typed pointers " |
| 4083 |
#| "with built-in reference counting and destructor calls." |
| 4084 |
msgid "" |
| 4085 |
"Scalars aren\\*(Aqt necessarily one thing or another. There\\*(Aqs no place " |
| 4086 |
"to declare a scalar variable to be of type \"string\", type \"number\", type " |
| 4087 |
"\"reference\", or anything else. Because of the automatic conversion of " |
| 4088 |
"scalars, operations that return scalars don\\*(Aqt need to care (and in " |
| 4089 |
"fact, cannot care) whether their caller is looking for a string, a number, " |
| 4090 |
"or a reference. Perl is a contextually polymorphic language whose scalars " |
| 4091 |
"can be strings, numbers, or references (which includes objects). Although " |
| 4092 |
"strings and numbers are considered pretty much the same thing for nearly all " |
| 4093 |
"purposes, references are strongly-typed, uncastable pointers with builtin " |
| 4094 |
"reference-counting and destructor invocation." |
| 4095 |
msgstr "" |
| 4096 |
"Skalary nie są koniecznie tą czy inną rzeczą. Nie ma możliwości " |
| 4097 |
"zadeklarowania zmiennej skalarnej o typie \\*(L\"string\\*(R\", " |
| 4098 |
"\\*(L\"number\\*(R\", typu \\*(L\"filehandle\\*(R\", czy jakiegoś innego. " |
| 4099 |
"Perl jest językiem kontekstowo polimorficznym, w którym skalary mogą być " |
| 4100 |
"łańcuchami, liczbami czy odwołaniami (co obejmuje obiekty). Łańcuchy i " |
| 4101 |
"liczby uważane są za mniejwięcej to samo w niemal każdym zastosowaniu. " |
| 4102 |
"Odwołania są jednak nierzutowalnymi wskaźnikami o ściśle określonym typie, z " |
| 4103 |
"wbudowanym licznikiem odwołań i wywołaniami destruktora." |
| 4104 |
|
| 4105 |
#. type: Plain text |
| 4106 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 4107 |
#: opensuse-tumbleweed |
| 4108 |
#, fuzzy |
| 4109 |
#| msgid "" |
| 4110 |
#| "To determine whether a given string is a valid non-zero number, it is " |
| 4111 |
#| "usually sufficient to compare it to both the numeric 0 and the lexical " |
| 4112 |
#| "\\*(L\"0\\*(R\" (although this will cause warnings from the B<-w> " |
| 4113 |
#| "option). This method is because non-numeric strings are considered to be " |
| 4114 |
#| "0, as in B<awk>:" |
| 4115 |
msgid "" |
| 4116 |
"To find out whether a given string is a valid non-zero number, it\\*(Aqs " |
| 4117 |
"sometimes enough to test it against both numeric 0 and also lexical \"0\" " |
| 4118 |
"(although this will cause noises if warnings are on). That\\*(Aqs because " |
| 4119 |
"strings that aren\\*(Aqt numbers count as 0, just as they do in B<awk>:" |
| 4120 |
msgstr "" |
| 4121 |
"By stwierdzić, czy dany łańcuch jest poprawną liczbą niezerową wystarczy " |
| 4122 |
"zwykle porównać go zarówno z numerycznym 0 jak i leksykalnym \\*(L\"0\\*(R\" " |
| 4123 |
"(choć spowoduje to ostrzeżenia opcji B<-w>). Sposób ten wynika stąd, że " |
| 4124 |
"łańcuchy nie będące liczbami uważane są za 0, tak jak w B<awk>:" |
| 4125 |
|
| 4126 |
#. type: Plain text |
| 4127 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 4128 |
#: opensuse-tumbleweed |
| 4129 |
msgid "" |
| 4130 |
"That method may be best because otherwise you won\\*(Aqt treat IEEE " |
| 4131 |
"notations like CW<\\*(C`NaN\\*(C'> or CW<\\*(C`Infinity\\*(C'> properly. At " |
| 4132 |
"other times, you might prefer to determine whether string data can be used " |
| 4133 |
"numerically by calling the B<POSIX::strtod()> function or by inspecting your " |
| 4134 |
"string with a regular expression (as documented in perlre)." |
| 4135 |
msgstr "" |
| 4136 |
|
| 4137 |
#. type: Plain text |
| 4138 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 4139 |
#: opensuse-tumbleweed |
| 4140 |
msgid "" |
| 4141 |
"The length of an array is a scalar value. You may find the length of array " |
| 4142 |
"CW<@days> by evaluating CW<$#days>, as in B<csh>. However, this isn\\*(Aqt " |
| 4143 |
"the length of the array; it\\*(Aqs the subscript of the last element, which " |
| 4144 |
"is a different value since there is ordinarily a 0th element. Assigning to " |
| 4145 |
"CW<$#days> actually changes the length of the array. Shortening an array " |
| 4146 |
"this way destroys intervening values. Lengthening an array that was " |
| 4147 |
"previously shortened does not recover values that were in those elements." |
| 4148 |
msgstr "" |
| 4149 |
|
| 4150 |
#. type: Plain text |
| 4151 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 4152 |
#: opensuse-tumbleweed |
| 4153 |
#, fuzzy |
| 4154 |
#| msgid "" |
| 4155 |
#| "If you use a hash (associative array) in scalar context, it returns a " |
| 4156 |
#| "value that is true if and only if the hash contains any key/value pairs. " |
| 4157 |
#| "(If there are any, the return value is a string consisting of the number " |
| 4158 |
#| "of buckets used and the number of buckets allocated, separated by a " |
| 4159 |
#| "slash. This is most useful for checking whether the Perl-compiled hashing " |
| 4160 |
#| "algorithm is performing poorly on your data set. For example, you put " |
| 4161 |
#| "10,000 items into a hash, but processing CW<%HASH> in scalar context " |
| 4162 |
#| "returns \\*(L\"1/16\\*(R\", which means that only one of the sixteen " |
| 4163 |
#| "buckets was used, and it presumably contains all of your 10,000 items. " |
| 4164 |
#| "This shouldn't happen.)" |
| 4165 |
msgid "" |
| 4166 |
"Prior to Perl 5.25 the value returned was a string consisting of the number " |
| 4167 |
"of used buckets and the number of allocated buckets, separated by a slash. " |
| 4168 |
"This is pretty much useful only to find out whether Perl\\*(Aqs internal " |
| 4169 |
"hashing algorithm is performing poorly on your data set. For example, you " |
| 4170 |
"stick 10,000 things in a hash, but evaluating \\&CW<%HASH> in scalar context " |
| 4171 |
"reveals CW<\"1/16\">, which means only one out of sixteen buckets has been " |
| 4172 |
"touched, and presumably contains all 10,000 of your items. This isn\\*(Aqt " |
| 4173 |
"supposed to happen." |
| 4174 |
msgstr "" |
| 4175 |
"Jeżeli posługujesz się haszem (tablicą asocjacyjną) w kontekście skalarnym, " |
| 4176 |
"to zwraca on wartość, która jest prawdą wtedy i tylko wtedy, gdy hasz " |
| 4177 |
"zawiera jakąkolwiek parę klucz/wartość. (Jeżeli są takie pary, to wartość " |
| 4178 |
"zwracana jest łańcuchem składającym się z liczby użytych jednostek komórek " |
| 4179 |
"(buckets) oraz liczby zaalokowanych jednostek komórek, rozdzielonych " |
| 4180 |
"ukośnikiem. Najbardziej przydaje się to do sprawdzania, czy wkompilowany w " |
| 4181 |
"Perl algorytm haszowania działa kiepsko na twoim zestawie danych. Na " |
| 4182 |
"przykład, wrzucasz 10,000 elementów do hasza, ale przetworzenie CW<%HASH> w " |
| 4183 |
"kontekście skalarnym zwraca \\*(L\"1/16\\*(R\", co oznacza, że tylko jedna z " |
| 4184 |
"szesnastu komórek została użyta, i przypuszczalnie zawiera wszystkie twoje " |
| 4185 |
"10,000 pozycji. To się nie powinno zdarzyć.)" |
| 4186 |
|
| 4187 |
#. type: Plain text |
| 4188 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 4189 |
#: opensuse-tumbleweed |
| 4190 |
#, no-wrap |
| 4191 |
msgid "" |
| 4192 |
"\\& 12345\n" |
| 4193 |
"\\& 12345.67\n" |
| 4194 |
"\\& .23E-10 # a very small number\n" |
| 4195 |
"\\& 3.14_15_92 # a very important number\n" |
| 4196 |
"\\& 4_294_967_296 # underscore for legibility\n" |
| 4197 |
"\\& 0xff # hex\n" |
| 4198 |
"\\& 0xdead_beef # more hex\n" |
| 4199 |
"\\& 0377 # octal (only numbers, begins with 0)\n" |
| 4200 |
"\\& 0o12_345 # alternative octal (introduced in Perl 5.33.5)\n" |
| 4201 |
"\\& 0b011011 # binary\n" |
| 4202 |
"\\& 0x1.999ap-4 # hexadecimal floating point (the \\*(Aqp\\*(Aq is required)\n" |
| 4203 |
"\\& 07.65p2 # octal floating point (the \\*(Aqp\\*(Aq is required)\n" |
| 4204 |
"\\& 0o7.65p2 # alternative octal floating point\n" |
| 4205 |
"\\& 0b101.01p-1 # binary floating point (the \\*(Aqp\\*(Aq is required)\n" |
| 4206 |
msgstr "" |
| 4207 |
|
| 4208 |
#. type: Plain text |
| 4209 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 4210 |
#: opensuse-tumbleweed |
| 4211 |
#, fuzzy |
| 4212 |
#| msgid "" |
| 4213 |
#| "Octal or hexadecimal notations in string literals (e.g. \\*(L'0xffff') " |
| 4214 |
#| "are not automatically converted to their integer representation. These " |
| 4215 |
#| "conversions are performed by the I<hex()> and I<oct()> functions. For " |
| 4216 |
#| "more details, see the descriptions of these functions in the " |
| 4217 |
#| "I<perlfunc>(1) manual page." |
| 4218 |
msgid "" |
| 4219 |
"Hexadecimal, octal, or binary, representations in string literals (e.g. " |
| 4220 |
"\\*(Aq0xff\\*(Aq) are not automatically converted to their integer " |
| 4221 |
"representation. The B<hex()> and B<oct()> functions make these conversions " |
| 4222 |
"for you. See \"hex\" in perlfunc and \"oct\" in perlfunc for more details." |
| 4223 |
msgstr "" |
| 4224 |
"Zapisy ósemkowe czy szesnastkowe w literałach łańcuchowych (np. " |
| 4225 |
"\\*(L'0xffff') nie są automatycznie zamieniane na ich całkowitą " |
| 4226 |
"reprezentację. Konwersje te wykonują funkcje I<hex()> i I<oct()>. Więcej " |
| 4227 |
"szczegółów znajdziesz w opisach tych funkcji w podręczniku I<perlfunc>(1)." |
| 4228 |
|
| 4229 |
#. type: Plain text |
| 4230 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 4231 |
#: opensuse-tumbleweed |
| 4232 |
msgid "" |
| 4233 |
"Hexadecimal floating point can start just like a hexadecimal literal, and it " |
| 4234 |
"can be followed by an optional fractional hexadecimal part, but it must be " |
| 4235 |
"followed by CW<\\*(C`p\\*(C'>, an optional sign, and a power of two. The " |
| 4236 |
"format is useful for accurately presenting floating point values, avoiding " |
| 4237 |
"conversions to or from decimal floating point, and therefore avoiding " |
| 4238 |
"possible loss in precision. Notice that while most current platforms use " |
| 4239 |
"the 64-bit IEEE 754 floating point, not all do. Another potential source of " |
| 4240 |
"(low-order) differences are the floating point rounding modes, which can " |
| 4241 |
"differ between CPUs, operating systems, and compilers, and which Perl " |
| 4242 |
"doesn\\*(Aqt control." |
| 4243 |
msgstr "" |
| 4244 |
|
| 4245 |
#. type: Plain text |
| 4246 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 4247 |
#: opensuse-tumbleweed |
| 4248 |
msgid "" |
| 4249 |
"Octal and binary floating point numbers use the same format as hexadecimal " |
| 4250 |
"floating point numbers, but limited to binary and octal digits, respectively." |
| 4251 |
msgstr "" |
| 4252 |
|
| 4253 |
#. type: Plain text |
| 4254 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 4255 |
#: opensuse-tumbleweed |
| 4256 |
msgid "" |
| 4257 |
"Perl doesn\\*(Aqt understand CW<\\*(C`Inf\\*(C'> and CW<\\*(C`NaN\\*(C'> as " |
| 4258 |
"numeric literals, but you can have them as strings, and Perl will convert " |
| 4259 |
"them as needed: \"Inf\" + 1. (You can, however, import them from the POSIX " |
| 4260 |
"extension; \\&CW<\\*(C`use POSIX qw(Inf NaN);\\*(C'> and then use them as " |
| 4261 |
"literals.)" |
| 4262 |
msgstr "" |
| 4263 |
|
| 4264 |
#. type: Plain text |
| 4265 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 4266 |
#: opensuse-tumbleweed |
| 4267 |
msgid "" |
| 4268 |
"Note that since Perl 5.8.1 the single-number v-strings (like " |
| 4269 |
"CW<\\*(C`v65\\*(C'>) are not v-strings before the CW<\\*(C`=E<gt>\\*(C'> " |
| 4270 |
"operator (which is usually used to separate a hash key from a hash value); " |
| 4271 |
"instead they are interpreted as literal strings (\\*(Aqv65\\*(Aq). They " |
| 4272 |
"were v-strings from Perl 5.6.0 to Perl 5.8.0, but that caused more confusion " |
| 4273 |
"and breakage than good. Multi-number v-strings like CW<\\*(C`v65.66\\*(C'> " |
| 4274 |
"and CW<65.66.67> continue to be v-strings always." |
| 4275 |
msgstr "" |
| 4276 |
|
| 4277 |
#. type: Plain text |
| 4278 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 4279 |
#: opensuse-tumbleweed |
| 4280 |
msgid "" |
| 4281 |
"Text after _\\|_DATA_\\|_ may be read via the filehandle " |
| 4282 |
"CW<\\*(C`PACKNAME::DATA\\*(C'>, where CW<\\*(C`PACKNAME\\*(C'> is the " |
| 4283 |
"package that was current when the _\\|_DATA_\\|_ token was encountered. The " |
| 4284 |
"filehandle is left open pointing to the line after _\\|_DATA_\\|_. The " |
| 4285 |
"program should CW<\\*(C`close DATA\\*(C'> when it is done reading from it. " |
| 4286 |
"(Leaving it open leaks filehandles if the module is reloaded for any reason, " |
| 4287 |
"so it\\*(Aqs a safer practice to close it.) For compatibility with older " |
| 4288 |
"scripts written before _\\|_DATA_\\|_ was introduced, _\\|_END_\\|_ behaves " |
| 4289 |
"like _\\|_DATA_\\|_ in the top level script (but not in files loaded with " |
| 4290 |
"CW<\\*(C`require\\*(C'> or CW<\\*(C`do\\*(C'>) and leaves the remaining " |
| 4291 |
"contents of the file accessible via CW<\\*(C`main::DATA\\*(C'>." |
| 4292 |
msgstr "" |
| 4293 |
|
| 4294 |
#. type: Plain text |
| 4295 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 4296 |
#: opensuse-tumbleweed |
| 4297 |
msgid "" |
| 4298 |
"The CW<\\*(C`DATA\\*(C'> file handle by default has whatever PerlIO layers " |
| 4299 |
"were in place when Perl read the file to parse the source. Normally that " |
| 4300 |
"means that the file is being read bytewise, as if it were encoded in " |
| 4301 |
"Latin-1, but there are two major ways for it to be otherwise. Firstly, if " |
| 4302 |
"the CW<\\*(C`_\\|_END_\\|_\\*(C'>/CW<\\*(C`_\\|_DATA_\\|_\\*(C'> token is in " |
| 4303 |
"the scope of a CW<\\*(C`use utf8\\*(C'> pragma then the CW<\\*(C`DATA\\*(C'> " |
| 4304 |
"handle will be in UTF-8 mode. And secondly, if the source is being read " |
| 4305 |
"from perl\\*(Aqs standard input then the CW<\\*(C`DATA\\*(C'> file handle is " |
| 4306 |
"actually aliased to the CW<\\*(C`STDIN\\*(C'> file handle, and may be in " |
| 4307 |
"UTF-8 mode because of the CW<\\*(C`PERL_UNICODE\\*(C'> environment variable " |
| 4308 |
"or perl\\*(Aqs command-line switches." |
| 4309 |
msgstr "" |
| 4310 |
|
| 4311 |
#. type: Plain text |
| 4312 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 4313 |
#: opensuse-tumbleweed |
| 4314 |
#, fuzzy |
| 4315 |
#| msgid "" |
| 4316 |
#| "Inside the search patterns (which are also subject to double-quoting " |
| 4317 |
#| "replacement), there is an ugly ambiguity: is CW</$foo[bar]/> supposed to " |
| 4318 |
#| "be interpreted as CW</${foo}[bar]/> (where CW<[bar]> is the character " |
| 4319 |
#| "class of the regex) or as CW</${foo[bar]}/> (where CW<[bar]> is the array " |
| 4320 |
#| "index of CW<@foo>)? If CW<@foo> does not exist, then it is of course the " |
| 4321 |
#| "character class. If CW<@foo> exists, then Perl guesses what CW<[bar]> is " |
| 4322 |
#| "supposed to be, and is almost always right. If it guesses wrong, or you " |
| 4323 |
#| "are just paranoid, you can force the correct interpretation by using " |
| 4324 |
#| "curly braces as above." |
| 4325 |
msgid "" |
| 4326 |
"Within search patterns (which also undergo double-quotish substitution) " |
| 4327 |
"there is an unfortunate ambiguity: Is CW<\\*(C`/$foo[bar]/\\*(C'> to be " |
| 4328 |
"interpreted as \\&CW<\\*(C`/${foo}[bar]/\\*(C'> (where CW<\\*(C`[bar]\\*(C'> " |
| 4329 |
"is a character class for the regular expression) or as CW<\\*(C`/${foo[bar]}/" |
| 4330 |
"\\*(C'> (where CW<\\*(C`[bar]\\*(C'> is the subscript to array \\&CW<@foo>)? " |
| 4331 |
"If CW<@foo> doesn\\*(Aqt otherwise exist, then it\\*(Aqs obviously a " |
| 4332 |
"character class. If CW<@foo> exists, Perl takes a good guess about " |
| 4333 |
"CW<\\*(C`[bar]\\*(C'>, and is almost always right. If it does guess wrong, " |
| 4334 |
"or if you\\*(Aqre just plain paranoid, you can force the correct " |
| 4335 |
"interpretation with curly braces as above." |
| 4336 |
msgstr "" |
| 4337 |
"Wewnątrz wzorców wyszukiwania (które również podlegają zastępowaniu w " |
| 4338 |
"podwójnym cytowaniu) pojawia się brzydka niejednoznaczność: czy CW</" |
| 4339 |
"$foo[bar]/> ma być interpretowane jako CW</${foo}[bar]/> (gdzie CW<[bar]> " |
| 4340 |
"jest klasą znaków wyrażenia regularnego) czy też jako CW</${foo[bar]}/> " |
| 4341 |
"(gdzie CW<[bar]> jest indeksem tablicy CW<@foo>)? Jeżeli nie istnieje " |
| 4342 |
"CW<@foo>, to jest to oczywiście klasa znaków. Jeżeli CW<@foo> istnieje, to " |
| 4343 |
"Perl odgaduje czym ma być CW<[bar]>, i prawie zawsze ma rację. Jeśli " |
| 4344 |
"odgaduje źle, albo po prostu jesteś paranoikiem, możesz wymusić poprawną " |
| 4345 |
"interpretację używając nawiasów klamrowych jak powyżej." |
| 4346 |
|
| 4347 |
#. type: Plain text |
| 4348 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 4349 |
#: opensuse-tumbleweed |
| 4350 |
msgid "" |
| 4351 |
"If you\\*(Aqre looking for the information on how to use here-documents, " |
| 4352 |
"which used to be here, that\\*(Aqs been moved to \"Quote and Quote-like " |
| 4353 |
"Operators\" in perlop." |
| 4354 |
msgstr "" |
| 4355 |
|
| 4356 |
#. type: Plain text |
| 4357 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 4358 |
#: opensuse-tumbleweed |
| 4359 |
msgid "" |
| 4360 |
"This interpolation combines with the facts that the opening and closing " |
| 4361 |
"parentheses are optional (except when necessary for precedence) and lists " |
| 4362 |
"may end with an optional comma to mean that multiple commas within lists are " |
| 4363 |
"legal syntax. The list CW<\\*(C`1,,3\\*(C'> is a concatenation of two " |
| 4364 |
"lists, CW<\\*(C`1,\\*(C'> and CW<3>, the first of which ends with that " |
| 4365 |
"optional comma. CW<\\*(C`1,,3\\*(C'> is CW<\\*(C`(1,),(3)\\*(C'> is " |
| 4366 |
"CW<\\*(C`1,3\\*(C'> (And similarly for CW<\\*(C`1,,,3\\*(C'> is " |
| 4367 |
"CW<\\*(C`(1,),(,),3\\*(C'> is CW<\\*(C`1,3\\*(C'> and so on.) Not that " |
| 4368 |
"we\\*(Aqd advise you to use this obfuscation." |
| 4369 |
msgstr "" |
| 4370 |
|
| 4371 |
#. type: Plain text |
| 4372 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 4373 |
#: opensuse-tumbleweed |
| 4374 |
msgid "" |
| 4375 |
"It\\*(Aqs also the source of a useful idiom for executing a function or " |
| 4376 |
"performing an operation in list context and then counting the number of " |
| 4377 |
"return values, by assigning to an empty list and then using that assignment " |
| 4378 |
"in scalar context. For example, this code:" |
| 4379 |
msgstr "" |
| 4380 |
|
| 4381 |
#. type: Plain text |
| 4382 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 4383 |
#: opensuse-tumbleweed |
| 4384 |
#, fuzzy |
| 4385 |
#| msgid "" |
| 4386 |
#| "While literal lists and named arrays are usually interchangeable, this is " |
| 4387 |
#| "not the case for hashes. Just because you can index the values of a list " |
| 4388 |
#| "like a regular array doesn't mean you can index the list like a hash. " |
| 4389 |
#| "Similarly, hashes included as part of other lists (including parameter " |
| 4390 |
#| "lists and function return lists) always flatten out to key/value pairs. " |
| 4391 |
#| "That's why it's sometimes useful to use a pointer." |
| 4392 |
msgid "" |
| 4393 |
"While literal lists and named arrays are often interchangeable, that\\*(Aqs " |
| 4394 |
"not the case for hashes. Just because you can subscript a list value like a " |
| 4395 |
"normal array does not mean that you can subscript a list value as a hash. " |
| 4396 |
"Likewise, hashes included as parts of other lists (including parameters " |
| 4397 |
"lists and return lists from functions) always flatten out into key/value " |
| 4398 |
"pairs. That\\*(Aqs why it\\*(Aqs good to use references sometimes." |
| 4399 |
msgstr "" |
| 4400 |
"Choć listy literałów i nazwane tablice są zwykle wzajemnie wymienne, to nie " |
| 4401 |
"zachodzi to w przypadku haszy. To, że możesz indeksować wartości listy tak " |
| 4402 |
"jak zwykłej tablicy nie oznacza, że możesz indeksować listę tak jak hasz. " |
| 4403 |
"Podobnie, hasze włączone jako części innych list (łącznie z listami " |
| 4404 |
"parametrów i list zwracanych przez funkcje) zawsze ulegają spłaszczeniu do " |
| 4405 |
"par klucz/wartość. Dlatego czasem dobrze jest użyć wskazania." |
| 4406 |
|
| 4407 |
#. type: Plain text |
| 4408 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 4409 |
#: opensuse-tumbleweed |
| 4410 |
#, fuzzy |
| 4411 |
#| msgid "" |
| 4412 |
#| "It is often more readable to use CW<=E<gt>> between key/value pairs. This " |
| 4413 |
#| "operator is simply a more visually distinctive synonym for comma. It also " |
| 4414 |
#| "causes its left operand to be interpreted as a string if it is a bare " |
| 4415 |
#| "word that could be a valid identifier. This makes initializing hashes " |
| 4416 |
#| "more convenient:" |
| 4417 |
msgid "" |
| 4418 |
"It is often more readable to use the CW<\\*(C`=E<gt>\\*(C'> operator between " |
| 4419 |
"key/value pairs. The CW<\\*(C`=E<gt>\\*(C'> operator is mostly just a more " |
| 4420 |
"visually distinctive synonym for a comma, but it also arranges for its left-" |
| 4421 |
"hand operand to be interpreted as a string if it\\*(Aqs a bareword that " |
| 4422 |
"would be a legal simple identifier. CW<\\*(C`=E<gt>\\*(C'> doesn\\*(Aqt " |
| 4423 |
"quote compound identifiers, that contain double colons. This makes it nice " |
| 4424 |
"for initializing hashes:" |
| 4425 |
msgstr "" |
| 4426 |
"Często bardziej czytelne jest użycie pomiędzy parami klucz/wartość operatora " |
| 4427 |
"CW<=E<gt>>. Operator ten jest po prostu bardziej wyróżniającym się wzrokowo " |
| 4428 |
"synonimem przecinka. Ponadto powoduje, że jego lewostronny operand jest " |
| 4429 |
"interpretowany jako łańcuch, jeśli jest on gołym słowem, które mogłoby być " |
| 4430 |
"poprawnym identyfikatorem. Uprzyjemnia to inicjowanie haszy:" |
| 4431 |
|
| 4432 |
#. type: Plain text |
| 4433 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 4434 |
#: opensuse-tumbleweed |
| 4435 |
#, fuzzy |
| 4436 |
#| msgid "" |
| 4437 |
#| "Note that just because the associative array is initialized in an order " |
| 4438 |
#| "doesn't mean it will be returned in that order. For examples of how to " |
| 4439 |
#| "sort the order of returned results, see CW<sort> in the B<perlfunc>(1) " |
| 4440 |
#| "manual page." |
| 4441 |
msgid "" |
| 4442 |
"Note that just because a hash is initialized in that order doesn\\*(Aqt mean " |
| 4443 |
"that it comes out in that order. See \"sort\" in perlfunc for examples of " |
| 4444 |
"how to arrange for an output ordering." |
| 4445 |
msgstr "" |
| 4446 |
"Zwróć uwagę na to, iż fakt, że tablica asocjacyjna jest zainicjowana w takim " |
| 4447 |
"porządku, nie oznacza, że zostanie zwrócona w tym samym porządku. Przykłady, " |
| 4448 |
"jak ułożyć kolejność zwracanych wyników znajdziesz przy opisie CW<sort> w " |
| 4449 |
"podręczniku B<perlfunc>(1)." |
| 4450 |
|
| 4451 |
#. type: Plain text |
| 4452 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 4453 |
#: opensuse-tumbleweed |
| 4454 |
msgid "" |
| 4455 |
"A slice accesses several elements of a list, an array, or a hash " |
| 4456 |
"simultaneously using a list of subscripts. It\\*(Aqs more convenient than " |
| 4457 |
"writing out the individual elements as a list of separate scalar values." |
| 4458 |
msgstr "" |
| 4459 |
|
| 4460 |
#. type: Plain text |
| 4461 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 4462 |
#: opensuse-tumbleweed |
| 4463 |
msgid "" |
| 4464 |
"Since changing a slice changes the original array or hash that it\\*(Aqs " |
| 4465 |
"slicing, a CW<\\*(C`foreach\\*(C'> construct will alter some--or even all--" |
| 4466 |
"of the values of the array or hash." |
| 4467 |
msgstr "" |
| 4468 |
|
| 4469 |
#. type: Plain text |
| 4470 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 4471 |
#: opensuse-tumbleweed |
| 4472 |
msgid "" |
| 4473 |
"If you\\*(Aqre confused about why you use an CW<\\*(Aq@\\*(Aq> there on a " |
| 4474 |
"hash slice instead of a CW<\\*(Aq%\\*(Aq>, think of it like this. The type " |
| 4475 |
"of bracket (square or curly) governs whether it\\*(Aqs an array or a hash " |
| 4476 |
"being looked at. On the other hand, the leading symbol (CW<\\*(Aq$\\*(Aq> " |
| 4477 |
"or CW<\\*(Aq@\\*(Aq>) on the array or hash indicates whether you are getting " |
| 4478 |
"back a singular value (a scalar) or a plural one (a list)." |
| 4479 |
msgstr "" |
| 4480 |
|
| 4481 |
#. type: Plain text |
| 4482 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 4483 |
#: opensuse-tumbleweed |
| 4484 |
#, fuzzy |
| 4485 |
#| msgid "" |
| 4486 |
#| "The primary use of typeglob in modern Perl is to create symbol table " |
| 4487 |
#| "synonyms. This assignment:" |
| 4488 |
msgid "" |
| 4489 |
"The main use of typeglobs in modern Perl is to create symbol table aliases. " |
| 4490 |
"This assignment:" |
| 4491 |
msgstr "" |
| 4492 |
"Podstawowym zastosowaniem typeglob we współczesnym Perlu jest tworzenie " |
| 4493 |
"synonimów tablicy symboli. To przypisanie:" |
| 4494 |
|
| 4495 |
#. type: Plain text |
| 4496 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 4497 |
#: opensuse-tumbleweed |
| 4498 |
#, fuzzy |
| 4499 |
#| msgid "" |
| 4500 |
#| "temporarily makes CW<$Here::blue> an alias for CW<$There::green>, but " |
| 4501 |
#| "does not make CW<@Here::blue> an alias for CW<@There::green>, or " |
| 4502 |
#| "CW<%Here::blue> an alias for CW<%There::green>, etc. See the I<Symbol " |
| 4503 |
#| "Tables> section of the I<perlmod>(1) manual page for more examples. " |
| 4504 |
#| "Although it may look strange, this is the basis of the entire module " |
| 4505 |
#| "import/export system." |
| 4506 |
msgid "" |
| 4507 |
"temporarily makes CW<$Here::blue> an alias for CW<$There::green>, but " |
| 4508 |
"doesn\\*(Aqt make CW<@Here::blue> an alias for CW<@There::green>, or " |
| 4509 |
"CW<%Here::blue> an alias for \\&CW<%There::green>, etc. See \"Symbol " |
| 4510 |
"Tables\" in perlmod for more examples of this. Strange though this may " |
| 4511 |
"seem, this is the basis for the whole module import/export system." |
| 4512 |
msgstr "" |
| 4513 |
"tymczasowo czyni CW<$Tutaj::niebieski> aliasem dla CW<$Tam::zielony>, ale " |
| 4514 |
"nie robi CW<@Tutaj::niebieski> aliasem dla CW<@Tam::zielony>, czy " |
| 4515 |
"CW<%Tutaj::niebieski> aliasem dla CW<%Tam::zielony>, itd. W sekcji I<Symbol " |
| 4516 |
"Tables> podręcznika I<perlmod>(1) znajdziesz więcej takich przykładów. Mimo, " |
| 4517 |
"że może to wyglądać dziwnie, jest to podstawą całego systemu importu/exportu " |
| 4518 |
"modułów." |
| 4519 |
|
| 4520 |
#. type: Plain text |
| 4521 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 4522 |
#: opensuse-tumbleweed |
| 4523 |
#, fuzzy |
| 4524 |
#| msgid "" |
| 4525 |
#| "Now that we have the *foo{\\s-1SOMETHING\\s0} notation, typeglobs are not " |
| 4526 |
#| "used as often to manipulate filehandles, although they are still " |
| 4527 |
#| "necessary to pass a completely new file or directory handle to or from a " |
| 4528 |
#| "function. This is because *\\s-1HANDLE\\s0{\\s-1IO\\s0} only works if " |
| 4529 |
#| "\\s-1HANDLE\\s0 has already been used as a handle. In other words, " |
| 4530 |
#| "*\\s-1FH\\s0 can be used to create new symbol table entries, but " |
| 4531 |
#| "*foo{\\s-1SOMETHING\\s0} cannot." |
| 4532 |
msgid "" |
| 4533 |
"Now that we have the CW<*foo{THING}> notation, typeglobs aren\\*(Aqt used as " |
| 4534 |
"much for filehandle manipulations, although they\\*(Aqre still needed to " |
| 4535 |
"pass brand new file and directory handles into or out of functions. " |
| 4536 |
"That\\*(Aqs because \\&CW<*HANDLE{IO}> only works if HANDLE has already been " |
| 4537 |
"used as a handle. In other words, CW<*FH> must be used to create new symbol " |
| 4538 |
"table entries; \\&CW<*foo{THING}> cannot. When in doubt, use CW<*FH>." |
| 4539 |
msgstr "" |
| 4540 |
"Obecnie, gdy dysponujemy notacją *foo{\\s-1COŚ\\s0}, typeglob nie są tak " |
| 4541 |
"często używane do manipulowania uchwytami plików, chociaż wciąż są konieczne " |
| 4542 |
"do przesłania całkiem nowego uchwytu pliku czy katalogu do funkcji czy z " |
| 4543 |
"funkcji. Wynika to stąd, że *\\s-1UCHWYT\\s0{\\s-1IO\\s0} działa tylko " |
| 4544 |
"jeśli \\s-1UCHWYT\\s0 był już użyty jako uchwyt. Inaczej mówiąc, do " |
| 4545 |
"tworzenia nowych wpisów w tablicy symboli może posłużyć *\\s-1FH\\s0, ale " |
| 4546 |
"nie *foo{\\s-1COŚ\\s0}." |
| 4547 |
|
| 4548 |
#. type: Plain text |
| 4549 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 4550 |
#: opensuse-tumbleweed |
| 4551 |
msgid "" |
| 4552 |
"See perlvar for a description of Perl\\*(Aqs built-in variables and a " |
| 4553 |
"discussion of legal variable names. See perlref, perlsub, and \"Symbol " |
| 4554 |
"Tables\" in perlmod for more discussion on typeglobs and the CW<*foo{THING}> " |
| 4555 |
"syntax." |
| 4556 |
msgstr "" |
| 4557 |
|
| 4558 |
#. type: TH |
| 4559 |
#: fedora-rawhide |
| 4560 |
#, no-wrap |
| 4561 |
msgid "2026-03-30" |
| 4562 |
msgstr "30 marca 2026 r." |
| 4563 |
|
| 4564 |
#. type: TH |
| 4565 |
#: fedora-rawhide |
| 4566 |
#, no-wrap |
| 4567 |
msgid "perl v5.42.2" |
| 4568 |
msgstr "perl v5.42.2" |
| 4569 |
|
| 4570 |
#. type: TH |
| 4571 |
#: mageia-cauldron |
| 4572 |
#, no-wrap |
| 4573 |
msgid "2025-06-24" |
| 4574 |
msgstr "24 czerwca 2025 r." |
| 4575 |
|
| 4576 |
#. type: TH |
| 4577 |
#: mageia-cauldron |
| 4578 |
#, no-wrap |
| 4579 |
msgid "perl v5.42.0" |
| 4580 |
msgstr "perl v5.42.0" |