in reply to Trouble Chaining map function
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 |