in reply to Net::Telnet Question

The code is working fine here, just needed root privileges (but it said so in an error message). Did you check that the switch can be pinged at all?