$rh->cmd("show chassis fpc pic-status $fpc[0]"); my $output = $rh->get_response; my @outputlist = join s/(^\s+|\s+$)//g, $output;