Each value is a single value. However that single value is allowed to be a reference.
Try something like:
while (not $done) { my $name = 'Placebex'; my %info; $info{concentration} = 0; $info{volume} = 250; $recipe{name} = \%info; } foreach my $name (keys %recipe) { print "Take $recipe{$name}{volume} ml of $name,\n"; } print "and call me in the morning.\n"
In reply to Re: a simple work task
by SuicideJunkie
in thread a simple work task
by polycomb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |