in reply to Rethinking Your Program's If-Thens
Note how the closure for FAQ has to do argument assignment?Actually, I do not. I see that the closure is doing argument assignment, but I don't think it's needed. What's wrong with:
AbigailCONTACT => sub {("HQ", undef)}, FAQ => sub {(undef, $_ [2] eq 'Service' ? $_ [3] : $_ [4])}, ...
|
|---|