in reply to Trouble Chaining map function

print join "\n", map { $t = $_ ; join("\t", $_."\t", map { $data{$_,$t} ? "X" : " " } @days ) } @time;
This code differs from yours in several regards:

To me this looks like misusing map. Better use it solely to calculate results of values from a list by one or very few statements and no nested map, and putting the results into a new list or array at the same time.

Replies are listed 'Best First'.
Re^2: Trouble Chaining map function
by jaypal (Beadle) on Jun 15, 2014 at 00:45 UTC

    Thanks flowdy was the explanation. I agree with you, I wouldn't use this in a production code. I was just trying to understand how nesting can be done. I am of the type who would learn more by looking at a solution then reading through the doc. Your solution has shown me a clear way of nesting maps and I appreciate your help for that. :)