Always use strictures (use strict; use warnings;)! If you turn strictures on you will get the warning:
Argument "aaaa" isn't numeric in numeric eq (==) at ...
Use the string equality operator (eq) for comparing strings. The numeric equality operator (==) will "numify" its operands and non-numeric strings numify to 0.
In reply to Re: if statement not working
by GrandFather
in thread if statement not working
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |