in reply to Re: Re: setting values in anonymous hash
in thread setting values in anonymous hash
> map wants a list, right?Right.
> So here you're treating the hash as a list, andRight. See, you weren't as confused as you thought.
> setting the undefined values to '' as you find them?
> I guess I'm just wondering why referring to hashesUh uh. Innocent until proven guilty. It solves the problem, so the burden of proof is on you to show why it isn't a good idea.
> in a list context is a good idea.
We use hashes as lists all the time:
It isn't a big deal.sub stuff { my %hash ; ... return %hash; } %stuff = stuff();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: setting values in anonymous hash
by snax (Hermit) on Nov 28, 2000 at 22:40 UTC | |
by Dominus (Parson) on Nov 28, 2000 at 23:26 UTC | |
by snax (Hermit) on Nov 28, 2000 at 23:43 UTC |