On 25/03/17 06:15, ToddAndMargo wrote: >> while || tries the left side first, then the right side. >> Basically use | in regexes unless you need ||. > > Would this be the logical AND equivalent? > > if $Terminal ~~ /xterm && linux/ {} > > Thank you! > > -T >
There is no &&, but there is &. the regex /xterm & linux/ would only match if there were the strings "xterm" and "linux" in the exact same place in a string, which is impossible as far as i know.