# hier dasselbe for $id ( keys %{ $ref->{photos}->{photo} } ) {...}