Just a note, jhumphreys did chomp the input in the original program:
chomp($weather, $temperature);
Not the syntax I would use (would be more idiomatic and chomp at input as some of the posters did), but nonetheless, the newlines should be gone.
In reply to Re^2: beginner scripting question re: if elsif else
by live4tech
in thread beginner scripting question re: if elsif else
by jhumphreys
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |