in reply to Re^3: Match operator giving unexpected output
in thread Match operator giving unexpected output
in the following you (could) see a flattened "list", but scalar doesn't return the last element, which should be 5.
DB<118> @a=(4,5) => (4, 5) DB<119> scalar (1,2,3,@a) => 2
in reality there is only the scalar comma operator returning the scalar of the last expression, which is here the size of @a.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Match operator giving unexpected output
by Anonymous Monk on Jan 13, 2015 at 23:29 UTC | |
by Anonymous Monk on Jan 13, 2015 at 23:32 UTC | |
by LanX (Saint) on Jan 13, 2015 at 23:48 UTC | |
by Anonymous Monk on Jan 14, 2015 at 01:34 UTC | |
by LanX (Saint) on Jan 14, 2015 at 05:37 UTC | |
|