You can only pass a list of scalars to some function in perl.
Is that a general rule in perl that wherever a list is demanded you can pass in a scalar?
Yes, in such case you have one element long list.
print()
takes ($one, $two, $three)
as list in same way as @arr
, or map $_, @arr
, or $arr[0], $arr[1], $arr[2]