Why does the goatse operator work?
The difference between arrays and lists and between list and scalar context have been discussed in the Perl community quite a bit this last year (and every year, really). I have read over articles from chromatic and friedo , as well as this recommended monks node. I'm trying now to understand the goatse operator, documented in perlsecret . Here is some code I used to study it: # right side gets scalar context, so commas return rightmost item $string = qw(stuff junk things); say $string; # things # right side gets list context, so middle is list assigned in scalar context $string = () = qw