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
In reply to Re: Trouble Chaining map function
by NetWallah
in thread Trouble Chaining map function
by jaypal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |