LanX:
With the scalar operator and arrays evaluating to their length in scalar contect, I don't see a need for it. But if someone decided to change perl to do something like this, I'd rather see them overload length to accept a hash, array or reference to a hash or array.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: new keyword "size" to avoid scalar trap ? ( scalar @array != scalar(LIST) )
by roboticus
in thread new keyword "size" to avoid scalar trap ? ( scalar @array != scalar(LIST) )
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |