in reply to Re: golf: shortest way to parse a pipe delimited file
in thread golf: shortest way to parse a pipe delimited file
This will do it, but I don't know how you would score it for comparison.
Well, no matter how you score it, I gotcha by two. :-)
perl -F'\|' -lane'($k,@v)=@F;$f{$k}=[@v]'
-sauoq "My two cents aren't worth a dime.";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: golf: shortest way to parse a pipe delimited file
by BrowserUk (Patriarch) on Nov 12, 2005 at 23:40 UTC | |
by sauoq (Abbot) on Nov 12, 2005 at 23:58 UTC |