> 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();
In reply to Re: setting values in anonymous hash
by Dominus
in thread setting values in anonymous hash
by agoth
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |