in reply to erroneous warning involving locale and input encoding: perl bug?
print "ends with x and optional y or z\n" if /x(y|z)?\n$/; [download]