See what's between the two '|' symbols, I'll bet it doesn't include the prompt. Or try chomp $number; before the print.print "\nYou entered \n|$number|\n";
In reply to Re: Re: Problem with STDIN
by bobn
in thread Problem with STDIN
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |