[perl] zuordnungsproblem [auf Viren überprüft]

Hans Moser <[email protected]>
Newsgroups gmane.linux.suse.programming
Message-ID <[email protected]>
Hallo!

Ich habe einen Datensatz aus mit Komma getrennten Werten:
feld1;wert1;feld2;wert2;feld3;wert3;

Daraus einen Hash zu bilden, wäre ja nicht das Problem.
Letztendlich soll daraus ein LDIF-Datensatz werden. Dazu muß ich die 
Feldnamen anhand einer weiteren Zuordnung in die entsprechenden 
Attribute ändern.
feld1 -> attribute1
feld2 -> attribute2

Wie verknüpfe ich am besten die Ausgangs"tabelle" mit meiner 
LDIF-Übersetzungs"tabelle", damit ich folgende Zuordnung erhalte:
feld1 - wert1 ---> attribute1 - wert1   ?
Ein Hash mit einem 2 dimensionalen Array?


Hans
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.