in reply to Re^3: arranging the csv file
in thread arranging the csv file
Question: can anyone do this as a oneliner without a named hash?
Everybody can :) even you :) , do, references quick reference, hashes are curly
$ perl -l - 2 print @{ { map { /(.*?)\s*,/ and $1 => $_ } <> } }{ qw/ 10.1 100.1 25.1 103.1 / } __END__ 10.1,D,5,6,5,8,9,8,12,23,36,6 100.1,A ,25, 36,56,89,45,36,56 25.1 ,B,232,565,65,56,56,48,25 103.1,C,25,5,6,9,4,5,56,889,9
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: arranging the csv file
by hdb (Monsignor) on Jul 24, 2013 at 07:18 UTC |