in reply to regexp g option: finds all occurrences? ha!!

I would use positive lookahead with capturing:

$ perl -wle '$_ = "abaca"; @a = /(?=(a.a))/g; print "@a"' aba aca

Abigail