Arrays and Hashes
The Quote Word Function
List literals can also use the
qw()
function.
This function helps minimize unnecessary verbosity by eliminating the need for excessive double quote characters.
It takes a list of arguments seperated by spaces and creates the equivalent of a quoted list.
Example:
qw(one two three) # Same as ("one", "two", "three") qw( one two three ) # Same thing
Back to Syllabus
Previous: Array Constructor Operator
Next: Array Variables