On 29/01/2013 14:09, pierre masci wrote:
And (tell me if i'm wrong) it's also equivalent to this: my %result_hash = ( 'passed', $passed, 'valid', $r->valid, 'missing', $r->missing, 'invalid', $r->invalid, 'unknown', $r->unknown ); return \%result_hash; where the brackets clearly show that it's a list.
The hash = list is not where my confusion originated. It came more from the fact that the list is still a list of scalars so I couldn't understand why adding another element to the list did not invoke a scalar context, that's all. Anyway, Dave Cross cleared it up, thanks.
gvim