slloyd has asked for the wisdom of the Perl Monks concerning the following question:
my %hash=(a=>1,b=>2); my $x=&foo(\%hash); sub foo{ my $h=shift; #hash reference #I want to clear out the hash here... $h->{c}=5; return 1; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can I initialize/clear a hash reference?
by Zaxo (Archbishop) on Feb 25, 2005 at 04:51 UTC | |
|
Re: Can I initialize/clear a hash reference?
by davido (Cardinal) on Feb 25, 2005 at 04:52 UTC | |
by slloyd (Hermit) on Feb 25, 2005 at 05:10 UTC |