Hi there, 

do you have a clue why is this not working? The interpreter complains
about a syntax error in line 7 near $myhash.

#!/usr/bin/perl

%myhash = { "alma" => "apple", "korte" => "pear" };

foreach $ky (keys (%myhash))
{
        print $ky, ":" , $myhash($ky), "\n";
}

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to