Hi, I am reading modern Perl and despite the explanation of the author I couldn't understand:
my $count = () = get_clown_hats() It's obvious to me that the function get_clown_hat() is evaluated in list context but what the author said is that the assignment to the empty list throws away all of the values of the list, but the assignment takes place in scalar context, which evaluates to the number of items on the right! If someone could explain that, it would be great. Thanks Regards