Hi - thanks, that works. One more question.
Is it possible to put the lines generated into an array, so I can use them for further processing. I tried
while (<DATA>) {
push(@errorcode, $1, (++$i % 5 and not eof ) ? "|" : "\n" if /errorcode=(\d+)$/);
}
and receive following error:
syntax...