in reply to qw and its lovely magic

qw() creates a list by splitting the contents on whitespace. You can use it any place you can use a list. See "Regexp Quote-Like Operators" in perlop.