http://qs321.pair.com?node_id=507513


in reply to Re^2: golf: shortest way to parse a pipe delimited file
in thread golf: shortest way to parse a pipe delimited file

this fails by giving an empty hash entry.
$VAR1 = { '' => [], 'aaa' => [ 'bbb', 'ccc' ], 'foo' => [ 'bar', 'baz' ] };

Replies are listed 'Best First'.
Re^4: golf: shortest way to parse a pipe delimited file
by tilly (Archbishop) on Nov 11, 2005 at 05:45 UTC
    It doesn't fail for me with Perl 5.8.7.

    My best guess is that your input had a blank line in it at the start or the end. That blank line would (legitimately from the spec) result in the output that you saw.