if ($answer eq "add" || $answer eq "a") { [download]
Same goes for your elsif.
In reply to Re: Subroutines within if statements by toolic in thread Subroutines within if statements by muizelaar