Or even: my @ans = grep 1 & sumdigits($_), @input;
Give a man a fish: <%-{-{-{-<
In reply to Re^3: Newbie question by AnomalousMonk in thread Newbie question by oldB51