Copyright © tutorialspoint.com
Syntax
Definition and Usageqw() is a quick way to specify a lot of little single-quoted words. For example, qw(foo bar baz) is equivalent to ('foo', 'bar', 'baz'). Some programmers feel that using qw make Perl scripts easier to read. You can actually use any set of delimiters, not just the parentheses. Simply you can use qw() to prepare an array as shown in theexample below. Return Value
ExampleTry out following example:
It will produce following results:
|
Copyright © tutorialspoint.com