Your skill will accomplish what the force of many cannot |
|
PerlMonks |
How do I split a file into an array using blank lines as delimiterby aaAzhyd (Initiate) |
on Dec 18, 2000 at 22:33 UTC ( [id://47236]=perlquestion: print w/replies, xml ) | Need Help?? |
aaAzhyd has asked for the wisdom of the Perl Monks concerning the following question: ⭐ (files)
I have a file such as: -- blah blah blah blah blahblahblalh oh yeah interesteing no no no nonnono yes yes -- I am wanting to read the file into an array spliting each element by a blank line, such as @array[0] would be: blah blah blah blah blahblahblalh Here is what I have tried doing: and i have tried messing around with the regular expresion with no luck .. Originally posted as a Categorized Question.
Back to
Seekers of Perl Wisdom
|
|