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}=\@_ }
In reply to Re^2: golf: shortest way to parse a pipe delimited file
by tilly
in thread golf: shortest way to parse a pipe delimited file
by bageler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |