in reply to while or for?

This does not relate directly to your question, but i noticed that you use a hash named %para. Are you wanting to seperate the paragraphs? If so then you simply change $/ to 2 newlines. Here is an example that you may modify to meet your needs:
use Data::Dumper; my @para = do {local $/ = "\n\n"; <DATA>}; print Dumper \@para; __DATA__ blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)

Replies are listed 'Best First'.
Re: (jeffa) Re: while or for?
by Skeeve (Parson) on Jul 22, 2003 at 05:38 UTC
    Thanks for the hint, but no, I'm not trying to seperate paragraphs. And yes, %para is because I meant paragraph, or to say it completely: ParagraphDef. My files contain a list of (XML-)ParagraphDef names, which I wanted to sort out: Which one is used in which file(s).