Help with merging

2002-12-04 Thread hapan
Hey I'm having diffuculties with parsing a logfile. i got this as input: ( its been filter so its like this) "monkey killed elephant with stone" $1 $2 $3 $4 $5 but when someone has a name with spaces " monkey killed elephant master with stone " $1 $2 $3 $4$

Re: Help with merging

2002-12-04 Thread hapan
i did that with this line my ($killer, $did, $whom, $by, $what) = /^(\S+) (\S+) (\S+) (\S+) (\S+)/; $1 = $killer and so on, thought that it might be easier for ppl to understand if i put it out as $1 , $2 .. in the worst case i had a user with 2 spaces in his name like "Elephant Master Killer

Merging some stuff..

2002-12-09 Thread hapan
Hello people Do any one of you know a good way to merge some expressions into one? this is what i would like in one thing: $killer $score{ $killer } its for some logparsing. This generates the output i want ex: monkey -15 elephant 10 monkey -17 elephant 12 i need this to so i can use a f