http://qs1969.pair.com?node_id=281161


in reply to The .. operator explained

My favorite use of .. so far is:
# From the "LIBFILES =" line to the first line that # doesn't end in a backslash, # collect library directory names if (my $status = s/^\s*LIBFILES\s*=// .. !s/\\$//) {
which matches the lines I wanted in a Makefile while simultaneously removing what I didn't want (the 'LIBFILES=' section prefix and the backslash continuation marker) from the lines.