But detecting the first occurrence of a chain is quite another problem that can be solved by memorizing the number of occurences as value associated to the string:
The loop may have to be explicit depending on the source of your data.perl -ne 'chomp; print "new $_\n" unless $a{$_}++' nm_of_processed_fi +le
-- stefp -- check out TeXmacs wiki
In reply to Re: At each change in...
by stefp
in thread At each change in...
by malaga
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |