On Sep 6, Gergely Buday said:
do you have a clue why is this not working? The interpreter complains about a syntax error in line 7 near $myhash.
You have written '$myhash($ky)' when you meant to write '$myhash{$ky}'. You have also written '%myhash = { ... }' when you meant to write '%myhash = ( ... )'.
You've flipped your parentheses '(' and ')' with your braces '{' and '}'.
%myhash = { "alma" => "apple", "korte" => "pear" };
print $ky, ":" , $myhash($ky), "\n";
-- Jeff "japhy" Pinyan % How can we ever be the sold short or RPI Acacia Brother #734 % the cheated, we who for every service http://japhy.perlmonk.org/ % have long ago been overpaid? http://www.perlmonks.org/ % -- Meister Eckhart -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>