Hi everyone,
I want to learn how to use the map function. I have a little example where I think it could be used,
$tags->{"links_link_$_"} = $link->{$_}
};This takes the hashref $links = { key => value} and maps it to $tags = { links_link_key => value}.
How would I do that using map? I tried, but obviously failed (otherwise I wouldn't be asking....)
Ivan
-----
Iyengar Yoga Resources / GT Plugins
I want to learn how to use the map function. I have a little example where I think it could be used,
Code:
foreach (keys %$link) { $tags->{"links_link_$_"} = $link->{$_}
};
How would I do that using map? I tried, but obviously failed (otherwise I wouldn't be asking....)
Ivan
-----
Iyengar Yoga Resources / GT Plugins