http://www.perlmonks.org?node_id=998591


in reply to beginner scripting question re: if elsif else

You must remove the newline from each input before you test it. Use the function chomp.
Bill