in reply to Confused by a couple of idioms
$csv and $xls = $csv;
Here and is used for control flow. It separates statements (or expressions) which are conditionally evaluated from left to right. The first is simply $csv and so the subsequent statement is only evaluated (and therefore executed) if this first expression is true. You can see then that the whole line is equivalent to writing
$xls = $csv if $csv;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Confused by a couple of idioms
by rsFalse (Chaplain) on Feb 22, 2019 at 09:31 UTC | |
by bliako (Abbot) on Feb 22, 2019 at 11:36 UTC | |
by hippo (Archbishop) on Feb 22, 2019 at 11:50 UTC | |
by bliako (Abbot) on Feb 22, 2019 at 13:05 UTC | |
|
Re^2: Confused by a couple of idioms
by nysus (Parson) on Feb 21, 2019 at 23:46 UTC | |
by Athanasius (Archbishop) on Feb 22, 2019 at 02:40 UTC | |
by nysus (Parson) on Feb 22, 2019 at 12:39 UTC | |
by dsheroh (Monsignor) on Feb 22, 2019 at 08:18 UTC |