since when does scalar context of a list result in a join???It does? Which of your examples do you think supports this notion?
The scalar is applied to the list before the x-op can act. The parens are ignored...I do not know what you mean by this.
Thats a bug or a feature?From 'man perlop':
Binary "x" is the repetition operator. In scalar context or if the
left operand is not enclosed in parentheses, it returns a string
consisting of the left operand repeated the number of times specified
by the right operand. In list context, if the left operand is enclosed
in parentheses or is a list formed by "qw/STRING/", it repeats the
list. If the right operand is zero or negative, it returns an empty
string or an empty list, depending on the context.
In reply to Re^5: Operator overloading with returning lists?
by JavaFan
in thread Operator overloading with returning lists?
by renormalist
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |