$tags[0] = lc($tags[0]); print Dumper(@tags)."\n"; if ($tags[0] eq '//'){ # sind zwei(!) // drin writeKV($fh_out,'highway','street_lamp'); exit 0; } elsif ($tags[0] eq '/none'){ # ist /none drin writeKV($fh_out,'highway','street_lamp'); writeKV($fh_out,'ref','none'); } elsif ($tags[0] =~ /\/\[\d+\]/) { # falls /[12345670] drin # Code für /mit_Ziffern }