in reply to grep { $var } @arr

eval seems to work (with the usual security disclaimers):
@res = grep {eval $pat} @arr;

Replies are listed 'Best First'.
Re^2: grep { $var } @arr
by igelkott (Priest) on Jul 17, 2014 at 15:02 UTC
    eval $pat

    Thanks! I feel like a total fool but it's worth having such a simple fix.

    This works on my overly complex, multi-dimensional problem as well.