My favorite bit of trivia on this subject is that in Perl, if you have something list-like with lots of potentially empty values where the length isn’t the same as the number of things in the list, you can force list context and get a quick count by assigning to an empty list.
The end result is the unofficial “buttse” operator: =()=.
My favorite bit of trivia on this subject is that in Perl, if you have something list-like with lots of potentially empty values where the length isn’t the same as the number of things in the list, you can force list context and get a quick count by assigning to an empty list.
The end result is the unofficial “buttse” operator:
=()=
.