in reply to Re: Combinations of lists to a hash
in thread Combinations of lists to a hash
Yes, that is valid, thank you very much tybalt89! Nice work - you forced me to vote again.
I've added a 4th update to my original post, which may help you to simplify your code, while helping me...again.
BTW, how did you notice my update? Just by chance or did you get some kind of message? Just wondering whether I need to bring it to the attention of others who have provided solutions...though I may well go with yours.
Update: In response to Anonymous Monk's (quite valid) rebuke below, I've realised that my 4th update in my original post simply required the removal of a couple of '=' signs from 1 line of tybalt89's last solution, i.e.:
#@lines = map /^=:\s*,^=:\s*/ ? map "$`$_$'", split /,/, $& : $_, @lines @lines = map /^:\s*,^:\s*/ ? map "$`$_$'", split /,/, $& : $_, @linesWell, it seems to work, anyway. If there's better way to make that adjustment, I'm all ears.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Combinations of lists to a hash
by Anonymous Monk on Oct 04, 2019 at 23:40 UTC | |
by AnomalousMonk (Archbishop) on Oct 05, 2019 at 00:54 UTC | |
by tel2 (Pilgrim) on Oct 05, 2019 at 01:29 UTC | |
by AnomalousMonk (Archbishop) on Oct 05, 2019 at 03:02 UTC | |
by tel2 (Pilgrim) on Oct 05, 2019 at 03:38 UTC |