in reply to Can I initialize/clear a hash reference?
sub foo { my $h = shift; %$h = (); $h->{'c'} = 5; 1; } [download]
After Compline,Zaxo