Re: Read logfile to variable hash

2010-12-01 Thread Dennis Jakobi
Greetings Dennis 2010/12/1 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: >> ::... >> >

Read logfile to variable hash

2010-12-01 Thread Dennis Jakobi
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 want to push these values into a hash that follows that form: $hash->{