my $command = "ls -l /home/confbackup/startup_configs/"; unless (open(CMD, "$command |")) {  die "Error in executing command: $!\n"; } @configs = ; chomp(@confix); close(CMD);