in reply to Re^2: Newbie question
in thread Newbie question

Or even:
    my @ans = grep 1 & sumdigits($_), @input;


Give a man a fish:  <%-{-{-{-<