<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                # Perl 中的`Switch Case` > 原文: [https://beginnersbook.com/2017/02/switch-case-in-perl/](https://beginnersbook.com/2017/02/switch-case-in-perl/) 在 Perl 5 中不推薦使用`switch-case`。如果您想知道為什么它被棄用,這就是答案: `switch-case`可能會在代碼的其他部分產生語法錯誤。如果在 heredoc 中存在`case`,則在 perl 5.10.x 上可能會導致語法錯誤。一般來說,使用`given/when`代替。它是在 perl 5.10.0 中引入的。 Perl 5.10.0 于 2007 年發布。[來源](http://search.cpan.org/~chorny/Switch-2.17/Switch.pm#BUGS)。 然而,三個新的關鍵字:`given`,`when`和`default`在 Perl 5 中引入,提供類似于`switch case`的功能。這是它的樣子: ```perl given (argument) { when (condition) { statement(s); } when (condition) { statement(s); } when (condition) { statement(s); } . . . default { statement(s); } } ``` 通過示例了解更多關于[`given`,`when`和`default`](https://beginnersbook.com/2017/02/given-when-default-statement-in-perl/)。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看