in reply to Regex to only show 2nd character of the same character in a string

my @chars = grep 0==(++$seen{$_})%2, /./sg;

For example,

$ perl -E'say for grep 0==(++$seen{$_})%2, "abccabbcabc" =~ /./sg;' c a b b c