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

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # Perl 中的`if-else`語句 > 原文: [https://beginnersbook.com/2017/02/if-else-statement-in-perl/](https://beginnersbook.com/2017/02/if-else-statement-in-perl/) 在[上一篇教程](https://beginnersbook.com/2017/02/if-statement-in-perl/)中,我們了解了 perl 中的`if`語句。在本教程中,我們將了解`if-else`條件語句。這是`if-else`語句的外觀: ```perl if(condition) { Statement(s); } else { Statement(s); } ``` 如果條件為真,則`if`內的語句將執行,如果條件為假,則`else`內的語句將執行。 #### 例: ```perl #!/usr/local/bin/perl printf "Enter any number:"; $num = <STDIN>; if( $num >100 ) { # This print statement would execute, # if the above condition is true printf "number is greater than 100\n"; } else { #This print statement would execute, #if the given condition is false printf "number is less than 100\n"; } ``` **輸出:** ```perl Enter any number:120 number is greater than 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>

                              哎呀哎呀视频在线观看