in reply to Re^2: Do not understand code
in thread Do not understand code

Note that you reversed the operator. It’s not ~=, it’s =~.