in reply to Re^2: Read in the logfile
in thread Read in the logfile

Just modify the regex to require at least one non-space after <

use strict; use warnings; while(<DATA>) { last if /^<\S+;/; } while(<DATA>) { last if /^<\S+;/; print; # process your date here }