This line will not do what you think it will:
if ($answer eq ('y' or 'yes')) {
Someone else asked how to get input from STDIN recently too: Continure when "y" and none for "n"
In reply to Re: unexpected STDIN
by wind
in thread unexpected STDIN
by GhodMode
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |