<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>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # Perl 中的`unless-else`語句 > 原文: [https://beginnersbook.com/2017/02/unless-else-statement-in-perl/](https://beginnersbook.com/2017/02/unless-else-statement-in-perl/) 類似于[`unless`語句](https://beginnersbook.com/2017/02/unless-statement-in-perl/),Perl 中的`unless-else`語句與[`if-else`語句](https://beginnersbook.com/2017/02/if-else-statement-in-perl/)相反。在`except-else`中,如果條件為`false`,執行內部語句,如果條件為`true`,則執行`else`內的語句。 ```perl unless(condition) { #These statements would execute #if the condition is false. statement(s); } else { #These statements would execute #if the condition is true. statement(s); } ``` #### 例 ```perl #!/usr/local/bin/perl printf "Enter any number:"; $num = <STDIN>; unless($num>=100) { #This print statement would execute, #if the given condition is false printf "num is less than 100\n"; } else { #This print statement would execute, #if the given condition is true printf "number is greater than or equal to 100\n"; } ``` **輸出:** ```perl Enter any number:100 number is greater than or equal to 100 ```
                  <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>

                              哎呀哎呀视频在线观看