RE: list-parsing problem
EUROSPACE SZARINDAR <[email protected]> Thu, 18 Sep 2003 11:31:55 +0200
| Newsgroups | gmane.comp.lang.perl.beginners,gmane.comp.lang.perl.daily.tips |
|---|---|
| Message-ID | <[email protected]> |
Hi Marcus Just look at the perldoc perlreftut. What you are looking for is the = exact exemple of the paper. Michel -----Message d'origine----- De: Marcus Claesson [mailto:[email protected]] Date: jeudi 18 septembre 2003 11:26 =C0: [email protected] Cc: [email protected]; [email protected] Objet: list-parsing problem Hi People, I have a silly little list-parsing problem that I can't get my head around, and I'm sure some of you have come across it before. I have a list like this: 1=09a 2=09b 2=09c 3=09a 4=09d 4=09d 4=09e 4=09f 5=09g and I want to make the first column non-redundant and collect the sec= ond column values on the same line, like this: 1=09a 2=09b,c 3=09a 4=09d,e,f 5=09g Please note that line 4 only has one 'd'. I've tried with both hashes and arrays (don't want to confuse you so = I won't display them here), but nothing really works... I would really appreciate any help! Marcus --=20 To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]