develooper Front page | perl.beginners | Postings from December 2002

Help with merging

Thread Next
From:
hapan
Date:
December 4, 2002 07:20
Subject:
Help with merging
Message ID:
20021204152038.GC22371@kanyl.org
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    $5    $6
  
I want "elephant master" to be read in as one word into $3 instead of
$3 and $4 .. 
I'm pretty new to perl, take that into consideration when explaining a
good way to solve my problem. :)

//Adam 


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About