use strict; use warnings; while () { print if /^ascii\b/i; } __DATA__ does not begin with ascii ascii is the one AsCii works too asciibetically sorted