in reply to Can I initialize/clear a hash reference?

sub foo { my $h = shift; %$h = (); $h->{'c'} = 5; 1; }

After Compline,
Zaxo