in reply to Re: conditional regex
in thread conditional regex

chomp needed.

I wouldn't necessarily call

chomp( my $word = lc $_ ); if $word eq 'y' or $word eq 'yes';
simpler than
if /^y(?:es)?$/i;

Maybe it's more complex to write, but surely it's simpler to read.