%w() is a “word array” - the elements are delimited by spaces.

There are other % things:

%r() is another way to write a regular expression.

%q() is another way to write a single-quoted string (and can be multi-line, which is useful)

%Q() gives a double-quoted string

%x() is a shell command.

Handy reference.