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

Help with merging

Thread Next
December 4, 2002 07:20
Help with merging
Message ID:
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. :)


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About