in reply to Re^2: Scalar Vs. List context
in thread Scalar Vs. List context
Expressions that are list elements are no exception. The list operator decides the context of its operands based on its context:
@a = (1,2,3,4); # list, list, list, list
$a = (1,2,3,4); # void, void, void, scalar
Your second example does not have any "list elements" because you can't have a list in scalar context.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Scalar Vs. List context
by ikegami (Patriarch) on Jul 13, 2009 at 15:17 UTC | |
|
Re^4: Scalar Vs. List context
by Anonymous Monk on Jul 12, 2009 at 12:55 UTC | |
by jwkrahn (Abbot) on Jul 12, 2009 at 13:12 UTC | |
|