in reply to Quick question on a Perl Code!

(rolling his eyes...)   It is not the most intuitive syntax in the known universe ... but it’s what made the cut, and it does work.