Using chop instead of chomp would help, but might not be portable.%p=map{chomp;split/\|/;shift,[@_]}@_
In reply to Re^3: golf: shortest way to parse a pipe delimited file
by Roy Johnson
in thread golf: shortest way to parse a pipe delimited file
by bageler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |