in reply to if statement not working
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.
|
|---|