That works fine for numbers.
But then you're using "chomp", which makes sense for a newline-terminated string.
Are you sure you wanted == in your unless, rather than eq?
In reply to Re: incorrect results
by RMGir
in thread incorrect results
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |