A scalar returns the same in both scalar and list context.
One uses scalars in list context all the time. For example, %h = ( a => 1, b => 2 ); has four.
Update: Fixed grammar. Added second paragraph.
In reply to Re: scalar in list context
by ikegami
in thread scalar in list context
by manishrathi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |