flip-flop æ¼ç®åã¨ã¯ãã¹ã«ã©ã¼ã³ã³ããã¹ãã§ä½¿ç¨ãããç¯å²æ¼ç®å(Range Operator) ã®ãã¨ã§ããä¸è¬ã«ã¯ããã (.) 2 åã§æ§æãããæ¼ç®åã¨ãã¦èªèããã¦ãã¾ãã ãã®æ¼ç®å㯠2 ã¤ã®ãªãã©ã³ããåãã¾ããä¸è¨ã®ä¾ã§ã¯ã3 㨠5 ããªãã©ã³ãã«åã£ã¦ãã¾ãã perl -nle 'print if 3 .. 5' bigfile.txt ä¸è¨ã¯ãbigfile.txt ã 1 è¡ãã¤èªã¿ããã§ããã®ã§ãããbigfile.txt ã 1 ~ 2 è¡ç®ã®ãã¡ã¯ if æ㯠false ãè¿ãã¾ãã3 è¡ç®ã«ãªã㨠if æ㯠true ã«ãªããif æã true ã¨ãã¦è©ä¾¡ããããã®ç¶æ 㯠5 è¡ç®ã¾ã§ç¶ãã¾ãããã㦠6 è¡ç®ã«éãã¦ä»¥å¾ã¯ããã£ã¨ false ã¨ãã¦è©ä¾¡ããã¾ãã ããã§ã¯ããã¨ãç¶æ ãã¨ããè¨èã使ãã¾ãããããã®æ¼ç®åã¯ãç¶æ ããæ
{{#tags}}- {{label}}
{{/tags}}