use warnings; use strict; while () { print if /\QCOPYRIGHT(C)/ } __DATA__ foo COPYRIGHT(C) bar COPYRIGHT