| 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]>, 2000. |
| 6 |
# Robert Luberda <[email protected]>, 2003. |
| 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: 2003-05-29 18:03+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 |
|
| 19 |
#. #-#-#-#-# debian-trixie: perlref.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 20 |
#. ======================================================================== |
| 21 |
#. type: IX |
| 22 |
#. #-#-#-#-# debian-unstable: perlref.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 23 |
#. ======================================================================== |
| 24 |
#. type: IX |
| 25 |
#. #-#-#-#-# fedora-44: perlref.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 26 |
#. Required to disable full justification in groff 1.23.0. |
| 27 |
#. ======================================================================== |
| 28 |
#. type: IX |
| 29 |
#. #-#-#-#-# fedora-rawhide: perlref.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 30 |
#. Required to disable full justification in groff 1.23.0. |
| 31 |
#. ======================================================================== |
| 32 |
#. type: IX |
| 33 |
#. #-#-#-#-# mageia-cauldron: perlref.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 34 |
#. Required to disable full justification in groff 1.23.0. |
| 35 |
#. ======================================================================== |
| 36 |
#. type: IX |
| 37 |
#. #-#-#-#-# opensuse-leap-16-1: perlref.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 38 |
#. Required to disable full justification in groff 1.23.0. |
| 39 |
#. ======================================================================== |
| 40 |
#. type: IX |
| 41 |
#. #-#-#-#-# opensuse-tumbleweed: perlref.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 42 |
#. Required to disable full justification in groff 1.23.0. |
| 43 |
#. ======================================================================== |
| 44 |
#. type: IX |
| 45 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 46 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 47 |
#, no-wrap |
| 48 |
msgid "Title" |
| 49 |
msgstr "Title" |
| 50 |
|
| 51 |
#. #-#-#-#-# debian-trixie: perlref.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 52 |
#. ======================================================================== |
| 53 |
#. type: IX |
| 54 |
#. #-#-#-#-# debian-unstable: perlref.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 55 |
#. ======================================================================== |
| 56 |
#. type: IX |
| 57 |
#. #-#-#-#-# fedora-44: perlref.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 58 |
#. Required to disable full justification in groff 1.23.0. |
| 59 |
#. ======================================================================== |
| 60 |
#. type: IX |
| 61 |
#. #-#-#-#-# fedora-rawhide: perlref.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 62 |
#. Required to disable full justification in groff 1.23.0. |
| 63 |
#. ======================================================================== |
| 64 |
#. type: IX |
| 65 |
#. #-#-#-#-# mageia-cauldron: perlref.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 66 |
#. Required to disable full justification in groff 1.23.0. |
| 67 |
#. ======================================================================== |
| 68 |
#. type: IX |
| 69 |
#. #-#-#-#-# opensuse-leap-16-1: perlref.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 70 |
#. Required to disable full justification in groff 1.23.0. |
| 71 |
#. ======================================================================== |
| 72 |
#. type: IX |
| 73 |
#. #-#-#-#-# opensuse-tumbleweed: perlref.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 74 |
#. Required to disable full justification in groff 1.23.0. |
| 75 |
#. ======================================================================== |
| 76 |
#. type: IX |
| 77 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 78 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 79 |
#, no-wrap |
| 80 |
msgid "PERLREF 1" |
| 81 |
msgstr "PERLREF 1" |
| 82 |
|
| 83 |
#. type: TH |
| 84 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 85 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 86 |
#, no-wrap |
| 87 |
msgid "PERLREF" |
| 88 |
msgstr "PERLREF" |
| 89 |
|
| 90 |
#. type: TH |
| 91 |
#: debian-trixie |
| 92 |
#, no-wrap |
| 93 |
msgid "2025-07-27" |
| 94 |
msgstr "27 lipca 2025 r." |
| 95 |
|
| 96 |
#. type: TH |
| 97 |
#: debian-trixie debian-unstable |
| 98 |
#, no-wrap |
| 99 |
msgid "perl v5.40.1" |
| 100 |
msgstr "perl v5.40.1" |
| 101 |
|
| 102 |
#. type: TH |
| 103 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 104 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 105 |
#, no-wrap |
| 106 |
msgid "Perl Programmers Reference Guide" |
| 107 |
msgstr "Instrukcja programisty Perla" |
| 108 |
|
| 109 |
#. type: SH |
| 110 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 111 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 112 |
#, no-wrap |
| 113 |
msgid "NAME" |
| 114 |
msgstr "NAZWA" |
| 115 |
|
| 116 |
#. type: Plain text |
| 117 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 118 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 119 |
msgid "perlref - Perl references and nested data structures" |
| 120 |
msgstr "perlref - odwołania i zagnieżdżone struktury danych w Perlu" |
| 121 |
|
| 122 |
#. type: IX |
| 123 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 124 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 125 |
#, no-wrap |
| 126 |
msgid "Xref" |
| 127 |
msgstr "Xref" |
| 128 |
|
| 129 |
#. type: IX |
| 130 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 131 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 132 |
#, no-wrap |
| 133 |
msgid "reference pointer data structure structure struct" |
| 134 |
msgstr "" |
| 135 |
|
| 136 |
#. type: IX |
| 137 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 138 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 139 |
#, no-wrap |
| 140 |
msgid "NOTE" |
| 141 |
msgstr "UWAGA" |
| 142 |
|
| 143 |
#. type: IX |
| 144 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 145 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 146 |
#, no-wrap |
| 147 |
msgid "Header" |
| 148 |
msgstr "Header" |
| 149 |
|
| 150 |
#. type: Plain text |
| 151 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 152 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 153 |
msgid "" |
| 154 |
"This is complete documentation about all aspects of references. For a " |
| 155 |
"shorter, tutorial introduction to just the essential features, see " |
| 156 |
"perlreftut." |
| 157 |
msgstr "" |
| 158 |
"To jest pełna dokumentacja dotycząca wszelkich aspektów odwołań. Krótszy, " |
| 159 |
"wprowadzający wstęp to najistotniejszych cech znajdziesz w podręczniku " |
| 160 |
"I<perlreftut>(1)." |
| 161 |
|
| 162 |
#. type: IX |
| 163 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 164 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 165 |
#, no-wrap |
| 166 |
msgid "DESCRIPTION" |
| 167 |
msgstr "OPIS" |
| 168 |
|
| 169 |
#. type: Plain text |
| 170 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 171 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 172 |
#, fuzzy |
| 173 |
#| msgid "" |
| 174 |
#| "Before release 5 of Perl it was difficult to represent complex data " |
| 175 |
#| "structures, because all references had to be symbolic\\*(--and even then " |
| 176 |
#| "it was difficult to refer to a variable instead of a symbol table entry. " |
| 177 |
#| "Perl now not only makes it easier to use symbolic references to " |
| 178 |
#| "variables, but also lets you have \\*(L\"hard\\*(R\" references to any " |
| 179 |
#| "piece of data or code. Any scalar may hold a hard reference. Because " |
| 180 |
#| "arrays and hashes contain scalars, you can now easily build arrays of " |
| 181 |
#| "arrays, arrays of hashes, hashes of arrays, arrays of hashes of " |
| 182 |
#| "functions, and so on." |
| 183 |
msgid "" |
| 184 |
"Before release 5 of Perl it was difficult to represent complex data " |
| 185 |
"structures, because all references had to be symbolic--and even then it was " |
| 186 |
"difficult to refer to a variable instead of a symbol table entry. Perl now " |
| 187 |
"not only makes it easier to use symbolic references to variables, but also " |
| 188 |
"lets you have \"hard\" references to any piece of data or code. Any scalar " |
| 189 |
"may hold a hard reference. Because arrays and hashes contain scalars, you " |
| 190 |
"can now easily build arrays of arrays, arrays of hashes, hashes of arrays, " |
| 191 |
"arrays of hashes of functions, and so on." |
| 192 |
msgstr "" |
| 193 |
"Przed wersją 5 Perla przedstawianie złożonych struktur danych było trudne, " |
| 194 |
"gdyż wszystkie odwołania musiały być symboliczne \\*(-- a nawet wtedy ciężko " |
| 195 |
"było odnosić się do zmiennej zamiast do pozycji w tablicy symboli. Obecnie " |
| 196 |
"Perl nie tylko ułatwia posługiwanie się symbolicznymi odwołaniami do " |
| 197 |
"zmiennych, ale także pozwala na użycie \\*(L\"stałych\\*(R\" odwołań (hard " |
| 198 |
"references) do dowolnego kawałka danych lub kodu. Stałe dowiązanie może być " |
| 199 |
"przechowywane w dowolnym skalarze. Ponieważ tablice i tablice asocjacyjne " |
| 200 |
"(hasze) zawierają skalary, to możesz teraz łatwo budować tablice tablic, " |
| 201 |
"tablice haszy, hasze tablic, tablice haszy funkcji i tak dalej." |
| 202 |
|
| 203 |
#. type: Plain text |
| 204 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 205 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 206 |
#, fuzzy |
| 207 |
#| msgid "" |
| 208 |
#| "Hard references are smart\\*(--they keep track of reference counts for " |
| 209 |
#| "you, automatically freeing the thing referred to when its reference count " |
| 210 |
#| "goes to zero. (Reference counts for values in self-referential or cyclic " |
| 211 |
#| "data structures may not go to zero without a little help; see " |
| 212 |
#| "\\&\\*(L\"Two-Phased Garbage Collection\\*(R\" in perlobj for a detailed " |
| 213 |
#| "explanation.) If that thing happens to be an object, the object is " |
| 214 |
#| "destructed. See perlobj for more about objects. (In a sense, everything " |
| 215 |
#| "in Perl is an object, but we usually reserve the word for references to " |
| 216 |
#| "objects that have been officially \\*(L\"blessed\\*(R\" into a class " |
| 217 |
#| "package.)" |
| 218 |
msgid "" |
| 219 |
"Hard references are smart--they keep track of reference counts for you, " |
| 220 |
"automatically freeing the thing referred to when its reference count goes to " |
| 221 |
"zero. (Reference counts for values in self-referential or cyclic data " |
| 222 |
"structures may not go to zero without a little help; see \"Circular " |
| 223 |
"References\" for a detailed explanation.) If that thing happens to be an " |
| 224 |
"object, the object is destructed. See perlobj for more about objects. (In " |
| 225 |
"a sense, everything in Perl is an object, but we usually reserve the word " |
| 226 |
"for references to objects that have been officially \"blessed\" into a class " |
| 227 |
"package.)" |
| 228 |
msgstr "" |
| 229 |
"Odwołania stałe są sprytne \\*(-- utrzymują za ciebie liczniki odwołań, " |
| 230 |
"automatycznie zwalniając rzecz, do której odnosi się odwołanie, jeśli jej " |
| 231 |
"licznik odwołań zejdzie do zera. (Uwaga: liczniki odwołań dla wartości w " |
| 232 |
"strukturach danych odnoszących się do samych na siebie (self-referential) " |
| 233 |
"lub strukturach cyklicznych mogą nie schodzić do zera bez pewnej drobnej " |
| 234 |
"pomocy; patrz sekcja I<Two-Phased Garbage Collection> w podręczniku " |
| 235 |
"I<perlobj>(1), zawierająca bardziej szczegółowy opis.) Jeśli taka rzecz " |
| 236 |
"jest obiektem, to obiekt jest niszczony. Więcej o obiektach znajdziesz w " |
| 237 |
"podręczniku I<perlobj>(1). (W pewnym sensie, wszystko w Perlu jest obiektem, " |
| 238 |
"ale zwykle rezerwujemy to słowo dla odwołań do obiektów, które zostały " |
| 239 |
"oficjalnie \"pobłogosławione\" (\\*(L\"blessed\\*(R\") [tj.zakwalifikowane " |
| 240 |
"jako obiekty] w pakiecie klasy.)" |
| 241 |
|
| 242 |
#. type: Plain text |
| 243 |
#: debian-trixie debian-unstable |
| 244 |
#, fuzzy |
| 245 |
#| msgid "" |
| 246 |
#| "Symbolic references are names of variables or other objects, just as a " |
| 247 |
#| "symbolic link in a Unix filesystem contains merely the name of a file. " |
| 248 |
#| "The CW<*glob> notation is something of a symbolic reference. (Symbolic " |
| 249 |
#| "references are sometimes called \\*(L\"soft references\\*(R\", but please " |
| 250 |
#| "don't call them that; references are confusing enough without useless " |
| 251 |
#| "synonyms.)" |
| 252 |
msgid "" |
| 253 |
"Symbolic references are names of variables or other objects, just as a " |
| 254 |
"symbolic link in a Unix filesystem contains merely the name of a file. The " |
| 255 |
"CW<*glob> notation is something of a symbolic reference. (Symbolic " |
| 256 |
"references are sometimes called \"soft references\", but please don't call " |
| 257 |
"them that; references are confusing enough without useless synonyms.)" |
| 258 |
msgstr "" |
| 259 |
"Odwołania symboliczne są nazwami zmiennych lub innych obiektów; zupełnie tak " |
| 260 |
"jak dowiązania symboliczne (symbolic links) w uniksowym systemie plików " |
| 261 |
"zawierają wyłącznie nazwę pliku. Notacja CW<*glob> jest rodzajem odwołania " |
| 262 |
"symbolicznego. (Odwołania symboliczne nazywane są czasami \\*(L\"soft " |
| 263 |
"references\\*(R\" [odwołaniami miękkimi, w przeciwieństwie do \"hard r.\"-" |
| 264 |
"\"twardych\"], ale proszę nie nazywaj ich tak; odwołania są wystarczająco " |
| 265 |
"zbijające z pantałyku bez zbędnych synonimów.)" |
| 266 |
|
| 267 |
#. type: IX |
| 268 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 269 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 270 |
#, no-wrap |
| 271 |
msgid "reference, symbolic reference, soft symbolic reference soft reference" |
| 272 |
msgstr "" |
| 273 |
|
| 274 |
#. type: Plain text |
| 275 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 276 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 277 |
#, fuzzy |
| 278 |
#| msgid "" |
| 279 |
#| "In contrast, hard references are more like hard links in a Unix file " |
| 280 |
#| "system: They are used to access an underlying object without concern for " |
| 281 |
#| "what its (other) name is. When the word \\*(L\"reference\\*(R\" is used " |
| 282 |
#| "without an adjective, as in the following paragraph, it is usually " |
| 283 |
#| "talking about a hard reference." |
| 284 |
msgid "" |
| 285 |
"In contrast, hard references are more like hard links in a Unix file system: " |
| 286 |
"They are used to access an underlying object without concern for what its " |
| 287 |
"(other) name is. When the word \"reference\" is used without an adjective, " |
| 288 |
"as in the following paragraph, it is usually talking about a hard reference." |
| 289 |
msgstr "" |
| 290 |
"W przeciwieństwie do nich, odwołania stałe przypominają dowiązania stałe " |
| 291 |
"(hard links) uniksowego systemu plików: służą do udostępniania obiektu bez " |
| 292 |
"zwracania uwagi na to, jaka jest jego (inna) nazwa. Tam, gdzie użyto słowa " |
| 293 |
"\\*(L\"odwołanie\\*(R\" bez przymiotnika, jak w poniższym akapicie, mówi się " |
| 294 |
"zwykle o odwołaniu stałym." |
| 295 |
|
| 296 |
#. type: IX |
| 297 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 298 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 299 |
#, no-wrap |
| 300 |
msgid "reference, hard hard reference" |
| 301 |
msgstr "" |
| 302 |
|
| 303 |
#. type: Plain text |
| 304 |
#: debian-trixie debian-unstable |
| 305 |
#, fuzzy |
| 306 |
#| msgid "" |
| 307 |
#| "References are easy to use in Perl. There is just one overriding " |
| 308 |
#| "principle: Perl does no implicit referencing or dereferencing. When a " |
| 309 |
#| "scalar is holding a reference, it always behaves as a simple scalar. It " |
| 310 |
#| "doesn't magically start being an array or hash or subroutine; you have to " |
| 311 |
#| "tell it explicitly to do so, by dereferencing it." |
| 312 |
msgid "" |
| 313 |
"References are easy to use in Perl. There is just one overriding principle: " |
| 314 |
"in general, Perl does no implicit referencing or dereferencing. When a " |
| 315 |
"scalar is holding a reference, it always behaves as a simple scalar. It " |
| 316 |
"doesn't magically start being an array or hash or subroutine; you have to " |
| 317 |
"tell it explicitly to do so, by dereferencing it." |
| 318 |
msgstr "" |
| 319 |
"W Perlu odwołania są łatwe w użyciu. Jest tylko jedna nadrzędna zasada: Perl " |
| 320 |
"nie wykonuje niejawnego odwoływania bądź dereferowania odwołań. " |
| 321 |
"[Dereferencing: odniesienie się z powrotem do obiektu, rzeczy na którą " |
| 322 |
"wskazuje odwołanie]. Gdy skalar przechowuje odwołanie, to zawsze zachowuje " |
| 323 |
"się jak zwykły skalar. Nie zaczyna magicznie być tablicą, haszem czy " |
| 324 |
"procedurą; musisz wprost nakazać takie zachowanie, wykonując dereferencję." |
| 325 |
|
| 326 |
#. type: IX |
| 327 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 328 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 329 |
#, no-wrap |
| 330 |
msgid "Making References" |
| 331 |
msgstr "Tworzenie odwołań" |
| 332 |
|
| 333 |
#. type: IX |
| 334 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 335 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 336 |
#, no-wrap |
| 337 |
msgid "reference, creation referencing" |
| 338 |
msgstr "" |
| 339 |
|
| 340 |
#. type: IX |
| 341 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 342 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 343 |
#, no-wrap |
| 344 |
msgid "Subsection" |
| 345 |
msgstr "Subsection" |
| 346 |
|
| 347 |
#. type: Plain text |
| 348 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 349 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 350 |
msgid "References can be created in several ways." |
| 351 |
msgstr "Odwołania mogą być tworzone na kilka sposobów." |
| 352 |
|
| 353 |
#. type: Plain text |
| 354 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 355 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 356 |
msgid "I<Backslash Operator>" |
| 357 |
msgstr "" |
| 358 |
|
| 359 |
#. type: IX |
| 360 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 361 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 362 |
#, fuzzy, no-wrap |
| 363 |
#| msgid "backslash" |
| 364 |
msgid "\\ backslash" |
| 365 |
msgstr "odwrotny ukośnik (backslash)" |
| 366 |
|
| 367 |
#. type: IX |
| 368 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 369 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 370 |
#, no-wrap |
| 371 |
msgid "Backslash Operator" |
| 372 |
msgstr "" |
| 373 |
|
| 374 |
#. type: Plain text |
| 375 |
#: debian-trixie debian-unstable |
| 376 |
msgid "" |
| 377 |
"By using the backslash operator on a variable, subroutine, or value. (This " |
| 378 |
"works much like the & (address-of) operator in C.) This typically creates " |
| 379 |
"I<another> reference to a variable, because there's already a reference to " |
| 380 |
"the variable in the symbol table. But the symbol table reference might go " |
| 381 |
"away, and you'll still have the reference that the backslash returned. Here " |
| 382 |
"are some examples:" |
| 383 |
msgstr "" |
| 384 |
"Przez zastosowanie operatora odwróconego ukośnika do zmiennej, procedury lub " |
| 385 |
"wartości. (Działa to bardzo podobnie do operatora & (zwracającego adres) w " |
| 386 |
"języku C.) Zauważ, że konstrukcja ta tworzy I<\\s-1KOLEJNE\\s0> odwołanie do " |
| 387 |
"zmiennej, gdyż w tablicy symboli istnieje już odwołanie do tej zmiennej. " |
| 388 |
"Jednak odwołanie z tablicy symboli może zniknąć, a nadal będziesz mieć " |
| 389 |
"odwołanie, które zwrócił odwrócony ukośnik. Oto kilka przykładów:" |
| 390 |
|
| 391 |
#. type: Plain text |
| 392 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 393 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 394 |
#, fuzzy, no-wrap |
| 395 |
#| msgid "\\& $scalarref = \\e$foo; \\& $arrayref = \\e@ARGV; \\& $hashref = \\e%ENV; \\& $coderef = \\e&handler; \\& $globref = \\e*foo;" |
| 396 |
msgid "" |
| 397 |
"\\& $scalarref = \\e$foo;\n" |
| 398 |
"\\& $arrayref = \\e@ARGV;\n" |
| 399 |
"\\& $hashref = \\e%ENV;\n" |
| 400 |
"\\& $coderef = \\e&handler;\n" |
| 401 |
"\\& $globref = \\e*foo;\n" |
| 402 |
msgstr "\\& $scalarref = \\e$foo; \\& $arrayref = \\e@ARGV; \\& $hashref = \\e%ENV; \\& $coderef = \\e&handler; \\& $globref = \\e*foo;" |
| 403 |
|
| 404 |
#. type: Plain text |
| 405 |
#: debian-trixie debian-unstable |
| 406 |
#, fuzzy |
| 407 |
#| msgid "" |
| 408 |
#| "It isn't possible to create a true reference to an \\s-1IO\\s0 handle " |
| 409 |
#| "(filehandle or dirhandle) using the backslash operator. The most you can " |
| 410 |
#| "get is a reference to a typeglob, which is actually a complete symbol " |
| 411 |
#| "table entry. But see the explanation of the CW<*foo{THING}> syntax " |
| 412 |
#| "below. However, you can still use type globs and globrefs as though they " |
| 413 |
#| "were \\s-1IO\\s0 handles." |
| 414 |
msgid "" |
| 415 |
"It isn't possible to create a true reference to an IO handle (filehandle or " |
| 416 |
"dirhandle) using the backslash operator. The most you can get is a " |
| 417 |
"reference to a typeglob, which is actually a complete symbol table entry. " |
| 418 |
"But see the explanation of the CW<*foo{THING}> syntax below. However, you " |
| 419 |
"can still use type globs and globrefs as though they were IO handles." |
| 420 |
msgstr "" |
| 421 |
"Przy użyciu operatora odwróconego ukośnika nie jest możliwe utworzenie " |
| 422 |
"prawdziwego odwołania do uchwytu \\s-1IO\\s0 (uchwytu pliku lub katalogu). " |
| 423 |
"Możesz co najwyżej uzyskać odwołanie do typeglob będącego faktycznie pełnym " |
| 424 |
"wpisem w tablicy symboli. (Przeczytaj jednak poniżej objaśnienie składni " |
| 425 |
"CW<*foo{COŚ}>.) Mimo to, możesz nadal używać typeglob i odwołań do nich " |
| 426 |
"jakby były one uchwytami \\s-1IO\\s0." |
| 427 |
|
| 428 |
#. type: Plain text |
| 429 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 430 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 431 |
msgid "I<Square Brackets>" |
| 432 |
msgstr "" |
| 433 |
|
| 434 |
#. type: IX |
| 435 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 436 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 437 |
#, no-wrap |
| 438 |
msgid "array, anonymous [ [] square bracket bracket, square arrayref array reference reference, array" |
| 439 |
msgstr "" |
| 440 |
|
| 441 |
#. type: IX |
| 442 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 443 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 444 |
#, no-wrap |
| 445 |
msgid "Square Brackets" |
| 446 |
msgstr "" |
| 447 |
|
| 448 |
#. type: Plain text |
| 449 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 450 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 451 |
msgid "A reference to an anonymous array can be created using square brackets:" |
| 452 |
msgstr "" |
| 453 |
"Odwołanie do anonimowej tablicy można stworzyć posługując się nawiasami " |
| 454 |
"kwadratowymi:" |
| 455 |
|
| 456 |
#. type: Plain text |
| 457 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 458 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 459 |
#, fuzzy, no-wrap |
| 460 |
#| msgid "\\& $arrayref = [1, 2, ['a', 'b', 'c']];" |
| 461 |
msgid "\\& $arrayref = [1, 2, [\\*(Aqa\\*(Aq, \\*(Aqb\\*(Aq, \\*(Aqc\\*(Aq]];\n" |
| 462 |
msgstr "\\& $arrayref = [1, 2, ['a', 'b', 'c']];" |
| 463 |
|
| 464 |
#. type: Plain text |
| 465 |
#: debian-trixie debian-unstable |
| 466 |
#, fuzzy |
| 467 |
#| msgid "" |
| 468 |
#| "Here we've created a reference to an anonymous array of three elements " |
| 469 |
#| "whose final element is itself a reference to another anonymous array of " |
| 470 |
#| "three elements. (The multidimensional syntax described later can be used " |
| 471 |
#| "to access this. For example, after the above, CW<\\*(C`$arrayref-E<gt>[2]" |
| 472 |
#| "[1]\\*(C'> would have the value \\*(L\"b\\*(R\".)" |
| 473 |
msgid "" |
| 474 |
"Here we've created a reference to an anonymous array of three elements whose " |
| 475 |
"final element is itself a reference to another anonymous array of three " |
| 476 |
"elements. (The multidimensional syntax described later can be used to " |
| 477 |
"access this. For example, after the above, CW<\\*(C`$arrayref-E<gt>[2]" |
| 478 |
"[1]\\*(C'> would have the value \"b\".)" |
| 479 |
msgstr "" |
| 480 |
"Utworzyliśmy odwołanie do anonimowej tablicy trzech elementów, której " |
| 481 |
"ostatni element jest z kolei odwołaniem do innej anonimowej tablicy trzech " |
| 482 |
"elementów. (Dostęp do niej umożliwi opisana dalej składnia tablic " |
| 483 |
"wielowymiarowych. Na przykład, dla powyższego przykładu CW<$arrayref-" |
| 484 |
"E<gt>[2][1]> zwraca wartość \\*(L\"b\\*(R\".)" |
| 485 |
|
| 486 |
#. type: Plain text |
| 487 |
#: debian-trixie debian-unstable |
| 488 |
#, fuzzy |
| 489 |
#| msgid "" |
| 490 |
#| "Taking a reference to an enumerated list is not the same as using square " |
| 491 |
#| "brackets\\*(--instead it's the same as creating a list of references!" |
| 492 |
msgid "" |
| 493 |
"Taking a reference to an enumerated list is not the same as using square " |
| 494 |
"brackets--instead it's the same as creating a list of references!" |
| 495 |
msgstr "" |
| 496 |
"Zauważ, że stworzenie odwołania do listy wyliczanej nie jest tym samym, co " |
| 497 |
"użycie nawiasów kwadratowych. Jest to natomiast tym samym, co stworzenie " |
| 498 |
"listy odwołań!" |
| 499 |
|
| 500 |
#. type: Plain text |
| 501 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 502 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 503 |
#, fuzzy, no-wrap |
| 504 |
#| msgid "\\& @list = (\\e$a, \\e@b, \\e%c); \\& @list = \\e($a, @b, %c); # same thing!" |
| 505 |
msgid "" |
| 506 |
"\\& @list = (\\e$x, \\e@y, \\e%z);\n" |
| 507 |
"\\& @list = \\e($x, @y, %z); # same thing!\n" |
| 508 |
msgstr "\\& @list = (\\e$a, \\e@b, \\e%c); \\& @list = \\e($a, @b, %c); # to samo!" |
| 509 |
|
| 510 |
#. type: Plain text |
| 511 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 512 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 513 |
msgid "" |
| 514 |
"As a special case, CW<\\*(C`\\e(@foo)\\*(C'> returns a list of references to " |
| 515 |
"the contents of CW<@foo>, not a reference to CW<@foo> itself. Likewise for " |
| 516 |
"CW<%foo>, except that the key references are to copies (since the keys are " |
| 517 |
"just strings rather than full-fledged scalars)." |
| 518 |
msgstr "" |
| 519 |
"W przypadku szczególnym, CW<\\*(C`\\e(@foo)\\*(C'> zwraca listę odwołań do " |
| 520 |
"zawartości CW<@foo>, nie zaś odwołanie do samej CW<@foo>. Podobnie jest dla " |
| 521 |
"CW<%foo>, z wyjątkiem tego, że odwołania-klucze odnoszą się do kopii (gdyż " |
| 522 |
"klucze są łańcuchami znakowymi, a nie dowolnymi skalarami)." |
| 523 |
|
| 524 |
#. type: Plain text |
| 525 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 526 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 527 |
msgid "I<Curly Brackets>" |
| 528 |
msgstr "" |
| 529 |
|
| 530 |
#. type: IX |
| 531 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 532 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 533 |
#, no-wrap |
| 534 |
msgid "hash, anonymous { {} curly bracket bracket, curly brace hashref hash reference reference, hash" |
| 535 |
msgstr "" |
| 536 |
|
| 537 |
#. type: IX |
| 538 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 539 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 540 |
#, no-wrap |
| 541 |
msgid "Curly Brackets" |
| 542 |
msgstr "" |
| 543 |
|
| 544 |
#. type: Plain text |
| 545 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 546 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 547 |
msgid "A reference to an anonymous hash can be created using curly brackets:" |
| 548 |
msgstr "" |
| 549 |
"Odwołanie do anonimowej tablicy asocjacyjnej (hasza) można utworzyć używając " |
| 550 |
"nawiasów klamrowych:" |
| 551 |
|
| 552 |
#. type: Plain text |
| 553 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 554 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 555 |
#, fuzzy, no-wrap |
| 556 |
#| msgid "\\& $hashref = { \\& 'Adam' =E<gt> 'Eve', \\& 'Clyde' =E<gt> 'Bonnie', \\& };" |
| 557 |
msgid "" |
| 558 |
"\\& $hashref = {\n" |
| 559 |
"\\& \\*(AqAdam\\*(Aq =E<gt> \\*(AqEve\\*(Aq,\n" |
| 560 |
"\\& \\*(AqClyde\\*(Aq =E<gt> \\*(AqBonnie\\*(Aq,\n" |
| 561 |
"\\& };\n" |
| 562 |
msgstr "\\& $hashref = { \\& 'Adam' =E<gt> 'Eve', \\& 'Clyde' =E<gt> 'Bonnie', \\& };" |
| 563 |
|
| 564 |
#. type: Plain text |
| 565 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 566 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 567 |
#, fuzzy |
| 568 |
#| msgid "" |
| 569 |
#| "Anonymous hash and array composers like these can be intermixed freely to " |
| 570 |
#| "produce as complicated a structure as you want. The multidimensional " |
| 571 |
#| "syntax described below works for these too. The values above are " |
| 572 |
#| "literals, but variables and expressions would work just as well, because " |
| 573 |
#| "assignment operators in Perl (even within I<local()> or I<my()>) are " |
| 574 |
#| "executable statements, not compile-time declarations." |
| 575 |
msgid "" |
| 576 |
"Anonymous hash and array composers like these can be intermixed freely to " |
| 577 |
"produce as complicated a structure as you want. The multidimensional syntax " |
| 578 |
"described below works for these too. The values above are literals, but " |
| 579 |
"variables and expressions would work just as well, because assignment " |
| 580 |
"operators in Perl (even within B<local()> or B<my()>) are executable " |
| 581 |
"statements, not compile-time declarations." |
| 582 |
msgstr "" |
| 583 |
"Powyższe konstruktory anonimowych haszy i tablic można swobodnie łączyć. " |
| 584 |
"Umożliwia to otrzymywanie dowolnie skomplikowanych struktur. Opisana " |
| 585 |
"składnia wielowymiarowych tablic/haszy działa także dla nich. Wartości w " |
| 586 |
"powyższym przykładzie były literałami, ale równie dobrze mogłyby być " |
| 587 |
"zmiennymi czy wyrażeniami, gdyż perlowe operatory przypisania (nawet " |
| 588 |
"wewnątrz I<local()> czy I<my()>) są wykonywalnymi instrukcjami, a nie " |
| 589 |
"jedynie deklaracjami dla fazy kompilacji." |
| 590 |
|
| 591 |
#. type: Plain text |
| 592 |
#: debian-trixie debian-unstable |
| 593 |
#, fuzzy |
| 594 |
#| msgid "" |
| 595 |
#| "Because curly brackets (braces) are used for several other things " |
| 596 |
#| "including BLOCKs, you may occasionally have to disambiguate braces at the " |
| 597 |
#| "beginning of a statement by putting a CW<\\*(C`+\\*(C'> or a " |
| 598 |
#| "CW<\\*(C`return\\*(C'> in front so that Perl realizes the opening brace " |
| 599 |
#| "isn't starting a \\s-1BLOCK\\s0. The economy and mnemonic value of using " |
| 600 |
#| "curlies is deemed worth this occasional extra hassle." |
| 601 |
msgid "" |
| 602 |
"Because curly brackets (braces) are used for several other things including " |
| 603 |
"BLOCKs, you may occasionally have to disambiguate braces at the beginning of " |
| 604 |
"a statement by putting a CW<\\*(C`+\\*(C'> or a CW<\\*(C`return\\*(C'> in " |
| 605 |
"front so that Perl realizes the opening brace isn't starting a BLOCK. The " |
| 606 |
"economy and mnemonic value of using curlies is deemed worth this occasional " |
| 607 |
"extra hassle." |
| 608 |
msgstr "" |
| 609 |
"Ponieważ nawiasy klamrowe służą do kilku innych rzeczy, a także do tworzenia " |
| 610 |
"BLOKów, możesz być czasem zmuszony do uniknięcia dwuznaczności tych nawiasów " |
| 611 |
"na początku instrukcji. Wystarczy wówczas umieszczenie przed nimi CW<\\*(C`+" |
| 612 |
"\\*(C'> lub CW<\\*(C`return\\*(C'>, by Perl zorientował się, że otwierający " |
| 613 |
"nawias klamrowy nie rozpoczyna \\s-1BLOK\\s0u. Oszczędność i zalety " |
| 614 |
"mnemoniczne użycia nawiasów klamrowych warte są takiego sporadycznego " |
| 615 |
"zamieszania." |
| 616 |
|
| 617 |
#. type: Plain text |
| 618 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 619 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 620 |
msgid "" |
| 621 |
"For example, if you wanted a function to make a new hash and return a " |
| 622 |
"reference to it, you have these options:" |
| 623 |
msgstr "" |
| 624 |
"Na przykład, jeśli chciałbyś, by funkcja tworzyła nowy hasz i zwracała " |
| 625 |
"odwołanie do niego, to masz takie możliwości:" |
| 626 |
|
| 627 |
#. type: Plain text |
| 628 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 629 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 630 |
#, fuzzy, no-wrap |
| 631 |
#| msgid "\\& sub hashem { { @_ } } # silently wrong \\& sub hashem { +{ @_ } } # ok \\& sub hashem { return { @_ } } # ok" |
| 632 |
msgid "" |
| 633 |
"\\& sub hashem { { @_ } } # silently wrong\n" |
| 634 |
"\\& sub hashem { +{ @_ } } # ok\n" |
| 635 |
"\\& sub hashem { return { @_ } } # ok\n" |
| 636 |
msgstr "\\& sub hashem { { @_ } } # źle, ale bez komunikatu o błędzie \\& sub hashem { +{ @_ } } # ok \\& sub hashem { return { @_ } } # ok" |
| 637 |
|
| 638 |
#. type: Plain text |
| 639 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 640 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 641 |
msgid "On the other hand, if you want the other meaning, you can do this:" |
| 642 |
msgstr "" |
| 643 |
"Z drugiej strony, jeśli chcesz drugiego znaczenia nawiasów (blok), zrób tak:" |
| 644 |
|
| 645 |
#. type: Plain text |
| 646 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 647 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 648 |
#, fuzzy, no-wrap |
| 649 |
#| msgid "\\& sub showem { { @_ } } # ambiguous (currently ok, but may change) \\& sub showem { {; @_ } } # ok \\& sub showem { { return @_ } } # ok" |
| 650 |
msgid "" |
| 651 |
"\\& sub showem { { @_ } } # ambiguous (currently ok,\n" |
| 652 |
"\\& # but may change)\n" |
| 653 |
"\\& sub showem { {; @_ } } # ok\n" |
| 654 |
"\\& sub showem { { return @_ } } # ok\n" |
| 655 |
msgstr "\\& sub showem { { @_ } } # dwuznaczne (obecnie ok, ale może się zmienić) \\& sub showem { {; @_ } } # ok \\& sub showem { { return @_ } } # ok" |
| 656 |
|
| 657 |
#. type: Plain text |
| 658 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 659 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 660 |
#, fuzzy |
| 661 |
#| msgid "" |
| 662 |
#| "The leading CW<\\*(C`+{\\*(C'> and CW<\\*(C`{;\\*(C'> always serve to " |
| 663 |
#| "disambiguate the expression to mean either the \\s-1HASH\\s0 reference, " |
| 664 |
#| "or the \\s-1BLOCK\\s0." |
| 665 |
msgid "" |
| 666 |
"The leading CW<\\*(C`+{\\*(C'> and CW<\\*(C`{;\\*(C'> always serve to " |
| 667 |
"disambiguate the expression to mean either the HASH reference, or the BLOCK." |
| 668 |
msgstr "" |
| 669 |
"Zwróć uwagę, że początkowe CW<\\*(C`+{\\*(C'> i CW<\\*(C`{;\\*(C'> zawsze " |
| 670 |
"służą do wykluczenia dwuznaczności wyrażenia, aby znaczyło albo odwołanie do " |
| 671 |
"\\s-1HASZ\\s0a albo \\s-1BLOK\\s0." |
| 672 |
|
| 673 |
#. type: Plain text |
| 674 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 675 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 676 |
msgid "I<Anonymous Subroutines>" |
| 677 |
msgstr "" |
| 678 |
|
| 679 |
#. type: IX |
| 680 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 681 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 682 |
#, no-wrap |
| 683 |
msgid "subroutine, anonymous subroutine, reference reference, subroutine scope, lexical closure lexical lexical scope" |
| 684 |
msgstr "" |
| 685 |
|
| 686 |
#. type: IX |
| 687 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 688 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 689 |
#, no-wrap |
| 690 |
msgid "Anonymous Subroutines" |
| 691 |
msgstr "" |
| 692 |
|
| 693 |
#. type: Plain text |
| 694 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 695 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 696 |
msgid "" |
| 697 |
"A reference to an anonymous subroutine can be created by using " |
| 698 |
"\\&CW<\\*(C`sub\\*(C'> without a subname:" |
| 699 |
msgstr "" |
| 700 |
"Można utworzyć odwołanie do anonimowej procedury używając " |
| 701 |
"\\&CW<\\*(C`sub\\*(C'> bez nazwy procedury:" |
| 702 |
|
| 703 |
#. type: Plain text |
| 704 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 705 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 706 |
#, fuzzy, no-wrap |
| 707 |
#| msgid "\\& $coderef = sub { print \"Boink!\\en\" };" |
| 708 |
msgid "\\& $coderef = sub { print \"Boink!\\en\" };\n" |
| 709 |
msgstr "\\& $coderef = sub { print \"Bums!\\en\" };" |
| 710 |
|
| 711 |
#. type: Plain text |
| 712 |
#: debian-trixie debian-unstable |
| 713 |
#, fuzzy |
| 714 |
#| msgid "" |
| 715 |
#| "Note the semicolon. Except for the code inside not being immediately " |
| 716 |
#| "executed, a CW<\\*(C`sub {}\\*(C'> is not so much a declaration as it is " |
| 717 |
#| "an operator, like CW<\\*(C`do{}\\*(C'> or CW<\\*(C`eval{}\\*(C'>. " |
| 718 |
#| "(However, no matter how many times you execute that particular line " |
| 719 |
#| "(unless you're in an \\&CW<\\*(C`eval(\"...\")\\*(C'>), CW<$coderef> will " |
| 720 |
#| "still have a reference to the I<same> anonymous subroutine.)" |
| 721 |
msgid "" |
| 722 |
"Note the semicolon. Except for the code inside not being immediately " |
| 723 |
"executed, a CW<\\*(C`sub {}\\*(C'> is not so much a declaration as it is an " |
| 724 |
"operator, like CW<\\*(C`do{}\\*(C'> or CW<\\*(C`eval{}\\*(C'>. (However, no " |
| 725 |
"matter how many times you execute that particular line (unless you're in an " |
| 726 |
"\\&CW<eval(\"...\")>), CW<$coderef> will still have a reference to the " |
| 727 |
"I<same> anonymous subroutine.)" |
| 728 |
msgstr "" |
| 729 |
"Zwróć uwagę na obecność średnika. Poza faktem, że wewnętrzny kod nie jest " |
| 730 |
"wykonywany natychmiast, CW<\\*(C`sub {}\\*(C'> jest bardziej operatorem niż " |
| 731 |
"deklaracją, podobnie zresztą jak CW<\\*(C`do{}\\*(C'> czy CW<\\*(C`eval{}" |
| 732 |
"\\*(C'>. (Jednak, niezależnie od tego, ile razy wykonasz powyższą linię " |
| 733 |
"(chyba że jesteś wewnątrz \\&CW<\\*(C`eval(\"...\")\\*(C'>), CW<$coderef> " |
| 734 |
"wciąż będzie zawierać odwołanie do I<TEJ SAMEJ> anonimowej procedury.)" |
| 735 |
|
| 736 |
#. type: Plain text |
| 737 |
#: debian-trixie debian-unstable |
| 738 |
#, fuzzy |
| 739 |
#| msgid "" |
| 740 |
#| "Anonymous subroutines act as closures with respect to I<my()> variables, " |
| 741 |
#| "that is, variables lexically visible within the current scope. Closure " |
| 742 |
#| "is a notion out of the Lisp world that says if you define an anonymous " |
| 743 |
#| "function in a particular lexical context, it pretends to run in that " |
| 744 |
#| "context even when it's called outside the context." |
| 745 |
msgid "" |
| 746 |
"Anonymous subroutines act as closures with respect to B<my()> variables, " |
| 747 |
"that is, variables lexically visible within the current scope. Closure is a " |
| 748 |
"notion out of the Lisp world that says if you define an anonymous function " |
| 749 |
"in a particular lexical context, it pretends to run in that context even " |
| 750 |
"when it's called outside the context." |
| 751 |
msgstr "" |
| 752 |
"Procedury anonimowe działają jak zamknięcia (closures) w odniesieniu do " |
| 753 |
"zmiennych I<my()>, to znaczy, zmiennych widocznych leksykalnie w bieżącym " |
| 754 |
"zakresie. Zamknięcie jest pojęciem ze świata Lispa, mówiącym, że jeśli " |
| 755 |
"zdefiniujesz anonimową funkcję w konkretnym kontekście leksykalnym, to " |
| 756 |
"będzie ona działać w tym kontekście nawet jeśli została wywołana poza nim." |
| 757 |
|
| 758 |
#. type: Plain text |
| 759 |
#: debian-trixie debian-unstable |
| 760 |
#, fuzzy |
| 761 |
#| msgid "" |
| 762 |
#| "In human terms, it's a funny way of passing arguments to a subroutine " |
| 763 |
#| "when you define it as well as when you call it. It's useful for setting " |
| 764 |
#| "up little bits of code to run later, such as callbacks. You can even do " |
| 765 |
#| "object-oriented stuff with it, though Perl already provides a different " |
| 766 |
#| "mechanism to do that\\*(--see perlobj." |
| 767 |
msgid "" |
| 768 |
"In human terms, it's a funny way of passing arguments to a subroutine when " |
| 769 |
"you define it as well as when you call it. It's useful for setting up " |
| 770 |
"little bits of code to run later, such as callbacks. You can even do object-" |
| 771 |
"oriented stuff with it, though Perl already provides a different mechanism " |
| 772 |
"to do that--see perlobj." |
| 773 |
msgstr "" |
| 774 |
"Mówiąc po ludzku, jest to zabawny sposób przesyłania argumentów do procedury " |
| 775 |
"zarówno gdy ją definiujesz jak i wtedy gdy ją wywołujesz. Przydaje się to do " |
| 776 |
"tworzenia małych fragmentów kodu do późniejszego uruchamiania, jak np. " |
| 777 |
"wywołania wsteczne (callbacks). Przy ich pomocy możesz robić nawet rzeczy " |
| 778 |
"zorientowane obiektowo, choć Perl zapewnia już odmienny mechanizm operowania " |
| 779 |
"obiektami \\*(--patrz podręcznik B<perlobj>(1)." |
| 780 |
|
| 781 |
#. type: Plain text |
| 782 |
#: debian-trixie debian-unstable |
| 783 |
#, fuzzy |
| 784 |
msgid "" |
| 785 |
"You might also think of closure as a way to write a subroutine template " |
| 786 |
"without using B<eval()>. Here's a small example of how closures work:" |
| 787 |
msgstr "" |
| 788 |
"Możesz również myśleć o zamknięciach jak o sposobie pisania szablonów bez " |
| 789 |
"używania eval. (Faktycznie, w wersji 5.000, eval było I<jedyną> metodą " |
| 790 |
"uzyskania zamknięć. Jeśli posługujesz się zamknięciami, możesz potrzebować " |
| 791 |
"\\*(L\"require 5.001\\*(R\".) A to mały przykład tego, jak działają " |
| 792 |
"zamknięcia:" |
| 793 |
|
| 794 |
#. type: Plain text |
| 795 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 796 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 797 |
#, fuzzy, no-wrap |
| 798 |
#| msgid "\\& sub newprint { \\& my $x = shift; \\& return sub { my $y = shift; print \"$x, $y!\\en\"; }; \\& } \\& $h = newprint(\"Howdy\"); \\& $g = newprint(\"Greetings\");" |
| 799 |
msgid "" |
| 800 |
"\\& sub newprint {\n" |
| 801 |
"\\& my $x = shift;\n" |
| 802 |
"\\& return sub { my $y = shift; print \"$x, $y!\\en\"; };\n" |
| 803 |
"\\& }\n" |
| 804 |
"\\& $h = newprint(\"Howdy\");\n" |
| 805 |
"\\& $g = newprint(\"Greetings\");\n" |
| 806 |
"\\&\n" |
| 807 |
"\\& # Time passes...\n" |
| 808 |
"\\&\n" |
| 809 |
"\\& &$h(\"world\");\n" |
| 810 |
"\\& &$g(\"earthlings\");\n" |
| 811 |
msgstr "\\& sub newprint { \\& my $x = shift; \\& return sub { my $y = shift; print \"$x, $y!\\en\"; }; \\& } \\& $h = newprint(\"Howdy\"); \\& $g = newprint(\"Greetings\");" |
| 812 |
|
| 813 |
#. type: Plain text |
| 814 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 815 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 816 |
msgid "This prints" |
| 817 |
msgstr "Drukuje to" |
| 818 |
|
| 819 |
#. type: Plain text |
| 820 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 821 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 822 |
#, fuzzy, no-wrap |
| 823 |
#| msgid "\\& Howdy, world! \\& Greetings, earthlings!" |
| 824 |
msgid "" |
| 825 |
"\\& Howdy, world!\n" |
| 826 |
"\\& Greetings, earthlings!\n" |
| 827 |
msgstr "\\& Howdy, world! \\& Greetings, earthlings!" |
| 828 |
|
| 829 |
#. type: Plain text |
| 830 |
#: debian-trixie debian-unstable |
| 831 |
#, fuzzy |
| 832 |
#| msgid "" |
| 833 |
#| "Note particularly that CW<$x> continues to refer to the value passed into " |
| 834 |
#| "I<newprint()> I<despite> \\*(L\"my CW<$x>\\*(R\" having gone out of scope " |
| 835 |
#| "by the time the anonymous subroutine runs. That's what a closure is all " |
| 836 |
#| "about." |
| 837 |
msgid "" |
| 838 |
"Note particularly that CW<$x> continues to refer to the value passed into " |
| 839 |
"B<newprint()> I<despite> \"my CW<$x>\" having gone out of scope by the time " |
| 840 |
"the anonymous subroutine runs. That's what a closure is all about." |
| 841 |
msgstr "" |
| 842 |
"Zwróć uwagę szczególnie na to, że CW<$x> nadal odnosi się do wartości " |
| 843 |
"przesłanej do I<newprint()>, I<mimo że> zmienna \\*(L\"my CW<$x>\\*(R\" " |
| 844 |
"pozornie wyszła poza swój zakres, w momencie gdy wywołano anonimową " |
| 845 |
"procedurę. O to właśnie chodzi w zamknięciu." |
| 846 |
|
| 847 |
#. type: Plain text |
| 848 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 849 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 850 |
msgid "" |
| 851 |
"This applies only to lexical variables, by the way. Dynamic variables " |
| 852 |
"continue to work as they have always worked. Closure is not something that " |
| 853 |
"most Perl programmers need trouble themselves about to begin with." |
| 854 |
msgstr "" |
| 855 |
"Przy okazji: odnosi się do tylko do zmiennych leksykalnych. Zmienne " |
| 856 |
"dynamiczne działają nadal tak jak zawsze. Zamknięcie nie jest czymś, o co " |
| 857 |
"musiałaby się martwić większość programistów Perla." |
| 858 |
|
| 859 |
#. type: Plain text |
| 860 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 861 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 862 |
msgid "I<Constructors>" |
| 863 |
msgstr "" |
| 864 |
|
| 865 |
#. type: IX |
| 866 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 867 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 868 |
#, no-wrap |
| 869 |
msgid "constructor new" |
| 870 |
msgstr "" |
| 871 |
|
| 872 |
#. type: IX |
| 873 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 874 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 875 |
#, no-wrap |
| 876 |
msgid "Constructors" |
| 877 |
msgstr "" |
| 878 |
|
| 879 |
#. type: Plain text |
| 880 |
#: debian-trixie debian-unstable |
| 881 |
#, fuzzy |
| 882 |
#| msgid "" |
| 883 |
#| "References are often returned by special subroutines called " |
| 884 |
#| "constructors. Perl objects are just references to a special type of " |
| 885 |
#| "object that happens to know which package it's associated with. " |
| 886 |
#| "Constructors are just special subroutines that know how to create that " |
| 887 |
#| "association. They do so by starting with an ordinary reference, and it " |
| 888 |
#| "remains an ordinary reference even while it's also being an object. " |
| 889 |
#| "Constructors are often named I<new()> and called indirectly:" |
| 890 |
msgid "" |
| 891 |
"References are often returned by special subroutines called constructors. " |
| 892 |
"Perl objects are just references to a special type of object that happens to " |
| 893 |
"know which package it's associated with. Constructors are just special " |
| 894 |
"subroutines that know how to create that association. They do so by " |
| 895 |
"starting with an ordinary reference, and it remains an ordinary reference " |
| 896 |
"even while it's also being an object. Constructors are often named " |
| 897 |
"CW<new()>. You I<can> call them indirectly:" |
| 898 |
msgstr "" |
| 899 |
"Odwołania często zwracane są przez specjalne procedury zwane " |
| 900 |
"konstruktorami. Obiekty w Perlu są po prostu odwołaniami do specjalnego " |
| 901 |
"rodzaju obiektu, który wie z którym pakietem jest związany. Konstruktory są " |
| 902 |
"specjalnymi procedurami, które wiedzą jak utworzyć to powiązanie. Robią to " |
| 903 |
"zaczynając od zwykłego odwołania, i pozostaje ono zwykłym odwołaniem nawet " |
| 904 |
"wtedy gdy jest równocześnie obiektem. Konstuktory często nazywane są " |
| 905 |
"I<new()> i wywoływane nie wprost:" |
| 906 |
|
| 907 |
#. type: Plain text |
| 908 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 909 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 910 |
#, fuzzy, no-wrap |
| 911 |
#| msgid "\\& $objref = new Doggie (Tail =E<gt> 'short', Ears =E<gt> 'long');" |
| 912 |
msgid "\\& $objref = new Doggie( Tail =E<gt> \\*(Aqshort\\*(Aq, Ears =E<gt> \\*(Aqlong\\*(Aq );\n" |
| 913 |
msgstr "\\& $objref = new Psisko (Ogon =E<gt> 'krótki', Uszy =E<gt> 'długie');" |
| 914 |
|
| 915 |
#. type: Plain text |
| 916 |
#: debian-trixie debian-unstable |
| 917 |
msgid "" |
| 918 |
"But that can produce ambiguous syntax in certain cases, so it's often better " |
| 919 |
"to use the direct method invocation approach:" |
| 920 |
msgstr "" |
| 921 |
|
| 922 |
#. type: Plain text |
| 923 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 924 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 925 |
#, no-wrap |
| 926 |
msgid "" |
| 927 |
"\\& $objref = Doggie-E<gt>new(Tail =E<gt> \\*(Aqshort\\*(Aq, Ears =E<gt> \\*(Aqlong\\*(Aq);\n" |
| 928 |
"\\&\n" |
| 929 |
"\\& use Term::Cap;\n" |
| 930 |
"\\& $terminal = Term::Cap-E<gt>Tgetent( { OSPEED =E<gt> 9600 });\n" |
| 931 |
"\\&\n" |
| 932 |
"\\& use Tk;\n" |
| 933 |
"\\& $main = MainWindow-E<gt>new();\n" |
| 934 |
"\\& $menubar = $main-E<gt>Frame(-relief =E<gt> \"raised\",\n" |
| 935 |
"\\& -borderwidth =E<gt> 2)\n" |
| 936 |
msgstr "" |
| 937 |
|
| 938 |
#. type: Plain text |
| 939 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 940 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 941 |
msgid "" |
| 942 |
"This indirect object syntax is only available when \\&CW<\\*(C`use feature " |
| 943 |
"\"indirect\"\\*(C'> is in effect, and that is not the case when CW<\\*(C`use " |
| 944 |
"v5.36\\*(C'> (or higher) is requested, it is best to avoid indirect object " |
| 945 |
"syntax entirely." |
| 946 |
msgstr "" |
| 947 |
|
| 948 |
#. type: Plain text |
| 949 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 950 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 951 |
msgid "I<Autovivification>" |
| 952 |
msgstr "" |
| 953 |
|
| 954 |
#. type: IX |
| 955 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 956 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 957 |
#, no-wrap |
| 958 |
msgid "autovivification" |
| 959 |
msgstr "" |
| 960 |
|
| 961 |
#. type: IX |
| 962 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 963 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 964 |
#, no-wrap |
| 965 |
msgid "Autovivification" |
| 966 |
msgstr "" |
| 967 |
|
| 968 |
#. type: Plain text |
| 969 |
#: debian-trixie debian-unstable |
| 970 |
msgid "" |
| 971 |
"References of the appropriate type can spring into existence if you " |
| 972 |
"dereference them in a context that assumes they exist. Because we haven't " |
| 973 |
"talked about dereferencing yet, we can't show you any examples yet." |
| 974 |
msgstr "" |
| 975 |
"Odwołania odpowiedniego typu mogą być powoływane do istnienia jeśli " |
| 976 |
"dereferencjonujesz je w kontekście zakładającym, że istnieją. Ponieważ " |
| 977 |
"jeszcze nie mówiliśmy o dereferencji, nie możemy na razie pokazać przykładów." |
| 978 |
|
| 979 |
#. type: Plain text |
| 980 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 981 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 982 |
msgid "I<Typeglob Slots>" |
| 983 |
msgstr "" |
| 984 |
|
| 985 |
#. type: IX |
| 986 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 987 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 988 |
#, no-wrap |
| 989 |
msgid "*foo{THING} *" |
| 990 |
msgstr "" |
| 991 |
|
| 992 |
#. type: IX |
| 993 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 994 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 995 |
#, no-wrap |
| 996 |
msgid "Typeglob Slots" |
| 997 |
msgstr "" |
| 998 |
|
| 999 |
#. type: Plain text |
| 1000 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1001 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1002 |
#, fuzzy |
| 1003 |
#| msgid "" |
| 1004 |
#| "A reference can be created by using a special syntax, lovingly known as " |
| 1005 |
#| "the *foo{\\s-1THING\\s0} syntax. *foo{\\s-1THING\\s0} returns a " |
| 1006 |
#| "reference to the \\s-1THING\\s0 slot in *foo (which is the symbol table " |
| 1007 |
#| "entry which holds everything known as foo)." |
| 1008 |
msgid "" |
| 1009 |
"A reference can be created by using a special syntax, lovingly known as the " |
| 1010 |
"*foo{THING} syntax. *foo{THING} returns a reference to the THING slot in " |
| 1011 |
"*foo (which is the symbol table entry which holds everything known as foo)." |
| 1012 |
msgstr "" |
| 1013 |
"Odwołanie może być utworzone przy pomocy specjalnej składni, uroczo zwanej " |
| 1014 |
"składnią *foo{\\s-1COŚ\\s0}. *foo{\\s-1COŚ\\s0} zwraca odwołanie do " |
| 1015 |
"przegródki \\s-1COŚ\\s0 w *foo (które jest pozycją w tablicy symboli " |
| 1016 |
"przechowującą wszystko znane jako foo.)" |
| 1017 |
|
| 1018 |
#. type: Plain text |
| 1019 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1020 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1021 |
#, fuzzy, no-wrap |
| 1022 |
#| msgid "\\& $scalarref = *foo{SCALAR}; \\& $arrayref = *ARGV{ARRAY}; \\& $hashref = *ENV{HASH}; \\& $coderef = *handler{CODE}; \\& $ioref = *STDIN{IO}; \\& $globref = *foo{GLOB};" |
| 1023 |
msgid "" |
| 1024 |
"\\& $scalarref = *foo{SCALAR};\n" |
| 1025 |
"\\& $arrayref = *ARGV{ARRAY};\n" |
| 1026 |
"\\& $hashref = *ENV{HASH};\n" |
| 1027 |
"\\& $coderef = *handler{CODE};\n" |
| 1028 |
"\\& $ioref = *STDIN{IO};\n" |
| 1029 |
"\\& $globref = *foo{GLOB};\n" |
| 1030 |
"\\& $formatref = *foo{FORMAT};\n" |
| 1031 |
"\\& $globname = *foo{NAME}; # \"foo\"\n" |
| 1032 |
"\\& $pkgname = *foo{PACKAGE}; # \"main\"\n" |
| 1033 |
msgstr "\\& $scalarref = *foo{SCALAR}; \\& $arrayref = *ARGV{ARRAY}; \\& $hashref = *ENV{HASH}; \\& $coderef = *handler{CODE}; \\& $ioref = *STDIN{IO}; \\& $globref = *foo{GLOB};" |
| 1034 |
|
| 1035 |
#. type: Plain text |
| 1036 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1037 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1038 |
#, fuzzy |
| 1039 |
#| msgid "" |
| 1040 |
#| "All of these are self-explanatory except for CW<*foo{IO}>. It returns " |
| 1041 |
#| "the \\s-1IO\\s0 handle, used for file handles (\\*(L\"open\\*(R\" in " |
| 1042 |
#| "perlfunc), sockets (\\*(L\"socket\\*(R\" in perlfunc and " |
| 1043 |
#| "\\*(L\"socketpair\\*(R\" in perlfunc), and directory handles " |
| 1044 |
#| "(\\*(L\"opendir\\*(R\" in perlfunc). For compatibility with previous " |
| 1045 |
#| "versions of Perl, CW<*foo{FILEHANDLE}> is a synonym for CW<*foo{IO}>, " |
| 1046 |
#| "though it is deprecated as of 5.8.0. If deprecation warnings are in " |
| 1047 |
#| "effect, it will warn of its use." |
| 1048 |
msgid "" |
| 1049 |
"Most of these are self-explanatory, but CW<*foo{IO}> deserves special " |
| 1050 |
"attention. It returns the IO handle, used for file handles (\"open\" in " |
| 1051 |
"perlfunc), sockets (\"socket\" in perlfunc and \"socketpair\" in perlfunc), " |
| 1052 |
"and directory handles (\"opendir\" in perlfunc). For compatibility with " |
| 1053 |
"previous versions of Perl, CW<*foo{FILEHANDLE}> is a synonym for CW<*foo{IO}" |
| 1054 |
">, though it is discouraged, to encourage a consistent use of one name: IO. " |
| 1055 |
"On perls between v5.8 and v5.22, it will issue a deprecation warning, but " |
| 1056 |
"this deprecation has since been rescinded." |
| 1057 |
msgstr "" |
| 1058 |
"Wszystkie powyższe wyrażenia są oczywiste, z wyjątkiem *foo{\\s-1IO\\s0}. " |
| 1059 |
"Zwraca ono uchwyt \\s-1IO\\s0, używany jako uchwyt pliku (patrz opis " |
| 1060 |
"CW<open> w podręczniku I<perlfunc>(1)), gniazdo (opis CW<socket> oraz " |
| 1061 |
"CW<socketpair> w I<perlfunc>(1)) lub uchwyt katalogu (CW<opendir> w " |
| 1062 |
"I<perlfunc>(1)). Dla zgodności z poprzednimi wersjami Perla, " |
| 1063 |
"*foo{\\s-1UCHWYTPLIKU\\s0} jest synonimem *foo{\\s-1IO\\s0}." |
| 1064 |
|
| 1065 |
#. type: Plain text |
| 1066 |
#: debian-trixie debian-unstable |
| 1067 |
#, fuzzy |
| 1068 |
#| msgid "" |
| 1069 |
#| "\\&CW<*foo{THING}> returns undef if that particular \\s-1THING\\s0 hasn't " |
| 1070 |
#| "been used yet, except in the case of scalars. CW<*foo{SCALAR}> returns a " |
| 1071 |
#| "reference to an anonymous scalar if CW<$foo> hasn't been used yet. This " |
| 1072 |
#| "might change in a future release." |
| 1073 |
msgid "" |
| 1074 |
"\\&CW<*foo{THING}> returns undef if that particular THING hasn't been used " |
| 1075 |
"yet, except in the case of scalars. CW<*foo{SCALAR}> returns a reference to " |
| 1076 |
"an anonymous scalar if CW<$foo> hasn't been used yet. This might change in " |
| 1077 |
"a future release." |
| 1078 |
msgstr "" |
| 1079 |
"*foo{\\s-1COŚ\\s0} zwraca undef jeśli dane \\s-1COŚ\\s0 jeszcze nie było " |
| 1080 |
"używane, z wyjątkiem dla skalarów. Jeśli nie używano jeszcze CW<$foo>, " |
| 1081 |
"*foo{\\s-1SKALAR\\s0} zwraca odwołanie do anonimowego skalara. W przyszłych " |
| 1082 |
"wersjach może się to zmienić." |
| 1083 |
|
| 1084 |
#. type: Plain text |
| 1085 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1086 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1087 |
msgid "" |
| 1088 |
"\\&CW<*foo{NAME}> and CW<*foo{PACKAGE}> are the exception, in that they " |
| 1089 |
"return strings, rather than references. These return the package and name " |
| 1090 |
"of the typeglob itself, rather than one that has been assigned to it. So, " |
| 1091 |
"after \\&CW<\\*(C`*foo=*Foo::bar\\*(C'>, CW<*foo> will become \"*Foo::bar\" " |
| 1092 |
"when used as a string, but CW<*foo{PACKAGE}> and CW<*foo{NAME}> will " |
| 1093 |
"continue to produce \"main\" and \"foo\", respectively." |
| 1094 |
msgstr "" |
| 1095 |
|
| 1096 |
#. type: Plain text |
| 1097 |
#: debian-trixie debian-unstable |
| 1098 |
#, fuzzy |
| 1099 |
#| msgid "" |
| 1100 |
#| "\\&CW<*foo{IO}> is an alternative to the CW<*HANDLE> mechanism given in " |
| 1101 |
#| "\\&\\*(L\"Typeglobs and Filehandles\\*(R\" in perldata for passing " |
| 1102 |
#| "filehandles into or out of subroutines, or storing into larger data " |
| 1103 |
#| "structures. Its disadvantage is that it won't create a new filehandle " |
| 1104 |
#| "for you. Its advantage is that you have less risk of clobbering more " |
| 1105 |
#| "than you want to with a typeglob assignment. (It still conflates file " |
| 1106 |
#| "and directory handles, though.) However, if you assign the incoming " |
| 1107 |
#| "value to a scalar instead of a typeglob as we do in the examples below, " |
| 1108 |
#| "there's no risk of that happening." |
| 1109 |
msgid "" |
| 1110 |
"\\&CW<*foo{IO}> is an alternative to the CW<*HANDLE> mechanism given in " |
| 1111 |
"\"Typeglobs and Filehandles\" in perldata for passing filehandles into or " |
| 1112 |
"out of subroutines, or storing into larger data structures. Its " |
| 1113 |
"disadvantage is that it won't create a new filehandle for you. Its " |
| 1114 |
"advantage is that you have less risk of clobbering more than you want to " |
| 1115 |
"with a typeglob assignment. (It still conflates file and directory handles, " |
| 1116 |
"though.) However, if you assign the incoming value to a scalar instead of a " |
| 1117 |
"typeglob as we do in the examples below, there's no risk of that happening." |
| 1118 |
msgstr "" |
| 1119 |
"*foo{\\s-1IO\\s0} jest alternatywą dla mechanizmu \\e*\\s-1UCHWYTU\\s0 " |
| 1120 |
"opisanego w sekcji I<Typeglobs and Filehandles> podręcznika I<perldata>(1), " |
| 1121 |
"a służącego do przesyłania uchwytów plików do i z procedur lub " |
| 1122 |
"przechowywania w większych strukturach danych. Jego wadą jest to, że nie " |
| 1123 |
"utworzy za Ciebie nowego uchwytu pliku. Zaletą zaś, że nie ryzykujesz więcej " |
| 1124 |
"niż zamierzałeś przy przypisaniem typeglob, choć jeśli wykonasz przypisanie " |
| 1125 |
"do skalara zamiast do typeglob, to też dobrze." |
| 1126 |
|
| 1127 |
#. type: Plain text |
| 1128 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1129 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1130 |
#, no-wrap |
| 1131 |
msgid "" |
| 1132 |
"\\& splutter(*STDOUT); # pass the whole glob\n" |
| 1133 |
"\\& splutter(*STDOUT{IO}); # pass both file and dir handles\n" |
| 1134 |
"\\&\n" |
| 1135 |
"\\& sub splutter {\n" |
| 1136 |
"\\& my $fh = shift;\n" |
| 1137 |
"\\& print $fh \"her um well a hmmm\\en\";\n" |
| 1138 |
"\\& }\n" |
| 1139 |
"\\&\n" |
| 1140 |
"\\& $rec = get_rec(*STDIN); # pass the whole glob\n" |
| 1141 |
"\\& $rec = get_rec(*STDIN{IO}); # pass both file and dir handles\n" |
| 1142 |
"\\&\n" |
| 1143 |
"\\& sub get_rec {\n" |
| 1144 |
"\\& my $fh = shift;\n" |
| 1145 |
"\\& return scalar E<lt>$fhE<gt>;\n" |
| 1146 |
"\\& }\n" |
| 1147 |
msgstr "" |
| 1148 |
|
| 1149 |
#. type: IX |
| 1150 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1151 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1152 |
#, no-wrap |
| 1153 |
msgid "Using References" |
| 1154 |
msgstr "Użycie odwołań" |
| 1155 |
|
| 1156 |
#. type: IX |
| 1157 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1158 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1159 |
#, no-wrap |
| 1160 |
msgid "reference, use dereferencing dereference" |
| 1161 |
msgstr "" |
| 1162 |
|
| 1163 |
#. type: Plain text |
| 1164 |
#: debian-trixie debian-unstable |
| 1165 |
msgid "" |
| 1166 |
"That's it for creating references. By now you're probably dying to know how " |
| 1167 |
"to use references to get back to your long-lost data. There are several " |
| 1168 |
"basic methods." |
| 1169 |
msgstr "" |
| 1170 |
"To tyle o tworzeniu odwołań. Teraz pewnie nie możesz się doczekać wiedzy jak " |
| 1171 |
"posługiwać się odwołaniami, by móc wrócić do swych leżących odłogiem " |
| 1172 |
"danych. Oto kilka podstawowych sposobów." |
| 1173 |
|
| 1174 |
#. type: Plain text |
| 1175 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1176 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1177 |
msgid "I<Simple Scalar>" |
| 1178 |
msgstr "" |
| 1179 |
|
| 1180 |
#. type: IX |
| 1181 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1182 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1183 |
#, no-wrap |
| 1184 |
msgid "Simple Scalar" |
| 1185 |
msgstr "" |
| 1186 |
|
| 1187 |
#. type: Plain text |
| 1188 |
#: debian-trixie debian-unstable |
| 1189 |
msgid "" |
| 1190 |
"Anywhere you'd put an identifier (or chain of identifiers) as part of a " |
| 1191 |
"variable or subroutine name, you can replace the identifier with a simple " |
| 1192 |
"scalar variable containing a reference of the correct type:" |
| 1193 |
msgstr "" |
| 1194 |
"Wszędzie, gdzie postawiłbyś identyfikator (lub łańcuch identyfikatorów) " |
| 1195 |
"jako część nazwy zmiennej czy procedury, możesz zastąpić identyfikator " |
| 1196 |
"prostą zmienną skalarną zawierającą odwołanie poprawnego typu:" |
| 1197 |
|
| 1198 |
#. type: Plain text |
| 1199 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1200 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1201 |
#, fuzzy, no-wrap |
| 1202 |
#| msgid "\\& $bar = $$scalarref; \\& push(@$arrayref, $filename); \\& $$arrayref[0] = \"January\"; \\& $$hashref{\"KEY\"} = \"VALUE\"; \\& &$coderef(1,2,3); \\& print $globref \"output\\en\";" |
| 1203 |
msgid "" |
| 1204 |
"\\& $bar = $$scalarref;\n" |
| 1205 |
"\\& push(@$arrayref, $filename);\n" |
| 1206 |
"\\& $$arrayref[0] = \"January\";\n" |
| 1207 |
"\\& $$hashref{\"KEY\"} = \"VALUE\";\n" |
| 1208 |
"\\& &$coderef(1,2,3);\n" |
| 1209 |
"\\& print $globref \"output\\en\";\n" |
| 1210 |
msgstr "\\& $bar = $$scalarref; \\& push(@$arrayref, $nazwapliku); \\& $$arrayref[0] = \"styczeń\"; \\& $$hashref{\"KLUCZ\"} = \"WARTOŚĆ\"; \\& &$coderef(1,2,3); \\& print $globref \"wynik\\en\";" |
| 1211 |
|
| 1212 |
#. type: Plain text |
| 1213 |
#: debian-trixie debian-unstable |
| 1214 |
#, fuzzy |
| 1215 |
#| msgid "" |
| 1216 |
#| "It's important to understand that we are specifically I<not> " |
| 1217 |
#| "dereferencing \\&CW<$arrayref[0]> or CW<$hashref{\"KEY\"}> there. The " |
| 1218 |
#| "dereference of the scalar variable happens I<before> it does any key " |
| 1219 |
#| "lookups. Anything more complicated than a simple scalar variable must " |
| 1220 |
#| "use methods 2 or 3 below. However, a \\*(L\"simple scalar\\*(R\" " |
| 1221 |
#| "includes an identifier that itself uses method 1 recursively. Therefore, " |
| 1222 |
#| "the following prints \\*(L\"howdy\\*(R\"." |
| 1223 |
msgid "" |
| 1224 |
"It's important to understand that we are specifically I<not> dereferencing " |
| 1225 |
"\\&CW<$arrayref[0]> or CW<$hashref{\"KEY\"}> there. The dereference of the " |
| 1226 |
"scalar variable happens I<before> it does any key lookups. Anything more " |
| 1227 |
"complicated than a simple scalar variable must use methods 2 or 3 below. " |
| 1228 |
"However, a \"simple scalar\" includes an identifier that itself uses method " |
| 1229 |
"1 recursively. Therefore, the following prints \"howdy\"." |
| 1230 |
msgstr "" |
| 1231 |
"Ważne jest, by zrozumieć, że nie I<\\s-1NIE\\s0> wykonujemy tu specjalnie " |
| 1232 |
"dereferencji CW<$arrayref[0]> czy CW<$hashref{\"KLUCZ\"}>. Dereferencja " |
| 1233 |
"zmiennej skalarnej odbywa się I<\\s-1PRZED\\s0> przeszukaniem klucza " |
| 1234 |
"(indeksu tablicy). Wszystko bardziej skomplikowane niż dereferencja prostej " |
| 1235 |
"zmiennej skalarnej wymaga użycia niżej opisanych metod 2 lub 3. Jednak " |
| 1236 |
"określenie \\*(L\"prosty skalar\\*(R\" obejmuje też identyfikator, który sam " |
| 1237 |
"używa rekurencyjnie metody 1. Zatem poniższe drukuje \\*(L\"witaj\\*(R\"." |
| 1238 |
|
| 1239 |
#. type: Plain text |
| 1240 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1241 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1242 |
#, fuzzy, no-wrap |
| 1243 |
#| msgid "\\& $refrefref = \\e\\e\\e\"howdy\"; \\& print $$$$refrefref;" |
| 1244 |
msgid "" |
| 1245 |
"\\& $refrefref = \\e\\e\\e\"howdy\";\n" |
| 1246 |
"\\& print $$$$refrefref;\n" |
| 1247 |
msgstr "\\& $refrefref = \\e\\e\\e\"witaj\"; \\& print $$$$refrefref;" |
| 1248 |
|
| 1249 |
#. type: Plain text |
| 1250 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1251 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1252 |
#, fuzzy |
| 1253 |
#| msgid "I<ClockID>" |
| 1254 |
msgid "I<Block>" |
| 1255 |
msgstr "I<ClockID>" |
| 1256 |
|
| 1257 |
#. type: IX |
| 1258 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1259 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1260 |
#, fuzzy, no-wrap |
| 1261 |
#| msgid "B<flock>(2)" |
| 1262 |
msgid "Block" |
| 1263 |
msgstr "B<flock>(2)" |
| 1264 |
|
| 1265 |
#. type: Plain text |
| 1266 |
#: debian-trixie debian-unstable |
| 1267 |
#, fuzzy |
| 1268 |
#| msgid "" |
| 1269 |
#| "Anywhere you'd put an identifier (or chain of identifiers) as part of a " |
| 1270 |
#| "variable or subroutine name, you can replace the identifier with a " |
| 1271 |
#| "\\&\\s-1BLOCK\\s0 returning a reference of the correct type. In other " |
| 1272 |
#| "words, the previous examples could be written like this:" |
| 1273 |
msgid "" |
| 1274 |
"Anywhere you'd put an identifier (or chain of identifiers) as part of a " |
| 1275 |
"variable or subroutine name, you can replace the identifier with a BLOCK " |
| 1276 |
"returning a reference of the correct type. In other words, the previous " |
| 1277 |
"examples could be written like this:" |
| 1278 |
msgstr "" |
| 1279 |
"Wszędzie, gdzie postawiłbyś identyfikator (lub łańcuch identyfikatorów) " |
| 1280 |
"jako część nazwy zmiennej czy procedury, możesz zastąpić identyfikator " |
| 1281 |
"\\s-1BLOK\\s0iem zwracającym odwołanie poprawnego typu. Inaczej mówiąc, " |
| 1282 |
"poprzednie przykłady mogą zostać zapisane tak:" |
| 1283 |
|
| 1284 |
#. type: Plain text |
| 1285 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1286 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1287 |
#, fuzzy, no-wrap |
| 1288 |
#| msgid "\\& $bar = ${$scalarref}; \\& push(@{$arrayref}, $filename); \\& ${$arrayref}[0] = \"January\"; \\& ${$hashref}{\"KEY\"} = \"VALUE\"; \\& &{$coderef}(1,2,3); \\& $globref-E<gt>print(\"output\\en\"); # iff IO::Handle is loaded" |
| 1289 |
msgid "" |
| 1290 |
"\\& $bar = ${$scalarref};\n" |
| 1291 |
"\\& push(@{$arrayref}, $filename);\n" |
| 1292 |
"\\& ${$arrayref}[0] = \"January\";\n" |
| 1293 |
"\\& ${$hashref}{\"KEY\"} = \"VALUE\";\n" |
| 1294 |
"\\& &{$coderef}(1,2,3);\n" |
| 1295 |
"\\& $globref-E<gt>print(\"output\\en\"); # iff IO::Handle is loaded\n" |
| 1296 |
msgstr "\\& $bar = ${$scalarref}; \\& push(@{$arrayref}, $nazwapliku); \\& ${$arrayref}[0] = \"January\"; \\& ${$hashref}{\"KLUCZ\"} = \"WARTOŚĆ\"; \\& &{$coderef}(1,2,3); \\& $globref-E<gt>print(\"output\\en\"); # jeśli załadowano IO::Handle" |
| 1297 |
|
| 1298 |
#. type: Plain text |
| 1299 |
#: debian-trixie debian-unstable |
| 1300 |
#, fuzzy |
| 1301 |
#| msgid "" |
| 1302 |
#| "Admittedly, it's a little silly to use the curlies in this case, but the " |
| 1303 |
#| "\\s-1BLOCK\\s0 can contain any arbitrary expression, in particular, " |
| 1304 |
#| "subscripted expressions:" |
| 1305 |
msgid "" |
| 1306 |
"Admittedly, it's a little silly to use the curlies in this case, but the " |
| 1307 |
"BLOCK can contain any arbitrary expression, in particular, subscripted " |
| 1308 |
"expressions:" |
| 1309 |
msgstr "" |
| 1310 |
"Niewątpliwie, użycie nawiasów klamrowych w tym przypadku nie jest zbyt " |
| 1311 |
"mądre, ale \\s-1BLOK\\s0 może zawierać dowolne wyrażenie, w szczególności " |
| 1312 |
"wyrażenia indeksowane:" |
| 1313 |
|
| 1314 |
#. type: Plain text |
| 1315 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1316 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1317 |
#, fuzzy, no-wrap |
| 1318 |
#| msgid "\\& &{ $dispatch{$index} }(1,2,3); # call correct routine" |
| 1319 |
msgid "\\& &{ $dispatch{$index} }(1,2,3); # call correct routine\n" |
| 1320 |
msgstr "\\& &{ $dispatch{$index} }(1,2,3); # wywołaj właściwą obsługę" |
| 1321 |
|
| 1322 |
#. type: Plain text |
| 1323 |
#: debian-trixie debian-unstable |
| 1324 |
msgid "" |
| 1325 |
"Because of being able to omit the curlies for the simple case of CW<$$x>, " |
| 1326 |
"people often make the mistake of viewing the dereferencing symbols as proper " |
| 1327 |
"operators, and wonder about their precedence. If they were, though, you " |
| 1328 |
"could use parentheses instead of braces. That's not the case. Consider the " |
| 1329 |
"difference below; case 0 is a short-hand version of case 1, \\&I<not> case 2:" |
| 1330 |
msgstr "" |
| 1331 |
"Z powodu możliwości pomijania nawiasów klamrowych dla prostych przypadków " |
| 1332 |
"CW<$$x>, ludzie często popełniają błąd postrzegania symboli dereferencji " |
| 1333 |
"jako prawdziwych operatorów i zastanawiają się nad ich priorytetem. Gdyby " |
| 1334 |
"nimi były, mógłbyś używać zwykłych nawiasów zamiast klamrowych. Tak jednak " |
| 1335 |
"nie jest. Rozważ poniższą różnicę: przypadek 0 jest skróconą wersją " |
| 1336 |
"przypadku 1, I<\\s-1NIE\\s0> przypadku 2:" |
| 1337 |
|
| 1338 |
#. type: Plain text |
| 1339 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1340 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1341 |
#, fuzzy, no-wrap |
| 1342 |
#| msgid "\\& $$hashref{\"KEY\"} = \"VALUE\"; # CASE 0 \\& ${$hashref}{\"KEY\"} = \"VALUE\"; # CASE 1 \\& ${$hashref{\"KEY\"}} = \"VALUE\"; # CASE 2 \\& ${$hashref-E<gt>{\"KEY\"}} = \"VALUE\"; # CASE 3" |
| 1343 |
msgid "" |
| 1344 |
"\\& $$hashref{\"KEY\"} = \"VALUE\"; # CASE 0\n" |
| 1345 |
"\\& ${$hashref}{\"KEY\"} = \"VALUE\"; # CASE 1\n" |
| 1346 |
"\\& ${$hashref{\"KEY\"}} = \"VALUE\"; # CASE 2\n" |
| 1347 |
"\\& ${$hashref-E<gt>{\"KEY\"}} = \"VALUE\"; # CASE 3\n" |
| 1348 |
msgstr "\\& $$hashref{\"KLUCZ\"} = \"WARTOŚĆ\"; # CASE 0 \\& ${$hashref}{\"KLUCZ\"} = \"LUCZ\"; # przypadek 1 \\& ${$hashref{\"KLUCZ\"}} = \"WARTOŚĆ\"; # przypadek 2 \\& ${$hashref-E<gt>{\"KLUCZ\"}} = \"WARTOŚĆ\"; # przypadek 3" |
| 1349 |
|
| 1350 |
#. type: Plain text |
| 1351 |
#: debian-trixie debian-unstable |
| 1352 |
msgid "" |
| 1353 |
"Case 2 is also deceptive in that you're accessing a variable called " |
| 1354 |
"CW<%hashref>, not dereferencing through CW<$hashref> to the hash it's " |
| 1355 |
"presumably referencing. That would be case 3." |
| 1356 |
msgstr "" |
| 1357 |
"Przypadek 2 jest również mylący, gdyż odnosi się do zmiennej o nazwie " |
| 1358 |
"CW<%hashref>, nie zaś dereferencjonuje poprzez CW<$hashref> hasza, na który " |
| 1359 |
"wydawałoby się wskazuje skalar. To robi przypadek 3." |
| 1360 |
|
| 1361 |
#. type: Plain text |
| 1362 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1363 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1364 |
msgid "I<Arrow Notation>" |
| 1365 |
msgstr "" |
| 1366 |
|
| 1367 |
#. type: IX |
| 1368 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1369 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1370 |
#, no-wrap |
| 1371 |
msgid "Arrow Notation" |
| 1372 |
msgstr "" |
| 1373 |
|
| 1374 |
#. type: Plain text |
| 1375 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1376 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1377 |
msgid "" |
| 1378 |
"Subroutine calls and lookups of individual array elements arise often enough " |
| 1379 |
"that it gets cumbersome to use method 2. As a form of syntactic sugar, the " |
| 1380 |
"examples for method 2 may be written:" |
| 1381 |
msgstr "" |
| 1382 |
"Wywołania procedur i poszukiwanie poszczególnych elementów tablic pojawiają " |
| 1383 |
"się wystarczająco często, by zastosowanie do nich metody 2 stało się " |
| 1384 |
"niewygodne. Jako formę \"osłodzenia składni\", przykłady z metody 2 można " |
| 1385 |
"zapisać:" |
| 1386 |
|
| 1387 |
#. type: Plain text |
| 1388 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1389 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1390 |
#, fuzzy, no-wrap |
| 1391 |
#| msgid "\\& $arrayref-E<gt>[0] = \"January\"; # Array element \\& $hashref-E<gt>{\"KEY\"} = \"VALUE\"; # Hash element \\& $coderef-E<gt>(1,2,3); # Subroutine call" |
| 1392 |
msgid "" |
| 1393 |
"\\& $arrayref-E<gt>[0] = \"January\"; # Array element\n" |
| 1394 |
"\\& $hashref-E<gt>{\"KEY\"} = \"VALUE\"; # Hash element\n" |
| 1395 |
"\\& $coderef-E<gt>(1,2,3); # Subroutine call\n" |
| 1396 |
msgstr "\\& $arrayref-E<gt>[0] = \"styczeń\"; # element tablicy \\& $hashref-E<gt>{\"KLUCZ\"} = \"WARTOŚĆ\"; # element hasza \\& $coderef-E<gt>(1,2,3); # wywołanie procedury" |
| 1397 |
|
| 1398 |
#. type: Plain text |
| 1399 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1400 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1401 |
msgid "" |
| 1402 |
"The left side of the arrow can be any expression returning a reference, " |
| 1403 |
"including a previous dereference. Note that CW<$array[$x]> is I<not> the " |
| 1404 |
"same thing as CW<\\*(C`$array-E<gt>[$x]\\*(C'> here:" |
| 1405 |
msgstr "" |
| 1406 |
"Lewa strona strzałki może być dowolnym wyrażeniem zwracającym odwołanie, " |
| 1407 |
"łącznie z uprzednią dereferencją. [Ułatwia to operowanie odwołaniami do " |
| 1408 |
"zmiennych zawierających kolejne odwołania, jak poniżej]. Zauważ, że " |
| 1409 |
"CW<$array[$x]> I<\\s-1NIE\\s0> jest tu tym samym co CW<$array-E<gt>[$x]>:" |
| 1410 |
|
| 1411 |
#. type: Plain text |
| 1412 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1413 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1414 |
#, fuzzy, no-wrap |
| 1415 |
#| msgid "\\& $array[$x]-E<gt>{\"foo\"}-E<gt>[0] = \"January\";" |
| 1416 |
msgid "\\& $array[$x]-E<gt>{\"foo\"}-E<gt>[0] = \"January\";\n" |
| 1417 |
msgstr "\\& $array[$x]-E<gt>{\"foo\"}-E<gt>[0] = \"styczeń\";" |
| 1418 |
|
| 1419 |
#. type: Plain text |
| 1420 |
#: debian-trixie debian-unstable |
| 1421 |
msgid "" |
| 1422 |
"This is one of the cases we mentioned earlier in which references could " |
| 1423 |
"spring into existence when in an lvalue context. Before this statement, " |
| 1424 |
"CW<$array[$x]> may have been undefined. If so, it's automatically defined " |
| 1425 |
"with a hash reference so that we can look up \\&CW<\\*(C`{\"foo\"}\\*(C'> in " |
| 1426 |
"it. Likewise CW<\\*(C`$array[$x]-E<gt>{\"foo\"}\\*(C'> will automatically " |
| 1427 |
"get defined with an array reference so that we can look up " |
| 1428 |
"CW<\\*(C`[0]\\*(C'> in it. This process is called I<autovivification>." |
| 1429 |
msgstr "" |
| 1430 |
"Jest to jeden z przypadków wspomnianych wcześniej, gdzie odwołania " |
| 1431 |
"zaistnieją, gdy zostaną użyte w kontekście l-wartości. Przed tą instrukcją, " |
| 1432 |
"element CW<$array[$x]> mógł być niezdefiniowany. W takim przypadku, jest on " |
| 1433 |
"definiowany automatycznie z nadaniem mu wartości -- odwołania do hasza, tak " |
| 1434 |
"że możemy poszukiwać w haszu elementu o kluczu CW<\"foo\">. Podobnie klucz " |
| 1435 |
"CW<$array[$x]-E<gt>{\"foo\"}> zostanie automatycznie zdefiniowany z " |
| 1436 |
"równoczesnym nadaniem wartości -- odwołania do tablicy, zatem będzie można w " |
| 1437 |
"niej odnaleźć CW<[0]>. Proces ten zwany jest I<autovivification> " |
| 1438 |
"(automatyczne ożywianie)." |
| 1439 |
|
| 1440 |
#. type: Plain text |
| 1441 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1442 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1443 |
msgid "" |
| 1444 |
"One more thing here. The arrow is optional I<between> brackets subscripts, " |
| 1445 |
"so you can shrink the above down to" |
| 1446 |
msgstr "" |
| 1447 |
"Jeszcze jedno. I<\\s-1POMIĘDZY\\s0> indeksami umieszczonymi w nawiasach " |
| 1448 |
"klamrowych strzałka jest opcjonalna, zatem możemy skrócić powyższy zapis do:" |
| 1449 |
|
| 1450 |
#. type: Plain text |
| 1451 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1452 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1453 |
#, fuzzy, no-wrap |
| 1454 |
#| msgid "\\& $array[$x]{\"foo\"}[0] = \"January\";" |
| 1455 |
msgid "\\& $array[$x]{\"foo\"}[0] = \"January\";\n" |
| 1456 |
msgstr "\\& $array[$x]{\"foo\"}[0] = \"styczeń\";" |
| 1457 |
|
| 1458 |
#. type: Plain text |
| 1459 |
#: debian-trixie debian-unstable |
| 1460 |
msgid "" |
| 1461 |
"Which, in the degenerate case of using only ordinary arrays, gives you " |
| 1462 |
"multidimensional arrays just like C's:" |
| 1463 |
msgstr "" |
| 1464 |
"Co, w szczególnym przypadku działania tylko na zwykłych tablicach, daje " |
| 1465 |
"tablice wielowymiarowe z zapisem jak w C:" |
| 1466 |
|
| 1467 |
#. type: Plain text |
| 1468 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1469 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1470 |
#, fuzzy, no-wrap |
| 1471 |
#| msgid "\\& $score[$x][$y][$z] += 42;" |
| 1472 |
msgid "\\& $score[$x][$y][$z] += 42;\n" |
| 1473 |
msgstr "\\& $score[$x][$y][$z] += 42;" |
| 1474 |
|
| 1475 |
#. type: Plain text |
| 1476 |
#: debian-trixie debian-unstable |
| 1477 |
msgid "" |
| 1478 |
"Well, okay, not entirely like C's arrays, actually. C doesn't know how to " |
| 1479 |
"grow its arrays on demand. Perl does." |
| 1480 |
msgstr "" |
| 1481 |
"No dobrze, tak naprawdę, nie całkiem jak tablice w C. C nie wie, jak " |
| 1482 |
"poszerzać tablice na żądanie. Perl to potrafi." |
| 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 "B<project>" |
| 1489 |
msgid "I<Objects>" |
| 1490 |
msgstr "B<project>" |
| 1491 |
|
| 1492 |
#. type: IX |
| 1493 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1494 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1495 |
#, no-wrap |
| 1496 |
msgid "Objects" |
| 1497 |
msgstr "" |
| 1498 |
|
| 1499 |
#. type: Plain text |
| 1500 |
#: debian-trixie debian-unstable |
| 1501 |
msgid "" |
| 1502 |
"If a reference happens to be a reference to an object, then there are " |
| 1503 |
"probably methods to access the things referred to, and you should probably " |
| 1504 |
"stick to those methods unless you're in the class package that defines the " |
| 1505 |
"object's methods. In other words, be nice, and don't violate the object's " |
| 1506 |
"encapsulation without a very good reason. Perl does not enforce " |
| 1507 |
"encapsulation. We are not totalitarians here. We do expect some basic " |
| 1508 |
"civility though." |
| 1509 |
msgstr "" |
| 1510 |
"Jeżeli odwołanie jest odwołaniem do obiektu, to prawdopodobnie istnieją " |
| 1511 |
"metody dostępu do wskazywanych przez nie rzeczy, i powinieneś zapewne z nich " |
| 1512 |
"skorzystać, chyba że jesteś w pakiecie klasy definiującej metody tego " |
| 1513 |
"obiektu i pracujesz nad nimi. Inaczej mówiąc, bądź tak dobry i nie naruszaj " |
| 1514 |
"hermetyzacji bez istotnego powodu. Perl nie wymusza hermetyzacji. Nie " |
| 1515 |
"jesteśmy tu totalitarystami. Oczekujemy jednak zachowania podstawowych " |
| 1516 |
"zasad uprzejmości." |
| 1517 |
|
| 1518 |
#. type: Plain text |
| 1519 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1520 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1521 |
#, fuzzy |
| 1522 |
#| msgid "Miscellaneous" |
| 1523 |
msgid "I<Miscellaneous Usage>" |
| 1524 |
msgstr "Różne" |
| 1525 |
|
| 1526 |
#. type: IX |
| 1527 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1528 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1529 |
#, fuzzy, no-wrap |
| 1530 |
#| msgid "Miscellaneous" |
| 1531 |
msgid "Miscellaneous Usage" |
| 1532 |
msgstr "Różne" |
| 1533 |
|
| 1534 |
#. type: Plain text |
| 1535 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1536 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1537 |
msgid "" |
| 1538 |
"Using a string or number as a reference produces a symbolic reference, as " |
| 1539 |
"explained above. Using a reference as a number produces an integer " |
| 1540 |
"representing its storage location in memory. The only useful thing to be " |
| 1541 |
"done with this is to compare two references numerically to see whether they " |
| 1542 |
"refer to the same location." |
| 1543 |
msgstr "" |
| 1544 |
|
| 1545 |
#. type: IX |
| 1546 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1547 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1548 |
#, no-wrap |
| 1549 |
msgid "reference, numeric context" |
| 1550 |
msgstr "" |
| 1551 |
|
| 1552 |
#. type: Plain text |
| 1553 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1554 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1555 |
#, no-wrap |
| 1556 |
msgid "" |
| 1557 |
"\\& if ($ref1 == $ref2) { # cheap numeric compare of references\n" |
| 1558 |
"\\& print \"refs 1 and 2 refer to the same thing\\en\";\n" |
| 1559 |
"\\& }\n" |
| 1560 |
msgstr "" |
| 1561 |
|
| 1562 |
#. type: Plain text |
| 1563 |
#: debian-trixie debian-unstable |
| 1564 |
msgid "" |
| 1565 |
"Using a reference as a string produces both its referent's type, including " |
| 1566 |
"any package blessing as described in perlobj, as well as the numeric address " |
| 1567 |
"expressed in hex. The B<ref()> operator returns just the type of thing the " |
| 1568 |
"reference is pointing to, without the address. See \"ref\" in perlfunc for " |
| 1569 |
"details and examples of its use." |
| 1570 |
msgstr "" |
| 1571 |
|
| 1572 |
#. type: IX |
| 1573 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1574 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1575 |
#, no-wrap |
| 1576 |
msgid "reference, string context" |
| 1577 |
msgstr "" |
| 1578 |
|
| 1579 |
#. type: Plain text |
| 1580 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1581 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1582 |
#, fuzzy |
| 1583 |
#| msgid "" |
| 1584 |
#| "The I<bless()> operator may be used to associate the object a reference " |
| 1585 |
#| "points to with a package functioning as an object class. See perlobj." |
| 1586 |
msgid "" |
| 1587 |
"The B<bless()> operator may be used to associate the object a reference " |
| 1588 |
"points to with a package functioning as an object class. See perlobj." |
| 1589 |
msgstr "" |
| 1590 |
"Operator I<bless()> może być używany do powiązania obiektu, na który " |
| 1591 |
"wskazuje odwołanie, z pakietem funkcjonującym jako klasa obiektowa. Zobacz " |
| 1592 |
"podręcznik I<perlobj>(1)." |
| 1593 |
|
| 1594 |
#. type: Plain text |
| 1595 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1596 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1597 |
msgid "" |
| 1598 |
"A typeglob may be dereferenced the same way a reference can, because the " |
| 1599 |
"dereference syntax always indicates the type of reference desired. So " |
| 1600 |
"CW<\\*(C`${*foo}\\*(C'> and CW<\\*(C`${\\e$foo}\\*(C'> both indicate the " |
| 1601 |
"same scalar variable." |
| 1602 |
msgstr "" |
| 1603 |
"Typeglob może być dereferencjowane w ten sam sposób jak odwołanie, gdyż " |
| 1604 |
"składnia dereferencji zawsze wskazuje na pożądany rodzaj odwołania. Zatem " |
| 1605 |
"CW<\\*(C`${*foo}\\*(C'> i CW<\\*(C`${\\e$foo}\\*(C'> wskazują na tę samą " |
| 1606 |
"zmienną skalarną." |
| 1607 |
|
| 1608 |
#. type: Plain text |
| 1609 |
#: debian-trixie debian-unstable |
| 1610 |
msgid "Here's a trick for interpolating a subroutine call into a string:" |
| 1611 |
msgstr "A oto sztuczka do interpolacji wywołania procedury w łańcuchu:" |
| 1612 |
|
| 1613 |
#. type: Plain text |
| 1614 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1615 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1616 |
#, fuzzy, no-wrap |
| 1617 |
#| msgid "\\& print \"My sub returned @{[mysub(1,2,3)]} that time.\\en\";" |
| 1618 |
msgid "\\& print \"My sub returned @{[mysub(1,2,3)]} that time.\\en\";\n" |
| 1619 |
msgstr "\\& print \"Procedura mysub tym razem zwróciła @{[mysub(1,2,3)]} that time.\\en\";" |
| 1620 |
|
| 1621 |
#. type: Plain text |
| 1622 |
#: debian-trixie debian-unstable |
| 1623 |
msgid "" |
| 1624 |
"The way it works is that when the CW<\\*(C`@{...}\\*(C'> is seen in the " |
| 1625 |
"double-quoted string, it's evaluated as a block. The block creates a " |
| 1626 |
"reference to an anonymous array containing the results of the call to " |
| 1627 |
"CW<\\*(C`mysub(1,2,3)\\*(C'>. So the whole block returns a reference to an " |
| 1628 |
"array, which is then dereferenced by CW<\\*(C`@{...}\\*(C'> and stuck into " |
| 1629 |
"the double-quoted string. This chicanery is also useful for arbitrary " |
| 1630 |
"expressions:" |
| 1631 |
msgstr "" |
| 1632 |
"Działa to w tak, że gdy CW<\\*(C`@{...}\\*(C'> znalezione zostanie wewnątrz " |
| 1633 |
"łańcucha w cudzysłowach to zostanie potraktowane jako blok. Blok ten tworzy " |
| 1634 |
"odwołanie do jednoelementowej anonimowej tablicy zawierającej wynik " |
| 1635 |
"wywołania CW<\\*(C`mysub(1,2,3)\\*(C'> [odwołanie to utworzone będzie dzięki " |
| 1636 |
"nawiasom kwadratowym]. Zatem cały blok zwraca odwołanie do tablicy, która " |
| 1637 |
"następnie podlega dereferencji powodowanej przez CW<\\*(C`@{...}\\*(C'>. Jej " |
| 1638 |
"wartość, jako umieszczona w łańcuchu w cudzysłowach podlega interpolacji w " |
| 1639 |
"napis. Takie szykany przydają się także w dowolnych wyrażeniach:" |
| 1640 |
|
| 1641 |
#. type: Plain text |
| 1642 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1643 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1644 |
#, fuzzy, no-wrap |
| 1645 |
#| msgid "\\& print \"That yields @{[$n + 5]} widgets\\en\";" |
| 1646 |
msgid "\\& print \"That yields @{[$n + 5]} widgets\\en\";\n" |
| 1647 |
msgstr "\\& print \"That yields @{[$n + 5]} widgets\\en\";" |
| 1648 |
|
| 1649 |
#. type: Plain text |
| 1650 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1651 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1652 |
msgid "" |
| 1653 |
"Similarly, an expression that returns a reference to a scalar can be " |
| 1654 |
"dereferenced via CW<\\*(C`${...}\\*(C'>. Thus, the above expression may be " |
| 1655 |
"written as:" |
| 1656 |
msgstr "" |
| 1657 |
|
| 1658 |
#. type: Plain text |
| 1659 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1660 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1661 |
#, fuzzy, no-wrap |
| 1662 |
#| msgid "\\& print \"That yields @{[$n + 5]} widgets\\en\";" |
| 1663 |
msgid "\\& print \"That yields ${\\e($n + 5)} widgets\\en\";\n" |
| 1664 |
msgstr "\\& print \"That yields @{[$n + 5]} widgets\\en\";" |
| 1665 |
|
| 1666 |
#. type: IX |
| 1667 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1668 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1669 |
#, fuzzy, no-wrap |
| 1670 |
#| msgid "Using References" |
| 1671 |
msgid "Circular References" |
| 1672 |
msgstr "Użycie odwołań" |
| 1673 |
|
| 1674 |
#. type: IX |
| 1675 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1676 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1677 |
#, no-wrap |
| 1678 |
msgid "circular reference reference, circular" |
| 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 |
"It is possible to create a \"circular reference\" in Perl, which can lead to " |
| 1686 |
"memory leaks. A circular reference occurs when two references contain a " |
| 1687 |
"reference to each other, 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 "" |
| 1695 |
"\\& my $foo = {};\n" |
| 1696 |
"\\& my $bar = { foo =E<gt> $foo };\n" |
| 1697 |
"\\& $foo-E<gt>{bar} = $bar;\n" |
| 1698 |
msgstr "" |
| 1699 |
|
| 1700 |
#. type: Plain text |
| 1701 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1702 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1703 |
msgid "You can also create a circular reference with a single variable:" |
| 1704 |
msgstr "" |
| 1705 |
|
| 1706 |
#. type: Plain text |
| 1707 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1708 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1709 |
#, no-wrap |
| 1710 |
msgid "" |
| 1711 |
"\\& my $foo;\n" |
| 1712 |
"\\& $foo = \\e$foo;\n" |
| 1713 |
msgstr "" |
| 1714 |
|
| 1715 |
#. type: Plain text |
| 1716 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1717 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1718 |
msgid "" |
| 1719 |
"In this case, the reference count for the variables will never reach 0, and " |
| 1720 |
"the references will never be garbage-collected. This can lead to memory " |
| 1721 |
"leaks." |
| 1722 |
msgstr "" |
| 1723 |
|
| 1724 |
#. type: Plain text |
| 1725 |
#: debian-trixie debian-unstable |
| 1726 |
msgid "" |
| 1727 |
"Because objects in Perl are implemented as references, it's possible to have " |
| 1728 |
"circular references with objects as well. Imagine a TreeNode class where " |
| 1729 |
"each node references its parent and child nodes. Any node with a parent will " |
| 1730 |
"be part of a circular reference." |
| 1731 |
msgstr "" |
| 1732 |
|
| 1733 |
#. type: Plain text |
| 1734 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1735 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1736 |
msgid "" |
| 1737 |
"You can break circular references by creating a \"weak reference\". A weak " |
| 1738 |
"reference does not increment the reference count for a variable, which means " |
| 1739 |
"that the object can go out of scope and be destroyed. You can weaken a " |
| 1740 |
"reference with the CW<\\*(C`weaken\\*(C'> function exported by the " |
| 1741 |
"Scalar::Util module, or available as CW<\\*(C`builtin::weaken\\*(C'> " |
| 1742 |
"directly in Perl version 5.35.7 or later." |
| 1743 |
msgstr "" |
| 1744 |
|
| 1745 |
#. type: Plain text |
| 1746 |
#: debian-trixie debian-unstable |
| 1747 |
msgid "Here's how we can make the first example safer:" |
| 1748 |
msgstr "" |
| 1749 |
|
| 1750 |
#. type: Plain text |
| 1751 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1752 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1753 |
#, no-wrap |
| 1754 |
msgid "" |
| 1755 |
"\\& use Scalar::Util \\*(Aqweaken\\*(Aq;\n" |
| 1756 |
"\\&\n" |
| 1757 |
"\\& my $foo = {};\n" |
| 1758 |
"\\& my $bar = { foo =E<gt> $foo };\n" |
| 1759 |
"\\& $foo-E<gt>{bar} = $bar;\n" |
| 1760 |
"\\&\n" |
| 1761 |
"\\& weaken $foo-E<gt>{bar};\n" |
| 1762 |
msgstr "" |
| 1763 |
|
| 1764 |
#. type: Plain text |
| 1765 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1766 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1767 |
msgid "" |
| 1768 |
"The reference from CW<$foo> to CW<$bar> has been weakened. When the " |
| 1769 |
"\\&CW<$bar> variable goes out of scope, it will be garbage-collected. The " |
| 1770 |
"next time you look at the value of the CW<\\*(C`$foo-E<gt>{bar}\\*(C'> key, " |
| 1771 |
"it will be CW<\\*(C`undef\\*(C'>." |
| 1772 |
msgstr "" |
| 1773 |
|
| 1774 |
#. type: Plain text |
| 1775 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1776 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1777 |
msgid "" |
| 1778 |
"This action at a distance can be confusing, so you should be careful with " |
| 1779 |
"your use of weaken. You should weaken the reference in the variable that " |
| 1780 |
"will go out of scope I<first>. That way, the longer-lived variable will " |
| 1781 |
"contain the expected reference until it goes out of scope." |
| 1782 |
msgstr "" |
| 1783 |
|
| 1784 |
#. type: IX |
| 1785 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1786 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1787 |
#, no-wrap |
| 1788 |
msgid "Symbolic references" |
| 1789 |
msgstr "Odwołania symboliczne" |
| 1790 |
|
| 1791 |
#. type: Plain text |
| 1792 |
#: debian-trixie debian-unstable |
| 1793 |
msgid "" |
| 1794 |
"We said that references spring into existence as necessary if they are " |
| 1795 |
"undefined, but we didn't say what happens if a value used as a reference is " |
| 1796 |
"already defined, but I<isn't> a hard reference. If you use it as a " |
| 1797 |
"reference, it'll be treated as a symbolic reference. That is, the value of " |
| 1798 |
"the scalar is taken to be the I<name> of a variable, rather than a direct " |
| 1799 |
"link to a (possibly) anonymous value." |
| 1800 |
msgstr "" |
| 1801 |
"Powiedzieliśmy, że niezdefiniowane cele odwołania w razie potrzeby " |
| 1802 |
"zaistnieją [podczas dereferencji]. Nie mówiliśmy jednak, co się dzieje, gdy " |
| 1803 |
"wartość użyta jako odwołanie jest już zdefiniowana, ale I<\\s-1NIE \\s0JEST> " |
| 1804 |
"odwołaniem stałym. Jeżeli użyjesz odwołania w takim przypadku, to będzie ono " |
| 1805 |
"potraktowane jak odwołanie symboliczne. To znaczy, wartością skalara " |
| 1806 |
"zostanie I<\\s-1NAZWA\\s0> zmiennej a nie bezpośrednie dowiązanie do (być " |
| 1807 |
"może anonimowej) wartości." |
| 1808 |
|
| 1809 |
#. type: Plain text |
| 1810 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1811 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1812 |
msgid "People frequently expect it to work like this. So it does." |
| 1813 |
msgstr "" |
| 1814 |
"Niektórzy często spodziewają się, że działa to jakoś tak. I rzeczywiście." |
| 1815 |
|
| 1816 |
#. type: Plain text |
| 1817 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1818 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1819 |
#, fuzzy, no-wrap |
| 1820 |
#| msgid "\\& $name = \"foo\"; \\& $$name = 1; # Sets $foo \\& ${$name} = 2; # Sets $foo \\& ${$name x 2} = 3; # Sets $foofoo \\& $name-E<gt>[0] = 4; # Sets $foo[0] \\& @$name = (); # Clears @foo \\& &$name(); # Calls &foo() (as in Perl 4) \\& $pack = \"THAT\"; \\& ${\"${pack}::$name\"} = 5; # Sets $THAT::foo without eval" |
| 1821 |
msgid "" |
| 1822 |
"\\& $name = \"foo\";\n" |
| 1823 |
"\\& $$name = 1; # Sets $foo\n" |
| 1824 |
"\\& ${$name} = 2; # Sets $foo\n" |
| 1825 |
"\\& ${$name x 2} = 3; # Sets $foofoo\n" |
| 1826 |
"\\& $name-E<gt>[0] = 4; # Sets $foo[0]\n" |
| 1827 |
"\\& @$name = (); # Clears @foo\n" |
| 1828 |
"\\& &$name(); # Calls &foo()\n" |
| 1829 |
"\\& $pack = \"THAT\";\n" |
| 1830 |
"\\& ${\"${pack}::$name\"} = 5; # Sets $THAT::foo without eval\n" |
| 1831 |
msgstr "\\& $name = \"foo\"; \\& $$name = 1; # ustawia $foo \\& ${$name} = 2; # ustawia $foo \\& ${$name x 2} = 3; # ustawia $foofoo \\& $name-E<gt>[0] = 4; # ustawia $foo[0] \\& @$name = (); # czyści @foo \\& &$name(); # wywołuje &foo() (jak w Perl 4) \\& $pack = \"THAT\"; \\& ${\"${pack}::$name\"} = 5; # ustawia $THAT::foo bez rozwinięcia(eval))" |
| 1832 |
|
| 1833 |
#. type: Plain text |
| 1834 |
#: debian-trixie debian-unstable |
| 1835 |
msgid "" |
| 1836 |
"This is powerful, and slightly dangerous, in that it's possible to intend " |
| 1837 |
"(with the utmost sincerity) to use a hard reference, and accidentally use a " |
| 1838 |
"symbolic reference instead. To protect against that, you can say" |
| 1839 |
msgstr "" |
| 1840 |
"Jest to bardzo silne narzędzie, ale nieco niebezpieczne, gdyż możliwe jest, " |
| 1841 |
"ze szczerym zamiarem użycia odwołania stałego, przypadkowe użycie " |
| 1842 |
"symbolicznego. Możesz się przed tym uchronić pisząc:" |
| 1843 |
|
| 1844 |
#. type: Plain text |
| 1845 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1846 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1847 |
#, fuzzy, no-wrap |
| 1848 |
#| msgid "\\& use strict 'refs';" |
| 1849 |
msgid "\\& use strict \\*(Aqrefs\\*(Aq;\n" |
| 1850 |
msgstr "\\& use strict 'refs';" |
| 1851 |
|
| 1852 |
#. type: Plain text |
| 1853 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1854 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1855 |
msgid "" |
| 1856 |
"and then only hard references will be allowed for the rest of the enclosing " |
| 1857 |
"block. An inner block may countermand that with" |
| 1858 |
msgstr "" |
| 1859 |
"a dla reszty otaczającego bloku będą dozwolone tylko odwołania stałe. " |
| 1860 |
"Wewnętrzny blok może się temu sprzeciwić przy pomocy" |
| 1861 |
|
| 1862 |
#. type: Plain text |
| 1863 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1864 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1865 |
#, fuzzy, no-wrap |
| 1866 |
#| msgid "\\& no strict 'refs';" |
| 1867 |
msgid "\\& no strict \\*(Aqrefs\\*(Aq;\n" |
| 1868 |
msgstr "\\& no strict 'refs';" |
| 1869 |
|
| 1870 |
#. type: Plain text |
| 1871 |
#: debian-trixie debian-unstable |
| 1872 |
#, fuzzy |
| 1873 |
#| msgid "" |
| 1874 |
#| "Only package variables (globals, even if localized) are visible to " |
| 1875 |
#| "symbolic references. Lexical variables (declared with I<my()>) aren't in " |
| 1876 |
#| "a symbol table, and thus are invisible to this mechanism. For example:" |
| 1877 |
msgid "" |
| 1878 |
"Only package variables (globals, even if localized) are visible to symbolic " |
| 1879 |
"references. Lexical variables (declared with B<my()>) aren't in a symbol " |
| 1880 |
"table, and thus are invisible to this mechanism. For example:" |
| 1881 |
msgstr "" |
| 1882 |
"Dla odwołań symbolicznych widoczne są tylko zmienne pakietu (globalne, nawet " |
| 1883 |
"jeśli lokalnie). Zmienne leksykalne (deklarowane przy pomocy I<my()>) nie " |
| 1884 |
"zawierają się w tablicy symboli, zatem są niewidoczne dla tego mechanizmu. " |
| 1885 |
"Na przykład:" |
| 1886 |
|
| 1887 |
#. type: Plain text |
| 1888 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1889 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1890 |
#, fuzzy, no-wrap |
| 1891 |
#| msgid "\\& local $value = 10; \\& $ref = \"value\"; \\& { \\& my $value = 20; \\& print $$ref; \\& }" |
| 1892 |
msgid "" |
| 1893 |
"\\& local $value = 10;\n" |
| 1894 |
"\\& $ref = \"value\";\n" |
| 1895 |
"\\& {\n" |
| 1896 |
"\\& my $value = 20;\n" |
| 1897 |
"\\& print $$ref;\n" |
| 1898 |
"\\& }\n" |
| 1899 |
msgstr "\\& local $wartosc = 10; \\& $ref = \"wartosc\"; \\& { \\& my $wartosc = 20; \\& print $$ref; \\& }" |
| 1900 |
|
| 1901 |
#. type: Plain text |
| 1902 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1903 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1904 |
#, fuzzy |
| 1905 |
#| msgid "" |
| 1906 |
#| "This will still print 10, not 20. Remember that I<local()> affects " |
| 1907 |
#| "package variables, which are all \\*(L\"global\\*(R\" to the package." |
| 1908 |
msgid "" |
| 1909 |
"This will still print 10, not 20. Remember that B<local()> affects package " |
| 1910 |
"variables, which are all \"global\" to the package." |
| 1911 |
msgstr "" |
| 1912 |
"Nadal będzie drukować 10, a nie 20. Pamiętaj, że I<local()> działa na " |
| 1913 |
"zmienne pakietu, które dla samego pakietu wszystkie są " |
| 1914 |
"\\*(L\"globalne\\*(R\"." |
| 1915 |
|
| 1916 |
#. type: IX |
| 1917 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1918 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1919 |
#, no-wrap |
| 1920 |
msgid "Not-so-symbolic references" |
| 1921 |
msgstr "Odwołania niezbyt symboliczne" |
| 1922 |
|
| 1923 |
#. type: Plain text |
| 1924 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1925 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1926 |
msgid "" |
| 1927 |
"Brackets around a symbolic reference can simply serve to isolate an " |
| 1928 |
"identifier or variable name from the rest of an expression, just as they " |
| 1929 |
"always have within a string. For example," |
| 1930 |
msgstr "" |
| 1931 |
|
| 1932 |
#. type: Plain text |
| 1933 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1934 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1935 |
#, fuzzy, no-wrap |
| 1936 |
#| msgid "\\& $push = \"pop on \"; \\& print \"${push}over\";" |
| 1937 |
msgid "" |
| 1938 |
"\\& $push = \"pop on \";\n" |
| 1939 |
"\\& print \"${push}over\";\n" |
| 1940 |
msgstr "\\& $push = \"pop on \"; \\& print \"${push}over\";" |
| 1941 |
|
| 1942 |
#. type: Plain text |
| 1943 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1944 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1945 |
#, fuzzy |
| 1946 |
#| msgid "" |
| 1947 |
#| "has always meant to print \\*(L\"pop on over\\*(R\", even though push is " |
| 1948 |
#| "a reserved word. This has been generalized to work the same outside of " |
| 1949 |
#| "quotes, so that" |
| 1950 |
msgid "" |
| 1951 |
"has always meant to print \"pop on over\", even though push is a reserved " |
| 1952 |
"word. This is generalized to work the same without the enclosing double " |
| 1953 |
"quotes, so that" |
| 1954 |
msgstr "" |
| 1955 |
"miało zawsze znaczenie wydrukowania \\*(L\"pop on over\\*(R\", bez względu " |
| 1956 |
"na fakt, że \"push\" jest słowem zarezerwowanym. Zostało to uogólnione tak, " |
| 1957 |
"by działać również poza cudzysłowami, zatem" |
| 1958 |
|
| 1959 |
#. type: Plain text |
| 1960 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1961 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1962 |
#, fuzzy, no-wrap |
| 1963 |
#| msgid "\\& print ${push} . \"over\";" |
| 1964 |
msgid "\\& print ${push} . \"over\";\n" |
| 1965 |
msgstr "\\& print ${push} . \"over\";" |
| 1966 |
|
| 1967 |
#. type: Plain text |
| 1968 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1969 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1970 |
msgid "and even" |
| 1971 |
msgstr "a nawet" |
| 1972 |
|
| 1973 |
#. type: Plain text |
| 1974 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1975 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1976 |
#, fuzzy, no-wrap |
| 1977 |
#| msgid "\\& print ${ push } . \"over\";" |
| 1978 |
msgid "\\& print ${ push } . \"over\";\n" |
| 1979 |
msgstr "\\& print ${ push } . \"over\";" |
| 1980 |
|
| 1981 |
#. type: Plain text |
| 1982 |
#: debian-trixie debian-unstable |
| 1983 |
#, fuzzy |
| 1984 |
#| msgid "" |
| 1985 |
#| "will have the same effect. (This would have been a syntax error in Perl " |
| 1986 |
#| "5.000, though Perl 4 allowed it in the spaceless form.) This construct " |
| 1987 |
#| "is I<not> considered to be a symbolic reference when you're using strict " |
| 1988 |
#| "refs:" |
| 1989 |
msgid "" |
| 1990 |
"will have the same effect. This construct is I<not> considered to be a " |
| 1991 |
"symbolic reference when you're using strict refs:" |
| 1992 |
msgstr "" |
| 1993 |
"mają ten sam rezultat. (Spowodowałoby to błąd składni w Perlu 5.000, choć " |
| 1994 |
"Perl 4 dopuszcza coś takiego w postaci bez odstępów.) Zauważ, że konstrukcja " |
| 1995 |
"ta I<nie> nie jest uważana za odwołanie symboliczne gdy używasz strict refs:" |
| 1996 |
|
| 1997 |
#. type: Plain text |
| 1998 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1999 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2000 |
#, fuzzy, no-wrap |
| 2001 |
#| msgid "\\& use strict 'refs'; \\& ${ bareword }; # Okay, means $bareword. \\& ${ \"bareword\" }; # Error, symbolic reference." |
| 2002 |
msgid "" |
| 2003 |
"\\& use strict \\*(Aqrefs\\*(Aq;\n" |
| 2004 |
"\\& ${ bareword }; # Okay, means $bareword.\n" |
| 2005 |
"\\& ${ \"bareword\" }; # Error, symbolic reference.\n" |
| 2006 |
msgstr "\\& use strict 'refs'; \\& ${ bareword }; # dobrze, znaczy $bareword. \\& ${ \"bareword\" }; # błąd, odwołanie symboliczne." |
| 2007 |
|
| 2008 |
#. type: Plain text |
| 2009 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2010 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2011 |
#, fuzzy |
| 2012 |
#| msgid "" |
| 2013 |
#| "Similarly, because of all the subscripting that is done using single " |
| 2014 |
#| "words, we've applied the same rule to any bareword that is used for " |
| 2015 |
#| "subscripting a hash. So now, instead of writing" |
| 2016 |
msgid "" |
| 2017 |
"Similarly, because of all the subscripting that is done using single words, " |
| 2018 |
"the same rule applies to any bareword that is used for subscripting a hash. " |
| 2019 |
"So now, instead of writing" |
| 2020 |
msgstr "" |
| 2021 |
"Podobnie, z powodu wszelkiego indeksowania przy pomocy pojedynczych słów, " |
| 2022 |
"zastosowaliśmy tę samą regułę do każdego z gołych słów użytego do " |
| 2023 |
"indeksowania hasza. Zatem teraz, zamiast" |
| 2024 |
|
| 2025 |
#. type: Plain text |
| 2026 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2027 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2028 |
#, fuzzy, no-wrap |
| 2029 |
#| msgid "\\& $array{ \"aaa\" }{ \"bbb\" }{ \"ccc\" }" |
| 2030 |
msgid "\\& $hash{ \"aaa\" }{ \"bbb\" }{ \"ccc\" }\n" |
| 2031 |
msgstr "\\& $array{ \"aaa\" }{ \"bbb\" }{ \"ccc\" }" |
| 2032 |
|
| 2033 |
#. type: Plain text |
| 2034 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2035 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2036 |
msgid "you can write just" |
| 2037 |
msgstr "możesz napisać po prostu" |
| 2038 |
|
| 2039 |
#. type: Plain text |
| 2040 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2041 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2042 |
#, fuzzy, no-wrap |
| 2043 |
#| msgid "\\& $array{ aaa }{ bbb }{ ccc }" |
| 2044 |
msgid "\\& $hash{ aaa }{ bbb }{ ccc }\n" |
| 2045 |
msgstr "\\& $array{ aaa }{ bbb }{ ccc }" |
| 2046 |
|
| 2047 |
#. type: Plain text |
| 2048 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2049 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2050 |
msgid "" |
| 2051 |
"and not worry about whether the subscripts are reserved words. In the rare " |
| 2052 |
"event that you do wish to do something like" |
| 2053 |
msgstr "" |
| 2054 |
"i nie martwić się o to, czy indeksy są słowami zarezerwowanymi. W tych " |
| 2055 |
"rzadkich przypadkach, gdy chcesz zrobić coś w rodzaju" |
| 2056 |
|
| 2057 |
#. type: Plain text |
| 2058 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2059 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2060 |
#, fuzzy, no-wrap |
| 2061 |
#| msgid "\\& $array{ shift }" |
| 2062 |
msgid "\\& $hash{ shift }\n" |
| 2063 |
msgstr "\\& $array{ shift }" |
| 2064 |
|
| 2065 |
#. type: Plain text |
| 2066 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2067 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2068 |
msgid "" |
| 2069 |
"you can force interpretation as a reserved word by adding anything that " |
| 2070 |
"makes it more than a bareword:" |
| 2071 |
msgstr "" |
| 2072 |
"możesz wymusić interpretację słowa jako zarezerwowanego dodając cokolwiek, " |
| 2073 |
"co zrobi zeń więcej niż gołe słowo:" |
| 2074 |
|
| 2075 |
#. type: Plain text |
| 2076 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2077 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2078 |
#, fuzzy, no-wrap |
| 2079 |
#| msgid "\\& $array{ shift() } \\& $array{ +shift } \\& $array{ shift @_ }" |
| 2080 |
msgid "" |
| 2081 |
"\\& $hash{ shift() }\n" |
| 2082 |
"\\& $hash{ +shift }\n" |
| 2083 |
"\\& $hash{ shift @_ }\n" |
| 2084 |
msgstr "\\& $array{ shift() } \\& $array{ +shift } \\& $array{ shift @_ }" |
| 2085 |
|
| 2086 |
#. type: Plain text |
| 2087 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2088 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2089 |
#, fuzzy |
| 2090 |
msgid "" |
| 2091 |
"The CW<\\*(C`use warnings\\*(C'> pragma or the B<-w> switch will warn you if " |
| 2092 |
"it interprets a reserved word as a string. But it will no longer warn you " |
| 2093 |
"about using lowercase words, because the string is effectively quoted." |
| 2094 |
msgstr "" |
| 2095 |
"Przełącznik B<-w> będzie Cię ostrzegał, jeśli zinterpretuje słowo " |
| 2096 |
"zarezerwowane jako łańcuch. Nie będzie jednak ostrzegał o użyciu słów " |
| 2097 |
"pisanych małymi literami, gdyż łańcuch jest faktycznie cytowany." |
| 2098 |
|
| 2099 |
#. type: IX |
| 2100 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2101 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2102 |
#, no-wrap |
| 2103 |
msgid "Pseudo-hashes: Using an array as a hash" |
| 2104 |
msgstr "Pseudo-hasze: używanie tablicy jak hasza" |
| 2105 |
|
| 2106 |
#. type: IX |
| 2107 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2108 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2109 |
#, no-wrap |
| 2110 |
msgid "pseudo-hash pseudo hash pseudohash" |
| 2111 |
msgstr "" |
| 2112 |
|
| 2113 |
#. type: Plain text |
| 2114 |
#: debian-trixie debian-unstable |
| 2115 |
msgid "" |
| 2116 |
"Pseudo-hashes have been removed from Perl. The 'fields' pragma remains " |
| 2117 |
"available." |
| 2118 |
msgstr "" |
| 2119 |
|
| 2120 |
#. type: IX |
| 2121 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2122 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2123 |
#, no-wrap |
| 2124 |
msgid "Function Templates" |
| 2125 |
msgstr "Szablony funkcji" |
| 2126 |
|
| 2127 |
#. type: IX |
| 2128 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2129 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2130 |
#, no-wrap |
| 2131 |
msgid "scope, lexical closure lexical lexical scope subroutine, nested sub, nested subroutine, local sub, local" |
| 2132 |
msgstr "" |
| 2133 |
|
| 2134 |
#. type: Plain text |
| 2135 |
#: debian-trixie debian-unstable |
| 2136 |
#, fuzzy |
| 2137 |
#| msgid "" |
| 2138 |
#| "As explained above, a closure is an anonymous function with access to the " |
| 2139 |
#| "lexical variables visible when that function was compiled. It retains " |
| 2140 |
#| "access to those variables even though it doesn't get run until later, " |
| 2141 |
#| "such as in a signal handler or a Tk callback." |
| 2142 |
msgid "" |
| 2143 |
"As explained above, an anonymous function with access to the lexical " |
| 2144 |
"variables visible when that function was compiled, creates a closure. It " |
| 2145 |
"retains access to those variables even though it doesn't get run until " |
| 2146 |
"later, such as in a signal handler or a Tk callback." |
| 2147 |
msgstr "" |
| 2148 |
"Jak wyjaśniono powyżej, zamknięcie jest anonimową funkcją z dostępem do " |
| 2149 |
"zmiennych leksykalnych widocznych podczas jej kompilacji. Zachowuje ona " |
| 2150 |
"dostęp do tych zmiennych nawet wtedy, gdy jest wykonywana później, tak jak " |
| 2151 |
"funkcja obsługi sygnału (signal handler) czy wywołanie wsteczne Tk." |
| 2152 |
|
| 2153 |
#. type: Plain text |
| 2154 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2155 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2156 |
#, fuzzy |
| 2157 |
#| msgid "" |
| 2158 |
#| "Using a closure as a function template allows us to generate many " |
| 2159 |
#| "functions that act similarly. Suppose you wanted functions named after " |
| 2160 |
#| "the colors that generated \\s-1HTML\\s0 font changes for the various " |
| 2161 |
#| "colors:" |
| 2162 |
msgid "" |
| 2163 |
"Using a closure as a function template allows us to generate many functions " |
| 2164 |
"that act similarly. Suppose you wanted functions named after the colors " |
| 2165 |
"that generated HTML font changes for the various colors:" |
| 2166 |
msgstr "" |
| 2167 |
"Posługiwanie się zamknięciem jako szablonem funkcji umożliwia tworzenie " |
| 2168 |
"wielu podobnie działających funkcji. Załóżmy, że potrzebujesz funkcji o " |
| 2169 |
"nazwach pochodzących od różnych kolorów zmieniających czcionkę \\s-1HTML\\s0." |
| 2170 |
|
| 2171 |
#. type: Plain text |
| 2172 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2173 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2174 |
#, fuzzy, no-wrap |
| 2175 |
#| msgid "\\& print \"Be \", red(\"careful\"), \"with that \", green(\"light\");" |
| 2176 |
msgid "\\& print \"Be \", red(\"careful\"), \"with that \", green(\"light\");\n" |
| 2177 |
msgstr "\\& print \"Be \", red(\"uważaj\"), \"na to \", green(\"światło\");" |
| 2178 |
|
| 2179 |
#. type: Plain text |
| 2180 |
#: debian-trixie debian-unstable |
| 2181 |
#, fuzzy |
| 2182 |
#| msgid "" |
| 2183 |
#| "The I<red()> and I<green()> functions would be similar. To create these, " |
| 2184 |
#| "we'll assign a closure to a typeglob of the name of the function we're " |
| 2185 |
#| "trying to build." |
| 2186 |
msgid "" |
| 2187 |
"The B<red()> and B<green()> functions would be similar. To create these, " |
| 2188 |
"we'll assign a closure to a typeglob of the name of the function we're " |
| 2189 |
"trying to build." |
| 2190 |
msgstr "" |
| 2191 |
"Funkcje I<red()> i I<green()> będą bardzo podobne. By je stworzyć, " |
| 2192 |
"przypiszemy zamknięcie do typeglob nazwy funkcji, którą próbujemy " |
| 2193 |
"skonstruować." |
| 2194 |
|
| 2195 |
#. type: Plain text |
| 2196 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2197 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2198 |
#, fuzzy, no-wrap |
| 2199 |
#| msgid "\\& @colors = qw(red blue green yellow orange purple violet); \\& for my $name (@colors) { \\& no strict 'refs'; # allow symbol table manipulation \\& *$name = *{uc $name} = sub { \"E<lt>FONT COLOR='$name'E<gt>@_E<lt>/FONTE<gt>\" }; \\& }" |
| 2200 |
msgid "" |
| 2201 |
"\\& @colors = qw(red blue green yellow orange purple violet);\n" |
| 2202 |
"\\& for my $name (@colors) {\n" |
| 2203 |
"\\& no strict \\*(Aqrefs\\*(Aq; # allow symbol table manipulation\n" |
| 2204 |
"\\& *$name = *{uc $name} = sub { \"E<lt>FONT COLOR=\\*(Aq$name\\*(AqE<gt>@_E<lt>/FONTE<gt>\" };\n" |
| 2205 |
"\\& }\n" |
| 2206 |
msgstr "\\& @colors = qw(red blue green yellow orange purple violet); \\& for my $nazwa (@kolory) { \\& no strict 'refs'; # pozwól na operowanie tablicą symboli \\& *$nazwa = *{uc $nazwa} = sub { \"E<lt>FONT COLOR='$nazwa'E<gt>@_E<lt>/FONTE<gt>\" }; \\& }" |
| 2207 |
|
| 2208 |
#. type: Plain text |
| 2209 |
#: debian-trixie debian-unstable |
| 2210 |
#, fuzzy |
| 2211 |
#| msgid "" |
| 2212 |
#| "Now all those different functions appear to exist independently. You can " |
| 2213 |
#| "call I<red()>, \\s-1I<RED\\s0()>, I<blue()>, \\s-1I<BLUE\\s0()>, " |
| 2214 |
#| "I<green()>, etc. This technique saves on both compile time and memory " |
| 2215 |
#| "use, and is less error-prone as well, since syntax checks happen at " |
| 2216 |
#| "compile time. It's critical that any variables in the anonymous " |
| 2217 |
#| "subroutine be lexicals in order to create a proper closure. That's the " |
| 2218 |
#| "reasons for the CW<\\*(C`my\\*(C'> on the loop iteration variable." |
| 2219 |
msgid "" |
| 2220 |
"Now all those different functions appear to exist independently. You can " |
| 2221 |
"call B<red()>, B<RED()>, B<blue()>, B<BLUE()>, B<green()>, etc. This " |
| 2222 |
"technique saves on both compile time and memory use, and is less error-prone " |
| 2223 |
"as well, since syntax checks happen at compile time. It's critical that any " |
| 2224 |
"variables in the anonymous subroutine be lexicals in order to create a " |
| 2225 |
"proper closure. That's the reasons for the CW<\\*(C`my\\*(C'> on the loop " |
| 2226 |
"iteration variable." |
| 2227 |
msgstr "" |
| 2228 |
"Teraz wszystkie te funkcje będą istnieć niezależnie od siebie. Możesz " |
| 2229 |
"wywoływać I<red()>, I<\\s-1RED\\s0()>, I<blue()>, I<\\s-1BLUE\\s0()>, " |
| 2230 |
"I<green()>, etc. Technika ta zarówno skraca czas kompilacji jak i zmniejsza " |
| 2231 |
"zużycie pamięci, jest też mniej narażona na błędy, gdyż kontrola składni " |
| 2232 |
"odbywa się podczas kompilacji. Istotne jest, by wszelkie zmienne w " |
| 2233 |
"anonimowej procedurze były zmiennymi leksykalnymi by stworzyć poprawne " |
| 2234 |
"zamknięcie. Z tego powodu użyto CW<my> dla zmiennej sterującej pętli." |
| 2235 |
|
| 2236 |
#. type: Plain text |
| 2237 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2238 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2239 |
msgid "" |
| 2240 |
"This is one of the only places where giving a prototype to a closure makes " |
| 2241 |
"much sense. If you wanted to impose scalar context on the arguments of " |
| 2242 |
"these functions (probably not a wise idea for this particular example), you " |
| 2243 |
"could have written it this way instead:" |
| 2244 |
msgstr "" |
| 2245 |
"Jest to jedno z jedynych miejsc, gdzie dostarczenie prototypu do zamknięcia " |
| 2246 |
"ma sens. Jeśli chciałbyś narzucić kontekst skalarny dla argumentów " |
| 2247 |
"powyższych, przykładowych funkcji (pewnie nie najlepszy pomysł w tym " |
| 2248 |
"przypadku), możesz zapisać to inaczej:" |
| 2249 |
|
| 2250 |
#. type: Plain text |
| 2251 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2252 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2253 |
#, fuzzy, no-wrap |
| 2254 |
#| msgid "\\& *$name = sub ($) { \"E<lt>FONT COLOR='$name'E<gt>$_[0]E<lt>/FONTE<gt>\" };" |
| 2255 |
msgid "\\& *$name = sub ($) { \"E<lt>FONT COLOR=\\*(Aq$name\\*(AqE<gt>$_[0]E<lt>/FONTE<gt>\" };\n" |
| 2256 |
msgstr "\\& *$name = sub ($) { \"E<lt>FONT COLOR='$name'E<gt>$_[0]E<lt>/FONTE<gt>\" };" |
| 2257 |
|
| 2258 |
#. type: Plain text |
| 2259 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2260 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2261 |
#, fuzzy |
| 2262 |
#| msgid "" |
| 2263 |
#| "However, since prototype checking happens at compile time, the assignment " |
| 2264 |
#| "above happens too late to be of much use. You could address this by " |
| 2265 |
#| "putting the whole loop of assignments within a \\s-1BEGIN\\s0 block, " |
| 2266 |
#| "forcing it to occur during compilation." |
| 2267 |
msgid "" |
| 2268 |
"However, since prototype checking happens at compile time, the assignment " |
| 2269 |
"above happens too late to be of much use. You could address this by putting " |
| 2270 |
"the whole loop of assignments within a BEGIN block, forcing it to occur " |
| 2271 |
"during compilation." |
| 2272 |
msgstr "" |
| 2273 |
"Jednakże, ponieważ sprawdzanie protypów odbywa się podczas kompilacji, " |
| 2274 |
"powyższe przypisanie zostanie wykonane za późno, by było przydatne. Mógłbyś " |
| 2275 |
"to obejść przez włożenie całej pętli przypisań do wnętrza bloku " |
| 2276 |
"\\s-1BEGIN\\s0u, wymuszając wykonanie go w czasie kompilacji." |
| 2277 |
|
| 2278 |
#. type: Plain text |
| 2279 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2280 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2281 |
msgid "" |
| 2282 |
"Access to lexicals that change over time--like those in the " |
| 2283 |
"CW<\\*(C`for\\*(C'> loop above, basically aliases to elements from the " |
| 2284 |
"surrounding lexical scopes-- only works with anonymous subs, not with named " |
| 2285 |
"subroutines. Generally said, named subroutines do not nest properly and " |
| 2286 |
"should only be declared in the main package scope." |
| 2287 |
msgstr "" |
| 2288 |
|
| 2289 |
#. type: Plain text |
| 2290 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2291 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2292 |
msgid "" |
| 2293 |
"This is because named subroutines are created at compile time so their " |
| 2294 |
"lexical variables get assigned to the parent lexicals from the first " |
| 2295 |
"execution of the parent block. If a parent scope is entered a second time, " |
| 2296 |
"its lexicals are created again, while the nested subs still reference the " |
| 2297 |
"old ones." |
| 2298 |
msgstr "" |
| 2299 |
|
| 2300 |
#. type: Plain text |
| 2301 |
#: debian-trixie debian-unstable |
| 2302 |
#, fuzzy |
| 2303 |
#| msgid "" |
| 2304 |
#| "Access to lexicals that change over type\\*(--like those in the " |
| 2305 |
#| "CW<\\*(C`for\\*(C'> loop above\\*(--only works with closures, not general " |
| 2306 |
#| "subroutines. In the general case, then, named subroutines do not nest " |
| 2307 |
#| "properly, although anonymous ones do. If you are accustomed to using " |
| 2308 |
#| "nested subroutines in other programming languages with their own private " |
| 2309 |
#| "variables, you'll have to work at it a bit in Perl. The intuitive coding " |
| 2310 |
#| "of this type of thing incurs mysterious warnings about ``will not stay " |
| 2311 |
#| "shared''. For example, this won't work:" |
| 2312 |
msgid "" |
| 2313 |
"Anonymous subroutines get to capture each time you execute the " |
| 2314 |
"CW<\\*(C`sub\\*(C'> operator, as they are created on the fly. If you are " |
| 2315 |
"accustomed to using nested subroutines in other programming languages with " |
| 2316 |
"their own private variables, you'll have to work at it a bit in Perl. The " |
| 2317 |
"intuitive coding of this type of thing incurs mysterious warnings about " |
| 2318 |
"\"will not stay shared\" due to the reasons explained above. For example, " |
| 2319 |
"this won't work:" |
| 2320 |
msgstr "" |
| 2321 |
"Dostęp do zmiennych leksykalnych zmieniających typ \\*(-- jak te w pętli " |
| 2322 |
"CW<for> powyższego przykładu\\*(-- działa wyłącznie z zamknięciami, a nie z " |
| 2323 |
"procedurami w ogóle. Zatem w przypadku ogólnym, procedury nazwane nie " |
| 2324 |
"zagnieżdżają się prawidłowo, choć robią to procedury anonimowe. Jeśli " |
| 2325 |
"nawykłeś do używania zagnieżdżonych procedur z własnymi prywatnymi zmiennymi " |
| 2326 |
"w innych językach programowania, to w Perlu będziesz musiał nad trochę " |
| 2327 |
"popracować. Intuicyjna metoda kodowania tego typu rzeczy spowoduje " |
| 2328 |
"tajemnicze ostrzeżenia ``will not stay shared'\\*(R' (nie pozostanie " |
| 2329 |
"wspólne). To, na przykład, nie zadziała:" |
| 2330 |
|
| 2331 |
#. type: Plain text |
| 2332 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2333 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2334 |
#, fuzzy, no-wrap |
| 2335 |
#| msgid "\\& sub outer { \\& my $x = $_[0] + 35; \\& sub inner { return $x * 19 } # WRONG \\& return $x + inner(); \\& }" |
| 2336 |
msgid "" |
| 2337 |
"\\& sub outer {\n" |
| 2338 |
"\\& my $x = $_[0] + 35;\n" |
| 2339 |
"\\& sub inner { return $x * 19 } # WRONG\n" |
| 2340 |
"\\& return $x + inner();\n" |
| 2341 |
"\\& }\n" |
| 2342 |
msgstr "\\& sub zewn { \\& my $x = $_[0] + 35; \\& sub wewn { return $x * 19 } # ŹLE \\& return $x + wewn(); \\& }" |
| 2343 |
|
| 2344 |
#. type: Plain text |
| 2345 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2346 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2347 |
msgid "A work-around is the following:" |
| 2348 |
msgstr "Obejście jest następujące:" |
| 2349 |
|
| 2350 |
#. type: Plain text |
| 2351 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2352 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2353 |
#, fuzzy, no-wrap |
| 2354 |
#| msgid "\\& sub outer { \\& my $x = $_[0] + 35; \\& local *inner = sub { return $x * 19 }; \\& return $x + inner(); \\& }" |
| 2355 |
msgid "" |
| 2356 |
"\\& sub outer {\n" |
| 2357 |
"\\& my $x = $_[0] + 35;\n" |
| 2358 |
"\\& local *inner = sub { return $x * 19 };\n" |
| 2359 |
"\\& return $x + inner();\n" |
| 2360 |
"\\& }\n" |
| 2361 |
msgstr "\\& sub zewn { \\& my $x = $_[0] + 35; \\& local *wewn = sub { return $x * 19 }; \\& return $x + wewn(); \\& }" |
| 2362 |
|
| 2363 |
#. type: Plain text |
| 2364 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2365 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2366 |
#, fuzzy |
| 2367 |
#| msgid "" |
| 2368 |
#| "Now I<inner()> can only be called from within I<outer()>, because of the " |
| 2369 |
#| "temporary assignments of the closure (anonymous subroutine). But when it " |
| 2370 |
#| "does, it has normal access to the lexical variable CW<$x> from the scope " |
| 2371 |
#| "of I<outer()>." |
| 2372 |
msgid "" |
| 2373 |
"Now B<inner()> can only be called from within B<outer()>, because of the " |
| 2374 |
"temporary assignments of the anonymous subroutine. But when it does, it has " |
| 2375 |
"normal access to the lexical variable CW<$x> from the scope of \\&B<outer()> " |
| 2376 |
"at the time outer is invoked." |
| 2377 |
msgstr "" |
| 2378 |
"Teraz I<wewn()> może być wywołana tylko z wnętrza I<zewn()>, z powodu " |
| 2379 |
"tymczasowego przypisania zamknięcia (procedury anonimowej). Ale kiedy jest " |
| 2380 |
"wywoływana, to ma zwykły dostęp do zmiennej leksykalnej CW<$x> z zakresu " |
| 2381 |
"procedury I<zewn()>." |
| 2382 |
|
| 2383 |
#. type: Plain text |
| 2384 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2385 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2386 |
msgid "" |
| 2387 |
"This has the interesting effect of creating a function local to another " |
| 2388 |
"function, something not normally supported in Perl." |
| 2389 |
msgstr "" |
| 2390 |
"Ma to interesujący skutek tworzenia funkcji lokalnych względem innych " |
| 2391 |
"funkcji, co normalnie nie jest obsługiwane w Perlu." |
| 2392 |
|
| 2393 |
#. type: IX |
| 2394 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2395 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2396 |
#, no-wrap |
| 2397 |
msgid "Postfix Dereference Syntax" |
| 2398 |
msgstr "" |
| 2399 |
|
| 2400 |
#. type: Plain text |
| 2401 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2402 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2403 |
msgid "" |
| 2404 |
"Beginning in v5.20.0, a postfix syntax for using references is available. " |
| 2405 |
"It behaves as described in \"Using References\", but instead of a prefixed " |
| 2406 |
"sigil, a postfixed sigil-and-star is used." |
| 2407 |
msgstr "" |
| 2408 |
|
| 2409 |
#. type: Plain text |
| 2410 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2411 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2412 |
msgid "For example:" |
| 2413 |
msgstr "Na przykład:" |
| 2414 |
|
| 2415 |
#. type: Plain text |
| 2416 |
#: debian-trixie debian-unstable |
| 2417 |
#, no-wrap |
| 2418 |
msgid "" |
| 2419 |
"\\& $r = \\e@a;\n" |
| 2420 |
"\\& @b = $r-E<gt>@*; # equivalent to @$r or @{ $r }\n" |
| 2421 |
"\\&\n" |
| 2422 |
"\\& $r = [ 1, [ 2, 3 ], 4 ];\n" |
| 2423 |
"\\& $r-E<gt>[1]-E<gt>@*; # equivalent to @{ $r-E<gt>[1] }\n" |
| 2424 |
msgstr "" |
| 2425 |
|
| 2426 |
#. type: Plain text |
| 2427 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2428 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2429 |
msgid "" |
| 2430 |
"In Perl 5.20 and 5.22, this syntax must be enabled with CW<use feature " |
| 2431 |
"\\&\\*(Aqpostderef\\*(Aq>. As of Perl 5.24, no feature declarations are " |
| 2432 |
"required to make it available." |
| 2433 |
msgstr "" |
| 2434 |
|
| 2435 |
#. type: Plain text |
| 2436 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2437 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2438 |
msgid "" |
| 2439 |
"Postfix dereference should work in all circumstances where block (circumfix) " |
| 2440 |
"dereference worked, and should be entirely equivalent. This syntax allows " |
| 2441 |
"dereferencing to be written and read entirely left-to-right. The following " |
| 2442 |
"equivalencies are defined:" |
| 2443 |
msgstr "" |
| 2444 |
|
| 2445 |
#. type: Plain text |
| 2446 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2447 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2448 |
#, no-wrap |
| 2449 |
msgid "" |
| 2450 |
"\\& $sref-E<gt>$*; # same as ${ $sref }\n" |
| 2451 |
"\\& $aref-E<gt>@*; # same as @{ $aref }\n" |
| 2452 |
"\\& $aref-E<gt>$#*; # same as $#{ $aref }\n" |
| 2453 |
"\\& $href-E<gt>%*; # same as %{ $href }\n" |
| 2454 |
"\\& $cref-E<gt>&*; # same as &{ $cref }\n" |
| 2455 |
"\\& $gref-E<gt>**; # same as *{ $gref }\n" |
| 2456 |
msgstr "" |
| 2457 |
|
| 2458 |
#. type: Plain text |
| 2459 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2460 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2461 |
msgid "" |
| 2462 |
"Note especially that CW<\\*(C`$cref-E<gt>&*\\*(C'> is I<not> equivalent to " |
| 2463 |
"CW<$cref-E<gt>()>, and can serve different purposes." |
| 2464 |
msgstr "" |
| 2465 |
|
| 2466 |
#. type: Plain text |
| 2467 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2468 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2469 |
msgid "" |
| 2470 |
"Glob elements can be extracted through the postfix dereferencing feature:" |
| 2471 |
msgstr "" |
| 2472 |
|
| 2473 |
#. type: Plain text |
| 2474 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2475 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2476 |
#, no-wrap |
| 2477 |
msgid "\\& $gref-E<gt>*{SCALAR}; # same as *{ $gref }{SCALAR}\n" |
| 2478 |
msgstr "" |
| 2479 |
|
| 2480 |
#. type: Plain text |
| 2481 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2482 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2483 |
msgid "" |
| 2484 |
"Postfix array and scalar dereferencing I<can> be used in interpolating " |
| 2485 |
"strings (double quotes or the CW<\\*(C`qq\\*(C'> operator), but only if the " |
| 2486 |
"\\&CW<\\*(C`postderef_qq\\*(C'> feature is enabled. Interpolation of postfix " |
| 2487 |
"array highest index access (CW<\\*(C`-E<gt>$#*\\*(C'>) is also supported " |
| 2488 |
"when the CW<\\*(C`postderef_qq\\*(C'> feature is enabled." |
| 2489 |
msgstr "" |
| 2490 |
|
| 2491 |
#. type: IX |
| 2492 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2493 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2494 |
#, no-wrap |
| 2495 |
msgid "Postfix Reference Slicing" |
| 2496 |
msgstr "" |
| 2497 |
|
| 2498 |
#. type: Plain text |
| 2499 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2500 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2501 |
msgid "" |
| 2502 |
"Value slices of arrays and hashes may also be taken with postfix " |
| 2503 |
"dereferencing notation, with the following equivalencies:" |
| 2504 |
msgstr "" |
| 2505 |
|
| 2506 |
#. type: Plain text |
| 2507 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2508 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2509 |
#, no-wrap |
| 2510 |
msgid "" |
| 2511 |
"\\& $aref-E<gt>@[ ... ]; # same as @$aref[ ... ]\n" |
| 2512 |
"\\& $href-E<gt>@{ ... }; # same as @$href{ ... }\n" |
| 2513 |
msgstr "" |
| 2514 |
|
| 2515 |
#. type: Plain text |
| 2516 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2517 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2518 |
msgid "" |
| 2519 |
"Postfix key/value pair slicing, added in 5.20.0 and documented in the Key/" |
| 2520 |
"Value Hash Slices section of perldata, also behaves as expected:" |
| 2521 |
msgstr "" |
| 2522 |
|
| 2523 |
#. type: Plain text |
| 2524 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2525 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2526 |
#, no-wrap |
| 2527 |
msgid "" |
| 2528 |
"\\& $aref-E<gt>%[ ... ]; # same as %$aref[ ... ]\n" |
| 2529 |
"\\& $href-E<gt>%{ ... }; # same as %$href{ ... }\n" |
| 2530 |
msgstr "" |
| 2531 |
|
| 2532 |
#. type: Plain text |
| 2533 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2534 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2535 |
msgid "" |
| 2536 |
"As with postfix array, postfix value slice dereferencing I<can> be used in " |
| 2537 |
"interpolating strings (double quotes or the CW<\\*(C`qq\\*(C'> operator), " |
| 2538 |
"but only if the CW<\\*(C`postderef_qq\\*(C'> feature is enabled." |
| 2539 |
msgstr "" |
| 2540 |
|
| 2541 |
#. type: IX |
| 2542 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2543 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2544 |
#, fuzzy, no-wrap |
| 2545 |
#| msgid "Using References" |
| 2546 |
msgid "Assigning to References" |
| 2547 |
msgstr "Użycie odwołań" |
| 2548 |
|
| 2549 |
#. type: Plain text |
| 2550 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2551 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2552 |
msgid "" |
| 2553 |
"Beginning in v5.22.0, the referencing operator can be assigned to. It " |
| 2554 |
"performs an aliasing operation, so that the variable name referenced on the " |
| 2555 |
"left-hand side becomes an alias for the thing referenced on the right-hand " |
| 2556 |
"side:" |
| 2557 |
msgstr "" |
| 2558 |
|
| 2559 |
#. type: Plain text |
| 2560 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2561 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2562 |
#, no-wrap |
| 2563 |
msgid "" |
| 2564 |
"\\& \\e$x = \\e$y; # $x and $y now point to the same scalar\n" |
| 2565 |
"\\& \\e&foo = \\e&bar; # foo() now means bar()\n" |
| 2566 |
msgstr "" |
| 2567 |
|
| 2568 |
#. type: Plain text |
| 2569 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2570 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2571 |
msgid "" |
| 2572 |
"This syntax must be enabled with CW<\\*(C`use feature " |
| 2573 |
"\\*(Aqrefaliasing\\*(Aq\\*(C'>. It is experimental, and will warn by " |
| 2574 |
"default unless CW<no warnings \\&\\*(Aqexperimental::refaliasing\\*(Aq> is " |
| 2575 |
"in effect." |
| 2576 |
msgstr "" |
| 2577 |
|
| 2578 |
#. type: Plain text |
| 2579 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2580 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2581 |
msgid "" |
| 2582 |
"These forms may be assigned to, and cause the right-hand side to be " |
| 2583 |
"evaluated in scalar context:" |
| 2584 |
msgstr "" |
| 2585 |
|
| 2586 |
#. type: Plain text |
| 2587 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2588 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2589 |
#, no-wrap |
| 2590 |
msgid "" |
| 2591 |
"\\& \\e$scalar\n" |
| 2592 |
"\\& \\e@array\n" |
| 2593 |
"\\& \\e%hash\n" |
| 2594 |
"\\& \\e&sub\n" |
| 2595 |
"\\& \\emy $scalar\n" |
| 2596 |
"\\& \\emy @array\n" |
| 2597 |
"\\& \\emy %hash\n" |
| 2598 |
"\\& \\estate $scalar # or @array, etc.\n" |
| 2599 |
"\\& \\eour $scalar # etc.\n" |
| 2600 |
"\\& \\elocal $scalar # etc.\n" |
| 2601 |
"\\& \\elocal our $scalar # etc.\n" |
| 2602 |
"\\& \\e$some_array[$index]\n" |
| 2603 |
"\\& \\e$some_hash{$key}\n" |
| 2604 |
"\\& \\elocal $some_array[$index]\n" |
| 2605 |
"\\& \\elocal $some_hash{$key}\n" |
| 2606 |
"\\& condition ? \\e$this : \\e$that[0] # etc.\n" |
| 2607 |
msgstr "" |
| 2608 |
|
| 2609 |
#. type: Plain text |
| 2610 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2611 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2612 |
msgid "" |
| 2613 |
"Slicing operations and parentheses cause the right-hand side to be evaluated " |
| 2614 |
"in list context:" |
| 2615 |
msgstr "" |
| 2616 |
|
| 2617 |
#. type: Plain text |
| 2618 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2619 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2620 |
#, no-wrap |
| 2621 |
msgid "" |
| 2622 |
"\\& \\e@array[5..7]\n" |
| 2623 |
"\\& (\\e@array[5..7])\n" |
| 2624 |
"\\& \\e(@array[5..7])\n" |
| 2625 |
"\\& \\e@hash{\\*(Aqfoo\\*(Aq,\\*(Aqbar\\*(Aq}\n" |
| 2626 |
"\\& (\\e@hash{\\*(Aqfoo\\*(Aq,\\*(Aqbar\\*(Aq})\n" |
| 2627 |
"\\& \\e(@hash{\\*(Aqfoo\\*(Aq,\\*(Aqbar\\*(Aq})\n" |
| 2628 |
"\\& (\\e$scalar)\n" |
| 2629 |
"\\& \\e($scalar)\n" |
| 2630 |
"\\& \\e(my $scalar)\n" |
| 2631 |
"\\& \\emy($scalar)\n" |
| 2632 |
"\\& (\\e@array)\n" |
| 2633 |
"\\& (\\e%hash)\n" |
| 2634 |
"\\& (\\e&sub)\n" |
| 2635 |
"\\& \\e(&sub)\n" |
| 2636 |
"\\& \\e($foo, @bar, %baz)\n" |
| 2637 |
"\\& (\\e$foo, \\e@bar, \\e%baz)\n" |
| 2638 |
msgstr "" |
| 2639 |
|
| 2640 |
#. type: Plain text |
| 2641 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2642 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2643 |
msgid "" |
| 2644 |
"Each element on the right-hand side must be a reference to a datum of the " |
| 2645 |
"right type. Parentheses immediately surrounding an array (and possibly also " |
| 2646 |
"CW<\\*(C`my\\*(C'>/CW<\\*(C`state\\*(C'>/CW<\\*(C`our\\*(C'>/" |
| 2647 |
"CW<\\*(C`local\\*(C'>) will make each element of the array an alias to the " |
| 2648 |
"corresponding scalar referenced on the right-hand side:" |
| 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 |
#, no-wrap |
| 2655 |
msgid "" |
| 2656 |
"\\& \\e(@x) = \\e(@y); # @x and @y now have the same elements\n" |
| 2657 |
"\\& \\emy(@x) = \\e(@y); # likewise\n" |
| 2658 |
"\\& \\e(my @x) = \\e(@y); # likewise\n" |
| 2659 |
"\\& push @x, 3; # but now @x has an extra element that @y lacks\n" |
| 2660 |
"\\& \\e(@x) = (\\e$x, \\e$y, \\e$z); # @x now contains $x, $y, and $z\n" |
| 2661 |
msgstr "" |
| 2662 |
|
| 2663 |
#. type: Plain text |
| 2664 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2665 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2666 |
msgid "" |
| 2667 |
"Combining that form with CW<\\*(C`local\\*(C'> and putting parentheses " |
| 2668 |
"immediately around a hash are forbidden (because it is not clear what they " |
| 2669 |
"should do):" |
| 2670 |
msgstr "" |
| 2671 |
|
| 2672 |
#. type: Plain text |
| 2673 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2674 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2675 |
#, no-wrap |
| 2676 |
msgid "" |
| 2677 |
"\\& \\elocal(@array) = foo(); # WRONG\n" |
| 2678 |
"\\& \\e(%hash) = bar(); # WRONG\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 |
msgid "" |
| 2685 |
"Assignment to references and non-references may be combined in lists and " |
| 2686 |
"conditional ternary expressions, as long as the values on the right-hand " |
| 2687 |
"side are the right type for each element on the left, though this may make " |
| 2688 |
"for obfuscated code:" |
| 2689 |
msgstr "" |
| 2690 |
|
| 2691 |
#. type: Plain text |
| 2692 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2693 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2694 |
#, no-wrap |
| 2695 |
msgid "" |
| 2696 |
"\\& (my $tom, \\emy $dick, \\emy @harry) = (\\e1, \\e2, [1..3]);\n" |
| 2697 |
"\\& # $tom is now \\e1\n" |
| 2698 |
"\\& # $dick is now 2 (read-only)\n" |
| 2699 |
"\\& # @harry is (1,2,3)\n" |
| 2700 |
"\\&\n" |
| 2701 |
"\\& my $type = ref $thingy;\n" |
| 2702 |
"\\& ($type ? $type eq \\*(AqARRAY\\*(Aq ? \\e@foo : \\e$bar : $baz) = $thingy;\n" |
| 2703 |
msgstr "" |
| 2704 |
|
| 2705 |
#. type: Plain text |
| 2706 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2707 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2708 |
msgid "" |
| 2709 |
"A reference assignment in list context returns a list of references to each " |
| 2710 |
"left-hand value. So for example" |
| 2711 |
msgstr "" |
| 2712 |
|
| 2713 |
#. type: Plain text |
| 2714 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2715 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2716 |
#, no-wrap |
| 2717 |
msgid "\\& @b = ((\\e$l1, \\e$l2, \\e(@a)) = (\\e$r1, \\e$r2, $\\er3, \\e$4));\n" |
| 2718 |
msgstr "" |
| 2719 |
|
| 2720 |
#. type: Plain text |
| 2721 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2722 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2723 |
msgid "is equivalent to" |
| 2724 |
msgstr "jest równoznaczne z" |
| 2725 |
|
| 2726 |
#. type: Plain text |
| 2727 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2728 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2729 |
#, no-wrap |
| 2730 |
msgid "" |
| 2731 |
"\\& (\\e$l1, \\e$l2, \\e(@a)) = (\\e$r1, \\e$r2, $\\er3, \\e$4);\n" |
| 2732 |
"\\& @b = (\\e$l1, \\e$l2, \\e$a[0], \\e$a[1]);\n" |
| 2733 |
msgstr "" |
| 2734 |
|
| 2735 |
#. type: Plain text |
| 2736 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2737 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2738 |
msgid "" |
| 2739 |
"The CW<\\*(C`foreach\\*(C'> loop can also take a reference constructor for " |
| 2740 |
"its loop variable, though the syntax is limited to one of the following, " |
| 2741 |
"with an optional CW<\\*(C`my\\*(C'>, CW<\\*(C`state\\*(C'>, or " |
| 2742 |
"CW<\\*(C`our\\*(C'> after the backslash:" |
| 2743 |
msgstr "" |
| 2744 |
|
| 2745 |
#. type: Plain text |
| 2746 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2747 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2748 |
#, no-wrap |
| 2749 |
msgid "" |
| 2750 |
"\\& \\e$s\n" |
| 2751 |
"\\& \\e@a\n" |
| 2752 |
"\\& \\e%h\n" |
| 2753 |
"\\& \\e&c\n" |
| 2754 |
msgstr "" |
| 2755 |
|
| 2756 |
#. type: Plain text |
| 2757 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2758 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2759 |
msgid "" |
| 2760 |
"No parentheses are permitted. This feature is particularly useful for " |
| 2761 |
"arrays-of-arrays, or arrays-of-hashes:" |
| 2762 |
msgstr "" |
| 2763 |
|
| 2764 |
#. type: Plain text |
| 2765 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2766 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2767 |
#, no-wrap |
| 2768 |
msgid "" |
| 2769 |
"\\& foreach \\emy @a (@array_of_arrays) {\n" |
| 2770 |
"\\& frobnicate($a[0], $a[-1]);\n" |
| 2771 |
"\\& }\n" |
| 2772 |
"\\&\n" |
| 2773 |
"\\& foreach \\emy %h (@array_of_hashes) {\n" |
| 2774 |
"\\& $h{gelastic}++ if $h{type} eq \\*(Aqfunny\\*(Aq;\n" |
| 2775 |
"\\& }\n" |
| 2776 |
msgstr "" |
| 2777 |
|
| 2778 |
#. type: Plain text |
| 2779 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2780 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2781 |
msgid "" |
| 2782 |
"\\&B<CAVEAT:> Aliasing does not work correctly with closures. If you try to " |
| 2783 |
"alias lexical variables from an inner subroutine or CW<\\*(C`eval\\*(C'>, " |
| 2784 |
"the aliasing will only be visible within that inner sub, and will not affect " |
| 2785 |
"the outer subroutine where the variables are declared. This bizarre " |
| 2786 |
"behavior is subject to change." |
| 2787 |
msgstr "" |
| 2788 |
|
| 2789 |
#. type: IX |
| 2790 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2791 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2792 |
#, no-wrap |
| 2793 |
msgid "Declaring a Reference to a Variable" |
| 2794 |
msgstr "" |
| 2795 |
|
| 2796 |
#. type: Plain text |
| 2797 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2798 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2799 |
msgid "" |
| 2800 |
"Beginning in v5.26.0, the referencing operator can come after " |
| 2801 |
"CW<\\*(C`my\\*(C'>, \\&CW<\\*(C`state\\*(C'>, CW<\\*(C`our\\*(C'>, or " |
| 2802 |
"CW<\\*(C`local\\*(C'>. This syntax must be enabled with CW<\\*(C`use " |
| 2803 |
"feature \\*(Aqdeclared_refs\\*(Aq\\*(C'>. It is experimental, and will warn " |
| 2804 |
"by default unless CW<\\*(C`no warnings " |
| 2805 |
"\\*(Aqexperimental::refaliasing\\*(Aq\\*(C'> is in effect." |
| 2806 |
msgstr "" |
| 2807 |
|
| 2808 |
#. type: Plain text |
| 2809 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2810 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2811 |
msgid "This feature makes these:" |
| 2812 |
msgstr "" |
| 2813 |
|
| 2814 |
#. type: Plain text |
| 2815 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2816 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2817 |
#, no-wrap |
| 2818 |
msgid "" |
| 2819 |
"\\& my \\e$x;\n" |
| 2820 |
"\\& our \\e$y;\n" |
| 2821 |
msgstr "" |
| 2822 |
|
| 2823 |
#. type: Plain text |
| 2824 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2825 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2826 |
#, fuzzy |
| 2827 |
#| msgid "is equivalent to" |
| 2828 |
msgid "equivalent to:" |
| 2829 |
msgstr "jest równoznaczne z" |
| 2830 |
|
| 2831 |
#. type: Plain text |
| 2832 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2833 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2834 |
#, no-wrap |
| 2835 |
msgid "" |
| 2836 |
"\\& \\emy $x;\n" |
| 2837 |
"\\& \\eour $x;\n" |
| 2838 |
msgstr "" |
| 2839 |
|
| 2840 |
#. type: Plain text |
| 2841 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2842 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2843 |
msgid "" |
| 2844 |
"It is intended mainly for use in assignments to references (see \"Assigning " |
| 2845 |
"to References\", above). It also allows the backslash to be used on just " |
| 2846 |
"some items in a list of declared variables:" |
| 2847 |
msgstr "" |
| 2848 |
|
| 2849 |
#. type: Plain text |
| 2850 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2851 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2852 |
#, no-wrap |
| 2853 |
msgid "\\& my ($foo, \\e@bar, \\e%baz); # equivalent to: my $foo, \\emy(@bar, %baz);\n" |
| 2854 |
msgstr "" |
| 2855 |
|
| 2856 |
#. type: IX |
| 2857 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2858 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2859 |
#, no-wrap |
| 2860 |
msgid "WARNING: Don't use references as hash keys" |
| 2861 |
msgstr "" |
| 2862 |
|
| 2863 |
#. type: IX |
| 2864 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2865 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2866 |
#, no-wrap |
| 2867 |
msgid "reference, string context reference, use as hash key" |
| 2868 |
msgstr "" |
| 2869 |
|
| 2870 |
#. type: Plain text |
| 2871 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2872 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2873 |
msgid "" |
| 2874 |
"You may not (usefully) use a reference as the key to a hash. It will be " |
| 2875 |
"converted into a string:" |
| 2876 |
msgstr "" |
| 2877 |
"Nie możesz (w użyteczny sposób) posłużyć się odwołaniem jako kluczem hasza. " |
| 2878 |
"Zostanie ono zamienione na łańcuch:" |
| 2879 |
|
| 2880 |
#. type: Plain text |
| 2881 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2882 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2883 |
#, fuzzy, no-wrap |
| 2884 |
#| msgid "\\& $x{ \\e$a } = $a;" |
| 2885 |
msgid "\\& $x{ \\e$x } = $x;\n" |
| 2886 |
msgstr "\\& $x{ \\e$a } = $a;" |
| 2887 |
|
| 2888 |
#. type: Plain text |
| 2889 |
#: debian-trixie debian-unstable |
| 2890 |
msgid "" |
| 2891 |
"If you try to dereference the key, it won't do a hard dereference, and you " |
| 2892 |
"won't accomplish what you're attempting. You might want to do something " |
| 2893 |
"more like" |
| 2894 |
msgstr "" |
| 2895 |
"Jeśli spróbujesz zdereferencjonować klucz, nie otrzymasz odwołania stałego a " |
| 2896 |
"łańcuch i nie uzyskasz tego, co próbowałeś. W zamian można napisać coś " |
| 2897 |
"podobnego do:" |
| 2898 |
|
| 2899 |
#. type: Plain text |
| 2900 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2901 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2902 |
#, fuzzy, no-wrap |
| 2903 |
#| msgid "\\& $r = \\e@a; \\& $x{ $r } = $r;" |
| 2904 |
msgid "" |
| 2905 |
"\\& $r = \\e@a;\n" |
| 2906 |
"\\& $x{ $r } = $r;\n" |
| 2907 |
msgstr "\\& $r = \\e@a; \\& $x{ $r } = $r;" |
| 2908 |
|
| 2909 |
#. type: Plain text |
| 2910 |
#: debian-trixie debian-unstable |
| 2911 |
#, fuzzy |
| 2912 |
#| msgid "" |
| 2913 |
#| "And then at least you can use the I<values()>, which will be real refs, " |
| 2914 |
#| "instead of the I<keys()>, which won't." |
| 2915 |
msgid "" |
| 2916 |
"And then at least you can use the B<values()>, which will be real refs, " |
| 2917 |
"instead of the B<keys()>, which won't." |
| 2918 |
msgstr "" |
| 2919 |
"a następnie użyć I<values()>, co zwróci rzeczywiste odwołania, zamiast " |
| 2920 |
"użycia I<keys()>, gdyż klucze odwołaniami nie będą." |
| 2921 |
|
| 2922 |
#. type: Plain text |
| 2923 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2924 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2925 |
msgid "" |
| 2926 |
"The standard Tie::RefHash module provides a convenient workaround to this." |
| 2927 |
msgstr "" |
| 2928 |
"Standardowy moduł Tie::RefHash umożliwia wygodny sposób obejścia tego " |
| 2929 |
"problemu." |
| 2930 |
|
| 2931 |
#. type: IX |
| 2932 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2933 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2934 |
#, no-wrap |
| 2935 |
msgid "SEE ALSO" |
| 2936 |
msgstr "ZOBACZ TAKŻE" |
| 2937 |
|
| 2938 |
#. type: Plain text |
| 2939 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2940 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2941 |
msgid "" |
| 2942 |
"Besides the obvious documents, source code can be instructive. Some " |
| 2943 |
"pathological examples of the use of references can be found in the I<t/op/" |
| 2944 |
"ref.t> regression test in the Perl source directory." |
| 2945 |
msgstr "" |
| 2946 |
"Poza oczywistą dokumentacją, pouczająca może być analiza kodu źródłowego. " |
| 2947 |
"Kilka raczej patologicznych przykładów użycia odwołań znajdziesz w teście " |
| 2948 |
"regresji I<t/op/ref.t> w katalogu źródeł Perla." |
| 2949 |
|
| 2950 |
#. type: Plain text |
| 2951 |
#: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 2952 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2953 |
#, fuzzy |
| 2954 |
#| msgid "" |
| 2955 |
#| "See also perldsc and perllol for how to use references to create complex " |
| 2956 |
#| "data structures, and perltoot, perlobj, and perlbot for how to use them " |
| 2957 |
#| "to create objects." |
| 2958 |
msgid "" |
| 2959 |
"See also perldsc and perllol for how to use references to create complex " |
| 2960 |
"data structures, and perlootut and perlobj for how to use them to create " |
| 2961 |
"objects." |
| 2962 |
msgstr "" |
| 2963 |
"Zobacz również podręczniki I<perldsc>(1) i I<perllol>(1), opisujące " |
| 2964 |
"posługiwanie się odwołaniami do tworzenia złożonych struktur danych, oraz " |
| 2965 |
"I<perltoot>(1), I<perlobj>(1) i I<perlbot>(1) opisujące ich użycie do " |
| 2966 |
"tworzenia obiektów." |
| 2967 |
|
| 2968 |
#. type: TH |
| 2969 |
#: debian-unstable |
| 2970 |
#, no-wrap |
| 2971 |
msgid "2025-11-16" |
| 2972 |
msgstr "16 listopada 2025 r." |
| 2973 |
|
| 2974 |
#. type: TH |
| 2975 |
#: fedora-44 opensuse-leap-16-1 opensuse-tumbleweed |
| 2976 |
#, no-wrap |
| 2977 |
msgid "2026-03-09" |
| 2978 |
msgstr "9 marca 2026 r." |
| 2979 |
|
| 2980 |
#. type: TH |
| 2981 |
#: fedora-44 opensuse-leap-16-1 opensuse-tumbleweed |
| 2982 |
#, no-wrap |
| 2983 |
msgid "perl v5.42.1" |
| 2984 |
msgstr "perl v5.42.1" |
| 2985 |
|
| 2986 |
#. type: Plain text |
| 2987 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 2988 |
#: opensuse-tumbleweed |
| 2989 |
#, fuzzy |
| 2990 |
#| msgid "" |
| 2991 |
#| "Symbolic references are names of variables or other objects, just as a " |
| 2992 |
#| "symbolic link in a Unix filesystem contains merely the name of a file. " |
| 2993 |
#| "The CW<*glob> notation is something of a symbolic reference. (Symbolic " |
| 2994 |
#| "references are sometimes called \\*(L\"soft references\\*(R\", but please " |
| 2995 |
#| "don't call them that; references are confusing enough without useless " |
| 2996 |
#| "synonyms.)" |
| 2997 |
msgid "" |
| 2998 |
"Symbolic references are names of variables or other objects, just as a " |
| 2999 |
"symbolic link in a Unix filesystem contains merely the name of a file. The " |
| 3000 |
"CW<*glob> notation is something of a symbolic reference. (Symbolic " |
| 3001 |
"references are sometimes called \"soft references\", but please don\\*(Aqt " |
| 3002 |
"call them that; references are confusing enough without useless synonyms.)" |
| 3003 |
msgstr "" |
| 3004 |
"Odwołania symboliczne są nazwami zmiennych lub innych obiektów; zupełnie tak " |
| 3005 |
"jak dowiązania symboliczne (symbolic links) w uniksowym systemie plików " |
| 3006 |
"zawierają wyłącznie nazwę pliku. Notacja CW<*glob> jest rodzajem odwołania " |
| 3007 |
"symbolicznego. (Odwołania symboliczne nazywane są czasami \\*(L\"soft " |
| 3008 |
"references\\*(R\" [odwołaniami miękkimi, w przeciwieństwie do \"hard r.\"-" |
| 3009 |
"\"twardych\"], ale proszę nie nazywaj ich tak; odwołania są wystarczająco " |
| 3010 |
"zbijające z pantałyku bez zbędnych synonimów.)" |
| 3011 |
|
| 3012 |
#. type: Plain text |
| 3013 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3014 |
#: opensuse-tumbleweed |
| 3015 |
#, fuzzy |
| 3016 |
#| msgid "" |
| 3017 |
#| "References are easy to use in Perl. There is just one overriding " |
| 3018 |
#| "principle: Perl does no implicit referencing or dereferencing. When a " |
| 3019 |
#| "scalar is holding a reference, it always behaves as a simple scalar. It " |
| 3020 |
#| "doesn't magically start being an array or hash or subroutine; you have to " |
| 3021 |
#| "tell it explicitly to do so, by dereferencing it." |
| 3022 |
msgid "" |
| 3023 |
"References are easy to use in Perl. There is just one overriding principle: " |
| 3024 |
"in general, Perl does no implicit referencing or dereferencing. When a " |
| 3025 |
"scalar is holding a reference, it always behaves as a simple scalar. It " |
| 3026 |
"doesn\\*(Aqt magically start being an array or hash or subroutine; you have " |
| 3027 |
"to tell it explicitly to do so, by dereferencing it." |
| 3028 |
msgstr "" |
| 3029 |
"W Perlu odwołania są łatwe w użyciu. Jest tylko jedna nadrzędna zasada: Perl " |
| 3030 |
"nie wykonuje niejawnego odwoływania bądź dereferowania odwołań. " |
| 3031 |
"[Dereferencing: odniesienie się z powrotem do obiektu, rzeczy na którą " |
| 3032 |
"wskazuje odwołanie]. Gdy skalar przechowuje odwołanie, to zawsze zachowuje " |
| 3033 |
"się jak zwykły skalar. Nie zaczyna magicznie być tablicą, haszem czy " |
| 3034 |
"procedurą; musisz wprost nakazać takie zachowanie, wykonując dereferencję." |
| 3035 |
|
| 3036 |
#. type: Plain text |
| 3037 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3038 |
#: opensuse-tumbleweed |
| 3039 |
#, fuzzy |
| 3040 |
#| msgid "" |
| 3041 |
#| "By using the backslash operator on a variable, subroutine, or value. " |
| 3042 |
#| "(This works much like the & (address-of) operator in C.) This typically " |
| 3043 |
#| "creates I<another> reference to a variable, because there's already a " |
| 3044 |
#| "reference to the variable in the symbol table. But the symbol table " |
| 3045 |
#| "reference might go away, and you'll still have the reference that the " |
| 3046 |
#| "backslash returned. Here are some examples:" |
| 3047 |
msgid "" |
| 3048 |
"By using the backslash operator on a variable, subroutine, or value. (This " |
| 3049 |
"works much like the & (address-of) operator in C.) This typically creates " |
| 3050 |
"I<another> reference to a variable, because there\\*(Aqs already a reference " |
| 3051 |
"to the variable in the symbol table. But the symbol table reference might " |
| 3052 |
"go away, and you\\*(Aqll still have the reference that the backslash " |
| 3053 |
"returned. Here are some examples:" |
| 3054 |
msgstr "" |
| 3055 |
"Przez zastosowanie operatora odwróconego ukośnika do zmiennej, procedury lub " |
| 3056 |
"wartości. (Działa to bardzo podobnie do operatora & (zwracającego adres) w " |
| 3057 |
"języku C.) Zauważ, że konstrukcja ta tworzy I<\\s-1KOLEJNE\\s0> odwołanie do " |
| 3058 |
"zmiennej, gdyż w tablicy symboli istnieje już odwołanie do tej zmiennej. " |
| 3059 |
"Jednak odwołanie z tablicy symboli może zniknąć, a nadal będziesz mieć " |
| 3060 |
"odwołanie, które zwrócił odwrócony ukośnik. Oto kilka przykładów:" |
| 3061 |
|
| 3062 |
#. type: Plain text |
| 3063 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3064 |
#: opensuse-tumbleweed |
| 3065 |
#, fuzzy |
| 3066 |
#| msgid "" |
| 3067 |
#| "It isn't possible to create a true reference to an \\s-1IO\\s0 handle " |
| 3068 |
#| "(filehandle or dirhandle) using the backslash operator. The most you can " |
| 3069 |
#| "get is a reference to a typeglob, which is actually a complete symbol " |
| 3070 |
#| "table entry. But see the explanation of the CW<*foo{THING}> syntax " |
| 3071 |
#| "below. However, you can still use type globs and globrefs as though they " |
| 3072 |
#| "were \\s-1IO\\s0 handles." |
| 3073 |
msgid "" |
| 3074 |
"It isn\\*(Aqt possible to create a true reference to an IO handle " |
| 3075 |
"(filehandle or dirhandle) using the backslash operator. The most you can " |
| 3076 |
"get is a reference to a typeglob, which is actually a complete symbol table " |
| 3077 |
"entry. But see the explanation of the CW<*foo{THING}> syntax below. " |
| 3078 |
"However, you can still use type globs and globrefs as though they were IO " |
| 3079 |
"handles." |
| 3080 |
msgstr "" |
| 3081 |
"Przy użyciu operatora odwróconego ukośnika nie jest możliwe utworzenie " |
| 3082 |
"prawdziwego odwołania do uchwytu \\s-1IO\\s0 (uchwytu pliku lub katalogu). " |
| 3083 |
"Możesz co najwyżej uzyskać odwołanie do typeglob będącego faktycznie pełnym " |
| 3084 |
"wpisem w tablicy symboli. (Przeczytaj jednak poniżej objaśnienie składni " |
| 3085 |
"CW<*foo{COŚ}>.) Mimo to, możesz nadal używać typeglob i odwołań do nich " |
| 3086 |
"jakby były one uchwytami \\s-1IO\\s0." |
| 3087 |
|
| 3088 |
#. type: Plain text |
| 3089 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3090 |
#: opensuse-tumbleweed |
| 3091 |
#, fuzzy |
| 3092 |
#| msgid "" |
| 3093 |
#| "Here we've created a reference to an anonymous array of three elements " |
| 3094 |
#| "whose final element is itself a reference to another anonymous array of " |
| 3095 |
#| "three elements. (The multidimensional syntax described later can be used " |
| 3096 |
#| "to access this. For example, after the above, CW<\\*(C`$arrayref-E<gt>[2]" |
| 3097 |
#| "[1]\\*(C'> would have the value \\*(L\"b\\*(R\".)" |
| 3098 |
msgid "" |
| 3099 |
"Here we\\*(Aqve created a reference to an anonymous array of three elements " |
| 3100 |
"whose final element is itself a reference to another anonymous array of " |
| 3101 |
"three elements. (The multidimensional syntax described later can be used to " |
| 3102 |
"access this. For example, after the above, CW<\\*(C`$arrayref-E<gt>[2]" |
| 3103 |
"[1]\\*(C'> would have the value \"b\".)" |
| 3104 |
msgstr "" |
| 3105 |
"Utworzyliśmy odwołanie do anonimowej tablicy trzech elementów, której " |
| 3106 |
"ostatni element jest z kolei odwołaniem do innej anonimowej tablicy trzech " |
| 3107 |
"elementów. (Dostęp do niej umożliwi opisana dalej składnia tablic " |
| 3108 |
"wielowymiarowych. Na przykład, dla powyższego przykładu CW<$arrayref-" |
| 3109 |
"E<gt>[2][1]> zwraca wartość \\*(L\"b\\*(R\".)" |
| 3110 |
|
| 3111 |
#. type: Plain text |
| 3112 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3113 |
#: opensuse-tumbleweed |
| 3114 |
#, fuzzy |
| 3115 |
#| msgid "" |
| 3116 |
#| "Taking a reference to an enumerated list is not the same as using square " |
| 3117 |
#| "brackets\\*(--instead it's the same as creating a list of references!" |
| 3118 |
msgid "" |
| 3119 |
"Taking a reference to an enumerated list is not the same as using square " |
| 3120 |
"brackets--instead it\\*(Aqs the same as creating a list of references!" |
| 3121 |
msgstr "" |
| 3122 |
"Zauważ, że stworzenie odwołania do listy wyliczanej nie jest tym samym, co " |
| 3123 |
"użycie nawiasów kwadratowych. Jest to natomiast tym samym, co stworzenie " |
| 3124 |
"listy odwołań!" |
| 3125 |
|
| 3126 |
#. type: Plain text |
| 3127 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3128 |
#: opensuse-tumbleweed |
| 3129 |
#, fuzzy |
| 3130 |
#| msgid "" |
| 3131 |
#| "Because curly brackets (braces) are used for several other things " |
| 3132 |
#| "including BLOCKs, you may occasionally have to disambiguate braces at the " |
| 3133 |
#| "beginning of a statement by putting a CW<\\*(C`+\\*(C'> or a " |
| 3134 |
#| "CW<\\*(C`return\\*(C'> in front so that Perl realizes the opening brace " |
| 3135 |
#| "isn't starting a \\s-1BLOCK\\s0. The economy and mnemonic value of using " |
| 3136 |
#| "curlies is deemed worth this occasional extra hassle." |
| 3137 |
msgid "" |
| 3138 |
"Because curly brackets (braces) are used for several other things including " |
| 3139 |
"BLOCKs, you may occasionally have to disambiguate braces at the beginning of " |
| 3140 |
"a statement by putting a CW<\\*(C`+\\*(C'> or a CW<\\*(C`return\\*(C'> in " |
| 3141 |
"front so that Perl realizes the opening brace isn\\*(Aqt starting a BLOCK. " |
| 3142 |
"The economy and mnemonic value of using curlies is deemed worth this " |
| 3143 |
"occasional extra hassle." |
| 3144 |
msgstr "" |
| 3145 |
"Ponieważ nawiasy klamrowe służą do kilku innych rzeczy, a także do tworzenia " |
| 3146 |
"BLOKów, możesz być czasem zmuszony do uniknięcia dwuznaczności tych nawiasów " |
| 3147 |
"na początku instrukcji. Wystarczy wówczas umieszczenie przed nimi CW<\\*(C`+" |
| 3148 |
"\\*(C'> lub CW<\\*(C`return\\*(C'>, by Perl zorientował się, że otwierający " |
| 3149 |
"nawias klamrowy nie rozpoczyna \\s-1BLOK\\s0u. Oszczędność i zalety " |
| 3150 |
"mnemoniczne użycia nawiasów klamrowych warte są takiego sporadycznego " |
| 3151 |
"zamieszania." |
| 3152 |
|
| 3153 |
#. type: Plain text |
| 3154 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3155 |
#: opensuse-tumbleweed |
| 3156 |
#, fuzzy |
| 3157 |
#| msgid "" |
| 3158 |
#| "Note the semicolon. Except for the code inside not being immediately " |
| 3159 |
#| "executed, a CW<\\*(C`sub {}\\*(C'> is not so much a declaration as it is " |
| 3160 |
#| "an operator, like CW<\\*(C`do{}\\*(C'> or CW<\\*(C`eval{}\\*(C'>. " |
| 3161 |
#| "(However, no matter how many times you execute that particular line " |
| 3162 |
#| "(unless you're in an \\&CW<\\*(C`eval(\"...\")\\*(C'>), CW<$coderef> will " |
| 3163 |
#| "still have a reference to the I<same> anonymous subroutine.)" |
| 3164 |
msgid "" |
| 3165 |
"Note the semicolon. Except for the code inside not being immediately " |
| 3166 |
"executed, a CW<\\*(C`sub {}\\*(C'> is not so much a declaration as it is an " |
| 3167 |
"operator, like CW<\\*(C`do{}\\*(C'> or CW<\\*(C`eval{}\\*(C'>. (However, no " |
| 3168 |
"matter how many times you execute that particular line (unless you\\*(Aqre " |
| 3169 |
"in an \\&CW<eval(\"...\")>), CW<$coderef> will still have a reference to the " |
| 3170 |
"I<same> anonymous subroutine.)" |
| 3171 |
msgstr "" |
| 3172 |
"Zwróć uwagę na obecność średnika. Poza faktem, że wewnętrzny kod nie jest " |
| 3173 |
"wykonywany natychmiast, CW<\\*(C`sub {}\\*(C'> jest bardziej operatorem niż " |
| 3174 |
"deklaracją, podobnie zresztą jak CW<\\*(C`do{}\\*(C'> czy CW<\\*(C`eval{}" |
| 3175 |
"\\*(C'>. (Jednak, niezależnie od tego, ile razy wykonasz powyższą linię " |
| 3176 |
"(chyba że jesteś wewnątrz \\&CW<\\*(C`eval(\"...\")\\*(C'>), CW<$coderef> " |
| 3177 |
"wciąż będzie zawierać odwołanie do I<TEJ SAMEJ> anonimowej procedury.)" |
| 3178 |
|
| 3179 |
#. type: Plain text |
| 3180 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3181 |
#: opensuse-tumbleweed |
| 3182 |
#, fuzzy |
| 3183 |
#| msgid "" |
| 3184 |
#| "Anonymous subroutines act as closures with respect to I<my()> variables, " |
| 3185 |
#| "that is, variables lexically visible within the current scope. Closure " |
| 3186 |
#| "is a notion out of the Lisp world that says if you define an anonymous " |
| 3187 |
#| "function in a particular lexical context, it pretends to run in that " |
| 3188 |
#| "context even when it's called outside the context." |
| 3189 |
msgid "" |
| 3190 |
"Anonymous subroutines act as closures with respect to B<my()> variables, " |
| 3191 |
"that is, variables lexically visible within the current scope. Closure is a " |
| 3192 |
"notion out of the Lisp world that says if you define an anonymous function " |
| 3193 |
"in a particular lexical context, it pretends to run in that context even " |
| 3194 |
"when it\\*(Aqs called outside the context." |
| 3195 |
msgstr "" |
| 3196 |
"Procedury anonimowe działają jak zamknięcia (closures) w odniesieniu do " |
| 3197 |
"zmiennych I<my()>, to znaczy, zmiennych widocznych leksykalnie w bieżącym " |
| 3198 |
"zakresie. Zamknięcie jest pojęciem ze świata Lispa, mówiącym, że jeśli " |
| 3199 |
"zdefiniujesz anonimową funkcję w konkretnym kontekście leksykalnym, to " |
| 3200 |
"będzie ona działać w tym kontekście nawet jeśli została wywołana poza nim." |
| 3201 |
|
| 3202 |
#. type: Plain text |
| 3203 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3204 |
#: opensuse-tumbleweed |
| 3205 |
#, fuzzy |
| 3206 |
#| msgid "" |
| 3207 |
#| "In human terms, it's a funny way of passing arguments to a subroutine " |
| 3208 |
#| "when you define it as well as when you call it. It's useful for setting " |
| 3209 |
#| "up little bits of code to run later, such as callbacks. You can even do " |
| 3210 |
#| "object-oriented stuff with it, though Perl already provides a different " |
| 3211 |
#| "mechanism to do that\\*(--see perlobj." |
| 3212 |
msgid "" |
| 3213 |
"In human terms, it\\*(Aqs a funny way of passing arguments to a subroutine " |
| 3214 |
"when you define it as well as when you call it. It\\*(Aqs useful for " |
| 3215 |
"setting up little bits of code to run later, such as callbacks. You can " |
| 3216 |
"even do object-oriented stuff with it, though Perl already provides a " |
| 3217 |
"different mechanism to do that--see perlobj." |
| 3218 |
msgstr "" |
| 3219 |
"Mówiąc po ludzku, jest to zabawny sposób przesyłania argumentów do procedury " |
| 3220 |
"zarówno gdy ją definiujesz jak i wtedy gdy ją wywołujesz. Przydaje się to do " |
| 3221 |
"tworzenia małych fragmentów kodu do późniejszego uruchamiania, jak np. " |
| 3222 |
"wywołania wsteczne (callbacks). Przy ich pomocy możesz robić nawet rzeczy " |
| 3223 |
"zorientowane obiektowo, choć Perl zapewnia już odmienny mechanizm operowania " |
| 3224 |
"obiektami \\*(--patrz podręcznik B<perlobj>(1)." |
| 3225 |
|
| 3226 |
#. type: Plain text |
| 3227 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3228 |
#: opensuse-tumbleweed |
| 3229 |
#, fuzzy |
| 3230 |
msgid "" |
| 3231 |
"You might also think of closure as a way to write a subroutine template " |
| 3232 |
"without using B<eval()>. Here\\*(Aqs a small example of how closures work:" |
| 3233 |
msgstr "" |
| 3234 |
"Możesz również myśleć o zamknięciach jak o sposobie pisania szablonów bez " |
| 3235 |
"używania eval. (Faktycznie, w wersji 5.000, eval było I<jedyną> metodą " |
| 3236 |
"uzyskania zamknięć. Jeśli posługujesz się zamknięciami, możesz potrzebować " |
| 3237 |
"\\*(L\"require 5.001\\*(R\".) A to mały przykład tego, jak działają " |
| 3238 |
"zamknięcia:" |
| 3239 |
|
| 3240 |
#. type: Plain text |
| 3241 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3242 |
#: opensuse-tumbleweed |
| 3243 |
#, fuzzy |
| 3244 |
#| msgid "" |
| 3245 |
#| "Note particularly that CW<$x> continues to refer to the value passed into " |
| 3246 |
#| "I<newprint()> I<despite> \\*(L\"my CW<$x>\\*(R\" having gone out of scope " |
| 3247 |
#| "by the time the anonymous subroutine runs. That's what a closure is all " |
| 3248 |
#| "about." |
| 3249 |
msgid "" |
| 3250 |
"Note particularly that CW<$x> continues to refer to the value passed into " |
| 3251 |
"B<newprint()> I<despite> \"my CW<$x>\" having gone out of scope by the time " |
| 3252 |
"the anonymous subroutine runs. That\\*(Aqs what a closure is all about." |
| 3253 |
msgstr "" |
| 3254 |
"Zwróć uwagę szczególnie na to, że CW<$x> nadal odnosi się do wartości " |
| 3255 |
"przesłanej do I<newprint()>, I<mimo że> zmienna \\*(L\"my CW<$x>\\*(R\" " |
| 3256 |
"pozornie wyszła poza swój zakres, w momencie gdy wywołano anonimową " |
| 3257 |
"procedurę. O to właśnie chodzi w zamknięciu." |
| 3258 |
|
| 3259 |
#. type: Plain text |
| 3260 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3261 |
#: opensuse-tumbleweed |
| 3262 |
#, fuzzy |
| 3263 |
#| msgid "" |
| 3264 |
#| "References are often returned by special subroutines called " |
| 3265 |
#| "constructors. Perl objects are just references to a special type of " |
| 3266 |
#| "object that happens to know which package it's associated with. " |
| 3267 |
#| "Constructors are just special subroutines that know how to create that " |
| 3268 |
#| "association. They do so by starting with an ordinary reference, and it " |
| 3269 |
#| "remains an ordinary reference even while it's also being an object. " |
| 3270 |
#| "Constructors are often named I<new()> and called indirectly:" |
| 3271 |
msgid "" |
| 3272 |
"References are often returned by special subroutines called constructors. " |
| 3273 |
"Perl objects are just references to a special type of object that happens to " |
| 3274 |
"know which package it\\*(Aqs associated with. Constructors are just special " |
| 3275 |
"subroutines that know how to create that association. They do so by " |
| 3276 |
"starting with an ordinary reference, and it remains an ordinary reference " |
| 3277 |
"even while it\\*(Aqs also being an object. Constructors are often named " |
| 3278 |
"CW<new()>. You I<can> call them indirectly:" |
| 3279 |
msgstr "" |
| 3280 |
"Odwołania często zwracane są przez specjalne procedury zwane " |
| 3281 |
"konstruktorami. Obiekty w Perlu są po prostu odwołaniami do specjalnego " |
| 3282 |
"rodzaju obiektu, który wie z którym pakietem jest związany. Konstruktory są " |
| 3283 |
"specjalnymi procedurami, które wiedzą jak utworzyć to powiązanie. Robią to " |
| 3284 |
"zaczynając od zwykłego odwołania, i pozostaje ono zwykłym odwołaniem nawet " |
| 3285 |
"wtedy gdy jest równocześnie obiektem. Konstuktory często nazywane są " |
| 3286 |
"I<new()> i wywoływane nie wprost:" |
| 3287 |
|
| 3288 |
#. type: Plain text |
| 3289 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3290 |
#: opensuse-tumbleweed |
| 3291 |
msgid "" |
| 3292 |
"But that can produce ambiguous syntax in certain cases, so it\\*(Aqs often " |
| 3293 |
"better to use the direct method invocation approach:" |
| 3294 |
msgstr "" |
| 3295 |
|
| 3296 |
#. type: Plain text |
| 3297 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3298 |
#: opensuse-tumbleweed |
| 3299 |
#, fuzzy |
| 3300 |
#| msgid "" |
| 3301 |
#| "References of the appropriate type can spring into existence if you " |
| 3302 |
#| "dereference them in a context that assumes they exist. Because we " |
| 3303 |
#| "haven't talked about dereferencing yet, we can't show you any examples " |
| 3304 |
#| "yet." |
| 3305 |
msgid "" |
| 3306 |
"References of the appropriate type can spring into existence if you " |
| 3307 |
"dereference them in a context that assumes they exist. Because we " |
| 3308 |
"haven\\*(Aqt talked about dereferencing yet, we can\\*(Aqt show you any " |
| 3309 |
"examples yet." |
| 3310 |
msgstr "" |
| 3311 |
"Odwołania odpowiedniego typu mogą być powoływane do istnienia jeśli " |
| 3312 |
"dereferencjonujesz je w kontekście zakładającym, że istnieją. Ponieważ " |
| 3313 |
"jeszcze nie mówiliśmy o dereferencji, nie możemy na razie pokazać przykładów." |
| 3314 |
|
| 3315 |
#. type: Plain text |
| 3316 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3317 |
#: opensuse-tumbleweed |
| 3318 |
#, fuzzy |
| 3319 |
#| msgid "" |
| 3320 |
#| "\\&CW<*foo{THING}> returns undef if that particular \\s-1THING\\s0 hasn't " |
| 3321 |
#| "been used yet, except in the case of scalars. CW<*foo{SCALAR}> returns a " |
| 3322 |
#| "reference to an anonymous scalar if CW<$foo> hasn't been used yet. This " |
| 3323 |
#| "might change in a future release." |
| 3324 |
msgid "" |
| 3325 |
"\\&CW<*foo{THING}> returns undef if that particular THING hasn\\*(Aqt been " |
| 3326 |
"used yet, except in the case of scalars. CW<*foo{SCALAR}> returns a " |
| 3327 |
"reference to an anonymous scalar if CW<$foo> hasn\\*(Aqt been used yet. " |
| 3328 |
"This might change in a future release." |
| 3329 |
msgstr "" |
| 3330 |
"*foo{\\s-1COŚ\\s0} zwraca undef jeśli dane \\s-1COŚ\\s0 jeszcze nie było " |
| 3331 |
"używane, z wyjątkiem dla skalarów. Jeśli nie używano jeszcze CW<$foo>, " |
| 3332 |
"*foo{\\s-1SKALAR\\s0} zwraca odwołanie do anonimowego skalara. W przyszłych " |
| 3333 |
"wersjach może się to zmienić." |
| 3334 |
|
| 3335 |
#. type: Plain text |
| 3336 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3337 |
#: opensuse-tumbleweed |
| 3338 |
#, fuzzy |
| 3339 |
#| msgid "" |
| 3340 |
#| "\\&CW<*foo{IO}> is an alternative to the CW<*HANDLE> mechanism given in " |
| 3341 |
#| "\\&\\*(L\"Typeglobs and Filehandles\\*(R\" in perldata for passing " |
| 3342 |
#| "filehandles into or out of subroutines, or storing into larger data " |
| 3343 |
#| "structures. Its disadvantage is that it won't create a new filehandle " |
| 3344 |
#| "for you. Its advantage is that you have less risk of clobbering more " |
| 3345 |
#| "than you want to with a typeglob assignment. (It still conflates file " |
| 3346 |
#| "and directory handles, though.) However, if you assign the incoming " |
| 3347 |
#| "value to a scalar instead of a typeglob as we do in the examples below, " |
| 3348 |
#| "there's no risk of that happening." |
| 3349 |
msgid "" |
| 3350 |
"\\&CW<*foo{IO}> is an alternative to the CW<*HANDLE> mechanism given in " |
| 3351 |
"\"Typeglobs and Filehandles\" in perldata for passing filehandles into or " |
| 3352 |
"out of subroutines, or storing into larger data structures. Its " |
| 3353 |
"disadvantage is that it won\\*(Aqt create a new filehandle for you. Its " |
| 3354 |
"advantage is that you have less risk of clobbering more than you want to " |
| 3355 |
"with a typeglob assignment. (It still conflates file and directory handles, " |
| 3356 |
"though.) However, if you assign the incoming value to a scalar instead of a " |
| 3357 |
"typeglob as we do in the examples below, there\\*(Aqs no risk of that " |
| 3358 |
"happening." |
| 3359 |
msgstr "" |
| 3360 |
"*foo{\\s-1IO\\s0} jest alternatywą dla mechanizmu \\e*\\s-1UCHWYTU\\s0 " |
| 3361 |
"opisanego w sekcji I<Typeglobs and Filehandles> podręcznika I<perldata>(1), " |
| 3362 |
"a służącego do przesyłania uchwytów plików do i z procedur lub " |
| 3363 |
"przechowywania w większych strukturach danych. Jego wadą jest to, że nie " |
| 3364 |
"utworzy za Ciebie nowego uchwytu pliku. Zaletą zaś, że nie ryzykujesz więcej " |
| 3365 |
"niż zamierzałeś przy przypisaniem typeglob, choć jeśli wykonasz przypisanie " |
| 3366 |
"do skalara zamiast do typeglob, to też dobrze." |
| 3367 |
|
| 3368 |
#. type: Plain text |
| 3369 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3370 |
#: opensuse-tumbleweed |
| 3371 |
#, fuzzy |
| 3372 |
#| msgid "" |
| 3373 |
#| "That's it for creating references. By now you're probably dying to know " |
| 3374 |
#| "how to use references to get back to your long-lost data. There are " |
| 3375 |
#| "several basic methods." |
| 3376 |
msgid "" |
| 3377 |
"That\\*(Aqs it for creating references. By now you\\*(Aqre probably dying " |
| 3378 |
"to know how to use references to get back to your long-lost data. There are " |
| 3379 |
"several basic methods." |
| 3380 |
msgstr "" |
| 3381 |
"To tyle o tworzeniu odwołań. Teraz pewnie nie możesz się doczekać wiedzy jak " |
| 3382 |
"posługiwać się odwołaniami, by móc wrócić do swych leżących odłogiem " |
| 3383 |
"danych. Oto kilka podstawowych sposobów." |
| 3384 |
|
| 3385 |
#. type: Plain text |
| 3386 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3387 |
#: opensuse-tumbleweed |
| 3388 |
#, fuzzy |
| 3389 |
#| msgid "" |
| 3390 |
#| "Anywhere you'd put an identifier (or chain of identifiers) as part of a " |
| 3391 |
#| "variable or subroutine name, you can replace the identifier with a simple " |
| 3392 |
#| "scalar variable containing a reference of the correct type:" |
| 3393 |
msgid "" |
| 3394 |
"Anywhere you\\*(Aqd put an identifier (or chain of identifiers) as part of a " |
| 3395 |
"variable or subroutine name, you can replace the identifier with a simple " |
| 3396 |
"scalar variable containing a reference of the correct type:" |
| 3397 |
msgstr "" |
| 3398 |
"Wszędzie, gdzie postawiłbyś identyfikator (lub łańcuch identyfikatorów) " |
| 3399 |
"jako część nazwy zmiennej czy procedury, możesz zastąpić identyfikator " |
| 3400 |
"prostą zmienną skalarną zawierającą odwołanie poprawnego typu:" |
| 3401 |
|
| 3402 |
#. type: Plain text |
| 3403 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3404 |
#: opensuse-tumbleweed |
| 3405 |
#, fuzzy |
| 3406 |
#| msgid "" |
| 3407 |
#| "It's important to understand that we are specifically I<not> " |
| 3408 |
#| "dereferencing \\&CW<$arrayref[0]> or CW<$hashref{\"KEY\"}> there. The " |
| 3409 |
#| "dereference of the scalar variable happens I<before> it does any key " |
| 3410 |
#| "lookups. Anything more complicated than a simple scalar variable must " |
| 3411 |
#| "use methods 2 or 3 below. However, a \\*(L\"simple scalar\\*(R\" " |
| 3412 |
#| "includes an identifier that itself uses method 1 recursively. Therefore, " |
| 3413 |
#| "the following prints \\*(L\"howdy\\*(R\"." |
| 3414 |
msgid "" |
| 3415 |
"It\\*(Aqs important to understand that we are specifically I<not> " |
| 3416 |
"dereferencing \\&CW<$arrayref[0]> or CW<$hashref{\"KEY\"}> there. The " |
| 3417 |
"dereference of the scalar variable happens I<before> it does any key " |
| 3418 |
"lookups. Anything more complicated than a simple scalar variable must use " |
| 3419 |
"methods 2 or 3 below. However, a \"simple scalar\" includes an identifier " |
| 3420 |
"that itself uses method 1 recursively. Therefore, the following prints " |
| 3421 |
"\"howdy\"." |
| 3422 |
msgstr "" |
| 3423 |
"Ważne jest, by zrozumieć, że nie I<\\s-1NIE\\s0> wykonujemy tu specjalnie " |
| 3424 |
"dereferencji CW<$arrayref[0]> czy CW<$hashref{\"KLUCZ\"}>. Dereferencja " |
| 3425 |
"zmiennej skalarnej odbywa się I<\\s-1PRZED\\s0> przeszukaniem klucza " |
| 3426 |
"(indeksu tablicy). Wszystko bardziej skomplikowane niż dereferencja prostej " |
| 3427 |
"zmiennej skalarnej wymaga użycia niżej opisanych metod 2 lub 3. Jednak " |
| 3428 |
"określenie \\*(L\"prosty skalar\\*(R\" obejmuje też identyfikator, który sam " |
| 3429 |
"używa rekurencyjnie metody 1. Zatem poniższe drukuje \\*(L\"witaj\\*(R\"." |
| 3430 |
|
| 3431 |
#. type: Plain text |
| 3432 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3433 |
#: opensuse-tumbleweed |
| 3434 |
#, fuzzy |
| 3435 |
#| msgid "" |
| 3436 |
#| "Anywhere you'd put an identifier (or chain of identifiers) as part of a " |
| 3437 |
#| "variable or subroutine name, you can replace the identifier with a " |
| 3438 |
#| "\\&\\s-1BLOCK\\s0 returning a reference of the correct type. In other " |
| 3439 |
#| "words, the previous examples could be written like this:" |
| 3440 |
msgid "" |
| 3441 |
"Anywhere you\\*(Aqd put an identifier (or chain of identifiers) as part of a " |
| 3442 |
"variable or subroutine name, you can replace the identifier with a BLOCK " |
| 3443 |
"returning a reference of the correct type. In other words, the previous " |
| 3444 |
"examples could be written like this:" |
| 3445 |
msgstr "" |
| 3446 |
"Wszędzie, gdzie postawiłbyś identyfikator (lub łańcuch identyfikatorów) " |
| 3447 |
"jako część nazwy zmiennej czy procedury, możesz zastąpić identyfikator " |
| 3448 |
"\\s-1BLOK\\s0iem zwracającym odwołanie poprawnego typu. Inaczej mówiąc, " |
| 3449 |
"poprzednie przykłady mogą zostać zapisane tak:" |
| 3450 |
|
| 3451 |
#. type: Plain text |
| 3452 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3453 |
#: opensuse-tumbleweed |
| 3454 |
#, fuzzy |
| 3455 |
#| msgid "" |
| 3456 |
#| "Admittedly, it's a little silly to use the curlies in this case, but the " |
| 3457 |
#| "\\s-1BLOCK\\s0 can contain any arbitrary expression, in particular, " |
| 3458 |
#| "subscripted expressions:" |
| 3459 |
msgid "" |
| 3460 |
"Admittedly, it\\*(Aqs a little silly to use the curlies in this case, but " |
| 3461 |
"the BLOCK can contain any arbitrary expression, in particular, subscripted " |
| 3462 |
"expressions:" |
| 3463 |
msgstr "" |
| 3464 |
"Niewątpliwie, użycie nawiasów klamrowych w tym przypadku nie jest zbyt " |
| 3465 |
"mądre, ale \\s-1BLOK\\s0 może zawierać dowolne wyrażenie, w szczególności " |
| 3466 |
"wyrażenia indeksowane:" |
| 3467 |
|
| 3468 |
#. type: Plain text |
| 3469 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3470 |
#: opensuse-tumbleweed |
| 3471 |
#, fuzzy |
| 3472 |
#| msgid "" |
| 3473 |
#| "Because of being able to omit the curlies for the simple case of CW<$$x>, " |
| 3474 |
#| "people often make the mistake of viewing the dereferencing symbols as " |
| 3475 |
#| "proper operators, and wonder about their precedence. If they were, " |
| 3476 |
#| "though, you could use parentheses instead of braces. That's not the " |
| 3477 |
#| "case. Consider the difference below; case 0 is a short-hand version of " |
| 3478 |
#| "case 1, \\&I<not> case 2:" |
| 3479 |
msgid "" |
| 3480 |
"Because of being able to omit the curlies for the simple case of CW<$$x>, " |
| 3481 |
"people often make the mistake of viewing the dereferencing symbols as proper " |
| 3482 |
"operators, and wonder about their precedence. If they were, though, you " |
| 3483 |
"could use parentheses instead of braces. That\\*(Aqs not the case. " |
| 3484 |
"Consider the difference below; case 0 is a short-hand version of case 1, " |
| 3485 |
"\\&I<not> case 2:" |
| 3486 |
msgstr "" |
| 3487 |
"Z powodu możliwości pomijania nawiasów klamrowych dla prostych przypadków " |
| 3488 |
"CW<$$x>, ludzie często popełniają błąd postrzegania symboli dereferencji " |
| 3489 |
"jako prawdziwych operatorów i zastanawiają się nad ich priorytetem. Gdyby " |
| 3490 |
"nimi były, mógłbyś używać zwykłych nawiasów zamiast klamrowych. Tak jednak " |
| 3491 |
"nie jest. Rozważ poniższą różnicę: przypadek 0 jest skróconą wersją " |
| 3492 |
"przypadku 1, I<\\s-1NIE\\s0> przypadku 2:" |
| 3493 |
|
| 3494 |
#. type: Plain text |
| 3495 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3496 |
#: opensuse-tumbleweed |
| 3497 |
#, fuzzy |
| 3498 |
#| msgid "" |
| 3499 |
#| "Case 2 is also deceptive in that you're accessing a variable called " |
| 3500 |
#| "CW<%hashref>, not dereferencing through CW<$hashref> to the hash it's " |
| 3501 |
#| "presumably referencing. That would be case 3." |
| 3502 |
msgid "" |
| 3503 |
"Case 2 is also deceptive in that you\\*(Aqre accessing a variable called " |
| 3504 |
"CW<%hashref>, not dereferencing through CW<$hashref> to the hash it\\*(Aqs " |
| 3505 |
"presumably referencing. That would be case 3." |
| 3506 |
msgstr "" |
| 3507 |
"Przypadek 2 jest również mylący, gdyż odnosi się do zmiennej o nazwie " |
| 3508 |
"CW<%hashref>, nie zaś dereferencjonuje poprzez CW<$hashref> hasza, na który " |
| 3509 |
"wydawałoby się wskazuje skalar. To robi przypadek 3." |
| 3510 |
|
| 3511 |
#. type: Plain text |
| 3512 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3513 |
#: opensuse-tumbleweed |
| 3514 |
#, fuzzy |
| 3515 |
#| msgid "" |
| 3516 |
#| "This is one of the cases we mentioned earlier in which references could " |
| 3517 |
#| "spring into existence when in an lvalue context. Before this statement, " |
| 3518 |
#| "CW<$array[$x]> may have been undefined. If so, it's automatically " |
| 3519 |
#| "defined with a hash reference so that we can look up \\&CW<\\*(C`{\"foo\"}" |
| 3520 |
#| "\\*(C'> in it. Likewise CW<\\*(C`$array[$x]-E<gt>{\"foo\"}\\*(C'> will " |
| 3521 |
#| "automatically get defined with an array reference so that we can look up " |
| 3522 |
#| "CW<\\*(C`[0]\\*(C'> in it. This process is called I<autovivification>." |
| 3523 |
msgid "" |
| 3524 |
"This is one of the cases we mentioned earlier in which references could " |
| 3525 |
"spring into existence when in an lvalue context. Before this statement, " |
| 3526 |
"CW<$array[$x]> may have been undefined. If so, it\\*(Aqs automatically " |
| 3527 |
"defined with a hash reference so that we can look up \\&CW<\\*(C`{\"foo\"}" |
| 3528 |
"\\*(C'> in it. Likewise CW<\\*(C`$array[$x]-E<gt>{\"foo\"}\\*(C'> will " |
| 3529 |
"automatically get defined with an array reference so that we can look up " |
| 3530 |
"CW<\\*(C`[0]\\*(C'> in it. This process is called I<autovivification>." |
| 3531 |
msgstr "" |
| 3532 |
"Jest to jeden z przypadków wspomnianych wcześniej, gdzie odwołania " |
| 3533 |
"zaistnieją, gdy zostaną użyte w kontekście l-wartości. Przed tą instrukcją, " |
| 3534 |
"element CW<$array[$x]> mógł być niezdefiniowany. W takim przypadku, jest on " |
| 3535 |
"definiowany automatycznie z nadaniem mu wartości -- odwołania do hasza, tak " |
| 3536 |
"że możemy poszukiwać w haszu elementu o kluczu CW<\"foo\">. Podobnie klucz " |
| 3537 |
"CW<$array[$x]-E<gt>{\"foo\"}> zostanie automatycznie zdefiniowany z " |
| 3538 |
"równoczesnym nadaniem wartości -- odwołania do tablicy, zatem będzie można w " |
| 3539 |
"niej odnaleźć CW<[0]>. Proces ten zwany jest I<autovivification> " |
| 3540 |
"(automatyczne ożywianie)." |
| 3541 |
|
| 3542 |
#. type: Plain text |
| 3543 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3544 |
#: opensuse-tumbleweed |
| 3545 |
#, fuzzy |
| 3546 |
#| msgid "" |
| 3547 |
#| "Which, in the degenerate case of using only ordinary arrays, gives you " |
| 3548 |
#| "multidimensional arrays just like C's:" |
| 3549 |
msgid "" |
| 3550 |
"Which, in the degenerate case of using only ordinary arrays, gives you " |
| 3551 |
"multidimensional arrays just like C\\*(Aqs:" |
| 3552 |
msgstr "" |
| 3553 |
"Co, w szczególnym przypadku działania tylko na zwykłych tablicach, daje " |
| 3554 |
"tablice wielowymiarowe z zapisem jak w C:" |
| 3555 |
|
| 3556 |
#. type: Plain text |
| 3557 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3558 |
#: opensuse-tumbleweed |
| 3559 |
#, fuzzy |
| 3560 |
#| msgid "" |
| 3561 |
#| "Well, okay, not entirely like C's arrays, actually. C doesn't know how " |
| 3562 |
#| "to grow its arrays on demand. Perl does." |
| 3563 |
msgid "" |
| 3564 |
"Well, okay, not entirely like C\\*(Aqs arrays, actually. C doesn\\*(Aqt " |
| 3565 |
"know how to grow its arrays on demand. Perl does." |
| 3566 |
msgstr "" |
| 3567 |
"No dobrze, tak naprawdę, nie całkiem jak tablice w C. C nie wie, jak " |
| 3568 |
"poszerzać tablice na żądanie. Perl to potrafi." |
| 3569 |
|
| 3570 |
#. type: Plain text |
| 3571 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3572 |
#: opensuse-tumbleweed |
| 3573 |
#, fuzzy |
| 3574 |
#| msgid "" |
| 3575 |
#| "If a reference happens to be a reference to an object, then there are " |
| 3576 |
#| "probably methods to access the things referred to, and you should " |
| 3577 |
#| "probably stick to those methods unless you're in the class package that " |
| 3578 |
#| "defines the object's methods. In other words, be nice, and don't violate " |
| 3579 |
#| "the object's encapsulation without a very good reason. Perl does not " |
| 3580 |
#| "enforce encapsulation. We are not totalitarians here. We do expect some " |
| 3581 |
#| "basic civility though." |
| 3582 |
msgid "" |
| 3583 |
"If a reference happens to be a reference to an object, then there are " |
| 3584 |
"probably methods to access the things referred to, and you should probably " |
| 3585 |
"stick to those methods unless you\\*(Aqre in the class package that defines " |
| 3586 |
"the object\\*(Aqs methods. In other words, be nice, and don\\*(Aqt violate " |
| 3587 |
"the object\\*(Aqs encapsulation without a very good reason. Perl does not " |
| 3588 |
"enforce encapsulation. We are not totalitarians here. We do expect some " |
| 3589 |
"basic civility though." |
| 3590 |
msgstr "" |
| 3591 |
"Jeżeli odwołanie jest odwołaniem do obiektu, to prawdopodobnie istnieją " |
| 3592 |
"metody dostępu do wskazywanych przez nie rzeczy, i powinieneś zapewne z nich " |
| 3593 |
"skorzystać, chyba że jesteś w pakiecie klasy definiującej metody tego " |
| 3594 |
"obiektu i pracujesz nad nimi. Inaczej mówiąc, bądź tak dobry i nie naruszaj " |
| 3595 |
"hermetyzacji bez istotnego powodu. Perl nie wymusza hermetyzacji. Nie " |
| 3596 |
"jesteśmy tu totalitarystami. Oczekujemy jednak zachowania podstawowych " |
| 3597 |
"zasad uprzejmości." |
| 3598 |
|
| 3599 |
#. type: Plain text |
| 3600 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3601 |
#: opensuse-tumbleweed |
| 3602 |
msgid "" |
| 3603 |
"Using a reference as a string produces both its referent\\*(Aqs type, " |
| 3604 |
"including any package blessing as described in perlobj, as well as the " |
| 3605 |
"numeric address expressed in hex. The B<ref()> operator returns just the " |
| 3606 |
"type of thing the reference is pointing to, without the address. See " |
| 3607 |
"\"ref\" in perlfunc for details and examples of its use." |
| 3608 |
msgstr "" |
| 3609 |
|
| 3610 |
#. type: Plain text |
| 3611 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3612 |
#: opensuse-tumbleweed |
| 3613 |
#, fuzzy |
| 3614 |
#| msgid "Here's a trick for interpolating a subroutine call into a string:" |
| 3615 |
msgid "Here\\*(Aqs a trick for interpolating a subroutine call into a string:" |
| 3616 |
msgstr "A oto sztuczka do interpolacji wywołania procedury w łańcuchu:" |
| 3617 |
|
| 3618 |
#. type: Plain text |
| 3619 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3620 |
#: opensuse-tumbleweed |
| 3621 |
#, fuzzy |
| 3622 |
#| msgid "" |
| 3623 |
#| "The way it works is that when the CW<\\*(C`@{...}\\*(C'> is seen in the " |
| 3624 |
#| "double-quoted string, it's evaluated as a block. The block creates a " |
| 3625 |
#| "reference to an anonymous array containing the results of the call to " |
| 3626 |
#| "CW<\\*(C`mysub(1,2,3)\\*(C'>. So the whole block returns a reference to " |
| 3627 |
#| "an array, which is then dereferenced by CW<\\*(C`@{...}\\*(C'> and stuck " |
| 3628 |
#| "into the double-quoted string. This chicanery is also useful for " |
| 3629 |
#| "arbitrary expressions:" |
| 3630 |
msgid "" |
| 3631 |
"The way it works is that when the CW<\\*(C`@{...}\\*(C'> is seen in the " |
| 3632 |
"double-quoted string, it\\*(Aqs evaluated as a block. The block creates a " |
| 3633 |
"reference to an anonymous array containing the results of the call to " |
| 3634 |
"CW<\\*(C`mysub(1,2,3)\\*(C'>. So the whole block returns a reference to an " |
| 3635 |
"array, which is then dereferenced by CW<\\*(C`@{...}\\*(C'> and stuck into " |
| 3636 |
"the double-quoted string. This chicanery is also useful for arbitrary " |
| 3637 |
"expressions:" |
| 3638 |
msgstr "" |
| 3639 |
"Działa to w tak, że gdy CW<\\*(C`@{...}\\*(C'> znalezione zostanie wewnątrz " |
| 3640 |
"łańcucha w cudzysłowach to zostanie potraktowane jako blok. Blok ten tworzy " |
| 3641 |
"odwołanie do jednoelementowej anonimowej tablicy zawierającej wynik " |
| 3642 |
"wywołania CW<\\*(C`mysub(1,2,3)\\*(C'> [odwołanie to utworzone będzie dzięki " |
| 3643 |
"nawiasom kwadratowym]. Zatem cały blok zwraca odwołanie do tablicy, która " |
| 3644 |
"następnie podlega dereferencji powodowanej przez CW<\\*(C`@{...}\\*(C'>. Jej " |
| 3645 |
"wartość, jako umieszczona w łańcuchu w cudzysłowach podlega interpolacji w " |
| 3646 |
"napis. Takie szykany przydają się także w dowolnych wyrażeniach:" |
| 3647 |
|
| 3648 |
#. type: Plain text |
| 3649 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3650 |
#: opensuse-tumbleweed |
| 3651 |
msgid "" |
| 3652 |
"Because objects in Perl are implemented as references, it\\*(Aqs possible to " |
| 3653 |
"have circular references with objects as well. Imagine a TreeNode class " |
| 3654 |
"where each node references its parent and child nodes. Any node with a " |
| 3655 |
"parent will be part of a circular reference." |
| 3656 |
msgstr "" |
| 3657 |
|
| 3658 |
#. type: Plain text |
| 3659 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3660 |
#: opensuse-tumbleweed |
| 3661 |
msgid "Here\\*(Aqs how we can make the first example safer:" |
| 3662 |
msgstr "" |
| 3663 |
|
| 3664 |
#. type: Plain text |
| 3665 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3666 |
#: opensuse-tumbleweed |
| 3667 |
#, fuzzy |
| 3668 |
#| msgid "" |
| 3669 |
#| "We said that references spring into existence as necessary if they are " |
| 3670 |
#| "undefined, but we didn't say what happens if a value used as a reference " |
| 3671 |
#| "is already defined, but I<isn't> a hard reference. If you use it as a " |
| 3672 |
#| "reference, it'll be treated as a symbolic reference. That is, the value " |
| 3673 |
#| "of the scalar is taken to be the I<name> of a variable, rather than a " |
| 3674 |
#| "direct link to a (possibly) anonymous value." |
| 3675 |
msgid "" |
| 3676 |
"We said that references spring into existence as necessary if they are " |
| 3677 |
"undefined, but we didn\\*(Aqt say what happens if a value used as a " |
| 3678 |
"reference is already defined, but I<isn\\*(Aqt> a hard reference. If you " |
| 3679 |
"use it as a reference, it\\*(Aqll be treated as a symbolic reference. That " |
| 3680 |
"is, the value of the scalar is taken to be the I<name> of a variable, rather " |
| 3681 |
"than a direct link to a (possibly) anonymous value." |
| 3682 |
msgstr "" |
| 3683 |
"Powiedzieliśmy, że niezdefiniowane cele odwołania w razie potrzeby " |
| 3684 |
"zaistnieją [podczas dereferencji]. Nie mówiliśmy jednak, co się dzieje, gdy " |
| 3685 |
"wartość użyta jako odwołanie jest już zdefiniowana, ale I<\\s-1NIE \\s0JEST> " |
| 3686 |
"odwołaniem stałym. Jeżeli użyjesz odwołania w takim przypadku, to będzie ono " |
| 3687 |
"potraktowane jak odwołanie symboliczne. To znaczy, wartością skalara " |
| 3688 |
"zostanie I<\\s-1NAZWA\\s0> zmiennej a nie bezpośrednie dowiązanie do (być " |
| 3689 |
"może anonimowej) wartości." |
| 3690 |
|
| 3691 |
#. type: Plain text |
| 3692 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3693 |
#: opensuse-tumbleweed |
| 3694 |
#, fuzzy |
| 3695 |
#| msgid "" |
| 3696 |
#| "This is powerful, and slightly dangerous, in that it's possible to intend " |
| 3697 |
#| "(with the utmost sincerity) to use a hard reference, and accidentally use " |
| 3698 |
#| "a symbolic reference instead. To protect against that, you can say" |
| 3699 |
msgid "" |
| 3700 |
"This is powerful, and slightly dangerous, in that it\\*(Aqs possible to " |
| 3701 |
"intend (with the utmost sincerity) to use a hard reference, and accidentally " |
| 3702 |
"use a symbolic reference instead. To protect against that, you can say" |
| 3703 |
msgstr "" |
| 3704 |
"Jest to bardzo silne narzędzie, ale nieco niebezpieczne, gdyż możliwe jest, " |
| 3705 |
"ze szczerym zamiarem użycia odwołania stałego, przypadkowe użycie " |
| 3706 |
"symbolicznego. Możesz się przed tym uchronić pisząc:" |
| 3707 |
|
| 3708 |
#. type: Plain text |
| 3709 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3710 |
#: opensuse-tumbleweed |
| 3711 |
#, fuzzy |
| 3712 |
#| msgid "" |
| 3713 |
#| "Only package variables (globals, even if localized) are visible to " |
| 3714 |
#| "symbolic references. Lexical variables (declared with I<my()>) aren't in " |
| 3715 |
#| "a symbol table, and thus are invisible to this mechanism. For example:" |
| 3716 |
msgid "" |
| 3717 |
"Only package variables (globals, even if localized) are visible to symbolic " |
| 3718 |
"references. Lexical variables (declared with B<my()>) aren\\*(Aqt in a " |
| 3719 |
"symbol table, and thus are invisible to this mechanism. For example:" |
| 3720 |
msgstr "" |
| 3721 |
"Dla odwołań symbolicznych widoczne są tylko zmienne pakietu (globalne, nawet " |
| 3722 |
"jeśli lokalnie). Zmienne leksykalne (deklarowane przy pomocy I<my()>) nie " |
| 3723 |
"zawierają się w tablicy symboli, zatem są niewidoczne dla tego mechanizmu. " |
| 3724 |
"Na przykład:" |
| 3725 |
|
| 3726 |
#. type: Plain text |
| 3727 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3728 |
#: opensuse-tumbleweed |
| 3729 |
#, fuzzy |
| 3730 |
#| msgid "" |
| 3731 |
#| "will have the same effect. (This would have been a syntax error in Perl " |
| 3732 |
#| "5.000, though Perl 4 allowed it in the spaceless form.) This construct " |
| 3733 |
#| "is I<not> considered to be a symbolic reference when you're using strict " |
| 3734 |
#| "refs:" |
| 3735 |
msgid "" |
| 3736 |
"will have the same effect. This construct is I<not> considered to be a " |
| 3737 |
"symbolic reference when you\\*(Aqre using strict refs:" |
| 3738 |
msgstr "" |
| 3739 |
"mają ten sam rezultat. (Spowodowałoby to błąd składni w Perlu 5.000, choć " |
| 3740 |
"Perl 4 dopuszcza coś takiego w postaci bez odstępów.) Zauważ, że konstrukcja " |
| 3741 |
"ta I<nie> nie jest uważana za odwołanie symboliczne gdy używasz strict refs:" |
| 3742 |
|
| 3743 |
#. type: Plain text |
| 3744 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3745 |
#: opensuse-tumbleweed |
| 3746 |
msgid "" |
| 3747 |
"Pseudo-hashes have been removed from Perl. The fields pragma remains " |
| 3748 |
"available." |
| 3749 |
msgstr "" |
| 3750 |
|
| 3751 |
#. type: Plain text |
| 3752 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3753 |
#: opensuse-tumbleweed |
| 3754 |
#, fuzzy |
| 3755 |
#| msgid "" |
| 3756 |
#| "As explained above, a closure is an anonymous function with access to the " |
| 3757 |
#| "lexical variables visible when that function was compiled. It retains " |
| 3758 |
#| "access to those variables even though it doesn't get run until later, " |
| 3759 |
#| "such as in a signal handler or a Tk callback." |
| 3760 |
msgid "" |
| 3761 |
"As explained above, an anonymous function with access to the lexical " |
| 3762 |
"variables visible when that function was compiled, creates a closure. It " |
| 3763 |
"retains access to those variables even though it doesn\\*(Aqt get run until " |
| 3764 |
"later, such as in a signal handler or a Tk callback." |
| 3765 |
msgstr "" |
| 3766 |
"Jak wyjaśniono powyżej, zamknięcie jest anonimową funkcją z dostępem do " |
| 3767 |
"zmiennych leksykalnych widocznych podczas jej kompilacji. Zachowuje ona " |
| 3768 |
"dostęp do tych zmiennych nawet wtedy, gdy jest wykonywana później, tak jak " |
| 3769 |
"funkcja obsługi sygnału (signal handler) czy wywołanie wsteczne Tk." |
| 3770 |
|
| 3771 |
#. type: Plain text |
| 3772 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3773 |
#: opensuse-tumbleweed |
| 3774 |
#, fuzzy |
| 3775 |
#| msgid "" |
| 3776 |
#| "The I<red()> and I<green()> functions would be similar. To create these, " |
| 3777 |
#| "we'll assign a closure to a typeglob of the name of the function we're " |
| 3778 |
#| "trying to build." |
| 3779 |
msgid "" |
| 3780 |
"The B<red()> and B<green()> functions would be similar. To create these, " |
| 3781 |
"we\\*(Aqll assign a closure to a typeglob of the name of the function " |
| 3782 |
"we\\*(Aqre trying to build." |
| 3783 |
msgstr "" |
| 3784 |
"Funkcje I<red()> i I<green()> będą bardzo podobne. By je stworzyć, " |
| 3785 |
"przypiszemy zamknięcie do typeglob nazwy funkcji, którą próbujemy " |
| 3786 |
"skonstruować." |
| 3787 |
|
| 3788 |
#. type: Plain text |
| 3789 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3790 |
#: opensuse-tumbleweed |
| 3791 |
#, fuzzy |
| 3792 |
#| msgid "" |
| 3793 |
#| "Now all those different functions appear to exist independently. You can " |
| 3794 |
#| "call I<red()>, \\s-1I<RED\\s0()>, I<blue()>, \\s-1I<BLUE\\s0()>, " |
| 3795 |
#| "I<green()>, etc. This technique saves on both compile time and memory " |
| 3796 |
#| "use, and is less error-prone as well, since syntax checks happen at " |
| 3797 |
#| "compile time. It's critical that any variables in the anonymous " |
| 3798 |
#| "subroutine be lexicals in order to create a proper closure. That's the " |
| 3799 |
#| "reasons for the CW<\\*(C`my\\*(C'> on the loop iteration variable." |
| 3800 |
msgid "" |
| 3801 |
"Now all those different functions appear to exist independently. You can " |
| 3802 |
"call B<red()>, B<RED()>, B<blue()>, B<BLUE()>, B<green()>, etc. This " |
| 3803 |
"technique saves on both compile time and memory use, and is less error-prone " |
| 3804 |
"as well, since syntax checks happen at compile time. It\\*(Aqs critical " |
| 3805 |
"that any variables in the anonymous subroutine be lexicals in order to " |
| 3806 |
"create a proper closure. That\\*(Aqs the reasons for the CW<\\*(C`my\\*(C'> " |
| 3807 |
"on the loop iteration variable." |
| 3808 |
msgstr "" |
| 3809 |
"Teraz wszystkie te funkcje będą istnieć niezależnie od siebie. Możesz " |
| 3810 |
"wywoływać I<red()>, I<\\s-1RED\\s0()>, I<blue()>, I<\\s-1BLUE\\s0()>, " |
| 3811 |
"I<green()>, etc. Technika ta zarówno skraca czas kompilacji jak i zmniejsza " |
| 3812 |
"zużycie pamięci, jest też mniej narażona na błędy, gdyż kontrola składni " |
| 3813 |
"odbywa się podczas kompilacji. Istotne jest, by wszelkie zmienne w " |
| 3814 |
"anonimowej procedurze były zmiennymi leksykalnymi by stworzyć poprawne " |
| 3815 |
"zamknięcie. Z tego powodu użyto CW<my> dla zmiennej sterującej pętli." |
| 3816 |
|
| 3817 |
#. type: Plain text |
| 3818 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3819 |
#: opensuse-tumbleweed |
| 3820 |
#, fuzzy |
| 3821 |
#| msgid "" |
| 3822 |
#| "Access to lexicals that change over type\\*(--like those in the " |
| 3823 |
#| "CW<\\*(C`for\\*(C'> loop above\\*(--only works with closures, not general " |
| 3824 |
#| "subroutines. In the general case, then, named subroutines do not nest " |
| 3825 |
#| "properly, although anonymous ones do. If you are accustomed to using " |
| 3826 |
#| "nested subroutines in other programming languages with their own private " |
| 3827 |
#| "variables, you'll have to work at it a bit in Perl. The intuitive coding " |
| 3828 |
#| "of this type of thing incurs mysterious warnings about ``will not stay " |
| 3829 |
#| "shared''. For example, this won't work:" |
| 3830 |
msgid "" |
| 3831 |
"Anonymous subroutines get to capture each time you execute the " |
| 3832 |
"CW<\\*(C`sub\\*(C'> operator, as they are created on the fly. If you are " |
| 3833 |
"accustomed to using nested subroutines in other programming languages with " |
| 3834 |
"their own private variables, you\\*(Aqll have to work at it a bit in Perl. " |
| 3835 |
"The intuitive coding of this type of thing incurs mysterious warnings about " |
| 3836 |
"\"will not stay shared\" due to the reasons explained above. For example, " |
| 3837 |
"this won\\*(Aqt work:" |
| 3838 |
msgstr "" |
| 3839 |
"Dostęp do zmiennych leksykalnych zmieniających typ \\*(-- jak te w pętli " |
| 3840 |
"CW<for> powyższego przykładu\\*(-- działa wyłącznie z zamknięciami, a nie z " |
| 3841 |
"procedurami w ogóle. Zatem w przypadku ogólnym, procedury nazwane nie " |
| 3842 |
"zagnieżdżają się prawidłowo, choć robią to procedury anonimowe. Jeśli " |
| 3843 |
"nawykłeś do używania zagnieżdżonych procedur z własnymi prywatnymi zmiennymi " |
| 3844 |
"w innych językach programowania, to w Perlu będziesz musiał nad trochę " |
| 3845 |
"popracować. Intuicyjna metoda kodowania tego typu rzeczy spowoduje " |
| 3846 |
"tajemnicze ostrzeżenia ``will not stay shared'\\*(R' (nie pozostanie " |
| 3847 |
"wspólne). To, na przykład, nie zadziała:" |
| 3848 |
|
| 3849 |
#. type: Plain text |
| 3850 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3851 |
#: opensuse-tumbleweed |
| 3852 |
#, no-wrap |
| 3853 |
msgid "" |
| 3854 |
"\\& $r = \\e@a;\n" |
| 3855 |
"\\& @b = $r-E<gt>@*; # equivalent to @$r or @{ $r }\n" |
| 3856 |
"\\&\n" |
| 3857 |
"\\& $r = [ 1, [ 2, 3 ], 4 ];\n" |
| 3858 |
"\\& $r-E<gt>[1]-E<gt>@*; # equivalent to @{ $r-E<gt>[1] }\n" |
| 3859 |
"\\&\n" |
| 3860 |
"\\& $aref-E<gt>@* = (1, 2, 3); # same as @{ $aref } = (1, 2, 3)\n" |
| 3861 |
msgstr "" |
| 3862 |
|
| 3863 |
#. type: SH |
| 3864 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3865 |
#: opensuse-tumbleweed |
| 3866 |
#, no-wrap |
| 3867 |
msgid "WARNING: Don\\*(Aqt use references as hash keys" |
| 3868 |
msgstr "" |
| 3869 |
|
| 3870 |
#. type: Plain text |
| 3871 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3872 |
#: opensuse-tumbleweed |
| 3873 |
#, fuzzy |
| 3874 |
#| msgid "" |
| 3875 |
#| "If you try to dereference the key, it won't do a hard dereference, and " |
| 3876 |
#| "you won't accomplish what you're attempting. You might want to do " |
| 3877 |
#| "something more like" |
| 3878 |
msgid "" |
| 3879 |
"If you try to dereference the key, it won\\*(Aqt do a hard dereference, and " |
| 3880 |
"you won\\*(Aqt accomplish what you\\*(Aqre attempting. You might want to do " |
| 3881 |
"something more like" |
| 3882 |
msgstr "" |
| 3883 |
"Jeśli spróbujesz zdereferencjonować klucz, nie otrzymasz odwołania stałego a " |
| 3884 |
"łańcuch i nie uzyskasz tego, co próbowałeś. W zamian można napisać coś " |
| 3885 |
"podobnego do:" |
| 3886 |
|
| 3887 |
#. type: Plain text |
| 3888 |
#: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 3889 |
#: opensuse-tumbleweed |
| 3890 |
#, fuzzy |
| 3891 |
#| msgid "" |
| 3892 |
#| "And then at least you can use the I<values()>, which will be real refs, " |
| 3893 |
#| "instead of the I<keys()>, which won't." |
| 3894 |
msgid "" |
| 3895 |
"And then at least you can use the B<values()>, which will be real refs, " |
| 3896 |
"instead of the B<keys()>, which won\\*(Aqt." |
| 3897 |
msgstr "" |
| 3898 |
"a następnie użyć I<values()>, co zwróci rzeczywiste odwołania, zamiast " |
| 3899 |
"użycia I<keys()>, gdyż klucze odwołaniami nie będą." |
| 3900 |
|
| 3901 |
#. type: TH |
| 3902 |
#: fedora-rawhide |
| 3903 |
#, no-wrap |
| 3904 |
msgid "2026-03-30" |
| 3905 |
msgstr "30 marca 2026 r." |
| 3906 |
|
| 3907 |
#. type: TH |
| 3908 |
#: fedora-rawhide |
| 3909 |
#, no-wrap |
| 3910 |
msgid "perl v5.42.2" |
| 3911 |
msgstr "perl v5.42.2" |
| 3912 |
|
| 3913 |
#. type: TH |
| 3914 |
#: mageia-cauldron |
| 3915 |
#, no-wrap |
| 3916 |
msgid "2025-06-24" |
| 3917 |
msgstr "24 czerwca 2025 r." |
| 3918 |
|
| 3919 |
#. type: TH |
| 3920 |
#: mageia-cauldron |
| 3921 |
#, no-wrap |
| 3922 |
msgid "perl v5.42.0" |
| 3923 |
msgstr "perl v5.42.0" |