in reply to Fixing: Experimental keys on scalar is now forbidden
UPDATE 1: That passes syntax, but does not seem to give the desired result .. still testing ....@tempCustArray = keys %{+ map { $_ => 1 } @webCustomers };
Update 2: This works:
Now I have to figure out WHY it works..... and pre-Update1 does not..my @t = keys %{+{ +map { $_ => 1 } qw|uno dos tres| }}
Update 3: The "+" signs are unnecessary .. this works:
So - it seems to be a question of why the extra braces are required.@tempCustArray = keys %{{ map { $_ => 1 } @webCustomers }}
Memory fault -- brain fried
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Fixing: Experimental keys on scalar is now forbidden
by ikegami (Patriarch) on Jun 06, 2018 at 07:25 UTC | |
by NetWallah (Canon) on Jun 06, 2018 at 16:55 UTC | |
|
Re^2: Fixing: Experimental keys on scalar is now forbidden
by TheVend (Novice) on Jun 06, 2018 at 06:19 UTC |