in reply to Re^3: count repeatation
in thread count repeatation
I figure that Perl creates it whether it has a name or not!
No. The results are placed on the stack in both cases, but no array is created or used when assigning to (). The elements on the stack are simply discarded.
Independently, since the (rightmost) assignment is evaluated in scalar context, it evaluates to the number of elements returned by its RHS. This occurs whether an array or a list is found on its LHS.
|
|---|