http://www.perlmonks.org?node_id=115919


in reply to processing text from flat file

split works on scalars, not on arrays. So join first:
@requests = split(/\|\-+\|/, join '', <REQUESTS>);
Just a minor improvement on the split, mehopes you like it.

Jeroen
"We are not alone"(FZ)