in reply to print question
qw() returns a list but print does not. you can make it clear to perl that ("a", "b") is its own list rather than the parameters to the print function with the unary-plus trick:
and to quote code in your posts, use <c>...</c>print +("a", "b")[1];
|
---|
In Section
Seekers of Perl Wisdom