Debian Codegraph @

po/ar/man1/perlsyn.1.po

raw
1 # Arabic translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # زايد السعيدي <[email protected]>, 2026.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n\n"
8 "POT-Creation-Date: 2026-06-05 06:34+0200\n"
9 "PO-Revision-Date: 2026-06-03 04:49+0400\n"
10 "Last-Translator: Zayed Al-Saidi <[email protected]>\n"
11 "Language-Team: Arabic <[email protected]>\n"
12 "Language: ar\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16 ".MIME-Version: 1.0\n"
17 "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
18 "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
19 "X-Generator: Lokalize 23.08.5\n"
20
21 # #-#-#-#-# fedora-44: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-#
22 #
23 # #-#-#-#-# fedora-rawhide: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-#
24 #
25 # #-#-#-#-# mageia-cauldron: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-#
26 #
27 # #-#-#-#-# opensuse-leap-16-1: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-#
28 #
29 # #-#-#-#-# opensuse-tumbleweed: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-#
30 #
31 #. #-#-#-#-# debian-trixie: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-#
32 #. ========================================================================
33 #. type: IX
34 #. #-#-#-#-# debian-unstable: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-#
35 #. ========================================================================
36 #. type: IX
37 #. #-#-#-#-# fedora-44: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-#
38 #. Required to disable full justification in groff 1.23.0.
39 #. ========================================================================
40 #. type: IX
41 #. #-#-#-#-# fedora-rawhide: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-#
42 #. Required to disable full justification in groff 1.23.0.
43 #. ========================================================================
44 #. type: IX
45 #. #-#-#-#-# mageia-cauldron: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-#
46 #. Required to disable full justification in groff 1.23.0.
47 #. ========================================================================
48 #. type: IX
49 #. #-#-#-#-# opensuse-leap-16-1: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-#
50 #. Required to disable full justification in groff 1.23.0.
51 #. ========================================================================
52 #. type: IX
53 #. #-#-#-#-# opensuse-tumbleweed: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-#
54 #. Required to disable full justification in groff 1.23.0.
55 #. ========================================================================
56 #. type: IX
57 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
58 #: opensuse-leap-16-1 opensuse-tumbleweed
59 #, no-wrap
60 msgid "Title"
61 msgstr "Title"
62
63 # #-#-#-#-# fedora-44: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-#
64 #
65 # #-#-#-#-# fedora-rawhide: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-#
66 #
67 # #-#-#-#-# mageia-cauldron: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-#
68 #
69 # #-#-#-#-# opensuse-leap-16-1: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-#
70 #
71 # #-#-#-#-# opensuse-tumbleweed: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-#
72 #
73 #. #-#-#-#-# debian-trixie: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-#
74 #. ========================================================================
75 #. type: IX
76 #. #-#-#-#-# debian-unstable: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-#
77 #. ========================================================================
78 #. type: IX
79 #. #-#-#-#-# fedora-44: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-#
80 #. Required to disable full justification in groff 1.23.0.
81 #. ========================================================================
82 #. type: IX
83 #. #-#-#-#-# fedora-rawhide: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-#
84 #. Required to disable full justification in groff 1.23.0.
85 #. ========================================================================
86 #. type: IX
87 #. #-#-#-#-# mageia-cauldron: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-#
88 #. Required to disable full justification in groff 1.23.0.
89 #. ========================================================================
90 #. type: IX
91 #. #-#-#-#-# opensuse-leap-16-1: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-#
92 #. Required to disable full justification in groff 1.23.0.
93 #. ========================================================================
94 #. type: IX
95 #. #-#-#-#-# opensuse-tumbleweed: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-#
96 #. Required to disable full justification in groff 1.23.0.
97 #. ========================================================================
98 #. type: IX
99 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
100 #: opensuse-leap-16-1 opensuse-tumbleweed
101 #, no-wrap
102 msgid "PERLSYN 1"
103 msgstr "PERLSYN 1"
104
105 #. type: TH
106 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
107 #: opensuse-leap-16-1 opensuse-tumbleweed
108 #, no-wrap
109 msgid "PERLSYN"
110 msgstr "PERLSYN"
111
112 #. type: TH
113 #: debian-trixie
114 #, no-wrap
115 msgid "2025-07-27"
116 msgstr "27 يوليو 2025"
117
118 #. type: TH
119 #: debian-trixie debian-unstable
120 #, no-wrap
121 msgid "perl v5.40.1"
122 msgstr "بيرل v5.40.1"
123
124 #. type: TH
125 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
126 #: opensuse-leap-16-1 opensuse-tumbleweed
127 #, no-wrap
128 msgid "Perl Programmers Reference Guide"
129 msgstr "دليل مرجع مبرمجي بيرل"
130
131 #. type: SH
132 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
133 #: opensuse-leap-16-1 opensuse-tumbleweed
134 #, no-wrap
135 msgid "NAME"
136 msgstr "الاسم"
137
138 #. type: Plain text
139 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
140 #: opensuse-leap-16-1 opensuse-tumbleweed
141 msgid "perlsyn - Perl syntax: declarations, statements, comments"
142 msgstr "perlsyn - صياغة بيرل: التصريحات، والعبارات، والملاحظات"
143
144 #. type: IX
145 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
146 #: opensuse-leap-16-1 opensuse-tumbleweed
147 #, no-wrap
148 msgid "Xref"
149 msgstr "Xref"
150
151 #. type: IX
152 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
153 #: opensuse-leap-16-1 opensuse-tumbleweed
154 #, no-wrap
155 msgid "syntax"
156 msgstr "الصياغة"
157
158 #. type: IX
159 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
160 #: opensuse-leap-16-1 opensuse-tumbleweed
161 #, no-wrap
162 msgid "DESCRIPTION"
163 msgstr "الوصف"
164
165 #. type: IX
166 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
167 #: opensuse-leap-16-1 opensuse-tumbleweed
168 #, no-wrap
169 msgid "Header"
170 msgstr "Header"
171
172 #. type: Plain text
173 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
174 #: opensuse-leap-16-1 opensuse-tumbleweed
175 msgid ""
176 "A Perl program consists of a sequence of declarations and statements which "
177 "run from the top to the bottom. Loops, subroutines, and other control "
178 "structures allow you to jump around within the code."
179 msgstr ""
180 "يتكون برنامج بيرل من تسلسل من التصريحات والعبارات التي تعمل من الأعلى إلى "
181 "الأسفل. تسمح لك الحلقات، والبرامج الفرعية، وهياكل التحكم الأخرى بالتنقل داخل "
182 "الكود."
183
184 #. type: Plain text
185 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
186 #: opensuse-leap-16-1 opensuse-tumbleweed
187 msgid ""
188 "Perl is a B<free-form> language: you can format and indent it however you "
189 "like. Whitespace serves mostly to separate tokens, unlike languages like "
190 "Python where it is an important part of the syntax, or Fortran where it is "
191 "immaterial."
192 msgstr ""
193 "بيرل لغة B<حرة التنسيق>: يمكنك تنسيقها وإزاحتها كما تشاء. تخدم المسافات "
194 "البيضاء غالبا في فصل الوحدات (tokens)، على عكس لغات مثل بايثون حيث تعد جزءا "
195 "رئيسا من الصياغة، أو فورتران حيث لا تهم فيها المسافات."
196
197 #. type: Plain text
198 #: debian-trixie debian-unstable
199 msgid ""
200 "Many of Perl's syntactic elements are B<optional>. Rather than requiring "
201 "you to put parentheses around every function call and declare every "
202 "variable, you can often leave such explicit elements off and Perl will "
203 "figure out what you meant. This is known as B<Do What I Mean>, abbreviated "
204 "B<DWIM>. It allows programmers to be B<lazy> and to code in a style with "
205 "which they are comfortable."
206 msgstr ""
207 "العديد من عناصر صياغة بيرل B<اختيارية>. بدلا من إلزامك بوضع أقواس حول كل "
208 "استدعاء دالة والتصريح عن كل متغير، يمكنك غالبا ترك هذه العناصر الصريحة وسوف "
209 "تستنتج بيرل ما تقصده. يُعرف هذا باسم B<افعل ما أعنيه>، ويُختصر بـ B<DWIM>. إنه "
210 "يسمح للمبرمجين بأن يكونوا B<كسالى> وأن يكودوا بالأسلوب الذي يريحهم."
211
212 #. type: Plain text
213 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
214 #: opensuse-leap-16-1 opensuse-tumbleweed
215 msgid ""
216 "Perl B<borrows syntax> and concepts from many languages: awk, sed, C, Bourne "
217 "Shell, Smalltalk, Lisp and even English. Other languages have borrowed "
218 "syntax from Perl, particularly its regular expression extensions. So if you "
219 "have programmed in another language you will see familiar pieces in Perl. "
220 "They often work the same, but see perltrap for information about how they "
221 "differ."
222 msgstr ""
223 "B<تستعير بيرل الصياغة> والمفاهيم من لغات عديدة: awk، و sed، و C، وصدفة "
224 "Bourne، و Smalltalk، و Lisp وحتى الإنجليزية. وقد استعارت لغات أخرى الصياغة "
225 "من بيرل، وخاصة توسعات التعبيرات النمطية. لذا إذا كنت قد برمجت بلغة أخرى "
226 "فستجد أجزاء مألوفة في بيرل. غالبا ما تعمل بنفس الطريقة، ولكن راجع perltrap "
227 "للحصول على معلومات حول كيفية اختلافها."
228
229 #. type: IX
230 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
231 #: opensuse-leap-16-1 opensuse-tumbleweed
232 #, no-wrap
233 msgid "Declarations"
234 msgstr "التصريحات"
235
236 #. type: IX
237 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
238 #: opensuse-leap-16-1 opensuse-tumbleweed
239 #, no-wrap
240 msgid "declaration undef undefined uninitialized"
241 msgstr "تصريح undef غير معرف غير مهيأ"
242
243 #. type: IX
244 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
245 #: opensuse-leap-16-1 opensuse-tumbleweed
246 #, no-wrap
247 msgid "Subsection"
248 msgstr "Subsection"
249
250 #. type: Plain text
251 #: debian-trixie debian-unstable
252 msgid ""
253 "The only things you need to declare in Perl are report formats and "
254 "subroutines (and sometimes not even subroutines). A scalar variable holds "
255 "the undefined value (CW<\\*(C`undef\\*(C'>) until it has been assigned a "
256 "defined value, which is anything other than CW<\\*(C`undef\\*(C'>. When "
257 "used as a number, \\&CW<\\*(C`undef\\*(C'> is treated as CW<0>; when used as "
258 "a string, it is treated as the empty string, CW<\"\">; and when used as a "
259 "reference that isn't being assigned to, it is treated as an error. If you "
260 "enable warnings, you'll be notified of an uninitialized value whenever you "
261 "treat \\&CW<\\*(C`undef\\*(C'> as a string or a number. Well, usually. "
262 "Boolean contexts, such as:"
263 msgstr ""
264 "الأشياء الوحيدة التي تحتاج إلى التصريح عنها في بيرل هي تنسيقات التقارير "
265 "والبرامج الفرعية (وأحيانا ولا حتى البرامج الفرعية). يحمل المتغير القياسي "
266 "القيمة غير المعرفة (CW<\\*(C`undef\\*(C'>) حتى تُسند إليه قيمة معرفة، وهي أي "
267 "شيء بخلاف CW<\\*(C`undef\\*(C'>. عند استخدامه كرقم، يُعامل "
268 "\\&CW<\\*(C`undef\\*(C'> على أنه CW<0>؛ وعند استخدامه كسلسلة نصية، يُعامل على "
269 "أنه سلسلة فارغة، CW<\"\">؛ وعند استخدامه كمرجع لم يُسند إليه شيء، يُعامل كخطأ. "
270 "إذا فعلت التحذيرات، فسيُرسل إشعار بقيمة غير مهيأة كلما عومل "
271 "\\&CW<\\*(C`undef\\*(C'> كسلسلة أو رقم. حسنا، غالبا. السياقات المنطقية، مثل:"
272
273 #. type: Plain text
274 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
275 #: opensuse-leap-16-1 opensuse-tumbleweed
276 #, no-wrap
277 msgid "\\& if ($x) {}\n"
278 msgstr "\\& if ($x) {}\n"
279
280 #. type: Plain text
281 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
282 #: opensuse-leap-16-1 opensuse-tumbleweed
283 msgid ""
284 "are exempt from warnings (because they care about truth rather than "
285 "definedness). Operators such as CW<\\*(C`++\\*(C'>, CW<\\*(C`--\\*(C'>, "
286 "CW<\\*(C`+=\\*(C'>, \\&CW<\\*(C`-=\\*(C'>, and CW<\\*(C`.=\\*(C'>, that "
287 "operate on undefined variables such as:"
288 msgstr ""
289 "مستثناة من التحذيرات (لأنها تهتم بالصحة وليس بالتعريف). العوامل مثل "
290 "CW<\\*(C`++\\*(C'>، و CW<\\*(C`--\\*(C'>، و CW<\\*(C`+=\\*(C'>، و "
291 "\\&CW<\\*(C`-=\\*(C'>، و CW<\\*(C`.=\\*(C'>، التي تعمل على متغيرات غير معرفة "
292 "مثل:"
293
294 #. type: Plain text
295 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
296 #: opensuse-leap-16-1 opensuse-tumbleweed
297 #, no-wrap
298 msgid ""
299 "\\& undef $x;\n"
300 "\\& $x++;\n"
301 msgstr ""
302 "\\& undef $x;\n"
303 "\\& $x++;\n"
304
305 #. type: Plain text
306 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
307 #: opensuse-leap-16-1 opensuse-tumbleweed
308 msgid "are also always exempt from such warnings."
309 msgstr "مستثناة أيضًا دائما من هذه التحذيرات."
310
311 #. type: Plain text
312 #: debian-trixie debian-unstable
313 msgid ""
314 "A declaration can be put anywhere a statement can, but has no effect on the "
315 "execution of the primary sequence of statements: declarations all take "
316 "effect at compile time. All declarations are typically put at the beginning "
317 "or the end of the script. However, if you're using lexically-scoped private "
318 "variables created with CW<my()>, \\&CW<state()>, or CW<our()>, you'll have "
319 "to make sure your format or subroutine definition is within the same block "
320 "scope as the my if you expect to be able to access those private variables."
321 msgstr ""
322 "يمكن وضع التصريح في أي مكان توضع فيه العبارة، ولكن ليس له أي تأثير على تنفيذ "
323 "تسلسل العبارات الرئيس: فالتصريحات كلها تسري في وقت التصريف. عادة ما توضع "
324 "جميع التصريحات في بداية أو نهاية السكربت. ومع ذلك، إذا كنت تستخدم متغيرات "
325 "خاصة ذات نطاق معجمي أنشئت باستخدام CW<my()>، أو \\&CW<state()>، أو "
326 "CW<our()>، فسيتعين عليك التأكد من أن تعريف التنسيق أو البرنامج الفرعي الخاص "
327 "بك يقع ضمن نفس نطاق الكتلة كما في my إذا كنت تتوقع أن تكون قادرا على الوصول "
328 "إلى تلك المتغيرات الخاصة."
329
330 #. type: Plain text
331 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
332 #: opensuse-leap-16-1 opensuse-tumbleweed
333 msgid ""
334 "Declaring a subroutine allows a subroutine name to be used as if it were a "
335 "list operator from that point forward in the program. You can declare a "
336 "subroutine without defining it by saying CW<\\*(C`sub name\\*(C'>, thus:"
337 msgstr ""
338 "يسمح التصريح عن برنامج فرعي باستخدام اسم البرنامج الفرعي كما لو كان عامل "
339 "قائمة من تلك النقطة فصاعدا في البرنامج. يمكنك التصريح عن برنامج فرعي دون "
340 "تعريفه بقول CW<\\*(C`sub name\\*(C'>، هكذا:"
341
342 #. type: IX
343 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
344 #: opensuse-leap-16-1 opensuse-tumbleweed
345 #, no-wrap
346 msgid "subroutine, declaration"
347 msgstr "برنامج فرعي، تصريح"
348
349 #. type: Plain text
350 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
351 #: opensuse-leap-16-1 opensuse-tumbleweed
352 #, no-wrap
353 msgid ""
354 "\\& sub myname;\n"
355 "\\& $me = myname $0 or die \"can\\*(Aqt get myname\";\n"
356 msgstr ""
357 "\\& sub myname;\n"
358 "\\& $me = myname $0 or die \"can\\*(Aqt get myname\";\n"
359
360 #. type: Plain text
361 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
362 #: opensuse-leap-16-1 opensuse-tumbleweed
363 msgid ""
364 "A bare declaration like that declares the function to be a list operator, "
365 "not a unary operator, so you have to be careful to use parentheses (or "
366 "\\&CW<\\*(C`or\\*(C'> instead of CW<\\*(C`||\\*(C'>.) The CW<\\*(C`||"
367 "\\*(C'> operator binds too tightly to use after list operators; it becomes "
368 "part of the last element. You can always use parentheses around the list "
369 "operators arguments to turn the list operator back into something that "
370 "behaves more like a function call. Alternatively, you can use the prototype "
371 "CW<\\*(C`($)\\*(C'> to turn the subroutine into a unary operator:"
372 msgstr ""
373 "تصريح مجرد مثل هذا يصرح عن الدالة لتكون عامل قائمة، وليس عاملا أحاديا، لذا "
374 "عليك توخي الحذر في استخدام الأقواس (أو \\&CW<\\*(C`or\\*(C'> بدلا من "
375 "CW<\\*(C`||\\*(C'>). يرتبط العامل CW<\\*(C`||\\*(C'> بقوة أكبر من أن يُستخدم "
376 "بعد عوامل القائمة؛ إذ يصبح جزءا من العنصر الأخير. يمكنك دائما استخدام "
377 "الأقواس حول وسائط عوامل القائمة لتحويل عامل القائمة مرة أخرى إلى شيء يتصرف "
378 "بشكل أقرب إلى استدعاء دالة. وبدلا من ذلك، يمكنك استخدام النموذج الأولي "
379 "CW<\\*(C`($)\\*(C'> لتحويل البرنامج الفرعي إلى عامل أحادي:"
380
381 #. type: Plain text
382 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
383 #: opensuse-leap-16-1 opensuse-tumbleweed
384 #, no-wrap
385 msgid ""
386 "\\& sub myname ($);\n"
387 "\\& $me = myname $0 || die \"can\\*(Aqt get myname\";\n"
388 msgstr ""
389 "\\& sub myname ($);\n"
390 "\\& $me = myname $0 || die \"can\\*(Aqt get myname\";\n"
391
392 #. type: Plain text
393 #: debian-trixie debian-unstable
394 msgid ""
395 "That now parses as you'd expect, but you still ought to get in the habit of "
396 "using parentheses in that situation. For more on prototypes, see perlsub."
397 msgstr ""
398 "يُحلل هذا الآن كما تتوقع، ولكن لا يزال يتعين عليك التعود على استخدام الأقواس "
399 "في مثل هذه الحالات. لمزيد من المعلومات حول النماذج الأولية، راجع perlsub."
400
401 #. type: Plain text
402 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
403 #: opensuse-leap-16-1 opensuse-tumbleweed
404 msgid ""
405 "Subroutines declarations can also be loaded up with the "
406 "CW<\\*(C`require\\*(C'> statement or both loaded and imported into your "
407 "namespace with a CW<\\*(C`use\\*(C'> statement. See perlmod for details on "
408 "this."
409 msgstr ""
410 "يمكن أيضًا تحميل تصريحات البرامج الفرعية باستخدام عبارة "
411 "CW<\\*(C`require\\*(C'> أو تحميلها واستيرادها في مساحة الأسماء الخاصة بك "
412 "باستخدام عبارة CW<\\*(C`use\\*(C'>. راجع perlmod للحصول على تفاصيل حول هذا "
413 "الموضوع."
414
415 #. type: Plain text
416 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
417 #: opensuse-leap-16-1 opensuse-tumbleweed
418 msgid ""
419 "A statement sequence may contain declarations of lexically-scoped variables, "
420 "but apart from declaring a variable name, the declaration acts like an "
421 "ordinary statement, and is elaborated within the sequence of statements as "
422 "if it were an ordinary statement. That means it actually has both compile-"
423 "time and run-time effects."
424 msgstr ""
425 "قد يحتوي تسلسل العبارات على تصريحات لمتغيرات ذات نطاق معجمي، ولكن بصرف النظر "
426 "عن التصريح عن اسم متغير، فإن التصريح يعمل كعبارة عادية، ويُفصل ضمن تسلسل "
427 "العبارات كما لو كان عبارة عادية. وهذا يعني أن له آثارا في كل من وقت التصريف "
428 "ووقت التشغيل."
429
430 #. type: IX
431 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
432 #: opensuse-leap-16-1 opensuse-tumbleweed
433 #, no-wrap
434 msgid "Comments"
435 msgstr "ملاحظات"
436
437 #. type: IX
438 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
439 #: opensuse-leap-16-1 opensuse-tumbleweed
440 #, no-wrap
441 msgid "comment #"
442 msgstr "ملاحظة #"
443
444 #. type: Plain text
445 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
446 #: opensuse-leap-16-1 opensuse-tumbleweed
447 msgid ""
448 "Text from a CW<\"#\"> character until the end of the line is a comment, and "
449 "is ignored. Exceptions include CW<\"#\"> inside a string or regular "
450 "expression."
451 msgstr ""
452 "النص من محرف CW<\"#\"> حتى نهاية السطر هو ملاحظة، وتُجاهل. تشمل الاستثناءات "
453 "CW<\"#\"> داخل سلسلة نصية أو تعبير نمطي."
454
455 #. type: IX
456 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
457 #: opensuse-leap-16-1 opensuse-tumbleweed
458 #, no-wrap
459 msgid "Simple Statements"
460 msgstr "العبارات البسيطة"
461
462 #. type: IX
463 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
464 #: opensuse-leap-16-1 opensuse-tumbleweed
465 #, no-wrap
466 msgid "statement semicolon expression ;"
467 msgstr "تعبير فاصلة منقوطة عبارة ;"
468
469 #. type: Plain text
470 #: debian-trixie debian-unstable
471 msgid ""
472 "The only kind of simple statement is an expression evaluated for its side-"
473 "effects. Every simple statement must be terminated with a semicolon, unless "
474 "it is the final statement in a block, in which case the semicolon is "
475 "optional. But put the semicolon in anyway if the block takes up more than "
476 "one line, because you may eventually add another line. Note that there are "
477 "operators like CW<\\*(C`eval {}\\*(C'>, CW<\\*(C`sub {}\\*(C'>, and "
478 "\\&CW<\\*(C`do {}\\*(C'> that I<look> like compound statements, but aren't--"
479 "they're just TERMs in an expression--and thus need an explicit termination "
480 "when used as the last item in a statement."
481 msgstr ""
482 "النوع الوحيد من العبارات البسيطة هو التعبير الذي يُقيم لآثاره الجانبية. يجب "
483 "إنهاء كل عبارة بسيطة بفاصلة منقوطة، ما لم تكن العبارة الأخيرة في كتلة، وفي "
484 "هذه الحالة تكون الفاصلة المنقوطة اختيارية. ولكن ضع الفاصلة المنقوطة على أي "
485 "حال إذا كانت الكتلة تشغل أكثر من سطر واحد، لأنك قد تضيف سطرا آخر في النهاية. "
486 "لاحظ أن هناك عوامل مثل CW<\\*(C`eval {}\\*(C'>، و CW<\\*(C`sub {}\\*(C'>، و "
487 "\\&CW<\\*(C`do {}\\*(C'> التي I<تبدو> وكأنها عبارات مركبة، لكنها ليست كذلك - "
488 "فهي مجرد وحدات (TERMs) في تعبير - وبالتالي تحتاج إلى إنهاء صريح عند "
489 "استخدامها كآخر عنصر في العبارة."
490
491 #. type: IX
492 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
493 #: opensuse-leap-16-1 opensuse-tumbleweed
494 #, no-wrap
495 msgid "Statement Modifiers"
496 msgstr "معدلات العبارة"
497
498 #. type: IX
499 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
500 #: opensuse-leap-16-1 opensuse-tumbleweed
501 #, no-wrap
502 msgid "statement modifier modifier if unless while until when foreach for"
503 msgstr "معدل عبارة معدل if unless while until when foreach for"
504
505 #. type: Plain text
506 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
507 #: opensuse-leap-16-1 opensuse-tumbleweed
508 msgid ""
509 "Any simple statement may optionally be followed by a I<SINGLE> modifier, "
510 "just before the terminating semicolon (or block ending). The possible "
511 "modifiers are:"
512 msgstr ""
513 "يمكن اختياريا أن تتبع أي عبارة بسيطة بمعدل I<واحد> فقط، مباشرة قبل الفاصلة "
514 "المنقوطة النهائية (أو نهاية الكتلة). المعدلات الممكنة هي:"
515
516 #. type: Plain text
517 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
518 #: opensuse-leap-16-1 opensuse-tumbleweed
519 #, no-wrap
520 msgid ""
521 "\\& if EXPR\n"
522 "\\& unless EXPR\n"
523 "\\& while EXPR\n"
524 "\\& until EXPR\n"
525 "\\& for LIST\n"
526 "\\& foreach LIST\n"
527 "\\& when EXPR\n"
528 msgstr ""
529 "\\& if EXPR\n"
530 "\\& unless EXPR\n"
531 "\\& while EXPR\n"
532 "\\& until EXPR\n"
533 "\\& for LIST\n"
534 "\\& foreach LIST\n"
535 "\\& when EXPR\n"
536
537 #. type: Plain text
538 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
539 #: opensuse-leap-16-1 opensuse-tumbleweed
540 msgid ""
541 "The CW<\\*(C`EXPR\\*(C'> following the modifier is referred to as the "
542 "\"condition\". Its truth or falsehood determines how the modifier will "
543 "behave."
544 msgstr ""
545 "يُشار إلى الـ CW<\\*(C`EXPR\\*(C'> التي تلي المعدل باسم \"الشرط\". يحدد صدقه "
546 "أو كذبه كيفية سلوك المعدل."
547
548 #. type: Plain text
549 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
550 #: opensuse-leap-16-1 opensuse-tumbleweed
551 msgid ""
552 "\\&CW<\\*(C`if\\*(C'> executes the statement once I<if> and only if the "
553 "condition is true. CW<\\*(C`unless\\*(C'> is the opposite, it executes the "
554 "statement I<unless> the condition is true (that is, if the condition is "
555 "false). See \"Scalar values\" in perldata for definitions of true and false."
556 msgstr ""
557 "ينفذ \\&CW<\\*(C`if\\*(C'> العبارة مرة واحدة I<إذا> وفقط إذا كان الشرط "
558 "صحيحا. CW<\\*(C`unless\\*(C'> هو العكس، حيث ينفذ العبارة I<ما لم> يكن الشرط "
559 "صحيحا (أي إذا كان الشرط خاطئا). راجع \"القيم القياسية\" في perldata للتعرف "
560 "على تعريفات الصحيح والخاطئ."
561
562 #. type: Plain text
563 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
564 #: opensuse-leap-16-1 opensuse-tumbleweed
565 #, no-wrap
566 msgid ""
567 "\\& print \"Basset hounds got long ears\" if length $ear E<gt>= 10;\n"
568 "\\& go_outside() and play() unless $is_raining;\n"
569 msgstr ""
570 "\\& print \"Basset hounds got long ears\" if length $ear E<gt>= 10;\n"
571 "\\& go_outside() and play() unless $is_raining;\n"
572
573 #. type: Plain text
574 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
575 #: opensuse-leap-16-1 opensuse-tumbleweed
576 msgid ""
577 "The CW<for(each)> modifier is an iterator: it executes the statement once "
578 "for each item in the LIST (with CW<$_> aliased to each item in turn). There "
579 "is no syntax to specify a C-style for loop or a lexically scoped iteration "
580 "variable in this form."
581 msgstr ""
582 "المعدل CW<for(each)> هو مكرر (iterator): فهو ينفذ العبارة مرة واحدة لكل عنصر "
583 "في الـ LIST (مع ربط CW<$_> بكل عنصر بالدور). لا توجد صياغة لتحديد حلقة for "
584 "بنمط C أو متغير تكرار ذو نطاق معجمي في هذا النموذج."
585
586 #. type: Plain text
587 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
588 #: opensuse-leap-16-1 opensuse-tumbleweed
589 #, no-wrap
590 msgid "\\& print \"Hello $_!\\en\" for qw(world Dolly nurse);\n"
591 msgstr "\\& print \"Hello $_!\\en\" for qw(world Dolly nurse);\n"
592
593 #. type: Plain text
594 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
595 #: opensuse-leap-16-1 opensuse-tumbleweed
596 msgid ""
597 "\\&CW<\\*(C`while\\*(C'> repeats the statement I<while> the condition is "
598 "true. Postfix CW<\\*(C`while\\*(C'> has the same magic treatment of some "
599 "kinds of condition that prefix CW<\\*(C`while\\*(C'> has. "
600 "\\&CW<\\*(C`until\\*(C'> does the opposite, it repeats the statement "
601 "I<until> the condition is true (or while the condition is false):"
602 msgstr ""
603 "يكرر \\&CW<\\*(C`while\\*(C'> العبارة I<بينما> يكون الشرط صحيحا. يمتلك "
604 "CW<\\*(C`while\\*(C'> اللاحق نفس المعاملة السحرية لبعض أنواع الشروط التي "
605 "يمتلكها CW<\\*(C`while\\*(C'> البادئ. يقوم \\&CW<\\*(C`until\\*(C'> بالعكس، "
606 "حيث يكرر العبارة I<حتى> يصبح الشرط صحيحا (أو بينما يكون الشرط خاطئا):"
607
608 #. type: Plain text
609 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
610 #: opensuse-leap-16-1 opensuse-tumbleweed
611 #, no-wrap
612 msgid ""
613 "\\& # Both of these count from 0 to 10.\n"
614 "\\& print $i++ while $i E<lt>= 10;\n"
615 "\\& print $j++ until $j E<gt> 10;\n"
616 msgstr ""
617 "\\& # كلاهما يعد من 0 إلى 10.\n"
618 "\\& print $i++ while $i E<lt>= 10;\n"
619 "\\& print $j++ until $j E<gt> 10;\n"
620
621 #. type: Plain text
622 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
623 #: opensuse-leap-16-1 opensuse-tumbleweed
624 msgid ""
625 "The CW<\\*(C`while\\*(C'> and CW<\\*(C`until\\*(C'> modifiers have the usual "
626 "\"CW<\\*(C`while\\*(C'> loop\" semantics (conditional evaluated first), "
627 "except when applied to a \\&CW<\\*(C`do\\*(C'>-BLOCK (or to the Perl4 "
628 "CW<\\*(C`do\\*(C'>-SUBROUTINE statement), in which case the block executes "
629 "once before the conditional is evaluated."
630 msgstr ""
631 "لمعدلي CW<\\*(C`while\\*(C'> و CW<\\*(C`until\\*(C'> معاني \"حلقة "
632 "CW<\\*(C`while\\*(C'>\" المعتادة (يُقيم الشرط أولا)، إلا عند تطبيقهما على "
633 "\\&CW<\\*(C`do\\*(C'>-BLOCK (أو على عبارة CW<\\*(C`do\\*(C'>-SUBROUTINE في "
634 "بيرل 4)، وفي هذه الحالة تُنفذ الكتلة مرة واحدة قبل تقييم الشرط."
635
636 #. type: Plain text
637 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
638 #: opensuse-leap-16-1 opensuse-tumbleweed
639 msgid "This is so that you can write loops like:"
640 msgstr "هذا لكي تتمكن من كتابة حلقات مثل:"
641
642 #. type: Plain text
643 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
644 #: opensuse-leap-16-1 opensuse-tumbleweed
645 #, no-wrap
646 msgid ""
647 "\\& do {\n"
648 "\\& $line = E<lt>STDINE<gt>;\n"
649 "\\& ...\n"
650 "\\& } until !defined($line) || $line eq \".\\en\"\n"
651 msgstr ""
652 "\\& do {\n"
653 "\\& $line = E<lt>STDINE<gt>;\n"
654 "\\& ...\n"
655 "\\& } until !defined($line) || $line eq \".\\en\"\n"
656
657 #. type: Plain text
658 #: debian-trixie debian-unstable
659 msgid ""
660 "See \"do\" in perlfunc. Note also that the loop control statements "
661 "described later will I<NOT> work in this construct, because modifiers don't "
662 "take loop labels. Sorry. You can always put another block inside of it "
663 "(for CW<\\*(C`next\\*(C'>/CW<\\*(C`redo\\*(C'>) or around it (for "
664 "CW<\\*(C`last\\*(C'>) to do that sort of thing."
665 msgstr ""
666 "راجع \"do\" في perlfunc. لاحظ أيضًا أن عبارات التحكم في الحلقة الموصوفة لاحقا "
667 "I<لن> تعمل في هذا الهيكل، لأن المعدلات لا تأخذ لصائق حلقات. عذرا. يمكنك "
668 "دائما وضع كتلة أخرى داخلها (لـ CW<\\*(C`next\\*(C'>/CW<\\*(C`redo\\*(C'>) أو "
669 "حولها (لـ CW<\\*(C`last\\*(C'>) للقيام بهذا النوع من الأشياء."
670
671 #. type: IX
672 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
673 #: opensuse-leap-16-1 opensuse-tumbleweed
674 #, no-wrap
675 msgid "next last redo"
676 msgstr "next last redo"
677
678 #. type: Plain text
679 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
680 #: opensuse-leap-16-1 opensuse-tumbleweed
681 msgid ""
682 "For CW<\\*(C`next\\*(C'> or CW<\\*(C`redo\\*(C'>, just double the braces:"
683 msgstr "لـ CW<\\*(C`next\\*(C'> أو CW<\\*(C`redo\\*(C'>، فقط ضاعف الأقواس:"
684
685 #. type: Plain text
686 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
687 #: opensuse-leap-16-1 opensuse-tumbleweed
688 #, no-wrap
689 msgid ""
690 "\\& do {{\n"
691 "\\& next if $x == $y;\n"
692 "\\& # do something here\n"
693 "\\& }} until $x++ E<gt> $z;\n"
694 msgstr ""
695 "\\& do {{\n"
696 "\\& next if $x == $y;\n"
697 "\\& # افعل شيئا هنا\n"
698 "\\& }} until $x++ E<gt> $z;\n"
699
700 #. type: Plain text
701 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
702 #: opensuse-leap-16-1 opensuse-tumbleweed
703 msgid ""
704 "For CW<\\*(C`last\\*(C'>, you have to be more elaborate and put braces "
705 "around it:"
706 msgstr ""
707 "بالنسبة لـ CW<\\*(C`last\\*(C'>، عليك أن تكون أكثر تفصيلا وتضع أقواسا حولها:"
708
709 #. type: IX
710 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
711 #: opensuse-leap-16-1 opensuse-tumbleweed
712 #, no-wrap
713 msgid "last"
714 msgstr "last"
715
716 #. type: Plain text
717 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
718 #: opensuse-leap-16-1 opensuse-tumbleweed
719 #, no-wrap
720 msgid ""
721 "\\& {\n"
722 "\\& do {\n"
723 "\\& last if $x == $y**2;\n"
724 "\\& # do something here\n"
725 "\\& } while $x++ E<lt>= $z;\n"
726 "\\& }\n"
727 msgstr ""
728 "\\& {\n"
729 "\\& do {\n"
730 "\\& last if $x == $y**2;\n"
731 "\\& # افعل شيئا هنا\n"
732 "\\& } while $x++ E<lt>= $z;\n"
733 "\\& }\n"
734
735 #. type: Plain text
736 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
737 #: opensuse-leap-16-1 opensuse-tumbleweed
738 msgid ""
739 "If you need both CW<\\*(C`next\\*(C'> and CW<\\*(C`last\\*(C'>, you have to "
740 "do both and also use a loop label:"
741 msgstr ""
742 "إذا كنت بحاجة إلى كل من CW<\\*(C`next\\*(C'> و CW<\\*(C`last\\*(C'>، فعليك "
743 "القيام بكليهما واستخدام لصيقة حلقة أيضًا:"
744
745 #. type: Plain text
746 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
747 #: opensuse-leap-16-1 opensuse-tumbleweed
748 #, no-wrap
749 msgid ""
750 "\\& LOOP: {\n"
751 "\\& do {{\n"
752 "\\& next if $x == $y;\n"
753 "\\& last LOOP if $x == $y**2;\n"
754 "\\& # do something here\n"
755 "\\& }} until $x++ E<gt> $z;\n"
756 "\\& }\n"
757 msgstr ""
758 "\\& LOOP: {\n"
759 "\\& do {{\n"
760 "\\& next if $x == $y;\n"
761 "\\& last LOOP if $x == $y**2;\n"
762 "\\& # افعل شيئا هنا\n"
763 "\\& }} until $x++ E<gt> $z;\n"
764 "\\& }\n"
765
766 #. type: Plain text
767 #: debian-trixie debian-unstable
768 msgid ""
769 "\\&B<NOTE:> The behaviour of a CW<\\*(C`my\\*(C'>, CW<\\*(C`state\\*(C'>, or "
770 "\\&CW<\\*(C`our\\*(C'> modified with a statement modifier conditional or "
771 "loop construct (for example, CW<\\*(C`my $x if ...\\*(C'>) is "
772 "\\&B<undefined>. The value of the CW<\\*(C`my\\*(C'> variable may be "
773 "CW<\\*(C`undef\\*(C'>, any previously assigned value, or possibly anything "
774 "else. Don't rely on it. Future versions of perl might do something "
775 "different from the version of perl you try it out on. Here be dragons."
776 msgstr ""
777 "\\&B<ملاحظة:> إن سلوك CW<\\*(C`my\\*(C'>، أو CW<\\*(C`state\\*(C'>، أو "
778 "\\&CW<\\*(C`our\\*(C'> المعدل باستخدام شرط معدل عبارة أو هيكل حلقة (على سبيل "
779 "المثال، CW<\\*(C`my $x if ...\\*(C'>) هو سلوك B<غير محدد>. قد تكون قيمة "
780 "متغير CW<\\*(C`my\\*(C'> هي CW<\\*(C`undef\\*(C'>، أو أي قيمة أُسندت سابقا، "
781 "أو ربما أي شيء آخر. لا تعتمد عليه. قد تفعل الإصدارات المستقبلية من بيرل شيئا "
782 "مختلفا عن إصدار بيرل الذي تجربه عليه."
783
784 #. type: IX
785 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
786 #: opensuse-leap-16-1 opensuse-tumbleweed
787 #, no-wrap
788 msgid "my"
789 msgstr "my"
790
791 #. type: Plain text
792 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
793 #: opensuse-leap-16-1 opensuse-tumbleweed
794 msgid ""
795 "The CW<\\*(C`when\\*(C'> modifier is an experimental feature that first "
796 "appeared in Perl 5.14. To use it, you should include a CW<\\*(C`use "
797 "v5.14\\*(C'> declaration. (Technically, it requires only the "
798 "CW<\\*(C`switch\\*(C'> feature, but that aspect of it was not available "
799 "before 5.14.) Operative only from within a CW<\\*(C`foreach\\*(C'> loop or "
800 "a CW<\\*(C`given\\*(C'> block, it executes the statement only if the "
801 "smartmatch \\&CW<\\*(C`$_ ~~ >\\f(CIEXPRCW<\\*(C'> is true. If the "
802 "statement executes, it is followed by a CW<\\*(C`next\\*(C'> from inside a "
803 "CW<\\*(C`foreach\\*(C'> and CW<\\*(C`break\\*(C'> from inside a "
804 "CW<\\*(C`given\\*(C'>."
805 msgstr ""
806 "معدل CW<\\*(C`when\\*(C'> هو ميزة تجريبية ظهرت لأول مرة في بيرل 5.14. "
807 "لاستخدامه، يجب عليك تضمين تصريح CW<\\*(C`use v5.14\\*(C'>. (من الناحية "
808 "التقنية، يتطلب فقط ميزة CW<\\*(C`switch\\*(C'>، ولكن هذا الجانب منها لم يكن "
809 "متاحا قبل 5.14). وهو يعمل فقط من داخل حلقة CW<\\*(C`foreach\\*(C'> أو كتلة "
810 "CW<\\*(C`given\\*(C'>، حيث ينفذ العبارة فقط إذا كان المطابق الذكي "
811 "\\&CW<\\*(C`$_ ~~ >\\f(CIEXPRCW<\\*(C'> صحيحا. إذا نُفذت العبارة، فسيتبعها "
812 "CW<\\*(C`next\\*(C'> من داخل CW<\\*(C`foreach\\*(C'> و CW<\\*(C`break\\*(C'> "
813 "من داخل CW<\\*(C`given\\*(C'>."
814
815 #. type: Plain text
816 #: debian-trixie debian-unstable
817 msgid ""
818 "Under the current implementation, the CW<\\*(C`foreach\\*(C'> loop can be "
819 "anywhere within the CW<\\*(C`when\\*(C'> modifier's dynamic scope, but must "
820 "be within the CW<\\*(C`given\\*(C'> block's lexical scope. This restriction "
821 "may be relaxed in a future release. See \"Switch Statements\" below."
822 msgstr ""
823 "في ظل التنفيذ الحالي، يمكن أن تكون حلقة CW<\\*(C`foreach\\*(C'> في أي مكان "
824 "داخل النطاق الديناميكي لمعدل CW<\\*(C`when\\*(C'>، ولكن يجب أن تكون داخل "
825 "النطاق المعجمي لكتلة CW<\\*(C`given\\*(C'>. قد يُخفف هذا القيد في إصدار "
826 "مستقبلي. راجع \"عبارات التبديل\" أدناه."
827
828 #. type: IX
829 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
830 #: opensuse-leap-16-1 opensuse-tumbleweed
831 #, no-wrap
832 msgid "Compound Statements"
833 msgstr "العبارات المركبة"
834
835 #. type: IX
836 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
837 #: opensuse-leap-16-1 opensuse-tumbleweed
838 #, no-wrap
839 msgid "statement, compound block bracket, curly curly bracket brace { } if unless given while until foreach for continue"
840 msgstr "عبارة، مركب قوس كتلة، قوس معقوف { } if unless given while until foreach for continue"
841
842 #. type: Plain text
843 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
844 #: opensuse-leap-16-1 opensuse-tumbleweed
845 msgid ""
846 "In Perl, a sequence of statements that defines a scope is called a block. "
847 "Sometimes a block is delimited by the file containing it (in the case of a "
848 "required file, or the program as a whole), and sometimes a block is "
849 "delimited by the extent of a string (in the case of an eval)."
850 msgstr ""
851 "في بيرل، يُطلق على تسلسل العبارات الذي يحدد نطاقا اسم كتلة. أحيانا تُحدد "
852 "الكتلة بواسطة الملف الذي يحتوي عليها (في حالة ملف مطلوب، أو البرنامج ككل)، "
853 "وأحيانا تُحدد الكتلة بمدى سلسلة نصية (في حالة eval)."
854
855 #. type: Plain text
856 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
857 #: opensuse-leap-16-1 opensuse-tumbleweed
858 msgid ""
859 "But generally, a block is delimited by curly brackets, also known as "
860 "braces. We will call this syntactic construct a BLOCK. Because enclosing "
861 "braces are also the syntax for hash reference constructor expressions (see "
862 "perlref), you may occasionally need to disambiguate by placing a "
863 "\\&CW<\\*(C`;\\*(C'> immediately after an opening brace so that Perl "
864 "realises the brace is the start of a block. You will more frequently need "
865 "to disambiguate the other way, by placing a CW<\\*(C`+\\*(C'> immediately "
866 "before an opening brace to force it to be interpreted as a hash reference "
867 "constructor expression. It is considered good style to use these "
868 "disambiguating mechanisms liberally, not only when Perl would otherwise "
869 "guess incorrectly."
870 msgstr ""
871 "ولكن بشكل عام، تُحدد الكتلة بواسطة أقواس معقوفة. سنسمي هذا البناء الصوري "
872 "BLOCK. نظرا لأن الأقواس المحيطة هي أيضًا صياغة لتعبيرات منشئ مرجع الهاش (راجع "
873 "perlref)، فقد تحتاج أحيانا إلى إزالة اللبس بوضع \\&CW<\\*(C`;\\*(C'> مباشرة "
874 "بعد قوس الفتح حتى تدرك بيرل أن القوس هو بداية كتلة. ستحتاج في كثير من "
875 "الأحيان إلى إزالة اللبس بالطريقة الأخرى، عن طريق وضع CW<\\*(C`+\\*(C'> "
876 "مباشرة قبل قوس الفتح لإجباره على تفسيره كتعبير منشئ مرجع هاش. يُعتبر من "
877 "الأسلوب الجيد استخدام آليات إزالة اللبس هذه بكثرة، وليس فقط عندما تخمن بيرل "
878 "بشكل غير صحيح."
879
880 #. type: Plain text
881 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
882 #: opensuse-leap-16-1 opensuse-tumbleweed
883 msgid "The following compound statements may be used to control flow:"
884 msgstr "يمكن استخدام العبارات المركبة التالية للتحكم في التدفق:"
885
886 #. type: Plain text
887 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
888 #: opensuse-leap-16-1 opensuse-tumbleweed
889 #, no-wrap
890 msgid ""
891 "\\& if (EXPR) BLOCK\n"
892 "\\& if (EXPR) BLOCK else BLOCK\n"
893 "\\& if (EXPR) BLOCK elsif (EXPR) BLOCK ...\n"
894 "\\& if (EXPR) BLOCK elsif (EXPR) BLOCK ... else BLOCK\n"
895 "\\&\n"
896 "\\& unless (EXPR) BLOCK\n"
897 "\\& unless (EXPR) BLOCK else BLOCK\n"
898 "\\& unless (EXPR) BLOCK elsif (EXPR) BLOCK ...\n"
899 "\\& unless (EXPR) BLOCK elsif (EXPR) BLOCK ... else BLOCK\n"
900 "\\&\n"
901 "\\& given (EXPR) BLOCK\n"
902 "\\&\n"
903 "\\& LABEL while (EXPR) BLOCK\n"
904 "\\& LABEL while (EXPR) BLOCK continue BLOCK\n"
905 "\\&\n"
906 "\\& LABEL until (EXPR) BLOCK\n"
907 "\\& LABEL until (EXPR) BLOCK continue BLOCK\n"
908 "\\&\n"
909 "\\& LABEL for (EXPR; EXPR; EXPR) BLOCK\n"
910 "\\& LABEL for VAR (LIST) BLOCK\n"
911 "\\& LABEL for VAR (LIST) BLOCK continue BLOCK\n"
912 "\\&\n"
913 "\\& LABEL foreach (EXPR; EXPR; EXPR) BLOCK\n"
914 "\\& LABEL foreach VAR (LIST) BLOCK\n"
915 "\\& LABEL foreach VAR (LIST) BLOCK continue BLOCK\n"
916 "\\&\n"
917 "\\& LABEL BLOCK\n"
918 "\\& LABEL BLOCK continue BLOCK\n"
919 "\\&\n"
920 "\\& PHASE BLOCK\n"
921 msgstr ""
922 "\\& if (EXPR) BLOCK\n"
923 "\\& if (EXPR) BLOCK else BLOCK\n"
924 "\\& if (EXPR) BLOCK elsif (EXPR) BLOCK ...\n"
925 "\\& if (EXPR) BLOCK elsif (EXPR) BLOCK ... else BLOCK\n"
926 "\\&\n"
927 "\\& unless (EXPR) BLOCK\n"
928 "\\& unless (EXPR) BLOCK else BLOCK\n"
929 "\\& unless (EXPR) BLOCK elsif (EXPR) BLOCK ...\n"
930 "\\& unless (EXPR) BLOCK elsif (EXPR) BLOCK ... else BLOCK\n"
931 "\\&\n"
932 "\\& given (EXPR) BLOCK\n"
933 "\\&\n"
934 "\\& LABEL while (EXPR) BLOCK\n"
935 "\\& LABEL while (EXPR) BLOCK continue BLOCK\n"
936 "\\&\n"
937 "\\& LABEL until (EXPR) BLOCK\n"
938 "\\& LABEL until (EXPR) BLOCK continue BLOCK\n"
939 "\\&\n"
940 "\\& LABEL for (EXPR; EXPR; EXPR) BLOCK\n"
941 "\\& LABEL for VAR (LIST) BLOCK\n"
942 "\\& LABEL for VAR (LIST) BLOCK continue BLOCK\n"
943 "\\&\n"
944 "\\& LABEL foreach (EXPR; EXPR; EXPR) BLOCK\n"
945 "\\& LABEL foreach VAR (LIST) BLOCK\n"
946 "\\& LABEL foreach VAR (LIST) BLOCK continue BLOCK\n"
947 "\\&\n"
948 "\\& LABEL BLOCK\n"
949 "\\& LABEL BLOCK continue BLOCK\n"
950 "\\&\n"
951 "\\& PHASE BLOCK\n"
952
953 #. type: Plain text
954 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
955 #: opensuse-leap-16-1 opensuse-tumbleweed
956 msgid ""
957 "As of Perl 5.36, you can iterate over multiple values at a time by "
958 "specifying a list of lexicals within parentheses:"
959 msgstr ""
960 "بدءا من بيرل 5.36، يمكنك التكرار عبر قيم متعددة في وقت واحد عن طريق تحديد "
961 "قائمة من المتغيرات المعجمية داخل أقواس:"
962
963 #. type: Plain text
964 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
965 #: opensuse-leap-16-1 opensuse-tumbleweed
966 #, no-wrap
967 msgid ""
968 "\\& LABEL for my (VAR, VAR) (LIST) BLOCK\n"
969 "\\& LABEL for my (VAR, VAR) (LIST) BLOCK continue BLOCK\n"
970 "\\& LABEL foreach my (VAR, VAR) (LIST) BLOCK\n"
971 "\\& LABEL foreach my (VAR, VAR) (LIST) BLOCK continue BLOCK\n"
972 msgstr ""
973 "\\& LABEL for my (VAR, VAR) (LIST) BLOCK\n"
974 "\\& LABEL for my (VAR, VAR) (LIST) BLOCK continue BLOCK\n"
975 "\\& LABEL foreach my (VAR, VAR) (LIST) BLOCK\n"
976 "\\& LABEL foreach my (VAR, VAR) (LIST) BLOCK continue BLOCK\n"
977
978 #. type: Plain text
979 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
980 #: opensuse-leap-16-1 opensuse-tumbleweed
981 msgid ""
982 "If enabled by the CW<\\*(C`try\\*(C'> feature, the following may also be used"
983 msgstr "إذا فُعلت ميزة CW<\\*(C`try\\*(C'>، فيمكن أيضًا استخدام ما يلي"
984
985 #. type: Plain text
986 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
987 #: opensuse-leap-16-1 opensuse-tumbleweed
988 #, no-wrap
989 msgid ""
990 "\\& try BLOCK catch (VAR) BLOCK\n"
991 "\\& try BLOCK catch (VAR) BLOCK finally BLOCK\n"
992 msgstr ""
993 "\\& try BLOCK catch (VAR) BLOCK\n"
994 "\\& try BLOCK catch (VAR) BLOCK finally BLOCK\n"
995
996 #. type: Plain text
997 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
998 #: opensuse-leap-16-1 opensuse-tumbleweed
999 msgid ""
1000 "The experimental CW<\\*(C`given\\*(C'> statement is I<not automatically "
1001 "enabled>; see \"Switch Statements\" below for how to do so, and the "
1002 "attendant caveats."
1003 msgstr ""
1004 "عبارة CW<\\*(C`given\\*(C'> التجريبية I<لا تُفعل آليا>؛ راجع \"عبارات "
1005 "التبديل\" أدناه لمعرفة كيفية القيام بذلك، والتحذيرات المصاحبة لها."
1006
1007 #. type: Plain text
1008 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1009 #: opensuse-leap-16-1 opensuse-tumbleweed
1010 msgid ""
1011 "Unlike in C and Pascal, in Perl these are all defined in terms of BLOCKs, "
1012 "not statements. This means that the curly brackets are I<required>--no "
1013 "dangling statements allowed. If you want to write conditionals without "
1014 "curly brackets, there are several other ways to do it. The following all do "
1015 "the same thing:"
1016 msgstr ""
1017 "على عكس لغتي C و Pascal، يُعرف كل هذه في بيرل من حيث الـ BLOCKs، وليس "
1018 "العبارات. وهذا يعني أن الأقواس المعقوفة I<مطلوبة> - لا يُسمح بالعبارات "
1019 "المعلقة. إذا كنت تريد كتابة شروط بدون أقواس معقوفة، فهناك عدة طرق أخرى "
1020 "للقيام بذلك. كل ما يلي يفعل الشيء نفسه:"
1021
1022 #. type: Plain text
1023 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1024 #: opensuse-leap-16-1 opensuse-tumbleweed
1025 #, no-wrap
1026 msgid ""
1027 "\\& if (!open(FOO)) { die \"Can\\*(Aqt open $FOO: $!\" }\n"
1028 "\\& die \"Can\\*(Aqt open $FOO: $!\" unless open(FOO);\n"
1029 "\\& open(FOO) || die \"Can\\*(Aqt open $FOO: $!\";\n"
1030 "\\& open(FOO) ? () : die \"Can\\*(Aqt open $FOO: $!\";\n"
1031 "\\& # a bit exotic, that last one\n"
1032 msgstr ""
1033 "\\& if (!open(FOO)) { die \"Can\\*(Aqt open $FOO: $!\" }\n"
1034 "\\& die \"Can\\*(Aqt open $FOO: $!\" unless open(FOO);\n"
1035 "\\& open(FOO) || die \"Can\\*(Aqt open $FOO: $!\";\n"
1036 "\\& open(FOO) ? () : die \"Can\\*(Aqt open $FOO: $!\";\n"
1037 "\\& # الأخير غريب بعض الشيء\n"
1038
1039 #. type: Plain text
1040 #: debian-trixie debian-unstable
1041 msgid ""
1042 "The CW<\\*(C`if\\*(C'> statement is straightforward. Because BLOCKs are "
1043 "always bounded by curly brackets, there is never any ambiguity about which "
1044 "\\&CW<\\*(C`if\\*(C'> an CW<\\*(C`else\\*(C'> goes with. If you use "
1045 "CW<\\*(C`unless\\*(C'> in place of CW<\\*(C`if\\*(C'>, the sense of the test "
1046 "is reversed. Like CW<\\*(C`if\\*(C'>, CW<\\*(C`unless\\*(C'> can be "
1047 "followed by CW<\\*(C`else\\*(C'>. CW<\\*(C`unless\\*(C'> can even be "
1048 "followed by one or more CW<\\*(C`elsif\\*(C'> statements, though you may "
1049 "want to think twice before using that particular language construct, as "
1050 "everyone reading your code will have to think at least twice before they can "
1051 "understand what's going on."
1052 msgstr ""
1053 "عبارة CW<\\*(C`if\\*(C'> واضحة ومباشرة. نظرا لأن الـ BLOCKs محددة دائما "
1054 "بأقواس معقوفة، فلا يوجد أبدا أي غموض حول أي \\&CW<\\*(C`if\\*(C'> يتبعها "
1055 "CW<\\*(C`else\\*(C'>. إذا استخدمت CW<\\*(C`unless\\*(C'> بدلا من "
1056 "CW<\\*(C`if\\*(C'>، فسيُعكس معنى الاختبار. مثل CW<\\*(C`if\\*(C'>، يمكن أن "
1057 "يتبع CW<\\*(C`unless\\*(C'> بـ CW<\\*(C`else\\*(C'>. بل ويمكن أن يتبع "
1058 "CW<\\*(C`unless\\*(C'> عبارة CW<\\*(C`elsif\\*(C'> واحدة أو أكثر، على الرغم "
1059 "من أنك قد ترغب في التفكير مرتين قبل استخدام هذا الهيكل اللغوي بالذات، حيث "
1060 "سيتعين على كل من يقرأ كودك التفكير مرتين على الأقل قبل أن يتمكن من فهم ما "
1061 "يحدث."
1062
1063 #. type: Plain text
1064 #: debian-trixie debian-unstable
1065 msgid ""
1066 "The CW<\\*(C`while\\*(C'> statement executes the block as long as the "
1067 "expression is true. The CW<\\*(C`until\\*(C'> statement executes the block "
1068 "as long as the expression is false. The LABEL is optional, and if present, "
1069 "consists of an identifier followed by a colon. The LABEL identifies the "
1070 "loop for the loop control statements CW<\\*(C`next\\*(C'>, "
1071 "CW<\\*(C`last\\*(C'>, and CW<\\*(C`redo\\*(C'>. If the LABEL is omitted, "
1072 "the loop control statement refers to the innermost enclosing loop. This may "
1073 "include dynamically searching through your call-stack at run time to find "
1074 "the LABEL. Such desperate behavior triggers a warning if you use the "
1075 "CW<\\*(C`use warnings\\*(C'> pragma or the B<-w> flag."
1076 msgstr ""
1077 "تنفذ عبارة CW<\\*(C`while\\*(C'> الكتلة طالما كان التعبير صحيحا. وتنفذ عبارة "
1078 "CW<\\*(C`until\\*(C'> الكتلة طالما كان التعبير خاطئا. الـ LABEL اختياري، "
1079 "وإذا وُجد، فإنه يتكون من معرف تتبعه نقطتان رأسيتان. يحدد الـ LABEL الحلقة "
1080 "لعبارات التحكم في الحلقة CW<\\*(C`next\\*(C'>، و CW<\\*(C`last\\*(C'>، و "
1081 "CW<\\*(C`redo\\*(C'>. إذا حُذف الـ LABEL، فإن عبارة التحكم في الحلقة تشير إلى "
1082 "الحلقة المغلقة الأعمق. قد يشمل ذلك البحث ديناميكيا من خلال مكدس الاستدعاءات "
1083 "الخاص بك في وقت التشغيل للعثور على الـ LABEL. يؤدي هذا السلوك اليائس إلى "
1084 "إطلاق تحذير إذا كنت تستخدم pragma الخاص بـ CW<\\*(C`use warnings\\*(C'> أو "
1085 "علم B<-w>."
1086
1087 #. type: Plain text
1088 #: debian-trixie debian-unstable
1089 msgid ""
1090 "If the condition expression of a CW<\\*(C`while\\*(C'> statement is based on "
1091 "any of a group of iterative expression types then it gets some magic "
1092 "treatment. The affected iterative expression types are "
1093 "CW<\\*(C`readline\\*(C'>, the CW<\\*(C`E<lt>FILEHANDLEE<gt>\\*(C'> input "
1094 "operator, CW<\\*(C`readdir\\*(C'>, CW<\\*(C`glob\\*(C'>, the "
1095 "CW<\\*(C`E<lt>PATTERNE<gt>\\*(C'> globbing operator, and "
1096 "CW<\\*(C`each\\*(C'>. If the condition expression is one of these "
1097 "expression types, then the value yielded by the iterative operator will be "
1098 "implicitly assigned to CW<$_>. If the condition expression is one of these "
1099 "expression types or an explicit assignment of one of them to a scalar, then "
1100 "the condition actually tests for definedness of the expression's value, not "
1101 "for its regular truth value."
1102 msgstr ""
1103 "إذا كان تعبير الشرط لعبارة CW<\\*(C`while\\*(C'> مبنيا على أي من مجموعة من "
1104 "أنواع التعبيرات التكرارية، فإنه يحصل على بعض المعاملة السحرية. أنواع "
1105 "التعبيرات التكرارية المتأثرة هي CW<\\*(C`readline\\*(C'>، وعامل الإدخال "
1106 "CW<\\*(C`E<lt>FILEHANDLEE<gt>\\*(C'>، و CW<\\*(C`readdir\\*(C'>، و "
1107 "CW<\\*(C`glob\\*(C'>، وعامل المطابقة CW<\\*(C`E<lt>PATTERNE<gt>\\*(C'>، و "
1108 "CW<\\*(C`each\\*(C'>. إذا كان تعبير الشرط أحد أنواع التعبيرات هذه، فستُسند "
1109 "القيمة الناتجة عن العامل التكراري ضمنيا إلى CW<$_>. إذا كان تعبير الشرط أحد "
1110 "أنواع التعبيرات هذه أو إسنادا صريحا لأحدهما إلى قيمة قياسية، فإن الشرط يختبر "
1111 "في الواقع تعريف قيمة التعبير، وليس قيمته الصحيحة العادية."
1112
1113 #. type: Plain text
1114 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1115 #: opensuse-leap-16-1 opensuse-tumbleweed
1116 msgid ""
1117 "If there is a CW<\\*(C`continue\\*(C'> BLOCK, it is always executed just "
1118 "before the conditional is about to be evaluated again. Thus it can be used "
1119 "to increment a loop variable, even when the loop has been continued via the "
1120 "CW<\\*(C`next\\*(C'> statement."
1121 msgstr ""
1122 "إذا كان هناك CW<\\*(C`continue\\*(C'> BLOCK، فإنه يُنفذ دائما قبل تقييم الشرط "
1123 "مرة أخرى مباشرة. وبالتالي يمكن استخدامه لزيادة متغير الحلقة، حتى عندما تستمر "
1124 "الحلقة عبر عبارة CW<\\*(C`next\\*(C'>."
1125
1126 #. type: Plain text
1127 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1128 #: opensuse-leap-16-1 opensuse-tumbleweed
1129 msgid ""
1130 "When a block is preceded by a compilation phase keyword such as "
1131 "CW<\\*(C`BEGIN\\*(C'>, \\&CW<\\*(C`END\\*(C'>, CW<\\*(C`INIT\\*(C'>, "
1132 "CW<\\*(C`CHECK\\*(C'>, or CW<\\*(C`UNITCHECK\\*(C'>, then the block will run "
1133 "only during the corresponding phase of execution. See perlmod for more "
1134 "details."
1135 msgstr ""
1136 "عندما تُسبق الكتلة بكلمة مفتاحية لمرحلة التصريف مثل CW<\\*(C`BEGIN\\*(C'>، أو "
1137 "\\&CW<\\*(C`END\\*(C'>، أو CW<\\*(C`INIT\\*(C'>، أو CW<\\*(C`CHECK\\*(C'>، "
1138 "أو CW<\\*(C`UNITCHECK\\*(C'>، فستعمل الكتلة فقط خلال مرحلة التنفيذ المقابلة. "
1139 "راجع perlmod لمزيد من التفاصيل."
1140
1141 #. type: Plain text
1142 #: debian-trixie debian-unstable
1143 msgid ""
1144 "Extension modules can also hook into the Perl parser to define new kinds of "
1145 "compound statements. These are introduced by a keyword which the extension "
1146 "recognizes, and the syntax following the keyword is defined entirely by the "
1147 "extension. If you are an implementor, see \"PL_keyword_plugin\" in perlapi "
1148 "for the mechanism. If you are using such a module, see the module's "
1149 "documentation for details of the syntax that it defines."
1150 msgstr ""
1151 "يمكن لوحدات التوسعة أيضًا ربط نفسها بمحلل بيرل لتحديد أنواع جديدة من العبارات "
1152 "المركبة. تُقدم بواسطة كلمة مفتاحية تتعرف عليها التوسعة، وتُعرف الصياغة التي "
1153 "تلي الكلمة المفتاحية بالكامل بواسطة التوسعة. إذا كنت منفذا، فراجع "
1154 "\"PL_keyword_plugin\" في perlapi لمعرفة الآلية. إذا كنت تستخدم مثل هذه "
1155 "الوحدة، فراجع توثيق الوحدة للحصول على تفاصيل الصياغة التي تحددها."
1156
1157 #. type: IX
1158 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1159 #: opensuse-leap-16-1 opensuse-tumbleweed
1160 #, no-wrap
1161 msgid "Loop Control"
1162 msgstr "التحكم في الحلقة"
1163
1164 #. type: IX
1165 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1166 #: opensuse-leap-16-1 opensuse-tumbleweed
1167 #, no-wrap
1168 msgid "loop control loop, control next last redo continue"
1169 msgstr "تحكم الحلقة، تحكم next last redo continue"
1170
1171 #. type: Plain text
1172 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1173 #: opensuse-leap-16-1 opensuse-tumbleweed
1174 msgid "The CW<\\*(C`next\\*(C'> command starts the next iteration of the loop:"
1175 msgstr "يبدأ أمر CW<\\*(C`next\\*(C'> التكرار التالي للحلقة:"
1176
1177 #. type: Plain text
1178 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1179 #: opensuse-leap-16-1 opensuse-tumbleweed
1180 #, no-wrap
1181 msgid ""
1182 "\\& LINE: while (E<lt>STDINE<gt>) {\n"
1183 "\\& next LINE if /^#/; # discard comments\n"
1184 "\\& ...\n"
1185 "\\& }\n"
1186 msgstr ""
1187 "\\& LINE: while (E<lt>STDINE<gt>) {\n"
1188 "\\& next LINE if /^#/; # تجاهل الملاحظات\n"
1189 "\\& ...\n"
1190 "\\& }\n"
1191
1192 #. type: Plain text
1193 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1194 #: opensuse-leap-16-1 opensuse-tumbleweed
1195 msgid ""
1196 "The CW<\\*(C`last\\*(C'> command immediately exits the loop in question. "
1197 "The \\&CW<\\*(C`continue\\*(C'> block, if any, is not executed:"
1198 msgstr ""
1199 "يخرج أمر CW<\\*(C`last\\*(C'> فورا من الحلقة المعنية. ولا تُنفذ كتلة "
1200 "\\&CW<\\*(C`continue\\*(C'>، إن وجدت:"
1201
1202 #. type: Plain text
1203 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1204 #: opensuse-leap-16-1 opensuse-tumbleweed
1205 #, no-wrap
1206 msgid ""
1207 "\\& LINE: while (E<lt>STDINE<gt>) {\n"
1208 "\\& last LINE if /^$/; # exit when done with header\n"
1209 "\\& ...\n"
1210 "\\& }\n"
1211 msgstr ""
1212 "\\& LINE: while (E<lt>STDINE<gt>) {\n"
1213 "\\& last LINE if /^$/; # اخرج عند الانتهاء من الترويسة\n"
1214 "\\& ...\n"
1215 "\\& }\n"
1216
1217 #. type: Plain text
1218 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1219 #: opensuse-leap-16-1 opensuse-tumbleweed
1220 msgid ""
1221 "The CW<\\*(C`redo\\*(C'> command restarts the loop block without evaluating "
1222 "the conditional again. The CW<\\*(C`continue\\*(C'> block, if any, is "
1223 "I<not> executed. This command is normally used by programs that want to lie "
1224 "to themselves about what was just input."
1225 msgstr ""
1226 "يعيد أمر CW<\\*(C`redo\\*(C'> تشغيل كتلة الحلقة دون تقييم الشرط مرة أخرى. "
1227 "I<ولا> تُنفذ كتلة CW<\\*(C`continue\\*(C'>، إن وجدت. يُستخدم هذا الأمر عادة من "
1228 "قبل البرامج التي تريد الكذب على نفسها بشأن ما أُدخل للتو."
1229
1230 #. type: Plain text
1231 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1232 #: opensuse-leap-16-1 opensuse-tumbleweed
1233 msgid ""
1234 "For example, when processing a file like I</etc/termcap>. If your input "
1235 "lines might end in backslashes to indicate continuation, you want to skip "
1236 "ahead and get the next record."
1237 msgstr ""
1238 "على سبيل المثال، عند معالجة ملف مثل I</etc/termcap>. إذا كانت خطوط الإدخال "
1239 "الخاصة بك قد تنتهي بصلات مائلة خلفية للإشارة إلى الاستمرار، فأنت تريد القفز "
1240 "للأمام والحصول على السجل التالي."
1241
1242 #. type: Plain text
1243 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1244 #: opensuse-leap-16-1 opensuse-tumbleweed
1245 #, no-wrap
1246 msgid ""
1247 "\\& while (E<lt>E<gt>) {\n"
1248 "\\& chomp;\n"
1249 "\\& if (s/\\e\\e$//) {\n"
1250 "\\& $_ .= E<lt>E<gt>;\n"
1251 "\\& redo unless eof();\n"
1252 "\\& }\n"
1253 "\\& # now process $_\n"
1254 "\\& }\n"
1255 msgstr ""
1256 "\\& while (E<lt>E<gt>) {\n"
1257 "\\& chomp;\n"
1258 "\\& if (s/\\e\\e$//) {\n"
1259 "\\& $_ .= E<lt>E<gt>;\n"
1260 "\\& redo unless eof();\n"
1261 "\\& }\n"
1262 "\\& # عالج $_ الآن\n"
1263 "\\& }\n"
1264
1265 #. type: Plain text
1266 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1267 #: opensuse-leap-16-1 opensuse-tumbleweed
1268 msgid "which is Perl shorthand for the more explicitly written version:"
1269 msgstr "وهو اختصار بيرل للنسخة المكتوبة بشكل أكثر صراحة:"
1270
1271 #. type: Plain text
1272 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1273 #: opensuse-leap-16-1 opensuse-tumbleweed
1274 #, no-wrap
1275 msgid ""
1276 "\\& LINE: while (defined($line = E<lt>ARGVE<gt>)) {\n"
1277 "\\& chomp($line);\n"
1278 "\\& if ($line =~ s/\\e\\e$//) {\n"
1279 "\\& $line .= E<lt>ARGVE<gt>;\n"
1280 "\\& redo LINE unless eof(); # not eof(ARGV)!\n"
1281 "\\& }\n"
1282 "\\& # now process $line\n"
1283 "\\& }\n"
1284 msgstr ""
1285 "\\& LINE: while (defined($line = E<lt>ARGVE<gt>)) {\n"
1286 "\\& chomp($line);\n"
1287 "\\& if ($line =~ s/\\e\\e$//) {\n"
1288 "\\& $line .= E<lt>ARGVE<gt>;\n"
1289 "\\& redo LINE unless eof(); # ليس eof(ARGV)!\n"
1290 "\\& }\n"
1291 "\\& # عالج $line الآن\n"
1292 "\\& }\n"
1293
1294 #. type: Plain text
1295 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1296 #: opensuse-leap-16-1 opensuse-tumbleweed
1297 msgid ""
1298 "Note that if there were a CW<\\*(C`continue\\*(C'> block on the above code, "
1299 "it would get executed only on lines discarded by the regex (since redo skips "
1300 "the continue block). A continue block is often used to reset line counters "
1301 "or CW<\\*(C`m?pat?\\*(C'> one-time matches:"
1302 msgstr ""
1303 "لاحظ أنه لو كانت هناك كتلة CW<\\*(C`continue\\*(C'> في الكود أعلاه، فستُنفذ "
1304 "فقط على الأسطر التي تم تجاهلها بواسطة التعبير النمطي (بما أن redo يتخطى كتلة "
1305 "التكملة). غالبا ما تُستخدم كتلة التكملة لإعادة ضبط عدادات الأسطر أو تطابقات "
1306 "CW<\\*(C`m?pat?\\*(C'> لمرة واحدة:"
1307
1308 #. type: Plain text
1309 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1310 #: opensuse-leap-16-1 opensuse-tumbleweed
1311 #, no-wrap
1312 msgid ""
1313 "\\& # inspired by :1,$g/fred/s//WILMA/\n"
1314 "\\& while (E<lt>E<gt>) {\n"
1315 "\\& m?(fred)? && s//WILMA $1 WILMA/;\n"
1316 "\\& m?(barney)? && s//BETTY $1 BETTY/;\n"
1317 "\\& m?(homer)? && s//MARGE $1 MARGE/;\n"
1318 "\\& } continue {\n"
1319 "\\& print \"$ARGV $.: $_\";\n"
1320 "\\& close ARGV if eof; # reset $.\n"
1321 "\\& reset if eof; # reset ?pat?\n"
1322 "\\& }\n"
1323 msgstr ""
1324 "\\& # مستوحى من :1,$g/fred/s//WILMA/\n"
1325 "\\& while (E<lt>E<gt>) {\n"
1326 "\\& m?(fred)? && s//WILMA $1 WILMA/;\n"
1327 "\\& m?(barney)? && s//BETTY $1 BETTY/;\n"
1328 "\\& m?(homer)? && s//MARGE $1 MARGE/;\n"
1329 "\\& } continue {\n"
1330 "\\& print \"$ARGV $.: $_\";\n"
1331 "\\& close ARGV if eof; # رستر $.\n"
1332 "\\& reset if eof; # رستر ?pat?\n"
1333 "\\& }\n"
1334
1335 #. type: Plain text
1336 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1337 #: opensuse-leap-16-1 opensuse-tumbleweed
1338 msgid ""
1339 "If the word CW<\\*(C`while\\*(C'> is replaced by the word "
1340 "CW<\\*(C`until\\*(C'>, the sense of the test is reversed, but the "
1341 "conditional is still tested before the first iteration."
1342 msgstr ""
1343 "إذا استُبدلت كلمة CW<\\*(C`while\\*(C'> بكلمة CW<\\*(C`until\\*(C'>، فسيُعكس "
1344 "معنى الاختبار، ولكن لا يزال يتم اختبار الشرط قبل التكرار الأول."
1345
1346 #. type: Plain text
1347 #: debian-trixie debian-unstable
1348 msgid ""
1349 "Loop control statements don't work in an CW<\\*(C`if\\*(C'> or "
1350 "CW<\\*(C`unless\\*(C'>, since they aren't loops. You can double the braces "
1351 "to make them such, though."
1352 msgstr ""
1353 "لا تعمل جمل التحكم في الحلقات داخل CW<\\*(C`if\\*(C'> أو "
1354 "CW<\\*(C`unless\\*(C'>، لأنها ليست حلقات تكرارية. ومع ذلك، يمكنك مضاعفة "
1355 "الأقواس المتعرجة لجعلها تعمل كحلقات."
1356
1357 #. type: Plain text
1358 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1359 #: opensuse-leap-16-1 opensuse-tumbleweed
1360 #, no-wrap
1361 msgid ""
1362 "\\& if (/pattern/) {{\n"
1363 "\\& last if /fred/;\n"
1364 "\\& next if /barney/; # same effect as \"last\",\n"
1365 "\\& # but doesn\\*(Aqt document as well\n"
1366 "\\& # do something here\n"
1367 "\\& }}\n"
1368 msgstr ""
1369 "\\& if (/pattern/) {{\n"
1370 "\\& last if /fred/;\n"
1371 "\\& next if /barney/; # له نفس تأثير \"last\"،\n"
1372 "\\& # لكنه لا يوفر توثيقًا جيدًا\n"
1373 "\\& # افعل شيئًا هنا\n"
1374 "\\& }}\n"
1375
1376 #. type: Plain text
1377 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1378 #: opensuse-leap-16-1 opensuse-tumbleweed
1379 msgid ""
1380 "This is caused by the fact that a block by itself acts as a loop that "
1381 "executes once, see \"Basic BLOCKs\"."
1382 msgstr ""
1383 "يعود هذا إلى حقيقة أن الكتلة (block) بحد ذاتها تعمل كحلقة تكرارية تنفذ مرة "
1384 "واحدة، انظر \"Basic BLOCKs\"."
1385
1386 #. type: Plain text
1387 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1388 #: opensuse-leap-16-1 opensuse-tumbleweed
1389 msgid ""
1390 "The form CW<\\*(C`while/if BLOCK BLOCK\\*(C'>, available in Perl 4, is no "
1391 "longer available. Replace any occurrence of CW<\\*(C`if BLOCK\\*(C'> by "
1392 "CW<\\*(C`if (do BLOCK)\\*(C'>."
1393 msgstr ""
1394 "الصيغة CW<\\*(C`while/if BLOCK BLOCK\\*(C'>، التي كانت متاحة في بيرل 4، لم "
1395 "تعد متوفرة. استبدل أي ظهور لـ CW<\\*(C`if BLOCK\\*(C'> بـ CW<\\*(C`if (do "
1396 "BLOCK)\\*(C'>."
1397
1398 #. type: IX
1399 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1400 #: opensuse-leap-16-1 opensuse-tumbleweed
1401 #, no-wrap
1402 msgid "For Loops"
1403 msgstr "حلقات For"
1404
1405 #. type: IX
1406 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1407 #: opensuse-leap-16-1 opensuse-tumbleweed
1408 #, no-wrap
1409 msgid "for foreach"
1410 msgstr "for foreach"
1411
1412 #. type: Plain text
1413 #: debian-trixie debian-unstable
1414 msgid ""
1415 "Perl's C-style CW<\\*(C`for\\*(C'> loop works like the corresponding "
1416 "CW<\\*(C`while\\*(C'> loop; that means that this:"
1417 msgstr ""
1418 "تعمل حلقة CW<\\*(C`for\\*(C'> بنمط لغة C في بيرل مثل حلقة "
1419 "CW<\\*(C`while\\*(C'> المقابلة لها؛ وهذا يعني أن هذا:"
1420
1421 #. type: Plain text
1422 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1423 #: opensuse-leap-16-1 opensuse-tumbleweed
1424 #, no-wrap
1425 msgid ""
1426 "\\& for ($i = 1; $i E<lt> 10; $i++) {\n"
1427 "\\& ...\n"
1428 "\\& }\n"
1429 msgstr ""
1430 "\\& for ($i = 1; $i E<lt> 10; $i++) {\n"
1431 "\\& ...\n"
1432 "\\& }\n"
1433
1434 #. type: Plain text
1435 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1436 #: opensuse-leap-16-1 opensuse-tumbleweed
1437 msgid "is the same as this:"
1438 msgstr "يكافئ هذا:"
1439
1440 #. type: Plain text
1441 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1442 #: opensuse-leap-16-1 opensuse-tumbleweed
1443 #, no-wrap
1444 msgid ""
1445 "\\& $i = 1;\n"
1446 "\\& while ($i E<lt> 10) {\n"
1447 "\\& ...\n"
1448 "\\& } continue {\n"
1449 "\\& $i++;\n"
1450 "\\& }\n"
1451 msgstr ""
1452 "\\& $i = 1;\n"
1453 "\\& while ($i E<lt> 10) {\n"
1454 "\\& ...\n"
1455 "\\& } continue {\n"
1456 "\\& $i++;\n"
1457 "\\& }\n"
1458
1459 #. type: Plain text
1460 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1461 #: opensuse-leap-16-1 opensuse-tumbleweed
1462 msgid ""
1463 "There is one minor difference: if variables are declared with "
1464 "CW<\\*(C`my\\*(C'> in the initialization section of the CW<\\*(C`for\\*(C'>, "
1465 "the lexical scope of those variables is exactly the CW<\\*(C`for\\*(C'> loop "
1466 "(the body of the loop and the control sections). To illustrate:"
1467 msgstr ""
1468 "هناك فرق بسيط واحد: إذا صُرّح عن المتغيرات باستخدام CW<\\*(C`my\\*(C'> في قسم "
1469 "التهيئة الخاص بـ CW<\\*(C`for\\*(C'>، فإن النطاق المعجمي (lexical scope) "
1470 "لهذه المتغيرات هو حلقة CW<\\*(C`for\\*(C'> تحديدًا (جسم الحلقة وأقسام "
1471 "التحكم). للتوضيح:"
1472
1473 #. type: Plain text
1474 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1475 #: opensuse-leap-16-1 opensuse-tumbleweed
1476 #, no-wrap
1477 msgid ""
1478 "\\& my $i = \\*(Aqsamba\\*(Aq;\n"
1479 "\\& for (my $i = 1; $i E<lt>= 4; $i++) {\n"
1480 "\\& print \"$i\\en\";\n"
1481 "\\& }\n"
1482 "\\& print \"$i\\en\";\n"
1483 msgstr ""
1484 "\\& my $i = \\*(Aqsamba\\*(Aq;\n"
1485 "\\& for (my $i = 1; $i E<lt>= 4; $i++) {\n"
1486 "\\& print \"$i\\en\";\n"
1487 "\\& }\n"
1488 "\\& print \"$i\\en\";\n"
1489
1490 #. type: Plain text
1491 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1492 #: opensuse-leap-16-1 opensuse-tumbleweed
1493 msgid "when executed, gives:"
1494 msgstr "عند التنفيذ، يعطي:"
1495
1496 #. type: Plain text
1497 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1498 #: opensuse-leap-16-1 opensuse-tumbleweed
1499 #, no-wrap
1500 msgid ""
1501 "\\& 1\n"
1502 "\\& 2\n"
1503 "\\& 3\n"
1504 "\\& 4\n"
1505 "\\& samba\n"
1506 msgstr ""
1507 "\\& 1\n"
1508 "\\& 2\n"
1509 "\\& 3\n"
1510 "\\& 4\n"
1511 "\\& samba\n"
1512
1513 #. type: Plain text
1514 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1515 #: opensuse-leap-16-1 opensuse-tumbleweed
1516 msgid ""
1517 "As a special case, if the test in the CW<\\*(C`for\\*(C'> loop (or the "
1518 "corresponding \\&CW<\\*(C`while\\*(C'> loop) is empty, it is treated as "
1519 "true. That is, both"
1520 msgstr ""
1521 "كحالة خاصة، إذا كان الاختبار في حلقة CW<\\*(C`for\\*(C'> (أو حلقة "
1522 "\\&CW<\\*(C`while\\*(C'> المقابلة) فارغًا، فإنه يُعامل كقيمة صواب. أي أن كلاً من"
1523
1524 #. type: Plain text
1525 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1526 #: opensuse-leap-16-1 opensuse-tumbleweed
1527 #, no-wrap
1528 msgid ""
1529 "\\& for (;;) {\n"
1530 "\\& ...\n"
1531 "\\& }\n"
1532 msgstr ""
1533 "\\& for (;;) {\n"
1534 "\\& ...\n"
1535 "\\& }\n"
1536
1537 #. type: Plain text
1538 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1539 #: opensuse-leap-16-1 opensuse-tumbleweed
1540 msgid "and"
1541 msgstr "و"
1542
1543 #. type: Plain text
1544 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1545 #: opensuse-leap-16-1 opensuse-tumbleweed
1546 #, no-wrap
1547 msgid ""
1548 "\\& while () {\n"
1549 "\\& ...\n"
1550 "\\& }\n"
1551 msgstr ""
1552 "\\& while () {\n"
1553 "\\& ...\n"
1554 "\\& }\n"
1555
1556 #. type: Plain text
1557 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1558 #: opensuse-leap-16-1 opensuse-tumbleweed
1559 msgid "are treated as infinite loops."
1560 msgstr "تُعاملان كحلقات لا نهائية."
1561
1562 #. type: Plain text
1563 #: debian-trixie debian-unstable
1564 msgid ""
1565 "Besides the normal array index looping, CW<\\*(C`for\\*(C'> can lend itself "
1566 "to many other interesting applications. Here's one that avoids the problem "
1567 "you get into if you explicitly test for end-of-file on an interactive file "
1568 "descriptor causing your program to appear to hang."
1569 msgstr ""
1570 "إلى جانب التكرار العادي عبر فهارس المصفوفات، يمكن لـ CW<\\*(C`for\\*(C'> أن "
1571 "تُستخدم في تطبيقات أخرى مثيرة للاهتمام. إليك أحدها الذي يتجنب المشكلة التي "
1572 "تحدث عند الاختبار الصريح لنهاية الملف (EOF) على واصف ملف تفاعلي مما يتسبب في "
1573 "ظهور البرنامج وكأنه معلق."
1574
1575 #. type: IX
1576 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1577 #: opensuse-leap-16-1 opensuse-tumbleweed
1578 #, no-wrap
1579 msgid "eof end-of-file end of file"
1580 msgstr "eof نهاية-الملف نهاية الملف"
1581
1582 #. type: Plain text
1583 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1584 #: opensuse-leap-16-1 opensuse-tumbleweed
1585 #, no-wrap
1586 msgid ""
1587 "\\& $on_a_tty = -t STDIN && -t STDOUT;\n"
1588 "\\& sub prompt { print \"yes? \" if $on_a_tty }\n"
1589 "\\& for ( prompt(); E<lt>STDINE<gt>; prompt() ) {\n"
1590 "\\& # do something\n"
1591 "\\& }\n"
1592 msgstr ""
1593 "\\& $on_a_tty = -t STDIN && -t STDOUT;\n"
1594 "\\& sub prompt { print \"yes? \" if $on_a_tty }\n"
1595 "\\& for ( prompt(); E<lt>STDINE<gt>; prompt() ) {\n"
1596 "\\& # افعل شيئًا\n"
1597 "\\& }\n"
1598
1599 #. type: Plain text
1600 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1601 #: opensuse-leap-16-1 opensuse-tumbleweed
1602 msgid ""
1603 "The condition expression of a CW<\\*(C`for\\*(C'> loop gets the same magic "
1604 "treatment of \\&CW<\\*(C`readline\\*(C'> et al that the condition expression "
1605 "of a CW<\\*(C`while\\*(C'> loop gets."
1606 msgstr ""
1607 "تحصل تعبيرات الشرط في حلقة CW<\\*(C`for\\*(C'> على نفس المعالجة السحرية لـ "
1608 "\\&CW<\\*(C`readline\\*(C'> وأمثالها التي يحصل عليها تعبير الشرط في حلقة "
1609 "CW<\\*(C`while\\*(C'>."
1610
1611 #. type: IX
1612 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1613 #: opensuse-leap-16-1 opensuse-tumbleweed
1614 #, no-wrap
1615 msgid "Foreach Loops"
1616 msgstr "حلقات Foreach"
1617
1618 #. type: Plain text
1619 #: debian-trixie debian-unstable
1620 msgid ""
1621 "The CW<\\*(C`foreach\\*(C'> loop iterates over a normal list value and sets "
1622 "the scalar variable VAR to be each element of the list in turn. If the "
1623 "variable is preceded with the keyword CW<\\*(C`my\\*(C'>, then it is "
1624 "lexically scoped, and is therefore visible only within the loop. Otherwise, "
1625 "the variable is implicitly local to the loop and regains its former value "
1626 "upon exiting the loop. If the variable was previously declared with "
1627 "CW<\\*(C`my\\*(C'>, it uses that variable instead of the global one, but "
1628 "it's still localized to the loop. This implicit localization occurs I<only> "
1629 "for non C-style loops."
1630 msgstr ""
1631 "تكرر حلقة CW<\\*(C`foreach\\*(C'> عبر قيم قائمة عادية وتضبط المتغير القياسي "
1632 "VAR ليكون كل عنصر من عناصر القائمة بالدور. إذا سُبق المتغير بالكلمة المفتاحية "
1633 "CW<\\*(C`my\\*(C'>، فإنه يكون محدود النطاق معجميًا، وبالتالي لا يظهر إلا داخل "
1634 "الحلقة. وخلاف ذلك، يكون المتغير محليًا ضمنيًا للحلقة ويستعيد قيمته السابقة عند "
1635 "الخروج منها. إذا صُرّح عن المتغير مسبقًا باستخدام CW<\\*(C`my\\*(C'>، فإنه "
1636 "يستخدم ذلك المتغير بدلاً من العالمي، لكنه يظل محصور النطاق في الحلقة. يحدث "
1637 "هذا التوطين الضمني I<فقط> في الحلقات التي لا تتبع نمط لغة C."
1638
1639 #. type: IX
1640 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1641 #: opensuse-leap-16-1 opensuse-tumbleweed
1642 #, no-wrap
1643 msgid "my local"
1644 msgstr "my local"
1645
1646 #. type: Plain text
1647 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1648 #: opensuse-leap-16-1 opensuse-tumbleweed
1649 msgid ""
1650 "The CW<\\*(C`foreach\\*(C'> keyword is actually a synonym for the "
1651 "CW<\\*(C`for\\*(C'> keyword, so you can use either. If VAR is omitted, "
1652 "CW<$_> is set to each value."
1653 msgstr ""
1654 "الكلمة المفتاحية CW<\\*(C`foreach\\*(C'> هي في الواقع مرادف للكلمة المفتاحية "
1655 "CW<\\*(C`for\\*(C'>، لذا يمكنك استخدام أيهما. إذا حُذف VAR، يُضبط CW<$_> لكل "
1656 "قيمة."
1657
1658 #. type: IX
1659 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1660 #: opensuse-leap-16-1 opensuse-tumbleweed
1661 #, no-wrap
1662 msgid "$_"
1663 msgstr "$_"
1664
1665 #. type: Plain text
1666 #: debian-trixie debian-unstable
1667 msgid ""
1668 "If any element of LIST is an lvalue, you can modify it by modifying VAR "
1669 "inside the loop. Conversely, if any element of LIST is NOT an lvalue, any "
1670 "attempt to modify that element will fail. In other words, the "
1671 "CW<\\*(C`foreach\\*(C'> loop index variable is an implicit alias for each "
1672 "item in the list that you're looping over."
1673 msgstr ""
1674 "إذا كان أي عنصر في LIST يمثل قيمة يسارية (lvalue)، يمكنك تعديله عن طريق "
1675 "تعديل VAR داخل الحلقة. وبالعكس، إذا لم يكن أي عنصر في LIST قيمة يسارية، فإن "
1676 "أي محاولة لتعديل ذلك العنصر ستفشل. بمعنى آخر، متغير فهرس حلقة "
1677 "CW<\\*(C`foreach\\*(C'> هو اسم مستعار (alias) ضمني لكل عنصر في القائمة التي "
1678 "تكرر عبرها."
1679
1680 #. type: IX
1681 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1682 #: opensuse-leap-16-1 opensuse-tumbleweed
1683 #, no-wrap
1684 msgid "alias"
1685 msgstr "alias"
1686
1687 #. type: Plain text
1688 #: debian-trixie debian-unstable
1689 msgid ""
1690 "If any part of LIST is an array, CW<\\*(C`foreach\\*(C'> will get very "
1691 "confused if you add or remove elements within the loop body, for example "
1692 "with \\&CW<\\*(C`splice\\*(C'>. So don't do that."
1693 msgstr ""
1694 "إذا كان أي جزء من LIST عبارة عن مصفوفة، فإن CW<\\*(C`foreach\\*(C'> ستصبح "
1695 "مرتبكة للغاية إذا أضفت أو أزلت عناصر داخل جسم الحلقة، على سبيل المثال "
1696 "باستخدام \\&CW<\\*(C`splice\\*(C'>. لذا لا تفعل ذلك."
1697
1698 #. type: IX
1699 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1700 #: opensuse-leap-16-1 opensuse-tumbleweed
1701 #, no-wrap
1702 msgid "splice"
1703 msgstr "splice"
1704
1705 #. type: Plain text
1706 #: debian-trixie debian-unstable
1707 msgid ""
1708 "\\&CW<\\*(C`foreach\\*(C'> probably won't do what you expect if VAR is a "
1709 "tied or other special variable. Don't do that either."
1710 msgstr ""
1711 "ربما لن تفعل \\&CW<\\*(C`foreach\\*(C'> ما تتوقعه إذا كان VAR متغيرًا مربوطًا "
1712 "(tied) أو متغيرًا خاصًا آخر. لا تفعل ذلك أيضًا."
1713
1714 #. type: Plain text
1715 #: debian-trixie debian-unstable
1716 msgid ""
1717 "As of Perl 5.22, there is an experimental variant of this loop that accepts "
1718 "a variable preceded by a backslash for VAR, in which case the items in the "
1719 "LIST must be references. The backslashed variable will become an alias to "
1720 "each referenced item in the LIST, which must be of the correct type. The "
1721 "variable needn't be a scalar in this case, and the backslash may be followed "
1722 "by CW<\\*(C`my\\*(C'>. To use this form, you must enable the "
1723 "CW<\\*(C`refaliasing\\*(C'> feature via CW<\\*(C`use feature\\*(C'>. (See "
1724 "feature. See also \"Assigning to References\" in perlref.)"
1725 msgstr ""
1726 "بدءًا من بيرل 5.22، هناك متغير تجريبي لهذه الحلقة يقبل متغيرًا مسبوقًا بشرطة "
1727 "مائلة عكسية (backslash) لـ VAR، وفي هذه الحالة يجب أن تكون العناصر في LIST "
1728 "مراجع (references). سيصبح المتغير المسبوق بشرطة مائلة عكسية اسمًا مستعارًا "
1729 "(alias) لكل عنصر مرجعي في LIST، والذي يجب أن يكون من النوع الصحيح. لا يشترط "
1730 "أن يكون المتغير قياسيًا في هذه الحالة، ويمكن أن تتبع الشرطة المائلة العكسية "
1731 "بـ CW<\\*(C`my\\*(C'>. لاستخدام هذه الصيغة، يجب تفعيل ميزة "
1732 "CW<\\*(C`refaliasing\\*(C'> عبر CW<\\*(C`use feature\\*(C'>. (انظر feature. "
1733 "انظر أيضًا \"Assigning to References\" في perlref.)"
1734
1735 #. type: Plain text
1736 #: debian-trixie debian-unstable
1737 msgid ""
1738 "As of Perl 5.36, you can iterate over multiple values at a time. You can "
1739 "only iterate with lexical scalars as the iterator variables - unlike list "
1740 "assignment, it's not possible to use CW<\\*(C`undef\\*(C'> to signify a "
1741 "value that isn't wanted. This is a limitation of the current "
1742 "implementation, and might be changed in the future."
1743 msgstr ""
1744 "بدءًا من بيرل 5.36، يمكنك التكرار عبر عدة قيم في المرة الواحدة. لا يمكنك "
1745 "التكرار إلا باستخدام متغيرات قياسية معجمية كمتغيرات تكرار - على عكس إسناد "
1746 "القوائم، ليس من الممكن استخدام CW<\\*(C`undef\\*(C'> للإشارة إلى قيمة غير "
1747 "مرغوب فيها. هذا قيد في التنفيذ الحالي، وقد يتغير في المستقبل."
1748
1749 #. type: Plain text
1750 #: debian-trixie debian-unstable
1751 msgid ""
1752 "If the size of the LIST is not an exact multiple of the number of iterator "
1753 "variables, then on the last iteration the \"excess\" iterator variables are "
1754 "aliases to CW<\\*(C`undef\\*(C'>, as if the LIST had CW<\\*(C`, undef\\*(C'> "
1755 "appended as many times as needed for its length to become an exact "
1756 "multiple. This happens whether LIST is a literal LIST or an array - ie "
1757 "arrays are not extended if their size is not a multiple of the iteration "
1758 "size, consistent with iterating an array one-at-a-time. As these padding "
1759 "elements are not lvalues, attempting to modify them will fail, consistent "
1760 "with the behaviour when iterating a list with literal "
1761 "CW<\\*(C`undef\\*(C'>s. If this is not the behaviour you desire, then "
1762 "before the loop starts either explicitly extend your array to be an exact "
1763 "multiple, or explicitly throw an exception."
1764 msgstr ""
1765 "إذا لم يكن حجم LIST مضاعفًا دقيقًا لعدد متغيرات التكرار، ففي التكرار الأخير "
1766 "ستكون متغيرات التكرار \"الزائدة\" أسماء مستعارة لـ CW<\\*(C`undef\\*(C'>، "
1767 "كما لو كان قد أُلحق بـ LIST القيمة CW<\\*(C`, undef\\*(C'> بالقدر اللازم "
1768 "ليصبح طولها مضاعفًا دقيقًا. يحدث هذا سواء كانت LIST قائمة صريحة أو مصفوفة - أي "
1769 "أن المصفوفات لا تُمدد إذا لم يكن حجمها مضاعفًا لحجم التكرار، بما يتفق مع تكرار "
1770 "المصفوفة عنصرًا بعنصر. وبما أن عناصر الحشو هذه ليست قيمًا يسارية (lvalues)، "
1771 "فإن محاولة تعديلها ستفشل، بما يتفق مع السلوك عند تكرار قائمة تحتوي على قيم "
1772 "CW<\\*(C`undef\\*(C'> صريحة. إذا لم يكن هذا هو السلوك الذي ترغب فيه، فقبل "
1773 "بدء الحلقة، إما أن تمدد مصفوفتك صراحة لتكون مضاعفًا دقيقًا، أو أن تطلق استثناءً "
1774 "صراحة."
1775
1776 #. type: Plain text
1777 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1778 #: opensuse-leap-16-1 opensuse-tumbleweed
1779 msgid "Examples:"
1780 msgstr "أمثلة:"
1781
1782 #. type: Plain text
1783 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1784 #: opensuse-leap-16-1 opensuse-tumbleweed
1785 #, no-wrap
1786 msgid ""
1787 "\\& for (@ary) { s/foo/bar/ }\n"
1788 "\\&\n"
1789 "\\& for my $elem (@elements) {\n"
1790 "\\& $elem *= 2;\n"
1791 "\\& }\n"
1792 "\\&\n"
1793 "\\& for $count (reverse(1..10), \"BOOM\") {\n"
1794 "\\& print $count, \"\\en\";\n"
1795 "\\& sleep(1);\n"
1796 "\\& }\n"
1797 "\\&\n"
1798 "\\& for (1..15) { print \"Merry Christmas\\en\"; }\n"
1799 "\\&\n"
1800 "\\& foreach $item (split(/:[\\e\\e\\en:]*/, $ENV{TERMCAP})) {\n"
1801 "\\& print \"Item: $item\\en\";\n"
1802 "\\& }\n"
1803 "\\&\n"
1804 "\\& use feature \"refaliasing\";\n"
1805 "\\& no warnings \"experimental::refaliasing\";\n"
1806 "\\& foreach \\emy %hash (@array_of_hash_references) {\n"
1807 "\\& # do something with each %hash\n"
1808 "\\& }\n"
1809 "\\&\n"
1810 "\\& foreach my ($foo, $bar, $baz) (@list) {\n"
1811 "\\& # do something three-at-a-time\n"
1812 "\\& }\n"
1813 "\\&\n"
1814 "\\& foreach my ($key, $value) (%hash) {\n"
1815 "\\& # iterate over the hash\n"
1816 "\\& # The hash is immediately copied to a flat list before the loop\n"
1817 "\\& # starts. The list contains copies of keys but aliases of values.\n"
1818 "\\& # This is the same behaviour as for $var (%hash) {...}\n"
1819 "\\& }\n"
1820 msgstr ""
1821 "\\& for (@ary) { s/foo/bar/ }\n"
1822 "\\&\n"
1823 "\\& for my $elem (@elements) {\n"
1824 "\\& $elem *= 2;\n"
1825 "\\& }\n"
1826 "\\&\n"
1827 "\\& for $count (reverse(1..10), \"BOOM\") {\n"
1828 "\\& print $count, \"\\en\";\n"
1829 "\\& sleep(1);\n"
1830 "\\& }\n"
1831 "\\&\n"
1832 "\\& for (1..15) { print \"Merry Christmas\\en\"; }\n"
1833 "\\&\n"
1834 "\\& foreach $item (split(/:[\\e\\e\\en:]*/, $ENV{TERMCAP})) {\n"
1835 "\\& print \"Item: $item\\en\";\n"
1836 "\\& }\n"
1837 "\\&\n"
1838 "\\& use feature \"refaliasing\";\n"
1839 "\\& no warnings \"experimental::refaliasing\";\n"
1840 "\\& foreach \\emy %hash (@array_of_hash_references) {\n"
1841 "\\& # افعل شيئًا مع كل %hash\n"
1842 "\\& }\n"
1843 "\\&\n"
1844 "\\& foreach my ($foo, $bar, $baz) (@list) {\n"
1845 "\\& # افعل شيئًا ثلاثة بثلاثة\n"
1846 "\\& }\n"
1847 "\\&\n"
1848 "\\& foreach my ($key, $value) (%hash) {\n"
1849 "\\& # التكرار عبر الهاش\n"
1850 "\\& # يُنسخ الهاش فورًا إلى قائمة مسطحة قبل بدء الحلقة.\n"
1851 "\\& # تحتوي القائمة على نسخ من المفاتيح ولكن أسماء مستعارة للقيم.\n"
1852 "\\& # هذا هو نفس سلوك $var (%hash) {...}\n"
1853 "\\& }\n"
1854
1855 #. type: Plain text
1856 #: debian-trixie debian-unstable
1857 msgid "Here's how a C programmer might code up a particular algorithm in Perl:"
1858 msgstr "إليك كيف قد يكتب مبرمج لغة C خوارزمية معينة في بيرل:"
1859
1860 #. type: Plain text
1861 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1862 #: opensuse-leap-16-1 opensuse-tumbleweed
1863 #, no-wrap
1864 msgid ""
1865 "\\& for (my $i = 0; $i E<lt> @ary1; $i++) {\n"
1866 "\\& for (my $j = 0; $j E<lt> @ary2; $j++) {\n"
1867 "\\& if ($ary1[$i] E<gt> $ary2[$j]) {\n"
1868 "\\& last; # can\\*(Aqt go to outer :-(\n"
1869 "\\& }\n"
1870 "\\& $ary1[$i] += $ary2[$j];\n"
1871 "\\& }\n"
1872 "\\& # this is where that last takes me\n"
1873 "\\& }\n"
1874 msgstr ""
1875 "\\& for (my $i = 0; $i E<lt> @ary1; $i++) {\n"
1876 "\\& for (my $j = 0; $j E<lt> @ary2; $j++) {\n"
1877 "\\& if ($ary1[$i] E<gt> $ary2[$j]) {\n"
1878 "\\& last; # لا يمكن الذهاب للحلقة الخارجية :-(\n"
1879 "\\& }\n"
1880 "\\& $ary1[$i] += $ary2[$j];\n"
1881 "\\& }\n"
1882 "\\& # هذا هو المكان الذي يأخذني إليه last\n"
1883 "\\& }\n"
1884
1885 #. type: Plain text
1886 #: debian-trixie debian-unstable
1887 msgid ""
1888 "Whereas here's how a Perl programmer more comfortable with the idiom might "
1889 "do it:"
1890 msgstr "بينما إليك كيف قد يفعل ذلك مبرمج بيرل أكثر ارتياحًا لأسلوب اللغة:"
1891
1892 #. type: Plain text
1893 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1894 #: opensuse-leap-16-1 opensuse-tumbleweed
1895 #, no-wrap
1896 msgid ""
1897 "\\& OUTER: for my $wid (@ary1) {\n"
1898 "\\& INNER: for my $jet (@ary2) {\n"
1899 "\\& next OUTER if $wid E<gt> $jet;\n"
1900 "\\& $wid += $jet;\n"
1901 "\\& }\n"
1902 "\\& }\n"
1903 msgstr ""
1904 "\\& OUTER: for my $wid (@ary1) {\n"
1905 "\\& INNER: for my $jet (@ary2) {\n"
1906 "\\& next OUTER if $wid E<gt> $jet;\n"
1907 "\\& $wid += $jet;\n"
1908 "\\& }\n"
1909 "\\& }\n"
1910
1911 #. type: Plain text
1912 #: debian-trixie debian-unstable
1913 msgid ""
1914 "See how much easier this is? It's cleaner, safer, and faster. It's cleaner "
1915 "because it's less noisy. It's safer because if code gets added between the "
1916 "inner and outer loops later on, the new code won't be accidentally "
1917 "executed. The CW<\\*(C`next\\*(C'> explicitly iterates the other loop "
1918 "rather than merely terminating the inner one. And it's faster because Perl "
1919 "executes a CW<\\*(C`foreach\\*(C'> statement more rapidly than it would the "
1920 "equivalent C-style CW<\\*(C`for\\*(C'> loop."
1921 msgstr ""
1922 "انظر كم هذا أسهل؟ إنه أنظف، وأكثر أمانًا، وأسرع. إنه أنظف لأنه أقل تعقيدًا. "
1923 "وأكثر أمانًا لأنه إذا أُضيف كود بين الحلقتين الداخلية والخارجية لاحقًا، فلن "
1924 "يُنفذ الكود الجديد عن طريق الخطأ. إن CW<\\*(C`next\\*(C'> تكرر بوضوح الحلقة "
1925 "الأخرى بدلاً من مجرد إنهاء الحلقة الداخلية. وهو أسرع لأن بيرل تنفذ جملة "
1926 "CW<\\*(C`foreach\\*(C'> بسرعة أكبر مما تنفذ به حلقة CW<\\*(C`for\\*(C'> "
1927 "المكافئة بنمط C."
1928
1929 #. type: Plain text
1930 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1931 #: opensuse-leap-16-1 opensuse-tumbleweed
1932 msgid ""
1933 "Perceptive Perl hackers may have noticed that a CW<\\*(C`for\\*(C'> loop has "
1934 "a return value, and that this value can be captured by wrapping the loop in "
1935 "a CW<\\*(C`do\\*(C'> block. The reward for this discovery is this "
1936 "cautionary advice: The return value of a CW<\\*(C`for\\*(C'> loop is "
1937 "unspecified and may change without notice. Do not rely on it."
1938 msgstr ""
1939 "ربما لاحظ مخترقو بيرل النبيهون أن حلقة CW<\\*(C`for\\*(C'> لها قيمة إرجاع، "
1940 "وأنه يمكن التقاط هذه القيمة عن طريق تغليف الحلقة في كتلة CW<\\*(C`do\\*(C'>. "
1941 "المكافأة على هذا الاكتشاف هي هذه النصيحة التحذيرية: قيمة إرجاع حلقة "
1942 "CW<\\*(C`for\\*(C'> غير محددة وقد تتغير دون إشعار. لا تعتمد عليها."
1943
1944 #. type: IX
1945 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1946 #: opensuse-leap-16-1 opensuse-tumbleweed
1947 #, no-wrap
1948 msgid "Try Catch Exception Handling"
1949 msgstr "معالجة الاستثناءات Try Catch"
1950
1951 #. type: IX
1952 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1953 #: opensuse-leap-16-1 opensuse-tumbleweed
1954 #, no-wrap
1955 msgid "try catch finally"
1956 msgstr "try catch finally"
1957
1958 #. type: Plain text
1959 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1960 #: opensuse-leap-16-1 opensuse-tumbleweed
1961 msgid ""
1962 "The CW<\\*(C`try\\*(C'>/CW<\\*(C`catch\\*(C'> syntax provides control flow "
1963 "relating to exception handling. The CW<\\*(C`try\\*(C'> keyword introduces a "
1964 "block which will be executed when it is encountered, and the "
1965 "CW<\\*(C`catch\\*(C'> block provides code to handle any exception that may "
1966 "be thrown by the first."
1967 msgstr ""
1968 "توفر صيغة CW<\\*(C`try\\*(C'>/CW<\\*(C`catch\\*(C'> تدفق تحكم يتعلق بمعالجة "
1969 "الاستثناءات. تقدم الكلمة المفتاحية CW<\\*(C`try\\*(C'> كتلة ستُنفذ عند "
1970 "مواجهتها، وتوفر كتلة CW<\\*(C`catch\\*(C'> كودًا لمعالجة أي استثناء قد يُطلق "
1971 "من الكتلة الأولى."
1972
1973 #. type: Plain text
1974 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1975 #: opensuse-leap-16-1 opensuse-tumbleweed
1976 msgid ""
1977 "This syntax must first be enabled with CW<\\*(C`use feature "
1978 "\\*(Aqtry\\*(Aq\\*(C'>."
1979 msgstr ""
1980 "يجب تفعيل هذه الصيغة أولاً باستخدام CW<\\*(C`use feature "
1981 "\\*(Aqtry\\*(Aq\\*(C'>."
1982
1983 #. type: Plain text
1984 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1985 #: opensuse-leap-16-1 opensuse-tumbleweed
1986 #, no-wrap
1987 msgid ""
1988 "\\& use feature \\*(Aqtry\\*(Aq;\n"
1989 "\\&\n"
1990 "\\& try {\n"
1991 "\\& my $x = call_a_function();\n"
1992 "\\& $x E<lt> 100 or die \"Too big\";\n"
1993 "\\& send_output($x);\n"
1994 "\\& }\n"
1995 "\\& catch ($e) {\n"
1996 "\\& warn \"Unable to output a value; $e\";\n"
1997 "\\& }\n"
1998 "\\& print \"Finished\\en\";\n"
1999 msgstr ""
2000 "\\& use feature \\*(Aqtry\\*(Aq;\n"
2001 "\\&\n"
2002 "\\& try {\n"
2003 "\\& my $x = call_a_function();\n"
2004 "\\& $x E<lt> 100 or die \"Too big\";\n"
2005 "\\& send_output($x);\n"
2006 "\\& }\n"
2007 "\\& catch ($e) {\n"
2008 "\\& warn \"Unable to output a value; $e\";\n"
2009 "\\& }\n"
2010 "\\& print \"Finished\\en\";\n"
2011
2012 #. type: Plain text
2013 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2014 #: opensuse-leap-16-1 opensuse-tumbleweed
2015 msgid ""
2016 "Here, the body of the CW<\\*(C`catch\\*(C'> block (i.e. the "
2017 "CW<\\*(C`warn\\*(C'> statement) will be executed if the initial block "
2018 "invokes the conditional CW<\\*(C`die\\*(C'>, or if either of the functions "
2019 "it invokes throws an uncaught exception. The CW<\\*(C`catch\\*(C'> block can "
2020 "inspect the CW<$e> lexical variable in this case to see what the exception "
2021 "was. If no exception was thrown then the CW<\\*(C`catch\\*(C'> block does "
2022 "not happen. In either case, execution will then continue from the following "
2023 "statement - in this example the CW<\\*(C`print\\*(C'>."
2024 msgstr ""
2025 "هنا، سيُنفذ جسم كتلة CW<\\*(C`catch\\*(C'> (أي جملة CW<\\*(C`warn\\*(C'>) إذا "
2026 "استدعت الكتلة الأولية جملة CW<\\*(C`die\\*(C'> الشرطية، أو إذا أطلقت أي من "
2027 "الدوال التي تستدعيها استثناءً غير ملتقط. يمكن لكتلة CW<\\*(C`catch\\*(C'> فحص "
2028 "المتغير المعجمي CW<$e> في هذه الحالة لمعرفة ماهية الاستثناء. إذا لم يُطلق أي "
2029 "استثناء، فلن تُنفذ كتلة CW<\\*(C`catch\\*(C'>. وفي كلتا الحالتين، سيستمر "
2030 "التنفيذ من الجملة التالية - في هذا المثال جملة CW<\\*(C`print\\*(C'>."
2031
2032 #. type: Plain text
2033 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2034 #: opensuse-leap-16-1 opensuse-tumbleweed
2035 msgid ""
2036 "The CW<\\*(C`catch\\*(C'> keyword must be immediately followed by a variable "
2037 "declaration in parentheses, which introduces a new variable visible to the "
2038 "body of the subsequent block. Inside the block this variable will contain "
2039 "the exception value that was thrown by the code in the CW<\\*(C`try\\*(C'> "
2040 "block. It is not necessary to use the CW<\\*(C`my\\*(C'> keyword to declare "
2041 "this variable; this is implied (similar as it is for subroutine signatures)."
2042 msgstr ""
2043 "يجب أن تتبع الكلمة المفتاحية CW<\\*(C`catch\\*(C'> مباشرة بتصريح عن متغير "
2044 "بين قوسين، مما يقدم متغيرًا جديدًا مرئيًا لجسم الكتلة اللاحقة. داخل الكتلة، "
2045 "سيحتوي هذا المتغير على قيمة الاستثناء التي أُطلقت بواسطة الكود في كتلة "
2046 "CW<\\*(C`try\\*(C'>. ليس من الضروري استخدام الكلمة المفتاحية "
2047 "CW<\\*(C`my\\*(C'> للتصريح عن هذا المتغير؛ فهذا أمر ضمني (بشكل مشابه لتواقيع "
2048 "الدوال الفرعية)."
2049
2050 #. type: Plain text
2051 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2052 #: opensuse-leap-16-1 opensuse-tumbleweed
2053 msgid ""
2054 "Both the CW<\\*(C`try\\*(C'> and the CW<\\*(C`catch\\*(C'> blocks are "
2055 "permitted to contain control-flow expressions, such as "
2056 "CW<\\*(C`return\\*(C'>, CW<\\*(C`goto\\*(C'>, or CW<\\*(C`next\\*(C'>/"
2057 "CW<\\*(C`last\\*(C'>/CW<\\*(C`redo\\*(C'>. In all cases they behave as "
2058 "expected without warnings. In particular, a CW<\\*(C`return\\*(C'> "
2059 "expression inside the CW<\\*(C`try\\*(C'> block will make its entire "
2060 "containing function return - this is in contrast to its behaviour inside an "
2061 "CW<\\*(C`eval\\*(C'> block, where it would only make that block return."
2062 msgstr ""
2063 "يُسمح لكل من كتلتي CW<\\*(C`try\\*(C'> و CW<\\*(C`catch\\*(C'> باحتواء "
2064 "تعبيرات تدفق التحكم، مثل CW<\\*(C`return\\*(C'>، أو CW<\\*(C`goto\\*(C'>، أو "
2065 "CW<\\*(C`next\\*(C'>/CW<\\*(C`last\\*(C'>/CW<\\*(C`redo\\*(C'>. وفي جميع "
2066 "الحالات ستعمل كما هو متوقع دون تحذيرات. وبوجه خاص، فإن تعبير "
2067 "CW<\\*(C`return\\*(C'> داخل كتلة CW<\\*(C`try\\*(C'> سيجعل الدالة المحتوية "
2068 "له بالكامل تعود (return) - وهذا على عكس سلوكه داخل كتلة "
2069 "CW<\\*(C`eval\\*(C'>، حيث سيجعل تلك الكتلة فقط تعود."
2070
2071 #. type: Plain text
2072 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2073 #: opensuse-leap-16-1 opensuse-tumbleweed
2074 msgid ""
2075 "Like other control-flow syntax, CW<\\*(C`try\\*(C'> and "
2076 "CW<\\*(C`catch\\*(C'> will yield the last evaluated value when placed as the "
2077 "final statement in a function or a CW<\\*(C`do\\*(C'> block. This permits "
2078 "the syntax to be used to create a value. In this case remember not to use "
2079 "the CW<\\*(C`return\\*(C'> expression, or that will cause the containing "
2080 "function to return."
2081 msgstr ""
2082 "مثل صيغ تدفق التحكم الأخرى، ستنتج CW<\\*(C`try\\*(C'> و "
2083 "CW<\\*(C`catch\\*(C'> آخر قيمة قُيمت عند وضعها كجملة أخيرة في دالة أو كتلة "
2084 "CW<\\*(C`do\\*(C'>. وهذا يسمح باستخدام هذه الصيغة لإنشاء قيمة. في هذه الحالة "
2085 "تذكر عدم استخدام تعبير CW<\\*(C`return\\*(C'>، وإلا سيؤدي ذلك إلى عودة "
2086 "الدالة المحتوية."
2087
2088 #. type: Plain text
2089 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2090 #: opensuse-leap-16-1 opensuse-tumbleweed
2091 #, no-wrap
2092 msgid ""
2093 "\\& my $value = do {\n"
2094 "\\& try {\n"
2095 "\\& get_thing(@args);\n"
2096 "\\& }\n"
2097 "\\& catch ($e) {\n"
2098 "\\& warn \"Unable to get thing - $e\";\n"
2099 "\\& $DEFAULT_THING;\n"
2100 "\\& }\n"
2101 "\\& };\n"
2102 msgstr ""
2103 "\\& my $value = do {\n"
2104 "\\& try {\n"
2105 "\\& get_thing(@args);\n"
2106 "\\& }\n"
2107 "\\& catch ($e) {\n"
2108 "\\& warn \"Unable to get thing - $e\";\n"
2109 "\\& $DEFAULT_THING;\n"
2110 "\\& }\n"
2111 "\\& };\n"
2112
2113 #. type: Plain text
2114 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2115 #: opensuse-leap-16-1 opensuse-tumbleweed
2116 msgid ""
2117 "As with other control-flow syntax, CW<\\*(C`try\\*(C'> blocks are not "
2118 "visible to \\&CW<caller()> (just as for example, CW<\\*(C`while\\*(C'> or "
2119 "CW<\\*(C`foreach\\*(C'> loops are not). Successive levels of the "
2120 "CW<\\*(C`caller\\*(C'> result can see subroutine calls and "
2121 "\\&CW<\\*(C`eval\\*(C'> blocks, because those affect the way that "
2122 "CW<\\*(C`return\\*(C'> would work. Since \\&CW<\\*(C`try\\*(C'> blocks do "
2123 "not intercept CW<\\*(C`return\\*(C'>, they are not of interest to "
2124 "\\&CW<\\*(C`caller\\*(C'>."
2125 msgstr ""
2126 "كما هو الحال مع صيغ تدفق التحكم الأخرى، لا تظهر كتل CW<\\*(C`try\\*(C'> لـ "
2127 "\\&CW<caller()> (تمامًا كما لا تظهر حلقات CW<\\*(C`while\\*(C'> أو "
2128 "CW<\\*(C`foreach\\*(C'> على سبيل المثال). يمكن للمستويات المتتالية من نتيجة "
2129 "\\&CW<caller()> رؤية استدعاءات الدوال الفرعية وكتل \\&CW<\\*(C`eval\\*(C'>، "
2130 "لأن تلك تؤثر على الطريقة التي تعمل بها CW<\\*(C`return\\*(C'>. وبما أن كتل "
2131 "\\&CW<\\*(C`try\\*(C'> لا تعترض CW<\\*(C`return\\*(C'>، فهي ليست ذات أهمية "
2132 "للمستدعي \\&CW<caller()>."
2133
2134 #. type: Plain text
2135 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2136 #: opensuse-leap-16-1 opensuse-tumbleweed
2137 msgid ""
2138 "The CW<\\*(C`try\\*(C'> and CW<\\*(C`catch\\*(C'> blocks may optionally be "
2139 "followed by a third block introduced by the CW<\\*(C`finally\\*(C'> keyword. "
2140 "This third block is executed after the rest of the construct has finished."
2141 msgstr ""
2142 "يمكن اختياريًا أن تتبع كتلتي CW<\\*(C`try\\*(C'> و CW<\\*(C`catch\\*(C'> "
2143 "بكتلة ثالثة تقدمها الكلمة المفتاحية CW<\\*(C`finally\\*(C'>. تُنفذ هذه الكتلة "
2144 "الثالثة بعد انتهاء بقية البنية."
2145
2146 #. type: Plain text
2147 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2148 #: opensuse-leap-16-1 opensuse-tumbleweed
2149 #, no-wrap
2150 msgid ""
2151 "\\& try {\n"
2152 "\\& call_a_function();\n"
2153 "\\& }\n"
2154 "\\& catch ($e) {\n"
2155 "\\& warn \"Unable to call; $e\";\n"
2156 "\\& }\n"
2157 "\\& finally {\n"
2158 "\\& print \"Finished\\en\";\n"
2159 "\\& }\n"
2160 msgstr ""
2161 "\\& try {\n"
2162 "\\& call_a_function();\n"
2163 "\\& }\n"
2164 "\\& catch ($e) {\n"
2165 "\\& warn \"Unable to call; $e\";\n"
2166 "\\& }\n"
2167 "\\& finally {\n"
2168 "\\& print \"Finished\\en\";\n"
2169 "\\& }\n"
2170
2171 #. type: Plain text
2172 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2173 #: opensuse-leap-16-1 opensuse-tumbleweed
2174 msgid ""
2175 "The CW<\\*(C`finally\\*(C'> block is equivalent to using a "
2176 "CW<\\*(C`defer\\*(C'> block and will be invoked in the same situations; "
2177 "whether the CW<\\*(C`try\\*(C'> block completes successfully, throws an "
2178 "exception, or transfers control elsewhere by using "
2179 "\\&CW<\\*(C`return\\*(C'>, a loop control, or CW<\\*(C`goto\\*(C'>."
2180 msgstr ""
2181 "كتلة CW<\\*(C`finally\\*(C'> مكافئة لاستخدام كتلة CW<\\*(C`defer\\*(C'> "
2182 "وستُستدعى في نفس المواقف؛ سواء اكتملت كتلة CW<\\*(C`try\\*(C'> بنجاح، أو "
2183 "أطلقت استثناءً، أو نقلت التحكم إلى مكان آخر باستخدام "
2184 "\\&CW<\\*(C`return\\*(C'>، أو أداة تحكم في الحلقة، أو CW<\\*(C`goto\\*(C'>."
2185
2186 #. type: Plain text
2187 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2188 #: opensuse-leap-16-1 opensuse-tumbleweed
2189 msgid ""
2190 "Unlike the CW<\\*(C`try\\*(C'> and CW<\\*(C`catch\\*(C'> blocks, a "
2191 "CW<\\*(C`finally\\*(C'> block is not permitted to \\&CW<\\*(C`return\\*(C'>, "
2192 "CW<\\*(C`goto\\*(C'> or use any loop controls. The final expression value is "
2193 "ignored, and does not affect the return value of the containing function "
2194 "even if it is placed last in the function."
2195 msgstr ""
2196 "على عكس كتلتي CW<\\*(C`try\\*(C'> و CW<\\*(C`catch\\*(C'>، لا يُسمح لكتلة "
2197 "CW<\\*(C`finally\\*(C'> بـ \\&CW<\\*(C`return\\*(C'> أو CW<\\*(C`goto\\*(C'> "
2198 "أو استخدام أي أدوات تحكم في الحلقات. تُتجاهل قيمة التعبير النهائي، ولا تؤثر "
2199 "على قيمة إرجاع الدالة المحتوية حتى لو وُضعت في نهاية الدالة."
2200
2201 #. type: Plain text
2202 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2203 #: opensuse-leap-16-1 opensuse-tumbleweed
2204 msgid ""
2205 "Use of this CW<\\*(C`finally\\*(C'> block syntax is currently experimental "
2206 "and will emit a warning in the CW<\\*(C`experimental::try\\*(C'> category."
2207 msgstr ""
2208 "استخدام صيغة كتلة CW<\\*(C`finally\\*(C'> هذه تجريبي حاليًا وسيصدر تحذيرًا في "
2209 "فئة CW<\\*(C`experimental::try\\*(C'>."
2210
2211 #. type: IX
2212 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2213 #: opensuse-leap-16-1 opensuse-tumbleweed
2214 #, no-wrap
2215 msgid "Basic BLOCKs"
2216 msgstr "الكتل (BLOCKs) الأساسية"
2217
2218 #. type: IX
2219 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2220 #: opensuse-leap-16-1 opensuse-tumbleweed
2221 #, no-wrap
2222 msgid "block"
2223 msgstr "كتلة"
2224
2225 #. type: Plain text
2226 #: debian-trixie debian-unstable
2227 msgid ""
2228 "A BLOCK by itself (labeled or not) is semantically equivalent to a loop that "
2229 "executes once. Thus you can use any of the loop control statements in it to "
2230 "leave or restart the block. (Note that this is \\&I<NOT> true in "
2231 "CW<\\*(C`eval{}\\*(C'>, CW<\\*(C`sub{}\\*(C'>, or contrary to popular belief "
2232 "\\&CW<\\*(C`do{}\\*(C'> blocks, which do I<NOT> count as loops.) The "
2233 "CW<\\*(C`continue\\*(C'> block is optional."
2234 msgstr ""
2235 "الكتلة (BLOCK) بحد ذاتها (سواء كانت موسومة أم لا) مكافئة دلاليًا لحلقة تُنفذ "
2236 "مرة واحدة. وبالتالي يمكنك استخدام أي من جمل التحكم في الحلقات فيها لمغادرة "
2237 "الكتلة أو إعادة تشغيلها. (لاحظ أن هذا \\&I<ليس> صحيحًا في "
2238 "CW<\\*(C`eval{}\\*(C'>، أو CW<\\*(C`sub{}\\*(C'>، أو كتل "
2239 "\\&CW<\\*(C`do{}\\*(C'> -خلافًا للاعتقاد الشائع- والتي لا تُعد حلقات). كتلة "
2240 "CW<\\*(C`continue\\*(C'> اختيارية."
2241
2242 #. type: Plain text
2243 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2244 #: opensuse-leap-16-1 opensuse-tumbleweed
2245 msgid "The BLOCK construct can be used to emulate case structures."
2246 msgstr "يمكن استخدام بنية BLOCK لمحاكاة بنيات الاختيار (case structures)."
2247
2248 #. type: Plain text
2249 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2250 #: opensuse-leap-16-1 opensuse-tumbleweed
2251 #, no-wrap
2252 msgid ""
2253 "\\& SWITCH: {\n"
2254 "\\& if (/^abc/) { $abc = 1; last SWITCH; }\n"
2255 "\\& if (/^def/) { $def = 1; last SWITCH; }\n"
2256 "\\& if (/^xyz/) { $xyz = 1; last SWITCH; }\n"
2257 "\\& $nothing = 1;\n"
2258 "\\& }\n"
2259 msgstr ""
2260 "\\& SWITCH: {\n"
2261 "\\& if (/^abc/) { $abc = 1; last SWITCH; }\n"
2262 "\\& if (/^def/) { $def = 1; last SWITCH; }\n"
2263 "\\& if (/^xyz/) { $xyz = 1; last SWITCH; }\n"
2264 "\\& $nothing = 1;\n"
2265 "\\& }\n"
2266
2267 #. type: Plain text
2268 #: debian-trixie debian-unstable
2269 msgid ""
2270 "You'll also find that CW<\\*(C`foreach\\*(C'> loop used to create a "
2271 "topicalizer and a switch:"
2272 msgstr ""
2273 "ستجد أيضًا أن حلقة CW<\\*(C`foreach\\*(C'> تُستخدم لإنشاء موضوعي (topicalizer) "
2274 "ومبدل (switch):"
2275
2276 #. type: Plain text
2277 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2278 #: opensuse-leap-16-1 opensuse-tumbleweed
2279 #, no-wrap
2280 msgid ""
2281 "\\& SWITCH:\n"
2282 "\\& for ($var) {\n"
2283 "\\& if (/^abc/) { $abc = 1; last SWITCH; }\n"
2284 "\\& if (/^def/) { $def = 1; last SWITCH; }\n"
2285 "\\& if (/^xyz/) { $xyz = 1; last SWITCH; }\n"
2286 "\\& $nothing = 1;\n"
2287 "\\& }\n"
2288 msgstr ""
2289 "\\& SWITCH:\n"
2290 "\\& for ($var) {\n"
2291 "\\& if (/^abc/) { $abc = 1; last SWITCH; }\n"
2292 "\\& if (/^def/) { $def = 1; last SWITCH; }\n"
2293 "\\& if (/^xyz/) { $xyz = 1; last SWITCH; }\n"
2294 "\\& $nothing = 1;\n"
2295 "\\& }\n"
2296
2297 #. type: Plain text
2298 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2299 #: opensuse-leap-16-1 opensuse-tumbleweed
2300 msgid ""
2301 "Such constructs are quite frequently used, both because older versions of "
2302 "Perl had no official CW<\\*(C`switch\\*(C'> statement, and also because the "
2303 "new version described immediately below remains experimental and can "
2304 "sometimes be confusing."
2305 msgstr ""
2306 "تُستخدم مثل هذه البنيات بشكل متكرر، لأن الإصدارات القديمة من بيرل لم تكن "
2307 "تحتوي على جملة CW<\\*(C`switch\\*(C'> رسمية، وأيضًا لأن الإصدار الجديد "
2308 "الموصوف أدناه مباشرة لا يزال تجريبيًا ويمكن أن يكون مربكًا أحيانًا."
2309
2310 #. type: IX
2311 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2312 #: opensuse-leap-16-1 opensuse-tumbleweed
2313 #, no-wrap
2314 msgid "defer blocks"
2315 msgstr "كتل defer"
2316
2317 #. type: IX
2318 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2319 #: opensuse-leap-16-1 opensuse-tumbleweed
2320 #, no-wrap
2321 msgid "defer"
2322 msgstr "defer"
2323
2324 #. type: Plain text
2325 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2326 #: opensuse-leap-16-1 opensuse-tumbleweed
2327 msgid ""
2328 "A block prefixed by the CW<\\*(C`defer\\*(C'> modifier provides a section of "
2329 "code which runs at a later time during scope exit."
2330 msgstr ""
2331 "توفر الكتلة المسبوقة بالمعدل CW<\\*(C`defer\\*(C'> قسمًا من الكود الذي يعمل "
2332 "في وقت لاحق أثناء الخروج من النطاق."
2333
2334 #. type: Plain text
2335 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2336 #: opensuse-leap-16-1 opensuse-tumbleweed
2337 msgid ""
2338 "A CW<\\*(C`defer\\*(C'> block can appear at any point where a regular block "
2339 "or other statement is permitted. If the flow of execution reaches this "
2340 "statement, the body of the block is stored for later, but not invoked "
2341 "immediately. When the flow of control leaves the containing block for any "
2342 "reason, this stored block is executed on the way past. It provides a means "
2343 "of deferring execution until a later time. This acts similarly to syntax "
2344 "provided by some other languages, often using keywords named CW<\\*(C`try / "
2345 "finally\\*(C'>."
2346 msgstr ""
2347 "يمكن أن تظهر كتلة CW<\\*(C`defer\\*(C'> في أي نقطة يُسمح فيها بكتلة عادية أو "
2348 "جملة أخرى. إذا وصل تدفق التنفيذ إلى هذه الجملة، يُخزن جسم الكتلة لوقت لاحق، "
2349 "ولكن لا تُستدعى فورًا. عندما يغادر تدفق التحكم الكتلة المحتوية لأي سبب، تُنفذ "
2350 "هذه الكتلة المخزنة أثناء الخروج. إنها توفر وسيلة لتأجيل التنفيذ حتى وقت "
2351 "لاحق. هذا يعمل بشكل مشابه للصيغ التي توفرها بعض اللغات الأخرى، وغالبًا ما "
2352 "تستخدم كلمات مفتاحية تسمى CW<\\*(C`try / finally\\*(C'>."
2353
2354 #. type: Plain text
2355 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2356 #: opensuse-leap-16-1 opensuse-tumbleweed
2357 msgid ""
2358 "This syntax is available since Perl 5.36 if enabled by the "
2359 "CW<\\*(C`defer\\*(C'> named feature, and is currently experimental. If "
2360 "experimental warnings are enabled it will emit a warning when used."
2361 msgstr ""
2362 "هذه الصيغة متاحة منذ بيرل 5.36 إذا فُعلت بواسطة ميزة CW<\\*(C`defer\\*(C'> "
2363 "المسماة، وهي تجريبية حاليًا. إذا فُعلت التحذيرات التجريبية، فسيصدر تحذير عند "
2364 "استخدامها."
2365
2366 #. type: Plain text
2367 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2368 #: opensuse-leap-16-1 opensuse-tumbleweed
2369 #, no-wrap
2370 msgid ""
2371 "\\& use feature \\*(Aqdefer\\*(Aq;\n"
2372 "\\&\n"
2373 "\\& {\n"
2374 "\\& say \"This happens first\";\n"
2375 "\\& defer { say \"This happens last\"; }\n"
2376 "\\&\n"
2377 "\\& say \"And this happens inbetween\";\n"
2378 "\\& }\n"
2379 msgstr ""
2380 "\\& use feature \\*(Aqdefer\\*(Aq;\n"
2381 "\\&\n"
2382 "\\& {\n"
2383 "\\& say \"يحدث هذا أولاً\";\n"
2384 "\\& defer { say \"يحدث هذا آخراً\"; }\n"
2385 "\\&\n"
2386 "\\& say \"وهذا يحدث بينهما\";\n"
2387 "\\& }\n"
2388
2389 #. type: Plain text
2390 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2391 #: opensuse-leap-16-1 opensuse-tumbleweed
2392 msgid ""
2393 "If multiple CW<\\*(C`defer\\*(C'> blocks are contained in a single scope, "
2394 "they are executed in LIFO order; the last one reached is the first one "
2395 "executed."
2396 msgstr ""
2397 "إذا كانت هناك عدة كتل CW<\\*(C`defer\\*(C'> محتواه في نطاق واحد، فإنها تُنفذ "
2398 "بترتيب LIFO (آخر من يدخل يخرج أولاً)؛ أي أن آخر كتلة وُصل إليها هي أول كتلة "
2399 "تُنفذ."
2400
2401 #. type: Plain text
2402 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2403 #: opensuse-leap-16-1 opensuse-tumbleweed
2404 msgid ""
2405 "The code stored by the CW<\\*(C`defer\\*(C'> block will be invoked when "
2406 "control leaves its containing block due to regular fallthrough, explicit "
2407 "CW<\\*(C`return\\*(C'>, exceptions thrown by CW<\\*(C`die\\*(C'> or "
2408 "propagated by functions called by it, CW<\\*(C`goto\\*(C'>, or any of the "
2409 "loop control statements CW<\\*(C`next\\*(C'>, CW<\\*(C`last\\*(C'> or "
2410 "CW<\\*(C`redo\\*(C'>."
2411 msgstr ""
2412 "يُستدعى الكود المخزن بواسطة كتلة CW<\\*(C`defer\\*(C'> عندما يغادر التحكم "
2413 "الكتلة المحتوية له بسبب المرور العادي، أو CW<\\*(C`return\\*(C'> صريح، أو "
2414 "استثناءات أُطلقت بواسطة CW<\\*(C`die\\*(C'> أو نُشرت بواسطة الدوال التي "
2415 "تستدعيها، أو CW<\\*(C`goto\\*(C'>، أو أي من جمل التحكم في الحلقات "
2416 "CW<\\*(C`next\\*(C'>، أو CW<\\*(C`last\\*(C'>، أو CW<\\*(C`redo\\*(C'>."
2417
2418 #. type: Plain text
2419 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2420 #: opensuse-leap-16-1 opensuse-tumbleweed
2421 msgid ""
2422 "If the flow of control does not reach the CW<\\*(C`defer\\*(C'> statement "
2423 "itself then its body is not stored for later execution. (This is in direct "
2424 "contrast to the code provided by an CW<\\*(C`END\\*(C'> phaser block, which "
2425 "is always enqueued by the compiler, regardless of whether execution ever "
2426 "reached the line it was given on.)"
2427 msgstr ""
2428 "إذا لم يصل تدفق التحكم إلى جملة CW<\\*(C`defer\\*(C'> نفسها، فلن يُخزن جسمها "
2429 "للتنفيذ اللاحق. (هذا في تضاد مباشر مع الكود الذي توفره كتلة "
2430 "\\&CW<\\*(C`END\\*(C'>، والتي يضعها المترجم دائمًا في الطابور، بغض النظر عما "
2431 "إذا كان التنفيذ قد وصل إلى السطر الذي وردت فيه أم لا)."
2432
2433 #. type: Plain text
2434 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2435 #: opensuse-leap-16-1 opensuse-tumbleweed
2436 #, no-wrap
2437 msgid ""
2438 "\\& use feature \\*(Aqdefer\\*(Aq;\n"
2439 "\\&\n"
2440 "\\& {\n"
2441 "\\& defer { say \"This will run\"; }\n"
2442 "\\& return;\n"
2443 "\\& defer { say \"This will not\"; }\n"
2444 "\\& }\n"
2445 msgstr ""
2446 "\\& use feature \\*(Aqdefer\\*(Aq;\n"
2447 "\\&\n"
2448 "\\& {\n"
2449 "\\& defer { say \"هذا سيعمل\"; }\n"
2450 "\\& return;\n"
2451 "\\& defer { say \"هذا لن يعمل\"; }\n"
2452 "\\& }\n"
2453
2454 #. type: Plain text
2455 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2456 #: opensuse-leap-16-1 opensuse-tumbleweed
2457 msgid ""
2458 "Exceptions thrown by code inside a CW<\\*(C`defer\\*(C'> block will "
2459 "propagate to the caller in the same way as any other exception thrown by "
2460 "normal code."
2461 msgstr ""
2462 "الاستثناءات التي يُطلقها الكود داخل كتلة CW<\\*(C`defer\\*(C'> ستنتشر إلى "
2463 "المستدعي بنفس الطريقة التي ينتشر بها أي استثناء آخر يطلقه الكود العادي."
2464
2465 #. type: Plain text
2466 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2467 #: opensuse-leap-16-1 opensuse-tumbleweed
2468 msgid ""
2469 "If the CW<\\*(C`defer\\*(C'> block is being executed due to a thrown "
2470 "exception and throws another one it is not specified what happens, beyond "
2471 "that the caller will definitely receive an exception."
2472 msgstr ""
2473 "إذا كُتلة CW<\\*(C`defer\\*(C'> تُنفَّذ بسبب استثناء أُطلق وأطلقت هي نفسها "
2474 "استثناءً آخر، فلا يوجد سلوك محدد لما سيحدث، عدا أن المستدعي سيتلقى حتماً "
2475 "استثناءً."
2476
2477 #. type: Plain text
2478 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2479 #: opensuse-leap-16-1 opensuse-tumbleweed
2480 msgid ""
2481 "Besides throwing an exception, a CW<\\*(C`defer\\*(C'> block is not "
2482 "permitted to otherwise alter the control flow of its surrounding code. In "
2483 "particular, it may not cause its containing function to "
2484 "CW<\\*(C`return\\*(C'>, nor may it CW<\\*(C`goto\\*(C'> a label, or control "
2485 "a containing loop using CW<\\*(C`next\\*(C'>, CW<\\*(C`last\\*(C'> or "
2486 "CW<\\*(C`redo\\*(C'>. These constructions are however, permitted entirely "
2487 "within the body of the \\&CW<\\*(C`defer\\*(C'>."
2488 msgstr ""
2489 "إلى جانب إطلاق استثناء، لا يُسمح لكتلة CW<\\*(C`defer\\*(C'> بتغيير تدفق "
2490 "التحكم في الكود المحيط بها بأي شكل آخر. وبوجه خاص، لا يجوز لها التسبب في "
2491 "CW<\\*(C`return\\*(C'> للدالة المحتوية لها، ولا يجوز لها عمل "
2492 "CW<\\*(C`goto\\*(C'> لوسم، أو التحكم في حلقة محتوية باستخدام "
2493 "CW<\\*(C`next\\*(C'>، أو CW<\\*(C`last\\*(C'>، أو CW<\\*(C`redo\\*(C'>. ومع "
2494 "ذلك، فإن هذه البنيات مسموح بها تمامًا داخل جسم \\&CW<\\*(C`defer\\*(C'> نفسه."
2495
2496 #. type: Plain text
2497 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2498 #: opensuse-leap-16-1 opensuse-tumbleweed
2499 #, no-wrap
2500 msgid ""
2501 "\\& use feature \\*(Aqdefer\\*(Aq;\n"
2502 "\\&\n"
2503 "\\& {\n"
2504 "\\& defer {\n"
2505 "\\& foreach ( 1 .. 5 ) {\n"
2506 "\\& last if $_ == 3; # this is permitted\n"
2507 "\\& }\n"
2508 "\\& }\n"
2509 "\\& }\n"
2510 "\\&\n"
2511 "\\& {\n"
2512 "\\& foreach ( 6 .. 10 ) {\n"
2513 "\\& defer {\n"
2514 "\\& last if $_ == 8; # this is not\n"
2515 "\\& }\n"
2516 "\\& }\n"
2517 "\\& }\n"
2518 msgstr ""
2519 "\\& use feature \\*(Aqdefer\\*(Aq;\n"
2520 "\\&\n"
2521 "\\& {\n"
2522 "\\& defer {\n"
2523 "\\& foreach ( 1 .. 5 ) {\n"
2524 "\\& last if $_ == 3; # هذا مسموح به\n"
2525 "\\& }\n"
2526 "\\& }\n"
2527 "\\& }\n"
2528 "\\&\n"
2529 "\\& {\n"
2530 "\\& foreach ( 6 .. 10 ) {\n"
2531 "\\& defer {\n"
2532 "\\& last if $_ == 8; # هذا غير مسموح به\n"
2533 "\\& }\n"
2534 "\\& }\n"
2535 "\\& }\n"
2536
2537 #. type: IX
2538 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2539 #: opensuse-leap-16-1 opensuse-tumbleweed
2540 #, no-wrap
2541 msgid "Switch Statements"
2542 msgstr "جمل Switch"
2543
2544 #. type: IX
2545 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2546 #: opensuse-leap-16-1 opensuse-tumbleweed
2547 #, no-wrap
2548 msgid "switch case given when default"
2549 msgstr "switch case given when default"
2550
2551 #. type: Plain text
2552 #: debian-trixie debian-unstable
2553 msgid ""
2554 "Starting from Perl 5.10.1 (well, 5.10.0, but it didn't work right), you can "
2555 "say"
2556 msgstr ""
2557 "بدءًا من بيرل 5.10.1 (في الواقع 5.10.0، لكنها لم تكن تعمل بشكل صحيح)، يمكنك "
2558 "قول"
2559
2560 #. type: Plain text
2561 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2562 #: opensuse-leap-16-1 opensuse-tumbleweed
2563 #, no-wrap
2564 msgid "\\& use feature \"switch\";\n"
2565 msgstr "\\& use feature \"switch\";\n"
2566
2567 #. type: Plain text
2568 #: debian-trixie debian-unstable
2569 msgid ""
2570 "to enable an experimental switch feature. This is loosely based on an old "
2571 "version of a Raku proposal, but it no longer resembles the Raku construct. "
2572 "You also get the switch feature whenever you declare that your code prefers "
2573 "to run under a version of Perl between 5.10 and 5.34. For example:"
2574 msgstr ""
2575 "لتفعيل ميزة switch تجريبية. تعتمد هذه الميزة بشكل فضفاض على نسخة قديمة من "
2576 "مقترح Raku، لكنها لم تعد تشبه بنية Raku. ستحصل أيضًا على ميزة switch كلما "
2577 "صرحت بأن الكود الخاص بك يفضل العمل تحت إصدار من بيرل بين 5.10 و 5.34. على "
2578 "سبيل المثال:"
2579
2580 #. type: Plain text
2581 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2582 #: opensuse-leap-16-1 opensuse-tumbleweed
2583 #, no-wrap
2584 msgid "\\& use v5.14;\n"
2585 msgstr "\\& use v5.14;\n"
2586
2587 #. type: Plain text
2588 #: debian-trixie debian-unstable
2589 msgid ""
2590 "Under the \"switch\" feature, Perl gains the experimental keywords "
2591 "\\&CW<\\*(C`given\\*(C'>, CW<\\*(C`when\\*(C'>, CW<\\*(C`default\\*(C'>, "
2592 "CW<\\*(C`continue\\*(C'>, and CW<\\*(C`break\\*(C'>. Starting from Perl "
2593 "5.16, one can prefix the switch keywords with CW<\\*(C`CORE::\\*(C'> to "
2594 "access the feature without a CW<\\*(C`use feature\\*(C'> statement. The "
2595 "keywords CW<\\*(C`given\\*(C'> and \\&CW<\\*(C`when\\*(C'> are analogous to "
2596 "CW<\\*(C`switch\\*(C'> and \\&CW<\\*(C`case\\*(C'> in other languages -- "
2597 "though CW<\\*(C`continue\\*(C'> is not -- so the code in the previous "
2598 "section could be rewritten as"
2599 msgstr ""
2600 "تحت ميزة \"switch\"، تكتسب بيرل الكلمات المفتاحية التجريبية "
2601 "\\&CW<\\*(C`given\\*(C'>، و CW<\\*(C`when\\*(C'>، و CW<\\*(C`default\\*(C'>، "
2602 "و CW<\\*(C`continue\\*(C'>، و CW<\\*(C`break\\*(C'>. بدءًا من بيرل 5.16، يمكن "
2603 "للمرء أن يسبق كلمات switch المفتاحية بـ CW<\\*(C`CORE::\\*(C'> للوصول إلى "
2604 "الميزة دون جملة CW<\\*(C`use feature\\*(C'>. الكلمتان المفتاحيتان "
2605 "CW<\\*(C`given\\*(C'> و \\&CW<\\*(C`when\\*(C'> تشبهان "
2606 "CW<\\*(C`switch\\*(C'> و \\&CW<\\*(C`case\\*(C'> في اللغات الأخرى -- رغم أن "
2607 "CW<\\*(C`continue\\*(C'> ليست كذلك -- لذا يمكن إعادة كتابة الكود في القسم "
2608 "السابق كـ"
2609
2610 #. type: Plain text
2611 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2612 #: opensuse-leap-16-1 opensuse-tumbleweed
2613 #, no-wrap
2614 msgid ""
2615 "\\& use v5.10.1;\n"
2616 "\\& for ($var) {\n"
2617 "\\& when (/^abc/) { $abc = 1 }\n"
2618 "\\& when (/^def/) { $def = 1 }\n"
2619 "\\& when (/^xyz/) { $xyz = 1 }\n"
2620 "\\& default { $nothing = 1 }\n"
2621 "\\& }\n"
2622 msgstr ""
2623 "\\& use v5.10.1;\n"
2624 "\\& for ($var) {\n"
2625 "\\& when (/^abc/) { $abc = 1 }\n"
2626 "\\& when (/^def/) { $def = 1 }\n"
2627 "\\& when (/^xyz/) { $xyz = 1 }\n"
2628 "\\& default { $nothing = 1 }\n"
2629 "\\& }\n"
2630
2631 #. type: Plain text
2632 #: debian-trixie debian-unstable
2633 msgid ""
2634 "The CW<\\*(C`foreach\\*(C'> is the non-experimental way to set a "
2635 "topicalizer. If you wish to use the highly experimental "
2636 "CW<\\*(C`given\\*(C'>, that could be written like this:"
2637 msgstr ""
2638 "تعتبر CW<\\*(C`foreach\\*(C'> هي الطريقة غير التجريبية لضبط الموضوعي "
2639 "(topicalizer). إذا كنت ترغب في استخدام CW<\\*(C`given\\*(C'> التجريبية "
2640 "للغاية، فيمكن كتابتها بهذا الشكل:"
2641
2642 #. type: Plain text
2643 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2644 #: opensuse-leap-16-1 opensuse-tumbleweed
2645 #, no-wrap
2646 msgid ""
2647 "\\& use v5.10.1;\n"
2648 "\\& given ($var) {\n"
2649 "\\& when (/^abc/) { $abc = 1 }\n"
2650 "\\& when (/^def/) { $def = 1 }\n"
2651 "\\& when (/^xyz/) { $xyz = 1 }\n"
2652 "\\& default { $nothing = 1 }\n"
2653 "\\& }\n"
2654 msgstr ""
2655 "\\& use v5.10.1;\n"
2656 "\\& given ($var) {\n"
2657 "\\& when (/^abc/) { $abc = 1 }\n"
2658 "\\& when (/^def/) { $def = 1 }\n"
2659 "\\& when (/^xyz/) { $xyz = 1 }\n"
2660 "\\& default { $nothing = 1 }\n"
2661 "\\& }\n"
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 "As of 5.14, that can also be written this way:"
2667 msgstr "اعتبارًا من 5.14، يمكن أيضًا كتابة ذلك بهذه الطريقة:"
2668
2669 #. type: Plain text
2670 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2671 #: opensuse-leap-16-1 opensuse-tumbleweed
2672 #, no-wrap
2673 msgid ""
2674 "\\& use v5.14;\n"
2675 "\\& for ($var) {\n"
2676 "\\& $abc = 1 when /^abc/;\n"
2677 "\\& $def = 1 when /^def/;\n"
2678 "\\& $xyz = 1 when /^xyz/;\n"
2679 "\\& default { $nothing = 1 }\n"
2680 "\\& }\n"
2681 msgstr ""
2682 "\\& use v5.14;\n"
2683 "\\& for ($var) {\n"
2684 "\\& $abc = 1 when /^abc/;\n"
2685 "\\& $def = 1 when /^def/;\n"
2686 "\\& $xyz = 1 when /^xyz/;\n"
2687 "\\& default { $nothing = 1 }\n"
2688 "\\& }\n"
2689
2690 #. type: Plain text
2691 #: debian-trixie debian-unstable
2692 msgid "Or if you don't care to play it safe, like this:"
2693 msgstr "أو إذا كنت لا تهتم باتباع الطريقة الآمنة، فبهذا الشكل:"
2694
2695 #. type: Plain text
2696 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2697 #: opensuse-leap-16-1 opensuse-tumbleweed
2698 #, no-wrap
2699 msgid ""
2700 "\\& use v5.14;\n"
2701 "\\& given ($var) {\n"
2702 "\\& $abc = 1 when /^abc/;\n"
2703 "\\& $def = 1 when /^def/;\n"
2704 "\\& $xyz = 1 when /^xyz/;\n"
2705 "\\& default { $nothing = 1 }\n"
2706 "\\& }\n"
2707 msgstr ""
2708 "\\& use v5.14;\n"
2709 "\\& given ($var) {\n"
2710 "\\& $abc = 1 when /^abc/;\n"
2711 "\\& $def = 1 when /^def/;\n"
2712 "\\& $xyz = 1 when /^xyz/;\n"
2713 "\\& default { $nothing = 1 }\n"
2714 "\\& }\n"
2715
2716 #. type: Plain text
2717 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2718 #: opensuse-leap-16-1 opensuse-tumbleweed
2719 msgid ""
2720 "The arguments to CW<\\*(C`given\\*(C'> and CW<\\*(C`when\\*(C'> are in "
2721 "scalar context, and CW<\\*(C`given\\*(C'> assigns the CW<$_> variable its "
2722 "topic value."
2723 msgstr ""
2724 "تكون معاملات CW<\\*(C`given\\*(C'> و CW<\\*(C`when\\*(C'> في سياق قياسي، "
2725 "وتقوم CW<\\*(C`given\\*(C'> بإسناد قيمة الموضوع لمتغير CW<$_>."
2726
2727 #. type: Plain text
2728 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2729 #: opensuse-leap-16-1 opensuse-tumbleweed
2730 msgid ""
2731 "Exactly what the I<EXPR> argument to CW<\\*(C`when\\*(C'> does is hard to "
2732 "describe precisely, but in general, it tries to guess what you want done. "
2733 "Sometimes it is interpreted as CW<\\*(C`$_ ~~ >\\f(CIEXPRCW<\\*(C'>, and "
2734 "sometimes it is not. It also behaves differently when lexically enclosed by "
2735 "a CW<\\*(C`given\\*(C'> block than it does when dynamically enclosed by a "
2736 "CW<\\*(C`foreach\\*(C'> loop. The rules are far too difficult to understand "
2737 "to be described here. See \"Experimental Details on given and when\" later "
2738 "on."
2739 msgstr ""
2740 "من الصعب وصف ما يفعله معامل I<EXPR> في CW<\\*(C`when\\*(C'> بدقة، ولكن بشكل "
2741 "عام، فإنه يحاول تخمين ما تريد فعله. أحيانًا يُفسر على أنه CW<\\*(C`$_ ~~ "
2742 ">\\f(CIEXPRCW<\\*(C'>، وأحيانًا لا. كما أنه يتصرف بشكل مختلف عندما يكون محاطًا "
2743 "معجميًا بكتلة CW<\\*(C`given\\*(C'> عما يفعله عندما يكون محاطًا ديناميكيًا "
2744 "بحلقة CW<\\*(C`foreach\\*(C'>. القواعد أصعب بكثير من أن تُفهم وتوصف هنا. انظر "
2745 "\"Experimental Details on given and when\" لاحقًا."
2746
2747 #. type: Plain text
2748 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2749 #: opensuse-leap-16-1 opensuse-tumbleweed
2750 msgid ""
2751 "Due to an unfortunate bug in how CW<\\*(C`given\\*(C'> was implemented "
2752 "between Perl 5.10 and 5.16, under those implementations the version of "
2753 "CW<$_> governed by \\&CW<\\*(C`given\\*(C'> is merely a lexically scoped "
2754 "copy of the original, not a dynamically scoped alias to the original, as it "
2755 "would be if it were a \\&CW<\\*(C`foreach\\*(C'> or under both the original "
2756 "and the current Raku language specification. This bug was fixed in Perl "
2757 "5.18 (and lexicalized CW<$_> itself was removed in Perl 5.24)."
2758 msgstr ""
2759 "بسبب خطأ مؤسف في كيفية تنفيذ CW<\\*(C`given\\*(C'> بين بيرل 5.10 و 5.16، فإن "
2760 "نسخة CW<$_> المحكومة بواسطة \\&CW<\\*(C`given\\*(C'> في تلك التنفيذات هي "
2761 "مجرد نسخة ذات نطاق معجمي من الأصل، وليست اسمًا مستعارًا ذو نطاق ديناميكي "
2762 "للأصل، كما كان ينبغي أن تكون لو كانت \\&CW<\\*(C`foreach\\*(C'> أو كما هو في "
2763 "مواصفات لغة Raku الأصلية والحالية. أُصلح هذا الخطأ في بيرل 5.18 (وأُزيلت "
2764 "CW<$_> المعجمية نفسها في بيرل 5.24)."
2765
2766 #. type: Plain text
2767 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2768 #: opensuse-leap-16-1 opensuse-tumbleweed
2769 msgid ""
2770 "If your code still needs to run on older versions, stick to "
2771 "CW<\\*(C`foreach\\*(C'> for your topicalizer and you will be less unhappy."
2772 msgstr ""
2773 "إذا كان الكود الخاص بك لا يزال يحتاج للعمل على إصدارات أقدم، فالتزم بـ "
2774 "CW<\\*(C`foreach\\*(C'> كموضوعي لك وستكون أقل تعاسة."
2775
2776 #. type: IX
2777 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2778 #: opensuse-leap-16-1 opensuse-tumbleweed
2779 #, no-wrap
2780 msgid "Goto"
2781 msgstr "الانتقال (Goto)"
2782
2783 #. type: IX
2784 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2785 #: opensuse-leap-16-1 opensuse-tumbleweed
2786 #, no-wrap
2787 msgid "goto"
2788 msgstr "goto"
2789
2790 #. type: Plain text
2791 #: debian-trixie debian-unstable
2792 msgid ""
2793 "Although not for the faint of heart, Perl does support a "
2794 "CW<\\*(C`goto\\*(C'> statement. There are three forms: CW<\\*(C`goto\\*(C'>-"
2795 "LABEL, CW<\\*(C`goto\\*(C'>-EXPR, and \\&CW<\\*(C`goto\\*(C'>-&NAME. A "
2796 "loop's LABEL is not actually a valid target for a CW<\\*(C`goto\\*(C'>; it's "
2797 "just the name of the loop."
2798 msgstr ""
2799 "على الرغم من أنها ليست لضعاف القلوب، إلا أن بيرل تدعم عبارة "
2800 "CW<\\*(C`goto\\*(C'>. هناك ثلاثة أشكال: LABEL-CW<\\*(C`goto\\*(C'> و EXPR-"
2801 "CW<\\*(C`goto\\*(C'> و &NAME-CW<\\*(C`goto\\*(C'>. إن وسم (LABEL) الحلقة ليس "
2802 "في الواقع هدفاً صالحاً لعبارة CW<\\*(C`goto\\*(C'>؛ بل هو مجرد اسم للحلقة."
2803
2804 #. type: Plain text
2805 #: debian-trixie debian-unstable
2806 msgid ""
2807 "The CW<\\*(C`goto\\*(C'>-LABEL form finds the statement labeled with LABEL "
2808 "and resumes execution there. It may not be used to go into any construct "
2809 "that requires initialization, such as a subroutine or a "
2810 "CW<\\*(C`foreach\\*(C'> loop. It also can't be used to go into a construct "
2811 "that is optimized away. It can be used to go almost anywhere else within "
2812 "the dynamic scope, including out of subroutines, but it's usually better to "
2813 "use some other construct such as CW<\\*(C`last\\*(C'> or "
2814 "CW<\\*(C`die\\*(C'>. The author of Perl has never felt the need to use this "
2815 "form of CW<\\*(C`goto\\*(C'> (in Perl, that is--C is another matter)."
2816 msgstr ""
2817 "يبحث شكل LABEL-CW<\\*(C`goto\\*(C'> عن العبارة الموسومة بـ LABEL ويستأنف "
2818 "التنفيذ هناك. لا يجوز استخدامه للدخول في أي بنية تتطلب تهيئة، مثل الروتين "
2819 "الفرعي أو حلقة CW<\\*(C`foreach\\*(C'>. كما لا يمكن استخدامه للدخول في بنية "
2820 "أُزيلت عبر التحسين. يمكن استخدامه للذهاب إلى أي مكان آخر تقريباً ضمن النطاق "
2821 "الديناميكي، بما في ذلك الخروج من الروتينات الفرعية، ولكن من الأفضل عادةً "
2822 "استخدام بنية أخرى مثل CW<\\*(C`last\\*(C'> أو CW<\\*(C`die\\*(C'>. لم يشعر "
2823 "مؤلف بيرل أبداً بالحاجة إلى استخدام هذا الشكل من CW<\\*(C`goto\\*(C'> (في "
2824 "بيرل، أما في لغة C فالأمر مختلف)."
2825
2826 #. type: Plain text
2827 #: debian-trixie debian-unstable
2828 msgid ""
2829 "The CW<\\*(C`goto\\*(C'>-EXPR form expects a label name, whose scope will be "
2830 "resolved dynamically. This allows for computed CW<\\*(C`goto\\*(C'>s per "
2831 "FORTRAN, but isn't necessarily recommended if you're optimizing for "
2832 "maintainability:"
2833 msgstr ""
2834 "يتوقع شكل EXPR-CW<\\*(C`goto\\*(C'> اسم وسم، والذي سيُحل نطاقه ديناميكياً. "
2835 "يسمح هذا بعبارات CW<\\*(C`goto\\*(C'> محسوبة كما في فورتران (FORTRAN)، ولكن "
2836 "لا يُنصح به بالضرورة إذا كنت تعمل على تحسين قابلية الصيانة:"
2837
2838 #. type: Plain text
2839 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2840 #: opensuse-leap-16-1 opensuse-tumbleweed
2841 #, no-wrap
2842 msgid "\\& goto((\"FOO\", \"BAR\", \"GLARCH\")[$i]);\n"
2843 msgstr "\\& goto((\"FOO\", \"BAR\", \"GLARCH\")[$i]);\n"
2844
2845 #. type: Plain text
2846 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2847 #: opensuse-leap-16-1 opensuse-tumbleweed
2848 msgid ""
2849 "The CW<\\*(C`goto\\*(C'>-&NAME form is highly magical, and substitutes a "
2850 "call to the named subroutine for the currently running subroutine. This is "
2851 "used by \\&CW<AUTOLOAD()> subroutines that wish to load another subroutine "
2852 "and then pretend that the other subroutine had been called in the first "
2853 "place (except that any modifications to CW<@_> in the current subroutine are "
2854 "propagated to the other subroutine.) After the CW<\\*(C`goto\\*(C'>, not "
2855 "even CW<caller()> will be able to tell that this routine was called first."
2856 msgstr ""
2857 "يعد شكل &NAME-CW<\\*(C`goto\\*(C'> سحرياً للغاية، ويستبدل استدعاء الروتين "
2858 "الفرعي المسمى بالروتين الفرعي الذي يعمل حالياً. يُستخدم هذا بواسطة روتينات "
2859 "\\&CW<AUTOLOAD()> التي ترغب في تحميل روتين فرعي آخر ثم التظاهر بأن الروتين "
2860 "الآخر قد استُدعي في المقام الأول (باستثناء أن أي تعديلات على CW<@_> في "
2861 "الروتين الفرعي الحالي تُمرر إلى الروتين الفرعي الآخر). بعد "
2862 "CW<\\*(C`goto\\*(C'>، لن يتمكن حتى CW<caller()> من معرفة أن هذا الروتين قد "
2863 "استُدعي أولاً."
2864
2865 #. type: Plain text
2866 #: debian-trixie debian-unstable
2867 msgid ""
2868 "In almost all cases like this, it's usually a far, far better idea to use "
2869 "the structured control flow mechanisms of CW<\\*(C`next\\*(C'>, "
2870 "CW<\\*(C`last\\*(C'>, or CW<\\*(C`redo\\*(C'> instead of resorting to a "
2871 "CW<\\*(C`goto\\*(C'>. For certain applications, the catch and throw pair of "
2872 "\\&CW<\\*(C`eval{}\\*(C'> and B<die()> for exception processing can also be "
2873 "a prudent approach."
2874 msgstr ""
2875 "في جميع الحالات تقريباً مثل هذه، عادةً ما تكون فكرة أفضل بكثير استخدام آليات "
2876 "تدفق التحكم الهيكلية مثل CW<\\*(C`next\\*(C'> أو CW<\\*(C`last\\*(C'> أو "
2877 "CW<\\*(C`redo\\*(C'> بدلاً من اللجوء إلى CW<\\*(C`goto\\*(C'>. بالنسبة "
2878 "لتطبيقات معينة، يمكن أن يكون زوج (catch and throw) المتمثل في "
2879 "\\&CW<\\*(C`eval{}\\*(C'> و B<die()> لمعالجة الاستثناءات نهجاً حصيفاً أيضًا."
2880
2881 #. type: IX
2882 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2883 #: opensuse-leap-16-1 opensuse-tumbleweed
2884 #, no-wrap
2885 msgid "The Ellipsis Statement"
2886 msgstr "عبارة الحذف (The Ellipsis Statement)"
2887
2888 #. type: IX
2889 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2890 #: opensuse-leap-16-1 opensuse-tumbleweed
2891 #, no-wrap
2892 msgid "... ... statement ellipsis operator elliptical statement unimplemented statement unimplemented operator yada-yada yada-yada operator ... operator whatever operator triple-dot operator"
2893 msgstr "... عبارة ... عامل الحذف عبارة حذف عبارة غير منفذة عامل غير منفذ يادا-يادا عامل يادا-يادا عامل ... عامل أياً كان عامل النقاط الثلاث"
2894
2895 #. type: Plain text
2896 #: debian-trixie debian-unstable
2897 msgid ""
2898 "Beginning in Perl 5.12, Perl accepts an ellipsis, \"CW<\\*(C`...\\*(C'>\", "
2899 "as a placeholder for code that you haven't implemented yet. When Perl 5.12 "
2900 "or later encounters an ellipsis statement, it parses this without error, but "
2901 "if and when you should actually try to execute it, Perl throws an exception "
2902 "with the text CW<\\*(C`Unimplemented\\*(C'>:"
2903 msgstr ""
2904 "بدءاً من بيرل 5.12، تقبل بيرل علامة الحذف، \"CW<\\*(C`...\\*(C'>\"، كنائب عن "
2905 "الكود الذي لم تُنفذه بعد. عندما تواجه بيرل 5.12 أو إصداراً أحدث عبارة حذف، "
2906 "فإنها تحللها دون خطأ، ولكن إذا حاولت تنفيذها فعلياً، فسترمي بيرل استثناءً "
2907 "بالنص CW<\\*(C`Unimplemented\\*(C'> (غير منفذ):"
2908
2909 #. type: Plain text
2910 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2911 #: opensuse-leap-16-1 opensuse-tumbleweed
2912 #, no-wrap
2913 msgid ""
2914 "\\& use v5.12;\n"
2915 "\\& sub unimplemented { ... }\n"
2916 "\\& eval { unimplemented() };\n"
2917 "\\& if ($@ =~ /^Unimplemented at /) {\n"
2918 "\\& say \"I found an ellipsis!\";\n"
2919 "\\& }\n"
2920 msgstr ""
2921 "\\& use v5.12;\n"
2922 "\\& sub unimplemented { ... }\n"
2923 "\\& eval { unimplemented() };\n"
2924 "\\& if ($@ =~ /^Unimplemented at /) {\n"
2925 "\\& say \"I found an ellipsis!\";\n"
2926 "\\& }\n"
2927
2928 #. type: Plain text
2929 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2930 #: opensuse-leap-16-1 opensuse-tumbleweed
2931 msgid ""
2932 "You can only use the elliptical statement to stand in for a complete "
2933 "statement. Syntactically, \"CW<\\*(C`...;\\*(C'>\" is a complete statement, "
2934 "but, as with other kinds of semicolon-terminated statement, the semicolon "
2935 "may be omitted if \"CW<\\*(C`...\\*(C'>\" appears immediately before a "
2936 "closing brace. These examples show how the ellipsis works:"
2937 msgstr ""
2938 "يمكنك فقط استخدام عبارة الحذف كبديل لعبارة كاملة. من الناحية النحوية، "
2939 "\"CW<\\*(C`...;\\*(C'>\" هي عبارة كاملة، ولكن، كما هو الحال مع أنواع أخرى من "
2940 "العبارات المنتهية بفاصلة منقوطة، يجوز حذف الفاصلة المنقوطة إذا ظهرت "
2941 "\"CW<\\*(C`...\\*(C'>\" مباشرة قبل قوس الإغلاق. توضح هذه الأمثلة كيفية عمل "
2942 "علامة الحذف:"
2943
2944 #. type: Plain text
2945 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2946 #: opensuse-leap-16-1 opensuse-tumbleweed
2947 #, no-wrap
2948 msgid ""
2949 "\\& use v5.12;\n"
2950 "\\& { ... }\n"
2951 "\\& sub foo { ... }\n"
2952 "\\& ...;\n"
2953 "\\& eval { ... };\n"
2954 "\\& sub somemeth {\n"
2955 "\\& my $self = shift;\n"
2956 "\\& ...;\n"
2957 "\\& }\n"
2958 "\\& $x = do {\n"
2959 "\\& my $n;\n"
2960 "\\& ...;\n"
2961 "\\& say \"Hurrah!\";\n"
2962 "\\& $n;\n"
2963 "\\& };\n"
2964 msgstr ""
2965 "\\& use v5.12;\n"
2966 "\\& { ... }\n"
2967 "\\& sub foo { ... }\n"
2968 "\\& ...;\n"
2969 "\\& eval { ... };\n"
2970 "\\& sub somemeth {\n"
2971 "\\& my $self = shift;\n"
2972 "\\& ...;\n"
2973 "\\& }\n"
2974 "\\& $x = do {\n"
2975 "\\& my $n;\n"
2976 "\\& ...;\n"
2977 "\\& say \"Hurrah!\";\n"
2978 "\\& $n;\n"
2979 "\\& };\n"
2980
2981 #. type: Plain text
2982 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2983 #: opensuse-leap-16-1 opensuse-tumbleweed
2984 msgid ""
2985 "The elliptical statement cannot stand in for an expression that is part of a "
2986 "larger statement. These examples of attempts to use an ellipsis are syntax "
2987 "errors:"
2988 msgstr ""
2989 "لا يمكن لعبارة الحذف أن تحل محل تعبير يمثل جزءاً من عبارة أكبر. هذه الأمثلة "
2990 "لمحاولات استخدام علامة الحذف هي أخطاء نحوية:"
2991
2992 #. type: Plain text
2993 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
2994 #: opensuse-leap-16-1 opensuse-tumbleweed
2995 #, no-wrap
2996 msgid ""
2997 "\\& use v5.12;\n"
2998 "\\&\n"
2999 "\\& print ...;\n"
3000 "\\& open(my $fh, \"E<gt>\", \"/dev/passwd\") or ...;\n"
3001 "\\& if ($condition && ... ) { say \"Howdy\" };\n"
3002 "\\& ... if $x E<gt> $y;\n"
3003 "\\& say \"Cromulent\" if ...;\n"
3004 "\\& $flub = 5 + ...;\n"
3005 msgstr ""
3006 "\\& use v5.12;\n"
3007 "\\&\n"
3008 "\\& print ...;\n"
3009 "\\& open(my $fh, \"E<gt>\", \"/dev/passwd\") or ...;\n"
3010 "\\& if ($condition && ... ) { say \"Howdy\" };\n"
3011 "\\& ... if $x E<gt> $y;\n"
3012 "\\& say \"Cromulent\" if ...;\n"
3013 "\\& $flub = 5 + ...;\n"
3014
3015 #. type: Plain text
3016 #: debian-trixie debian-unstable
3017 msgid ""
3018 "There are some cases where Perl can't immediately tell the difference "
3019 "between an expression and a statement. For instance, the syntax for a block "
3020 "and an anonymous hash reference constructor look the same unless there's "
3021 "something in the braces to give Perl a hint. The ellipsis is a syntax error "
3022 "if Perl doesn't guess that the CW<\\*(C`{ ... }\\*(C'> is a block. Inside "
3023 "your block, you can use a CW<\\*(C`;\\*(C'> before the ellipsis to denote "
3024 "that the \\&CW<\\*(C`{ ... }\\*(C'> is a block and not a hash reference "
3025 "constructor."
3026 msgstr ""
3027 "هناك بعض الحالات التي لا تستطيع بيرل فيها التمييز فوراً بين التعبير والعبارة. "
3028 "على سبيل المثال، يبدو النحو الخاص بكتلة ومنشئ مرجع هاش مجهول متشابهاً ما لم "
3029 "يكن هناك شيء داخل الأقواس يعطي بيرل تلميحاً. علامة الحذف هي خطأ نحوي إذا لم "
3030 "تخمن بيرل أن CW<\\*(C`{ ... }\\*(C'> هي كتلة. داخل كتلتك، يمكنك استخدام "
3031 "CW<\\*(C`;\\*(C'> قبل علامة الحذف للإشارة إلى أن \\&CW<\\*(C`{ ... }\\*(C'> "
3032 "هي كتلة وليست منشئ مرجع هاش."
3033
3034 #. type: Plain text
3035 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3036 #: opensuse-leap-16-1 opensuse-tumbleweed
3037 msgid ""
3038 "Note: Some folks colloquially refer to this bit of punctuation as a \"yada-"
3039 "yada\" or \"triple-dot\", but its true name is actually an ellipsis."
3040 msgstr ""
3041 "ملاحظة: يشير بعض الأشخاص بالعامية إلى علامة الترقيم هذه باسم \"yada-yada\" "
3042 "أو \"النقاط الثلاث\"، ولكن اسمها الحقيقي هو في الواقع علامة حذف (ellipsis)."
3043
3044 #. type: IX
3045 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3046 #: opensuse-leap-16-1 opensuse-tumbleweed
3047 #, no-wrap
3048 msgid "PODs: Embedded Documentation"
3049 msgstr "PODs: التوثيق المضمن"
3050
3051 #. type: IX
3052 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3053 #: opensuse-leap-16-1 opensuse-tumbleweed
3054 #, no-wrap
3055 msgid "POD documentation"
3056 msgstr "توثيق POD"
3057
3058 #. type: Plain text
3059 #: debian-trixie debian-unstable
3060 msgid ""
3061 "Perl has a mechanism for intermixing documentation with source code. While "
3062 "it's expecting the beginning of a new statement, if the compiler encounters "
3063 "a line that begins with an equal sign and a word, like this"
3064 msgstr ""
3065 "تمتلك بيرل آلية لخلط التوثيق مع الكود المصدري. بينما ينتظر المترجم بداية "
3066 "عبارة جديدة، إذا واجه سطراً يبدأ بعلامة يساوي وكلمة، مثل هذا"
3067
3068 #. type: Plain text
3069 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3070 #: opensuse-leap-16-1 opensuse-tumbleweed
3071 #, no-wrap
3072 msgid "\\& =head1 Here There Be Pods!\n"
3073 msgstr "\\& =head1 Here There Be Pods!\n"
3074
3075 #. type: Plain text
3076 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3077 #: opensuse-leap-16-1 opensuse-tumbleweed
3078 msgid ""
3079 "Then that text and all remaining text up through and including a line "
3080 "beginning with CW<\\*(C`=cut\\*(C'> will be ignored. The format of the "
3081 "intervening text is described in perlpod."
3082 msgstr ""
3083 "سيُتجاهل هذا النص وكل النص المتبقي حتى السطر الذي يبدأ بـ "
3084 "CW<\\*(C`=cut\\*(C'> وما يتضمنه. يوصَف تنسيق النص المتداخل في perlpod."
3085
3086 #. type: Plain text
3087 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3088 #: opensuse-leap-16-1 opensuse-tumbleweed
3089 msgid ""
3090 "This allows you to intermix your source code and your documentation text "
3091 "freely, as in"
3092 msgstr "يسمح لك هذا بخلط الكود المصدري ونصوص التوثيق بحرية، كما في"
3093
3094 #. type: Plain text
3095 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3096 #: opensuse-leap-16-1 opensuse-tumbleweed
3097 #, no-wrap
3098 msgid ""
3099 "\\& =item snazzle($)\n"
3100 "\\&\n"
3101 "\\& The snazzle() function will behave in the most spectacular\n"
3102 "\\& form that you can possibly imagine, not even excepting\n"
3103 "\\& cybernetic pyrotechnics.\n"
3104 "\\&\n"
3105 "\\& =cut back to the compiler, nuff of this pod stuff!\n"
3106 "\\&\n"
3107 "\\& sub snazzle($) {\n"
3108 "\\& my $thingie = shift;\n"
3109 "\\& .........\n"
3110 "\\& }\n"
3111 msgstr ""
3112 "\\& =item snazzle($)\n"
3113 "\\&\n"
3114 "\\& The snazzle() function will behave in the most spectacular\n"
3115 "\\& form that you can possibly imagine, not even excepting\n"
3116 "\\& cybernetic pyrotechnics.\n"
3117 "\\&\n"
3118 "\\& =cut back to the compiler, nuff of this pod stuff!\n"
3119 "\\&\n"
3120 "\\& sub snazzle($) {\n"
3121 "\\& my $thingie = shift;\n"
3122 "\\& .........\n"
3123 "\\& }\n"
3124
3125 #. type: Plain text
3126 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3127 #: opensuse-leap-16-1 opensuse-tumbleweed
3128 msgid ""
3129 "Note that pod translators should look at only paragraphs beginning with a "
3130 "pod directive (it makes parsing easier), whereas the compiler actually knows "
3131 "to look for pod escapes even in the middle of a paragraph. This means that "
3132 "the following secret stuff will be ignored by both the compiler and the "
3133 "translators."
3134 msgstr ""
3135 "لاحظ أن مترجمي pod يجب أن ينظروا فقط إلى الفقرات التي تبدأ بتوجيه pod (هذا "
3136 "يسهل التحليل)، بينما يعرف المترجم في الواقع كيفية البحث عن مهربات pod حتى في "
3137 "منتصف الفقرة. وهذا يعني أن الأشياء السرية التالية ستُتجاهلها من قبل كل من "
3138 "المترجم والمترجمين."
3139
3140 #. type: Plain text
3141 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3142 #: opensuse-leap-16-1 opensuse-tumbleweed
3143 #, no-wrap
3144 msgid ""
3145 "\\& $x=3;\n"
3146 "\\& =secret stuff\n"
3147 "\\& warn \"Neither POD nor CODE!?\"\n"
3148 "\\& =cut back\n"
3149 "\\& print \"got $x\\en\";\n"
3150 msgstr ""
3151 "\\& $x=3;\n"
3152 "\\& =secret stuff\n"
3153 "\\& warn \"Neither POD nor CODE!?\"\n"
3154 "\\& =cut back\n"
3155 "\\& print \"got $x\\en\";\n"
3156
3157 #. type: Plain text
3158 #: debian-trixie debian-unstable
3159 msgid ""
3160 "You probably shouldn't rely upon the CW<warn()> being podded out forever. "
3161 "Not all pod translators are well-behaved in this regard, and perhaps the "
3162 "compiler will become pickier."
3163 msgstr ""
3164 "من المحتمل ألا تعتمد على بقاء CW<warn()> مخفياً كـ pod للأبد. ليست كل مترجمات "
3165 "pod حسنة السلوك في هذا الصدد، وربما يصبح المترجم أكثر صرامة."
3166
3167 #. type: Plain text
3168 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3169 #: opensuse-leap-16-1 opensuse-tumbleweed
3170 msgid ""
3171 "One may also use pod directives to quickly comment out a section of code."
3172 msgstr ""
3173 "يمكن للمرء أيضًا استخدام توجيهات pod لتحويل قسم من الكود إلى تعليق بسرعة."
3174
3175 #. type: IX
3176 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3177 #: opensuse-leap-16-1 opensuse-tumbleweed
3178 #, no-wrap
3179 msgid "Plain Old Comments (Not!)"
3180 msgstr "التعليقات العادية القديمة (ليست كذلك!)"
3181
3182 #. type: IX
3183 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3184 #: opensuse-leap-16-1 opensuse-tumbleweed
3185 #, no-wrap
3186 msgid "comment line # preprocessor eval"
3187 msgstr "سطر تعليق # معالج مسبق eval"
3188
3189 #. type: Plain text
3190 #: debian-trixie debian-unstable
3191 msgid ""
3192 "Perl can process line directives, much like the C preprocessor. Using this, "
3193 "one can control Perl's idea of filenames and line numbers in error or "
3194 "warning messages (especially for strings that are processed with "
3195 "CW<eval()>). The syntax for this mechanism is almost the same as for most C "
3196 "preprocessors: it matches the regular expression"
3197 msgstr ""
3198 "يمكن لـ بيرل معالجة توجيهات الأسطر، تماماً مثل المعالج المسبق لـ C. باستخدام "
3199 "هذا، يمكن للمرء التحكم في فكرة بيرل عن أسماء الملفات وأرقام الأسطر في رسائل "
3200 "الخطأ أو التحذير (خاصة للسلاسل التي تُعالج بـ CW<eval()>). نحو هذه الآلية هو "
3201 "نفسه تقريباً بالنسبة لمعظم معالجات C المسبقة: فهو يطابق التعبير النمطي"
3202
3203 #. type: Plain text
3204 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3205 #: opensuse-leap-16-1 opensuse-tumbleweed
3206 #, no-wrap
3207 msgid ""
3208 "\\& # example: \\*(Aq# line 42 \"new_filename.plx\"\\*(Aq\n"
3209 "\\& /^\\e# \\es*\n"
3210 "\\& line \\es+ (\\ed+) \\es*\n"
3211 "\\& (?:\\es(\"?)([^\"]+)\\eg2)? \\es*\n"
3212 "\\& $/x\n"
3213 msgstr ""
3214 "\\& # example: \\*(Aq# line 42 \"new_filename.plx\"\\*(Aq\n"
3215 "\\& /^\\e# \\es*\n"
3216 "\\& line \\es+ (\\ed+) \\es*\n"
3217 "\\& (?:\\es(\"?)([^\"]+)\\eg2)? \\es*\n"
3218 "\\& $/x\n"
3219
3220 #. type: Plain text
3221 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3222 #: opensuse-leap-16-1 opensuse-tumbleweed
3223 msgid ""
3224 "with CW<$1> being the line number for the next line, and CW<$3> being the "
3225 "optional filename (specified with or without quotes). Note that no "
3226 "whitespace may precede the CW<\\*(C`#\\*(C'>, unlike modern C preprocessors."
3227 msgstr ""
3228 "حيث يكون CW<$1> هو رقم السطر للسطر التالي، و CW<$3> هو اسم الملف الاختياري "
3229 "(محدد مع أو بدون علامات اقتباس). لاحظ أنه لا يجوز أن تسبق أي مسافة بيضاء "
3230 "علامة CW<\\*(C`#\\*(C'>، على عكس معالجات C المسبقة الحديثة."
3231
3232 #. type: Plain text
3233 #: debian-trixie debian-unstable
3234 msgid ""
3235 "There is a fairly obvious gotcha included with the line directive: Debuggers "
3236 "and profilers will only show the last source line to appear at a particular "
3237 "line number in a given file. Care should be taken not to cause line number "
3238 "collisions in code you'd like to debug later."
3239 msgstr ""
3240 "هناك عثرة واضحة إلى حد ما متضمنة في توجيه السطر: ستُظهر المصححات وأدوات "
3241 "التحليل السطر المصدري الأخير فقط الذي يظهر عند رقم سطر معين في ملف معين. يجب "
3242 "توخي الحذر لتجنب التسبب في تضارب أرقام الأسطر في الكود الذي ترغب في تنقيحه "
3243 "لاحقًا."
3244
3245 #. type: Plain text
3246 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3247 #: opensuse-leap-16-1 opensuse-tumbleweed
3248 msgid ""
3249 "Here are some examples that you should be able to type into your command "
3250 "shell:"
3251 msgstr ""
3252 "فيما يلي بعض الأمثلة التي يجب أن تكون قادراً على كتابتها في صدفة الأوامر "
3253 "الخاصة بك:"
3254
3255 #. type: Plain text
3256 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3257 #: opensuse-leap-16-1 opensuse-tumbleweed
3258 #, no-wrap
3259 msgid ""
3260 "\\& % perl\n"
3261 "\\& # line 200 \"bzzzt\"\n"
3262 "\\& # the \\*(Aq#\\*(Aq on the previous line must be the first char on line\n"
3263 "\\& die \\*(Aqfoo\\*(Aq;\n"
3264 "\\& _\\|_END_\\|_\n"
3265 "\\& foo at bzzzt line 201.\n"
3266 "\\&\n"
3267 "\\& % perl\n"
3268 "\\& # line 200 \"bzzzt\"\n"
3269 "\\& eval qq[\\en#line 2001 \"\"\\endie \\*(Aqfoo\\*(Aq]; print $@;\n"
3270 "\\& _\\|_END_\\|_\n"
3271 "\\& foo at - line 2001.\n"
3272 "\\&\n"
3273 "\\& % perl\n"
3274 "\\& eval qq[\\en#line 200 \"foo bar\"\\endie \\*(Aqfoo\\*(Aq]; print $@;\n"
3275 "\\& _\\|_END_\\|_\n"
3276 "\\& foo at foo bar line 200.\n"
3277 "\\&\n"
3278 "\\& % perl\n"
3279 "\\& # line 345 \"goop\"\n"
3280 "\\& eval \"\\en#line \" . _\\|_LINE_\\|_ . \\*(Aq \"\\*(Aq . _\\|_FILE_\\|_ .\"\\e\"\\endie \\*(Aqfoo\\*(Aq\";\n"
3281 "\\& print $@;\n"
3282 "\\& _\\|_END_\\|_\n"
3283 "\\& foo at goop line 345.\n"
3284 msgstr ""
3285 "\\& % perl\n"
3286 "\\& # line 200 \"bzzzt\"\n"
3287 "\\& # the \\*(Aq#\\*(Aq on the previous line must be the first char on line\n"
3288 "\\& die \\*(Aqfoo\\*(Aq;\n"
3289 "\\& _\\|_END_\\|_\n"
3290 "\\& foo at bzzzt line 201.\n"
3291 "\\&\n"
3292 "\\& % perl\n"
3293 "\\& # line 200 \"bzzzt\"\n"
3294 "\\& eval qq[\\en#line 2001 \"\"\\endie \\*(Aqfoo\\*(Aq]; print $@;\n"
3295 "\\& _\\|_END_\\|_\n"
3296 "\\& foo at - line 2001.\n"
3297 "\\&\n"
3298 "\\& % perl\n"
3299 "\\& eval qq[\\en#line 200 \"foo bar\"\\endie \\*(Aqfoo\\*(Aq]; print $@;\n"
3300 "\\& _\\|_END_\\|_\n"
3301 "\\& foo at foo bar line 200.\n"
3302 "\\&\n"
3303 "\\& % perl\n"
3304 "\\& # line 345 \"goop\"\n"
3305 "\\& eval \"\\en#line \" . _\\|_LINE_\\|_ . \\*(Aq \"\\*(Aq . _\\|_FILE_\\|_ .\"\\e\"\\endie \\*(Aqfoo\\*(Aq\";\n"
3306 "\\& print $@;\n"
3307 "\\& _\\|_END_\\|_\n"
3308 "\\& foo at goop line 345.\n"
3309
3310 #. type: IX
3311 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3312 #: opensuse-leap-16-1 opensuse-tumbleweed
3313 #, no-wrap
3314 msgid "Experimental Details on given and when"
3315 msgstr "تفاصيل تجريبية حول given و when"
3316
3317 #. type: Plain text
3318 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3319 #: opensuse-leap-16-1 opensuse-tumbleweed
3320 msgid ""
3321 "As previously mentioned, the \"switch\" feature is considered highly "
3322 "experimental (it is also scheduled to be removed in perl 5.42.0); it is "
3323 "subject to change with little notice. In particular, "
3324 "\\&CW<\\*(C`when\\*(C'> has tricky behaviours that are expected to change to "
3325 "become less tricky in the future. Do not rely upon its current "
3326 "(mis)implementation. Before Perl 5.18, CW<\\*(C`given\\*(C'> also had "
3327 "tricky behaviours that you should still beware of if your code must run on "
3328 "older versions of Perl."
3329 msgstr ""
3330 "كما ذُكر سابقاً، تُعتبر ميزة \"المبدل\" (switch) تجريبية للغاية (ومن المقرر "
3331 "أيضًا إزالتها في بيرل 5.42.0)؛ وهي عرضة للتغيير بإشعار ضئيل. وبشكل رئيس، "
3332 "تتميز \\&CW<\\*(C`when\\*(C'> بسلوكيات خادعة يُتوقع أن تتغير لتصبح أقل خداعاً "
3333 "في المستقبل. لا تعتمد على تنفيذها (الخاطئ) الحالي. قبل بيرل 5.18، كان لـ "
3334 "CW<\\*(C`given\\*(C'> أيضًا سلوكيات خادعة يجب أن تظل حذراً منها إذا كان الكود "
3335 "الخاص بك يجب أن يعمل على إصدارات أقدم من بيرل."
3336
3337 #. type: Plain text
3338 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3339 #: opensuse-leap-16-1 opensuse-tumbleweed
3340 msgid "Here is a longer example of CW<\\*(C`given\\*(C'>:"
3341 msgstr "فيما يلي مثال أطول لـ CW<\\*(C`given\\*(C'>:"
3342
3343 #. type: Plain text
3344 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3345 #: opensuse-leap-16-1 opensuse-tumbleweed
3346 #, no-wrap
3347 msgid ""
3348 "\\& use feature \":5.10\";\n"
3349 "\\& given ($foo) {\n"
3350 "\\& when (undef) {\n"
3351 "\\& say \\*(Aq$foo is undefined\\*(Aq;\n"
3352 "\\& }\n"
3353 "\\& when (\"foo\") {\n"
3354 "\\& say \\*(Aq$foo is the string \"foo\"\\*(Aq;\n"
3355 "\\& }\n"
3356 "\\& when ([1,3,5,7,9]) {\n"
3357 "\\& say \\*(Aq$foo is an odd digit\\*(Aq;\n"
3358 "\\& continue; # Fall through\n"
3359 "\\& }\n"
3360 "\\& when ($_ E<lt> 100) {\n"
3361 "\\& say \\*(Aq$foo is numerically less than 100\\*(Aq;\n"
3362 "\\& }\n"
3363 "\\& when (\\e&complicated_check) {\n"
3364 "\\& say \\*(Aqa complicated check for $foo is true\\*(Aq;\n"
3365 "\\& }\n"
3366 "\\& default {\n"
3367 "\\& die q(I don\\*(Aqt know what to do with $foo);\n"
3368 "\\& }\n"
3369 "\\& }\n"
3370 msgstr ""
3371 "\\& use feature \":5.10\";\n"
3372 "\\& given ($foo) {\n"
3373 "\\& when (undef) {\n"
3374 "\\& say \\*(Aq$foo is undefined\\*(Aq;\n"
3375 "\\& }\n"
3376 "\\& when (\"foo\") {\n"
3377 "\\& say \\*(Aq$foo is the string \"foo\"\\*(Aq;\n"
3378 "\\& }\n"
3379 "\\& when ([1,3,5,7,9]) {\n"
3380 "\\& say \\*(Aq$foo is an odd digit\\*(Aq;\n"
3381 "\\& continue; # Fall through\n"
3382 "\\& }\n"
3383 "\\& when ($_ E<lt> 100) {\n"
3384 "\\& say \\*(Aq$foo is numerically less than 100\\*(Aq;\n"
3385 "\\& }\n"
3386 "\\& when (\\e&complicated_check) {\n"
3387 "\\& say \\*(Aqa complicated check for $foo is true\\*(Aq;\n"
3388 "\\& }\n"
3389 "\\& default {\n"
3390 "\\& die q(I don\\*(Aqt know what to do with $foo);\n"
3391 "\\& }\n"
3392 "\\& }\n"
3393
3394 #. type: Plain text
3395 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3396 #: opensuse-leap-16-1 opensuse-tumbleweed
3397 msgid ""
3398 "Before Perl 5.18, CW<given(EXPR)> assigned the value of I<EXPR> to merely a "
3399 "lexically scoped \\f(BIcopy\\fR (!) of CW<$_>, not a dynamically scoped "
3400 "alias the way CW<\\*(C`foreach\\*(C'> does. That made it similar to"
3401 msgstr ""
3402 "قبل بيرل 5.18، كانت CW<given(EXPR)> تخصص قيمة I<EXPR> لمجرد \\f(BIنسخة\\fR "
3403 "(!) ذات نطاق معجمي من CW<$_>، وليس اسماً مستعاراً ذا نطاق ديناميكي بالطريقة "
3404 "التي تعمل بها CW<\\*(C`foreach\\*(C'>. وهذا جعلها مشابهة لـ"
3405
3406 #. type: Plain text
3407 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3408 #: opensuse-leap-16-1 opensuse-tumbleweed
3409 #, no-wrap
3410 msgid "\\& do { my $_ = EXPR; ... }\n"
3411 msgstr "\\& do { my $_ = EXPR; ... }\n"
3412
3413 #. type: Plain text
3414 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3415 #: opensuse-leap-16-1 opensuse-tumbleweed
3416 msgid ""
3417 "except that the block was automatically broken out of by a successful "
3418 "\\&CW<\\*(C`when\\*(C'> or an explicit CW<\\*(C`break\\*(C'>. Because it "
3419 "was only a copy, and because it was only lexically scoped, not dynamically "
3420 "scoped, you could not do the things with it that you are used to in a "
3421 "CW<\\*(C`foreach\\*(C'> loop. In particular, it did not work for arbitrary "
3422 "function calls if those functions might try to access CW<$_>. Best stick to "
3423 "CW<\\*(C`foreach\\*(C'> for that."
3424 msgstr ""
3425 "إلا أنه كان يُخرج من الكتلة آلياً بواسطة CW<\\*(C`when\\*(C'> ناجحة أو "
3426 "CW<\\*(C`break\\*(C'> صريحة. ونظراً لأنها كانت مجرد نسخة، ولأنها كانت ذات "
3427 "نطاق معجمي فقط، وليست ذات نطاق ديناميكي، لم يكن بإمكانك القيام بأشياء بها "
3428 "مما اعتدت عليه في حلقة CW<\\*(C`foreach\\*(C'>. وبشكل خاص، لم تكن تعمل مع "
3429 "استدعاءات الوظائف التعسفية إذا كانت تلك الوظائف قد تحاول الوصول إلى CW<$_>. "
3430 "من الأفضل الالتزام بـ CW<\\*(C`foreach\\*(C'> في تلك الحالة."
3431
3432 #. type: Plain text
3433 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3434 #: opensuse-leap-16-1 opensuse-tumbleweed
3435 msgid ""
3436 "Most of the power comes from the implicit smartmatching that can sometimes "
3437 "apply. Most of the time, CW<when(EXPR)> is treated as an implicit "
3438 "smartmatch of CW<$_>, that is, CW<\\*(C`$_ ~~ EXPR\\*(C'>. (See "
3439 "\"Smartmatch Operator\" in perlop for more information on smartmatching.) "
3440 "But when I<EXPR> is one of the 10 exceptional cases (or things like them) "
3441 "listed below, it is used directly as a boolean."
3442 msgstr ""
3443 "تأتي معظم القوة من المطابقة الذكية الضمنية التي يمكن تطبيقها أحياناً. في معظم "
3444 "الأوقات، تُعامل CW<when(EXPR)> كمطابقة ذكية ضمنية لـ CW<$_>، أي CW<\\*(C`$_ "
3445 "~~ EXPR\\*(C'>. (انظر \"Smartmatch Operator\" في perlop لمزيد من المعلومات "
3446 "حول المطابقة الذكية.) ولكن عندما يكون I<EXPR> واحداً من الحالات الاستثنائية "
3447 "العشر (أو أشياء مثلها) المدرجة أدناه، فإنه يُستخدم مباشرة كقيمة منطقية."
3448
3449 #. type: IX
3450 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3451 #: opensuse-leap-16-1 opensuse-tumbleweed
3452 #, no-wrap
3453 msgid "1."
3454 msgstr "1."
3455
3456 #. type: IX
3457 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3458 #: opensuse-leap-16-1 opensuse-tumbleweed
3459 #, no-wrap
3460 msgid "Item"
3461 msgstr "Item"
3462
3463 #. type: Plain text
3464 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3465 #: opensuse-leap-16-1 opensuse-tumbleweed
3466 msgid "A user-defined subroutine call or a method invocation."
3467 msgstr "استدعاء روتين فرعي معرف من قبل المستخدم أو استدعاء طريقة."
3468
3469 #. type: IX
3470 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3471 #: opensuse-leap-16-1 opensuse-tumbleweed
3472 #, no-wrap
3473 msgid "2."
3474 msgstr "2."
3475
3476 #. type: Plain text
3477 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3478 #: opensuse-leap-16-1 opensuse-tumbleweed
3479 msgid ""
3480 "A regular expression match in the form of CW<\\*(C`/REGEX/\\*(C'>, "
3481 "CW<\\*(C`$foo =~ /REGEX/\\*(C'>, or CW<\\*(C`$foo =~ EXPR\\*(C'>. Also, a "
3482 "negated regular expression match in the form CW<\\*(C`!/REGEX/\\*(C'>, "
3483 "CW<\\*(C`$foo !~ /REGEX/\\*(C'>, or CW<\\*(C`$foo !~ EXPR\\*(C'>."
3484 msgstr ""
3485 "مطابقة تعبير نمطي في شكل CW<\\*(C`/REGEX/\\*(C'>، أو CW<\\*(C`$foo =~ /REGEX/"
3486 "\\*(C'>، أو CW<\\*(C`$foo =~ EXPR\\*(C'>. أيضًا، مطابقة تعبير نمطي منفي في "
3487 "شكل CW<\\*(C`!/REGEX/\\*(C'>، أو CW<\\*(C`$foo !~ /REGEX/\\*(C'>، أو "
3488 "CW<\\*(C`$foo !~ EXPR\\*(C'>."
3489
3490 #. type: IX
3491 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3492 #: opensuse-leap-16-1 opensuse-tumbleweed
3493 #, no-wrap
3494 msgid "3."
3495 msgstr "3."
3496
3497 #. type: Plain text
3498 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3499 #: opensuse-leap-16-1 opensuse-tumbleweed
3500 msgid ""
3501 "A smart match that uses an explicit CW<\\*(C`~~\\*(C'> operator, such as "
3502 "CW<\\*(C`EXPR ~~ EXPR\\*(C'>."
3503 msgstr ""
3504 "مطابقة ذكية تستخدم عامل CW<\\*(C`~~\\*(C'> صريح، مثل CW<\\*(C`EXPR ~~ "
3505 "EXPR\\*(C'>."
3506
3507 #. type: Plain text
3508 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3509 #: opensuse-leap-16-1 opensuse-tumbleweed
3510 msgid ""
3511 "\\&B<NOTE:> You will often have to use CW<\\*(C`$c ~~ $_\\*(C'> because the "
3512 "default case uses CW<\\*(C`$_ ~~ $c\\*(C'> , which is frequently the "
3513 "opposite of what you want."
3514 msgstr ""
3515 "\\&B<ملاحظة:> سيتعين عليك غالباً استخدام CW<\\*(C`$c ~~ $_\\*(C'> لأن الحالة "
3516 "المبدئية تستخدم CW<\\*(C`$_ ~~ $c\\*(C'>، وهو ما يكون غالباً عكس ما تريده."
3517
3518 #. type: IX
3519 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3520 #: opensuse-leap-16-1 opensuse-tumbleweed
3521 #, no-wrap
3522 msgid "4."
3523 msgstr "4."
3524
3525 #. type: Plain text
3526 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3527 #: opensuse-leap-16-1 opensuse-tumbleweed
3528 msgid ""
3529 "A boolean comparison operator such as CW<\\*(C`$_ E<lt> 10\\*(C'> or "
3530 "CW<\\*(C`$x eq \"abc\"\\*(C'>. The relational operators that this applies "
3531 "to are the six numeric comparisons (CW<\\*(C`E<lt>\\*(C'>, "
3532 "CW<\\*(C`E<gt>\\*(C'>, CW<\\*(C`E<lt>=\\*(C'>, CW<\\*(C`E<gt>=\\*(C'>, "
3533 "CW<\\*(C`==\\*(C'>, and CW<\\*(C`!=\\*(C'>), and the six string comparisons "
3534 "(CW<\\*(C`lt\\*(C'>, CW<\\*(C`gt\\*(C'>, CW<\\*(C`le\\*(C'>, "
3535 "CW<\\*(C`ge\\*(C'>, CW<\\*(C`eq\\*(C'>, and CW<\\*(C`ne\\*(C'>)."
3536 msgstr ""
3537 "عامل مقارنة منطقي مثل CW<\\*(C`$_ E<lt> 10\\*(C'> أو CW<\\*(C`$x eq "
3538 "\"abc\"\\*(C'>. العوامل العلائقية التي ينطبق هذا عليها هي المقارنات الرقمية "
3539 "الست (CW<\\*(C`E<lt>\\*(C'>، و CW<\\*(C`E<gt>\\*(C'>، و "
3540 "CW<\\*(C`E<lt>=\\*(C'>، و CW<\\*(C`E<gt>=\\*(C'>، و CW<\\*(C`==\\*(C'>، و "
3541 "CW<\\*(C`!=\\*(C'>)، ومقارنات السلاسل الست (CW<\\*(C`lt\\*(C'>، و "
3542 "CW<\\*(C`gt\\*(C'>، و CW<\\*(C`le\\*(C'>، و CW<\\*(C`ge\\*(C'>، و "
3543 "CW<\\*(C`eq\\*(C'>، و CW<\\*(C`ne\\*(C'>)."
3544
3545 #. type: IX
3546 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3547 #: opensuse-leap-16-1 opensuse-tumbleweed
3548 #, no-wrap
3549 msgid "5."
3550 msgstr "5."
3551
3552 #. type: Plain text
3553 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3554 #: opensuse-leap-16-1 opensuse-tumbleweed
3555 msgid ""
3556 "At least the three builtin functions CW<defined(...)>, CW<exists(...)>, and "
3557 "\\&CW<eof(...)>. We might someday add more of these later if we think of "
3558 "them."
3559 msgstr ""
3560 "على الأقل الوظائف الثلاث المضمنة CW<defined(...)> و CW<exists(...)> و "
3561 "\\&CW<eof(...)>. قد نضيف المزيد منها لاحقًا يوماً ما إذا فكرنا فيها."
3562
3563 #. type: IX
3564 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3565 #: opensuse-leap-16-1 opensuse-tumbleweed
3566 #, no-wrap
3567 msgid "6."
3568 msgstr "6."
3569
3570 #. type: Plain text
3571 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3572 #: opensuse-leap-16-1 opensuse-tumbleweed
3573 msgid ""
3574 "A negated expression, whether CW<\\*(C`!(EXPR)\\*(C'> or CW<not(EXPR)>, or a "
3575 "logical exclusive-or, CW<\\*(C`(EXPR1) xor (EXPR2)\\*(C'>. The bitwise "
3576 "versions (CW<\\*(C`~\\*(C'> and CW<\\*(C`^\\*(C'>) are not included."
3577 msgstr ""
3578 "تعبير منفي، سواء كان CW<\\*(C`!(EXPR)\\*(C'> أو CW<not(EXPR)>، أو أو منطقي "
3579 "حصري (xor)، CW<\\*(C`(EXPR1) xor (EXPR2)\\*(C'>. إصدارات البتات (bitwise) "
3580 "(مثل CW<\\*(C`~\\*(C'> و CW<\\*(C`^\\*(C'>) غير مدرجة."
3581
3582 #. type: IX
3583 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3584 #: opensuse-leap-16-1 opensuse-tumbleweed
3585 #, no-wrap
3586 msgid "7."
3587 msgstr "7."
3588
3589 #. type: Plain text
3590 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3591 #: opensuse-leap-16-1 opensuse-tumbleweed
3592 msgid ""
3593 "A filetest operator, with exactly 4 exceptions: CW<\\*(C`-s\\*(C'>, "
3594 "CW<\\*(C`-M\\*(C'>, CW<\\*(C`-A\\*(C'>, and \\&CW<\\*(C`-C\\*(C'>, as these "
3595 "return numerical values, not boolean ones. The CW<\\*(C`-z\\*(C'> filetest "
3596 "operator is not included in the exception list."
3597 msgstr ""
3598 "عامل اختبار ملف، مع 4 استثناءات بالضبط: CW<\\*(C`-s\\*(C'> و CW<\\*(C`-"
3599 "M\\*(C'> و CW<\\*(C`-A\\*(C'> و \\&CW<\\*(C`-C\\*(C'>، لأن هذه تعيد قيماً "
3600 "رقمية وليست منطقية. عامل اختبار الملف CW<\\*(C`-z\\*(C'> غير مدرج في قائمة "
3601 "الاستثناءات."
3602
3603 #. type: IX
3604 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3605 #: opensuse-leap-16-1 opensuse-tumbleweed
3606 #, no-wrap
3607 msgid "8."
3608 msgstr "8."
3609
3610 #. type: Plain text
3611 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3612 #: opensuse-leap-16-1 opensuse-tumbleweed
3613 msgid ""
3614 "The CW<\\*(C`..\\*(C'> and CW<\\*(C`...\\*(C'> flip-flop operators. Note "
3615 "that the CW<\\*(C`...\\*(C'> flip-flop operator is completely different from "
3616 "the CW<\\*(C`...\\*(C'> elliptical statement just described."
3617 msgstr ""
3618 "عاملا الوثّاب (flip-flop) وهما CW<\\*(C`..\\*(C'> و CW<\\*(C`...\\*(C'>. لاحظ "
3619 "أن عامل الوثّاب CW<\\*(C`...\\*(C'> مختلف تماماً عن عبارة الحذف CW<\\*(C`..."
3620 "\\*(C'> التي وُصفت للتو."
3621
3622 #. type: Plain text
3623 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3624 #: opensuse-leap-16-1 opensuse-tumbleweed
3625 msgid ""
3626 "In those 8 cases above, the value of EXPR is used directly as a boolean, so "
3627 "no smartmatching is done. You may think of CW<\\*(C`when\\*(C'> as a "
3628 "smartsmartmatch."
3629 msgstr ""
3630 "في الحالات الثماني المذكورة أعلاه، تُستخدم قيمة EXPR مباشرة كقيمة منطقية، لذا "
3631 "لا تُجرى مطابقة ذكية. يمكنك التفكير في CW<\\*(C`when\\*(C'> على أنها مطابقة "
3632 "ذكية ذكية (smartsmartmatch)."
3633
3634 #. type: Plain text
3635 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3636 #: opensuse-leap-16-1 opensuse-tumbleweed
3637 msgid ""
3638 "Furthermore, Perl inspects the operands of logical operators to decide "
3639 "whether to use smartmatching for each one by applying the above test to the "
3640 "operands:"
3641 msgstr ""
3642 "علاوة على ذلك، تفحص بيرل معاملات العوامل المنطقية لتقرر ما إذا كانت ستستخدم "
3643 "المطابقة الذكية لكل منها من خلال تطبيق الاختبار أعلاه على المعاملات:"
3644
3645 #. type: IX
3646 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3647 #: opensuse-leap-16-1 opensuse-tumbleweed
3648 #, no-wrap
3649 msgid "9."
3650 msgstr "9."
3651
3652 #. type: Plain text
3653 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3654 #: opensuse-leap-16-1 opensuse-tumbleweed
3655 msgid ""
3656 "If EXPR is CW<\\*(C`EXPR1 && EXPR2\\*(C'> or CW<\\*(C`EXPR1 and "
3657 "EXPR2\\*(C'>, the test is applied \\&I<recursively> to both EXPR1 and "
3658 "EXPR2. Only if I<both> operands also pass the test, I<recursively>, will "
3659 "the expression be treated as boolean. Otherwise, smartmatching is used."
3660 msgstr ""
3661 "إذا كان EXPR هو CW<\\*(C`EXPR1 && EXPR2\\*(C'> أو CW<\\*(C`EXPR1 and "
3662 "EXPR2\\*(C'>، فسيُطبق الاختبار \\&I<بشكل عودي> على كل من EXPR1 و EXPR2. فقط "
3663 "إذا نجح I<كلا> المعاملين في الاختبار أيضًا، I<بشكل عودي>، فسوف يُعامل التعبير "
3664 "كقيمة منطقية. وإلا، تُستخدم المطابقة الذكية."
3665
3666 #. type: IX
3667 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3668 #: opensuse-leap-16-1 opensuse-tumbleweed
3669 #, no-wrap
3670 msgid "10."
3671 msgstr "10."
3672
3673 #. type: Plain text
3674 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3675 #: opensuse-leap-16-1 opensuse-tumbleweed
3676 msgid ""
3677 "If EXPR is CW<\\*(C`EXPR1 || EXPR2\\*(C'>, CW<\\*(C`EXPR1 // EXPR2\\*(C'>, "
3678 "or CW<\\*(C`EXPR1 or EXPR2\\*(C'>, the test is applied I<recursively> to "
3679 "EXPR1 only (which might itself be a higher-precedence AND operator, for "
3680 "example, and thus subject to the previous rule), not to EXPR2. If EXPR1 is "
3681 "to use smartmatching, then EXPR2 also does so, no matter what EXPR2 "
3682 "contains. But if EXPR2 does not get to use smartmatching, then the second "
3683 "argument will not be either. This is quite different from the "
3684 "CW<\\*(C`&&\\*(C'> case just described, so be careful."
3685 msgstr ""
3686 "إذا كان EXPR هو CW<\\*(C`EXPR1 || EXPR2\\*(C'>، أو CW<\\*(C`EXPR1 // "
3687 "EXPR2\\*(C'>، أو CW<\\*(C`EXPR1 or EXPR2\\*(C'>، فسيُطبق الاختبار I<بشكل "
3688 "عودي> على EXPR1 فقط (والذي قد يكون هو نفسه عامل AND ذو أسبقية أعلى، على سبيل "
3689 "المثال، وبالتالي يخضع للقاعدة السابقة)، وليس على EXPR2. إذا كان EXPR1 "
3690 "سيستخدم المطابقة الذكية، فإن EXPR2 يفعل ذلك أيضًا، بغض النظر عما يحتويه "
3691 "EXPR2. ولكن إذا لم يتمكن EXPR2 من استخدام المطابقة الذكية، فلن يكون المعامل "
3692 "الثاني كذلك أيضًا. هذا مختلف تماماً عن حالة CW<\\*(C`&&\\*(C'> الموصوفة للتو، "
3693 "لذا كن حذراً."
3694
3695 #. type: Plain text
3696 #: debian-trixie debian-unstable
3697 msgid ""
3698 "These rules are complicated, but the goal is for them to do what you want "
3699 "(even if you don't quite understand why they are doing it). For example:"
3700 msgstr ""
3701 "هذه القواعد معقدة، لكن الهدف منها هو القيام بما تريده (حتى لو لم تفهم تماماً "
3702 "سبب قيامها بذلك). على سبيل المثال:"
3703
3704 #. type: Plain text
3705 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3706 #: opensuse-leap-16-1 opensuse-tumbleweed
3707 #, no-wrap
3708 msgid "\\& when (/^\\ed+$/ && $_ E<lt> 75) { ... }\n"
3709 msgstr "\\& when (/^\\ed+$/ && $_ E<lt> 75) { ... }\n"
3710
3711 #. type: Plain text
3712 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3713 #: opensuse-leap-16-1 opensuse-tumbleweed
3714 msgid ""
3715 "will be treated as a boolean match because the rules say both a regex match "
3716 "and an explicit test on CW<$_> will be treated as boolean."
3717 msgstr ""
3718 "سيُعامل كمطابقة منطقية لأن القواعد تقول إن كلاً من مطابقة التعبير النمطي "
3719 "والاختبار الصريح على CW<$_> سيُعاملان كقيم منطقية."
3720
3721 #. type: Plain text
3722 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3723 #: opensuse-leap-16-1 opensuse-tumbleweed
3724 msgid "Also:"
3725 msgstr "أيضًا:"
3726
3727 #. type: Plain text
3728 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3729 #: opensuse-leap-16-1 opensuse-tumbleweed
3730 #, no-wrap
3731 msgid "\\& when ([qw(foo bar)] && /baz/) { ... }\n"
3732 msgstr "\\& when ([qw(foo bar)] && /baz/) { ... }\n"
3733
3734 #. type: Plain text
3735 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3736 #: opensuse-leap-16-1 opensuse-tumbleweed
3737 msgid ""
3738 "will use smartmatching because only I<one> of the operands is a boolean: the "
3739 "other uses smartmatching, and that wins."
3740 msgstr ""
3741 "سيستخدم المطابقة الذكية لأن I<واحداً> فقط من المعاملات هو قيمة منطقية: الآخر "
3742 "يستخدم المطابقة الذكية، وهذا هو ما يفوز."
3743
3744 #. type: Plain text
3745 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3746 #: opensuse-leap-16-1 opensuse-tumbleweed
3747 msgid "Further:"
3748 msgstr "علاوة على ذلك:"
3749
3750 #. type: Plain text
3751 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3752 #: opensuse-leap-16-1 opensuse-tumbleweed
3753 #, no-wrap
3754 msgid "\\& when ([qw(foo bar)] || /^baz/) { ... }\n"
3755 msgstr "\\& when ([qw(foo bar)] || /^baz/) { ... }\n"
3756
3757 #. type: Plain text
3758 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3759 #: opensuse-leap-16-1 opensuse-tumbleweed
3760 msgid "will use smart matching (only the first operand is considered), whereas"
3761 msgstr "سيستخدم المطابقة الذكية (يُؤخذ المعامل الأول فقط في الاعتبار)، بينما"
3762
3763 #. type: Plain text
3764 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3765 #: opensuse-leap-16-1 opensuse-tumbleweed
3766 #, no-wrap
3767 msgid "\\& when (/^baz/ || [qw(foo bar)]) { ... }\n"
3768 msgstr "\\& when (/^baz/ || [qw(foo bar)]) { ... }\n"
3769
3770 #. type: Plain text
3771 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3772 #: opensuse-leap-16-1 opensuse-tumbleweed
3773 msgid ""
3774 "will test only the regex, which causes both operands to be treated as "
3775 "boolean. Watch out for this one, then, because an arrayref is always a true "
3776 "value, which makes it effectively redundant. Not a good idea."
3777 msgstr ""
3778 "سيختبر التعبير النمطي فقط، مما يؤدي إلى معاملة كلا المعاملين كقيم منطقية. "
3779 "احذر من هذا الأمر إذاً، لأن مرجع المصفوفة هو دائماً قيمة صحيحة (true)، مما "
3780 "يجعله زائداً عن الحاجة فعلياً. ليست فكرة جيدة."
3781
3782 #. type: Plain text
3783 #: debian-trixie debian-unstable
3784 msgid ""
3785 "Tautologous boolean operators are still going to be optimized away. Don't "
3786 "be tempted to write"
3787 msgstr ""
3788 "ستظل العوامل المنطقية الحشوية (Tautologous) تُزال عبر التحسين. لا تنجذب لكتابة"
3789
3790 #. type: Plain text
3791 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3792 #: opensuse-leap-16-1 opensuse-tumbleweed
3793 #, no-wrap
3794 msgid "\\& when (\"foo\" or \"bar\") { ... }\n"
3795 msgstr "\\& when (\"foo\" or \"bar\") { ... }\n"
3796
3797 #. type: Plain text
3798 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3799 #: opensuse-leap-16-1 opensuse-tumbleweed
3800 msgid ""
3801 "This will optimize down to CW<\"foo\">, so CW<\"bar\"> will never be "
3802 "considered (even though the rules say to use a smartmatch on CW<\"foo\">). "
3803 "For an alternation like this, an array ref will work, because this will "
3804 "instigate smartmatching:"
3805 msgstr ""
3806 "سيُحسن هذا ليقتصر على CW<\"foo\">، لذا لن يُنظر في CW<\"bar\"> أبداً (على الرغم "
3807 "من أن القواعد تقول باستخدام مطابقة ذكية على CW<\"foo\">). بالنسبة لتبديل مثل "
3808 "هذا، سيعمل مرجع المصفوفة، لأن هذا سيحرض على المطابقة الذكية:"
3809
3810 #. type: Plain text
3811 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3812 #: opensuse-leap-16-1 opensuse-tumbleweed
3813 #, no-wrap
3814 msgid "\\& when ([qw(foo bar)] { ... }\n"
3815 msgstr "\\& when ([qw(foo bar)] { ... }\n"
3816
3817 #. type: Plain text
3818 #: debian-trixie debian-unstable
3819 msgid ""
3820 "This is somewhat equivalent to the C-style switch statement's fallthrough "
3821 "functionality (not to be confused with I<Perl's> fallthrough functionality--"
3822 "see below), wherein the same block is used for several "
3823 "\\&CW<\\*(C`case\\*(C'> statements."
3824 msgstr ""
3825 "هذا يعادل إلى حد ما وظيفة السقوط (fallthrough) في عبارة switch بنمط لغة C "
3826 "(لا ينبغي الخلط بينه وبين وظيفة السقوط في I<بيرل> - انظر أدناه)، حيث تُستخدم "
3827 "الكتلة نفسها لعدة عبارات \\&CW<\\*(C`case\\*(C'>."
3828
3829 #. type: Plain text
3830 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3831 #: opensuse-leap-16-1 opensuse-tumbleweed
3832 msgid ""
3833 "Another useful shortcut is that, if you use a literal array or hash as the "
3834 "argument to CW<\\*(C`given\\*(C'>, it is turned into a reference. So "
3835 "CW<given(@foo)> is the same as CW<given(\\e@foo)>, for example."
3836 msgstr ""
3837 "اختصار مفيد آخر هو أنه إذا استخدمت مصفوفة حرفية أو هاش كمعامل لـ "
3838 "CW<\\*(C`given\\*(C'>، فإنه يُحول إلى مرجع. لذا فإن CW<given(@foo)> هي نفسها "
3839 "CW<given(\\e@foo)>، على سبيل المثال."
3840
3841 #. type: Plain text
3842 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3843 #: opensuse-leap-16-1 opensuse-tumbleweed
3844 msgid ""
3845 "\\&CW<\\*(C`default\\*(C'> behaves exactly like CW<\\*(C`when(1 == "
3846 "1)\\*(C'>, which is to say that it always matches."
3847 msgstr ""
3848 "\\&تتصرف CW<\\*(C`default\\*(C'> تماماً مثل CW<\\*(C`when(1 == 1)\\*(C'>، أي "
3849 "أنها تطابق دائماً."
3850
3851 #. type: Plain text
3852 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3853 #: opensuse-leap-16-1 opensuse-tumbleweed
3854 msgid "I<Breaking out>"
3855 msgstr "I<الخروج (Breaking out)>"
3856
3857 #. type: IX
3858 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3859 #: opensuse-leap-16-1 opensuse-tumbleweed
3860 #, no-wrap
3861 msgid "Breaking out"
3862 msgstr "الخروج"
3863
3864 #. type: Plain text
3865 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3866 #: opensuse-leap-16-1 opensuse-tumbleweed
3867 msgid ""
3868 "You can use the CW<\\*(C`break\\*(C'> keyword to break out of the enclosing "
3869 "\\&CW<\\*(C`given\\*(C'> block. Every CW<\\*(C`when\\*(C'> block is "
3870 "implicitly ended with a CW<\\*(C`break\\*(C'>."
3871 msgstr ""
3872 "يمكنك استخدام الكلمة المفتاحية CW<\\*(C`break\\*(C'> للخروج من كتلة "
3873 "\\&CW<\\*(C`given\\*(C'> المحيطة. كل كتلة CW<\\*(C`when\\*(C'> تنتهي ضمنياً "
3874 "بـ CW<\\*(C`break\\*(C'>."
3875
3876 #. type: Plain text
3877 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3878 #: opensuse-leap-16-1 opensuse-tumbleweed
3879 msgid "I<Fall-through>"
3880 msgstr "I<السقوط (Fall-through)>"
3881
3882 #. type: IX
3883 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3884 #: opensuse-leap-16-1 opensuse-tumbleweed
3885 #, no-wrap
3886 msgid "Fall-through"
3887 msgstr "السقوط"
3888
3889 #. type: Plain text
3890 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3891 #: opensuse-leap-16-1 opensuse-tumbleweed
3892 msgid ""
3893 "You can use the CW<\\*(C`continue\\*(C'> keyword to fall through from one "
3894 "case to the next immediate CW<\\*(C`when\\*(C'> or CW<\\*(C`default\\*(C'>:"
3895 msgstr ""
3896 "يمكنك استخدام الكلمة المفتاحية CW<\\*(C`continue\\*(C'> للسقوط من حالة إلى "
3897 "حالة CW<\\*(C`when\\*(C'> أو CW<\\*(C`default\\*(C'> التالية مباشرة:"
3898
3899 #. type: Plain text
3900 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3901 #: opensuse-leap-16-1 opensuse-tumbleweed
3902 #, no-wrap
3903 msgid ""
3904 "\\& given($foo) {\n"
3905 "\\& when (/x/) { say \\*(Aq$foo contains an x\\*(Aq; continue }\n"
3906 "\\& when (/y/) { say \\*(Aq$foo contains a y\\*(Aq }\n"
3907 "\\& default { say \\*(Aq$foo does not contain a y\\*(Aq }\n"
3908 "\\& }\n"
3909 msgstr ""
3910 "\\& given($foo) {\n"
3911 "\\& when (/x/) { say \\*(Aq$foo contains an x\\*(Aq; continue }\n"
3912 "\\& when (/y/) { say \\*(Aq$foo contains a y\\*(Aq }\n"
3913 "\\& default { say \\*(Aq$foo does not contain a y\\*(Aq }\n"
3914 "\\& }\n"
3915
3916 #. type: Plain text
3917 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3918 #: opensuse-leap-16-1 opensuse-tumbleweed
3919 msgid "I<Return value>"
3920 msgstr "I<قيمة الإرجاع>"
3921
3922 #. type: IX
3923 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3924 #: opensuse-leap-16-1 opensuse-tumbleweed
3925 #, no-wrap
3926 msgid "Return value"
3927 msgstr "قيمة الإرجاع"
3928
3929 #. type: Plain text
3930 #: debian-trixie debian-unstable
3931 msgid ""
3932 "When a CW<\\*(C`given\\*(C'> statement is also a valid expression (for "
3933 "example, when it's the last statement of a block), it evaluates to:"
3934 msgstr ""
3935 "عندما تكون عبارة CW<\\*(C`given\\*(C'> أيضًا تعبيراً صالحاً (على سبيل المثال، "
3936 "عندما تكون آخر عبارة في كتلة)، فإنها تؤول إلى:"
3937
3938 #. type: IP
3939 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3940 #: opensuse-leap-16-1 opensuse-tumbleweed
3941 #, no-wrap
3942 msgid "\\(bu"
3943 msgstr "\\(bu"
3944
3945 #. type: Plain text
3946 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3947 #: opensuse-leap-16-1 opensuse-tumbleweed
3948 msgid ""
3949 "An empty list as soon as an explicit CW<\\*(C`break\\*(C'> is encountered."
3950 msgstr "قائمة فارغة بمجرد مواجهة CW<\\*(C`break\\*(C'> صريحة."
3951
3952 #. type: Plain text
3953 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3954 #: opensuse-leap-16-1 opensuse-tumbleweed
3955 msgid ""
3956 "The value of the last evaluated expression of the successful "
3957 "\\&CW<\\*(C`when\\*(C'>/CW<\\*(C`default\\*(C'> clause, if there happens to "
3958 "be one."
3959 msgstr ""
3960 "قيمة آخر تعبير جرى تقييمه في بند \\&CW<\\*(C`when\\*(C'>/"
3961 "CW<\\*(C`default\\*(C'> الناجح، إذا وجد واحد."
3962
3963 #. type: Plain text
3964 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3965 #: opensuse-leap-16-1 opensuse-tumbleweed
3966 msgid ""
3967 "The value of the last evaluated expression of the CW<\\*(C`given\\*(C'> "
3968 "block if no condition is true."
3969 msgstr ""
3970 "قيمة آخر تعبير وُجدت قيمته في كتلة CW<\\*(C`given\\*(C'> إذا لم يتحقق أي شرط."
3971
3972 #. type: Plain text
3973 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3974 #: opensuse-leap-16-1 opensuse-tumbleweed
3975 msgid ""
3976 "In both last cases, the last expression is evaluated in the context that was "
3977 "applied to the CW<\\*(C`given\\*(C'> block."
3978 msgstr ""
3979 "في كلتا الحالتين الأخيرتين، تُحسب قيمة التعبير الأخير في السياق الذي طُبق على "
3980 "كتلة CW<\\*(C`given\\*(C'>."
3981
3982 #. type: Plain text
3983 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3984 #: opensuse-leap-16-1 opensuse-tumbleweed
3985 msgid ""
3986 "Note that, unlike CW<\\*(C`if\\*(C'> and CW<\\*(C`unless\\*(C'>, failed "
3987 "CW<\\*(C`when\\*(C'> statements always evaluate to an empty list."
3988 msgstr ""
3989 "لاحظ أنه، على عكس CW<\\*(C`if\\*(C'> و CW<\\*(C`unless\\*(C'>، فإن جمل "
3990 "CW<\\*(C`when\\*(C'> الفاشلة تُنتج دائمًا قائمة فارغة."
3991
3992 #. type: Plain text
3993 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
3994 #: opensuse-leap-16-1 opensuse-tumbleweed
3995 #, no-wrap
3996 msgid ""
3997 "\\& my $price = do {\n"
3998 "\\& given ($item) {\n"
3999 "\\& when ([\"pear\", \"apple\"]) { 1 }\n"
4000 "\\& break when \"vote\"; # My vote cannot be bought\n"
4001 "\\& 1e10 when /Mona Lisa/;\n"
4002 "\\& \"unknown\";\n"
4003 "\\& }\n"
4004 "\\& };\n"
4005 msgstr ""
4006 "\\& my $price = do {\n"
4007 "\\& given ($item) {\n"
4008 "\\& when ([\"pear\", \"apple\"]) { 1 }\n"
4009 "\\& break when \"vote\"; # لا يمكن شراء صوتي\n"
4010 "\\& 1e10 when /Mona Lisa/;\n"
4011 "\\& \"unknown\";\n"
4012 "\\& }\n"
4013 "\\& };\n"
4014
4015 #. type: Plain text
4016 #: debian-trixie debian-unstable
4017 msgid ""
4018 "Currently, CW<\\*(C`given\\*(C'> blocks can't always be used as proper "
4019 "expressions. This may be addressed in a future version of Perl."
4020 msgstr ""
4021 "حاليًا، لا يمكن دائمًا استخدام كتل CW<\\*(C`given\\*(C'> كتعبيرات حقيقية. قد "
4022 "يُعالج هذا في إصدار مستقبلي من بيرل."
4023
4024 #. type: Plain text
4025 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4026 #: opensuse-leap-16-1 opensuse-tumbleweed
4027 msgid "I<Switching in a loop>"
4028 msgstr "I<التبديل داخل حلقة تكرار>"
4029
4030 #. type: IX
4031 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4032 #: opensuse-leap-16-1 opensuse-tumbleweed
4033 #, no-wrap
4034 msgid "Switching in a loop"
4035 msgstr "التبديل داخل حلقة تكرار"
4036
4037 #. type: Plain text
4038 #: debian-trixie debian-unstable
4039 msgid ""
4040 "Instead of using CW<given()>, you can use a CW<foreach()> loop. For "
4041 "example, here's one way to count how many times a particular string occurs "
4042 "in an array:"
4043 msgstr ""
4044 "بدلًا من استخدام CW<given()>، يمكنك استخدام حلقة CW<foreach()>. على سبيل "
4045 "المثال، إليك إحدى الطرق لعد كم مرة تظهر سلسلة نصية معينة في مصفوفة:"
4046
4047 #. type: Plain text
4048 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4049 #: opensuse-leap-16-1 opensuse-tumbleweed
4050 #, no-wrap
4051 msgid ""
4052 "\\& use v5.10.1;\n"
4053 "\\& my $count = 0;\n"
4054 "\\& for (@array) {\n"
4055 "\\& when (\"foo\") { ++$count }\n"
4056 "\\& }\n"
4057 "\\& print \"\\e@array contains $count copies of \\*(Aqfoo\\*(Aq\\en\";\n"
4058 msgstr ""
4059 "\\& use v5.10.1;\n"
4060 "\\& my $count = 0;\n"
4061 "\\& for (@array) {\n"
4062 "\\& when (\"foo\") { ++$count }\n"
4063 "\\& }\n"
4064 "\\& print \"\\e@array contains $count copies of \\*(Aqfoo\\*(Aq\\en\";\n"
4065
4066 #. type: Plain text
4067 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4068 #: opensuse-leap-16-1 opensuse-tumbleweed
4069 msgid "Or in a more recent version:"
4070 msgstr "أو في إصدار أحدث:"
4071
4072 #. type: Plain text
4073 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4074 #: opensuse-leap-16-1 opensuse-tumbleweed
4075 #, no-wrap
4076 msgid ""
4077 "\\& use v5.14;\n"
4078 "\\& my $count = 0;\n"
4079 "\\& for (@array) {\n"
4080 "\\& ++$count when \"foo\";\n"
4081 "\\& }\n"
4082 "\\& print \"\\e@array contains $count copies of \\*(Aqfoo\\*(Aq\\en\";\n"
4083 msgstr ""
4084 "\\& use v5.14;\n"
4085 "\\& my $count = 0;\n"
4086 "\\& for (@array) {\n"
4087 "\\& ++$count when \"foo\";\n"
4088 "\\& }\n"
4089 "\\& print \"\\e@array contains $count copies of \\*(Aqfoo\\*(Aq\\en\";\n"
4090
4091 #. type: Plain text
4092 #: debian-trixie debian-unstable
4093 msgid ""
4094 "At the end of all CW<\\*(C`when\\*(C'> blocks, there is an implicit "
4095 "CW<\\*(C`next\\*(C'>. You can override that with an explicit "
4096 "CW<\\*(C`last\\*(C'> if you're interested in only the first match alone."
4097 msgstr ""
4098 "في نهاية كل كتل CW<\\*(C`when\\*(C'>، يوجد CW<\\*(C`next\\*(C'> ضمني. يمكنك "
4099 "تجاوز ذلك باستخدام CW<\\*(C`last\\*(C'> صريح إذا كنت مهتمًا فقط بالمطابقة "
4100 "الأولى وحدها."
4101
4102 #. type: Plain text
4103 #: debian-trixie debian-unstable
4104 msgid ""
4105 "This doesn't work if you explicitly specify a loop variable, as in "
4106 "CW<\\*(C`for $item (@array)\\*(C'>. You have to use the default variable "
4107 "CW<$_>."
4108 msgstr ""
4109 "لا يعمل هذا إذا حددت متغير حلقة بشكل صريح، كما في CW<\\*(C`for $item "
4110 "(@array)\\*(C'>. يجب عليك استخدام المتغير المبدئي CW<$_>."
4111
4112 #. type: Plain text
4113 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4114 #: opensuse-leap-16-1 opensuse-tumbleweed
4115 msgid "I<Differences from Raku>"
4116 msgstr "I<الاختلافات عن راكو>"
4117
4118 #. type: IX
4119 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4120 #: opensuse-leap-16-1 opensuse-tumbleweed
4121 #, no-wrap
4122 msgid "Differences from Raku"
4123 msgstr "الاختلافات عن راكو"
4124
4125 #. type: Plain text
4126 #: debian-trixie debian-unstable
4127 msgid ""
4128 "The Perl 5 smartmatch and CW<\\*(C`given\\*(C'>/CW<\\*(C`when\\*(C'> "
4129 "constructs are not compatible with their Raku analogues. The most visible "
4130 "difference and least important difference is that, in Perl 5, parentheses "
4131 "are required around the argument to CW<given()> and CW<when()> (except when "
4132 "this last one is used as a statement modifier). Parentheses in Raku are "
4133 "always optional in a control construct such as CW<if()>, CW<while()>, or "
4134 "CW<when()>; they can't be made optional in Perl 5 without a great deal of "
4135 "potential confusion, because Perl 5 would parse the expression"
4136 msgstr ""
4137 "إن تراكيب المطابقة الذكية و CW<\\*(C`given\\*(C'>/CW<\\*(C`when\\*(C'> في "
4138 "بيرل 5 ليست متوافقة مع نظيراتها في راكو. الفرق الأكثر وضوحًا والأقل أهمية هو "
4139 "أنه في بيرل 5، الأقواس مطلوبة حول وسيط CW<given()> و CW<when()> (إلا عندما "
4140 "يُستخدم الأخير كمعدل جملة). الأقواس في راكو اختيارية دائمًا في تراكيب التحكم "
4141 "مثل CW<if()>، أو CW<while()>، أو CW<when()>؛ ولا يمكن جعلها اختيارية في بيرل "
4142 "5 دون قدر كبير من الارتباك المحتمل، لأن بيرل 5 سيحلل التعبير"
4143
4144 #. type: Plain text
4145 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4146 #: opensuse-leap-16-1 opensuse-tumbleweed
4147 #, no-wrap
4148 msgid ""
4149 "\\& given $foo {\n"
4150 "\\& ...\n"
4151 "\\& }\n"
4152 msgstr ""
4153 "\\& given $foo {\n"
4154 "\\& ...\n"
4155 "\\& }\n"
4156
4157 #. type: Plain text
4158 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4159 #: opensuse-leap-16-1 opensuse-tumbleweed
4160 msgid ""
4161 "as though the argument to CW<\\*(C`given\\*(C'> were an element of the hash "
4162 "\\&CW<%foo>, interpreting the braces as hash-element syntax."
4163 msgstr ""
4164 "كما لو كان وسيط CW<\\*(C`given\\*(C'> عنصرًا في الخبيئة \\&CW<%foo>، مفسرًا "
4165 "الأقواس المتعرجة على أنها بناء جملة لعنصر خبيئة."
4166
4167 #. type: Plain text
4168 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4169 #: opensuse-leap-16-1 opensuse-tumbleweed
4170 msgid ""
4171 "However, there are many, many other differences. For example, this works in "
4172 "Perl 5:"
4173 msgstr ""
4174 "ومع ذلك، هناك العديد والعديد من الاختلافات الأخرى. على سبيل المثال، هذا يعمل "
4175 "في بيرل 5:"
4176
4177 #. type: Plain text
4178 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4179 #: opensuse-leap-16-1 opensuse-tumbleweed
4180 #, no-wrap
4181 msgid ""
4182 "\\& use v5.12;\n"
4183 "\\& my @primary = (\"red\", \"blue\", \"green\");\n"
4184 "\\&\n"
4185 "\\& if (@primary ~~ \"red\") {\n"
4186 "\\& say \"primary smartmatches red\";\n"
4187 "\\& }\n"
4188 "\\&\n"
4189 "\\& if (\"red\" ~~ @primary) {\n"
4190 "\\& say \"red smartmatches primary\";\n"
4191 "\\& }\n"
4192 "\\&\n"
4193 "\\& say \"that\\*(Aqs all, folks!\";\n"
4194 msgstr ""
4195 "\\& use v5.12;\n"
4196 "\\& my @primary = (\"red\", \"blue\", \"green\");\n"
4197 "\\&\n"
4198 "\\& if (@primary ~~ \"red\") {\n"
4199 "\\& say \"primary smartmatches red\";\n"
4200 "\\& }\n"
4201 "\\&\n"
4202 "\\& if (\"red\" ~~ @primary) {\n"
4203 "\\& say \"red smartmatches primary\";\n"
4204 "\\& }\n"
4205 "\\&\n"
4206 "\\& say \"that\\*(Aqs all, folks!\";\n"
4207
4208 #. type: Plain text
4209 #: debian-trixie debian-unstable
4210 msgid ""
4211 "But it doesn't work at all in Raku. Instead, you should use the "
4212 "(parallelizable) CW<\\*(C`any\\*(C'> operator:"
4213 msgstr ""
4214 "لكنه لا يعمل على الإطلاق في راكو. بدلًا من ذلك، يجب عليك استخدام عامل "
4215 "CW<\\*(C`any\\*(C'> (القابل للتوازي):"
4216
4217 #. type: Plain text
4218 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4219 #: opensuse-leap-16-1 opensuse-tumbleweed
4220 #, no-wrap
4221 msgid ""
4222 "\\& if any(@primary) eq \"red\" {\n"
4223 "\\& say \"primary smartmatches red\";\n"
4224 "\\& }\n"
4225 "\\&\n"
4226 "\\& if \"red\" eq any(@primary) {\n"
4227 "\\& say \"red smartmatches primary\";\n"
4228 "\\& }\n"
4229 msgstr ""
4230 "\\& if any(@primary) eq \"red\" {\n"
4231 "\\& say \"primary smartmatches red\";\n"
4232 "\\& }\n"
4233 "\\&\n"
4234 "\\& if \"red\" eq any(@primary) {\n"
4235 "\\& say \"red smartmatches primary\";\n"
4236 "\\& }\n"
4237
4238 #. type: Plain text
4239 #: debian-trixie debian-unstable
4240 msgid ""
4241 "The table of smartmatches in \"Smartmatch Operator\" in perlop is not "
4242 "identical to that proposed by the Raku specification, mainly due to "
4243 "differences between Raku's and Perl 5's data models, but also because the "
4244 "Raku spec has changed since Perl 5 rushed into early adoption."
4245 msgstr ""
4246 "جدول المطابقات الذكية في \"Smartmatch Operator\" في perlop ليس متطابقًا مع "
4247 "ذلك المقترح في مواصفات راكو، ويرجع ذلك أساسًا إلى الاختلافات بين نماذج بيانات "
4248 "راكو و بيرل 5، وأيضًا لأن مواصفات راكو تغيرت منذ أن سارعت بيرل 5 إلى اعتماده "
4249 "مبكرًا."
4250
4251 #. type: Plain text
4252 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
4253 #: opensuse-leap-16-1 opensuse-tumbleweed
4254 msgid ""
4255 "In Raku, CW<when()> will always do an implicit smartmatch with its argument, "
4256 "while in Perl 5 it is convenient (albeit potentially confusing) to suppress "
4257 "this implicit smartmatch in various rather loosely-defined situations, as "
4258 "roughly outlined above. (The difference is largely because Perl 5 does not "
4259 "have, even internally, a boolean type.)"
4260 msgstr ""
4261 "في راكو، سيقوم CW<when()> دائمًا بمطابقة ذكية ضمنية مع وسيطه، بينما في بيرل 5 "
4262 "يكون من المناسب (وإن كان مربكًا محتملًا) كبح هذه المطابقة الذكية الضمنية في "
4263 "حالات متنوعة وغير محددة بدقة، كما هو موضح أعلاه تقريبًا. (الفرق يرجع بشكل "
4264 "كبير إلى أن بيرل 5 لا يملك، حتى داخليًا، نوعًا منطقيًا.)"
4265
4266 #. type: TH
4267 #: debian-unstable
4268 #, no-wrap
4269 msgid "2025-11-16"
4270 msgstr "16 نوفمبر 2025"
4271
4272 #. type: TH
4273 #: fedora-44 opensuse-leap-16-1 opensuse-tumbleweed
4274 #, no-wrap
4275 msgid "2026-03-09"
4276 msgstr "9 مارس 2026"
4277
4278 #. type: TH
4279 #: fedora-44 opensuse-leap-16-1 opensuse-tumbleweed
4280 #, no-wrap
4281 msgid "perl v5.42.1"
4282 msgstr "بيرل v5.42.1"
4283
4284 #. type: Plain text
4285 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4286 #: opensuse-tumbleweed
4287 msgid ""
4288 "Many of Perl\\*(Aqs syntactic elements are B<optional>. Rather than "
4289 "requiring you to put parentheses around every function call and declare "
4290 "every variable, you can often leave such explicit elements off and Perl will "
4291 "figure out what you meant. This is known as B<Do What I Mean>, abbreviated "
4292 "B<DWIM>. It allows programmers to be B<lazy> and to code in a style with "
4293 "which they are comfortable."
4294 msgstr ""
4295 "العديد من العناصر النحوية في بيرل تكون B<اختيارية>. بدلًا من مطالبتك بوضع "
4296 "أقواس حول كل استدعاء دالة والتصريح عن كل متغير، يمكنك غالبًا ترك هذه العناصر "
4297 "الصريحة وسيفهم بيرل ما تقصده. يُعرف هذا باسم B<افعل ما أعنيه>، ويُختصر بـ "
4298 "B<DWIM>. يتيح ذلك للمبرمجين أن يكونوا B<كسالى> وأن يبرمجوا بالأسلوب الذي "
4299 "يريحهم."
4300
4301 #. type: Plain text
4302 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4303 #: opensuse-tumbleweed
4304 msgid ""
4305 "The only things you need to declare in Perl are report formats and "
4306 "subroutines (and sometimes not even subroutines). A scalar variable holds "
4307 "the undefined value (CW<\\*(C`undef\\*(C'>) until it has been assigned a "
4308 "defined value, which is anything other than CW<\\*(C`undef\\*(C'>. When "
4309 "used as a number, \\&CW<\\*(C`undef\\*(C'> is treated as CW<0>; when used as "
4310 "a string, it is treated as the empty string, CW<\"\">; and when used as a "
4311 "reference that isn\\*(Aqt being assigned to, it is treated as an error. If "
4312 "you enable warnings, you\\*(Aqll be notified of an uninitialized value "
4313 "whenever you treat \\&CW<\\*(C`undef\\*(C'> as a string or a number. Well, "
4314 "usually. Boolean contexts, such as:"
4315 msgstr ""
4316 "الأشياء الوحيدة التي تحتاج إلى التصريح عنها في بيرل هي تنسيقات التقارير "
4317 "والروتينات الفرعية (وأحيانًا لا تحتاج حتى للروتينات الفرعية). يحمل المتغير "
4318 "العددي القيمة غير المعرفة (CW<\\*(C`undef\\*(C'>) حتى تُسند إليه قيمة معرفة، "
4319 "وهي أي شيء بخلاف CW<\\*(C`undef\\*(C'>. عند استخدامه كعدد، يُعامل "
4320 "\\&CW<\\*(C`undef\\*(C'> كـ CW<0>؛ وعند استخدامه كسلسلة نصية، يُعامل كالسلسلة "
4321 "الفارغة، CW<\"\">؛ وعند استخدامه كمرجع لا يُسند إليه شيء، يُعامل كخطأ. إذا "
4322 "فعلت التحذيرات، فسيتم إخطارك بوجود قيمة غير مهيأة كلما عاملت "
4323 "\\&CW<\\*(C`undef\\*(C'> كسلسلة نصية أو عدد. حسنًا، عادةً. السياقات المنطقية، "
4324 "مثل:"
4325
4326 #. type: Plain text
4327 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4328 #: opensuse-tumbleweed
4329 msgid ""
4330 "A declaration can be put anywhere a statement can, but has no effect on the "
4331 "execution of the primary sequence of statements: declarations all take "
4332 "effect at compile time. All declarations are typically put at the beginning "
4333 "or the end of the script. However, if you\\*(Aqre using lexically-scoped "
4334 "private variables created with CW<my()>, \\&CW<state()>, or CW<our()>, "
4335 "you\\*(Aqll have to make sure your format or subroutine definition is within "
4336 "the same block scope as the B<my()> if you expect to be able to access those "
4337 "private variables."
4338 msgstr ""
4339 "يمكن وضع التصريح في أي مكان توضع فيه الجملة، ولكن ليس له أي تأثير على تنفيذ "
4340 "تسلسل الجمل الرئيس: كل التصريحات تدخل حيز التنفيذ في وقت التصريف. عادةً ما "
4341 "توضع كل التصريحات في بداية السكربت أو نهايته. ومع ذلك، إذا كنت تستخدم "
4342 "متغيرات خاصة ذات نطاق لغوي أُنشئت باستخدام CW<my()>، أو \\&CW<state()>، أو "
4343 "CW<our()>، فسيتعين عليك التأكد من أن تعريف التنسيق أو الروتين الفرعي يقع ضمن "
4344 "نفس نطاق الكتلة الخاص بـ B<my()> إذا كنت تتوقع التمكن من الوصول إلى تلك "
4345 "المتغيرات الخاصة."
4346
4347 #. type: Plain text
4348 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4349 #: opensuse-tumbleweed
4350 msgid ""
4351 "That now parses as you\\*(Aqd expect, but you still ought to get in the "
4352 "habit of using parentheses in that situation. For more on prototypes, see "
4353 "perlsub."
4354 msgstr ""
4355 "يُحلل ذلك الآن كما تتوقع، ولكن لا يزال يتعين عليك التعود على استخدام الأقواس "
4356 "في تلك الحالة. لمزيد من المعلومات حول النماذج الأولية، راجع perlsub."
4357
4358 #. type: Plain text
4359 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4360 #: opensuse-tumbleweed
4361 msgid ""
4362 "The only kind of simple statement is an expression evaluated for its side-"
4363 "effects. Every simple statement must be terminated with a semicolon, unless "
4364 "it is the final statement in a block, in which case the semicolon is "
4365 "optional. But put the semicolon in anyway if the block takes up more than "
4366 "one line, because you may eventually add another line. Note that there are "
4367 "operators like CW<\\*(C`eval {}\\*(C'>, CW<\\*(C`sub {}\\*(C'>, and "
4368 "\\&CW<\\*(C`do {}\\*(C'> that I<look> like compound statements, but "
4369 "aren\\*(Aqt--they\\*(Aqre just TERMs in an expression--and thus need an "
4370 "explicit termination when used as the last item in a statement."
4371 msgstr ""
4372 "النوع الوحيد من الجمل البسيطة هو التعبير الذي تُحسب قيمته من أجل آثاره "
4373 "الجانبية. يجب إنهاء كل جملة بسيطة بفاصلة منقوطة، ما لم تكن الجملة الأخيرة في "
4374 "كتلة، وفي هذه الحالة تكون الفاصلة المنقوطة اختيارية. ولكن ضع الفاصلة "
4375 "المنقوطة على أي حال إذا كانت الكتلة تشغل أكثر من سطر واحد، لأنك قد تضيف سطرًا "
4376 "آخر في النهاية. لاحظ أن هناك عوامل مثل CW<\\*(C`eval {}\\*(C'> و "
4377 "CW<\\*(C`sub {}\\*(C'> و \\&CW<\\*(C`do {}\\*(C'> I<تبدو> مثل الجمل المركبة، "
4378 "لكنها ليست كذلك -- فهي مجرد حدود (TERMs) في تعبير -- وبالتالي تحتاج إلى "
4379 "إنهاء صريح عند استخدامها كآخر عنصر في الجملة."
4380
4381 #. type: Plain text
4382 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4383 #: opensuse-tumbleweed
4384 msgid ""
4385 "See \"do\" in perlfunc. Note also that the loop control statements "
4386 "described later will I<NOT> work in this construct, because modifiers "
4387 "don\\*(Aqt take loop labels. Sorry. You can always put another block "
4388 "inside of it (for CW<\\*(C`next\\*(C'>/CW<\\*(C`redo\\*(C'>) or around it "
4389 "(for CW<\\*(C`last\\*(C'>) to do that sort of thing."
4390 msgstr ""
4391 "راجع \"do\" في perlfunc. لاحظ أيضًا أن جمل التحكم في الحلقة الموصوفة لاحقًا "
4392 "I<لن> تعمل في هذا التركيب، لأن المعدلات لا تقبل لصائق الحلقات. عذرًا. يمكنك "
4393 "دائمًا وضع كتلة أخرى بداخلها (من أجل CW<\\*(C`next\\*(C'>/"
4394 "CW<\\*(C`redo\\*(C'>) أو حولها (من أجل CW<\\*(C`last\\*(C'>) للقيام بهذا "
4395 "النوع من الأشياء."
4396
4397 #. type: Plain text
4398 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4399 #: opensuse-tumbleweed
4400 msgid ""
4401 "\\&B<NOTE:> The behaviour of a CW<\\*(C`my\\*(C'>, CW<\\*(C`state\\*(C'>, or "
4402 "\\&CW<\\*(C`our\\*(C'> modified with a statement modifier conditional or "
4403 "loop construct (for example, CW<\\*(C`my $x if ...\\*(C'>) is "
4404 "\\&B<undefined>. The value of the CW<\\*(C`my\\*(C'> variable may be "
4405 "CW<\\*(C`undef\\*(C'>, any previously assigned value, or possibly anything "
4406 "else. Don\\*(Aqt rely on it. Future versions of perl might do something "
4407 "different from the version of perl you try it out on. Here be dragons."
4408 msgstr ""
4409 "\\&B<ملاحظة:> سلوك CW<\\*(C`my\\*(C'> أو CW<\\*(C`state\\*(C'> أو "
4410 "\\&CW<\\*(C`our\\*(C'> المعدل بمعدل جملة شرطي أو تركيب حلقة (على سبيل "
4411 "المثال، CW<\\*(C`my $x if ...\\*(C'>) هو \\&B<غير محدد>. قد تكون قيمة متغير "
4412 "CW<\\*(C`my\\*(C'> هي CW<\\*(C`undef\\*(C'>، أو أي قيمة أُسندت سابقًا، أو ربما "
4413 "أي شيء آخر. لا تعتمد عليه. قد تقوم الإصدارات المستقبلية من بيرل بشيء مختلف "
4414 "عن إصدار بيرل الذي تجربه عليه. احذر المخاطر."
4415
4416 #. type: Plain text
4417 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4418 #: opensuse-tumbleweed
4419 msgid ""
4420 "Under the current implementation, the CW<\\*(C`foreach\\*(C'> loop can be "
4421 "anywhere within the CW<\\*(C`when\\*(C'> modifier\\*(Aqs dynamic scope, but "
4422 "must be within the CW<\\*(C`given\\*(C'> block\\*(Aqs lexical scope. This "
4423 "restriction may be relaxed in a future release. See \"Switch Statements\" "
4424 "below."
4425 msgstr ""
4426 "في ظل التنفيذ الحالي، يمكن أن تكون حلقة CW<\\*(C`foreach\\*(C'> في أي مكان "
4427 "ضمن النطاق الديناميكي لمعدل CW<\\*(C`when\\*(C'>، ولكن يجب أن تكون ضمن "
4428 "النطاق اللغوي لكتلة CW<\\*(C`given\\*(C'>. قد يُخفف هذا القيد في إصدار "
4429 "مستقبلي. راجع \"Switch Statements\" أدناه."
4430
4431 #. type: Plain text
4432 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4433 #: opensuse-tumbleweed
4434 msgid ""
4435 "The CW<\\*(C`if\\*(C'> statement is straightforward. Because BLOCKs are "
4436 "always bounded by curly brackets, there is never any ambiguity about which "
4437 "\\&CW<\\*(C`if\\*(C'> an CW<\\*(C`else\\*(C'> goes with. If you use "
4438 "CW<\\*(C`unless\\*(C'> in place of CW<\\*(C`if\\*(C'>, the sense of the test "
4439 "is reversed. Like CW<\\*(C`if\\*(C'>, CW<\\*(C`unless\\*(C'> can be "
4440 "followed by CW<\\*(C`else\\*(C'>. CW<\\*(C`unless\\*(C'> can even be "
4441 "followed by one or more CW<\\*(C`elsif\\*(C'> statements, though you may "
4442 "want to think twice before using that particular language construct, as "
4443 "everyone reading your code will have to think at least twice before they can "
4444 "understand what\\*(Aqs going on."
4445 msgstr ""
4446 "جملة CW<\\*(C`if\\*(C'> واضحة ومباشرة. نظرًا لأن الكتل (BLOCKs) محاطة دائمًا "
4447 "بأقواس متعرجة، فلا يوجد أبدًا أي غموض حول أي \\&CW<\\*(C`if\\*(C'> تتبعها "
4448 "CW<\\*(C`else\\*(C'>. إذا استخدمت CW<\\*(C`unless\\*(C'> بدلاً من "
4449 "CW<\\*(C`if\\*(C'>، فسيُعكس منطق الاختبار. مثل CW<\\*(C`if\\*(C'>، يمكن أن "
4450 "تتبع CW<\\*(C`unless\\*(C'> جملة CW<\\*(C`else\\*(C'>. بل ويمكن أن تتبع "
4451 "CW<\\*(C`unless\\*(C'> جملة واحدة أو أكثر من جمل CW<\\*(C`elsif\\*(C'>، على "
4452 "الرغم من أنك قد ترغب في التفكير مرتين قبل استخدام هذا التركيب اللغوي المعين، "
4453 "حيث سيتعين على كل من يقرأ شفرتك التفكير مرتين على الأقل قبل أن يتمكنوا من "
4454 "فهم ما يحدث."
4455
4456 #. type: Plain text
4457 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4458 #: opensuse-tumbleweed
4459 msgid ""
4460 "The CW<\\*(C`while\\*(C'> statement executes the block as long as the "
4461 "expression is true. The CW<\\*(C`until\\*(C'> statement executes the block "
4462 "as long as the expression is false. The LABEL is optional, and if present, "
4463 "consists of an identifier followed by a colon. The LABEL identifies the "
4464 "loop for the loop control statements CW<\\*(C`next\\*(C'>, "
4465 "CW<\\*(C`last\\*(C'>, and CW<\\*(C`redo\\*(C'>. If the LABEL is omitted, "
4466 "the loop control statement refers to the innermost enclosing loop. This may "
4467 "include dynamically searching through your call-stack at run time to find "
4468 "the LABEL. Such desperate behavior triggers a warning if you use the "
4469 "CW<\\*(C`use warnings\\*(C'> pragma or the B<-w> flag. If more than one "
4470 "label with the same name occurs, any reference to that name refers to the "
4471 "one labelling the innermost enclosing loop."
4472 msgstr ""
4473 "تنفيذ جملة CW<\\*(C`while\\*(C'> الكتلة طالما كان التعبير صحيحًا. جملة "
4474 "CW<\\*(C`until\\*(C'> تنفذ الكتلة طالما كان التعبير خاطئًا. الـ LABEL "
4475 "اختياري، وإذا وُجد، فإنه يتكون من معرف متبوع بنقطتين. يحدد LABEL الحلقة لجمل "
4476 "التحكم في الحلقة CW<\\*(C`next\\*(C'> و CW<\\*(C`last\\*(C'> و "
4477 "CW<\\*(C`redo\\*(C'>. إذا حُذف LABEL، فإن جملة التحكم في الحلقة تشير إلى "
4478 "الحلقة المحيطة الأعمق. قد يتضمن ذلك البحث ديناميكيًا عبر مكدس الاستدعاءات "
4479 "الخاص بك في وقت التشغيل للعثور على LABEL. يطلق هذا السلوك اليائس تحذيرًا إذا "
4480 "كنت تستخدم برامج CW<\\*(C`use warnings\\*(C'> أو علم B<-w>. إذا حدث أكثر من "
4481 "وسم بنفس الاسم، فإن أي إشارة إلى ذلك الاسم تشير إلى الوسم الذي يميز الحلقة "
4482 "المحيطة الأعمق."
4483
4484 #. type: Plain text
4485 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4486 #: opensuse-tumbleweed
4487 msgid ""
4488 "If the condition expression of a CW<\\*(C`while\\*(C'> statement is based on "
4489 "any of a group of iterative expression types then it gets some magic "
4490 "treatment. The affected iterative expression types are "
4491 "CW<\\*(C`readline\\*(C'>, the CW<\\*(C`E<lt>FILEHANDLEE<gt>\\*(C'> input "
4492 "operator, CW<\\*(C`readdir\\*(C'>, CW<\\*(C`glob\\*(C'>, the "
4493 "CW<\\*(C`E<lt>PATTERNE<gt>\\*(C'> globbing operator, and "
4494 "CW<\\*(C`each\\*(C'>. If the condition expression is one of these "
4495 "expression types, then the value yielded by the iterative operator will be "
4496 "implicitly assigned to CW<$_>. If the condition expression is one of these "
4497 "expression types or an explicit assignment of one of them to a scalar, then "
4498 "the condition actually tests for definedness of the expression\\*(Aqs value, "
4499 "not for its regular truth value."
4500 msgstr ""
4501 "إذا كان تعبير الشرط في جملة CW<\\*(C`while\\*(C'> يعتمد على أي من مجموعة من "
4502 "أنواع التعبيرات التكرارية، فإنه يحصل على بعض المعاملة السحرية. أنواع "
4503 "التعبيرات التكرارية المتأثرة هي CW<\\*(C`readline\\*(C'>، وعامل الإدخال "
4504 "CW<\\*(C`E<lt>FILEHANDLEE<gt>\\*(C'>، و CW<\\*(C`readdir\\*(C'>، و "
4505 "CW<\\*(C`glob\\*(C'>، وعامل التحجيم CW<\\*(C`E<lt>PATTERNE<gt>\\*(C'>، و "
4506 "CW<\\*(C`each\\*(C'>. إذا كان تعبير الشرط أحد أنواع التعبيرات هذه، فستُسند "
4507 "القيمة التي ينتجها العامل التكراري ضمنيًا إلى CW<$_>. إذا كان تعبير الشرط أحد "
4508 "أنواع التعبيرات هذه أو إسنادًا صريحًا لأحدها إلى مقدار عددي، فإن الشرط يختبر "
4509 "في الواقع تعريف قيمة التعبير، وليس قيمته المنطقية العادية."
4510
4511 #. type: Plain text
4512 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4513 #: opensuse-tumbleweed
4514 msgid ""
4515 "Extension modules can also hook into the Perl parser to define new kinds of "
4516 "compound statements. These are introduced by a keyword which the extension "
4517 "recognizes, and the syntax following the keyword is defined entirely by the "
4518 "extension. If you are an implementor, see \"PL_keyword_plugin\" in perlapi "
4519 "for the mechanism. If you are using such a module, see the module\\*(Aqs "
4520 "documentation for details of the syntax that it defines."
4521 msgstr ""
4522 "يمكن للوحدات الامتدادية أيضًا الارتباط بمحلل بيرل لتعريف أنواع جديدة من الجمل "
4523 "المركبة. تُقدم هذه عن طريق كلمة مفتاحية تتعرف عليها الوحدة الامتدادية، ويُعرف "
4524 "بناء الجملة الذي يلي الكلمة المفتاحية بالكامل بواسطة الامتداد. إذا كنت "
4525 "مطورًا، فراجع \"PL_keyword_plugin\" في perlapi لمعرفة الآلية. إذا كنت تستخدم "
4526 "مثل هذه الوحدة، فراجع وثائق الوحدة للحصول على تفاصيل حول بناء الجملة الذي "
4527 "تعرفه."
4528
4529 #. type: Plain text
4530 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4531 #: opensuse-tumbleweed
4532 msgid ""
4533 "Loop control statements don\\*(Aqt work in an CW<\\*(C`if\\*(C'> or "
4534 "CW<\\*(C`unless\\*(C'>, since they aren\\*(Aqt loops. You can double the "
4535 "braces to make them such, though."
4536 msgstr ""
4537 "لا تعمل جمل التحكم في الحلقة في CW<\\*(C`if\\*(C'> أو "
4538 "CW<\\*(C`unless\\*(C'>، لأنها ليست حلقات تكرار. يمكنك مضاعفة الأقواس "
4539 "المتعرجة لجعلها كذلك، مع ذلك."
4540
4541 #. type: Plain text
4542 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4543 #: opensuse-tumbleweed
4544 msgid ""
4545 "Perl\\*(Aqs C-style CW<\\*(C`for\\*(C'> loop works like the corresponding "
4546 "CW<\\*(C`while\\*(C'> loop; that means that this:"
4547 msgstr ""
4548 "حلقة CW<\\*(C`for\\*(C'> بأسلوب C في بيرل تعمل مثل حلقة "
4549 "CW<\\*(C`while\\*(C'> المقابلة؛ وهذا يعني أن هذا:"
4550
4551 #. type: Plain text
4552 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4553 #: opensuse-tumbleweed
4554 msgid ""
4555 "Besides the normal array index looping, CW<\\*(C`for\\*(C'> can lend itself "
4556 "to many other interesting applications. Here\\*(Aqs one that avoids the "
4557 "problem you get into if you explicitly test for end-of-file on an "
4558 "interactive file descriptor causing your program to appear to hang."
4559 msgstr ""
4560 "بالإضافة إلى تكرار فهارس المصفوفات العادي، يمكن لـ CW<\\*(C`for\\*(C'> أن "
4561 "تصلح للعديد من التطبيقات المثيرة للاهتمام الأخرى. إليك واحدًا يتجنب المشكلة "
4562 "التي تقع فيها إذا قمت باختبار نهاية الملف بشكل صريح على واصف ملف تفاعلي مما "
4563 "يتسبب في ظهور برنامجك وكأنه متوقف."
4564
4565 #. type: Plain text
4566 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4567 #: opensuse-tumbleweed
4568 msgid ""
4569 "The CW<\\*(C`foreach\\*(C'> loop iterates over a normal list value and sets "
4570 "the scalar variable VAR to be each element of the list in turn. If the "
4571 "variable is preceded with the keyword CW<\\*(C`my\\*(C'>, then it is "
4572 "lexically scoped, and is therefore visible only within the loop. Otherwise, "
4573 "the variable is implicitly local to the loop and regains its former value "
4574 "upon exiting the loop. If the variable was previously declared with "
4575 "CW<\\*(C`my\\*(C'>, it uses that variable instead of the global one, but "
4576 "it\\*(Aqs still localized to the loop. This implicit localization occurs "
4577 "I<only> for non C-style loops."
4578 msgstr ""
4579 "تكرر حلقة CW<\\*(C`foreach\\*(C'> عبر قيمة قائمة عادية وتضبط المتغير العددي "
4580 "VAR ليكون كل عنصر من عناصر القائمة بالدور. إذا سُبق المتغير بالكلمة المفتاحية "
4581 "CW<\\*(C`my\\*(C'>، فإنه يكون ذا نطاق لغوي، وبالتالي لا يكون مرئيًا إلا داخل "
4582 "الحلقة. بخلاف ذلك، يكون المتغير محليًا ضمنيًا للحلقة ويستعيد قيمته السابقة عند "
4583 "الخروج من الحلقة. إذا صُرّح عن المتغير مسبقًا باستخدام CW<\\*(C`my\\*(C'>، فإنه "
4584 "يستخدم ذلك المتغير بدلاً من المتغير العام، لكنه لا يزال محليًا للحلقة. يحدث "
4585 "هذا التوطين الضمني I<فقط> للحلقات التي ليست بأسلوب C."
4586
4587 #. type: Plain text
4588 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4589 #: opensuse-tumbleweed
4590 msgid ""
4591 "If any element of LIST is an lvalue, you can modify it by modifying VAR "
4592 "inside the loop. Conversely, if any element of LIST is NOT an lvalue, any "
4593 "attempt to modify that element will fail. In other words, the "
4594 "CW<\\*(C`foreach\\*(C'> loop index variable is an implicit alias for each "
4595 "item in the list that you\\*(Aqre looping over."
4596 msgstr ""
4597 "إذا كان أي عنصر من عناصر القائمة (LIST) يمثل قيمة يسارية (lvalue)، فيمكنك "
4598 "تعديله عن طريق تعديل VAR داخل الحلقة. وعلى العكس، إذا لم يكن أي عنصر من "
4599 "عناصر LIST قيمة يسارية، فإن أي محاولة لتعديل ذلك العنصر ستفشل. بمعنى آخر، "
4600 "متغير فهرس حلقة CW<\\*(C`foreach\\*(C'> هو اسم مستعار ضمني لكل عنصر في "
4601 "القائمة التي تكرر عبرها."
4602
4603 #. type: Plain text
4604 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4605 #: opensuse-tumbleweed
4606 msgid ""
4607 "If any part of LIST is an array, CW<\\*(C`foreach\\*(C'> will get very "
4608 "confused if you add or remove elements within the loop body, for example "
4609 "with \\&CW<\\*(C`splice\\*(C'>. So don\\*(Aqt do that."
4610 msgstr ""
4611 "إذا كان أي جزء من LIST مصفوفة، فإن CW<\\*(C`foreach\\*(C'> ستصبح مرتبكة "
4612 "للغاية إذا أضفت أو أزلت عناصر داخل جسم الحلقة، على سبيل المثال باستخدام "
4613 "\\&CW<\\*(C`splice\\*(C'>. لذا لا تفعل ذلك."
4614
4615 #. type: Plain text
4616 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4617 #: opensuse-tumbleweed
4618 msgid ""
4619 "\\&CW<\\*(C`foreach\\*(C'> probably won\\*(Aqt do what you expect if VAR is "
4620 "a tied or other special variable. Don\\*(Aqt do that either."
4621 msgstr ""
4622 "\\&CW<\\*(C`foreach\\*(C'> ربما لن تفعل ما تتوقعه إذا كان VAR متغيرًا مربوطًا "
4623 "أو متغيرًا خاصًا آخر. لا تفعل ذلك أيضًا."
4624
4625 #. type: Plain text
4626 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4627 #: opensuse-tumbleweed
4628 msgid ""
4629 "As of Perl 5.22, there is an experimental variant of this loop that accepts "
4630 "a variable preceded by a backslash for VAR, in which case the items in the "
4631 "LIST must be references. The backslashed variable will become an alias to "
4632 "each referenced item in the LIST, which must be of the correct type. The "
4633 "variable needn\\*(Aqt be a scalar in this case, and the backslash may be "
4634 "followed by CW<\\*(C`my\\*(C'>. To use this form, you must enable the "
4635 "CW<\\*(C`refaliasing\\*(C'> feature via CW<\\*(C`use feature\\*(C'>. (See "
4636 "feature. See also \"Assigning to References\" in perlref.)"
4637 msgstr ""
4638 "بدءًا من بيرل 5.22، هناك متغير تجريبي لهذه الحلقة يقبل متغيرًا مسبوقًا بشرطة "
4639 "مائلة عكسية لـ VAR، وفي هذه الحالة يجب أن تكون العناصر في LIST مراجع. سيصبح "
4640 "المتغير المسبوق بشرطة مائلة عكسية اسمًا مستعارًا لكل عنصر مرجعي في LIST، والذي "
4641 "يجب أن يكون من النوع الصحيح. لا يلزم أن يكون المتغير مقدارًا عدديًا في هذه "
4642 "الحالة، وقد تتبع الشرطة المائلة العكسية CW<\\*(C`my\\*(C'>. لاستخدام هذا "
4643 "النموذج، يجب عليك تمكين ميزة CW<\\*(C`refaliasing\\*(C'> عبر CW<\\*(C`use "
4644 "feature\\*(C'>. (انظر الميزة. انظر أيضًا \"Assigning to References\" في "
4645 "perlref.)"
4646
4647 #. type: Plain text
4648 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4649 #: opensuse-tumbleweed
4650 msgid ""
4651 "As of Perl 5.36, you can iterate over multiple values at a time. You can "
4652 "only iterate with lexical scalars as the iterator variables - unlike list "
4653 "assignment, it\\*(Aqs not possible to use CW<\\*(C`undef\\*(C'> to signify a "
4654 "value that isn\\*(Aqt wanted. This is a limitation of the current "
4655 "implementation, and might be changed in the future."
4656 msgstr ""
4657 "بدءًا من بيرل 5.36، يمكنك التكرار عبر قيم متعددة في المرة الواحدة. يمكنك "
4658 "التكرار فقط باستخدام مقادير عددية لغوية كمتغيرات تكرار - على عكس إسناد "
4659 "القائمة، ليس من الممكن استخدام CW<\\*(C`undef\\*(C'> للإشارة إلى قيمة غير "
4660 "مرغوب فيها. هذا قيد في التنفيذ الحالي، وقد يتغير في المستقبل."
4661
4662 #. type: Plain text
4663 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4664 #: opensuse-tumbleweed
4665 msgid ""
4666 "If the size of the LIST is not an exact multiple of the number of iterator "
4667 "variables, then on the last iteration the \"excess\" iterator variables are "
4668 "aliases to CW<\\*(C`undef\\*(C'>, as if the LIST had CW<\\*(C`, undef\\*(C'> "
4669 "appended as many times as needed for its length to become an exact "
4670 "multiple. This happens whether LIST is a literal LIST or an array - i.e. "
4671 "arrays are not extended if their size is not a multiple of the iteration "
4672 "size, consistent with iterating an array one-at-a-time. As these padding "
4673 "elements are not lvalues, attempting to modify them will fail, consistent "
4674 "with the behaviour when iterating a list with literal "
4675 "CW<\\*(C`undef\\*(C'>s. If this is not the behaviour you desire, then "
4676 "before the loop starts either explicitly extend your array to be an exact "
4677 "multiple, or explicitly throw an exception."
4678 msgstr ""
4679 "إذا لم يكن حجم LIST مضاعفًا دقيقًا لعدد متغيرات التكرار، ففي التكرار الأخير "
4680 "ستكون متغيرات التكرار \"الزائدة\" أسماءً مستعارة لـ CW<\\*(C`undef\\*(C'>، "
4681 "كما لو كان قد أُلحق بـ LIST CW<\\*(C`, undef\\*(C'> لعدد المرات المطلوب حتى "
4682 "يصبح طولها مضاعفًا دقيقًا. يحدث هذا سواء كانت LIST قائمة حرفية أو مصفوفة - أي "
4683 "أن المصفوفات لا تُمدد إذا لم يكن حجمها مضاعفًا لحجم التكرار، بما يتوافق مع "
4684 "تكرار مصفوفة عنصرًا تلو الآخر. وبما أن عناصر الحشو هذه ليست قيمًا يسارية "
4685 "(lvalues)، فإن محاولة تعديلها ستفشل، بما يتوافق مع السلوك عند تكرار قائمة "
4686 "تحتوي على CW<\\*(C`undef\\*(C'> حرفية. إذا لم يكن هذا هو السلوك الذي تريده، "
4687 "فقبل بدء الحلقة إما أن تمدد مصفوفتك صراحة لتكون مضاعفًا دقيقًا، أو تطلق "
4688 "استثناءً صراحة."
4689
4690 #. type: Plain text
4691 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4692 #: opensuse-tumbleweed
4693 msgid ""
4694 "Here\\*(Aqs how a C programmer might code up a particular algorithm in Perl:"
4695 msgstr "إليك كيف قد يقوم مبرمج C بكتابة خوارزمية معينة في بيرل:"
4696
4697 #. type: Plain text
4698 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4699 #: opensuse-tumbleweed
4700 msgid ""
4701 "Whereas here\\*(Aqs how a Perl programmer more comfortable with the idiom "
4702 "might do it:"
4703 msgstr "بينما إليك كيف قد يفعل ذلك مبرمج بيرل الأكثر دراية بأسلوب اللغة:"
4704
4705 #. type: Plain text
4706 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4707 #: opensuse-tumbleweed
4708 msgid ""
4709 "See how much easier this is? It\\*(Aqs cleaner, safer, and faster. "
4710 "It\\*(Aqs cleaner because it\\*(Aqs less noisy. It\\*(Aqs safer because if "
4711 "code gets added between the inner and outer loops later on, the new code "
4712 "won\\*(Aqt be accidentally executed. The CW<\\*(C`next\\*(C'> explicitly "
4713 "iterates the other loop rather than merely terminating the inner one. And "
4714 "it\\*(Aqs faster because Perl executes a CW<\\*(C`foreach\\*(C'> statement "
4715 "more rapidly than it would the equivalent C-style CW<\\*(C`for\\*(C'> loop."
4716 msgstr ""
4717 "أرأيت كم هو أسهل؟ إنه أنظف، وأكثر أمانًا، وأسرع. إنه أنظف لأنه أقل ضجيجًا. وهو "
4718 "أكثر أمانًا لأنه إذا أُضيفت شفرة بين الحلقات الداخلية والخارجية لاحقًا، فلن "
4719 "تُنفذ الشفرة الجديدة عرضًا. تقوم CW<\\*(C`next\\*(C'> بتكرار الحلقة الأخرى "
4720 "صراحة بدلاً من مجرد إنهاء الحلقة الداخلية. وهي أسرع لأن بيرل ينفذ جملة "
4721 "CW<\\*(C`foreach\\*(C'> بسرعة أكبر مما يفعل مع حلقة CW<\\*(C`for\\*(C'> "
4722 "المكافئة بأسلوب C."
4723
4724 #. type: Plain text
4725 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4726 #: opensuse-tumbleweed
4727 msgid ""
4728 "A BLOCK by itself (labeled or not) is semantically equivalent to a loop that "
4729 "executes once. Thus you can use any of the loop control statements in it to "
4730 "leave or restart the block. (Note that this is \\&I<NOT> true in "
4731 "CW<\\*(C`eval{}\\*(C'>, CW<\\*(C`sub{}\\*(C'>, or, contrary to popular "
4732 "belief, \\&CW<\\*(C`do{}\\*(C'> blocks, which do I<NOT> count as loops.) "
4733 "The CW<\\*(C`continue\\*(C'> block is optional."
4734 msgstr ""
4735 "تكون الـ BLOCK بمفردها (سواء كانت موسومة أم لا) مكافئة دلاليًا لحلقة تُنفذ مرة "
4736 "واحدة. وبالتالي يمكنك استخدام أي من جمل التحكم في الحلقة فيها لمغادرة الكتلة "
4737 "أو إعادة تشغيلها. (لاحظ أن هذا \\&I<ليس> صحيحًا في كتل "
4738 "CW<\\*(C`eval{}\\*(C'>، أو CW<\\*(C`sub{}\\*(C'>، أو خلافًا للاعتقاد الشائع، "
4739 "كتل \\&CW<\\*(C`do{}\\*(C'>، والتي I<لا> تُعد حلقات.) كتلة "
4740 "CW<\\*(C`continue\\*(C'> اختيارية."
4741
4742 #. type: Plain text
4743 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4744 #: opensuse-tumbleweed
4745 msgid ""
4746 "You\\*(Aqll also find that CW<\\*(C`foreach\\*(C'> loop used to create a "
4747 "topicalizer and a switch:"
4748 msgstr ""
4749 "ستجد أيضًا حلقة CW<\\*(C`foreach\\*(C'> تلك تُستخدم لإنشاء موضوعي "
4750 "(topicalizer) ومبدل (switch):"
4751
4752 #. type: Plain text
4753 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4754 #: opensuse-tumbleweed
4755 msgid ""
4756 "The CW<\\*(C`switch\\*(C'> feature is discouraged for new code and is "
4757 "retained for backward compatibility."
4758 msgstr ""
4759 "لا يُنصح باستخدام ميزة CW<\\*(C`switch\\*(C'> في الشفرات الجديدة ويُحتفظ بها "
4760 "للتوافق مع الإصدارات السابقة."
4761
4762 #. type: Plain text
4763 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4764 #: opensuse-tumbleweed
4765 msgid ""
4766 "Starting from Perl 5.10.1 (well, 5.10.0, but it didn\\*(Aqt work right), you "
4767 "can say"
4768 msgstr ""
4769 "بدءًا من بيرل 5.10.1 (حسنًا، 5.10.0، لكنها لم تكن تعمل بشكل صحيح)، يمكنك قول"
4770
4771 #. type: Plain text
4772 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4773 #: opensuse-tumbleweed
4774 msgid ""
4775 "to enable the switch feature. This is loosely based on an old version of a "
4776 "Raku proposal, but it no longer resembles the Raku construct. You also get "
4777 "the switch feature whenever you declare that your code prefers to run under "
4778 "a version of Perl between 5.10 and 5.34. For example:"
4779 msgstr ""
4780 "لتمكين ميزة المبدل. يعتمد هذا بشكل فضفاض على نسخة قديمة من اقتراح لراكو، "
4781 "لكنه لم يعد يشبه تركيب راكو. تحصل أيضًا على ميزة المبدل كلما صرحت بأن شفرتك "
4782 "تفضل العمل تحت إصدار من بيرل بين 5.10 و 5.34. على سبيل المثال:"
4783
4784 #. type: Plain text
4785 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4786 #: opensuse-tumbleweed
4787 msgid ""
4788 "Under the \"switch\" feature, Perl gains the keywords "
4789 "\\&CW<\\*(C`given\\*(C'>, CW<\\*(C`when\\*(C'>, CW<\\*(C`default\\*(C'>, "
4790 "CW<\\*(C`continue\\*(C'>, and CW<\\*(C`break\\*(C'>. Starting from Perl "
4791 "5.16, one can prefix the switch keywords with CW<\\*(C`CORE::\\*(C'> to "
4792 "access the feature without a CW<\\*(C`use feature\\*(C'> statement. The "
4793 "keywords CW<\\*(C`given\\*(C'> and \\&CW<\\*(C`when\\*(C'> are analogous to "
4794 "CW<\\*(C`switch\\*(C'> and \\&CW<\\*(C`case\\*(C'> in other languages -- "
4795 "though CW<\\*(C`continue\\*(C'> is not -- so the code in the previous "
4796 "section could be rewritten as"
4797 msgstr ""
4798 "تحت ميزة \"switch\"، يكتسب بيرل الكلمات المفتاحية \\&CW<\\*(C`given\\*(C'> و "
4799 "CW<\\*(C`when\\*(C'> و CW<\\*(C`default\\*(C'> و CW<\\*(C`continue\\*(C'> و "
4800 "CW<\\*(C`break\\*(C'>. بدءًا من بيرل 5.16، يمكن للمرء أن يسبق كلمات المبدل "
4801 "المفتاحية بـ CW<\\*(C`CORE::\\*(C'> للوصول إلى الميزة دون جملة CW<\\*(C`use "
4802 "feature\\*(C'>. الكلمتان المفتاحيتان CW<\\*(C`given\\*(C'> و "
4803 "\\&CW<\\*(C`when\\*(C'> تشبهان CW<\\*(C`switch\\*(C'> و "
4804 "\\&CW<\\*(C`case\\*(C'> في لغات أخرى -- على الرغم من أن "
4805 "CW<\\*(C`continue\\*(C'> ليست كذلك -- لذا يمكن إعادة كتابة الشفرة في القسم "
4806 "السابق كـ"
4807
4808 #. type: Plain text
4809 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4810 #: opensuse-tumbleweed
4811 msgid ""
4812 "The CW<\\*(C`foreach\\*(C'> is another way to set a topicalizer. If you "
4813 "wish to use CW<\\*(C`given\\*(C'>, that could be written like this:"
4814 msgstr ""
4815 "تُعد CW<\\*(C`foreach\\*(C'> طريقة أخرى لضبط الموضوعي. إذا كنت ترغب في "
4816 "استخدام CW<\\*(C`given\\*(C'>، فيمكن كتابة ذلك على النحو التالي:"
4817
4818 #. type: Plain text
4819 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4820 #: opensuse-tumbleweed
4821 msgid "Or if you don\\*(Aqt care to play it safe, like this:"
4822 msgstr "أو إذا كنت لا تهتم بالبقاء في الجانب الآمن، هكذا:"
4823
4824 #. type: Plain text
4825 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4826 #: opensuse-tumbleweed
4827 msgid ""
4828 "Although not for the faint of heart, Perl does support a "
4829 "CW<\\*(C`goto\\*(C'> statement. There are three forms: CW<\\*(C`goto\\*(C'>-"
4830 "LABEL, CW<\\*(C`goto\\*(C'>-EXPR, and \\&CW<\\*(C`goto\\*(C'>-&NAME. A "
4831 "loop\\*(Aqs LABEL is not actually a valid target for a CW<\\*(C`goto\\*(C'>; "
4832 "it\\*(Aqs just the name of the loop."
4833 msgstr ""
4834 "على الرغم من أنها ليست لضعاف القلوب، إلا أن بيرل يدعم جملة "
4835 "CW<\\*(C`goto\\*(C'>. هناك ثلاثة أشكال: CW<\\*(C`goto\\*(C'>-LABEL و "
4836 "CW<\\*(C`goto\\*(C'>-EXPR و \\&CW<\\*(C`goto\\*(C'>-&NAME. إن LABEL الحلقة "
4837 "ليس في الواقع هدفًا صالحًا لـ CW<\\*(C`goto\\*(C'>؛ إنه مجرد اسم للحلقة."
4838
4839 #. type: Plain text
4840 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4841 #: opensuse-tumbleweed
4842 msgid ""
4843 "The CW<\\*(C`goto\\*(C'>-LABEL form finds the statement labeled with LABEL "
4844 "and resumes execution there. It may not be used to go into any construct "
4845 "that requires initialization, such as a subroutine or a "
4846 "CW<\\*(C`foreach\\*(C'> loop. It also can\\*(Aqt be used to go into a "
4847 "construct that is optimized away. It can be used to go almost anywhere else "
4848 "within the dynamic scope, including out of subroutines, but it\\*(Aqs "
4849 "usually better to use some other construct such as CW<\\*(C`last\\*(C'> or "
4850 "CW<\\*(C`die\\*(C'>. The author of Perl has never felt the need to use this "
4851 "form of CW<\\*(C`goto\\*(C'> (in Perl, that is--C is another matter)."
4852 msgstr ""
4853 "يجد نموذج CW<\\*(C`goto\\*(C'>-LABEL الجملة الموسومة بـ LABEL ويستأنف "
4854 "التنفيذ هناك. لا يجوز استخدامه للدخول في أي تركيب يتطلب تهيئة، مثل الروتين "
4855 "الفرعي أو حلقة CW<\\*(C`foreach\\*(C'>. كما لا يمكن استخدامه للدخول في تركيب "
4856 "يُحسن بعيدًا. يمكن استخدامه للذهاب إلى أي مكان آخر تقريبًا داخل النطاق "
4857 "الديناميكي، بما في ذلك خارج الروتينات الفرعية، ولكن عادةً ما يكون من الأفضل "
4858 "استخدام تركيب آخر مثل CW<\\*(C`last\\*(C'> أو CW<\\*(C`die\\*(C'>. لم يشعر "
4859 "مؤلف بيرل أبدًا بالحاجة إلى استخدام هذا النموذج من CW<\\*(C`goto\\*(C'> (في "
4860 "بيرل، أي -- أما في C فالأمر مختلف)."
4861
4862 #. type: Plain text
4863 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4864 #: opensuse-tumbleweed
4865 msgid ""
4866 "The CW<\\*(C`goto\\*(C'>-EXPR form expects a label name, whose scope will be "
4867 "resolved dynamically. This allows for computed CW<\\*(C`goto\\*(C'>s per "
4868 "FORTRAN, but isn\\*(Aqt necessarily recommended if you\\*(Aqre optimizing "
4869 "for maintainability:"
4870 msgstr ""
4871 "يتوقع نموذج CW<\\*(C`goto\\*(C'>-EXPR اسم وسم، والذي سيُحل نطاقه ديناميكيًا. "
4872 "يتيح ذلك جمل CW<\\*(C`goto\\*(C'> المحسوبة كما في FORTRAN، ولكن لا يُنصح به "
4873 "بالضرورة إذا كنت تعمل على تحسين قابلية الصيانة:"
4874
4875 #. type: Plain text
4876 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4877 #: opensuse-tumbleweed
4878 msgid ""
4879 "In almost all cases like this, it\\*(Aqs usually a far, far better idea to "
4880 "use the structured control flow mechanisms of CW<\\*(C`next\\*(C'>, "
4881 "CW<\\*(C`last\\*(C'>, or CW<\\*(C`redo\\*(C'> instead of resorting to a "
4882 "CW<\\*(C`goto\\*(C'>. For certain applications, the catch and throw pair of "
4883 "\\&CW<\\*(C`eval{}\\*(C'> and B<die()> for exception processing can also be "
4884 "a prudent approach."
4885 msgstr ""
4886 "في جميع الحالات مثل هذه تقريبًا، عادةً ما تكون فكرة أفضل بكثير استخدام آليات "
4887 "تدفق التحكم المهيكلة مثل CW<\\*(C`next\\*(C'> أو CW<\\*(C`last\\*(C'> أو "
4888 "CW<\\*(C`redo\\*(C'> بدلاً من اللجوء إلى CW<\\*(C`goto\\*(C'>. بالنسبة لبعض "
4889 "التطبيقات، يمكن أن يكون زوج الالتقاط والرمي \\&CW<\\*(C`eval{}\\*(C'> و "
4890 "B<die()> لمعالجة الاستثناءات نهجًا حكيمًا أيضًا."
4891
4892 #. type: Plain text
4893 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4894 #: opensuse-tumbleweed
4895 msgid ""
4896 "Beginning in Perl 5.12, Perl accepts an ellipsis, \"CW<\\*(C`...\\*(C'>\", "
4897 "as a placeholder for code that you haven\\*(Aqt implemented yet. When Perl "
4898 "5.12 or later encounters an ellipsis statement, it parses this without "
4899 "error, but if and when you should actually try to execute it, Perl throws an "
4900 "exception with the text CW<\\*(C`Unimplemented\\*(C'>:"
4901 msgstr ""
4902 "بدءًا من بيرل 5.12، يقبل بيرل علامة الحذف، \"CW<\\*(C`...\\*(C'>\"، كعنصر "
4903 "نائب للشفرة التي لم تنفذها بعد. عندما يواجه بيرل 5.12 أو أحدث جملة تحتوي على "
4904 "علامة حذف، فإنه يحللها دون خطأ، ولكن إذا حاولت تنفيذها فعليًا، فإن بيرل يرمي "
4905 "استثناءً بالنص CW<\\*(C`Unimplemented\\*(C'>:"
4906
4907 #. type: Plain text
4908 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4909 #: opensuse-tumbleweed
4910 msgid ""
4911 "There are some cases where Perl can\\*(Aqt immediately tell the difference "
4912 "between an expression and a statement. For instance, the syntax for a block "
4913 "and an anonymous hash reference constructor look the same unless "
4914 "there\\*(Aqs something in the braces to give Perl a hint. The ellipsis is a "
4915 "syntax error if Perl doesn\\*(Aqt guess that the CW<\\*(C`{ ... }\\*(C'> is "
4916 "a block. Inside your block, you can use a CW<\\*(C`;\\*(C'> before the "
4917 "ellipsis to denote that the \\&CW<\\*(C`{ ... }\\*(C'> is a block and not a "
4918 "hash reference constructor."
4919 msgstr ""
4920 "هناك بعض الحالات التي لا يستطيع فيها بيرل التمييز على الفور بين التعبير "
4921 "والجملة. على سبيل المثال، يبدو بناء جملة الكتلة ومنشئ مرجع الخبيئة المجهول "
4922 "متشابهين ما لم يكن هناك شيء في الأقواس المتعرجة لإعطاء تلميح لـ بيرل. علامة "
4923 "الحذف هي خطأ نحوي إذا لم يخمن بيرل أن CW<\\*(C`{ ... }\\*(C'> هي كتلة. داخل "
4924 "كتلتك، يمكنك استخدام CW<\\*(C`;\\*(C'> قبل علامة الحذف للإشارة إلى أن "
4925 "\\&CW<\\*(C`{ ... }\\*(C'> هي كتلة وليست منشئ مرجع خبيئة."
4926
4927 #. type: Plain text
4928 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4929 #: opensuse-tumbleweed
4930 msgid ""
4931 "Perl has a mechanism for intermixing documentation with source code. While "
4932 "it\\*(Aqs expecting the beginning of a new statement, if the compiler "
4933 "encounters a line that begins with an equal sign and a word, like this"
4934 msgstr ""
4935 "يحتوي بيرل على آلية لخلط الوثائق مع الشفرة المصدرية. وبينما يتوقع بداية جملة "
4936 "جديدة، إذا واجه المصرف سطرًا يبدأ بعلامة يساوي وكلمة، مثل هذا"
4937
4938 #. type: Plain text
4939 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4940 #: opensuse-tumbleweed
4941 msgid ""
4942 "You probably shouldn\\*(Aqt rely upon the CW<warn()> being podded out "
4943 "forever. Not all pod translators are well-behaved in this regard, and "
4944 "perhaps the compiler will become pickier."
4945 msgstr ""
4946 "ربما لا ينبغي عليك الاعتماد على كون CW<warn()> خارج النطاق (podded out) "
4947 "للأبد. ليست كل مترجمات pod حسنة السلوك في هذا الصدد، وربما يصبح المصرف أكثر "
4948 "تطلبًا."
4949
4950 #. type: Plain text
4951 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4952 #: opensuse-tumbleweed
4953 msgid ""
4954 "Perl can process line directives, much like the C preprocessor. Using this, "
4955 "one can control Perl\\*(Aqs idea of filenames and line numbers in error or "
4956 "warning messages (especially for strings that are processed with "
4957 "CW<eval()>). The syntax for this mechanism is almost the same as for most C "
4958 "preprocessors: it matches the regular expression"
4959 msgstr ""
4960 "يمكن لـ بيرل معالجة توجيهات الأسطر، تمامًا مثل معالج C المسبق. وباستخدام هذا، "
4961 "يمكن للمرء التحكم في فكرة بيرل عن أسماء الملفات وأرقام الأسطر في رسائل الخطأ "
4962 "أو التحذير (خاصة للسلاسل النصية التي تُعالج بـ CW<eval()>). بناء الجملة لهذه "
4963 "الآلية هو نفسه تقريبًا لمعظم معالجات C المسبقة: فهو يطابق التعبير النمطي"
4964
4965 #. type: Plain text
4966 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4967 #: opensuse-tumbleweed
4968 msgid ""
4969 "There is a fairly obvious gotcha included with the line directive: Debuggers "
4970 "and profilers will only show the last source line to appear at a particular "
4971 "line number in a given file. Care should be taken not to cause line number "
4972 "collisions in code you\\*(Aqd like to debug later."
4973 msgstr ""
4974 "هناك فخ واضح تمامًا متضمن في توجيه السطر: ستظهر المنقحات والمحللات فقط آخر "
4975 "سطر مصدري يظهر عند رقم سطر معين في ملف معين. يجب توخي الحذر لتجنب تضارب "
4976 "أرقام الأسطر في الشفرة التي ترغب في تنقيحها لاحقًا."
4977
4978 #. type: Plain text
4979 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4980 #: opensuse-tumbleweed
4981 msgid ""
4982 "These rules are complicated, but the goal is for them to do what you want "
4983 "(even if you don\\*(Aqt quite understand why they are doing it). For "
4984 "example:"
4985 msgstr ""
4986 "هذه القواعد معقدة، لكن الهدف منها هو أن تفعل ما تريد (حتى لو لم تفهم تمامًا "
4987 "سبب قيامها بذلك). على سبيل المثال:"
4988
4989 #. type: Plain text
4990 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4991 #: opensuse-tumbleweed
4992 msgid ""
4993 "Tautologous boolean operators are still going to be optimized away. "
4994 "Don\\*(Aqt be tempted to write"
4995 msgstr "لا تزال العمليات المنطقية الحشوية ستُحسن بعيدًا. لا تنجرف لكتابة"
4996
4997 #. type: Plain text
4998 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
4999 #: opensuse-tumbleweed
5000 msgid ""
5001 "This is somewhat equivalent to the C-style switch statement\\*(Aqs "
5002 "fallthrough functionality (not to be confused with I<Perl\\*(Aqs> "
5003 "fallthrough functionality--see below), wherein the same block is used for "
5004 "several \\&CW<\\*(C`case\\*(C'> statements."
5005 msgstr ""
5006 "هذا يعادل إلى حد ما وظيفة السقوط (fallthrough) في جملة switch بأسلوب C (لا "
5007 "ينبغي الخلط بينها وبين وظيفة السقوط في I<بيرل> -- انظر أدناه)، حيث تُستخدم "
5008 "نفس الكتلة لعدة جمل \\&CW<\\*(C`case\\*(C'>."
5009
5010 #. type: Plain text
5011 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
5012 #: opensuse-tumbleweed
5013 msgid ""
5014 "When a CW<\\*(C`given\\*(C'> statement is also a valid expression (for "
5015 "example, when it\\*(Aqs the last statement of a block), it evaluates to:"
5016 msgstr ""
5017 "عندما تكون جملة CW<\\*(C`given\\*(C'> تعبيرًا صالحًا أيضًا (على سبيل المثال، "
5018 "عندما تكون الجملة الأخيرة في كتلة)، فإنها تؤول إلى:"
5019
5020 #. type: Plain text
5021 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
5022 #: opensuse-tumbleweed
5023 msgid ""
5024 "Currently, CW<\\*(C`given\\*(C'> blocks can\\*(Aqt always be used as proper "
5025 "expressions. This may be addressed in a future version of Perl."
5026 msgstr ""
5027 "حاليًا، لا يمكن دائمًا استخدام كتل CW<\\*(C`given\\*(C'> كتعبيرات حقيقية. قد "
5028 "يُعالج هذا في إصدار مستقبلي من بيرل."
5029
5030 #. type: Plain text
5031 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
5032 #: opensuse-tumbleweed
5033 msgid ""
5034 "Instead of using CW<given()>, you can use a CW<foreach()> loop. For "
5035 "example, here\\*(Aqs one way to count how many times a particular string "
5036 "occurs in an array:"
5037 msgstr ""
5038 "بدلاً من استخدام CW<given()>، يمكنك استخدام حلقة CW<foreach()>. على سبيل "
5039 "المثال، إليك طريقة واحدة لعد عدد مرات ظهور سلسلة نصية معينة في مصفوفة:"
5040
5041 #. type: Plain text
5042 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
5043 #: opensuse-tumbleweed
5044 msgid ""
5045 "At the end of all CW<\\*(C`when\\*(C'> blocks, there is an implicit "
5046 "CW<\\*(C`next\\*(C'>. You can override that with an explicit "
5047 "CW<\\*(C`last\\*(C'> if you\\*(Aqre interested in only the first match alone."
5048 msgstr ""
5049 "في نهاية جميع كتل CW<\\*(C`when\\*(C'>، يوجد CW<\\*(C`next\\*(C'> ضمني. "
5050 "يمكنك تجاوز ذلك بـ CW<\\*(C`last\\*(C'> صريح إذا كنت مهتمًا بالمطابقة الأولى "
5051 "وحدها."
5052
5053 #. type: Plain text
5054 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
5055 #: opensuse-tumbleweed
5056 msgid ""
5057 "This doesn\\*(Aqt work if you explicitly specify a loop variable, as in "
5058 "CW<\\*(C`for $item (@array)\\*(C'>. You have to use the default variable "
5059 "CW<$_>."
5060 msgstr ""
5061 "لا يعمل هذا إذا قمت بتحديد متغير حلقة بشكل صريح، كما في CW<\\*(C`for $item "
5062 "(@array)\\*(C'>. يجب عليك استخدام المتغير المبدئي CW<$_>."
5063
5064 #. type: Plain text
5065 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
5066 #: opensuse-tumbleweed
5067 msgid ""
5068 "The Perl 5 smartmatch and CW<\\*(C`given\\*(C'>/CW<\\*(C`when\\*(C'> "
5069 "constructs are not compatible with their Raku analogues. The most visible "
5070 "difference and least important difference is that, in Perl 5, parentheses "
5071 "are required around the argument to CW<given()> and CW<when()> (except when "
5072 "this last one is used as a statement modifier). Parentheses in Raku are "
5073 "always optional in a control construct such as CW<if()>, CW<while()>, or "
5074 "CW<when()>; they can\\*(Aqt be made optional in Perl 5 without a great deal "
5075 "of potential confusion, because Perl 5 would parse the expression"
5076 msgstr ""
5077 "إن تراكيب المطابقة الذكية و CW<\\*(C`given\\*(C'>/CW<\\*(C`when\\*(C'> في "
5078 "بيرل 5 ليست متوافقة مع نظيراتها في راكو. الفرق الأكثر وضوحًا والأقل أهمية هو "
5079 "أنه في بيرل 5، الأقواس مطلوبة حول وسيط CW<given()> و CW<when()> (إلا عندما "
5080 "يُستخدم الأخير كمعدل جملة). الأقواس في راكو اختيارية دائمًا في تراكيب التحكم "
5081 "مثل CW<if()>، أو CW<while()>، أو CW<when()>؛ ولا يمكن جعلها اختيارية في بيرل "
5082 "5 دون قدر كبير من الارتباك المحتمل، لأن بيرل 5 سيحلل التعبير"
5083
5084 #. type: Plain text
5085 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
5086 #: opensuse-tumbleweed
5087 msgid ""
5088 "But it doesn\\*(Aqt work at all in Raku. Instead, you should use the "
5089 "(parallelizable) CW<\\*(C`any\\*(C'> operator:"
5090 msgstr ""
5091 "لكنه لا يعمل على الإطلاق في راكو. بدلاً من ذلك، يجب عليك استخدام عامل "
5092 "CW<\\*(C`any\\*(C'> (القابل للتوازي):"
5093
5094 #. type: Plain text
5095 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
5096 #: opensuse-tumbleweed
5097 msgid ""
5098 "The table of smartmatches in \"Smartmatch Operator\" in perlop is not "
5099 "identical to that proposed by the Raku specification, mainly due to "
5100 "differences between Raku\\*(Aqs and Perl 5\\*(Aqs data models, but also "
5101 "because the Raku spec has changed since Perl 5 rushed into early adoption."
5102 msgstr ""
5103 "جدول المطابقات الذكية في \"Smartmatch Operator\" في perlop ليس متطابقًا مع "
5104 "ذلك المقترح في مواصفات راكو، ويرجع ذلك أساسًا إلى الاختلافات بين نماذج بيانات "
5105 "راكو و بيرل 5، وأيضًا لأن مواصفات راكو تغيرت منذ أن سارعت بيرل 5 إلى اعتماده "
5106 "مبكرًا."
5107
5108 #. type: TH
5109 #: fedora-rawhide
5110 #, no-wrap
5111 msgid "2026-03-30"
5112 msgstr "30 مارس 2026"
5113
5114 #. type: TH
5115 #: fedora-rawhide
5116 #, no-wrap
5117 msgid "perl v5.42.2"
5118 msgstr "بيرل v5.40.2"
5119
5120 #. type: TH
5121 #: mageia-cauldron
5122 #, no-wrap
5123 msgid "2025-06-24"
5124 msgstr "24 يونيو 2025"
5125
5126 #. type: TH
5127 #: mageia-cauldron
5128 #, no-wrap
5129 msgid "perl v5.42.0"
5130 msgstr "بيرل v5.42.0"