Re: Read logfile to variable hash

2010-12-01 Thread Dennis Jakobi
Thanks for the codingstyle tips, Shlomi. I instantly changed that =) @Rob: The structure of my data is like category_a->index_a->value_a category_a->index_b->value_b category_a->category_b->index_a->value_a So sometimes I have a category in a category, sometimes it is just a value in a

Re: Read logfile to variable hash

2010-12-01 Thread Rob Coops
On Wed, Dec 1, 2010 at 10:24 AM, Dennis Jakobi wrote: > Hi there, > > I have the following problem: > > I want to read a logfile in which every line follows this rule: > ::... > > But the number of values differs. Sometimes a line has 2 values (the > minimum) and sometimes 3 or more values. Now I

Re: Read logfile to variable hash

2010-12-01 Thread Shlomi Fish
Hi Dennis, On Wednesday 01 December 2010 11:24:02 Dennis Jakobi wrote: > Hi there, > > I have the following problem: > > I want to read a logfile in which every line follows this rule: > ::... > > But the number of values differs. Sometimes a line has 2 values (the > minimum) and sometimes 3 or