When I capture a group using rsub, I'm unable to access the capture using $1 or \1. For example @rsub s/(test)/$1/ prints $1 Am I missing something?