From: Martin DeMello Date: 2003-01-31T23:25:19+09:00 Subject: Re: reading past a file header ts wrote: >>>>>> "M" == Martin DeMello writes: > > M> flag = true if line =~ /^--begin--$/ > > > next if 1 .. line =~ /^--begin--$/ > > it will begin the processing *after* the line /^--begin--$/ Didn't work when I tried it - everytmie the regex reset, 1 was true again, so it never processed the file. This worked: next if ($. == 1) .. (line =~ /^--begin--$/) martin