in reply to Confused by a couple of idioms
"o|c|out=s" => \my $csv creates $csv at this point as a lexical variable and assigns a reference to it to (I assume) this hash value.
$csv and $xls = $csv; tests if $csv is true, and if it is, assigns its value to $xls.
It's the same as: $csv && ( $xls = $csv );.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Confused by a couple of idioms
by ateague (Monk) on Feb 21, 2019 at 22:27 UTC | |
|
Re^2: Confused by a couple of idioms
by nysus (Parson) on Feb 21, 2019 at 23:54 UTC | |
by tobyink (Canon) on Feb 22, 2019 at 00:02 UTC |