while (<>) { s/^/X/ if /marker1/.../marker2/; print; }