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

Thanks for this detailed answer. I knew its possible to ask for a condition like $_ ~= <regex> - but this notation is new for me. With this information I understand this snippet.

Replies are listed 'Best First'.
Re^3: Do not understand code
by Your Mother (Archbishop) on Sep 28, 2017 at 16:07 UTC

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