$type{killed} = [$regexref,3]; # 3 to pass $1,$2, and $3 #above is not exact and has problems I'm sure. Just for the idea.