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:
print +("a", "b")[1];
[download]
and to quote code in your posts, use
<c>...
</c>
Comment on
Re: print question
Select
or
Download
Code
In Section
Seekers of Perl Wisdom