in reply to Trouble Chaining map function

Late to the party, but in the spirit of TIMTOWTDI, here is a non-nested map solution:
perl -anE '$d ||={map {$_=>$x++} @wd=qw[Mon Tue Wen Thu Fri Sat Sun] +}; $F[1] and $v{$F[1]}->[$d->{$F[0]}] = "X" }{ say map{"\t$_"}@wd; say "$_\t",map {"$_\t"}@{$v{$_}} for sort keys %v' ts-data.txt

        What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against?
              -Larry Wall, 1992

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

    Thank you NetWallah, that looks pretty intense :). I will have to spend some time trying to break it down and I appreciate your help in providing another approach.

    Thanks
    Jaypal