avanta has asked for the wisdom of the Perl Monks concerning the following question:
Now I need to have one record of 2010-01-01_audio with the value = 4+6. and so on.The record shud look like2010-01-01_audio,4 2010-01-01_text,5 2010-01-01_audio,6 2010-01-01_video,7 2010-01-02_audio,8 2010-01-02_text,6 2010-01-02_video,66 2010-01-02_text,45
I heard that using hash u cn do it but im not familiar with hash, and if i use the conventional way of using reading the file and foreach record, match it and the write it. but it is not possible to get the expected result.2010-01-01_audio,10 2010-01-01_text,5 2010-01-01_video,7 2010-01-02_audio,8 2010-01-02_text,51 2010-01-02_video,66
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Need help with using Hash
by moritz (Cardinal) on Feb 05, 2010 at 09:39 UTC | |
|
Re: Need help with using Hash
by Utilitarian (Vicar) on Feb 05, 2010 at 10:51 UTC |