Hi,
I am trying to write a script that reads names fron standard input and matches it to a key in a given table and prints out the name and key


Enter a first name or " <ctrl -z>", to exit
chomp { $name = <STDIN> };
while $name ne " <ctrl-z>"
if $name is in @given_table
then
print "$name maps to $value in given_table"
else
print "$name is not in the given_table\n"

what is wrong with this script?
Thanks,
Dakenah


_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to