W
wana
foreach (keys %h)
{
$a =~ s/\b$_\b/$h{$_}/g;
}
I want to replace matches in string to hash key with hash value. I am
replacing acronyms with phrases where acronym is hash key. Is there a
better or different way?
thanks!
wana (on pda)
{
$a =~ s/\b$_\b/$h{$_}/g;
}
I want to replace matches in string to hash key with hash value. I am
replacing acronyms with phrases where acronym is hash key. Is there a
better or different way?
thanks!
wana (on pda)