in reply to passing variables
Variables enclosed in single quotes don't get interpolated. So you need to enclose in double quotes, but escape the ampersand on the array.
system ("tremove \@host:$ep");
system ("tremove \@host:$ep");
In Section
Seekers of Perl Wisdom