my $cs = Net::Telnet::Cisco->new (Host =>host,Errmode=> "return"); $cs->input_log ("/var/log/routers/cisco.$host.backup.input.log"); if ($type == 0) { $cs->login ("$user","$pw"); } my @cmd_output; if ($type == 0) { $cs->cmd ('terminal length 0'); @cmd_output = $cs->cmd ('show running-config'); print "Array value__________________'@cmd_output'\n"; ###Here the value comes as NULL }