in reply to smart match capture

No, see Re: Smart match operator question and use grep or List::AllUtils#first