You seem not to grasp the difference between a list and a string. A string is a single scalar composed of zero or more characters, while a list is a collection of zero or more separate scalars. ($foo) is always going to have an odd number of elements because it contains exactly one scalar. Hash assignment doesn't take a string, it takes a list.
In reply to Re: Hash assignment "odd" ness
by ssandv
in thread Hash assignment "odd" ness
by phigment
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |