#!/usr/bin/perl while (<>) { next if m{^\Q} ... m{}; print; }