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 }
In reply to Re^3: Read in the logfile
by hdb
in thread Read in the logfile
by lddzjwwy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |