in reply to die on carriage return
The problem is probably located a few lines earlier. You could chomp $number before performing the tests. Then check for an empty input, e.g. like:
die "Enter is not valid" unless length $number;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: die on carriage return
by cdarke (Prior) on Dec 31, 2008 at 11:25 UTC | |
by ikegami (Patriarch) on Dec 31, 2008 at 11:34 UTC | |
by muizelaar (Sexton) on Dec 31, 2008 at 13:18 UTC |