rhysmeister
Programmer
Something is up with my if statement...
The statement always does the first if statement whatever is input. Probably an easy one!
Code:
$choice = <STDIN>; # read the choice from the keyboard
if($choice == "Y")
{
stuff here;
}
elsif($choice == "N")
{
stuff here
}
The statement always does the first if statement whatever is input. Probably an easy one!