in reply to why not listed foreach and if?
I suspect there is some useful info about this Here: https://perldoc.perl.org/perlop