Goed, ik doe erg mijn best, maar er gaat hier iets fout. Vanaf het antwoord bij goed krijg je "doe toch niet zo moeilijk"wat je ook invult. Ook zonder de < tekens, met 1 = en met de " werkt het niet. Iemand een idee, hier is het script:
#! usr/bin/perl
print "hallo, wat is uw naam?", "\n";
$naam=<>;
print "hallo $naam, hoe gaat het?", "\n";
$toestand=<>;
if ($toestand=<goed>)
{
print "mooi", "\n";
}
else
{
print "Doe toch niet zo moeilijk", "\n";
}
print "waar woon je?", "\n";
$locatie=<>;
print "En vind je het leuk om in $locatie te wonen?", "\n";
$aloc=<>;
if ($aloc=ja)
{
print "fijn om te horen", "\n";
}
else
{
print "begrijpelijk.."
}
#! usr/bin/perl
print "hallo, wat is uw naam?", "\n";
$naam=<>;
print "hallo $naam, hoe gaat het?", "\n";
$toestand=<>;
if ($toestand=<goed>)
{
print "mooi", "\n";
}
else
{
print "Doe toch niet zo moeilijk", "\n";
}
print "waar woon je?", "\n";
$locatie=<>;
print "En vind je het leuk om in $locatie te wonen?", "\n";
$aloc=<>;
if ($aloc=ja)
{
print "fijn om te horen", "\n";
}
else
{
print "begrijpelijk.."
}
Laatst bewerkt: