Hey guys, I am very new to programming and I am in my first month of learning it at Uni,
I currently have this code that i'm working on to keep sharp, in my other programs it works fine but ever since I thought it had become second nature it doesn't produce the results I want.
Here is the code:
print "Shwmae!\n";
print "Welsh or English?!\n";
$answer = <STDIN>;
if ($answer eq "Welsh")
{
print "Diolch!!\n"
}
else
{
print "Thank You!!\n"
}
I am using PERL (btw).
Basically what happens is if I type in Welsh (<STDIN>) it will still produce "Thank You!!" as a result and clearly I am looking for the welsh translation.
What is going on guys?! this is really simple... haha
Cheers,
CGK30