hey, On Wed, May 27, 2009 at 10:30:37AM -0500, Kirk Wythers wrote: > [...] > > I want to read in the lines that begin with the date format, but skip > all the header stuff. Can anyone suggest a strategy for a, "if the line > begins with XXXX, go ahead and read". > > Thanks in advance.
like this? foreach (<FILE>){ @line = split(); next if not $line[0] =~ /\d{1,2}\/\d{1,2}\/\d{1,2}/; # save data stuff below } regards, stefan -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/