P
Peter Wyzl
Uri Guttman said:PW> default.
PW> {
PW> local $/ = ''; #slurp mode
that is paragraph mode. undef is the value for slurp mode.
and File::Slurp is faster and a nicer API IMO .
Oops. For the benefit of OT, I got away with that while testing because
there happen to be no 'paragraphs' in the sample file, so it all slurps into
one paragraph. Were there paragraphs in the file, strange things could
result. 'Slurp' mode is what I wanted. I also meant to add the caveat that
with large files this will consume lots of memory, but since you seem to be
assigning all the file to @chunk anyway I didn't think it would be a
problem.
Seems my sig got broken too...