- or download this
...if regex...
seek(LOG,0,0) || die "Seek error: $!";
...process line...
truncate(LOG,tell(LOG))
- or download this
...if regex...
$pos = tell(LOG)
seek(LOG,0,0) || die "Seek error: $!";
...process line...
truncate(LOG,$pos)
- or download this
truncate(LOG,$pos-$stringlength);