It would be nice if you told us what you're getting in NVFILE. (Obligatory suggestions to use strict, warnings, and 3-argument open here). Offhand, two things I could suggest are that you might be running afoul of the timeout (which is set by default in Net::Telnet) or that you aren't for whatever reason, matching. Have you used dump_log() to see what's coming through?