in reply to Re: Learning Programming, desperately need to know what information is contained in scalar variables
in thread Learning Programming, desperately need to know what information is contained in scalar variables
In the first example, the array @fred on the left hand side of the operator = makes it a list context, did i got it right? In the second example, "hello" . '' . "world; alone is a scalar expression? Is the array @barney on the left hand side of the operator making it into list context like the first example?@fred = 6 * 7; #gets the one-element list (42) @barney = "hello" . '' . "world";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Learning Programming, desperately need to know what information is contained in scalar variables
by LanX (Saint) on Jul 20, 2020 at 21:54 UTC | |
|
Re^3: Learning Programming, desperately need to know what information is contained in scalar variables
by Anonymous Monk on Jul 20, 2020 at 21:14 UTC | |
by LanX (Saint) on Jul 20, 2020 at 21:20 UTC |