[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Matching the Next Line(s)



At 9:35 AM -0400 5/17/2000, Paul Schinder wrote:
>>	$matches .= $line . '\n'; # and the next 2 lines if there are any
>
>Since you're not chomping the lines, this should work:
>
>         $matches = $line . <IN> . <IN>;

Thanks Paul, that's brilliant!

Is there a similarly easy way to include the previous two lines?
-- 
My brain hurts!
SeanC
                      Mediatek Training Institute
            129 Moore Road, Berea, Durban, South Africa
    phone: +27 (0)31 305 4200              SeanC@mediatek.co.za
      fax: +27 (0)31 305 4236
                   <http://members.xoom.com/s_carte>

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org