always start your script with
use strict; use warnings; [download]
Numbers are compared using == for strings you need eq
In reply to Re: elsif failing by lamprecht in thread elsif failing by rcd^_-