in reply to Variable declared in script, used by module, and used in script
You could replace qq with qx and have it work as you expected it to.
In Section
Seekers of Perl Wisdom
in reply to Variable declared in script, used by module, and used in script