($mres) = ($res =~ m/(<a href=\"https:\/\/www.example.com\/foodbanks\/.*<\/a>)/im);
Also WRT regexes: In the code above quoted from the OP, note that the . (dot) operators in www.example.com will match anything (except newlines (unless the /s modifier is asserted)), so e.g.,
c:\@Work\Perl\monks>perl -wMstrict -le
"print 'match' if 'wwwXexampleYcom' =~ /www.example.com/;
"
match
The dot (and any other regex metacharacters that may be present) should be escaped appropriately.
Give a man a fish: <%-{-{-{-<