in reply to elsif failing

Hi,

always start your script with

use strict; use warnings;

Numbers are compared using == for strings you need  eq


Cheers Christoph