# Arabic translation of manpages # This file is distributed under the same license as the manpages-l10n package. # Copyright © of this file: # زايد السعيدي , 2026. msgid "" msgstr "" "Project-Id-Version: manpages-l10n\n" "POT-Creation-Date: 2026-06-05 06:34+0200\n" "PO-Revision-Date: 2026-06-03 04:49+0400\n" "Last-Translator: Zayed Al-Saidi \n" "Language-Team: Arabic \n" "Language: ar\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" ".MIME-Version: 1.0\n" "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" "X-Generator: Lokalize 23.08.5\n" # #-#-#-#-# fedora-44: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-# # # #-#-#-#-# fedora-rawhide: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-# # # #-#-#-#-# mageia-cauldron: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-# # # #-#-#-#-# opensuse-leap-16-1: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-# # # #-#-#-#-# opensuse-tumbleweed: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-# # #. #-#-#-#-# debian-trixie: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-# #. ======================================================================== #. type: IX #. #-#-#-#-# debian-unstable: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-# #. ======================================================================== #. type: IX #. #-#-#-#-# fedora-44: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-# #. Required to disable full justification in groff 1.23.0. #. ======================================================================== #. type: IX #. #-#-#-#-# fedora-rawhide: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-# #. Required to disable full justification in groff 1.23.0. #. ======================================================================== #. type: IX #. #-#-#-#-# mageia-cauldron: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-# #. Required to disable full justification in groff 1.23.0. #. ======================================================================== #. type: IX #. #-#-#-#-# opensuse-leap-16-1: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-# #. Required to disable full justification in groff 1.23.0. #. ======================================================================== #. type: IX #. #-#-#-#-# opensuse-tumbleweed: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-# #. Required to disable full justification in groff 1.23.0. #. ======================================================================== #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Title" msgstr "Title" # #-#-#-#-# fedora-44: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-# # # #-#-#-#-# fedora-rawhide: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-# # # #-#-#-#-# mageia-cauldron: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-# # # #-#-#-#-# opensuse-leap-16-1: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-# # # #-#-#-#-# opensuse-tumbleweed: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-# # #. #-#-#-#-# debian-trixie: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-# #. ======================================================================== #. type: IX #. #-#-#-#-# debian-unstable: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-# #. ======================================================================== #. type: IX #. #-#-#-#-# fedora-44: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-# #. Required to disable full justification in groff 1.23.0. #. ======================================================================== #. type: IX #. #-#-#-#-# fedora-rawhide: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-# #. Required to disable full justification in groff 1.23.0. #. ======================================================================== #. type: IX #. #-#-#-#-# mageia-cauldron: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-# #. Required to disable full justification in groff 1.23.0. #. ======================================================================== #. type: IX #. #-#-#-#-# opensuse-leap-16-1: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-# #. Required to disable full justification in groff 1.23.0. #. ======================================================================== #. type: IX #. #-#-#-#-# opensuse-tumbleweed: perlsyn.1.pot (PACKAGE VERSION) #-#-#-#-# #. Required to disable full justification in groff 1.23.0. #. ======================================================================== #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "PERLSYN 1" msgstr "PERLSYN 1" #. type: TH #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "PERLSYN" msgstr "PERLSYN" #. type: TH #: debian-trixie #, no-wrap msgid "2025-07-27" msgstr "27 يوليو 2025" #. type: TH #: debian-trixie debian-unstable #, no-wrap msgid "perl v5.40.1" msgstr "بيرل v5.40.1" #. type: TH #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Perl Programmers Reference Guide" msgstr "دليل مرجع مبرمجي بيرل" #. type: SH #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "NAME" msgstr "الاسم" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "perlsyn - Perl syntax: declarations, statements, comments" msgstr "perlsyn - صياغة بيرل: التصريحات، والعبارات، والملاحظات" #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Xref" msgstr "Xref" #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "syntax" msgstr "الصياغة" #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "DESCRIPTION" msgstr "الوصف" #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Header" msgstr "Header" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "A Perl program consists of a sequence of declarations and statements which " "run from the top to the bottom. Loops, subroutines, and other control " "structures allow you to jump around within the code." msgstr "" "يتكون برنامج بيرل من تسلسل من التصريحات والعبارات التي تعمل من الأعلى إلى " "الأسفل. تسمح لك الحلقات، والبرامج الفرعية، وهياكل التحكم الأخرى بالتنقل داخل " "الكود." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Perl is a B language: you can format and indent it however you " "like. Whitespace serves mostly to separate tokens, unlike languages like " "Python where it is an important part of the syntax, or Fortran where it is " "immaterial." msgstr "" "بيرل لغة B<حرة التنسيق>: يمكنك تنسيقها وإزاحتها كما تشاء. تخدم المسافات " "البيضاء غالبا في فصل الوحدات (tokens)، على عكس لغات مثل بايثون حيث تعد جزءا " "رئيسا من الصياغة، أو فورتران حيث لا تهم فيها المسافات." #. type: Plain text #: debian-trixie debian-unstable msgid "" "Many of Perl's syntactic elements are B. Rather than requiring " "you to put parentheses around every function call and declare every " "variable, you can often leave such explicit elements off and Perl will " "figure out what you meant. This is known as B, abbreviated " "B. It allows programmers to be B and to code in a style with " "which they are comfortable." msgstr "" "العديد من عناصر صياغة بيرل B<اختيارية>. بدلا من إلزامك بوضع أقواس حول كل " "استدعاء دالة والتصريح عن كل متغير، يمكنك غالبا ترك هذه العناصر الصريحة وسوف " "تستنتج بيرل ما تقصده. يُعرف هذا باسم B<افعل ما أعنيه>، ويُختصر بـ B. إنه " "يسمح للمبرمجين بأن يكونوا B<كسالى> وأن يكودوا بالأسلوب الذي يريحهم." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Perl B and concepts from many languages: awk, sed, C, Bourne " "Shell, Smalltalk, Lisp and even English. Other languages have borrowed " "syntax from Perl, particularly its regular expression extensions. So if you " "have programmed in another language you will see familiar pieces in Perl. " "They often work the same, but see perltrap for information about how they " "differ." msgstr "" "B<تستعير بيرل الصياغة> والمفاهيم من لغات عديدة: awk، و sed، و C، وصدفة " "Bourne، و Smalltalk، و Lisp وحتى الإنجليزية. وقد استعارت لغات أخرى الصياغة " "من بيرل، وخاصة توسعات التعبيرات النمطية. لذا إذا كنت قد برمجت بلغة أخرى " "فستجد أجزاء مألوفة في بيرل. غالبا ما تعمل بنفس الطريقة، ولكن راجع perltrap " "للحصول على معلومات حول كيفية اختلافها." #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Declarations" msgstr "التصريحات" #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "declaration undef undefined uninitialized" msgstr "تصريح undef غير معرف غير مهيأ" #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Subsection" msgstr "Subsection" #. type: Plain text #: debian-trixie debian-unstable msgid "" "The only things you need to declare in Perl are report formats and " "subroutines (and sometimes not even subroutines). A scalar variable holds " "the undefined value (CW<\\*(C`undef\\*(C'>) until it has been assigned a " "defined value, which is anything other than CW<\\*(C`undef\\*(C'>. When " "used as a number, \\&CW<\\*(C`undef\\*(C'> is treated as CW<0>; when used as " "a string, it is treated as the empty string, CW<\"\">; and when used as a " "reference that isn't being assigned to, it is treated as an error. If you " "enable warnings, you'll be notified of an uninitialized value whenever you " "treat \\&CW<\\*(C`undef\\*(C'> as a string or a number. Well, usually. " "Boolean contexts, such as:" msgstr "" "الأشياء الوحيدة التي تحتاج إلى التصريح عنها في بيرل هي تنسيقات التقارير " "والبرامج الفرعية (وأحيانا ولا حتى البرامج الفرعية). يحمل المتغير القياسي " "القيمة غير المعرفة (CW<\\*(C`undef\\*(C'>) حتى تُسند إليه قيمة معرفة، وهي أي " "شيء بخلاف CW<\\*(C`undef\\*(C'>. عند استخدامه كرقم، يُعامل " "\\&CW<\\*(C`undef\\*(C'> على أنه CW<0>؛ وعند استخدامه كسلسلة نصية، يُعامل على " "أنه سلسلة فارغة، CW<\"\">؛ وعند استخدامه كمرجع لم يُسند إليه شيء، يُعامل كخطأ. " "إذا فعلت التحذيرات، فسيُرسل إشعار بقيمة غير مهيأة كلما عومل " "\\&CW<\\*(C`undef\\*(C'> كسلسلة أو رقم. حسنا، غالبا. السياقات المنطقية، مثل:" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "\\& if ($x) {}\n" msgstr "\\& if ($x) {}\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "are exempt from warnings (because they care about truth rather than " "definedness). Operators such as CW<\\*(C`++\\*(C'>, CW<\\*(C`--\\*(C'>, " "CW<\\*(C`+=\\*(C'>, \\&CW<\\*(C`-=\\*(C'>, and CW<\\*(C`.=\\*(C'>, that " "operate on undefined variables such as:" msgstr "" "مستثناة من التحذيرات (لأنها تهتم بالصحة وليس بالتعريف). العوامل مثل " "CW<\\*(C`++\\*(C'>، و CW<\\*(C`--\\*(C'>، و CW<\\*(C`+=\\*(C'>، و " "\\&CW<\\*(C`-=\\*(C'>، و CW<\\*(C`.=\\*(C'>، التي تعمل على متغيرات غير معرفة " "مثل:" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& undef $x;\n" "\\& $x++;\n" msgstr "" "\\& undef $x;\n" "\\& $x++;\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "are also always exempt from such warnings." msgstr "مستثناة أيضًا دائما من هذه التحذيرات." #. type: Plain text #: debian-trixie debian-unstable msgid "" "A declaration can be put anywhere a statement can, but has no effect on the " "execution of the primary sequence of statements: declarations all take " "effect at compile time. All declarations are typically put at the beginning " "or the end of the script. However, if you're using lexically-scoped private " "variables created with CW, \\&CW, or CW, you'll have " "to make sure your format or subroutine definition is within the same block " "scope as the my if you expect to be able to access those private variables." msgstr "" "يمكن وضع التصريح في أي مكان توضع فيه العبارة، ولكن ليس له أي تأثير على تنفيذ " "تسلسل العبارات الرئيس: فالتصريحات كلها تسري في وقت التصريف. عادة ما توضع " "جميع التصريحات في بداية أو نهاية السكربت. ومع ذلك، إذا كنت تستخدم متغيرات " "خاصة ذات نطاق معجمي أنشئت باستخدام CW، أو \\&CW، أو " "CW، فسيتعين عليك التأكد من أن تعريف التنسيق أو البرنامج الفرعي الخاص " "بك يقع ضمن نفس نطاق الكتلة كما في my إذا كنت تتوقع أن تكون قادرا على الوصول " "إلى تلك المتغيرات الخاصة." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Declaring a subroutine allows a subroutine name to be used as if it were a " "list operator from that point forward in the program. You can declare a " "subroutine without defining it by saying CW<\\*(C`sub name\\*(C'>, thus:" msgstr "" "يسمح التصريح عن برنامج فرعي باستخدام اسم البرنامج الفرعي كما لو كان عامل " "قائمة من تلك النقطة فصاعدا في البرنامج. يمكنك التصريح عن برنامج فرعي دون " "تعريفه بقول CW<\\*(C`sub name\\*(C'>، هكذا:" #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "subroutine, declaration" msgstr "برنامج فرعي، تصريح" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& sub myname;\n" "\\& $me = myname $0 or die \"can\\*(Aqt get myname\";\n" msgstr "" "\\& sub myname;\n" "\\& $me = myname $0 or die \"can\\*(Aqt get myname\";\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "A bare declaration like that declares the function to be a list operator, " "not a unary operator, so you have to be careful to use parentheses (or " "\\&CW<\\*(C`or\\*(C'> instead of CW<\\*(C`||\\*(C'>.) The CW<\\*(C`||" "\\*(C'> operator binds too tightly to use after list operators; it becomes " "part of the last element. You can always use parentheses around the list " "operators arguments to turn the list operator back into something that " "behaves more like a function call. Alternatively, you can use the prototype " "CW<\\*(C`($)\\*(C'> to turn the subroutine into a unary operator:" msgstr "" "تصريح مجرد مثل هذا يصرح عن الدالة لتكون عامل قائمة، وليس عاملا أحاديا، لذا " "عليك توخي الحذر في استخدام الأقواس (أو \\&CW<\\*(C`or\\*(C'> بدلا من " "CW<\\*(C`||\\*(C'>). يرتبط العامل CW<\\*(C`||\\*(C'> بقوة أكبر من أن يُستخدم " "بعد عوامل القائمة؛ إذ يصبح جزءا من العنصر الأخير. يمكنك دائما استخدام " "الأقواس حول وسائط عوامل القائمة لتحويل عامل القائمة مرة أخرى إلى شيء يتصرف " "بشكل أقرب إلى استدعاء دالة. وبدلا من ذلك، يمكنك استخدام النموذج الأولي " "CW<\\*(C`($)\\*(C'> لتحويل البرنامج الفرعي إلى عامل أحادي:" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& sub myname ($);\n" "\\& $me = myname $0 || die \"can\\*(Aqt get myname\";\n" msgstr "" "\\& sub myname ($);\n" "\\& $me = myname $0 || die \"can\\*(Aqt get myname\";\n" #. type: Plain text #: debian-trixie debian-unstable msgid "" "That now parses as you'd expect, but you still ought to get in the habit of " "using parentheses in that situation. For more on prototypes, see perlsub." msgstr "" "يُحلل هذا الآن كما تتوقع، ولكن لا يزال يتعين عليك التعود على استخدام الأقواس " "في مثل هذه الحالات. لمزيد من المعلومات حول النماذج الأولية، راجع perlsub." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Subroutines declarations can also be loaded up with the " "CW<\\*(C`require\\*(C'> statement or both loaded and imported into your " "namespace with a CW<\\*(C`use\\*(C'> statement. See perlmod for details on " "this." msgstr "" "يمكن أيضًا تحميل تصريحات البرامج الفرعية باستخدام عبارة " "CW<\\*(C`require\\*(C'> أو تحميلها واستيرادها في مساحة الأسماء الخاصة بك " "باستخدام عبارة CW<\\*(C`use\\*(C'>. راجع perlmod للحصول على تفاصيل حول هذا " "الموضوع." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "A statement sequence may contain declarations of lexically-scoped variables, " "but apart from declaring a variable name, the declaration acts like an " "ordinary statement, and is elaborated within the sequence of statements as " "if it were an ordinary statement. That means it actually has both compile-" "time and run-time effects." msgstr "" "قد يحتوي تسلسل العبارات على تصريحات لمتغيرات ذات نطاق معجمي، ولكن بصرف النظر " "عن التصريح عن اسم متغير، فإن التصريح يعمل كعبارة عادية، ويُفصل ضمن تسلسل " "العبارات كما لو كان عبارة عادية. وهذا يعني أن له آثارا في كل من وقت التصريف " "ووقت التشغيل." #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Comments" msgstr "ملاحظات" #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "comment #" msgstr "ملاحظة #" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Text from a CW<\"#\"> character until the end of the line is a comment, and " "is ignored. Exceptions include CW<\"#\"> inside a string or regular " "expression." msgstr "" "النص من محرف CW<\"#\"> حتى نهاية السطر هو ملاحظة، وتُجاهل. تشمل الاستثناءات " "CW<\"#\"> داخل سلسلة نصية أو تعبير نمطي." #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Simple Statements" msgstr "العبارات البسيطة" #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "statement semicolon expression ;" msgstr "تعبير فاصلة منقوطة عبارة ;" #. type: Plain text #: debian-trixie debian-unstable msgid "" "The only kind of simple statement is an expression evaluated for its side-" "effects. Every simple statement must be terminated with a semicolon, unless " "it is the final statement in a block, in which case the semicolon is " "optional. But put the semicolon in anyway if the block takes up more than " "one line, because you may eventually add another line. Note that there are " "operators like CW<\\*(C`eval {}\\*(C'>, CW<\\*(C`sub {}\\*(C'>, and " "\\&CW<\\*(C`do {}\\*(C'> that I like compound statements, but aren't--" "they're just TERMs in an expression--and thus need an explicit termination " "when used as the last item in a statement." msgstr "" "النوع الوحيد من العبارات البسيطة هو التعبير الذي يُقيم لآثاره الجانبية. يجب " "إنهاء كل عبارة بسيطة بفاصلة منقوطة، ما لم تكن العبارة الأخيرة في كتلة، وفي " "هذه الحالة تكون الفاصلة المنقوطة اختيارية. ولكن ضع الفاصلة المنقوطة على أي " "حال إذا كانت الكتلة تشغل أكثر من سطر واحد، لأنك قد تضيف سطرا آخر في النهاية. " "لاحظ أن هناك عوامل مثل CW<\\*(C`eval {}\\*(C'>، و CW<\\*(C`sub {}\\*(C'>، و " "\\&CW<\\*(C`do {}\\*(C'> التي I<تبدو> وكأنها عبارات مركبة، لكنها ليست كذلك - " "فهي مجرد وحدات (TERMs) في تعبير - وبالتالي تحتاج إلى إنهاء صريح عند " "استخدامها كآخر عنصر في العبارة." #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Statement Modifiers" msgstr "معدلات العبارة" #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "statement modifier modifier if unless while until when foreach for" msgstr "معدل عبارة معدل if unless while until when foreach for" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Any simple statement may optionally be followed by a I modifier, " "just before the terminating semicolon (or block ending). The possible " "modifiers are:" msgstr "" "يمكن اختياريا أن تتبع أي عبارة بسيطة بمعدل I<واحد> فقط، مباشرة قبل الفاصلة " "المنقوطة النهائية (أو نهاية الكتلة). المعدلات الممكنة هي:" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& if EXPR\n" "\\& unless EXPR\n" "\\& while EXPR\n" "\\& until EXPR\n" "\\& for LIST\n" "\\& foreach LIST\n" "\\& when EXPR\n" msgstr "" "\\& if EXPR\n" "\\& unless EXPR\n" "\\& while EXPR\n" "\\& until EXPR\n" "\\& for LIST\n" "\\& foreach LIST\n" "\\& when EXPR\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The CW<\\*(C`EXPR\\*(C'> following the modifier is referred to as the " "\"condition\". Its truth or falsehood determines how the modifier will " "behave." msgstr "" "يُشار إلى الـ CW<\\*(C`EXPR\\*(C'> التي تلي المعدل باسم \"الشرط\". يحدد صدقه " "أو كذبه كيفية سلوك المعدل." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "\\&CW<\\*(C`if\\*(C'> executes the statement once I and only if the " "condition is true. CW<\\*(C`unless\\*(C'> is the opposite, it executes the " "statement I the condition is true (that is, if the condition is " "false). See \"Scalar values\" in perldata for definitions of true and false." msgstr "" "ينفذ \\&CW<\\*(C`if\\*(C'> العبارة مرة واحدة I<إذا> وفقط إذا كان الشرط " "صحيحا. CW<\\*(C`unless\\*(C'> هو العكس، حيث ينفذ العبارة I<ما لم> يكن الشرط " "صحيحا (أي إذا كان الشرط خاطئا). راجع \"القيم القياسية\" في perldata للتعرف " "على تعريفات الصحيح والخاطئ." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& print \"Basset hounds got long ears\" if length $ear E= 10;\n" "\\& go_outside() and play() unless $is_raining;\n" msgstr "" "\\& print \"Basset hounds got long ears\" if length $ear E= 10;\n" "\\& go_outside() and play() unless $is_raining;\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The CW modifier is an iterator: it executes the statement once " "for each item in the LIST (with CW<$_> aliased to each item in turn). There " "is no syntax to specify a C-style for loop or a lexically scoped iteration " "variable in this form." msgstr "" "المعدل CW هو مكرر (iterator): فهو ينفذ العبارة مرة واحدة لكل عنصر " "في الـ LIST (مع ربط CW<$_> بكل عنصر بالدور). لا توجد صياغة لتحديد حلقة for " "بنمط C أو متغير تكرار ذو نطاق معجمي في هذا النموذج." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "\\& print \"Hello $_!\\en\" for qw(world Dolly nurse);\n" msgstr "\\& print \"Hello $_!\\en\" for qw(world Dolly nurse);\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "\\&CW<\\*(C`while\\*(C'> repeats the statement I the condition is " "true. Postfix CW<\\*(C`while\\*(C'> has the same magic treatment of some " "kinds of condition that prefix CW<\\*(C`while\\*(C'> has. " "\\&CW<\\*(C`until\\*(C'> does the opposite, it repeats the statement " "I the condition is true (or while the condition is false):" msgstr "" "يكرر \\&CW<\\*(C`while\\*(C'> العبارة I<بينما> يكون الشرط صحيحا. يمتلك " "CW<\\*(C`while\\*(C'> اللاحق نفس المعاملة السحرية لبعض أنواع الشروط التي " "يمتلكها CW<\\*(C`while\\*(C'> البادئ. يقوم \\&CW<\\*(C`until\\*(C'> بالعكس، " "حيث يكرر العبارة I<حتى> يصبح الشرط صحيحا (أو بينما يكون الشرط خاطئا):" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& # Both of these count from 0 to 10.\n" "\\& print $i++ while $i E= 10;\n" "\\& print $j++ until $j E 10;\n" msgstr "" "\\& # كلاهما يعد من 0 إلى 10.\n" "\\& print $i++ while $i E= 10;\n" "\\& print $j++ until $j E 10;\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The CW<\\*(C`while\\*(C'> and CW<\\*(C`until\\*(C'> modifiers have the usual " "\"CW<\\*(C`while\\*(C'> loop\" semantics (conditional evaluated first), " "except when applied to a \\&CW<\\*(C`do\\*(C'>-BLOCK (or to the Perl4 " "CW<\\*(C`do\\*(C'>-SUBROUTINE statement), in which case the block executes " "once before the conditional is evaluated." msgstr "" "لمعدلي CW<\\*(C`while\\*(C'> و CW<\\*(C`until\\*(C'> معاني \"حلقة " "CW<\\*(C`while\\*(C'>\" المعتادة (يُقيم الشرط أولا)، إلا عند تطبيقهما على " "\\&CW<\\*(C`do\\*(C'>-BLOCK (أو على عبارة CW<\\*(C`do\\*(C'>-SUBROUTINE في " "بيرل 4)، وفي هذه الحالة تُنفذ الكتلة مرة واحدة قبل تقييم الشرط." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "This is so that you can write loops like:" msgstr "هذا لكي تتمكن من كتابة حلقات مثل:" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& do {\n" "\\& $line = ESTDINE;\n" "\\& ...\n" "\\& } until !defined($line) || $line eq \".\\en\"\n" msgstr "" "\\& do {\n" "\\& $line = ESTDINE;\n" "\\& ...\n" "\\& } until !defined($line) || $line eq \".\\en\"\n" #. type: Plain text #: debian-trixie debian-unstable msgid "" "See \"do\" in perlfunc. Note also that the loop control statements " "described later will I work in this construct, because modifiers don't " "take loop labels. Sorry. You can always put another block inside of it " "(for CW<\\*(C`next\\*(C'>/CW<\\*(C`redo\\*(C'>) or around it (for " "CW<\\*(C`last\\*(C'>) to do that sort of thing." msgstr "" "راجع \"do\" في perlfunc. لاحظ أيضًا أن عبارات التحكم في الحلقة الموصوفة لاحقا " "I<لن> تعمل في هذا الهيكل، لأن المعدلات لا تأخذ لصائق حلقات. عذرا. يمكنك " "دائما وضع كتلة أخرى داخلها (لـ CW<\\*(C`next\\*(C'>/CW<\\*(C`redo\\*(C'>) أو " "حولها (لـ CW<\\*(C`last\\*(C'>) للقيام بهذا النوع من الأشياء." #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "next last redo" msgstr "next last redo" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "For CW<\\*(C`next\\*(C'> or CW<\\*(C`redo\\*(C'>, just double the braces:" msgstr "لـ CW<\\*(C`next\\*(C'> أو CW<\\*(C`redo\\*(C'>، فقط ضاعف الأقواس:" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& do {{\n" "\\& next if $x == $y;\n" "\\& # do something here\n" "\\& }} until $x++ E $z;\n" msgstr "" "\\& do {{\n" "\\& next if $x == $y;\n" "\\& # افعل شيئا هنا\n" "\\& }} until $x++ E $z;\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "For CW<\\*(C`last\\*(C'>, you have to be more elaborate and put braces " "around it:" msgstr "" "بالنسبة لـ CW<\\*(C`last\\*(C'>، عليك أن تكون أكثر تفصيلا وتضع أقواسا حولها:" #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "last" msgstr "last" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& {\n" "\\& do {\n" "\\& last if $x == $y**2;\n" "\\& # do something here\n" "\\& } while $x++ E= $z;\n" "\\& }\n" msgstr "" "\\& {\n" "\\& do {\n" "\\& last if $x == $y**2;\n" "\\& # افعل شيئا هنا\n" "\\& } while $x++ E= $z;\n" "\\& }\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If you need both CW<\\*(C`next\\*(C'> and CW<\\*(C`last\\*(C'>, you have to " "do both and also use a loop label:" msgstr "" "إذا كنت بحاجة إلى كل من CW<\\*(C`next\\*(C'> و CW<\\*(C`last\\*(C'>، فعليك " "القيام بكليهما واستخدام لصيقة حلقة أيضًا:" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& LOOP: {\n" "\\& do {{\n" "\\& next if $x == $y;\n" "\\& last LOOP if $x == $y**2;\n" "\\& # do something here\n" "\\& }} until $x++ E $z;\n" "\\& }\n" msgstr "" "\\& LOOP: {\n" "\\& do {{\n" "\\& next if $x == $y;\n" "\\& last LOOP if $x == $y**2;\n" "\\& # افعل شيئا هنا\n" "\\& }} until $x++ E $z;\n" "\\& }\n" #. type: Plain text #: debian-trixie debian-unstable msgid "" "\\&B The behaviour of a CW<\\*(C`my\\*(C'>, CW<\\*(C`state\\*(C'>, or " "\\&CW<\\*(C`our\\*(C'> modified with a statement modifier conditional or " "loop construct (for example, CW<\\*(C`my $x if ...\\*(C'>) is " "\\&B. The value of the CW<\\*(C`my\\*(C'> variable may be " "CW<\\*(C`undef\\*(C'>, any previously assigned value, or possibly anything " "else. Don't rely on it. Future versions of perl might do something " "different from the version of perl you try it out on. Here be dragons." msgstr "" "\\&B<ملاحظة:> إن سلوك CW<\\*(C`my\\*(C'>، أو CW<\\*(C`state\\*(C'>، أو " "\\&CW<\\*(C`our\\*(C'> المعدل باستخدام شرط معدل عبارة أو هيكل حلقة (على سبيل " "المثال، CW<\\*(C`my $x if ...\\*(C'>) هو سلوك B<غير محدد>. قد تكون قيمة " "متغير CW<\\*(C`my\\*(C'> هي CW<\\*(C`undef\\*(C'>، أو أي قيمة أُسندت سابقا، " "أو ربما أي شيء آخر. لا تعتمد عليه. قد تفعل الإصدارات المستقبلية من بيرل شيئا " "مختلفا عن إصدار بيرل الذي تجربه عليه." #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "my" msgstr "my" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The CW<\\*(C`when\\*(C'> modifier is an experimental feature that first " "appeared in Perl 5.14. To use it, you should include a CW<\\*(C`use " "v5.14\\*(C'> declaration. (Technically, it requires only the " "CW<\\*(C`switch\\*(C'> feature, but that aspect of it was not available " "before 5.14.) Operative only from within a CW<\\*(C`foreach\\*(C'> loop or " "a CW<\\*(C`given\\*(C'> block, it executes the statement only if the " "smartmatch \\&CW<\\*(C`$_ ~~ >\\f(CIEXPRCW<\\*(C'> is true. If the " "statement executes, it is followed by a CW<\\*(C`next\\*(C'> from inside a " "CW<\\*(C`foreach\\*(C'> and CW<\\*(C`break\\*(C'> from inside a " "CW<\\*(C`given\\*(C'>." msgstr "" "معدل CW<\\*(C`when\\*(C'> هو ميزة تجريبية ظهرت لأول مرة في بيرل 5.14. " "لاستخدامه، يجب عليك تضمين تصريح CW<\\*(C`use v5.14\\*(C'>. (من الناحية " "التقنية، يتطلب فقط ميزة CW<\\*(C`switch\\*(C'>، ولكن هذا الجانب منها لم يكن " "متاحا قبل 5.14). وهو يعمل فقط من داخل حلقة CW<\\*(C`foreach\\*(C'> أو كتلة " "CW<\\*(C`given\\*(C'>، حيث ينفذ العبارة فقط إذا كان المطابق الذكي " "\\&CW<\\*(C`$_ ~~ >\\f(CIEXPRCW<\\*(C'> صحيحا. إذا نُفذت العبارة، فسيتبعها " "CW<\\*(C`next\\*(C'> من داخل CW<\\*(C`foreach\\*(C'> و CW<\\*(C`break\\*(C'> " "من داخل CW<\\*(C`given\\*(C'>." #. type: Plain text #: debian-trixie debian-unstable msgid "" "Under the current implementation, the CW<\\*(C`foreach\\*(C'> loop can be " "anywhere within the CW<\\*(C`when\\*(C'> modifier's dynamic scope, but must " "be within the CW<\\*(C`given\\*(C'> block's lexical scope. This restriction " "may be relaxed in a future release. See \"Switch Statements\" below." msgstr "" "في ظل التنفيذ الحالي، يمكن أن تكون حلقة CW<\\*(C`foreach\\*(C'> في أي مكان " "داخل النطاق الديناميكي لمعدل CW<\\*(C`when\\*(C'>، ولكن يجب أن تكون داخل " "النطاق المعجمي لكتلة CW<\\*(C`given\\*(C'>. قد يُخفف هذا القيد في إصدار " "مستقبلي. راجع \"عبارات التبديل\" أدناه." #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Compound Statements" msgstr "العبارات المركبة" #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "statement, compound block bracket, curly curly bracket brace { } if unless given while until foreach for continue" msgstr "عبارة، مركب قوس كتلة، قوس معقوف { } if unless given while until foreach for continue" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "In Perl, a sequence of statements that defines a scope is called a block. " "Sometimes a block is delimited by the file containing it (in the case of a " "required file, or the program as a whole), and sometimes a block is " "delimited by the extent of a string (in the case of an eval)." msgstr "" "في بيرل، يُطلق على تسلسل العبارات الذي يحدد نطاقا اسم كتلة. أحيانا تُحدد " "الكتلة بواسطة الملف الذي يحتوي عليها (في حالة ملف مطلوب، أو البرنامج ككل)، " "وأحيانا تُحدد الكتلة بمدى سلسلة نصية (في حالة eval)." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "But generally, a block is delimited by curly brackets, also known as " "braces. We will call this syntactic construct a BLOCK. Because enclosing " "braces are also the syntax for hash reference constructor expressions (see " "perlref), you may occasionally need to disambiguate by placing a " "\\&CW<\\*(C`;\\*(C'> immediately after an opening brace so that Perl " "realises the brace is the start of a block. You will more frequently need " "to disambiguate the other way, by placing a CW<\\*(C`+\\*(C'> immediately " "before an opening brace to force it to be interpreted as a hash reference " "constructor expression. It is considered good style to use these " "disambiguating mechanisms liberally, not only when Perl would otherwise " "guess incorrectly." msgstr "" "ولكن بشكل عام، تُحدد الكتلة بواسطة أقواس معقوفة. سنسمي هذا البناء الصوري " "BLOCK. نظرا لأن الأقواس المحيطة هي أيضًا صياغة لتعبيرات منشئ مرجع الهاش (راجع " "perlref)، فقد تحتاج أحيانا إلى إزالة اللبس بوضع \\&CW<\\*(C`;\\*(C'> مباشرة " "بعد قوس الفتح حتى تدرك بيرل أن القوس هو بداية كتلة. ستحتاج في كثير من " "الأحيان إلى إزالة اللبس بالطريقة الأخرى، عن طريق وضع CW<\\*(C`+\\*(C'> " "مباشرة قبل قوس الفتح لإجباره على تفسيره كتعبير منشئ مرجع هاش. يُعتبر من " "الأسلوب الجيد استخدام آليات إزالة اللبس هذه بكثرة، وليس فقط عندما تخمن بيرل " "بشكل غير صحيح." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "The following compound statements may be used to control flow:" msgstr "يمكن استخدام العبارات المركبة التالية للتحكم في التدفق:" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& if (EXPR) BLOCK\n" "\\& if (EXPR) BLOCK else BLOCK\n" "\\& if (EXPR) BLOCK elsif (EXPR) BLOCK ...\n" "\\& if (EXPR) BLOCK elsif (EXPR) BLOCK ... else BLOCK\n" "\\&\n" "\\& unless (EXPR) BLOCK\n" "\\& unless (EXPR) BLOCK else BLOCK\n" "\\& unless (EXPR) BLOCK elsif (EXPR) BLOCK ...\n" "\\& unless (EXPR) BLOCK elsif (EXPR) BLOCK ... else BLOCK\n" "\\&\n" "\\& given (EXPR) BLOCK\n" "\\&\n" "\\& LABEL while (EXPR) BLOCK\n" "\\& LABEL while (EXPR) BLOCK continue BLOCK\n" "\\&\n" "\\& LABEL until (EXPR) BLOCK\n" "\\& LABEL until (EXPR) BLOCK continue BLOCK\n" "\\&\n" "\\& LABEL for (EXPR; EXPR; EXPR) BLOCK\n" "\\& LABEL for VAR (LIST) BLOCK\n" "\\& LABEL for VAR (LIST) BLOCK continue BLOCK\n" "\\&\n" "\\& LABEL foreach (EXPR; EXPR; EXPR) BLOCK\n" "\\& LABEL foreach VAR (LIST) BLOCK\n" "\\& LABEL foreach VAR (LIST) BLOCK continue BLOCK\n" "\\&\n" "\\& LABEL BLOCK\n" "\\& LABEL BLOCK continue BLOCK\n" "\\&\n" "\\& PHASE BLOCK\n" msgstr "" "\\& if (EXPR) BLOCK\n" "\\& if (EXPR) BLOCK else BLOCK\n" "\\& if (EXPR) BLOCK elsif (EXPR) BLOCK ...\n" "\\& if (EXPR) BLOCK elsif (EXPR) BLOCK ... else BLOCK\n" "\\&\n" "\\& unless (EXPR) BLOCK\n" "\\& unless (EXPR) BLOCK else BLOCK\n" "\\& unless (EXPR) BLOCK elsif (EXPR) BLOCK ...\n" "\\& unless (EXPR) BLOCK elsif (EXPR) BLOCK ... else BLOCK\n" "\\&\n" "\\& given (EXPR) BLOCK\n" "\\&\n" "\\& LABEL while (EXPR) BLOCK\n" "\\& LABEL while (EXPR) BLOCK continue BLOCK\n" "\\&\n" "\\& LABEL until (EXPR) BLOCK\n" "\\& LABEL until (EXPR) BLOCK continue BLOCK\n" "\\&\n" "\\& LABEL for (EXPR; EXPR; EXPR) BLOCK\n" "\\& LABEL for VAR (LIST) BLOCK\n" "\\& LABEL for VAR (LIST) BLOCK continue BLOCK\n" "\\&\n" "\\& LABEL foreach (EXPR; EXPR; EXPR) BLOCK\n" "\\& LABEL foreach VAR (LIST) BLOCK\n" "\\& LABEL foreach VAR (LIST) BLOCK continue BLOCK\n" "\\&\n" "\\& LABEL BLOCK\n" "\\& LABEL BLOCK continue BLOCK\n" "\\&\n" "\\& PHASE BLOCK\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "As of Perl 5.36, you can iterate over multiple values at a time by " "specifying a list of lexicals within parentheses:" msgstr "" "بدءا من بيرل 5.36، يمكنك التكرار عبر قيم متعددة في وقت واحد عن طريق تحديد " "قائمة من المتغيرات المعجمية داخل أقواس:" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& LABEL for my (VAR, VAR) (LIST) BLOCK\n" "\\& LABEL for my (VAR, VAR) (LIST) BLOCK continue BLOCK\n" "\\& LABEL foreach my (VAR, VAR) (LIST) BLOCK\n" "\\& LABEL foreach my (VAR, VAR) (LIST) BLOCK continue BLOCK\n" msgstr "" "\\& LABEL for my (VAR, VAR) (LIST) BLOCK\n" "\\& LABEL for my (VAR, VAR) (LIST) BLOCK continue BLOCK\n" "\\& LABEL foreach my (VAR, VAR) (LIST) BLOCK\n" "\\& LABEL foreach my (VAR, VAR) (LIST) BLOCK continue BLOCK\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If enabled by the CW<\\*(C`try\\*(C'> feature, the following may also be used" msgstr "إذا فُعلت ميزة CW<\\*(C`try\\*(C'>، فيمكن أيضًا استخدام ما يلي" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& try BLOCK catch (VAR) BLOCK\n" "\\& try BLOCK catch (VAR) BLOCK finally BLOCK\n" msgstr "" "\\& try BLOCK catch (VAR) BLOCK\n" "\\& try BLOCK catch (VAR) BLOCK finally BLOCK\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The experimental CW<\\*(C`given\\*(C'> statement is I; see \"Switch Statements\" below for how to do so, and the " "attendant caveats." msgstr "" "عبارة CW<\\*(C`given\\*(C'> التجريبية I<لا تُفعل آليا>؛ راجع \"عبارات " "التبديل\" أدناه لمعرفة كيفية القيام بذلك، والتحذيرات المصاحبة لها." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Unlike in C and Pascal, in Perl these are all defined in terms of BLOCKs, " "not statements. This means that the curly brackets are I--no " "dangling statements allowed. If you want to write conditionals without " "curly brackets, there are several other ways to do it. The following all do " "the same thing:" msgstr "" "على عكس لغتي C و Pascal، يُعرف كل هذه في بيرل من حيث الـ BLOCKs، وليس " "العبارات. وهذا يعني أن الأقواس المعقوفة I<مطلوبة> - لا يُسمح بالعبارات " "المعلقة. إذا كنت تريد كتابة شروط بدون أقواس معقوفة، فهناك عدة طرق أخرى " "للقيام بذلك. كل ما يلي يفعل الشيء نفسه:" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& if (!open(FOO)) { die \"Can\\*(Aqt open $FOO: $!\" }\n" "\\& die \"Can\\*(Aqt open $FOO: $!\" unless open(FOO);\n" "\\& open(FOO) || die \"Can\\*(Aqt open $FOO: $!\";\n" "\\& open(FOO) ? () : die \"Can\\*(Aqt open $FOO: $!\";\n" "\\& # a bit exotic, that last one\n" msgstr "" "\\& if (!open(FOO)) { die \"Can\\*(Aqt open $FOO: $!\" }\n" "\\& die \"Can\\*(Aqt open $FOO: $!\" unless open(FOO);\n" "\\& open(FOO) || die \"Can\\*(Aqt open $FOO: $!\";\n" "\\& open(FOO) ? () : die \"Can\\*(Aqt open $FOO: $!\";\n" "\\& # الأخير غريب بعض الشيء\n" #. type: Plain text #: debian-trixie debian-unstable msgid "" "The CW<\\*(C`if\\*(C'> statement is straightforward. Because BLOCKs are " "always bounded by curly brackets, there is never any ambiguity about which " "\\&CW<\\*(C`if\\*(C'> an CW<\\*(C`else\\*(C'> goes with. If you use " "CW<\\*(C`unless\\*(C'> in place of CW<\\*(C`if\\*(C'>, the sense of the test " "is reversed. Like CW<\\*(C`if\\*(C'>, CW<\\*(C`unless\\*(C'> can be " "followed by CW<\\*(C`else\\*(C'>. CW<\\*(C`unless\\*(C'> can even be " "followed by one or more CW<\\*(C`elsif\\*(C'> statements, though you may " "want to think twice before using that particular language construct, as " "everyone reading your code will have to think at least twice before they can " "understand what's going on." msgstr "" "عبارة CW<\\*(C`if\\*(C'> واضحة ومباشرة. نظرا لأن الـ BLOCKs محددة دائما " "بأقواس معقوفة، فلا يوجد أبدا أي غموض حول أي \\&CW<\\*(C`if\\*(C'> يتبعها " "CW<\\*(C`else\\*(C'>. إذا استخدمت CW<\\*(C`unless\\*(C'> بدلا من " "CW<\\*(C`if\\*(C'>، فسيُعكس معنى الاختبار. مثل CW<\\*(C`if\\*(C'>، يمكن أن " "يتبع CW<\\*(C`unless\\*(C'> بـ CW<\\*(C`else\\*(C'>. بل ويمكن أن يتبع " "CW<\\*(C`unless\\*(C'> عبارة CW<\\*(C`elsif\\*(C'> واحدة أو أكثر، على الرغم " "من أنك قد ترغب في التفكير مرتين قبل استخدام هذا الهيكل اللغوي بالذات، حيث " "سيتعين على كل من يقرأ كودك التفكير مرتين على الأقل قبل أن يتمكن من فهم ما " "يحدث." #. type: Plain text #: debian-trixie debian-unstable msgid "" "The CW<\\*(C`while\\*(C'> statement executes the block as long as the " "expression is true. The CW<\\*(C`until\\*(C'> statement executes the block " "as long as the expression is false. The LABEL is optional, and if present, " "consists of an identifier followed by a colon. The LABEL identifies the " "loop for the loop control statements CW<\\*(C`next\\*(C'>, " "CW<\\*(C`last\\*(C'>, and CW<\\*(C`redo\\*(C'>. If the LABEL is omitted, " "the loop control statement refers to the innermost enclosing loop. This may " "include dynamically searching through your call-stack at run time to find " "the LABEL. Such desperate behavior triggers a warning if you use the " "CW<\\*(C`use warnings\\*(C'> pragma or the B<-w> flag." msgstr "" "تنفذ عبارة CW<\\*(C`while\\*(C'> الكتلة طالما كان التعبير صحيحا. وتنفذ عبارة " "CW<\\*(C`until\\*(C'> الكتلة طالما كان التعبير خاطئا. الـ LABEL اختياري، " "وإذا وُجد، فإنه يتكون من معرف تتبعه نقطتان رأسيتان. يحدد الـ LABEL الحلقة " "لعبارات التحكم في الحلقة CW<\\*(C`next\\*(C'>، و CW<\\*(C`last\\*(C'>، و " "CW<\\*(C`redo\\*(C'>. إذا حُذف الـ LABEL، فإن عبارة التحكم في الحلقة تشير إلى " "الحلقة المغلقة الأعمق. قد يشمل ذلك البحث ديناميكيا من خلال مكدس الاستدعاءات " "الخاص بك في وقت التشغيل للعثور على الـ LABEL. يؤدي هذا السلوك اليائس إلى " "إطلاق تحذير إذا كنت تستخدم pragma الخاص بـ CW<\\*(C`use warnings\\*(C'> أو " "علم B<-w>." #. type: Plain text #: debian-trixie debian-unstable msgid "" "If the condition expression of a CW<\\*(C`while\\*(C'> statement is based on " "any of a group of iterative expression types then it gets some magic " "treatment. The affected iterative expression types are " "CW<\\*(C`readline\\*(C'>, the CW<\\*(C`EFILEHANDLEE\\*(C'> input " "operator, CW<\\*(C`readdir\\*(C'>, CW<\\*(C`glob\\*(C'>, the " "CW<\\*(C`EPATTERNE\\*(C'> globbing operator, and " "CW<\\*(C`each\\*(C'>. If the condition expression is one of these " "expression types, then the value yielded by the iterative operator will be " "implicitly assigned to CW<$_>. If the condition expression is one of these " "expression types or an explicit assignment of one of them to a scalar, then " "the condition actually tests for definedness of the expression's value, not " "for its regular truth value." msgstr "" "إذا كان تعبير الشرط لعبارة CW<\\*(C`while\\*(C'> مبنيا على أي من مجموعة من " "أنواع التعبيرات التكرارية، فإنه يحصل على بعض المعاملة السحرية. أنواع " "التعبيرات التكرارية المتأثرة هي CW<\\*(C`readline\\*(C'>، وعامل الإدخال " "CW<\\*(C`EFILEHANDLEE\\*(C'>، و CW<\\*(C`readdir\\*(C'>، و " "CW<\\*(C`glob\\*(C'>، وعامل المطابقة CW<\\*(C`EPATTERNE\\*(C'>، و " "CW<\\*(C`each\\*(C'>. إذا كان تعبير الشرط أحد أنواع التعبيرات هذه، فستُسند " "القيمة الناتجة عن العامل التكراري ضمنيا إلى CW<$_>. إذا كان تعبير الشرط أحد " "أنواع التعبيرات هذه أو إسنادا صريحا لأحدهما إلى قيمة قياسية، فإن الشرط يختبر " "في الواقع تعريف قيمة التعبير، وليس قيمته الصحيحة العادية." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If there is a CW<\\*(C`continue\\*(C'> BLOCK, it is always executed just " "before the conditional is about to be evaluated again. Thus it can be used " "to increment a loop variable, even when the loop has been continued via the " "CW<\\*(C`next\\*(C'> statement." msgstr "" "إذا كان هناك CW<\\*(C`continue\\*(C'> BLOCK، فإنه يُنفذ دائما قبل تقييم الشرط " "مرة أخرى مباشرة. وبالتالي يمكن استخدامه لزيادة متغير الحلقة، حتى عندما تستمر " "الحلقة عبر عبارة CW<\\*(C`next\\*(C'>." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "When a block is preceded by a compilation phase keyword such as " "CW<\\*(C`BEGIN\\*(C'>, \\&CW<\\*(C`END\\*(C'>, CW<\\*(C`INIT\\*(C'>, " "CW<\\*(C`CHECK\\*(C'>, or CW<\\*(C`UNITCHECK\\*(C'>, then the block will run " "only during the corresponding phase of execution. See perlmod for more " "details." msgstr "" "عندما تُسبق الكتلة بكلمة مفتاحية لمرحلة التصريف مثل CW<\\*(C`BEGIN\\*(C'>، أو " "\\&CW<\\*(C`END\\*(C'>، أو CW<\\*(C`INIT\\*(C'>، أو CW<\\*(C`CHECK\\*(C'>، " "أو CW<\\*(C`UNITCHECK\\*(C'>، فستعمل الكتلة فقط خلال مرحلة التنفيذ المقابلة. " "راجع perlmod لمزيد من التفاصيل." #. type: Plain text #: debian-trixie debian-unstable msgid "" "Extension modules can also hook into the Perl parser to define new kinds of " "compound statements. These are introduced by a keyword which the extension " "recognizes, and the syntax following the keyword is defined entirely by the " "extension. If you are an implementor, see \"PL_keyword_plugin\" in perlapi " "for the mechanism. If you are using such a module, see the module's " "documentation for details of the syntax that it defines." msgstr "" "يمكن لوحدات التوسعة أيضًا ربط نفسها بمحلل بيرل لتحديد أنواع جديدة من العبارات " "المركبة. تُقدم بواسطة كلمة مفتاحية تتعرف عليها التوسعة، وتُعرف الصياغة التي " "تلي الكلمة المفتاحية بالكامل بواسطة التوسعة. إذا كنت منفذا، فراجع " "\"PL_keyword_plugin\" في perlapi لمعرفة الآلية. إذا كنت تستخدم مثل هذه " "الوحدة، فراجع توثيق الوحدة للحصول على تفاصيل الصياغة التي تحددها." #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Loop Control" msgstr "التحكم في الحلقة" #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "loop control loop, control next last redo continue" msgstr "تحكم الحلقة، تحكم next last redo continue" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "The CW<\\*(C`next\\*(C'> command starts the next iteration of the loop:" msgstr "يبدأ أمر CW<\\*(C`next\\*(C'> التكرار التالي للحلقة:" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& LINE: while (ESTDINE) {\n" "\\& next LINE if /^#/; # discard comments\n" "\\& ...\n" "\\& }\n" msgstr "" "\\& LINE: while (ESTDINE) {\n" "\\& next LINE if /^#/; # تجاهل الملاحظات\n" "\\& ...\n" "\\& }\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The CW<\\*(C`last\\*(C'> command immediately exits the loop in question. " "The \\&CW<\\*(C`continue\\*(C'> block, if any, is not executed:" msgstr "" "يخرج أمر CW<\\*(C`last\\*(C'> فورا من الحلقة المعنية. ولا تُنفذ كتلة " "\\&CW<\\*(C`continue\\*(C'>، إن وجدت:" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& LINE: while (ESTDINE) {\n" "\\& last LINE if /^$/; # exit when done with header\n" "\\& ...\n" "\\& }\n" msgstr "" "\\& LINE: while (ESTDINE) {\n" "\\& last LINE if /^$/; # اخرج عند الانتهاء من الترويسة\n" "\\& ...\n" "\\& }\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The CW<\\*(C`redo\\*(C'> command restarts the loop block without evaluating " "the conditional again. The CW<\\*(C`continue\\*(C'> block, if any, is " "I executed. This command is normally used by programs that want to lie " "to themselves about what was just input." msgstr "" "يعيد أمر CW<\\*(C`redo\\*(C'> تشغيل كتلة الحلقة دون تقييم الشرط مرة أخرى. " "I<ولا> تُنفذ كتلة CW<\\*(C`continue\\*(C'>، إن وجدت. يُستخدم هذا الأمر عادة من " "قبل البرامج التي تريد الكذب على نفسها بشأن ما أُدخل للتو." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "For example, when processing a file like I. If your input " "lines might end in backslashes to indicate continuation, you want to skip " "ahead and get the next record." msgstr "" "على سبيل المثال، عند معالجة ملف مثل I. إذا كانت خطوط الإدخال " "الخاصة بك قد تنتهي بصلات مائلة خلفية للإشارة إلى الاستمرار، فأنت تريد القفز " "للأمام والحصول على السجل التالي." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& while (EE) {\n" "\\& chomp;\n" "\\& if (s/\\e\\e$//) {\n" "\\& $_ .= EE;\n" "\\& redo unless eof();\n" "\\& }\n" "\\& # now process $_\n" "\\& }\n" msgstr "" "\\& while (EE) {\n" "\\& chomp;\n" "\\& if (s/\\e\\e$//) {\n" "\\& $_ .= EE;\n" "\\& redo unless eof();\n" "\\& }\n" "\\& # عالج $_ الآن\n" "\\& }\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "which is Perl shorthand for the more explicitly written version:" msgstr "وهو اختصار بيرل للنسخة المكتوبة بشكل أكثر صراحة:" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& LINE: while (defined($line = EARGVE)) {\n" "\\& chomp($line);\n" "\\& if ($line =~ s/\\e\\e$//) {\n" "\\& $line .= EARGVE;\n" "\\& redo LINE unless eof(); # not eof(ARGV)!\n" "\\& }\n" "\\& # now process $line\n" "\\& }\n" msgstr "" "\\& LINE: while (defined($line = EARGVE)) {\n" "\\& chomp($line);\n" "\\& if ($line =~ s/\\e\\e$//) {\n" "\\& $line .= EARGVE;\n" "\\& redo LINE unless eof(); # ليس eof(ARGV)!\n" "\\& }\n" "\\& # عالج $line الآن\n" "\\& }\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Note that if there were a CW<\\*(C`continue\\*(C'> block on the above code, " "it would get executed only on lines discarded by the regex (since redo skips " "the continue block). A continue block is often used to reset line counters " "or CW<\\*(C`m?pat?\\*(C'> one-time matches:" msgstr "" "لاحظ أنه لو كانت هناك كتلة CW<\\*(C`continue\\*(C'> في الكود أعلاه، فستُنفذ " "فقط على الأسطر التي تم تجاهلها بواسطة التعبير النمطي (بما أن redo يتخطى كتلة " "التكملة). غالبا ما تُستخدم كتلة التكملة لإعادة ضبط عدادات الأسطر أو تطابقات " "CW<\\*(C`m?pat?\\*(C'> لمرة واحدة:" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& # inspired by :1,$g/fred/s//WILMA/\n" "\\& while (EE) {\n" "\\& m?(fred)? && s//WILMA $1 WILMA/;\n" "\\& m?(barney)? && s//BETTY $1 BETTY/;\n" "\\& m?(homer)? && s//MARGE $1 MARGE/;\n" "\\& } continue {\n" "\\& print \"$ARGV $.: $_\";\n" "\\& close ARGV if eof; # reset $.\n" "\\& reset if eof; # reset ?pat?\n" "\\& }\n" msgstr "" "\\& # مستوحى من :1,$g/fred/s//WILMA/\n" "\\& while (EE) {\n" "\\& m?(fred)? && s//WILMA $1 WILMA/;\n" "\\& m?(barney)? && s//BETTY $1 BETTY/;\n" "\\& m?(homer)? && s//MARGE $1 MARGE/;\n" "\\& } continue {\n" "\\& print \"$ARGV $.: $_\";\n" "\\& close ARGV if eof; # رستر $.\n" "\\& reset if eof; # رستر ?pat?\n" "\\& }\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If the word CW<\\*(C`while\\*(C'> is replaced by the word " "CW<\\*(C`until\\*(C'>, the sense of the test is reversed, but the " "conditional is still tested before the first iteration." msgstr "" "إذا استُبدلت كلمة CW<\\*(C`while\\*(C'> بكلمة CW<\\*(C`until\\*(C'>، فسيُعكس " "معنى الاختبار، ولكن لا يزال يتم اختبار الشرط قبل التكرار الأول." #. type: Plain text #: debian-trixie debian-unstable msgid "" "Loop control statements don't work in an CW<\\*(C`if\\*(C'> or " "CW<\\*(C`unless\\*(C'>, since they aren't loops. You can double the braces " "to make them such, though." msgstr "" "لا تعمل جمل التحكم في الحلقات داخل CW<\\*(C`if\\*(C'> أو " "CW<\\*(C`unless\\*(C'>، لأنها ليست حلقات تكرارية. ومع ذلك، يمكنك مضاعفة " "الأقواس المتعرجة لجعلها تعمل كحلقات." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& if (/pattern/) {{\n" "\\& last if /fred/;\n" "\\& next if /barney/; # same effect as \"last\",\n" "\\& # but doesn\\*(Aqt document as well\n" "\\& # do something here\n" "\\& }}\n" msgstr "" "\\& if (/pattern/) {{\n" "\\& last if /fred/;\n" "\\& next if /barney/; # له نفس تأثير \"last\"،\n" "\\& # لكنه لا يوفر توثيقًا جيدًا\n" "\\& # افعل شيئًا هنا\n" "\\& }}\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "This is caused by the fact that a block by itself acts as a loop that " "executes once, see \"Basic BLOCKs\"." msgstr "" "يعود هذا إلى حقيقة أن الكتلة (block) بحد ذاتها تعمل كحلقة تكرارية تنفذ مرة " "واحدة، انظر \"Basic BLOCKs\"." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The form CW<\\*(C`while/if BLOCK BLOCK\\*(C'>, available in Perl 4, is no " "longer available. Replace any occurrence of CW<\\*(C`if BLOCK\\*(C'> by " "CW<\\*(C`if (do BLOCK)\\*(C'>." msgstr "" "الصيغة CW<\\*(C`while/if BLOCK BLOCK\\*(C'>، التي كانت متاحة في بيرل 4، لم " "تعد متوفرة. استبدل أي ظهور لـ CW<\\*(C`if BLOCK\\*(C'> بـ CW<\\*(C`if (do " "BLOCK)\\*(C'>." #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "For Loops" msgstr "حلقات For" #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "for foreach" msgstr "for foreach" #. type: Plain text #: debian-trixie debian-unstable msgid "" "Perl's C-style CW<\\*(C`for\\*(C'> loop works like the corresponding " "CW<\\*(C`while\\*(C'> loop; that means that this:" msgstr "" "تعمل حلقة CW<\\*(C`for\\*(C'> بنمط لغة C في بيرل مثل حلقة " "CW<\\*(C`while\\*(C'> المقابلة لها؛ وهذا يعني أن هذا:" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& for ($i = 1; $i E 10; $i++) {\n" "\\& ...\n" "\\& }\n" msgstr "" "\\& for ($i = 1; $i E 10; $i++) {\n" "\\& ...\n" "\\& }\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "is the same as this:" msgstr "يكافئ هذا:" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& $i = 1;\n" "\\& while ($i E 10) {\n" "\\& ...\n" "\\& } continue {\n" "\\& $i++;\n" "\\& }\n" msgstr "" "\\& $i = 1;\n" "\\& while ($i E 10) {\n" "\\& ...\n" "\\& } continue {\n" "\\& $i++;\n" "\\& }\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "There is one minor difference: if variables are declared with " "CW<\\*(C`my\\*(C'> in the initialization section of the CW<\\*(C`for\\*(C'>, " "the lexical scope of those variables is exactly the CW<\\*(C`for\\*(C'> loop " "(the body of the loop and the control sections). To illustrate:" msgstr "" "هناك فرق بسيط واحد: إذا صُرّح عن المتغيرات باستخدام CW<\\*(C`my\\*(C'> في قسم " "التهيئة الخاص بـ CW<\\*(C`for\\*(C'>، فإن النطاق المعجمي (lexical scope) " "لهذه المتغيرات هو حلقة CW<\\*(C`for\\*(C'> تحديدًا (جسم الحلقة وأقسام " "التحكم). للتوضيح:" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& my $i = \\*(Aqsamba\\*(Aq;\n" "\\& for (my $i = 1; $i E= 4; $i++) {\n" "\\& print \"$i\\en\";\n" "\\& }\n" "\\& print \"$i\\en\";\n" msgstr "" "\\& my $i = \\*(Aqsamba\\*(Aq;\n" "\\& for (my $i = 1; $i E= 4; $i++) {\n" "\\& print \"$i\\en\";\n" "\\& }\n" "\\& print \"$i\\en\";\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "when executed, gives:" msgstr "عند التنفيذ، يعطي:" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& 1\n" "\\& 2\n" "\\& 3\n" "\\& 4\n" "\\& samba\n" msgstr "" "\\& 1\n" "\\& 2\n" "\\& 3\n" "\\& 4\n" "\\& samba\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "As a special case, if the test in the CW<\\*(C`for\\*(C'> loop (or the " "corresponding \\&CW<\\*(C`while\\*(C'> loop) is empty, it is treated as " "true. That is, both" msgstr "" "كحالة خاصة، إذا كان الاختبار في حلقة CW<\\*(C`for\\*(C'> (أو حلقة " "\\&CW<\\*(C`while\\*(C'> المقابلة) فارغًا، فإنه يُعامل كقيمة صواب. أي أن كلاً من" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& for (;;) {\n" "\\& ...\n" "\\& }\n" msgstr "" "\\& for (;;) {\n" "\\& ...\n" "\\& }\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "and" msgstr "و" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& while () {\n" "\\& ...\n" "\\& }\n" msgstr "" "\\& while () {\n" "\\& ...\n" "\\& }\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "are treated as infinite loops." msgstr "تُعاملان كحلقات لا نهائية." #. type: Plain text #: debian-trixie debian-unstable msgid "" "Besides the normal array index looping, CW<\\*(C`for\\*(C'> can lend itself " "to many other interesting applications. Here's one that avoids the problem " "you get into if you explicitly test for end-of-file on an interactive file " "descriptor causing your program to appear to hang." msgstr "" "إلى جانب التكرار العادي عبر فهارس المصفوفات، يمكن لـ CW<\\*(C`for\\*(C'> أن " "تُستخدم في تطبيقات أخرى مثيرة للاهتمام. إليك أحدها الذي يتجنب المشكلة التي " "تحدث عند الاختبار الصريح لنهاية الملف (EOF) على واصف ملف تفاعلي مما يتسبب في " "ظهور البرنامج وكأنه معلق." #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "eof end-of-file end of file" msgstr "eof نهاية-الملف نهاية الملف" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& $on_a_tty = -t STDIN && -t STDOUT;\n" "\\& sub prompt { print \"yes? \" if $on_a_tty }\n" "\\& for ( prompt(); ESTDINE; prompt() ) {\n" "\\& # do something\n" "\\& }\n" msgstr "" "\\& $on_a_tty = -t STDIN && -t STDOUT;\n" "\\& sub prompt { print \"yes? \" if $on_a_tty }\n" "\\& for ( prompt(); ESTDINE; prompt() ) {\n" "\\& # افعل شيئًا\n" "\\& }\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The condition expression of a CW<\\*(C`for\\*(C'> loop gets the same magic " "treatment of \\&CW<\\*(C`readline\\*(C'> et al that the condition expression " "of a CW<\\*(C`while\\*(C'> loop gets." msgstr "" "تحصل تعبيرات الشرط في حلقة CW<\\*(C`for\\*(C'> على نفس المعالجة السحرية لـ " "\\&CW<\\*(C`readline\\*(C'> وأمثالها التي يحصل عليها تعبير الشرط في حلقة " "CW<\\*(C`while\\*(C'>." #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Foreach Loops" msgstr "حلقات Foreach" #. type: Plain text #: debian-trixie debian-unstable msgid "" "The CW<\\*(C`foreach\\*(C'> loop iterates over a normal list value and sets " "the scalar variable VAR to be each element of the list in turn. If the " "variable is preceded with the keyword CW<\\*(C`my\\*(C'>, then it is " "lexically scoped, and is therefore visible only within the loop. Otherwise, " "the variable is implicitly local to the loop and regains its former value " "upon exiting the loop. If the variable was previously declared with " "CW<\\*(C`my\\*(C'>, it uses that variable instead of the global one, but " "it's still localized to the loop. This implicit localization occurs I " "for non C-style loops." msgstr "" "تكرر حلقة CW<\\*(C`foreach\\*(C'> عبر قيم قائمة عادية وتضبط المتغير القياسي " "VAR ليكون كل عنصر من عناصر القائمة بالدور. إذا سُبق المتغير بالكلمة المفتاحية " "CW<\\*(C`my\\*(C'>، فإنه يكون محدود النطاق معجميًا، وبالتالي لا يظهر إلا داخل " "الحلقة. وخلاف ذلك، يكون المتغير محليًا ضمنيًا للحلقة ويستعيد قيمته السابقة عند " "الخروج منها. إذا صُرّح عن المتغير مسبقًا باستخدام CW<\\*(C`my\\*(C'>، فإنه " "يستخدم ذلك المتغير بدلاً من العالمي، لكنه يظل محصور النطاق في الحلقة. يحدث " "هذا التوطين الضمني I<فقط> في الحلقات التي لا تتبع نمط لغة C." #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "my local" msgstr "my local" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The CW<\\*(C`foreach\\*(C'> keyword is actually a synonym for the " "CW<\\*(C`for\\*(C'> keyword, so you can use either. If VAR is omitted, " "CW<$_> is set to each value." msgstr "" "الكلمة المفتاحية CW<\\*(C`foreach\\*(C'> هي في الواقع مرادف للكلمة المفتاحية " "CW<\\*(C`for\\*(C'>، لذا يمكنك استخدام أيهما. إذا حُذف VAR، يُضبط CW<$_> لكل " "قيمة." #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "$_" msgstr "$_" #. type: Plain text #: debian-trixie debian-unstable msgid "" "If any element of LIST is an lvalue, you can modify it by modifying VAR " "inside the loop. Conversely, if any element of LIST is NOT an lvalue, any " "attempt to modify that element will fail. In other words, the " "CW<\\*(C`foreach\\*(C'> loop index variable is an implicit alias for each " "item in the list that you're looping over." msgstr "" "إذا كان أي عنصر في LIST يمثل قيمة يسارية (lvalue)، يمكنك تعديله عن طريق " "تعديل VAR داخل الحلقة. وبالعكس، إذا لم يكن أي عنصر في LIST قيمة يسارية، فإن " "أي محاولة لتعديل ذلك العنصر ستفشل. بمعنى آخر، متغير فهرس حلقة " "CW<\\*(C`foreach\\*(C'> هو اسم مستعار (alias) ضمني لكل عنصر في القائمة التي " "تكرر عبرها." #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "alias" msgstr "alias" #. type: Plain text #: debian-trixie debian-unstable msgid "" "If any part of LIST is an array, CW<\\*(C`foreach\\*(C'> will get very " "confused if you add or remove elements within the loop body, for example " "with \\&CW<\\*(C`splice\\*(C'>. So don't do that." msgstr "" "إذا كان أي جزء من LIST عبارة عن مصفوفة، فإن CW<\\*(C`foreach\\*(C'> ستصبح " "مرتبكة للغاية إذا أضفت أو أزلت عناصر داخل جسم الحلقة، على سبيل المثال " "باستخدام \\&CW<\\*(C`splice\\*(C'>. لذا لا تفعل ذلك." #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "splice" msgstr "splice" #. type: Plain text #: debian-trixie debian-unstable msgid "" "\\&CW<\\*(C`foreach\\*(C'> probably won't do what you expect if VAR is a " "tied or other special variable. Don't do that either." msgstr "" "ربما لن تفعل \\&CW<\\*(C`foreach\\*(C'> ما تتوقعه إذا كان VAR متغيرًا مربوطًا " "(tied) أو متغيرًا خاصًا آخر. لا تفعل ذلك أيضًا." #. type: Plain text #: debian-trixie debian-unstable msgid "" "As of Perl 5.22, there is an experimental variant of this loop that accepts " "a variable preceded by a backslash for VAR, in which case the items in the " "LIST must be references. The backslashed variable will become an alias to " "each referenced item in the LIST, which must be of the correct type. The " "variable needn't be a scalar in this case, and the backslash may be followed " "by CW<\\*(C`my\\*(C'>. To use this form, you must enable the " "CW<\\*(C`refaliasing\\*(C'> feature via CW<\\*(C`use feature\\*(C'>. (See " "feature. See also \"Assigning to References\" in perlref.)" msgstr "" "بدءًا من بيرل 5.22، هناك متغير تجريبي لهذه الحلقة يقبل متغيرًا مسبوقًا بشرطة " "مائلة عكسية (backslash) لـ VAR، وفي هذه الحالة يجب أن تكون العناصر في LIST " "مراجع (references). سيصبح المتغير المسبوق بشرطة مائلة عكسية اسمًا مستعارًا " "(alias) لكل عنصر مرجعي في LIST، والذي يجب أن يكون من النوع الصحيح. لا يشترط " "أن يكون المتغير قياسيًا في هذه الحالة، ويمكن أن تتبع الشرطة المائلة العكسية " "بـ CW<\\*(C`my\\*(C'>. لاستخدام هذه الصيغة، يجب تفعيل ميزة " "CW<\\*(C`refaliasing\\*(C'> عبر CW<\\*(C`use feature\\*(C'>. (انظر feature. " "انظر أيضًا \"Assigning to References\" في perlref.)" #. type: Plain text #: debian-trixie debian-unstable msgid "" "As of Perl 5.36, you can iterate over multiple values at a time. You can " "only iterate with lexical scalars as the iterator variables - unlike list " "assignment, it's not possible to use CW<\\*(C`undef\\*(C'> to signify a " "value that isn't wanted. This is a limitation of the current " "implementation, and might be changed in the future." msgstr "" "بدءًا من بيرل 5.36، يمكنك التكرار عبر عدة قيم في المرة الواحدة. لا يمكنك " "التكرار إلا باستخدام متغيرات قياسية معجمية كمتغيرات تكرار - على عكس إسناد " "القوائم، ليس من الممكن استخدام CW<\\*(C`undef\\*(C'> للإشارة إلى قيمة غير " "مرغوب فيها. هذا قيد في التنفيذ الحالي، وقد يتغير في المستقبل." #. type: Plain text #: debian-trixie debian-unstable msgid "" "If the size of the LIST is not an exact multiple of the number of iterator " "variables, then on the last iteration the \"excess\" iterator variables are " "aliases to CW<\\*(C`undef\\*(C'>, as if the LIST had CW<\\*(C`, undef\\*(C'> " "appended as many times as needed for its length to become an exact " "multiple. This happens whether LIST is a literal LIST or an array - ie " "arrays are not extended if their size is not a multiple of the iteration " "size, consistent with iterating an array one-at-a-time. As these padding " "elements are not lvalues, attempting to modify them will fail, consistent " "with the behaviour when iterating a list with literal " "CW<\\*(C`undef\\*(C'>s. If this is not the behaviour you desire, then " "before the loop starts either explicitly extend your array to be an exact " "multiple, or explicitly throw an exception." msgstr "" "إذا لم يكن حجم LIST مضاعفًا دقيقًا لعدد متغيرات التكرار، ففي التكرار الأخير " "ستكون متغيرات التكرار \"الزائدة\" أسماء مستعارة لـ CW<\\*(C`undef\\*(C'>، " "كما لو كان قد أُلحق بـ LIST القيمة CW<\\*(C`, undef\\*(C'> بالقدر اللازم " "ليصبح طولها مضاعفًا دقيقًا. يحدث هذا سواء كانت LIST قائمة صريحة أو مصفوفة - أي " "أن المصفوفات لا تُمدد إذا لم يكن حجمها مضاعفًا لحجم التكرار، بما يتفق مع تكرار " "المصفوفة عنصرًا بعنصر. وبما أن عناصر الحشو هذه ليست قيمًا يسارية (lvalues)، " "فإن محاولة تعديلها ستفشل، بما يتفق مع السلوك عند تكرار قائمة تحتوي على قيم " "CW<\\*(C`undef\\*(C'> صريحة. إذا لم يكن هذا هو السلوك الذي ترغب فيه، فقبل " "بدء الحلقة، إما أن تمدد مصفوفتك صراحة لتكون مضاعفًا دقيقًا، أو أن تطلق استثناءً " "صراحة." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "Examples:" msgstr "أمثلة:" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& for (@ary) { s/foo/bar/ }\n" "\\&\n" "\\& for my $elem (@elements) {\n" "\\& $elem *= 2;\n" "\\& }\n" "\\&\n" "\\& for $count (reverse(1..10), \"BOOM\") {\n" "\\& print $count, \"\\en\";\n" "\\& sleep(1);\n" "\\& }\n" "\\&\n" "\\& for (1..15) { print \"Merry Christmas\\en\"; }\n" "\\&\n" "\\& foreach $item (split(/:[\\e\\e\\en:]*/, $ENV{TERMCAP})) {\n" "\\& print \"Item: $item\\en\";\n" "\\& }\n" "\\&\n" "\\& use feature \"refaliasing\";\n" "\\& no warnings \"experimental::refaliasing\";\n" "\\& foreach \\emy %hash (@array_of_hash_references) {\n" "\\& # do something with each %hash\n" "\\& }\n" "\\&\n" "\\& foreach my ($foo, $bar, $baz) (@list) {\n" "\\& # do something three-at-a-time\n" "\\& }\n" "\\&\n" "\\& foreach my ($key, $value) (%hash) {\n" "\\& # iterate over the hash\n" "\\& # The hash is immediately copied to a flat list before the loop\n" "\\& # starts. The list contains copies of keys but aliases of values.\n" "\\& # This is the same behaviour as for $var (%hash) {...}\n" "\\& }\n" msgstr "" "\\& for (@ary) { s/foo/bar/ }\n" "\\&\n" "\\& for my $elem (@elements) {\n" "\\& $elem *= 2;\n" "\\& }\n" "\\&\n" "\\& for $count (reverse(1..10), \"BOOM\") {\n" "\\& print $count, \"\\en\";\n" "\\& sleep(1);\n" "\\& }\n" "\\&\n" "\\& for (1..15) { print \"Merry Christmas\\en\"; }\n" "\\&\n" "\\& foreach $item (split(/:[\\e\\e\\en:]*/, $ENV{TERMCAP})) {\n" "\\& print \"Item: $item\\en\";\n" "\\& }\n" "\\&\n" "\\& use feature \"refaliasing\";\n" "\\& no warnings \"experimental::refaliasing\";\n" "\\& foreach \\emy %hash (@array_of_hash_references) {\n" "\\& # افعل شيئًا مع كل %hash\n" "\\& }\n" "\\&\n" "\\& foreach my ($foo, $bar, $baz) (@list) {\n" "\\& # افعل شيئًا ثلاثة بثلاثة\n" "\\& }\n" "\\&\n" "\\& foreach my ($key, $value) (%hash) {\n" "\\& # التكرار عبر الهاش\n" "\\& # يُنسخ الهاش فورًا إلى قائمة مسطحة قبل بدء الحلقة.\n" "\\& # تحتوي القائمة على نسخ من المفاتيح ولكن أسماء مستعارة للقيم.\n" "\\& # هذا هو نفس سلوك $var (%hash) {...}\n" "\\& }\n" #. type: Plain text #: debian-trixie debian-unstable msgid "Here's how a C programmer might code up a particular algorithm in Perl:" msgstr "إليك كيف قد يكتب مبرمج لغة C خوارزمية معينة في بيرل:" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& for (my $i = 0; $i E @ary1; $i++) {\n" "\\& for (my $j = 0; $j E @ary2; $j++) {\n" "\\& if ($ary1[$i] E $ary2[$j]) {\n" "\\& last; # can\\*(Aqt go to outer :-(\n" "\\& }\n" "\\& $ary1[$i] += $ary2[$j];\n" "\\& }\n" "\\& # this is where that last takes me\n" "\\& }\n" msgstr "" "\\& for (my $i = 0; $i E @ary1; $i++) {\n" "\\& for (my $j = 0; $j E @ary2; $j++) {\n" "\\& if ($ary1[$i] E $ary2[$j]) {\n" "\\& last; # لا يمكن الذهاب للحلقة الخارجية :-(\n" "\\& }\n" "\\& $ary1[$i] += $ary2[$j];\n" "\\& }\n" "\\& # هذا هو المكان الذي يأخذني إليه last\n" "\\& }\n" #. type: Plain text #: debian-trixie debian-unstable msgid "" "Whereas here's how a Perl programmer more comfortable with the idiom might " "do it:" msgstr "بينما إليك كيف قد يفعل ذلك مبرمج بيرل أكثر ارتياحًا لأسلوب اللغة:" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& OUTER: for my $wid (@ary1) {\n" "\\& INNER: for my $jet (@ary2) {\n" "\\& next OUTER if $wid E $jet;\n" "\\& $wid += $jet;\n" "\\& }\n" "\\& }\n" msgstr "" "\\& OUTER: for my $wid (@ary1) {\n" "\\& INNER: for my $jet (@ary2) {\n" "\\& next OUTER if $wid E $jet;\n" "\\& $wid += $jet;\n" "\\& }\n" "\\& }\n" #. type: Plain text #: debian-trixie debian-unstable msgid "" "See how much easier this is? It's cleaner, safer, and faster. It's cleaner " "because it's less noisy. It's safer because if code gets added between the " "inner and outer loops later on, the new code won't be accidentally " "executed. The CW<\\*(C`next\\*(C'> explicitly iterates the other loop " "rather than merely terminating the inner one. And it's faster because Perl " "executes a CW<\\*(C`foreach\\*(C'> statement more rapidly than it would the " "equivalent C-style CW<\\*(C`for\\*(C'> loop." msgstr "" "انظر كم هذا أسهل؟ إنه أنظف، وأكثر أمانًا، وأسرع. إنه أنظف لأنه أقل تعقيدًا. " "وأكثر أمانًا لأنه إذا أُضيف كود بين الحلقتين الداخلية والخارجية لاحقًا، فلن " "يُنفذ الكود الجديد عن طريق الخطأ. إن CW<\\*(C`next\\*(C'> تكرر بوضوح الحلقة " "الأخرى بدلاً من مجرد إنهاء الحلقة الداخلية. وهو أسرع لأن بيرل تنفذ جملة " "CW<\\*(C`foreach\\*(C'> بسرعة أكبر مما تنفذ به حلقة CW<\\*(C`for\\*(C'> " "المكافئة بنمط C." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Perceptive Perl hackers may have noticed that a CW<\\*(C`for\\*(C'> loop has " "a return value, and that this value can be captured by wrapping the loop in " "a CW<\\*(C`do\\*(C'> block. The reward for this discovery is this " "cautionary advice: The return value of a CW<\\*(C`for\\*(C'> loop is " "unspecified and may change without notice. Do not rely on it." msgstr "" "ربما لاحظ مخترقو بيرل النبيهون أن حلقة CW<\\*(C`for\\*(C'> لها قيمة إرجاع، " "وأنه يمكن التقاط هذه القيمة عن طريق تغليف الحلقة في كتلة CW<\\*(C`do\\*(C'>. " "المكافأة على هذا الاكتشاف هي هذه النصيحة التحذيرية: قيمة إرجاع حلقة " "CW<\\*(C`for\\*(C'> غير محددة وقد تتغير دون إشعار. لا تعتمد عليها." #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Try Catch Exception Handling" msgstr "معالجة الاستثناءات Try Catch" #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "try catch finally" msgstr "try catch finally" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The CW<\\*(C`try\\*(C'>/CW<\\*(C`catch\\*(C'> syntax provides control flow " "relating to exception handling. The CW<\\*(C`try\\*(C'> keyword introduces a " "block which will be executed when it is encountered, and the " "CW<\\*(C`catch\\*(C'> block provides code to handle any exception that may " "be thrown by the first." msgstr "" "توفر صيغة CW<\\*(C`try\\*(C'>/CW<\\*(C`catch\\*(C'> تدفق تحكم يتعلق بمعالجة " "الاستثناءات. تقدم الكلمة المفتاحية CW<\\*(C`try\\*(C'> كتلة ستُنفذ عند " "مواجهتها، وتوفر كتلة CW<\\*(C`catch\\*(C'> كودًا لمعالجة أي استثناء قد يُطلق " "من الكتلة الأولى." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "This syntax must first be enabled with CW<\\*(C`use feature " "\\*(Aqtry\\*(Aq\\*(C'>." msgstr "" "يجب تفعيل هذه الصيغة أولاً باستخدام CW<\\*(C`use feature " "\\*(Aqtry\\*(Aq\\*(C'>." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& use feature \\*(Aqtry\\*(Aq;\n" "\\&\n" "\\& try {\n" "\\& my $x = call_a_function();\n" "\\& $x E 100 or die \"Too big\";\n" "\\& send_output($x);\n" "\\& }\n" "\\& catch ($e) {\n" "\\& warn \"Unable to output a value; $e\";\n" "\\& }\n" "\\& print \"Finished\\en\";\n" msgstr "" "\\& use feature \\*(Aqtry\\*(Aq;\n" "\\&\n" "\\& try {\n" "\\& my $x = call_a_function();\n" "\\& $x E 100 or die \"Too big\";\n" "\\& send_output($x);\n" "\\& }\n" "\\& catch ($e) {\n" "\\& warn \"Unable to output a value; $e\";\n" "\\& }\n" "\\& print \"Finished\\en\";\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Here, the body of the CW<\\*(C`catch\\*(C'> block (i.e. the " "CW<\\*(C`warn\\*(C'> statement) will be executed if the initial block " "invokes the conditional CW<\\*(C`die\\*(C'>, or if either of the functions " "it invokes throws an uncaught exception. The CW<\\*(C`catch\\*(C'> block can " "inspect the CW<$e> lexical variable in this case to see what the exception " "was. If no exception was thrown then the CW<\\*(C`catch\\*(C'> block does " "not happen. In either case, execution will then continue from the following " "statement - in this example the CW<\\*(C`print\\*(C'>." msgstr "" "هنا، سيُنفذ جسم كتلة CW<\\*(C`catch\\*(C'> (أي جملة CW<\\*(C`warn\\*(C'>) إذا " "استدعت الكتلة الأولية جملة CW<\\*(C`die\\*(C'> الشرطية، أو إذا أطلقت أي من " "الدوال التي تستدعيها استثناءً غير ملتقط. يمكن لكتلة CW<\\*(C`catch\\*(C'> فحص " "المتغير المعجمي CW<$e> في هذه الحالة لمعرفة ماهية الاستثناء. إذا لم يُطلق أي " "استثناء، فلن تُنفذ كتلة CW<\\*(C`catch\\*(C'>. وفي كلتا الحالتين، سيستمر " "التنفيذ من الجملة التالية - في هذا المثال جملة CW<\\*(C`print\\*(C'>." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The CW<\\*(C`catch\\*(C'> keyword must be immediately followed by a variable " "declaration in parentheses, which introduces a new variable visible to the " "body of the subsequent block. Inside the block this variable will contain " "the exception value that was thrown by the code in the CW<\\*(C`try\\*(C'> " "block. It is not necessary to use the CW<\\*(C`my\\*(C'> keyword to declare " "this variable; this is implied (similar as it is for subroutine signatures)." msgstr "" "يجب أن تتبع الكلمة المفتاحية CW<\\*(C`catch\\*(C'> مباشرة بتصريح عن متغير " "بين قوسين، مما يقدم متغيرًا جديدًا مرئيًا لجسم الكتلة اللاحقة. داخل الكتلة، " "سيحتوي هذا المتغير على قيمة الاستثناء التي أُطلقت بواسطة الكود في كتلة " "CW<\\*(C`try\\*(C'>. ليس من الضروري استخدام الكلمة المفتاحية " "CW<\\*(C`my\\*(C'> للتصريح عن هذا المتغير؛ فهذا أمر ضمني (بشكل مشابه لتواقيع " "الدوال الفرعية)." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Both the CW<\\*(C`try\\*(C'> and the CW<\\*(C`catch\\*(C'> blocks are " "permitted to contain control-flow expressions, such as " "CW<\\*(C`return\\*(C'>, CW<\\*(C`goto\\*(C'>, or CW<\\*(C`next\\*(C'>/" "CW<\\*(C`last\\*(C'>/CW<\\*(C`redo\\*(C'>. In all cases they behave as " "expected without warnings. In particular, a CW<\\*(C`return\\*(C'> " "expression inside the CW<\\*(C`try\\*(C'> block will make its entire " "containing function return - this is in contrast to its behaviour inside an " "CW<\\*(C`eval\\*(C'> block, where it would only make that block return." msgstr "" "يُسمح لكل من كتلتي CW<\\*(C`try\\*(C'> و CW<\\*(C`catch\\*(C'> باحتواء " "تعبيرات تدفق التحكم، مثل CW<\\*(C`return\\*(C'>، أو CW<\\*(C`goto\\*(C'>، أو " "CW<\\*(C`next\\*(C'>/CW<\\*(C`last\\*(C'>/CW<\\*(C`redo\\*(C'>. وفي جميع " "الحالات ستعمل كما هو متوقع دون تحذيرات. وبوجه خاص، فإن تعبير " "CW<\\*(C`return\\*(C'> داخل كتلة CW<\\*(C`try\\*(C'> سيجعل الدالة المحتوية " "له بالكامل تعود (return) - وهذا على عكس سلوكه داخل كتلة " "CW<\\*(C`eval\\*(C'>، حيث سيجعل تلك الكتلة فقط تعود." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Like other control-flow syntax, CW<\\*(C`try\\*(C'> and " "CW<\\*(C`catch\\*(C'> will yield the last evaluated value when placed as the " "final statement in a function or a CW<\\*(C`do\\*(C'> block. This permits " "the syntax to be used to create a value. In this case remember not to use " "the CW<\\*(C`return\\*(C'> expression, or that will cause the containing " "function to return." msgstr "" "مثل صيغ تدفق التحكم الأخرى، ستنتج CW<\\*(C`try\\*(C'> و " "CW<\\*(C`catch\\*(C'> آخر قيمة قُيمت عند وضعها كجملة أخيرة في دالة أو كتلة " "CW<\\*(C`do\\*(C'>. وهذا يسمح باستخدام هذه الصيغة لإنشاء قيمة. في هذه الحالة " "تذكر عدم استخدام تعبير CW<\\*(C`return\\*(C'>، وإلا سيؤدي ذلك إلى عودة " "الدالة المحتوية." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& my $value = do {\n" "\\& try {\n" "\\& get_thing(@args);\n" "\\& }\n" "\\& catch ($e) {\n" "\\& warn \"Unable to get thing - $e\";\n" "\\& $DEFAULT_THING;\n" "\\& }\n" "\\& };\n" msgstr "" "\\& my $value = do {\n" "\\& try {\n" "\\& get_thing(@args);\n" "\\& }\n" "\\& catch ($e) {\n" "\\& warn \"Unable to get thing - $e\";\n" "\\& $DEFAULT_THING;\n" "\\& }\n" "\\& };\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "As with other control-flow syntax, CW<\\*(C`try\\*(C'> blocks are not " "visible to \\&CW (just as for example, CW<\\*(C`while\\*(C'> or " "CW<\\*(C`foreach\\*(C'> loops are not). Successive levels of the " "CW<\\*(C`caller\\*(C'> result can see subroutine calls and " "\\&CW<\\*(C`eval\\*(C'> blocks, because those affect the way that " "CW<\\*(C`return\\*(C'> would work. Since \\&CW<\\*(C`try\\*(C'> blocks do " "not intercept CW<\\*(C`return\\*(C'>, they are not of interest to " "\\&CW<\\*(C`caller\\*(C'>." msgstr "" "كما هو الحال مع صيغ تدفق التحكم الأخرى، لا تظهر كتل CW<\\*(C`try\\*(C'> لـ " "\\&CW (تمامًا كما لا تظهر حلقات CW<\\*(C`while\\*(C'> أو " "CW<\\*(C`foreach\\*(C'> على سبيل المثال). يمكن للمستويات المتتالية من نتيجة " "\\&CW رؤية استدعاءات الدوال الفرعية وكتل \\&CW<\\*(C`eval\\*(C'>، " "لأن تلك تؤثر على الطريقة التي تعمل بها CW<\\*(C`return\\*(C'>. وبما أن كتل " "\\&CW<\\*(C`try\\*(C'> لا تعترض CW<\\*(C`return\\*(C'>، فهي ليست ذات أهمية " "للمستدعي \\&CW." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The CW<\\*(C`try\\*(C'> and CW<\\*(C`catch\\*(C'> blocks may optionally be " "followed by a third block introduced by the CW<\\*(C`finally\\*(C'> keyword. " "This third block is executed after the rest of the construct has finished." msgstr "" "يمكن اختياريًا أن تتبع كتلتي CW<\\*(C`try\\*(C'> و CW<\\*(C`catch\\*(C'> " "بكتلة ثالثة تقدمها الكلمة المفتاحية CW<\\*(C`finally\\*(C'>. تُنفذ هذه الكتلة " "الثالثة بعد انتهاء بقية البنية." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& try {\n" "\\& call_a_function();\n" "\\& }\n" "\\& catch ($e) {\n" "\\& warn \"Unable to call; $e\";\n" "\\& }\n" "\\& finally {\n" "\\& print \"Finished\\en\";\n" "\\& }\n" msgstr "" "\\& try {\n" "\\& call_a_function();\n" "\\& }\n" "\\& catch ($e) {\n" "\\& warn \"Unable to call; $e\";\n" "\\& }\n" "\\& finally {\n" "\\& print \"Finished\\en\";\n" "\\& }\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The CW<\\*(C`finally\\*(C'> block is equivalent to using a " "CW<\\*(C`defer\\*(C'> block and will be invoked in the same situations; " "whether the CW<\\*(C`try\\*(C'> block completes successfully, throws an " "exception, or transfers control elsewhere by using " "\\&CW<\\*(C`return\\*(C'>, a loop control, or CW<\\*(C`goto\\*(C'>." msgstr "" "كتلة CW<\\*(C`finally\\*(C'> مكافئة لاستخدام كتلة CW<\\*(C`defer\\*(C'> " "وستُستدعى في نفس المواقف؛ سواء اكتملت كتلة CW<\\*(C`try\\*(C'> بنجاح، أو " "أطلقت استثناءً، أو نقلت التحكم إلى مكان آخر باستخدام " "\\&CW<\\*(C`return\\*(C'>، أو أداة تحكم في الحلقة، أو CW<\\*(C`goto\\*(C'>." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Unlike the CW<\\*(C`try\\*(C'> and CW<\\*(C`catch\\*(C'> blocks, a " "CW<\\*(C`finally\\*(C'> block is not permitted to \\&CW<\\*(C`return\\*(C'>, " "CW<\\*(C`goto\\*(C'> or use any loop controls. The final expression value is " "ignored, and does not affect the return value of the containing function " "even if it is placed last in the function." msgstr "" "على عكس كتلتي CW<\\*(C`try\\*(C'> و CW<\\*(C`catch\\*(C'>، لا يُسمح لكتلة " "CW<\\*(C`finally\\*(C'> بـ \\&CW<\\*(C`return\\*(C'> أو CW<\\*(C`goto\\*(C'> " "أو استخدام أي أدوات تحكم في الحلقات. تُتجاهل قيمة التعبير النهائي، ولا تؤثر " "على قيمة إرجاع الدالة المحتوية حتى لو وُضعت في نهاية الدالة." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Use of this CW<\\*(C`finally\\*(C'> block syntax is currently experimental " "and will emit a warning in the CW<\\*(C`experimental::try\\*(C'> category." msgstr "" "استخدام صيغة كتلة CW<\\*(C`finally\\*(C'> هذه تجريبي حاليًا وسيصدر تحذيرًا في " "فئة CW<\\*(C`experimental::try\\*(C'>." #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Basic BLOCKs" msgstr "الكتل (BLOCKs) الأساسية" #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "block" msgstr "كتلة" #. type: Plain text #: debian-trixie debian-unstable msgid "" "A BLOCK by itself (labeled or not) is semantically equivalent to a loop that " "executes once. Thus you can use any of the loop control statements in it to " "leave or restart the block. (Note that this is \\&I true in " "CW<\\*(C`eval{}\\*(C'>, CW<\\*(C`sub{}\\*(C'>, or contrary to popular belief " "\\&CW<\\*(C`do{}\\*(C'> blocks, which do I count as loops.) The " "CW<\\*(C`continue\\*(C'> block is optional." msgstr "" "الكتلة (BLOCK) بحد ذاتها (سواء كانت موسومة أم لا) مكافئة دلاليًا لحلقة تُنفذ " "مرة واحدة. وبالتالي يمكنك استخدام أي من جمل التحكم في الحلقات فيها لمغادرة " "الكتلة أو إعادة تشغيلها. (لاحظ أن هذا \\&I<ليس> صحيحًا في " "CW<\\*(C`eval{}\\*(C'>، أو CW<\\*(C`sub{}\\*(C'>، أو كتل " "\\&CW<\\*(C`do{}\\*(C'> -خلافًا للاعتقاد الشائع- والتي لا تُعد حلقات). كتلة " "CW<\\*(C`continue\\*(C'> اختيارية." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "The BLOCK construct can be used to emulate case structures." msgstr "يمكن استخدام بنية BLOCK لمحاكاة بنيات الاختيار (case structures)." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& SWITCH: {\n" "\\& if (/^abc/) { $abc = 1; last SWITCH; }\n" "\\& if (/^def/) { $def = 1; last SWITCH; }\n" "\\& if (/^xyz/) { $xyz = 1; last SWITCH; }\n" "\\& $nothing = 1;\n" "\\& }\n" msgstr "" "\\& SWITCH: {\n" "\\& if (/^abc/) { $abc = 1; last SWITCH; }\n" "\\& if (/^def/) { $def = 1; last SWITCH; }\n" "\\& if (/^xyz/) { $xyz = 1; last SWITCH; }\n" "\\& $nothing = 1;\n" "\\& }\n" #. type: Plain text #: debian-trixie debian-unstable msgid "" "You'll also find that CW<\\*(C`foreach\\*(C'> loop used to create a " "topicalizer and a switch:" msgstr "" "ستجد أيضًا أن حلقة CW<\\*(C`foreach\\*(C'> تُستخدم لإنشاء موضوعي (topicalizer) " "ومبدل (switch):" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& SWITCH:\n" "\\& for ($var) {\n" "\\& if (/^abc/) { $abc = 1; last SWITCH; }\n" "\\& if (/^def/) { $def = 1; last SWITCH; }\n" "\\& if (/^xyz/) { $xyz = 1; last SWITCH; }\n" "\\& $nothing = 1;\n" "\\& }\n" msgstr "" "\\& SWITCH:\n" "\\& for ($var) {\n" "\\& if (/^abc/) { $abc = 1; last SWITCH; }\n" "\\& if (/^def/) { $def = 1; last SWITCH; }\n" "\\& if (/^xyz/) { $xyz = 1; last SWITCH; }\n" "\\& $nothing = 1;\n" "\\& }\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Such constructs are quite frequently used, both because older versions of " "Perl had no official CW<\\*(C`switch\\*(C'> statement, and also because the " "new version described immediately below remains experimental and can " "sometimes be confusing." msgstr "" "تُستخدم مثل هذه البنيات بشكل متكرر، لأن الإصدارات القديمة من بيرل لم تكن " "تحتوي على جملة CW<\\*(C`switch\\*(C'> رسمية، وأيضًا لأن الإصدار الجديد " "الموصوف أدناه مباشرة لا يزال تجريبيًا ويمكن أن يكون مربكًا أحيانًا." #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "defer blocks" msgstr "كتل defer" #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "defer" msgstr "defer" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "A block prefixed by the CW<\\*(C`defer\\*(C'> modifier provides a section of " "code which runs at a later time during scope exit." msgstr "" "توفر الكتلة المسبوقة بالمعدل CW<\\*(C`defer\\*(C'> قسمًا من الكود الذي يعمل " "في وقت لاحق أثناء الخروج من النطاق." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "A CW<\\*(C`defer\\*(C'> block can appear at any point where a regular block " "or other statement is permitted. If the flow of execution reaches this " "statement, the body of the block is stored for later, but not invoked " "immediately. When the flow of control leaves the containing block for any " "reason, this stored block is executed on the way past. It provides a means " "of deferring execution until a later time. This acts similarly to syntax " "provided by some other languages, often using keywords named CW<\\*(C`try / " "finally\\*(C'>." msgstr "" "يمكن أن تظهر كتلة CW<\\*(C`defer\\*(C'> في أي نقطة يُسمح فيها بكتلة عادية أو " "جملة أخرى. إذا وصل تدفق التنفيذ إلى هذه الجملة، يُخزن جسم الكتلة لوقت لاحق، " "ولكن لا تُستدعى فورًا. عندما يغادر تدفق التحكم الكتلة المحتوية لأي سبب، تُنفذ " "هذه الكتلة المخزنة أثناء الخروج. إنها توفر وسيلة لتأجيل التنفيذ حتى وقت " "لاحق. هذا يعمل بشكل مشابه للصيغ التي توفرها بعض اللغات الأخرى، وغالبًا ما " "تستخدم كلمات مفتاحية تسمى CW<\\*(C`try / finally\\*(C'>." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "This syntax is available since Perl 5.36 if enabled by the " "CW<\\*(C`defer\\*(C'> named feature, and is currently experimental. If " "experimental warnings are enabled it will emit a warning when used." msgstr "" "هذه الصيغة متاحة منذ بيرل 5.36 إذا فُعلت بواسطة ميزة CW<\\*(C`defer\\*(C'> " "المسماة، وهي تجريبية حاليًا. إذا فُعلت التحذيرات التجريبية، فسيصدر تحذير عند " "استخدامها." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& use feature \\*(Aqdefer\\*(Aq;\n" "\\&\n" "\\& {\n" "\\& say \"This happens first\";\n" "\\& defer { say \"This happens last\"; }\n" "\\&\n" "\\& say \"And this happens inbetween\";\n" "\\& }\n" msgstr "" "\\& use feature \\*(Aqdefer\\*(Aq;\n" "\\&\n" "\\& {\n" "\\& say \"يحدث هذا أولاً\";\n" "\\& defer { say \"يحدث هذا آخراً\"; }\n" "\\&\n" "\\& say \"وهذا يحدث بينهما\";\n" "\\& }\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If multiple CW<\\*(C`defer\\*(C'> blocks are contained in a single scope, " "they are executed in LIFO order; the last one reached is the first one " "executed." msgstr "" "إذا كانت هناك عدة كتل CW<\\*(C`defer\\*(C'> محتواه في نطاق واحد، فإنها تُنفذ " "بترتيب LIFO (آخر من يدخل يخرج أولاً)؛ أي أن آخر كتلة وُصل إليها هي أول كتلة " "تُنفذ." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The code stored by the CW<\\*(C`defer\\*(C'> block will be invoked when " "control leaves its containing block due to regular fallthrough, explicit " "CW<\\*(C`return\\*(C'>, exceptions thrown by CW<\\*(C`die\\*(C'> or " "propagated by functions called by it, CW<\\*(C`goto\\*(C'>, or any of the " "loop control statements CW<\\*(C`next\\*(C'>, CW<\\*(C`last\\*(C'> or " "CW<\\*(C`redo\\*(C'>." msgstr "" "يُستدعى الكود المخزن بواسطة كتلة CW<\\*(C`defer\\*(C'> عندما يغادر التحكم " "الكتلة المحتوية له بسبب المرور العادي، أو CW<\\*(C`return\\*(C'> صريح، أو " "استثناءات أُطلقت بواسطة CW<\\*(C`die\\*(C'> أو نُشرت بواسطة الدوال التي " "تستدعيها، أو CW<\\*(C`goto\\*(C'>، أو أي من جمل التحكم في الحلقات " "CW<\\*(C`next\\*(C'>، أو CW<\\*(C`last\\*(C'>، أو CW<\\*(C`redo\\*(C'>." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If the flow of control does not reach the CW<\\*(C`defer\\*(C'> statement " "itself then its body is not stored for later execution. (This is in direct " "contrast to the code provided by an CW<\\*(C`END\\*(C'> phaser block, which " "is always enqueued by the compiler, regardless of whether execution ever " "reached the line it was given on.)" msgstr "" "إذا لم يصل تدفق التحكم إلى جملة CW<\\*(C`defer\\*(C'> نفسها، فلن يُخزن جسمها " "للتنفيذ اللاحق. (هذا في تضاد مباشر مع الكود الذي توفره كتلة " "\\&CW<\\*(C`END\\*(C'>، والتي يضعها المترجم دائمًا في الطابور، بغض النظر عما " "إذا كان التنفيذ قد وصل إلى السطر الذي وردت فيه أم لا)." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& use feature \\*(Aqdefer\\*(Aq;\n" "\\&\n" "\\& {\n" "\\& defer { say \"This will run\"; }\n" "\\& return;\n" "\\& defer { say \"This will not\"; }\n" "\\& }\n" msgstr "" "\\& use feature \\*(Aqdefer\\*(Aq;\n" "\\&\n" "\\& {\n" "\\& defer { say \"هذا سيعمل\"; }\n" "\\& return;\n" "\\& defer { say \"هذا لن يعمل\"; }\n" "\\& }\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Exceptions thrown by code inside a CW<\\*(C`defer\\*(C'> block will " "propagate to the caller in the same way as any other exception thrown by " "normal code." msgstr "" "الاستثناءات التي يُطلقها الكود داخل كتلة CW<\\*(C`defer\\*(C'> ستنتشر إلى " "المستدعي بنفس الطريقة التي ينتشر بها أي استثناء آخر يطلقه الكود العادي." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If the CW<\\*(C`defer\\*(C'> block is being executed due to a thrown " "exception and throws another one it is not specified what happens, beyond " "that the caller will definitely receive an exception." msgstr "" "إذا كُتلة CW<\\*(C`defer\\*(C'> تُنفَّذ بسبب استثناء أُطلق وأطلقت هي نفسها " "استثناءً آخر، فلا يوجد سلوك محدد لما سيحدث، عدا أن المستدعي سيتلقى حتماً " "استثناءً." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Besides throwing an exception, a CW<\\*(C`defer\\*(C'> block is not " "permitted to otherwise alter the control flow of its surrounding code. In " "particular, it may not cause its containing function to " "CW<\\*(C`return\\*(C'>, nor may it CW<\\*(C`goto\\*(C'> a label, or control " "a containing loop using CW<\\*(C`next\\*(C'>, CW<\\*(C`last\\*(C'> or " "CW<\\*(C`redo\\*(C'>. These constructions are however, permitted entirely " "within the body of the \\&CW<\\*(C`defer\\*(C'>." msgstr "" "إلى جانب إطلاق استثناء، لا يُسمح لكتلة CW<\\*(C`defer\\*(C'> بتغيير تدفق " "التحكم في الكود المحيط بها بأي شكل آخر. وبوجه خاص، لا يجوز لها التسبب في " "CW<\\*(C`return\\*(C'> للدالة المحتوية لها، ولا يجوز لها عمل " "CW<\\*(C`goto\\*(C'> لوسم، أو التحكم في حلقة محتوية باستخدام " "CW<\\*(C`next\\*(C'>، أو CW<\\*(C`last\\*(C'>، أو CW<\\*(C`redo\\*(C'>. ومع " "ذلك، فإن هذه البنيات مسموح بها تمامًا داخل جسم \\&CW<\\*(C`defer\\*(C'> نفسه." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& use feature \\*(Aqdefer\\*(Aq;\n" "\\&\n" "\\& {\n" "\\& defer {\n" "\\& foreach ( 1 .. 5 ) {\n" "\\& last if $_ == 3; # this is permitted\n" "\\& }\n" "\\& }\n" "\\& }\n" "\\&\n" "\\& {\n" "\\& foreach ( 6 .. 10 ) {\n" "\\& defer {\n" "\\& last if $_ == 8; # this is not\n" "\\& }\n" "\\& }\n" "\\& }\n" msgstr "" "\\& use feature \\*(Aqdefer\\*(Aq;\n" "\\&\n" "\\& {\n" "\\& defer {\n" "\\& foreach ( 1 .. 5 ) {\n" "\\& last if $_ == 3; # هذا مسموح به\n" "\\& }\n" "\\& }\n" "\\& }\n" "\\&\n" "\\& {\n" "\\& foreach ( 6 .. 10 ) {\n" "\\& defer {\n" "\\& last if $_ == 8; # هذا غير مسموح به\n" "\\& }\n" "\\& }\n" "\\& }\n" #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Switch Statements" msgstr "جمل Switch" #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "switch case given when default" msgstr "switch case given when default" #. type: Plain text #: debian-trixie debian-unstable msgid "" "Starting from Perl 5.10.1 (well, 5.10.0, but it didn't work right), you can " "say" msgstr "" "بدءًا من بيرل 5.10.1 (في الواقع 5.10.0، لكنها لم تكن تعمل بشكل صحيح)، يمكنك " "قول" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "\\& use feature \"switch\";\n" msgstr "\\& use feature \"switch\";\n" #. type: Plain text #: debian-trixie debian-unstable msgid "" "to enable an experimental switch feature. This is loosely based on an old " "version of a Raku proposal, but it no longer resembles the Raku construct. " "You also get the switch feature whenever you declare that your code prefers " "to run under a version of Perl between 5.10 and 5.34. For example:" msgstr "" "لتفعيل ميزة switch تجريبية. تعتمد هذه الميزة بشكل فضفاض على نسخة قديمة من " "مقترح Raku، لكنها لم تعد تشبه بنية Raku. ستحصل أيضًا على ميزة switch كلما " "صرحت بأن الكود الخاص بك يفضل العمل تحت إصدار من بيرل بين 5.10 و 5.34. على " "سبيل المثال:" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "\\& use v5.14;\n" msgstr "\\& use v5.14;\n" #. type: Plain text #: debian-trixie debian-unstable msgid "" "Under the \"switch\" feature, Perl gains the experimental keywords " "\\&CW<\\*(C`given\\*(C'>, CW<\\*(C`when\\*(C'>, CW<\\*(C`default\\*(C'>, " "CW<\\*(C`continue\\*(C'>, and CW<\\*(C`break\\*(C'>. Starting from Perl " "5.16, one can prefix the switch keywords with CW<\\*(C`CORE::\\*(C'> to " "access the feature without a CW<\\*(C`use feature\\*(C'> statement. The " "keywords CW<\\*(C`given\\*(C'> and \\&CW<\\*(C`when\\*(C'> are analogous to " "CW<\\*(C`switch\\*(C'> and \\&CW<\\*(C`case\\*(C'> in other languages -- " "though CW<\\*(C`continue\\*(C'> is not -- so the code in the previous " "section could be rewritten as" msgstr "" "تحت ميزة \"switch\"، تكتسب بيرل الكلمات المفتاحية التجريبية " "\\&CW<\\*(C`given\\*(C'>، و CW<\\*(C`when\\*(C'>، و CW<\\*(C`default\\*(C'>، " "و CW<\\*(C`continue\\*(C'>، و CW<\\*(C`break\\*(C'>. بدءًا من بيرل 5.16، يمكن " "للمرء أن يسبق كلمات switch المفتاحية بـ CW<\\*(C`CORE::\\*(C'> للوصول إلى " "الميزة دون جملة CW<\\*(C`use feature\\*(C'>. الكلمتان المفتاحيتان " "CW<\\*(C`given\\*(C'> و \\&CW<\\*(C`when\\*(C'> تشبهان " "CW<\\*(C`switch\\*(C'> و \\&CW<\\*(C`case\\*(C'> في اللغات الأخرى -- رغم أن " "CW<\\*(C`continue\\*(C'> ليست كذلك -- لذا يمكن إعادة كتابة الكود في القسم " "السابق كـ" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& use v5.10.1;\n" "\\& for ($var) {\n" "\\& when (/^abc/) { $abc = 1 }\n" "\\& when (/^def/) { $def = 1 }\n" "\\& when (/^xyz/) { $xyz = 1 }\n" "\\& default { $nothing = 1 }\n" "\\& }\n" msgstr "" "\\& use v5.10.1;\n" "\\& for ($var) {\n" "\\& when (/^abc/) { $abc = 1 }\n" "\\& when (/^def/) { $def = 1 }\n" "\\& when (/^xyz/) { $xyz = 1 }\n" "\\& default { $nothing = 1 }\n" "\\& }\n" #. type: Plain text #: debian-trixie debian-unstable msgid "" "The CW<\\*(C`foreach\\*(C'> is the non-experimental way to set a " "topicalizer. If you wish to use the highly experimental " "CW<\\*(C`given\\*(C'>, that could be written like this:" msgstr "" "تعتبر CW<\\*(C`foreach\\*(C'> هي الطريقة غير التجريبية لضبط الموضوعي " "(topicalizer). إذا كنت ترغب في استخدام CW<\\*(C`given\\*(C'> التجريبية " "للغاية، فيمكن كتابتها بهذا الشكل:" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& use v5.10.1;\n" "\\& given ($var) {\n" "\\& when (/^abc/) { $abc = 1 }\n" "\\& when (/^def/) { $def = 1 }\n" "\\& when (/^xyz/) { $xyz = 1 }\n" "\\& default { $nothing = 1 }\n" "\\& }\n" msgstr "" "\\& use v5.10.1;\n" "\\& given ($var) {\n" "\\& when (/^abc/) { $abc = 1 }\n" "\\& when (/^def/) { $def = 1 }\n" "\\& when (/^xyz/) { $xyz = 1 }\n" "\\& default { $nothing = 1 }\n" "\\& }\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "As of 5.14, that can also be written this way:" msgstr "اعتبارًا من 5.14، يمكن أيضًا كتابة ذلك بهذه الطريقة:" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& use v5.14;\n" "\\& for ($var) {\n" "\\& $abc = 1 when /^abc/;\n" "\\& $def = 1 when /^def/;\n" "\\& $xyz = 1 when /^xyz/;\n" "\\& default { $nothing = 1 }\n" "\\& }\n" msgstr "" "\\& use v5.14;\n" "\\& for ($var) {\n" "\\& $abc = 1 when /^abc/;\n" "\\& $def = 1 when /^def/;\n" "\\& $xyz = 1 when /^xyz/;\n" "\\& default { $nothing = 1 }\n" "\\& }\n" #. type: Plain text #: debian-trixie debian-unstable msgid "Or if you don't care to play it safe, like this:" msgstr "أو إذا كنت لا تهتم باتباع الطريقة الآمنة، فبهذا الشكل:" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& use v5.14;\n" "\\& given ($var) {\n" "\\& $abc = 1 when /^abc/;\n" "\\& $def = 1 when /^def/;\n" "\\& $xyz = 1 when /^xyz/;\n" "\\& default { $nothing = 1 }\n" "\\& }\n" msgstr "" "\\& use v5.14;\n" "\\& given ($var) {\n" "\\& $abc = 1 when /^abc/;\n" "\\& $def = 1 when /^def/;\n" "\\& $xyz = 1 when /^xyz/;\n" "\\& default { $nothing = 1 }\n" "\\& }\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The arguments to CW<\\*(C`given\\*(C'> and CW<\\*(C`when\\*(C'> are in " "scalar context, and CW<\\*(C`given\\*(C'> assigns the CW<$_> variable its " "topic value." msgstr "" "تكون معاملات CW<\\*(C`given\\*(C'> و CW<\\*(C`when\\*(C'> في سياق قياسي، " "وتقوم CW<\\*(C`given\\*(C'> بإسناد قيمة الموضوع لمتغير CW<$_>." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Exactly what the I argument to CW<\\*(C`when\\*(C'> does is hard to " "describe precisely, but in general, it tries to guess what you want done. " "Sometimes it is interpreted as CW<\\*(C`$_ ~~ >\\f(CIEXPRCW<\\*(C'>, and " "sometimes it is not. It also behaves differently when lexically enclosed by " "a CW<\\*(C`given\\*(C'> block than it does when dynamically enclosed by a " "CW<\\*(C`foreach\\*(C'> loop. The rules are far too difficult to understand " "to be described here. See \"Experimental Details on given and when\" later " "on." msgstr "" "من الصعب وصف ما يفعله معامل I في CW<\\*(C`when\\*(C'> بدقة، ولكن بشكل " "عام، فإنه يحاول تخمين ما تريد فعله. أحيانًا يُفسر على أنه CW<\\*(C`$_ ~~ " ">\\f(CIEXPRCW<\\*(C'>، وأحيانًا لا. كما أنه يتصرف بشكل مختلف عندما يكون محاطًا " "معجميًا بكتلة CW<\\*(C`given\\*(C'> عما يفعله عندما يكون محاطًا ديناميكيًا " "بحلقة CW<\\*(C`foreach\\*(C'>. القواعد أصعب بكثير من أن تُفهم وتوصف هنا. انظر " "\"Experimental Details on given and when\" لاحقًا." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Due to an unfortunate bug in how CW<\\*(C`given\\*(C'> was implemented " "between Perl 5.10 and 5.16, under those implementations the version of " "CW<$_> governed by \\&CW<\\*(C`given\\*(C'> is merely a lexically scoped " "copy of the original, not a dynamically scoped alias to the original, as it " "would be if it were a \\&CW<\\*(C`foreach\\*(C'> or under both the original " "and the current Raku language specification. This bug was fixed in Perl " "5.18 (and lexicalized CW<$_> itself was removed in Perl 5.24)." msgstr "" "بسبب خطأ مؤسف في كيفية تنفيذ CW<\\*(C`given\\*(C'> بين بيرل 5.10 و 5.16، فإن " "نسخة CW<$_> المحكومة بواسطة \\&CW<\\*(C`given\\*(C'> في تلك التنفيذات هي " "مجرد نسخة ذات نطاق معجمي من الأصل، وليست اسمًا مستعارًا ذو نطاق ديناميكي " "للأصل، كما كان ينبغي أن تكون لو كانت \\&CW<\\*(C`foreach\\*(C'> أو كما هو في " "مواصفات لغة Raku الأصلية والحالية. أُصلح هذا الخطأ في بيرل 5.18 (وأُزيلت " "CW<$_> المعجمية نفسها في بيرل 5.24)." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If your code still needs to run on older versions, stick to " "CW<\\*(C`foreach\\*(C'> for your topicalizer and you will be less unhappy." msgstr "" "إذا كان الكود الخاص بك لا يزال يحتاج للعمل على إصدارات أقدم، فالتزم بـ " "CW<\\*(C`foreach\\*(C'> كموضوعي لك وستكون أقل تعاسة." #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Goto" msgstr "الانتقال (Goto)" #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "goto" msgstr "goto" #. type: Plain text #: debian-trixie debian-unstable msgid "" "Although not for the faint of heart, Perl does support a " "CW<\\*(C`goto\\*(C'> statement. There are three forms: CW<\\*(C`goto\\*(C'>-" "LABEL, CW<\\*(C`goto\\*(C'>-EXPR, and \\&CW<\\*(C`goto\\*(C'>-&NAME. A " "loop's LABEL is not actually a valid target for a CW<\\*(C`goto\\*(C'>; it's " "just the name of the loop." msgstr "" "على الرغم من أنها ليست لضعاف القلوب، إلا أن بيرل تدعم عبارة " "CW<\\*(C`goto\\*(C'>. هناك ثلاثة أشكال: LABEL-CW<\\*(C`goto\\*(C'> و EXPR-" "CW<\\*(C`goto\\*(C'> و &NAME-CW<\\*(C`goto\\*(C'>. إن وسم (LABEL) الحلقة ليس " "في الواقع هدفاً صالحاً لعبارة CW<\\*(C`goto\\*(C'>؛ بل هو مجرد اسم للحلقة." #. type: Plain text #: debian-trixie debian-unstable msgid "" "The CW<\\*(C`goto\\*(C'>-LABEL form finds the statement labeled with LABEL " "and resumes execution there. It may not be used to go into any construct " "that requires initialization, such as a subroutine or a " "CW<\\*(C`foreach\\*(C'> loop. It also can't be used to go into a construct " "that is optimized away. It can be used to go almost anywhere else within " "the dynamic scope, including out of subroutines, but it's usually better to " "use some other construct such as CW<\\*(C`last\\*(C'> or " "CW<\\*(C`die\\*(C'>. The author of Perl has never felt the need to use this " "form of CW<\\*(C`goto\\*(C'> (in Perl, that is--C is another matter)." msgstr "" "يبحث شكل LABEL-CW<\\*(C`goto\\*(C'> عن العبارة الموسومة بـ LABEL ويستأنف " "التنفيذ هناك. لا يجوز استخدامه للدخول في أي بنية تتطلب تهيئة، مثل الروتين " "الفرعي أو حلقة CW<\\*(C`foreach\\*(C'>. كما لا يمكن استخدامه للدخول في بنية " "أُزيلت عبر التحسين. يمكن استخدامه للذهاب إلى أي مكان آخر تقريباً ضمن النطاق " "الديناميكي، بما في ذلك الخروج من الروتينات الفرعية، ولكن من الأفضل عادةً " "استخدام بنية أخرى مثل CW<\\*(C`last\\*(C'> أو CW<\\*(C`die\\*(C'>. لم يشعر " "مؤلف بيرل أبداً بالحاجة إلى استخدام هذا الشكل من CW<\\*(C`goto\\*(C'> (في " "بيرل، أما في لغة C فالأمر مختلف)." #. type: Plain text #: debian-trixie debian-unstable msgid "" "The CW<\\*(C`goto\\*(C'>-EXPR form expects a label name, whose scope will be " "resolved dynamically. This allows for computed CW<\\*(C`goto\\*(C'>s per " "FORTRAN, but isn't necessarily recommended if you're optimizing for " "maintainability:" msgstr "" "يتوقع شكل EXPR-CW<\\*(C`goto\\*(C'> اسم وسم، والذي سيُحل نطاقه ديناميكياً. " "يسمح هذا بعبارات CW<\\*(C`goto\\*(C'> محسوبة كما في فورتران (FORTRAN)، ولكن " "لا يُنصح به بالضرورة إذا كنت تعمل على تحسين قابلية الصيانة:" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "\\& goto((\"FOO\", \"BAR\", \"GLARCH\")[$i]);\n" msgstr "\\& goto((\"FOO\", \"BAR\", \"GLARCH\")[$i]);\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The CW<\\*(C`goto\\*(C'>-&NAME form is highly magical, and substitutes a " "call to the named subroutine for the currently running subroutine. This is " "used by \\&CW subroutines that wish to load another subroutine " "and then pretend that the other subroutine had been called in the first " "place (except that any modifications to CW<@_> in the current subroutine are " "propagated to the other subroutine.) After the CW<\\*(C`goto\\*(C'>, not " "even CW will be able to tell that this routine was called first." msgstr "" "يعد شكل &NAME-CW<\\*(C`goto\\*(C'> سحرياً للغاية، ويستبدل استدعاء الروتين " "الفرعي المسمى بالروتين الفرعي الذي يعمل حالياً. يُستخدم هذا بواسطة روتينات " "\\&CW التي ترغب في تحميل روتين فرعي آخر ثم التظاهر بأن الروتين " "الآخر قد استُدعي في المقام الأول (باستثناء أن أي تعديلات على CW<@_> في " "الروتين الفرعي الحالي تُمرر إلى الروتين الفرعي الآخر). بعد " "CW<\\*(C`goto\\*(C'>، لن يتمكن حتى CW من معرفة أن هذا الروتين قد " "استُدعي أولاً." #. type: Plain text #: debian-trixie debian-unstable msgid "" "In almost all cases like this, it's usually a far, far better idea to use " "the structured control flow mechanisms of CW<\\*(C`next\\*(C'>, " "CW<\\*(C`last\\*(C'>, or CW<\\*(C`redo\\*(C'> instead of resorting to a " "CW<\\*(C`goto\\*(C'>. For certain applications, the catch and throw pair of " "\\&CW<\\*(C`eval{}\\*(C'> and B for exception processing can also be " "a prudent approach." msgstr "" "في جميع الحالات تقريباً مثل هذه، عادةً ما تكون فكرة أفضل بكثير استخدام آليات " "تدفق التحكم الهيكلية مثل CW<\\*(C`next\\*(C'> أو CW<\\*(C`last\\*(C'> أو " "CW<\\*(C`redo\\*(C'> بدلاً من اللجوء إلى CW<\\*(C`goto\\*(C'>. بالنسبة " "لتطبيقات معينة، يمكن أن يكون زوج (catch and throw) المتمثل في " "\\&CW<\\*(C`eval{}\\*(C'> و B لمعالجة الاستثناءات نهجاً حصيفاً أيضًا." #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "The Ellipsis Statement" msgstr "عبارة الحذف (The Ellipsis Statement)" #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "... ... statement ellipsis operator elliptical statement unimplemented statement unimplemented operator yada-yada yada-yada operator ... operator whatever operator triple-dot operator" msgstr "... عبارة ... عامل الحذف عبارة حذف عبارة غير منفذة عامل غير منفذ يادا-يادا عامل يادا-يادا عامل ... عامل أياً كان عامل النقاط الثلاث" #. type: Plain text #: debian-trixie debian-unstable msgid "" "Beginning in Perl 5.12, Perl accepts an ellipsis, \"CW<\\*(C`...\\*(C'>\", " "as a placeholder for code that you haven't implemented yet. When Perl 5.12 " "or later encounters an ellipsis statement, it parses this without error, but " "if and when you should actually try to execute it, Perl throws an exception " "with the text CW<\\*(C`Unimplemented\\*(C'>:" msgstr "" "بدءاً من بيرل 5.12، تقبل بيرل علامة الحذف، \"CW<\\*(C`...\\*(C'>\"، كنائب عن " "الكود الذي لم تُنفذه بعد. عندما تواجه بيرل 5.12 أو إصداراً أحدث عبارة حذف، " "فإنها تحللها دون خطأ، ولكن إذا حاولت تنفيذها فعلياً، فسترمي بيرل استثناءً " "بالنص CW<\\*(C`Unimplemented\\*(C'> (غير منفذ):" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& use v5.12;\n" "\\& sub unimplemented { ... }\n" "\\& eval { unimplemented() };\n" "\\& if ($@ =~ /^Unimplemented at /) {\n" "\\& say \"I found an ellipsis!\";\n" "\\& }\n" msgstr "" "\\& use v5.12;\n" "\\& sub unimplemented { ... }\n" "\\& eval { unimplemented() };\n" "\\& if ($@ =~ /^Unimplemented at /) {\n" "\\& say \"I found an ellipsis!\";\n" "\\& }\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "You can only use the elliptical statement to stand in for a complete " "statement. Syntactically, \"CW<\\*(C`...;\\*(C'>\" is a complete statement, " "but, as with other kinds of semicolon-terminated statement, the semicolon " "may be omitted if \"CW<\\*(C`...\\*(C'>\" appears immediately before a " "closing brace. These examples show how the ellipsis works:" msgstr "" "يمكنك فقط استخدام عبارة الحذف كبديل لعبارة كاملة. من الناحية النحوية، " "\"CW<\\*(C`...;\\*(C'>\" هي عبارة كاملة، ولكن، كما هو الحال مع أنواع أخرى من " "العبارات المنتهية بفاصلة منقوطة، يجوز حذف الفاصلة المنقوطة إذا ظهرت " "\"CW<\\*(C`...\\*(C'>\" مباشرة قبل قوس الإغلاق. توضح هذه الأمثلة كيفية عمل " "علامة الحذف:" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& use v5.12;\n" "\\& { ... }\n" "\\& sub foo { ... }\n" "\\& ...;\n" "\\& eval { ... };\n" "\\& sub somemeth {\n" "\\& my $self = shift;\n" "\\& ...;\n" "\\& }\n" "\\& $x = do {\n" "\\& my $n;\n" "\\& ...;\n" "\\& say \"Hurrah!\";\n" "\\& $n;\n" "\\& };\n" msgstr "" "\\& use v5.12;\n" "\\& { ... }\n" "\\& sub foo { ... }\n" "\\& ...;\n" "\\& eval { ... };\n" "\\& sub somemeth {\n" "\\& my $self = shift;\n" "\\& ...;\n" "\\& }\n" "\\& $x = do {\n" "\\& my $n;\n" "\\& ...;\n" "\\& say \"Hurrah!\";\n" "\\& $n;\n" "\\& };\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The elliptical statement cannot stand in for an expression that is part of a " "larger statement. These examples of attempts to use an ellipsis are syntax " "errors:" msgstr "" "لا يمكن لعبارة الحذف أن تحل محل تعبير يمثل جزءاً من عبارة أكبر. هذه الأمثلة " "لمحاولات استخدام علامة الحذف هي أخطاء نحوية:" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& use v5.12;\n" "\\&\n" "\\& print ...;\n" "\\& open(my $fh, \"E\", \"/dev/passwd\") or ...;\n" "\\& if ($condition && ... ) { say \"Howdy\" };\n" "\\& ... if $x E $y;\n" "\\& say \"Cromulent\" if ...;\n" "\\& $flub = 5 + ...;\n" msgstr "" "\\& use v5.12;\n" "\\&\n" "\\& print ...;\n" "\\& open(my $fh, \"E\", \"/dev/passwd\") or ...;\n" "\\& if ($condition && ... ) { say \"Howdy\" };\n" "\\& ... if $x E $y;\n" "\\& say \"Cromulent\" if ...;\n" "\\& $flub = 5 + ...;\n" #. type: Plain text #: debian-trixie debian-unstable msgid "" "There are some cases where Perl can't immediately tell the difference " "between an expression and a statement. For instance, the syntax for a block " "and an anonymous hash reference constructor look the same unless there's " "something in the braces to give Perl a hint. The ellipsis is a syntax error " "if Perl doesn't guess that the CW<\\*(C`{ ... }\\*(C'> is a block. Inside " "your block, you can use a CW<\\*(C`;\\*(C'> before the ellipsis to denote " "that the \\&CW<\\*(C`{ ... }\\*(C'> is a block and not a hash reference " "constructor." msgstr "" "هناك بعض الحالات التي لا تستطيع بيرل فيها التمييز فوراً بين التعبير والعبارة. " "على سبيل المثال، يبدو النحو الخاص بكتلة ومنشئ مرجع هاش مجهول متشابهاً ما لم " "يكن هناك شيء داخل الأقواس يعطي بيرل تلميحاً. علامة الحذف هي خطأ نحوي إذا لم " "تخمن بيرل أن CW<\\*(C`{ ... }\\*(C'> هي كتلة. داخل كتلتك، يمكنك استخدام " "CW<\\*(C`;\\*(C'> قبل علامة الحذف للإشارة إلى أن \\&CW<\\*(C`{ ... }\\*(C'> " "هي كتلة وليست منشئ مرجع هاش." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Note: Some folks colloquially refer to this bit of punctuation as a \"yada-" "yada\" or \"triple-dot\", but its true name is actually an ellipsis." msgstr "" "ملاحظة: يشير بعض الأشخاص بالعامية إلى علامة الترقيم هذه باسم \"yada-yada\" " "أو \"النقاط الثلاث\"، ولكن اسمها الحقيقي هو في الواقع علامة حذف (ellipsis)." #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "PODs: Embedded Documentation" msgstr "PODs: التوثيق المضمن" #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "POD documentation" msgstr "توثيق POD" #. type: Plain text #: debian-trixie debian-unstable msgid "" "Perl has a mechanism for intermixing documentation with source code. While " "it's expecting the beginning of a new statement, if the compiler encounters " "a line that begins with an equal sign and a word, like this" msgstr "" "تمتلك بيرل آلية لخلط التوثيق مع الكود المصدري. بينما ينتظر المترجم بداية " "عبارة جديدة، إذا واجه سطراً يبدأ بعلامة يساوي وكلمة، مثل هذا" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "\\& =head1 Here There Be Pods!\n" msgstr "\\& =head1 Here There Be Pods!\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Then that text and all remaining text up through and including a line " "beginning with CW<\\*(C`=cut\\*(C'> will be ignored. The format of the " "intervening text is described in perlpod." msgstr "" "سيُتجاهل هذا النص وكل النص المتبقي حتى السطر الذي يبدأ بـ " "CW<\\*(C`=cut\\*(C'> وما يتضمنه. يوصَف تنسيق النص المتداخل في perlpod." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "This allows you to intermix your source code and your documentation text " "freely, as in" msgstr "يسمح لك هذا بخلط الكود المصدري ونصوص التوثيق بحرية، كما في" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& =item snazzle($)\n" "\\&\n" "\\& The snazzle() function will behave in the most spectacular\n" "\\& form that you can possibly imagine, not even excepting\n" "\\& cybernetic pyrotechnics.\n" "\\&\n" "\\& =cut back to the compiler, nuff of this pod stuff!\n" "\\&\n" "\\& sub snazzle($) {\n" "\\& my $thingie = shift;\n" "\\& .........\n" "\\& }\n" msgstr "" "\\& =item snazzle($)\n" "\\&\n" "\\& The snazzle() function will behave in the most spectacular\n" "\\& form that you can possibly imagine, not even excepting\n" "\\& cybernetic pyrotechnics.\n" "\\&\n" "\\& =cut back to the compiler, nuff of this pod stuff!\n" "\\&\n" "\\& sub snazzle($) {\n" "\\& my $thingie = shift;\n" "\\& .........\n" "\\& }\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Note that pod translators should look at only paragraphs beginning with a " "pod directive (it makes parsing easier), whereas the compiler actually knows " "to look for pod escapes even in the middle of a paragraph. This means that " "the following secret stuff will be ignored by both the compiler and the " "translators." msgstr "" "لاحظ أن مترجمي pod يجب أن ينظروا فقط إلى الفقرات التي تبدأ بتوجيه pod (هذا " "يسهل التحليل)، بينما يعرف المترجم في الواقع كيفية البحث عن مهربات pod حتى في " "منتصف الفقرة. وهذا يعني أن الأشياء السرية التالية ستُتجاهلها من قبل كل من " "المترجم والمترجمين." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& $x=3;\n" "\\& =secret stuff\n" "\\& warn \"Neither POD nor CODE!?\"\n" "\\& =cut back\n" "\\& print \"got $x\\en\";\n" msgstr "" "\\& $x=3;\n" "\\& =secret stuff\n" "\\& warn \"Neither POD nor CODE!?\"\n" "\\& =cut back\n" "\\& print \"got $x\\en\";\n" #. type: Plain text #: debian-trixie debian-unstable msgid "" "You probably shouldn't rely upon the CW being podded out forever. " "Not all pod translators are well-behaved in this regard, and perhaps the " "compiler will become pickier." msgstr "" "من المحتمل ألا تعتمد على بقاء CW مخفياً كـ pod للأبد. ليست كل مترجمات " "pod حسنة السلوك في هذا الصدد، وربما يصبح المترجم أكثر صرامة." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "One may also use pod directives to quickly comment out a section of code." msgstr "" "يمكن للمرء أيضًا استخدام توجيهات pod لتحويل قسم من الكود إلى تعليق بسرعة." #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Plain Old Comments (Not!)" msgstr "التعليقات العادية القديمة (ليست كذلك!)" #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "comment line # preprocessor eval" msgstr "سطر تعليق # معالج مسبق eval" #. type: Plain text #: debian-trixie debian-unstable msgid "" "Perl can process line directives, much like the C preprocessor. Using this, " "one can control Perl's idea of filenames and line numbers in error or " "warning messages (especially for strings that are processed with " "CW). The syntax for this mechanism is almost the same as for most C " "preprocessors: it matches the regular expression" msgstr "" "يمكن لـ بيرل معالجة توجيهات الأسطر، تماماً مثل المعالج المسبق لـ C. باستخدام " "هذا، يمكن للمرء التحكم في فكرة بيرل عن أسماء الملفات وأرقام الأسطر في رسائل " "الخطأ أو التحذير (خاصة للسلاسل التي تُعالج بـ CW). نحو هذه الآلية هو " "نفسه تقريباً بالنسبة لمعظم معالجات C المسبقة: فهو يطابق التعبير النمطي" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& # example: \\*(Aq# line 42 \"new_filename.plx\"\\*(Aq\n" "\\& /^\\e# \\es*\n" "\\& line \\es+ (\\ed+) \\es*\n" "\\& (?:\\es(\"?)([^\"]+)\\eg2)? \\es*\n" "\\& $/x\n" msgstr "" "\\& # example: \\*(Aq# line 42 \"new_filename.plx\"\\*(Aq\n" "\\& /^\\e# \\es*\n" "\\& line \\es+ (\\ed+) \\es*\n" "\\& (?:\\es(\"?)([^\"]+)\\eg2)? \\es*\n" "\\& $/x\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "with CW<$1> being the line number for the next line, and CW<$3> being the " "optional filename (specified with or without quotes). Note that no " "whitespace may precede the CW<\\*(C`#\\*(C'>, unlike modern C preprocessors." msgstr "" "حيث يكون CW<$1> هو رقم السطر للسطر التالي، و CW<$3> هو اسم الملف الاختياري " "(محدد مع أو بدون علامات اقتباس). لاحظ أنه لا يجوز أن تسبق أي مسافة بيضاء " "علامة CW<\\*(C`#\\*(C'>، على عكس معالجات C المسبقة الحديثة." #. type: Plain text #: debian-trixie debian-unstable msgid "" "There is a fairly obvious gotcha included with the line directive: Debuggers " "and profilers will only show the last source line to appear at a particular " "line number in a given file. Care should be taken not to cause line number " "collisions in code you'd like to debug later." msgstr "" "هناك عثرة واضحة إلى حد ما متضمنة في توجيه السطر: ستُظهر المصححات وأدوات " "التحليل السطر المصدري الأخير فقط الذي يظهر عند رقم سطر معين في ملف معين. يجب " "توخي الحذر لتجنب التسبب في تضارب أرقام الأسطر في الكود الذي ترغب في تنقيحه " "لاحقًا." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Here are some examples that you should be able to type into your command " "shell:" msgstr "" "فيما يلي بعض الأمثلة التي يجب أن تكون قادراً على كتابتها في صدفة الأوامر " "الخاصة بك:" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& % perl\n" "\\& # line 200 \"bzzzt\"\n" "\\& # the \\*(Aq#\\*(Aq on the previous line must be the first char on line\n" "\\& die \\*(Aqfoo\\*(Aq;\n" "\\& _\\|_END_\\|_\n" "\\& foo at bzzzt line 201.\n" "\\&\n" "\\& % perl\n" "\\& # line 200 \"bzzzt\"\n" "\\& eval qq[\\en#line 2001 \"\"\\endie \\*(Aqfoo\\*(Aq]; print $@;\n" "\\& _\\|_END_\\|_\n" "\\& foo at - line 2001.\n" "\\&\n" "\\& % perl\n" "\\& eval qq[\\en#line 200 \"foo bar\"\\endie \\*(Aqfoo\\*(Aq]; print $@;\n" "\\& _\\|_END_\\|_\n" "\\& foo at foo bar line 200.\n" "\\&\n" "\\& % perl\n" "\\& # line 345 \"goop\"\n" "\\& eval \"\\en#line \" . _\\|_LINE_\\|_ . \\*(Aq \"\\*(Aq . _\\|_FILE_\\|_ .\"\\e\"\\endie \\*(Aqfoo\\*(Aq\";\n" "\\& print $@;\n" "\\& _\\|_END_\\|_\n" "\\& foo at goop line 345.\n" msgstr "" "\\& % perl\n" "\\& # line 200 \"bzzzt\"\n" "\\& # the \\*(Aq#\\*(Aq on the previous line must be the first char on line\n" "\\& die \\*(Aqfoo\\*(Aq;\n" "\\& _\\|_END_\\|_\n" "\\& foo at bzzzt line 201.\n" "\\&\n" "\\& % perl\n" "\\& # line 200 \"bzzzt\"\n" "\\& eval qq[\\en#line 2001 \"\"\\endie \\*(Aqfoo\\*(Aq]; print $@;\n" "\\& _\\|_END_\\|_\n" "\\& foo at - line 2001.\n" "\\&\n" "\\& % perl\n" "\\& eval qq[\\en#line 200 \"foo bar\"\\endie \\*(Aqfoo\\*(Aq]; print $@;\n" "\\& _\\|_END_\\|_\n" "\\& foo at foo bar line 200.\n" "\\&\n" "\\& % perl\n" "\\& # line 345 \"goop\"\n" "\\& eval \"\\en#line \" . _\\|_LINE_\\|_ . \\*(Aq \"\\*(Aq . _\\|_FILE_\\|_ .\"\\e\"\\endie \\*(Aqfoo\\*(Aq\";\n" "\\& print $@;\n" "\\& _\\|_END_\\|_\n" "\\& foo at goop line 345.\n" #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Experimental Details on given and when" msgstr "تفاصيل تجريبية حول given و when" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "As previously mentioned, the \"switch\" feature is considered highly " "experimental (it is also scheduled to be removed in perl 5.42.0); it is " "subject to change with little notice. In particular, " "\\&CW<\\*(C`when\\*(C'> has tricky behaviours that are expected to change to " "become less tricky in the future. Do not rely upon its current " "(mis)implementation. Before Perl 5.18, CW<\\*(C`given\\*(C'> also had " "tricky behaviours that you should still beware of if your code must run on " "older versions of Perl." msgstr "" "كما ذُكر سابقاً، تُعتبر ميزة \"المبدل\" (switch) تجريبية للغاية (ومن المقرر " "أيضًا إزالتها في بيرل 5.42.0)؛ وهي عرضة للتغيير بإشعار ضئيل. وبشكل رئيس، " "تتميز \\&CW<\\*(C`when\\*(C'> بسلوكيات خادعة يُتوقع أن تتغير لتصبح أقل خداعاً " "في المستقبل. لا تعتمد على تنفيذها (الخاطئ) الحالي. قبل بيرل 5.18، كان لـ " "CW<\\*(C`given\\*(C'> أيضًا سلوكيات خادعة يجب أن تظل حذراً منها إذا كان الكود " "الخاص بك يجب أن يعمل على إصدارات أقدم من بيرل." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "Here is a longer example of CW<\\*(C`given\\*(C'>:" msgstr "فيما يلي مثال أطول لـ CW<\\*(C`given\\*(C'>:" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& use feature \":5.10\";\n" "\\& given ($foo) {\n" "\\& when (undef) {\n" "\\& say \\*(Aq$foo is undefined\\*(Aq;\n" "\\& }\n" "\\& when (\"foo\") {\n" "\\& say \\*(Aq$foo is the string \"foo\"\\*(Aq;\n" "\\& }\n" "\\& when ([1,3,5,7,9]) {\n" "\\& say \\*(Aq$foo is an odd digit\\*(Aq;\n" "\\& continue; # Fall through\n" "\\& }\n" "\\& when ($_ E 100) {\n" "\\& say \\*(Aq$foo is numerically less than 100\\*(Aq;\n" "\\& }\n" "\\& when (\\e&complicated_check) {\n" "\\& say \\*(Aqa complicated check for $foo is true\\*(Aq;\n" "\\& }\n" "\\& default {\n" "\\& die q(I don\\*(Aqt know what to do with $foo);\n" "\\& }\n" "\\& }\n" msgstr "" "\\& use feature \":5.10\";\n" "\\& given ($foo) {\n" "\\& when (undef) {\n" "\\& say \\*(Aq$foo is undefined\\*(Aq;\n" "\\& }\n" "\\& when (\"foo\") {\n" "\\& say \\*(Aq$foo is the string \"foo\"\\*(Aq;\n" "\\& }\n" "\\& when ([1,3,5,7,9]) {\n" "\\& say \\*(Aq$foo is an odd digit\\*(Aq;\n" "\\& continue; # Fall through\n" "\\& }\n" "\\& when ($_ E 100) {\n" "\\& say \\*(Aq$foo is numerically less than 100\\*(Aq;\n" "\\& }\n" "\\& when (\\e&complicated_check) {\n" "\\& say \\*(Aqa complicated check for $foo is true\\*(Aq;\n" "\\& }\n" "\\& default {\n" "\\& die q(I don\\*(Aqt know what to do with $foo);\n" "\\& }\n" "\\& }\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Before Perl 5.18, CW assigned the value of I to merely a " "lexically scoped \\f(BIcopy\\fR (!) of CW<$_>, not a dynamically scoped " "alias the way CW<\\*(C`foreach\\*(C'> does. That made it similar to" msgstr "" "قبل بيرل 5.18، كانت CW تخصص قيمة I لمجرد \\f(BIنسخة\\fR " "(!) ذات نطاق معجمي من CW<$_>، وليس اسماً مستعاراً ذا نطاق ديناميكي بالطريقة " "التي تعمل بها CW<\\*(C`foreach\\*(C'>. وهذا جعلها مشابهة لـ" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "\\& do { my $_ = EXPR; ... }\n" msgstr "\\& do { my $_ = EXPR; ... }\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "except that the block was automatically broken out of by a successful " "\\&CW<\\*(C`when\\*(C'> or an explicit CW<\\*(C`break\\*(C'>. Because it " "was only a copy, and because it was only lexically scoped, not dynamically " "scoped, you could not do the things with it that you are used to in a " "CW<\\*(C`foreach\\*(C'> loop. In particular, it did not work for arbitrary " "function calls if those functions might try to access CW<$_>. Best stick to " "CW<\\*(C`foreach\\*(C'> for that." msgstr "" "إلا أنه كان يُخرج من الكتلة آلياً بواسطة CW<\\*(C`when\\*(C'> ناجحة أو " "CW<\\*(C`break\\*(C'> صريحة. ونظراً لأنها كانت مجرد نسخة، ولأنها كانت ذات " "نطاق معجمي فقط، وليست ذات نطاق ديناميكي، لم يكن بإمكانك القيام بأشياء بها " "مما اعتدت عليه في حلقة CW<\\*(C`foreach\\*(C'>. وبشكل خاص، لم تكن تعمل مع " "استدعاءات الوظائف التعسفية إذا كانت تلك الوظائف قد تحاول الوصول إلى CW<$_>. " "من الأفضل الالتزام بـ CW<\\*(C`foreach\\*(C'> في تلك الحالة." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Most of the power comes from the implicit smartmatching that can sometimes " "apply. Most of the time, CW is treated as an implicit " "smartmatch of CW<$_>, that is, CW<\\*(C`$_ ~~ EXPR\\*(C'>. (See " "\"Smartmatch Operator\" in perlop for more information on smartmatching.) " "But when I is one of the 10 exceptional cases (or things like them) " "listed below, it is used directly as a boolean." msgstr "" "تأتي معظم القوة من المطابقة الذكية الضمنية التي يمكن تطبيقها أحياناً. في معظم " "الأوقات، تُعامل CW كمطابقة ذكية ضمنية لـ CW<$_>، أي CW<\\*(C`$_ " "~~ EXPR\\*(C'>. (انظر \"Smartmatch Operator\" في perlop لمزيد من المعلومات " "حول المطابقة الذكية.) ولكن عندما يكون I واحداً من الحالات الاستثنائية " "العشر (أو أشياء مثلها) المدرجة أدناه، فإنه يُستخدم مباشرة كقيمة منطقية." #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "1." msgstr "1." #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Item" msgstr "Item" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "A user-defined subroutine call or a method invocation." msgstr "استدعاء روتين فرعي معرف من قبل المستخدم أو استدعاء طريقة." #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "2." msgstr "2." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "A regular expression match in the form of CW<\\*(C`/REGEX/\\*(C'>, " "CW<\\*(C`$foo =~ /REGEX/\\*(C'>, or CW<\\*(C`$foo =~ EXPR\\*(C'>. Also, a " "negated regular expression match in the form CW<\\*(C`!/REGEX/\\*(C'>, " "CW<\\*(C`$foo !~ /REGEX/\\*(C'>, or CW<\\*(C`$foo !~ EXPR\\*(C'>." msgstr "" "مطابقة تعبير نمطي في شكل CW<\\*(C`/REGEX/\\*(C'>، أو CW<\\*(C`$foo =~ /REGEX/" "\\*(C'>، أو CW<\\*(C`$foo =~ EXPR\\*(C'>. أيضًا، مطابقة تعبير نمطي منفي في " "شكل CW<\\*(C`!/REGEX/\\*(C'>، أو CW<\\*(C`$foo !~ /REGEX/\\*(C'>، أو " "CW<\\*(C`$foo !~ EXPR\\*(C'>." #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "3." msgstr "3." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "A smart match that uses an explicit CW<\\*(C`~~\\*(C'> operator, such as " "CW<\\*(C`EXPR ~~ EXPR\\*(C'>." msgstr "" "مطابقة ذكية تستخدم عامل CW<\\*(C`~~\\*(C'> صريح، مثل CW<\\*(C`EXPR ~~ " "EXPR\\*(C'>." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "\\&B You will often have to use CW<\\*(C`$c ~~ $_\\*(C'> because the " "default case uses CW<\\*(C`$_ ~~ $c\\*(C'> , which is frequently the " "opposite of what you want." msgstr "" "\\&B<ملاحظة:> سيتعين عليك غالباً استخدام CW<\\*(C`$c ~~ $_\\*(C'> لأن الحالة " "المبدئية تستخدم CW<\\*(C`$_ ~~ $c\\*(C'>، وهو ما يكون غالباً عكس ما تريده." #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "4." msgstr "4." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "A boolean comparison operator such as CW<\\*(C`$_ E 10\\*(C'> or " "CW<\\*(C`$x eq \"abc\"\\*(C'>. The relational operators that this applies " "to are the six numeric comparisons (CW<\\*(C`E\\*(C'>, " "CW<\\*(C`E\\*(C'>, CW<\\*(C`E=\\*(C'>, CW<\\*(C`E=\\*(C'>, " "CW<\\*(C`==\\*(C'>, and CW<\\*(C`!=\\*(C'>), and the six string comparisons " "(CW<\\*(C`lt\\*(C'>, CW<\\*(C`gt\\*(C'>, CW<\\*(C`le\\*(C'>, " "CW<\\*(C`ge\\*(C'>, CW<\\*(C`eq\\*(C'>, and CW<\\*(C`ne\\*(C'>)." msgstr "" "عامل مقارنة منطقي مثل CW<\\*(C`$_ E 10\\*(C'> أو CW<\\*(C`$x eq " "\"abc\"\\*(C'>. العوامل العلائقية التي ينطبق هذا عليها هي المقارنات الرقمية " "الست (CW<\\*(C`E\\*(C'>، و CW<\\*(C`E\\*(C'>، و " "CW<\\*(C`E=\\*(C'>، و CW<\\*(C`E=\\*(C'>، و CW<\\*(C`==\\*(C'>، و " "CW<\\*(C`!=\\*(C'>)، ومقارنات السلاسل الست (CW<\\*(C`lt\\*(C'>، و " "CW<\\*(C`gt\\*(C'>، و CW<\\*(C`le\\*(C'>، و CW<\\*(C`ge\\*(C'>، و " "CW<\\*(C`eq\\*(C'>، و CW<\\*(C`ne\\*(C'>)." #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "5." msgstr "5." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "At least the three builtin functions CW, CW, and " "\\&CW. We might someday add more of these later if we think of " "them." msgstr "" "على الأقل الوظائف الثلاث المضمنة CW و CW و " "\\&CW. قد نضيف المزيد منها لاحقًا يوماً ما إذا فكرنا فيها." #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "6." msgstr "6." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "A negated expression, whether CW<\\*(C`!(EXPR)\\*(C'> or CW, or a " "logical exclusive-or, CW<\\*(C`(EXPR1) xor (EXPR2)\\*(C'>. The bitwise " "versions (CW<\\*(C`~\\*(C'> and CW<\\*(C`^\\*(C'>) are not included." msgstr "" "تعبير منفي، سواء كان CW<\\*(C`!(EXPR)\\*(C'> أو CW، أو أو منطقي " "حصري (xor)، CW<\\*(C`(EXPR1) xor (EXPR2)\\*(C'>. إصدارات البتات (bitwise) " "(مثل CW<\\*(C`~\\*(C'> و CW<\\*(C`^\\*(C'>) غير مدرجة." #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "7." msgstr "7." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "A filetest operator, with exactly 4 exceptions: CW<\\*(C`-s\\*(C'>, " "CW<\\*(C`-M\\*(C'>, CW<\\*(C`-A\\*(C'>, and \\&CW<\\*(C`-C\\*(C'>, as these " "return numerical values, not boolean ones. The CW<\\*(C`-z\\*(C'> filetest " "operator is not included in the exception list." msgstr "" "عامل اختبار ملف، مع 4 استثناءات بالضبط: CW<\\*(C`-s\\*(C'> و CW<\\*(C`-" "M\\*(C'> و CW<\\*(C`-A\\*(C'> و \\&CW<\\*(C`-C\\*(C'>، لأن هذه تعيد قيماً " "رقمية وليست منطقية. عامل اختبار الملف CW<\\*(C`-z\\*(C'> غير مدرج في قائمة " "الاستثناءات." #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "8." msgstr "8." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The CW<\\*(C`..\\*(C'> and CW<\\*(C`...\\*(C'> flip-flop operators. Note " "that the CW<\\*(C`...\\*(C'> flip-flop operator is completely different from " "the CW<\\*(C`...\\*(C'> elliptical statement just described." msgstr "" "عاملا الوثّاب (flip-flop) وهما CW<\\*(C`..\\*(C'> و CW<\\*(C`...\\*(C'>. لاحظ " "أن عامل الوثّاب CW<\\*(C`...\\*(C'> مختلف تماماً عن عبارة الحذف CW<\\*(C`..." "\\*(C'> التي وُصفت للتو." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "In those 8 cases above, the value of EXPR is used directly as a boolean, so " "no smartmatching is done. You may think of CW<\\*(C`when\\*(C'> as a " "smartsmartmatch." msgstr "" "في الحالات الثماني المذكورة أعلاه، تُستخدم قيمة EXPR مباشرة كقيمة منطقية، لذا " "لا تُجرى مطابقة ذكية. يمكنك التفكير في CW<\\*(C`when\\*(C'> على أنها مطابقة " "ذكية ذكية (smartsmartmatch)." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Furthermore, Perl inspects the operands of logical operators to decide " "whether to use smartmatching for each one by applying the above test to the " "operands:" msgstr "" "علاوة على ذلك، تفحص بيرل معاملات العوامل المنطقية لتقرر ما إذا كانت ستستخدم " "المطابقة الذكية لكل منها من خلال تطبيق الاختبار أعلاه على المعاملات:" #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "9." msgstr "9." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If EXPR is CW<\\*(C`EXPR1 && EXPR2\\*(C'> or CW<\\*(C`EXPR1 and " "EXPR2\\*(C'>, the test is applied \\&I to both EXPR1 and " "EXPR2. Only if I operands also pass the test, I, will " "the expression be treated as boolean. Otherwise, smartmatching is used." msgstr "" "إذا كان EXPR هو CW<\\*(C`EXPR1 && EXPR2\\*(C'> أو CW<\\*(C`EXPR1 and " "EXPR2\\*(C'>، فسيُطبق الاختبار \\&I<بشكل عودي> على كل من EXPR1 و EXPR2. فقط " "إذا نجح I<كلا> المعاملين في الاختبار أيضًا، I<بشكل عودي>، فسوف يُعامل التعبير " "كقيمة منطقية. وإلا، تُستخدم المطابقة الذكية." #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "10." msgstr "10." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If EXPR is CW<\\*(C`EXPR1 || EXPR2\\*(C'>, CW<\\*(C`EXPR1 // EXPR2\\*(C'>, " "or CW<\\*(C`EXPR1 or EXPR2\\*(C'>, the test is applied I to " "EXPR1 only (which might itself be a higher-precedence AND operator, for " "example, and thus subject to the previous rule), not to EXPR2. If EXPR1 is " "to use smartmatching, then EXPR2 also does so, no matter what EXPR2 " "contains. But if EXPR2 does not get to use smartmatching, then the second " "argument will not be either. This is quite different from the " "CW<\\*(C`&&\\*(C'> case just described, so be careful." msgstr "" "إذا كان EXPR هو CW<\\*(C`EXPR1 || EXPR2\\*(C'>، أو CW<\\*(C`EXPR1 // " "EXPR2\\*(C'>، أو CW<\\*(C`EXPR1 or EXPR2\\*(C'>، فسيُطبق الاختبار I<بشكل " "عودي> على EXPR1 فقط (والذي قد يكون هو نفسه عامل AND ذو أسبقية أعلى، على سبيل " "المثال، وبالتالي يخضع للقاعدة السابقة)، وليس على EXPR2. إذا كان EXPR1 " "سيستخدم المطابقة الذكية، فإن EXPR2 يفعل ذلك أيضًا، بغض النظر عما يحتويه " "EXPR2. ولكن إذا لم يتمكن EXPR2 من استخدام المطابقة الذكية، فلن يكون المعامل " "الثاني كذلك أيضًا. هذا مختلف تماماً عن حالة CW<\\*(C`&&\\*(C'> الموصوفة للتو، " "لذا كن حذراً." #. type: Plain text #: debian-trixie debian-unstable msgid "" "These rules are complicated, but the goal is for them to do what you want " "(even if you don't quite understand why they are doing it). For example:" msgstr "" "هذه القواعد معقدة، لكن الهدف منها هو القيام بما تريده (حتى لو لم تفهم تماماً " "سبب قيامها بذلك). على سبيل المثال:" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "\\& when (/^\\ed+$/ && $_ E 75) { ... }\n" msgstr "\\& when (/^\\ed+$/ && $_ E 75) { ... }\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "will be treated as a boolean match because the rules say both a regex match " "and an explicit test on CW<$_> will be treated as boolean." msgstr "" "سيُعامل كمطابقة منطقية لأن القواعد تقول إن كلاً من مطابقة التعبير النمطي " "والاختبار الصريح على CW<$_> سيُعاملان كقيم منطقية." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "Also:" msgstr "أيضًا:" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "\\& when ([qw(foo bar)] && /baz/) { ... }\n" msgstr "\\& when ([qw(foo bar)] && /baz/) { ... }\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "will use smartmatching because only I of the operands is a boolean: the " "other uses smartmatching, and that wins." msgstr "" "سيستخدم المطابقة الذكية لأن I<واحداً> فقط من المعاملات هو قيمة منطقية: الآخر " "يستخدم المطابقة الذكية، وهذا هو ما يفوز." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "Further:" msgstr "علاوة على ذلك:" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "\\& when ([qw(foo bar)] || /^baz/) { ... }\n" msgstr "\\& when ([qw(foo bar)] || /^baz/) { ... }\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "will use smart matching (only the first operand is considered), whereas" msgstr "سيستخدم المطابقة الذكية (يُؤخذ المعامل الأول فقط في الاعتبار)، بينما" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "\\& when (/^baz/ || [qw(foo bar)]) { ... }\n" msgstr "\\& when (/^baz/ || [qw(foo bar)]) { ... }\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "will test only the regex, which causes both operands to be treated as " "boolean. Watch out for this one, then, because an arrayref is always a true " "value, which makes it effectively redundant. Not a good idea." msgstr "" "سيختبر التعبير النمطي فقط، مما يؤدي إلى معاملة كلا المعاملين كقيم منطقية. " "احذر من هذا الأمر إذاً، لأن مرجع المصفوفة هو دائماً قيمة صحيحة (true)، مما " "يجعله زائداً عن الحاجة فعلياً. ليست فكرة جيدة." #. type: Plain text #: debian-trixie debian-unstable msgid "" "Tautologous boolean operators are still going to be optimized away. Don't " "be tempted to write" msgstr "" "ستظل العوامل المنطقية الحشوية (Tautologous) تُزال عبر التحسين. لا تنجذب لكتابة" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "\\& when (\"foo\" or \"bar\") { ... }\n" msgstr "\\& when (\"foo\" or \"bar\") { ... }\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "This will optimize down to CW<\"foo\">, so CW<\"bar\"> will never be " "considered (even though the rules say to use a smartmatch on CW<\"foo\">). " "For an alternation like this, an array ref will work, because this will " "instigate smartmatching:" msgstr "" "سيُحسن هذا ليقتصر على CW<\"foo\">، لذا لن يُنظر في CW<\"bar\"> أبداً (على الرغم " "من أن القواعد تقول باستخدام مطابقة ذكية على CW<\"foo\">). بالنسبة لتبديل مثل " "هذا، سيعمل مرجع المصفوفة، لأن هذا سيحرض على المطابقة الذكية:" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "\\& when ([qw(foo bar)] { ... }\n" msgstr "\\& when ([qw(foo bar)] { ... }\n" #. type: Plain text #: debian-trixie debian-unstable msgid "" "This is somewhat equivalent to the C-style switch statement's fallthrough " "functionality (not to be confused with I fallthrough functionality--" "see below), wherein the same block is used for several " "\\&CW<\\*(C`case\\*(C'> statements." msgstr "" "هذا يعادل إلى حد ما وظيفة السقوط (fallthrough) في عبارة switch بنمط لغة C " "(لا ينبغي الخلط بينه وبين وظيفة السقوط في I<بيرل> - انظر أدناه)، حيث تُستخدم " "الكتلة نفسها لعدة عبارات \\&CW<\\*(C`case\\*(C'>." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Another useful shortcut is that, if you use a literal array or hash as the " "argument to CW<\\*(C`given\\*(C'>, it is turned into a reference. So " "CW is the same as CW, for example." msgstr "" "اختصار مفيد آخر هو أنه إذا استخدمت مصفوفة حرفية أو هاش كمعامل لـ " "CW<\\*(C`given\\*(C'>، فإنه يُحول إلى مرجع. لذا فإن CW هي نفسها " "CW، على سبيل المثال." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "\\&CW<\\*(C`default\\*(C'> behaves exactly like CW<\\*(C`when(1 == " "1)\\*(C'>, which is to say that it always matches." msgstr "" "\\&تتصرف CW<\\*(C`default\\*(C'> تماماً مثل CW<\\*(C`when(1 == 1)\\*(C'>، أي " "أنها تطابق دائماً." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "I" msgstr "I<الخروج (Breaking out)>" #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Breaking out" msgstr "الخروج" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "You can use the CW<\\*(C`break\\*(C'> keyword to break out of the enclosing " "\\&CW<\\*(C`given\\*(C'> block. Every CW<\\*(C`when\\*(C'> block is " "implicitly ended with a CW<\\*(C`break\\*(C'>." msgstr "" "يمكنك استخدام الكلمة المفتاحية CW<\\*(C`break\\*(C'> للخروج من كتلة " "\\&CW<\\*(C`given\\*(C'> المحيطة. كل كتلة CW<\\*(C`when\\*(C'> تنتهي ضمنياً " "بـ CW<\\*(C`break\\*(C'>." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "I" msgstr "I<السقوط (Fall-through)>" #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Fall-through" msgstr "السقوط" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "You can use the CW<\\*(C`continue\\*(C'> keyword to fall through from one " "case to the next immediate CW<\\*(C`when\\*(C'> or CW<\\*(C`default\\*(C'>:" msgstr "" "يمكنك استخدام الكلمة المفتاحية CW<\\*(C`continue\\*(C'> للسقوط من حالة إلى " "حالة CW<\\*(C`when\\*(C'> أو CW<\\*(C`default\\*(C'> التالية مباشرة:" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& given($foo) {\n" "\\& when (/x/) { say \\*(Aq$foo contains an x\\*(Aq; continue }\n" "\\& when (/y/) { say \\*(Aq$foo contains a y\\*(Aq }\n" "\\& default { say \\*(Aq$foo does not contain a y\\*(Aq }\n" "\\& }\n" msgstr "" "\\& given($foo) {\n" "\\& when (/x/) { say \\*(Aq$foo contains an x\\*(Aq; continue }\n" "\\& when (/y/) { say \\*(Aq$foo contains a y\\*(Aq }\n" "\\& default { say \\*(Aq$foo does not contain a y\\*(Aq }\n" "\\& }\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "I" msgstr "I<قيمة الإرجاع>" #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Return value" msgstr "قيمة الإرجاع" #. type: Plain text #: debian-trixie debian-unstable msgid "" "When a CW<\\*(C`given\\*(C'> statement is also a valid expression (for " "example, when it's the last statement of a block), it evaluates to:" msgstr "" "عندما تكون عبارة CW<\\*(C`given\\*(C'> أيضًا تعبيراً صالحاً (على سبيل المثال، " "عندما تكون آخر عبارة في كتلة)، فإنها تؤول إلى:" #. type: IP #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "\\(bu" msgstr "\\(bu" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "An empty list as soon as an explicit CW<\\*(C`break\\*(C'> is encountered." msgstr "قائمة فارغة بمجرد مواجهة CW<\\*(C`break\\*(C'> صريحة." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The value of the last evaluated expression of the successful " "\\&CW<\\*(C`when\\*(C'>/CW<\\*(C`default\\*(C'> clause, if there happens to " "be one." msgstr "" "قيمة آخر تعبير جرى تقييمه في بند \\&CW<\\*(C`when\\*(C'>/" "CW<\\*(C`default\\*(C'> الناجح، إذا وجد واحد." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The value of the last evaluated expression of the CW<\\*(C`given\\*(C'> " "block if no condition is true." msgstr "" "قيمة آخر تعبير وُجدت قيمته في كتلة CW<\\*(C`given\\*(C'> إذا لم يتحقق أي شرط." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "In both last cases, the last expression is evaluated in the context that was " "applied to the CW<\\*(C`given\\*(C'> block." msgstr "" "في كلتا الحالتين الأخيرتين، تُحسب قيمة التعبير الأخير في السياق الذي طُبق على " "كتلة CW<\\*(C`given\\*(C'>." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Note that, unlike CW<\\*(C`if\\*(C'> and CW<\\*(C`unless\\*(C'>, failed " "CW<\\*(C`when\\*(C'> statements always evaluate to an empty list." msgstr "" "لاحظ أنه، على عكس CW<\\*(C`if\\*(C'> و CW<\\*(C`unless\\*(C'>، فإن جمل " "CW<\\*(C`when\\*(C'> الفاشلة تُنتج دائمًا قائمة فارغة." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& my $price = do {\n" "\\& given ($item) {\n" "\\& when ([\"pear\", \"apple\"]) { 1 }\n" "\\& break when \"vote\"; # My vote cannot be bought\n" "\\& 1e10 when /Mona Lisa/;\n" "\\& \"unknown\";\n" "\\& }\n" "\\& };\n" msgstr "" "\\& my $price = do {\n" "\\& given ($item) {\n" "\\& when ([\"pear\", \"apple\"]) { 1 }\n" "\\& break when \"vote\"; # لا يمكن شراء صوتي\n" "\\& 1e10 when /Mona Lisa/;\n" "\\& \"unknown\";\n" "\\& }\n" "\\& };\n" #. type: Plain text #: debian-trixie debian-unstable msgid "" "Currently, CW<\\*(C`given\\*(C'> blocks can't always be used as proper " "expressions. This may be addressed in a future version of Perl." msgstr "" "حاليًا، لا يمكن دائمًا استخدام كتل CW<\\*(C`given\\*(C'> كتعبيرات حقيقية. قد " "يُعالج هذا في إصدار مستقبلي من بيرل." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "I" msgstr "I<التبديل داخل حلقة تكرار>" #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Switching in a loop" msgstr "التبديل داخل حلقة تكرار" #. type: Plain text #: debian-trixie debian-unstable msgid "" "Instead of using CW, you can use a CW loop. For " "example, here's one way to count how many times a particular string occurs " "in an array:" msgstr "" "بدلًا من استخدام CW، يمكنك استخدام حلقة CW. على سبيل " "المثال، إليك إحدى الطرق لعد كم مرة تظهر سلسلة نصية معينة في مصفوفة:" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& use v5.10.1;\n" "\\& my $count = 0;\n" "\\& for (@array) {\n" "\\& when (\"foo\") { ++$count }\n" "\\& }\n" "\\& print \"\\e@array contains $count copies of \\*(Aqfoo\\*(Aq\\en\";\n" msgstr "" "\\& use v5.10.1;\n" "\\& my $count = 0;\n" "\\& for (@array) {\n" "\\& when (\"foo\") { ++$count }\n" "\\& }\n" "\\& print \"\\e@array contains $count copies of \\*(Aqfoo\\*(Aq\\en\";\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "Or in a more recent version:" msgstr "أو في إصدار أحدث:" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& use v5.14;\n" "\\& my $count = 0;\n" "\\& for (@array) {\n" "\\& ++$count when \"foo\";\n" "\\& }\n" "\\& print \"\\e@array contains $count copies of \\*(Aqfoo\\*(Aq\\en\";\n" msgstr "" "\\& use v5.14;\n" "\\& my $count = 0;\n" "\\& for (@array) {\n" "\\& ++$count when \"foo\";\n" "\\& }\n" "\\& print \"\\e@array contains $count copies of \\*(Aqfoo\\*(Aq\\en\";\n" #. type: Plain text #: debian-trixie debian-unstable msgid "" "At the end of all CW<\\*(C`when\\*(C'> blocks, there is an implicit " "CW<\\*(C`next\\*(C'>. You can override that with an explicit " "CW<\\*(C`last\\*(C'> if you're interested in only the first match alone." msgstr "" "في نهاية كل كتل CW<\\*(C`when\\*(C'>، يوجد CW<\\*(C`next\\*(C'> ضمني. يمكنك " "تجاوز ذلك باستخدام CW<\\*(C`last\\*(C'> صريح إذا كنت مهتمًا فقط بالمطابقة " "الأولى وحدها." #. type: Plain text #: debian-trixie debian-unstable msgid "" "This doesn't work if you explicitly specify a loop variable, as in " "CW<\\*(C`for $item (@array)\\*(C'>. You have to use the default variable " "CW<$_>." msgstr "" "لا يعمل هذا إذا حددت متغير حلقة بشكل صريح، كما في CW<\\*(C`for $item " "(@array)\\*(C'>. يجب عليك استخدام المتغير المبدئي CW<$_>." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "I" msgstr "I<الاختلافات عن راكو>" #. type: IX #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Differences from Raku" msgstr "الاختلافات عن راكو" #. type: Plain text #: debian-trixie debian-unstable msgid "" "The Perl 5 smartmatch and CW<\\*(C`given\\*(C'>/CW<\\*(C`when\\*(C'> " "constructs are not compatible with their Raku analogues. The most visible " "difference and least important difference is that, in Perl 5, parentheses " "are required around the argument to CW and CW (except when " "this last one is used as a statement modifier). Parentheses in Raku are " "always optional in a control construct such as CW, CW, or " "CW; they can't be made optional in Perl 5 without a great deal of " "potential confusion, because Perl 5 would parse the expression" msgstr "" "إن تراكيب المطابقة الذكية و CW<\\*(C`given\\*(C'>/CW<\\*(C`when\\*(C'> في " "بيرل 5 ليست متوافقة مع نظيراتها في راكو. الفرق الأكثر وضوحًا والأقل أهمية هو " "أنه في بيرل 5، الأقواس مطلوبة حول وسيط CW و CW (إلا عندما " "يُستخدم الأخير كمعدل جملة). الأقواس في راكو اختيارية دائمًا في تراكيب التحكم " "مثل CW، أو CW، أو CW؛ ولا يمكن جعلها اختيارية في بيرل " "5 دون قدر كبير من الارتباك المحتمل، لأن بيرل 5 سيحلل التعبير" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& given $foo {\n" "\\& ...\n" "\\& }\n" msgstr "" "\\& given $foo {\n" "\\& ...\n" "\\& }\n" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "as though the argument to CW<\\*(C`given\\*(C'> were an element of the hash " "\\&CW<%foo>, interpreting the braces as hash-element syntax." msgstr "" "كما لو كان وسيط CW<\\*(C`given\\*(C'> عنصرًا في الخبيئة \\&CW<%foo>، مفسرًا " "الأقواس المتعرجة على أنها بناء جملة لعنصر خبيئة." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "However, there are many, many other differences. For example, this works in " "Perl 5:" msgstr "" "ومع ذلك، هناك العديد والعديد من الاختلافات الأخرى. على سبيل المثال، هذا يعمل " "في بيرل 5:" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& use v5.12;\n" "\\& my @primary = (\"red\", \"blue\", \"green\");\n" "\\&\n" "\\& if (@primary ~~ \"red\") {\n" "\\& say \"primary smartmatches red\";\n" "\\& }\n" "\\&\n" "\\& if (\"red\" ~~ @primary) {\n" "\\& say \"red smartmatches primary\";\n" "\\& }\n" "\\&\n" "\\& say \"that\\*(Aqs all, folks!\";\n" msgstr "" "\\& use v5.12;\n" "\\& my @primary = (\"red\", \"blue\", \"green\");\n" "\\&\n" "\\& if (@primary ~~ \"red\") {\n" "\\& say \"primary smartmatches red\";\n" "\\& }\n" "\\&\n" "\\& if (\"red\" ~~ @primary) {\n" "\\& say \"red smartmatches primary\";\n" "\\& }\n" "\\&\n" "\\& say \"that\\*(Aqs all, folks!\";\n" #. type: Plain text #: debian-trixie debian-unstable msgid "" "But it doesn't work at all in Raku. Instead, you should use the " "(parallelizable) CW<\\*(C`any\\*(C'> operator:" msgstr "" "لكنه لا يعمل على الإطلاق في راكو. بدلًا من ذلك، يجب عليك استخدام عامل " "CW<\\*(C`any\\*(C'> (القابل للتوازي):" #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "\\& if any(@primary) eq \"red\" {\n" "\\& say \"primary smartmatches red\";\n" "\\& }\n" "\\&\n" "\\& if \"red\" eq any(@primary) {\n" "\\& say \"red smartmatches primary\";\n" "\\& }\n" msgstr "" "\\& if any(@primary) eq \"red\" {\n" "\\& say \"primary smartmatches red\";\n" "\\& }\n" "\\&\n" "\\& if \"red\" eq any(@primary) {\n" "\\& say \"red smartmatches primary\";\n" "\\& }\n" #. type: Plain text #: debian-trixie debian-unstable msgid "" "The table of smartmatches in \"Smartmatch Operator\" in perlop is not " "identical to that proposed by the Raku specification, mainly due to " "differences between Raku's and Perl 5's data models, but also because the " "Raku spec has changed since Perl 5 rushed into early adoption." msgstr "" "جدول المطابقات الذكية في \"Smartmatch Operator\" في perlop ليس متطابقًا مع " "ذلك المقترح في مواصفات راكو، ويرجع ذلك أساسًا إلى الاختلافات بين نماذج بيانات " "راكو و بيرل 5، وأيضًا لأن مواصفات راكو تغيرت منذ أن سارعت بيرل 5 إلى اعتماده " "مبكرًا." #. type: Plain text #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "In Raku, CW will always do an implicit smartmatch with its argument, " "while in Perl 5 it is convenient (albeit potentially confusing) to suppress " "this implicit smartmatch in various rather loosely-defined situations, as " "roughly outlined above. (The difference is largely because Perl 5 does not " "have, even internally, a boolean type.)" msgstr "" "في راكو، سيقوم CW دائمًا بمطابقة ذكية ضمنية مع وسيطه، بينما في بيرل 5 " "يكون من المناسب (وإن كان مربكًا محتملًا) كبح هذه المطابقة الذكية الضمنية في " "حالات متنوعة وغير محددة بدقة، كما هو موضح أعلاه تقريبًا. (الفرق يرجع بشكل " "كبير إلى أن بيرل 5 لا يملك، حتى داخليًا، نوعًا منطقيًا.)" #. type: TH #: debian-unstable #, no-wrap msgid "2025-11-16" msgstr "16 نوفمبر 2025" #. type: TH #: fedora-44 opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "2026-03-09" msgstr "9 مارس 2026" #. type: TH #: fedora-44 opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "perl v5.42.1" msgstr "بيرل v5.42.1" #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "Many of Perl\\*(Aqs syntactic elements are B. Rather than " "requiring you to put parentheses around every function call and declare " "every variable, you can often leave such explicit elements off and Perl will " "figure out what you meant. This is known as B, abbreviated " "B. It allows programmers to be B and to code in a style with " "which they are comfortable." msgstr "" "العديد من العناصر النحوية في بيرل تكون B<اختيارية>. بدلًا من مطالبتك بوضع " "أقواس حول كل استدعاء دالة والتصريح عن كل متغير، يمكنك غالبًا ترك هذه العناصر " "الصريحة وسيفهم بيرل ما تقصده. يُعرف هذا باسم B<افعل ما أعنيه>، ويُختصر بـ " "B. يتيح ذلك للمبرمجين أن يكونوا B<كسالى> وأن يبرمجوا بالأسلوب الذي " "يريحهم." #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "The only things you need to declare in Perl are report formats and " "subroutines (and sometimes not even subroutines). A scalar variable holds " "the undefined value (CW<\\*(C`undef\\*(C'>) until it has been assigned a " "defined value, which is anything other than CW<\\*(C`undef\\*(C'>. When " "used as a number, \\&CW<\\*(C`undef\\*(C'> is treated as CW<0>; when used as " "a string, it is treated as the empty string, CW<\"\">; and when used as a " "reference that isn\\*(Aqt being assigned to, it is treated as an error. If " "you enable warnings, you\\*(Aqll be notified of an uninitialized value " "whenever you treat \\&CW<\\*(C`undef\\*(C'> as a string or a number. Well, " "usually. Boolean contexts, such as:" msgstr "" "الأشياء الوحيدة التي تحتاج إلى التصريح عنها في بيرل هي تنسيقات التقارير " "والروتينات الفرعية (وأحيانًا لا تحتاج حتى للروتينات الفرعية). يحمل المتغير " "العددي القيمة غير المعرفة (CW<\\*(C`undef\\*(C'>) حتى تُسند إليه قيمة معرفة، " "وهي أي شيء بخلاف CW<\\*(C`undef\\*(C'>. عند استخدامه كعدد، يُعامل " "\\&CW<\\*(C`undef\\*(C'> كـ CW<0>؛ وعند استخدامه كسلسلة نصية، يُعامل كالسلسلة " "الفارغة، CW<\"\">؛ وعند استخدامه كمرجع لا يُسند إليه شيء، يُعامل كخطأ. إذا " "فعلت التحذيرات، فسيتم إخطارك بوجود قيمة غير مهيأة كلما عاملت " "\\&CW<\\*(C`undef\\*(C'> كسلسلة نصية أو عدد. حسنًا، عادةً. السياقات المنطقية، " "مثل:" #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "A declaration can be put anywhere a statement can, but has no effect on the " "execution of the primary sequence of statements: declarations all take " "effect at compile time. All declarations are typically put at the beginning " "or the end of the script. However, if you\\*(Aqre using lexically-scoped " "private variables created with CW, \\&CW, or CW, " "you\\*(Aqll have to make sure your format or subroutine definition is within " "the same block scope as the B if you expect to be able to access those " "private variables." msgstr "" "يمكن وضع التصريح في أي مكان توضع فيه الجملة، ولكن ليس له أي تأثير على تنفيذ " "تسلسل الجمل الرئيس: كل التصريحات تدخل حيز التنفيذ في وقت التصريف. عادةً ما " "توضع كل التصريحات في بداية السكربت أو نهايته. ومع ذلك، إذا كنت تستخدم " "متغيرات خاصة ذات نطاق لغوي أُنشئت باستخدام CW، أو \\&CW، أو " "CW، فسيتعين عليك التأكد من أن تعريف التنسيق أو الروتين الفرعي يقع ضمن " "نفس نطاق الكتلة الخاص بـ B إذا كنت تتوقع التمكن من الوصول إلى تلك " "المتغيرات الخاصة." #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "That now parses as you\\*(Aqd expect, but you still ought to get in the " "habit of using parentheses in that situation. For more on prototypes, see " "perlsub." msgstr "" "يُحلل ذلك الآن كما تتوقع، ولكن لا يزال يتعين عليك التعود على استخدام الأقواس " "في تلك الحالة. لمزيد من المعلومات حول النماذج الأولية، راجع perlsub." #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "The only kind of simple statement is an expression evaluated for its side-" "effects. Every simple statement must be terminated with a semicolon, unless " "it is the final statement in a block, in which case the semicolon is " "optional. But put the semicolon in anyway if the block takes up more than " "one line, because you may eventually add another line. Note that there are " "operators like CW<\\*(C`eval {}\\*(C'>, CW<\\*(C`sub {}\\*(C'>, and " "\\&CW<\\*(C`do {}\\*(C'> that I like compound statements, but " "aren\\*(Aqt--they\\*(Aqre just TERMs in an expression--and thus need an " "explicit termination when used as the last item in a statement." msgstr "" "النوع الوحيد من الجمل البسيطة هو التعبير الذي تُحسب قيمته من أجل آثاره " "الجانبية. يجب إنهاء كل جملة بسيطة بفاصلة منقوطة، ما لم تكن الجملة الأخيرة في " "كتلة، وفي هذه الحالة تكون الفاصلة المنقوطة اختيارية. ولكن ضع الفاصلة " "المنقوطة على أي حال إذا كانت الكتلة تشغل أكثر من سطر واحد، لأنك قد تضيف سطرًا " "آخر في النهاية. لاحظ أن هناك عوامل مثل CW<\\*(C`eval {}\\*(C'> و " "CW<\\*(C`sub {}\\*(C'> و \\&CW<\\*(C`do {}\\*(C'> I<تبدو> مثل الجمل المركبة، " "لكنها ليست كذلك -- فهي مجرد حدود (TERMs) في تعبير -- وبالتالي تحتاج إلى " "إنهاء صريح عند استخدامها كآخر عنصر في الجملة." #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "See \"do\" in perlfunc. Note also that the loop control statements " "described later will I work in this construct, because modifiers " "don\\*(Aqt take loop labels. Sorry. You can always put another block " "inside of it (for CW<\\*(C`next\\*(C'>/CW<\\*(C`redo\\*(C'>) or around it " "(for CW<\\*(C`last\\*(C'>) to do that sort of thing." msgstr "" "راجع \"do\" في perlfunc. لاحظ أيضًا أن جمل التحكم في الحلقة الموصوفة لاحقًا " "I<لن> تعمل في هذا التركيب، لأن المعدلات لا تقبل لصائق الحلقات. عذرًا. يمكنك " "دائمًا وضع كتلة أخرى بداخلها (من أجل CW<\\*(C`next\\*(C'>/" "CW<\\*(C`redo\\*(C'>) أو حولها (من أجل CW<\\*(C`last\\*(C'>) للقيام بهذا " "النوع من الأشياء." #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "\\&B The behaviour of a CW<\\*(C`my\\*(C'>, CW<\\*(C`state\\*(C'>, or " "\\&CW<\\*(C`our\\*(C'> modified with a statement modifier conditional or " "loop construct (for example, CW<\\*(C`my $x if ...\\*(C'>) is " "\\&B. The value of the CW<\\*(C`my\\*(C'> variable may be " "CW<\\*(C`undef\\*(C'>, any previously assigned value, or possibly anything " "else. Don\\*(Aqt rely on it. Future versions of perl might do something " "different from the version of perl you try it out on. Here be dragons." msgstr "" "\\&B<ملاحظة:> سلوك CW<\\*(C`my\\*(C'> أو CW<\\*(C`state\\*(C'> أو " "\\&CW<\\*(C`our\\*(C'> المعدل بمعدل جملة شرطي أو تركيب حلقة (على سبيل " "المثال، CW<\\*(C`my $x if ...\\*(C'>) هو \\&B<غير محدد>. قد تكون قيمة متغير " "CW<\\*(C`my\\*(C'> هي CW<\\*(C`undef\\*(C'>، أو أي قيمة أُسندت سابقًا، أو ربما " "أي شيء آخر. لا تعتمد عليه. قد تقوم الإصدارات المستقبلية من بيرل بشيء مختلف " "عن إصدار بيرل الذي تجربه عليه. احذر المخاطر." #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "Under the current implementation, the CW<\\*(C`foreach\\*(C'> loop can be " "anywhere within the CW<\\*(C`when\\*(C'> modifier\\*(Aqs dynamic scope, but " "must be within the CW<\\*(C`given\\*(C'> block\\*(Aqs lexical scope. This " "restriction may be relaxed in a future release. See \"Switch Statements\" " "below." msgstr "" "في ظل التنفيذ الحالي، يمكن أن تكون حلقة CW<\\*(C`foreach\\*(C'> في أي مكان " "ضمن النطاق الديناميكي لمعدل CW<\\*(C`when\\*(C'>، ولكن يجب أن تكون ضمن " "النطاق اللغوي لكتلة CW<\\*(C`given\\*(C'>. قد يُخفف هذا القيد في إصدار " "مستقبلي. راجع \"Switch Statements\" أدناه." #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "The CW<\\*(C`if\\*(C'> statement is straightforward. Because BLOCKs are " "always bounded by curly brackets, there is never any ambiguity about which " "\\&CW<\\*(C`if\\*(C'> an CW<\\*(C`else\\*(C'> goes with. If you use " "CW<\\*(C`unless\\*(C'> in place of CW<\\*(C`if\\*(C'>, the sense of the test " "is reversed. Like CW<\\*(C`if\\*(C'>, CW<\\*(C`unless\\*(C'> can be " "followed by CW<\\*(C`else\\*(C'>. CW<\\*(C`unless\\*(C'> can even be " "followed by one or more CW<\\*(C`elsif\\*(C'> statements, though you may " "want to think twice before using that particular language construct, as " "everyone reading your code will have to think at least twice before they can " "understand what\\*(Aqs going on." msgstr "" "جملة CW<\\*(C`if\\*(C'> واضحة ومباشرة. نظرًا لأن الكتل (BLOCKs) محاطة دائمًا " "بأقواس متعرجة، فلا يوجد أبدًا أي غموض حول أي \\&CW<\\*(C`if\\*(C'> تتبعها " "CW<\\*(C`else\\*(C'>. إذا استخدمت CW<\\*(C`unless\\*(C'> بدلاً من " "CW<\\*(C`if\\*(C'>، فسيُعكس منطق الاختبار. مثل CW<\\*(C`if\\*(C'>، يمكن أن " "تتبع CW<\\*(C`unless\\*(C'> جملة CW<\\*(C`else\\*(C'>. بل ويمكن أن تتبع " "CW<\\*(C`unless\\*(C'> جملة واحدة أو أكثر من جمل CW<\\*(C`elsif\\*(C'>، على " "الرغم من أنك قد ترغب في التفكير مرتين قبل استخدام هذا التركيب اللغوي المعين، " "حيث سيتعين على كل من يقرأ شفرتك التفكير مرتين على الأقل قبل أن يتمكنوا من " "فهم ما يحدث." #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "The CW<\\*(C`while\\*(C'> statement executes the block as long as the " "expression is true. The CW<\\*(C`until\\*(C'> statement executes the block " "as long as the expression is false. The LABEL is optional, and if present, " "consists of an identifier followed by a colon. The LABEL identifies the " "loop for the loop control statements CW<\\*(C`next\\*(C'>, " "CW<\\*(C`last\\*(C'>, and CW<\\*(C`redo\\*(C'>. If the LABEL is omitted, " "the loop control statement refers to the innermost enclosing loop. This may " "include dynamically searching through your call-stack at run time to find " "the LABEL. Such desperate behavior triggers a warning if you use the " "CW<\\*(C`use warnings\\*(C'> pragma or the B<-w> flag. If more than one " "label with the same name occurs, any reference to that name refers to the " "one labelling the innermost enclosing loop." msgstr "" "تنفيذ جملة CW<\\*(C`while\\*(C'> الكتلة طالما كان التعبير صحيحًا. جملة " "CW<\\*(C`until\\*(C'> تنفذ الكتلة طالما كان التعبير خاطئًا. الـ LABEL " "اختياري، وإذا وُجد، فإنه يتكون من معرف متبوع بنقطتين. يحدد LABEL الحلقة لجمل " "التحكم في الحلقة CW<\\*(C`next\\*(C'> و CW<\\*(C`last\\*(C'> و " "CW<\\*(C`redo\\*(C'>. إذا حُذف LABEL، فإن جملة التحكم في الحلقة تشير إلى " "الحلقة المحيطة الأعمق. قد يتضمن ذلك البحث ديناميكيًا عبر مكدس الاستدعاءات " "الخاص بك في وقت التشغيل للعثور على LABEL. يطلق هذا السلوك اليائس تحذيرًا إذا " "كنت تستخدم برامج CW<\\*(C`use warnings\\*(C'> أو علم B<-w>. إذا حدث أكثر من " "وسم بنفس الاسم، فإن أي إشارة إلى ذلك الاسم تشير إلى الوسم الذي يميز الحلقة " "المحيطة الأعمق." #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "If the condition expression of a CW<\\*(C`while\\*(C'> statement is based on " "any of a group of iterative expression types then it gets some magic " "treatment. The affected iterative expression types are " "CW<\\*(C`readline\\*(C'>, the CW<\\*(C`EFILEHANDLEE\\*(C'> input " "operator, CW<\\*(C`readdir\\*(C'>, CW<\\*(C`glob\\*(C'>, the " "CW<\\*(C`EPATTERNE\\*(C'> globbing operator, and " "CW<\\*(C`each\\*(C'>. If the condition expression is one of these " "expression types, then the value yielded by the iterative operator will be " "implicitly assigned to CW<$_>. If the condition expression is one of these " "expression types or an explicit assignment of one of them to a scalar, then " "the condition actually tests for definedness of the expression\\*(Aqs value, " "not for its regular truth value." msgstr "" "إذا كان تعبير الشرط في جملة CW<\\*(C`while\\*(C'> يعتمد على أي من مجموعة من " "أنواع التعبيرات التكرارية، فإنه يحصل على بعض المعاملة السحرية. أنواع " "التعبيرات التكرارية المتأثرة هي CW<\\*(C`readline\\*(C'>، وعامل الإدخال " "CW<\\*(C`EFILEHANDLEE\\*(C'>، و CW<\\*(C`readdir\\*(C'>، و " "CW<\\*(C`glob\\*(C'>، وعامل التحجيم CW<\\*(C`EPATTERNE\\*(C'>، و " "CW<\\*(C`each\\*(C'>. إذا كان تعبير الشرط أحد أنواع التعبيرات هذه، فستُسند " "القيمة التي ينتجها العامل التكراري ضمنيًا إلى CW<$_>. إذا كان تعبير الشرط أحد " "أنواع التعبيرات هذه أو إسنادًا صريحًا لأحدها إلى مقدار عددي، فإن الشرط يختبر " "في الواقع تعريف قيمة التعبير، وليس قيمته المنطقية العادية." #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "Extension modules can also hook into the Perl parser to define new kinds of " "compound statements. These are introduced by a keyword which the extension " "recognizes, and the syntax following the keyword is defined entirely by the " "extension. If you are an implementor, see \"PL_keyword_plugin\" in perlapi " "for the mechanism. If you are using such a module, see the module\\*(Aqs " "documentation for details of the syntax that it defines." msgstr "" "يمكن للوحدات الامتدادية أيضًا الارتباط بمحلل بيرل لتعريف أنواع جديدة من الجمل " "المركبة. تُقدم هذه عن طريق كلمة مفتاحية تتعرف عليها الوحدة الامتدادية، ويُعرف " "بناء الجملة الذي يلي الكلمة المفتاحية بالكامل بواسطة الامتداد. إذا كنت " "مطورًا، فراجع \"PL_keyword_plugin\" في perlapi لمعرفة الآلية. إذا كنت تستخدم " "مثل هذه الوحدة، فراجع وثائق الوحدة للحصول على تفاصيل حول بناء الجملة الذي " "تعرفه." #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "Loop control statements don\\*(Aqt work in an CW<\\*(C`if\\*(C'> or " "CW<\\*(C`unless\\*(C'>, since they aren\\*(Aqt loops. You can double the " "braces to make them such, though." msgstr "" "لا تعمل جمل التحكم في الحلقة في CW<\\*(C`if\\*(C'> أو " "CW<\\*(C`unless\\*(C'>، لأنها ليست حلقات تكرار. يمكنك مضاعفة الأقواس " "المتعرجة لجعلها كذلك، مع ذلك." #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "Perl\\*(Aqs C-style CW<\\*(C`for\\*(C'> loop works like the corresponding " "CW<\\*(C`while\\*(C'> loop; that means that this:" msgstr "" "حلقة CW<\\*(C`for\\*(C'> بأسلوب C في بيرل تعمل مثل حلقة " "CW<\\*(C`while\\*(C'> المقابلة؛ وهذا يعني أن هذا:" #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "Besides the normal array index looping, CW<\\*(C`for\\*(C'> can lend itself " "to many other interesting applications. Here\\*(Aqs one that avoids the " "problem you get into if you explicitly test for end-of-file on an " "interactive file descriptor causing your program to appear to hang." msgstr "" "بالإضافة إلى تكرار فهارس المصفوفات العادي، يمكن لـ CW<\\*(C`for\\*(C'> أن " "تصلح للعديد من التطبيقات المثيرة للاهتمام الأخرى. إليك واحدًا يتجنب المشكلة " "التي تقع فيها إذا قمت باختبار نهاية الملف بشكل صريح على واصف ملف تفاعلي مما " "يتسبب في ظهور برنامجك وكأنه متوقف." #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "The CW<\\*(C`foreach\\*(C'> loop iterates over a normal list value and sets " "the scalar variable VAR to be each element of the list in turn. If the " "variable is preceded with the keyword CW<\\*(C`my\\*(C'>, then it is " "lexically scoped, and is therefore visible only within the loop. Otherwise, " "the variable is implicitly local to the loop and regains its former value " "upon exiting the loop. If the variable was previously declared with " "CW<\\*(C`my\\*(C'>, it uses that variable instead of the global one, but " "it\\*(Aqs still localized to the loop. This implicit localization occurs " "I for non C-style loops." msgstr "" "تكرر حلقة CW<\\*(C`foreach\\*(C'> عبر قيمة قائمة عادية وتضبط المتغير العددي " "VAR ليكون كل عنصر من عناصر القائمة بالدور. إذا سُبق المتغير بالكلمة المفتاحية " "CW<\\*(C`my\\*(C'>، فإنه يكون ذا نطاق لغوي، وبالتالي لا يكون مرئيًا إلا داخل " "الحلقة. بخلاف ذلك، يكون المتغير محليًا ضمنيًا للحلقة ويستعيد قيمته السابقة عند " "الخروج من الحلقة. إذا صُرّح عن المتغير مسبقًا باستخدام CW<\\*(C`my\\*(C'>، فإنه " "يستخدم ذلك المتغير بدلاً من المتغير العام، لكنه لا يزال محليًا للحلقة. يحدث " "هذا التوطين الضمني I<فقط> للحلقات التي ليست بأسلوب C." #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "If any element of LIST is an lvalue, you can modify it by modifying VAR " "inside the loop. Conversely, if any element of LIST is NOT an lvalue, any " "attempt to modify that element will fail. In other words, the " "CW<\\*(C`foreach\\*(C'> loop index variable is an implicit alias for each " "item in the list that you\\*(Aqre looping over." msgstr "" "إذا كان أي عنصر من عناصر القائمة (LIST) يمثل قيمة يسارية (lvalue)، فيمكنك " "تعديله عن طريق تعديل VAR داخل الحلقة. وعلى العكس، إذا لم يكن أي عنصر من " "عناصر LIST قيمة يسارية، فإن أي محاولة لتعديل ذلك العنصر ستفشل. بمعنى آخر، " "متغير فهرس حلقة CW<\\*(C`foreach\\*(C'> هو اسم مستعار ضمني لكل عنصر في " "القائمة التي تكرر عبرها." #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "If any part of LIST is an array, CW<\\*(C`foreach\\*(C'> will get very " "confused if you add or remove elements within the loop body, for example " "with \\&CW<\\*(C`splice\\*(C'>. So don\\*(Aqt do that." msgstr "" "إذا كان أي جزء من LIST مصفوفة، فإن CW<\\*(C`foreach\\*(C'> ستصبح مرتبكة " "للغاية إذا أضفت أو أزلت عناصر داخل جسم الحلقة، على سبيل المثال باستخدام " "\\&CW<\\*(C`splice\\*(C'>. لذا لا تفعل ذلك." #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "\\&CW<\\*(C`foreach\\*(C'> probably won\\*(Aqt do what you expect if VAR is " "a tied or other special variable. Don\\*(Aqt do that either." msgstr "" "\\&CW<\\*(C`foreach\\*(C'> ربما لن تفعل ما تتوقعه إذا كان VAR متغيرًا مربوطًا " "أو متغيرًا خاصًا آخر. لا تفعل ذلك أيضًا." #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "As of Perl 5.22, there is an experimental variant of this loop that accepts " "a variable preceded by a backslash for VAR, in which case the items in the " "LIST must be references. The backslashed variable will become an alias to " "each referenced item in the LIST, which must be of the correct type. The " "variable needn\\*(Aqt be a scalar in this case, and the backslash may be " "followed by CW<\\*(C`my\\*(C'>. To use this form, you must enable the " "CW<\\*(C`refaliasing\\*(C'> feature via CW<\\*(C`use feature\\*(C'>. (See " "feature. See also \"Assigning to References\" in perlref.)" msgstr "" "بدءًا من بيرل 5.22، هناك متغير تجريبي لهذه الحلقة يقبل متغيرًا مسبوقًا بشرطة " "مائلة عكسية لـ VAR، وفي هذه الحالة يجب أن تكون العناصر في LIST مراجع. سيصبح " "المتغير المسبوق بشرطة مائلة عكسية اسمًا مستعارًا لكل عنصر مرجعي في LIST، والذي " "يجب أن يكون من النوع الصحيح. لا يلزم أن يكون المتغير مقدارًا عدديًا في هذه " "الحالة، وقد تتبع الشرطة المائلة العكسية CW<\\*(C`my\\*(C'>. لاستخدام هذا " "النموذج، يجب عليك تمكين ميزة CW<\\*(C`refaliasing\\*(C'> عبر CW<\\*(C`use " "feature\\*(C'>. (انظر الميزة. انظر أيضًا \"Assigning to References\" في " "perlref.)" #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "As of Perl 5.36, you can iterate over multiple values at a time. You can " "only iterate with lexical scalars as the iterator variables - unlike list " "assignment, it\\*(Aqs not possible to use CW<\\*(C`undef\\*(C'> to signify a " "value that isn\\*(Aqt wanted. This is a limitation of the current " "implementation, and might be changed in the future." msgstr "" "بدءًا من بيرل 5.36، يمكنك التكرار عبر قيم متعددة في المرة الواحدة. يمكنك " "التكرار فقط باستخدام مقادير عددية لغوية كمتغيرات تكرار - على عكس إسناد " "القائمة، ليس من الممكن استخدام CW<\\*(C`undef\\*(C'> للإشارة إلى قيمة غير " "مرغوب فيها. هذا قيد في التنفيذ الحالي، وقد يتغير في المستقبل." #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "If the size of the LIST is not an exact multiple of the number of iterator " "variables, then on the last iteration the \"excess\" iterator variables are " "aliases to CW<\\*(C`undef\\*(C'>, as if the LIST had CW<\\*(C`, undef\\*(C'> " "appended as many times as needed for its length to become an exact " "multiple. This happens whether LIST is a literal LIST or an array - i.e. " "arrays are not extended if their size is not a multiple of the iteration " "size, consistent with iterating an array one-at-a-time. As these padding " "elements are not lvalues, attempting to modify them will fail, consistent " "with the behaviour when iterating a list with literal " "CW<\\*(C`undef\\*(C'>s. If this is not the behaviour you desire, then " "before the loop starts either explicitly extend your array to be an exact " "multiple, or explicitly throw an exception." msgstr "" "إذا لم يكن حجم LIST مضاعفًا دقيقًا لعدد متغيرات التكرار، ففي التكرار الأخير " "ستكون متغيرات التكرار \"الزائدة\" أسماءً مستعارة لـ CW<\\*(C`undef\\*(C'>، " "كما لو كان قد أُلحق بـ LIST CW<\\*(C`, undef\\*(C'> لعدد المرات المطلوب حتى " "يصبح طولها مضاعفًا دقيقًا. يحدث هذا سواء كانت LIST قائمة حرفية أو مصفوفة - أي " "أن المصفوفات لا تُمدد إذا لم يكن حجمها مضاعفًا لحجم التكرار، بما يتوافق مع " "تكرار مصفوفة عنصرًا تلو الآخر. وبما أن عناصر الحشو هذه ليست قيمًا يسارية " "(lvalues)، فإن محاولة تعديلها ستفشل، بما يتوافق مع السلوك عند تكرار قائمة " "تحتوي على CW<\\*(C`undef\\*(C'> حرفية. إذا لم يكن هذا هو السلوك الذي تريده، " "فقبل بدء الحلقة إما أن تمدد مصفوفتك صراحة لتكون مضاعفًا دقيقًا، أو تطلق " "استثناءً صراحة." #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "Here\\*(Aqs how a C programmer might code up a particular algorithm in Perl:" msgstr "إليك كيف قد يقوم مبرمج C بكتابة خوارزمية معينة في بيرل:" #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "Whereas here\\*(Aqs how a Perl programmer more comfortable with the idiom " "might do it:" msgstr "بينما إليك كيف قد يفعل ذلك مبرمج بيرل الأكثر دراية بأسلوب اللغة:" #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "See how much easier this is? It\\*(Aqs cleaner, safer, and faster. " "It\\*(Aqs cleaner because it\\*(Aqs less noisy. It\\*(Aqs safer because if " "code gets added between the inner and outer loops later on, the new code " "won\\*(Aqt be accidentally executed. The CW<\\*(C`next\\*(C'> explicitly " "iterates the other loop rather than merely terminating the inner one. And " "it\\*(Aqs faster because Perl executes a CW<\\*(C`foreach\\*(C'> statement " "more rapidly than it would the equivalent C-style CW<\\*(C`for\\*(C'> loop." msgstr "" "أرأيت كم هو أسهل؟ إنه أنظف، وأكثر أمانًا، وأسرع. إنه أنظف لأنه أقل ضجيجًا. وهو " "أكثر أمانًا لأنه إذا أُضيفت شفرة بين الحلقات الداخلية والخارجية لاحقًا، فلن " "تُنفذ الشفرة الجديدة عرضًا. تقوم CW<\\*(C`next\\*(C'> بتكرار الحلقة الأخرى " "صراحة بدلاً من مجرد إنهاء الحلقة الداخلية. وهي أسرع لأن بيرل ينفذ جملة " "CW<\\*(C`foreach\\*(C'> بسرعة أكبر مما يفعل مع حلقة CW<\\*(C`for\\*(C'> " "المكافئة بأسلوب C." #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "A BLOCK by itself (labeled or not) is semantically equivalent to a loop that " "executes once. Thus you can use any of the loop control statements in it to " "leave or restart the block. (Note that this is \\&I true in " "CW<\\*(C`eval{}\\*(C'>, CW<\\*(C`sub{}\\*(C'>, or, contrary to popular " "belief, \\&CW<\\*(C`do{}\\*(C'> blocks, which do I count as loops.) " "The CW<\\*(C`continue\\*(C'> block is optional." msgstr "" "تكون الـ BLOCK بمفردها (سواء كانت موسومة أم لا) مكافئة دلاليًا لحلقة تُنفذ مرة " "واحدة. وبالتالي يمكنك استخدام أي من جمل التحكم في الحلقة فيها لمغادرة الكتلة " "أو إعادة تشغيلها. (لاحظ أن هذا \\&I<ليس> صحيحًا في كتل " "CW<\\*(C`eval{}\\*(C'>، أو CW<\\*(C`sub{}\\*(C'>، أو خلافًا للاعتقاد الشائع، " "كتل \\&CW<\\*(C`do{}\\*(C'>، والتي I<لا> تُعد حلقات.) كتلة " "CW<\\*(C`continue\\*(C'> اختيارية." #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "You\\*(Aqll also find that CW<\\*(C`foreach\\*(C'> loop used to create a " "topicalizer and a switch:" msgstr "" "ستجد أيضًا حلقة CW<\\*(C`foreach\\*(C'> تلك تُستخدم لإنشاء موضوعي " "(topicalizer) ومبدل (switch):" #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "The CW<\\*(C`switch\\*(C'> feature is discouraged for new code and is " "retained for backward compatibility." msgstr "" "لا يُنصح باستخدام ميزة CW<\\*(C`switch\\*(C'> في الشفرات الجديدة ويُحتفظ بها " "للتوافق مع الإصدارات السابقة." #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "Starting from Perl 5.10.1 (well, 5.10.0, but it didn\\*(Aqt work right), you " "can say" msgstr "" "بدءًا من بيرل 5.10.1 (حسنًا، 5.10.0، لكنها لم تكن تعمل بشكل صحيح)، يمكنك قول" #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "to enable the switch feature. This is loosely based on an old version of a " "Raku proposal, but it no longer resembles the Raku construct. You also get " "the switch feature whenever you declare that your code prefers to run under " "a version of Perl between 5.10 and 5.34. For example:" msgstr "" "لتمكين ميزة المبدل. يعتمد هذا بشكل فضفاض على نسخة قديمة من اقتراح لراكو، " "لكنه لم يعد يشبه تركيب راكو. تحصل أيضًا على ميزة المبدل كلما صرحت بأن شفرتك " "تفضل العمل تحت إصدار من بيرل بين 5.10 و 5.34. على سبيل المثال:" #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "Under the \"switch\" feature, Perl gains the keywords " "\\&CW<\\*(C`given\\*(C'>, CW<\\*(C`when\\*(C'>, CW<\\*(C`default\\*(C'>, " "CW<\\*(C`continue\\*(C'>, and CW<\\*(C`break\\*(C'>. Starting from Perl " "5.16, one can prefix the switch keywords with CW<\\*(C`CORE::\\*(C'> to " "access the feature without a CW<\\*(C`use feature\\*(C'> statement. The " "keywords CW<\\*(C`given\\*(C'> and \\&CW<\\*(C`when\\*(C'> are analogous to " "CW<\\*(C`switch\\*(C'> and \\&CW<\\*(C`case\\*(C'> in other languages -- " "though CW<\\*(C`continue\\*(C'> is not -- so the code in the previous " "section could be rewritten as" msgstr "" "تحت ميزة \"switch\"، يكتسب بيرل الكلمات المفتاحية \\&CW<\\*(C`given\\*(C'> و " "CW<\\*(C`when\\*(C'> و CW<\\*(C`default\\*(C'> و CW<\\*(C`continue\\*(C'> و " "CW<\\*(C`break\\*(C'>. بدءًا من بيرل 5.16، يمكن للمرء أن يسبق كلمات المبدل " "المفتاحية بـ CW<\\*(C`CORE::\\*(C'> للوصول إلى الميزة دون جملة CW<\\*(C`use " "feature\\*(C'>. الكلمتان المفتاحيتان CW<\\*(C`given\\*(C'> و " "\\&CW<\\*(C`when\\*(C'> تشبهان CW<\\*(C`switch\\*(C'> و " "\\&CW<\\*(C`case\\*(C'> في لغات أخرى -- على الرغم من أن " "CW<\\*(C`continue\\*(C'> ليست كذلك -- لذا يمكن إعادة كتابة الشفرة في القسم " "السابق كـ" #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "The CW<\\*(C`foreach\\*(C'> is another way to set a topicalizer. If you " "wish to use CW<\\*(C`given\\*(C'>, that could be written like this:" msgstr "" "تُعد CW<\\*(C`foreach\\*(C'> طريقة أخرى لضبط الموضوعي. إذا كنت ترغب في " "استخدام CW<\\*(C`given\\*(C'>، فيمكن كتابة ذلك على النحو التالي:" #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "Or if you don\\*(Aqt care to play it safe, like this:" msgstr "أو إذا كنت لا تهتم بالبقاء في الجانب الآمن، هكذا:" #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "Although not for the faint of heart, Perl does support a " "CW<\\*(C`goto\\*(C'> statement. There are three forms: CW<\\*(C`goto\\*(C'>-" "LABEL, CW<\\*(C`goto\\*(C'>-EXPR, and \\&CW<\\*(C`goto\\*(C'>-&NAME. A " "loop\\*(Aqs LABEL is not actually a valid target for a CW<\\*(C`goto\\*(C'>; " "it\\*(Aqs just the name of the loop." msgstr "" "على الرغم من أنها ليست لضعاف القلوب، إلا أن بيرل يدعم جملة " "CW<\\*(C`goto\\*(C'>. هناك ثلاثة أشكال: CW<\\*(C`goto\\*(C'>-LABEL و " "CW<\\*(C`goto\\*(C'>-EXPR و \\&CW<\\*(C`goto\\*(C'>-&NAME. إن LABEL الحلقة " "ليس في الواقع هدفًا صالحًا لـ CW<\\*(C`goto\\*(C'>؛ إنه مجرد اسم للحلقة." #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "The CW<\\*(C`goto\\*(C'>-LABEL form finds the statement labeled with LABEL " "and resumes execution there. It may not be used to go into any construct " "that requires initialization, such as a subroutine or a " "CW<\\*(C`foreach\\*(C'> loop. It also can\\*(Aqt be used to go into a " "construct that is optimized away. It can be used to go almost anywhere else " "within the dynamic scope, including out of subroutines, but it\\*(Aqs " "usually better to use some other construct such as CW<\\*(C`last\\*(C'> or " "CW<\\*(C`die\\*(C'>. The author of Perl has never felt the need to use this " "form of CW<\\*(C`goto\\*(C'> (in Perl, that is--C is another matter)." msgstr "" "يجد نموذج CW<\\*(C`goto\\*(C'>-LABEL الجملة الموسومة بـ LABEL ويستأنف " "التنفيذ هناك. لا يجوز استخدامه للدخول في أي تركيب يتطلب تهيئة، مثل الروتين " "الفرعي أو حلقة CW<\\*(C`foreach\\*(C'>. كما لا يمكن استخدامه للدخول في تركيب " "يُحسن بعيدًا. يمكن استخدامه للذهاب إلى أي مكان آخر تقريبًا داخل النطاق " "الديناميكي، بما في ذلك خارج الروتينات الفرعية، ولكن عادةً ما يكون من الأفضل " "استخدام تركيب آخر مثل CW<\\*(C`last\\*(C'> أو CW<\\*(C`die\\*(C'>. لم يشعر " "مؤلف بيرل أبدًا بالحاجة إلى استخدام هذا النموذج من CW<\\*(C`goto\\*(C'> (في " "بيرل، أي -- أما في C فالأمر مختلف)." #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "The CW<\\*(C`goto\\*(C'>-EXPR form expects a label name, whose scope will be " "resolved dynamically. This allows for computed CW<\\*(C`goto\\*(C'>s per " "FORTRAN, but isn\\*(Aqt necessarily recommended if you\\*(Aqre optimizing " "for maintainability:" msgstr "" "يتوقع نموذج CW<\\*(C`goto\\*(C'>-EXPR اسم وسم، والذي سيُحل نطاقه ديناميكيًا. " "يتيح ذلك جمل CW<\\*(C`goto\\*(C'> المحسوبة كما في FORTRAN، ولكن لا يُنصح به " "بالضرورة إذا كنت تعمل على تحسين قابلية الصيانة:" #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "In almost all cases like this, it\\*(Aqs usually a far, far better idea to " "use the structured control flow mechanisms of CW<\\*(C`next\\*(C'>, " "CW<\\*(C`last\\*(C'>, or CW<\\*(C`redo\\*(C'> instead of resorting to a " "CW<\\*(C`goto\\*(C'>. For certain applications, the catch and throw pair of " "\\&CW<\\*(C`eval{}\\*(C'> and B for exception processing can also be " "a prudent approach." msgstr "" "في جميع الحالات مثل هذه تقريبًا، عادةً ما تكون فكرة أفضل بكثير استخدام آليات " "تدفق التحكم المهيكلة مثل CW<\\*(C`next\\*(C'> أو CW<\\*(C`last\\*(C'> أو " "CW<\\*(C`redo\\*(C'> بدلاً من اللجوء إلى CW<\\*(C`goto\\*(C'>. بالنسبة لبعض " "التطبيقات، يمكن أن يكون زوج الالتقاط والرمي \\&CW<\\*(C`eval{}\\*(C'> و " "B لمعالجة الاستثناءات نهجًا حكيمًا أيضًا." #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "Beginning in Perl 5.12, Perl accepts an ellipsis, \"CW<\\*(C`...\\*(C'>\", " "as a placeholder for code that you haven\\*(Aqt implemented yet. When Perl " "5.12 or later encounters an ellipsis statement, it parses this without " "error, but if and when you should actually try to execute it, Perl throws an " "exception with the text CW<\\*(C`Unimplemented\\*(C'>:" msgstr "" "بدءًا من بيرل 5.12، يقبل بيرل علامة الحذف، \"CW<\\*(C`...\\*(C'>\"، كعنصر " "نائب للشفرة التي لم تنفذها بعد. عندما يواجه بيرل 5.12 أو أحدث جملة تحتوي على " "علامة حذف، فإنه يحللها دون خطأ، ولكن إذا حاولت تنفيذها فعليًا، فإن بيرل يرمي " "استثناءً بالنص CW<\\*(C`Unimplemented\\*(C'>:" #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "There are some cases where Perl can\\*(Aqt immediately tell the difference " "between an expression and a statement. For instance, the syntax for a block " "and an anonymous hash reference constructor look the same unless " "there\\*(Aqs something in the braces to give Perl a hint. The ellipsis is a " "syntax error if Perl doesn\\*(Aqt guess that the CW<\\*(C`{ ... }\\*(C'> is " "a block. Inside your block, you can use a CW<\\*(C`;\\*(C'> before the " "ellipsis to denote that the \\&CW<\\*(C`{ ... }\\*(C'> is a block and not a " "hash reference constructor." msgstr "" "هناك بعض الحالات التي لا يستطيع فيها بيرل التمييز على الفور بين التعبير " "والجملة. على سبيل المثال، يبدو بناء جملة الكتلة ومنشئ مرجع الخبيئة المجهول " "متشابهين ما لم يكن هناك شيء في الأقواس المتعرجة لإعطاء تلميح لـ بيرل. علامة " "الحذف هي خطأ نحوي إذا لم يخمن بيرل أن CW<\\*(C`{ ... }\\*(C'> هي كتلة. داخل " "كتلتك، يمكنك استخدام CW<\\*(C`;\\*(C'> قبل علامة الحذف للإشارة إلى أن " "\\&CW<\\*(C`{ ... }\\*(C'> هي كتلة وليست منشئ مرجع خبيئة." #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "Perl has a mechanism for intermixing documentation with source code. While " "it\\*(Aqs expecting the beginning of a new statement, if the compiler " "encounters a line that begins with an equal sign and a word, like this" msgstr "" "يحتوي بيرل على آلية لخلط الوثائق مع الشفرة المصدرية. وبينما يتوقع بداية جملة " "جديدة، إذا واجه المصرف سطرًا يبدأ بعلامة يساوي وكلمة، مثل هذا" #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "You probably shouldn\\*(Aqt rely upon the CW being podded out " "forever. Not all pod translators are well-behaved in this regard, and " "perhaps the compiler will become pickier." msgstr "" "ربما لا ينبغي عليك الاعتماد على كون CW خارج النطاق (podded out) " "للأبد. ليست كل مترجمات pod حسنة السلوك في هذا الصدد، وربما يصبح المصرف أكثر " "تطلبًا." #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "Perl can process line directives, much like the C preprocessor. Using this, " "one can control Perl\\*(Aqs idea of filenames and line numbers in error or " "warning messages (especially for strings that are processed with " "CW). The syntax for this mechanism is almost the same as for most C " "preprocessors: it matches the regular expression" msgstr "" "يمكن لـ بيرل معالجة توجيهات الأسطر، تمامًا مثل معالج C المسبق. وباستخدام هذا، " "يمكن للمرء التحكم في فكرة بيرل عن أسماء الملفات وأرقام الأسطر في رسائل الخطأ " "أو التحذير (خاصة للسلاسل النصية التي تُعالج بـ CW). بناء الجملة لهذه " "الآلية هو نفسه تقريبًا لمعظم معالجات C المسبقة: فهو يطابق التعبير النمطي" #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "There is a fairly obvious gotcha included with the line directive: Debuggers " "and profilers will only show the last source line to appear at a particular " "line number in a given file. Care should be taken not to cause line number " "collisions in code you\\*(Aqd like to debug later." msgstr "" "هناك فخ واضح تمامًا متضمن في توجيه السطر: ستظهر المنقحات والمحللات فقط آخر " "سطر مصدري يظهر عند رقم سطر معين في ملف معين. يجب توخي الحذر لتجنب تضارب " "أرقام الأسطر في الشفرة التي ترغب في تنقيحها لاحقًا." #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "These rules are complicated, but the goal is for them to do what you want " "(even if you don\\*(Aqt quite understand why they are doing it). For " "example:" msgstr "" "هذه القواعد معقدة، لكن الهدف منها هو أن تفعل ما تريد (حتى لو لم تفهم تمامًا " "سبب قيامها بذلك). على سبيل المثال:" #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "Tautologous boolean operators are still going to be optimized away. " "Don\\*(Aqt be tempted to write" msgstr "لا تزال العمليات المنطقية الحشوية ستُحسن بعيدًا. لا تنجرف لكتابة" #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "This is somewhat equivalent to the C-style switch statement\\*(Aqs " "fallthrough functionality (not to be confused with I " "fallthrough functionality--see below), wherein the same block is used for " "several \\&CW<\\*(C`case\\*(C'> statements." msgstr "" "هذا يعادل إلى حد ما وظيفة السقوط (fallthrough) في جملة switch بأسلوب C (لا " "ينبغي الخلط بينها وبين وظيفة السقوط في I<بيرل> -- انظر أدناه)، حيث تُستخدم " "نفس الكتلة لعدة جمل \\&CW<\\*(C`case\\*(C'>." #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "When a CW<\\*(C`given\\*(C'> statement is also a valid expression (for " "example, when it\\*(Aqs the last statement of a block), it evaluates to:" msgstr "" "عندما تكون جملة CW<\\*(C`given\\*(C'> تعبيرًا صالحًا أيضًا (على سبيل المثال، " "عندما تكون الجملة الأخيرة في كتلة)، فإنها تؤول إلى:" #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "Currently, CW<\\*(C`given\\*(C'> blocks can\\*(Aqt always be used as proper " "expressions. This may be addressed in a future version of Perl." msgstr "" "حاليًا، لا يمكن دائمًا استخدام كتل CW<\\*(C`given\\*(C'> كتعبيرات حقيقية. قد " "يُعالج هذا في إصدار مستقبلي من بيرل." #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "Instead of using CW, you can use a CW loop. For " "example, here\\*(Aqs one way to count how many times a particular string " "occurs in an array:" msgstr "" "بدلاً من استخدام CW، يمكنك استخدام حلقة CW. على سبيل " "المثال، إليك طريقة واحدة لعد عدد مرات ظهور سلسلة نصية معينة في مصفوفة:" #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "At the end of all CW<\\*(C`when\\*(C'> blocks, there is an implicit " "CW<\\*(C`next\\*(C'>. You can override that with an explicit " "CW<\\*(C`last\\*(C'> if you\\*(Aqre interested in only the first match alone." msgstr "" "في نهاية جميع كتل CW<\\*(C`when\\*(C'>، يوجد CW<\\*(C`next\\*(C'> ضمني. " "يمكنك تجاوز ذلك بـ CW<\\*(C`last\\*(C'> صريح إذا كنت مهتمًا بالمطابقة الأولى " "وحدها." #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "This doesn\\*(Aqt work if you explicitly specify a loop variable, as in " "CW<\\*(C`for $item (@array)\\*(C'>. You have to use the default variable " "CW<$_>." msgstr "" "لا يعمل هذا إذا قمت بتحديد متغير حلقة بشكل صريح، كما في CW<\\*(C`for $item " "(@array)\\*(C'>. يجب عليك استخدام المتغير المبدئي CW<$_>." #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "The Perl 5 smartmatch and CW<\\*(C`given\\*(C'>/CW<\\*(C`when\\*(C'> " "constructs are not compatible with their Raku analogues. The most visible " "difference and least important difference is that, in Perl 5, parentheses " "are required around the argument to CW and CW (except when " "this last one is used as a statement modifier). Parentheses in Raku are " "always optional in a control construct such as CW, CW, or " "CW; they can\\*(Aqt be made optional in Perl 5 without a great deal " "of potential confusion, because Perl 5 would parse the expression" msgstr "" "إن تراكيب المطابقة الذكية و CW<\\*(C`given\\*(C'>/CW<\\*(C`when\\*(C'> في " "بيرل 5 ليست متوافقة مع نظيراتها في راكو. الفرق الأكثر وضوحًا والأقل أهمية هو " "أنه في بيرل 5، الأقواس مطلوبة حول وسيط CW و CW (إلا عندما " "يُستخدم الأخير كمعدل جملة). الأقواس في راكو اختيارية دائمًا في تراكيب التحكم " "مثل CW، أو CW، أو CW؛ ولا يمكن جعلها اختيارية في بيرل " "5 دون قدر كبير من الارتباك المحتمل، لأن بيرل 5 سيحلل التعبير" #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "But it doesn\\*(Aqt work at all in Raku. Instead, you should use the " "(parallelizable) CW<\\*(C`any\\*(C'> operator:" msgstr "" "لكنه لا يعمل على الإطلاق في راكو. بدلاً من ذلك، يجب عليك استخدام عامل " "CW<\\*(C`any\\*(C'> (القابل للتوازي):" #. type: Plain text #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "The table of smartmatches in \"Smartmatch Operator\" in perlop is not " "identical to that proposed by the Raku specification, mainly due to " "differences between Raku\\*(Aqs and Perl 5\\*(Aqs data models, but also " "because the Raku spec has changed since Perl 5 rushed into early adoption." msgstr "" "جدول المطابقات الذكية في \"Smartmatch Operator\" في perlop ليس متطابقًا مع " "ذلك المقترح في مواصفات راكو، ويرجع ذلك أساسًا إلى الاختلافات بين نماذج بيانات " "راكو و بيرل 5، وأيضًا لأن مواصفات راكو تغيرت منذ أن سارعت بيرل 5 إلى اعتماده " "مبكرًا." #. type: TH #: fedora-rawhide #, no-wrap msgid "2026-03-30" msgstr "30 مارس 2026" #. type: TH #: fedora-rawhide #, no-wrap msgid "perl v5.42.2" msgstr "بيرل v5.40.2" #. type: TH #: mageia-cauldron #, no-wrap msgid "2025-06-24" msgstr "24 يونيو 2025" #. type: TH #: mageia-cauldron #, no-wrap msgid "perl v5.42.0" msgstr "بيرل v5.42.0"