Does any one know how to remove an element from a hash?
suppose I have:
html(name=>img,src="../hosted/image1.gif",width=>16,height=>16);
sub html
{
%param = @_;
print "<$param{name} ";
foreach $key (keys (%param))
{
print "$key=\"$param{$key}\" ";
}
print ">\n";
}
Now, I need to remove the value of $param{name}, but how do I do that? Shift? Some code to support your response would help. All the function html does is take the element name,
and use every other element as HTML attributes, so that input renders:
<img src="../hosted/image1.gif" width="16" height="16">