("a", "b") and qw(a, b)
are two equivalent ways of defining a list, so both examples should not work(because print has higher priority than [1]):
print ("a", "b")[1]; print qw(a, b)[1];
But for some reason only the first one does not work...
In reply to Re^3: print question
by Anonymous Monk
in thread print question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |