in reply to Re: Tidier and more efficient parsing code
in thread Tidier and more efficient parsing code
and don't forget to localize $/ !{ local $/; undef $/; (undef, @temp) = split /;/, <DATA>; # slurp file %sections = map { my($sect, @param) = split /[\n\r\f]+/;($sect, \@ +param) } @temp; }
~Particle
|
|---|