in reply to Re: Tidier and more efficient parsing code
in thread Tidier and more efficient parsing code

well, to get rid of the first element of split, change the block to look like so:

{ local $/; undef $/; (undef, @temp) = split /;/, <DATA>; # slurp file %sections = map { my($sect, @param) = split /[\n\r\f]+/;($sect, \@ +param) } @temp; }
and don't forget to localize $/ !

~Particle