olivier.scalb...@algosyn.com wrote:
> $ cat test.txt
> keyword1 word1, word2
> word3;
> blabla
>
> blabla
>
>
> keyword2
> word4, word5,
> word6, word7, word8,
> word9;
>
> bla bla
> bla bla
>
> keyword1
> word10, word11;
#!/usr/bin/perl
use strict;
use warnings;
use Data:
Uri Guttman wrote:
> > please show your code. there is no way to help otherwise. s/// is not a
> > pattern matcher but a substitution operator. it uses regexes and can be
> > used to parse things.
> >
> > uri
> >
Here it is ...
$ cat test.txt
keyword1 word1, word2
word3;
blabla
blabla
ke
(Sorry but I have problem with my ISP, so I repost !)
Uri Guttman wrote:
> > how do you know when a keyword section begins or ends? how large is this
> > file? could free text have keywords? i see a ; to end a word list but
> > that isn't enough to properly parse this if you have 'free text'.
> >
> "osc" == olivier scalb...@algosyn com
> writes:
osc> keywordA word1, word2, word3;
osc> Here we can have some free text
osc> ...
osc> ...
osc> keywordB word4,
osc> word5, word6, word7, word8,
osc> word9, word10;
osc> KeywordA
osc