in reply to Re: Re: prompting a user for input
in thread prompting a user for input

Looking at:
~/^(y|yes)$/i
This would be my choice:
~/^(?:y(?:|es))$/i;
matches y or yes without any regard to case and doesn't store the match in $1 unnecessarily. TMTOWTDI

-tengo mas que aprender