my %dd;
$dd["foo"]="bar";
print keys %dd;
print %dd;
This is my code. This should display the keys of the dictionary %dd and the dictionary itself in the last two lines right? But it isn’t! I’ve been breaking my head behind this since a couple of hours now but nothing helps.
The correct syntax is :
note: it is “{ }” instead of “[ ]”