my $uuts; while (<$fh>) { chomp; next if ! -e "/tmp/files/$_.json"; push @{$uuts->{People}}, @{decode_json(read_file("/tmp/files/$_.json"))}; }