in reply to Can this code be optimized further?
my ( @a, @b); { no strict "refs"; push @{substr( $_,0,1)}, substr($_,2) foreach ( @temp) } [download]
Be well, rir