<html>
<body>
<tt><br>
#!/usr/bin/perl -w&nbsp; <br>
# put -w on same line as #!perl<br><br>
$a=&quot;Are they good or evil?&quot;; <br><br>
@good=qw(Neo Trinity Morpheus); <br><br>
@builder=qw(Oracle Architect);<br>
&nbsp;<br>
@bad=qw(Smith Agents Agent Twins); <br><br>
print (&quot;Enter the name to see if you can trust them \n&quot;); 
<br>
# brackets are not needed here - but it will still work.<br><br>
print &quot;Enter the name to see if you can trust them
\n&quot;;<br><br>
print (&quot;$a \n&quot;); <br>
print (&quot;What is Your Name? \n&quot;); <br>
$name=&lt;STDIN&gt;; <br>
chomp $name; <br><br>
#if ($name=@good){ # This won't work as you are assigning<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
# the array @good to the var $name, <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
# not what you want, you want to test <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
# if the $name is in @good so use grep<br><br>
print &quot;Your are here to change everyone. \n&quot; <br><br>
if ( grep(&quot;$name&quot;, @good) ) {<br><br>
</tt>print &quot;Your are here to change everyone. \n&quot; ;&nbsp;&nbsp;
# you missed the semi-colon<br>
<tt>} <br>
else { <br>
print &quot;I might kb=know you but you ar not good\n&quot;;<br>
# }; don't need semi-colon after a block<br>
}<br>
&nbsp;<br>
... etc.<br><br>
<br>
PS don't forget that '=' assigns a value and (for numbers) '==' tests for
equality (for strings it's 'eq')<br><br>
<br>
<x-sigsep><p></x-sigsep>
<font face="Courier New, Courier" size=2>Spike Hodge<br><br>
UNIX Programmer<br>
</font></tt><font face="Courier New, Courier" size=2>M-Web
Technology<br>
</font><tt>021 596 8496<br>
082 901 5265<br><br>
</tt>Click here and make M-Web your homepage<br>
<a href="http://homepage.mweb.co.za/" eudora="autourl">http://homepage.mweb.co.za</a></body>
</html>