in reply to Re: golf: shortest way to parse a pipe delimited file
in thread golf: shortest way to parse a pipe delimited file
Your second solution can be shortened by 3 characters:foo||bar
and one more if you're willing to replace chomp with chop.sub func { #23456789_123456789_123456789_12345678 chomp(@_=split'\|',pop);$p{+shift}=\@_ }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: golf: shortest way to parse a pipe delimited file
by bageler (Hermit) on Nov 10, 2005 at 19:38 UTC | |
by tilly (Archbishop) on Nov 11, 2005 at 05:45 UTC |