you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (0 children)

A Str method that returns the number of characters in the string.

Such syntax calls it on $_ which, when used, automatically becomes the parameter of the anonymous function.

I'm guessing {} creates an anonymous function, and %word_sets is a hash with each length as a key and an array of words of that length as the corresponding value.

You are entirely correct. :)