jcpunk has asked for the wisdom of the Perl Monks concerning the following question:

Occasionally a set of commands that i am running via Net::Telnet has a few characters left behind from the execution ie. cat .vacation.msg reports back
tion.msg message text
or sometimes
n.msg message.
i really would rather not have that showing up in my production code what sort or a substitution can be done to remove that random bit there. it has been tested that occasionally that bit does not even show up and the new line following .msg is also gone, so how does one check for that sort of a thing......
jcpunk

by the way thanks for all the help that was, is, and will be